This commit is contained in:
liushuai
2020-04-09 18:35:58 +08:00
parent dc0b9cc5d9
commit 476a105bda
18 changed files with 408 additions and 443 deletions

View File

@@ -27,7 +27,7 @@ export function fetchDate(month) {
} }
}) })
} }
export function saveDate(num, partNum, procedure, num3, number, time1) { export function saveDate(num, partNum, procedure, num3, number, time1, time) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
@@ -36,11 +36,11 @@ export function saveDate(num, partNum, procedure, num3, number, time1) {
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '2',
name: '车间管理_其他数据_增加数据', name: '车间管理_其他数据_增加数据',
param: '操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 param: '操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 + '&加工日期=' + time
} }
}) })
} }
export function editDate(ID, num, partNum, procedure, num3, number, time1) { export function editDate(ID, num, partNum, procedure, num3, number, time1, time) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
@@ -49,7 +49,7 @@ export function editDate(ID, num, partNum, procedure, num3, number, time1) {
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '2',
name: '车间管理_其他数据_编辑数据', name: '车间管理_其他数据_编辑数据',
param: 'ID=' + ID + '&操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 param: 'ID=' + ID + '&操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 + '&加工日期=' + time
} }
}) })
} }

View File

@@ -64,7 +64,7 @@ export function editSafetyMargin() {
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '2',
name: '安全保证金管理_安全保证金信息_修改', name: '安全保证金管理_安全保证金信息_修改',
param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&交付日期=' + arguments[2] + '&提前X天提醒=' + arguments[3] + '&执行进度流水号=' + arguments[4] + '&备注=' + arguments[5] + '&安全保证金流水号=' + arguments[6] param: '项目流水号=' + arguments[0] + '&保证金金额=' + arguments[1] + '&交付日期=' + arguments[2] + '&提前X天提醒=' + arguments[3] + '&执行进度流水号=1&备注=' + arguments[5] + '&安全保证金流水号=' + arguments[6]
} }
}) })
} }

View File

@@ -129,7 +129,7 @@ export function editPurchaseOrder(num5, num6, num8) {
}) })
} }
// 删除采购单 // 删除采购单
export function deletePurchaseOrder(PurchaseOrderNameValue) { export function deletePurchaseOrder(PurchaseOrderNameValue, ArrivalOrderGroup, ArrivalOrderMXNumberGroup, numberGroup, LxnumberGroup) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
@@ -138,7 +138,7 @@ export function deletePurchaseOrder(PurchaseOrderNameValue) {
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '2',
name: '备料管理_删除到货单', name: '备料管理_删除到货单',
param: `到货单流水号=${PurchaseOrderNameValue}` param: `到货单流水号=${PurchaseOrderNameValue}&到货单明细流水号组=${ArrivalOrderGroup}&到货单明细绑定流水号组=${ArrivalOrderMXNumberGroup}&采购计划明细流水号组=${numberGroup}&离线采购计划明细流水号组=${LxnumberGroup}`
} }
}) })
} }
@@ -156,7 +156,7 @@ export function searchTable5(num) {
} }
}) })
} }
export function deleteArrivalMX(num) { export function deleteArrivalMX(num, group, group1, group2) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
@@ -165,7 +165,7 @@ export function deleteArrivalMX(num) {
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '2',
name: '备料管理_删除到货单明细', name: '备料管理_删除到货单明细',
param: `到货单明细流水号=${num}` param: `到货单明细流水号=${num}&到货单明细绑定流水号组=${group}&采购计划明细流水号组=${group1}&离线采购计划明细流水号组=${group2}`
} }
}) })
} }

View File

@@ -596,7 +596,7 @@
</template> </template>
<script> <script>
import { initProject, searchgroup, selecttable, QualityType, searchPic, searchTableDetail, searchData, searchData1, processingStatus, initPerson, Prohibit, selecttable22, initDisqualificationTreatment, initReasonsForNonconformity, searchparts, searchprocedure, searchoperators, submitTable } from '@/api/Assembly/QualityInspectionInformationInquiry' import { initProject, searchgroup, selecttable, QualityType, searchPic, searchTableDetail, searchData, searchData1, processingStatus, initPerson, Prohibit, initDisqualificationTreatment, initReasonsForNonconformity, searchparts, searchprocedure, searchoperators, submitTable } from '@/api/Assembly/QualityInspectionInformationInquiry'
import { readFile } from '@/utils/request' import { readFile } from '@/utils/request'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
// import { mapGetters } from 'vuex' // import { mapGetters } from 'vuex'
@@ -783,22 +783,51 @@ export default {
if (this.endTime !== '' && this.endTime !== null) { this.check6 = 1 } else { this.check6 = 0 } if (this.endTime !== '' && this.endTime !== null) { this.check6 = 1 } else { this.check6 = 0 }
if (this.qualityInspectionValue !== '' && this.qualityInspectionValue !== null) { this.check7 = 1 } else { this.check7 = 0 } if (this.qualityInspectionValue !== '' && this.qualityInspectionValue !== null) { this.check7 = 1 } else { this.check7 = 0 }
if (this.personNum !== '' && this.personNum !== null) { this.check8 = 1 } else { this.check8 = 0 } if (this.personNum !== '' && this.personNum !== null) { this.check8 = 1 } else { this.check8 = 0 }
selecttable22(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.SpareParts, this.check4, this.QualityTypeValue, this.check5, this.startTime, this.check6, this.endTime, this.check7, this.qualityInspectionValue, this.check8, this.personNum).then(response => { var param = []
import('@/vendor/Export2Excel').then(excel => { param[0] = ['机床流水号_check', this.check1]
const tHeader = ['是否禁用', '机床图号', '机床名称', '组号', '零件图号', '零件名称', '零件数量', '规格或材料', '工序名称', '质检类型', '检验数量', '不合格数量', '不合格原因', '处理结果', '质检时间', '备注'] param[1] = ['机床流水号', this.machineNumberValue]
const filterVal = ['禁用情况', '机床图号', '机床名称', '组号', '零件图号', '零件名称', '零件数量', '规格或材料', '工艺名称', '质检类型', '数量', '不合格数量', '不合格原因文本', '不合格处理文本', '操作时间', '备注'] param[2] = ['组件流水号_check', this.check2]
const list = response.data param[3] = ['组件流水号', this.groupNumberValue]
const data = this.formatJson(filterVal, list) param[4] = ['零件名称_check', this.check3]
excel.export_json_to_excel({ param[5] = ['零件名称', this.SpareParts]
header: tHeader, param[6] = ['质检类型代码_check', this.check4]
data, param[7] = ['质检类型代码', this.QualityTypeValue]
filename: '质检情况表', param[8] = ['开始时间_check', this.check5]
autoWidth: true, param[9] = ['开始时间', this.startTime]
bookType: 'xlsx' param[10] = ['结束时间_check', this.check6]
}) param[11] = ['结束时间', this.endTime]
}) param[12] = ['质检情况_check', this.check7]
}) param[13] = ['质检情况', this.qualityInspectionValue]
param[14] = ['人员编号_check', this.check8]
param[15] = ['人员编号', this.personNum]
var Data = this.CreateData('2001', '报表_质检管理_质量情况_查询数据', param)
this.exportExcel_NPOI(Data)
}, },
// exportExcel1() {
// if (this.machineNumberValue !== '' && this.machineNumberValue !== null) { this.check1 = 1 } else { this.check1 = 0 }
// if (this.groupNumberValue !== '' && this.groupNumberValue !== null) { this.check2 = 1 } else { this.check2 = 0 }
// if (this.SpareParts !== '' && this.SpareParts !== null) { this.check3 = 1 } else { this.check3 = 0 }
// if (this.QualityTypeValue !== '' && this.QualityTypeValue !== null) { this.check4 = 1 } else { this.check4 = 0 }
// if (this.startTime !== '' && this.startTime !== null) { this.check5 = 1 } else { this.check5 = 0 }
// if (this.endTime !== '' && this.endTime !== null) { this.check6 = 1 } else { this.check6 = 0 }
// if (this.qualityInspectionValue !== '' && this.qualityInspectionValue !== null) { this.check7 = 1 } else { this.check7 = 0 }
// if (this.personNum !== '' && this.personNum !== null) { this.check8 = 1 } else { this.check8 = 0 }
// selecttable22(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.SpareParts, this.check4, this.QualityTypeValue, this.check5, this.startTime, this.check6, this.endTime, this.check7, this.qualityInspectionValue, this.check8, this.personNum).then(response => {
// import('@/vendor/Export2Excel').then(excel => {
// const tHeader = ['是否禁用', '机床图号', '机床名称', '组号', '零件图号', '零件名称', '零件数量', '规格或材料', '工序名称', '质检类型', '检验数量', '不合格数量', '不合格原因', '处理结果', '质检时间', '备注']
// const filterVal = ['禁用情况', '机床图号', '机床名称', '组号', '零件图号', '零件名称', '零件数量', '规格或材料', '工艺名称', '质检类型', '数量', '不合格数量', '不合格原因文本', '不合格处理文本', '操作时间', '备注']
// const list = response.data
// const data = this.formatJson(filterVal, list)
// excel.export_json_to_excel({
// header: tHeader,
// data,
// filename: '质检情况表',
// autoWidth: true,
// bookType: 'xlsx'
// })
// })
// })
// },
fetchData() { fetchData() {
searchData().then(response => { searchData().then(response => {
this.tableData10 = response.data this.tableData10 = response.data

View File

@@ -65,11 +65,6 @@
{{ scope.row.加工数量 }} {{ scope.row.加工数量 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准结(分)" align="center" prop="修补工时" width="110">
<template slot-scope="scope">
{{ scope.row.修补工时 }}
</template>
</el-table-column>
<el-table-column label="单件加工工时(分)" align="center" prop="加工工时" width="140"> <el-table-column label="单件加工工时(分)" align="center" prop="加工工时" width="140">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.修补单件工时 }} {{ scope.row.修补单件工时 }}
@@ -80,6 +75,11 @@
{{ scope.row.完成工时 }} {{ scope.row.完成工时 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准结(分)" align="center" prop="修补工时" width="110">
<template slot-scope="scope">
{{ scope.row.修补工时 }}
</template>
</el-table-column>
<el-table-column label="扫码工时(分)" align="center" prop="扫码工时" width="110"> <el-table-column label="扫码工时(分)" align="center" prop="扫码工时" width="110">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.扫码工时 }} {{ scope.row.扫码工时 }}
@@ -185,7 +185,7 @@ export default {
加工工时: response.data.result[i].设备工时, 加工工时: response.data.result[i].设备工时,
扫码工时: response.data.result[i].扫码工时, 扫码工时: response.data.result[i].扫码工时,
辅助工时: response.data.result[i].辅助工时, 辅助工时: response.data.result[i].辅助工时,
工时比值: Number(response.data.result[i].计划工时) === 0 ? 0 : Math.round(response.data.result[i].完成工时 / Number(response.data.result[i].计划工时) * 100) / 100.00, 工时比值: Number(response.data.result[i].计划工时) === 0 ? 0 : Math.round((response.data.result[i].完成工时 + response.data.result[i].修补工时) / Number(response.data.result[i].计划工时) * 100) / 100.00,
加工日期: response.data.result[i].操作时间, 加工日期: response.data.result[i].操作时间,
图号及规格: response.data.result[i].零件图号_零件工艺计划, 图号及规格: response.data.result[i].零件图号_零件工艺计划,
修补工时: response.data.result[i].修补工时, 修补工时: response.data.result[i].修补工时,

View File

@@ -65,16 +65,16 @@
{{ scope.row.修补单件工时 }} {{ scope.row.修补单件工时 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准结(分)" align="center" prop="修补工时" width="90">
<template slot-scope="scope">
{{ scope.row.修补工时 }}
</template>
</el-table-column>
<el-table-column label="加工工时(分)" align="center" prop="完成工时" width="110"> <el-table-column label="加工工时(分)" align="center" prop="完成工时" width="110">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.完成工时 }} {{ scope.row.完成工时 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准结(分)" align="center" prop="修补工时" width="90">
<template slot-scope="scope">
{{ scope.row.修补工时 }}
</template>
</el-table-column>
<el-table-column label="扫码工时(分)" align="center" prop="扫码工时" width="110"> <el-table-column label="扫码工时(分)" align="center" prop="扫码工时" width="110">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.扫码工时 }} {{ scope.row.扫码工时 }}

View File

@@ -2,6 +2,13 @@
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<el-row> <el-row>
<el-date-picker
v-model="startTime"
value-format="yyyy-MM-dd"
size="small"
style="width: 150px;margin:0px 10px"
type="date"
placeholder="加工日期"/>
<el-select v-model="Person" style="width:100px" placeholder="操作工" size="small" filterable clearable> <el-select v-model="Person" style="width:100px" placeholder="操作工" size="small" filterable clearable>
<el-option <el-option
v-for="item in Persons" v-for="item in Persons"
@@ -66,6 +73,11 @@
{{ scope.row.录入人姓名 }} {{ scope.row.录入人姓名 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="录入时间" align="center" width="100">
<template slot-scope="scope">
{{ scope.row.操作时间 ? scope.row.操作时间.split(' ')[0] : '' }}
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>
@@ -76,6 +88,7 @@ import { mapGetters } from 'vuex'
export default { export default {
data() { data() {
return { return {
startTime: '',
Person: '', Person: '',
Persons: [], Persons: [],
partNumber: '', partNumber: '',
@@ -129,14 +142,14 @@ export default {
} }
}, },
saveDate() { saveDate() {
if (this.Person && this.partNumber && this.procedureName && this.number && this.workTime) { if (this.Person && this.partNumber && this.procedureName && this.number && this.workTime && this.startTime) {
saveDate(this.Person, this.partNumber, this.procedureName, this.id, this.number, this.workTime).then(response => { saveDate(this.Person, this.partNumber, this.procedureName, this.id, this.number, this.workTime, this.startTime).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('增加成功') this.$message.success('增加成功')
this.RemoveDate() this.RemoveDate()
this.fetchDate() this.fetchDate()
} else { } else {
this.$message.success('增加失败') this.$message.error('增加失败')
} }
}) })
} else { } else {
@@ -144,14 +157,14 @@ export default {
} }
}, },
editDate() { editDate() {
if (this.Person && this.partNumber && this.procedureName && this.number && this.workTime) { if (this.Person && this.partNumber && this.procedureName && this.number && this.workTime && this.startTime) {
editDate(this.ID, this.Person, this.partNumber, this.procedureName, this.id, this.number, this.workTime).then(response => { editDate(this.ID, this.Person, this.partNumber, this.procedureName, this.id, this.number, this.workTime, this.startTime).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('编辑成功') this.$message.success('编辑成功')
this.RemoveDate() this.RemoveDate()
this.fetchDate() this.fetchDate()
} else { } else {
this.$message.success('编辑失败') this.$message.error('编辑失败')
} }
}) })
} else { } else {
@@ -186,6 +199,7 @@ export default {
this.procedureName = '' this.procedureName = ''
}, },
searchTable(row) { searchTable(row) {
this.startTime = row.加工日期
this.Person = row.操作工流水号 this.Person = row.操作工流水号
this.partNumber = row.零件图号 this.partNumber = row.零件图号
this.procedureName = row.工序 this.procedureName = row.工序

View File

@@ -210,7 +210,7 @@ export default {
this.check ? check2 = 1 : check2 = 0 this.check ? check2 = 1 : check2 = 0
searchTable(check2, this.startTime[0], this.startTime[1], this.orderName, this.order, check, this.name, check1, this.partNumber, this.pageCurrent, this.pageSize).then(response => { searchTable(check2, this.startTime[0], this.startTime[1], this.orderName, this.order, check, this.name, check1, this.partNumber, this.pageCurrent, this.pageSize).then(response => {
response.data.rows.map(v => { response.data.rows.map(v => {
this.$set(v, '工时比值', parseInt(v.计划工时) === 0 ? 0 : (Math.round(parseInt(v.完成工时) / parseInt(v.计划工时) * 100) / 100.00)) this.$set(v, '工时比值', parseInt(v.计划工时) === 0 ? 0 : (Math.round((parseInt(v.完成工时) + parseInt(v.修补工时)) / parseInt(v.计划工时) * 100) / 100.00))
}) })
this.tableData = response.data.rows this.tableData = response.data.rows
this.total = response.data.total this.total = response.data.total

View File

@@ -62,16 +62,16 @@
{{ scope.row.修补单件工时 }} {{ scope.row.修补单件工时 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="准结(分)" width="90px">
<template slot-scope="scope">
{{ scope.row.修补工时 }}
</template>
</el-table-column>
<el-table-column align="center" label="完成工时(分)" width="110px"> <el-table-column align="center" label="完成工时(分)" width="110px">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.完成工时 }} {{ scope.row.完成工时 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="准结(分)" width="90px">
<template slot-scope="scope">
{{ scope.row.修补工时 }}
</template>
</el-table-column>
<el-table-column align="center" label="备注" width="160px" show-overflow-tooltip=""> <el-table-column align="center" label="备注" width="160px" show-overflow-tooltip="">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.备注 }} {{ scope.row.备注 }}

View File

@@ -1,64 +1,140 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<div slot="header"> <el-row>
<el-row style="margin-bottom:-10px!important;"> <el-input v-model="SpareParts" filterable placeholder="零件图号或零件名称" style="width: 150px;margin-left: 10px" size="small" clearable/>
<el-input v-model="materialName" placeholder="名称规格型号" size="small" clearable style="margin-bottom: 10px; width: 180px;"/> <!--<span class="demonstration">时间区间:</span>-->
<el-button type="primary" icon="el-icon-search" size="small" plain style="margin-left: 20px" @click="pageCurrent=1;pageSize=30;searchMaterial()">查询</el-button> <el-date-picker
<el-button type="success" icon="el-icon-bottom" plain size="small" @click="exportExcel()">导出</el-button> v-model="startTime"
</el-row> value-format="yyyy-MM-dd"
</div> size="small"
<el-table :data="tableData1" stripe highlight-current-row border height="600px" style="width: 579px" size="mini"> style="width: 160px;margin-left: 10px"
<el-table-column label="名称" prop="物料名称" align="center" width="150" show-overflow-tooltip> type="date"
<template slot-scope="scope"> placeholder="选择开始日期"/>
{{ scope.row.物料名称 }} <span class="demonstration">~</span>
</template> <el-date-picker
</el-table-column> v-model="endTime"
<el-table-column label="图号或型号" prop="物料型号" align="center" width="180" show-overflow-tooltip> value-format="yyyy-MM-dd"
<template slot-scope="scope"> size="small"
{{ scope.row.物料型号 }} style="width: 160px"
</template> type="date"
</el-table-column> placeholder="选择结束日期"/>
<el-table-column label="规格" prop="物料规格" align="center" width="130" show-overflow-tooltip> <!--<span>质检情况:</span>-->
<template slot-scope="scope"> <el-select v-model="qualityInspectionValue" filterable placeholder="质检情况" size="small" style="width: 100px;margin-left: 10px" clearable>
{{ scope.row.物料规格 }} <el-option
</template> v-for="item in qualityInspection"
</el-table-column> :key="item.value"
<!--<el-table-column label="物料来源" prop="物料来源" align="center" width="80">--> :label="item.label"
<!--<template slot-scope="scope">--> :value="item.value"/>
<!--{{ scope.row.物料来源 }}--> </el-select>
<!--</template>--> <!--<span>质检情况:</span>-->
<!--</el-table-column>--> <el-select v-model="processingResult" filterable placeholder="质检情况" size="small" style="width: 100px;margin-left: 10px" clearable>
<!--&lt;!&ndash; <el-table-column label="仓库" prop="仓库名称" align="center" min-width="90">&ndash;&gt;--> <el-option
<!--&lt;!&ndash; <template slot-scope="scope">&ndash;&gt;--> v-for="item in processingResults"
<!--&lt;!&ndash; {{ scope.row.仓库名称 }}&ndash;&gt;--> :key="item.value"
<!--&lt;!&ndash; </template>&ndash;&gt;--> :label="item.label"
<!--&lt;!&ndash; </el-table-column>&ndash;&gt;--> :value="item.value"/>
<!--<el-table-column label="货位" prop="货位名称" align="center" width="80">--> </el-select>
<!--<template slot-scope="scope">--> <el-button type="primary" size="small" icon="el-icon-search" style="margin-left: 15px;margin-top: 5px" plain @click="pageSize=20; pageCurrent= 1;selecttable()">查询</el-button>
<!--{{ scope.row.货位名称 }}--> <el-tooltip :open-delay="1000" effect="dark" content="导出查询数据" placement="top">
<!--</template>--> <el-button type="warning" size="small" icon="el-icon-download" plain style="margin-left:10px" @click="exportExcel()">导出</el-button>
<!--</el-table-column>--> </el-tooltip>
<el-table-column label="货位存量" align="center" width="100" prop="货位存量"> </el-row>
<template slot-scope="scope"> </el-card>
<template v-if="scope.row.changeValue"> <el-card>
<el-input-number v-model="scope.row.货位存量" :min="0" :precision="2" controls-position="right" size="mini" style="width: 90px"/> <el-table v-loading="loading" :data="tableData1" border size="mini" highlight-current-row style="width: 100%" stripe height="475px">
<el-button class="cancel-btn" size="mini" type="warning" @click="cancelEdit(scope.row)">取消</el-button> <!-- <el-table-column align="center" label="禁用情况" width="80px">-->
</template>
<span v-else>{{ scope.row.货位存量 }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="操作" align="center" width="100">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button v-if="scope.row.changeValue" type="mini" size="mini" icon="el-icon-circle-check-outline" @click="confirmEdit(scope.row)">确定</el-button>--> <!-- <el-tag v-if="parseInt(scope.row.是否禁用)===0||scope.row.是否禁用===''" type="success" size="small" @click="approvalPass(scope.row)">未禁用</el-tag>-->
<!-- <el-button v-else type="primary" icon="el-icon-edit" size="mini" plain @click="scope.row.changeValue=!scope.row.changeValue">编辑</el-button>--> <!-- <el-tag v-if="parseInt(scope.row.是否禁用)===1" type="error" size="small">已禁用</el-tag>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column label="机床图号" align="center" width="110px">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
</template>
</el-table-column>
<el-table-column label="机床名称" align="center" min-width="200px">
<template slot-scope="scope">
{{ scope.row.机床名称 }}
</template>
</el-table-column>
<el-table-column label="组号" align="center" width="60px">
<template slot-scope="scope">
{{ scope.row.组号 }}
</template>
</el-table-column>
<el-table-column label="零件图号" align="center" min-width="130px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.零件图号 }}
</template>
</el-table-column>
<el-table-column label="零件名称" align="center">
<template slot-scope="scope">
{{ scope.row.零件名称 }}
</template>
</el-table-column>
<el-table-column label="加工数" align="center">
<template slot-scope="scope">
{{ scope.row.零件数量 }}
</template>
</el-table-column>
<el-table-column label="规格或材料" align="center" width="120px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.规格或材料 }}
</template>
</el-table-column>
<el-table-column label="工序名称" align="center">
<template slot-scope="scope">
{{ scope.row.工艺名称 }}
</template>
</el-table-column>
<!-- <el-table-column label="质检类型" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.质检类型 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="质检人员" align="center">
<template slot-scope="scope">
{{ scope.row.姓名 }}
</template>
</el-table-column>
<el-table-column label="质检数量" align="center">
<template slot-scope="scope">
{{ scope.row.数量 }}
</template>
</el-table-column>
<el-table-column label="不合格数" align="center" width="90px">
<template slot-scope="scope">
{{ scope.row.不合格数量 }}
</template>
</el-table-column>
<el-table-column label="不合格原因" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.不合格原因文本 }}
</template>
</el-table-column>
<el-table-column label="处理结果" align="center">
<template slot-scope="scope">
{{ scope.row.不合格处理文本 }}
</template>
</el-table-column>
<el-table-column label="质检时间" align="center" width="100px">
<template slot-scope="scope">
{{ scope.row.操作时间 ? scope.row.操作时间.split(' ')[0] : '' }}
</template>
</el-table-column>
<el-table-column label="备注" align="center">
<template slot-scope="scope">
{{ scope.row.备注 }}
</template>
</el-table-column>
</el-table> </el-table>
<div class="block" style="margin-top: 10px;"> <div class="block">
<el-pagination <el-pagination
v-if="!loading"
:current-page="pageCurrent" :current-page="pageCurrent"
:page-sizes="[10, 20, 30, 40, 50]" :page-sizes="[10, 20, 30, 40, 100]"
:page-size="pageSize" :page-size="pageSize"
:total="total" :total="total"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
@@ -70,347 +146,118 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { selecttable, getprocessingresult } from '@/api/ManufacturingCenter/QualityInspectionQueryMetalworking'
import request from '@/utils/request'
export default { export default {
data() { data() {
return { return {
materialName: '', SpareParts: '',
materialSpec: '', startTime: '', // 开始时间
materialModel: '', endTime: '', // 结束时间
tableData1: [], qualityInspectionValue: '', // 零件名称机床名称零件图号
qualityInspection: [
{
value: 1,
label: '合格'
}, {
value: 2,
label: '不合格'
}
], // 质检情况
pageSize: 10,
pageCurrent: 1, pageCurrent: 1,
pageSize: 30,
total: 0, total: 0,
dialogVisible: false, loading: false,
tableData01: [], tableData1: [],
pageCurrent01: 1, processingResult: '',
pageSize01: 10, processingResults: [],
total01: 0, check1: '',
localNumber: '', check2: '',
materialValue: '', check3: '',
isBacklog: false check4: '',
check5: '',
check6: '',
check7: '',
check8: '',
check9: ''
} }
}, },
computed: { created() {
...mapGetters([ this.getProcessingResult()
'id' // 人员编号
])
},
mounted() {
this.initData()
this.searchMaterial()
}, },
methods: { methods: {
// EXCEL 导出 selecttable() {
// 姜福壮 this.loading = true
exportExcel() { this.tableData1 = []
let check1, check2, check3 if (this.SpareParts !== '' && this.SpareParts !== null) { this.check3 = 1 } else { this.check3 = 0 }
this.materialName ? check1 = 1 : check1 = 0 if (this.QualityTypeValue !== '' && this.QualityTypeValue !== null) { this.check4 = 1 } else { this.check4 = 0 }
this.materialSpec ? check2 = 1 : check2 = 0 if (this.startTime !== '' && this.startTime !== null) { this.check5 = 1 } else { this.check5 = 0 }
this.materialModel ? check3 = 1 : check3 = 0 if (this.endTime !== '' && this.endTime !== null) { this.check6 = 1 } else { this.check6 = 0 }
var param = [] if (this.qualityInspectionValue !== '' && this.qualityInspectionValue !== null) { this.check7 = 1 } else { this.check7 = 0 }
param[0] = ['物料名称_check', check1] if (this.personNum !== '' && this.personNum !== null) { this.check8 = 1 } else { this.check8 = 0 }
param[1] = ['物料名称', this.materialName] if (this.processingResult !== '' && this.processingResult !== null) { this.check9 = 1 } else { this.check9 = 0 }
param[2] = ['物料规格_check', check2] selecttable(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.SpareParts, this.check4, this.QualityTypeValue, this.check5, this.startTime, this.check6, this.endTime, this.check7, this.qualityInspectionValue, this.check8, this.personNum, this.check9, this.processingResult, this.pageCurrent, this.pageSize).then(response => {
param[3] = ['物料规格', this.materialSpec] this.tableData1 = response.data.result
param[4] = ['物料型号_check', check3] this.loading = false
param[5] = ['物料型号', this.materialModel] this.total = parseInt(response.data.output[0].ItemCount)
var Data = this.CreateData('2001', '报表_采购部仓库_库存_查询', param) })
this.exportExcel_NPOI(Data)
}, },
// 初始化数据 getProcessingResult() {
initData() { getprocessingresult().then(response => {
const param = { for (let i = 0; i < response.data.length; i++) {
url: '', this.processingResults.push({
method: 'post', label: response.data[i].不合格处理文本,
data: { value: response.data[i].不合格处理文本
type: '1',
name: '库存管理_货位主文件_仓库查询'
}
}
request(param).then(res => {
for (let i = 0; i < res.data.length; i++) {
this.inventoryName.push({
label: res.data[i].仓库名称,
value: res.data[i].仓库流水号
}) })
} }
}) })
}, },
// 根据条件查物料货位数量 exportExcel() {
searchMaterial() { let check1, check2, check3, check4, check5, check6, check7, check8, check9
let check1, check2, check3 this.machineNumberValue ? check1 = 1 : check1 = 0
this.materialName ? check1 = 1 : check1 = 0 this.groupNumberValue ? check2 = 1 : check2 = 0
this.materialSpec ? check2 = 1 : check2 = 0 this.SpareParts ? check3 = 1 : check3 = 0
this.materialModel ? check3 = 1 : check3 = 0 this.QualityTypeValue ? check4 = 1 : check4 = 0
const param = { this.startTime ? check5 = 1 : check5 = 0
url: '', this.endTime ? check6 = 1 : check6 = 0
method: 'post', this.qualityInspectionValue ? check7 = 1 : check7 = 0
data: { this.personNum ? check8 = 1 : check8 = 0
type: '1', this.processingResult ? check9 = 1 : check9 = 0
name: `库存管理_库存盘点_物料货位数量_查询数据_新`, var param = []
param: `物料名称_check=${check1}&物料名称=${this.materialName}&物料规格_check=${check2}&物料规格=${this.materialSpec}&物料型号_check=${check3}&物料型号=${this.materialModel}`, param[0] = ['机床流水号_check', check1]
Pagination: this.pageCurrent + '&' + this.pageSize param[1] = ['机床流水号', this.machineNumberValue]
} param[2] = ['组件流水号_check', check2]
} param[3] = ['组件流水号', this.groupNumberValue]
request(param).then(res => { param[4] = ['零件名称_check', check3]
this.tableData1 = res.data.rows param[5] = ['零件名称', this.SpareParts]
this.tableData1.map(v => { param[6] = ['质检类型代码_check', check4]
this.$set(v, 'changeValue', false) param[7] = ['质检类型代码', this.QualityTypeValue]
v.原货位存量 = v.货位存量 param[8] = ['开始时间_check', check5]
return v param[9] = ['开始时间', this.startTime]
}) param[10] = ['结束时间_check', check6]
this.total = res.data.total param[11] = ['结束时间', this.endTime]
}) param[12] = ['质检情况_check', check7]
param[13] = ['质检情况', this.qualityInspectionValue]
param[14] = ['人员编号_check', check8]
param[15] = ['人员编号', this.personNum]
param[16] = ['处理结果_check', check9]
param[17] = ['处理结果', this.processingResult]
var Data = this.CreateData('2001', '报表_质检管理_质量情况_金工_查询数据', param)
this.exportExcel_NPOI(Data)
}, },
// 分页 // 分页
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val
this.pageCurrent = 1 this.pageCurrent = 1
this.searchMaterial() this.pageSize = val
this.selecttable()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageCurrent = val this.pageCurrent = val
this.searchMaterial() this.selecttable()
},
// 取消设置
cancelEdit(row) {
row.货位存量 = row.原货位存量
row.changeValue = false
this.$message('取消修改')
},
// 确认设置
confirmEdit(row) {
Number(row.货位存量) ? row.货位存量 = Number(row.货位存量) : row.货位存量 = 0
const param = {
url: '',
method: 'post',
data: {
type: '2',
name: `库存管理_库存盘点_物料货位数量_修改数据`,
param: `货位存量=${row.货位存量}&物料流水号=${row.物料流水号}&货位流水号=${row.货位流水号}&物料来源=${row.物料来源}`
}
}
request(param).then(res => {
if (res.data[0].result === '1') {
this.$message.success('操作成功')
row.changeValue = false
} else {
this.$message.error('操作失败')
}
})
},
// 新增物料货位数量
addMaterial() {
this.dialogVisible = true
},
// 选择物料
selectMaterial(row) {
this.materialValue = row.物料流水号
},
// 确认新增物料货位数量
submitAdd() {
const param = {
url: '',
method: 'post',
data: {
type: '2',
name: `库存管理_库存盘点_物料货位数量_增加数据`,
param: `物料流水号=${this.materialValue}&货位流水号=${this.locateNameValue}&货位存量=${this.localNumber}&是否为滞货=${Number(this.isBacklog)}`
}
}
request(param).then(res => {
if (res.data[0].result === '1') {
this.$message.success('操作成功')
this.dialogVisible = false
} else {
this.$message.error('操作失败')
}
})
},
// 查物料
searchMaterial01() {
let check1, check2, check3
this.materialName ? check1 = 1 : check1 = 0
this.materialSpec ? check2 = 1 : check2 = 0
this.materialModel ? check3 = 1 : check3 = 0
const param = {
url: '',
method: 'post',
data: {
type: '1',
name: `库存管理_物料主文件_基本_查询数据_分页`,
param: `物料名称_check=${check1}&物料名称=${this.materialName}&物料规格_check=${check2}&物料规格=${this.materialSpec}&物料型号_check=${check3}&物料型号=${this.materialModel}&PageCurrent=${this.pageCurrent01}=int&PageSize=${this.pageSize01}=int&PageCount=1=int=output&ItemCount=1=int=output`
}
}
request(param).then(res => {
this.tableData01 = res.data.result
this.total01 = Number(res.data.output[0].ItemCount)
})
},
// 分页
handleSizeChange01(val) {
this.pageSize01 = val
this.pageCurrent01 = 1
this.searchMaterial01()
},
handleCurrentChange01(val) {
this.pageCurrent01 = val
this.searchMaterial01()
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.el-select{
width:165px
}
.el-input{
width:165px
}
</style> </style>
<!--<template>-->
<!-- <div class="app-container">-->
<!-- <el-card>-->
<!-- <div slot="header">-->
<!-- <el-row style="margin-bottom:-10px!important;">-->
<!-- <span>物料名称:</span>-->
<!-- <el-input v-model="materialName" placeholder="物料名称" size="small" clearable style="margin-bottom: 10px;"/>-->
<!-- <span>物料规格:</span>-->
<!-- <el-input v-model="materialSpec" placeholder="物料规格" size="small" style="margin-bottom: 10px;" clearable/>-->
<!-- <span>物料型号:</span>-->
<!-- <el-input v-model="materialModel" placeholder="物料型号" size="small" style="margin-bottom: 10px;" clearable/>-->
<!-- <el-button type="success" icon="el-icon-search" size="small" style="margin-left: 10px" @click="pageCurrent=1;pageSize=10;searchMaterial()">查询</el-button>-->
<!-- </el-row>-->
<!-- </div>-->
<!-- <el-table :data="tableData1" stripe border height="700px" size="mini" show-summary>-->
<!-- <el-table-column label="名称" prop="物料名称" align="center" width="130" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.物料名称 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="图号或型号" prop="物料型号" align="center" width="150" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.物料型号 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="规格" prop="物料规格" align="center" width="200" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.物料规格 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="物料来源" prop="物料来源" align="center" width="100">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.物料来源 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="仓库" prop="仓库名称" align="center" min-width="90">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.仓库名称 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="货位" align="center" min-width="90">-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.货位名称 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="货位存量" align="center" width="150" prop="货位存量">-->
<!-- <template slot-scope="scope">-->
<!-- <template v-if="scope.row.changeValue">-->
<!-- <el-input-number v-model="scope.row.货位存量" :min="0" :precision="2" controls-position="right" size="mini" style="width: 90px"/>-->
<!-- <el-button class="cancel-btn" size="mini" type="warning" @click="cancelEdit(scope.row)">取消</el-button>-->
<!-- </template>-->
<!-- <span v-else>{{ scope.row.货位存量 }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- <div class="block" style="margin-top: 10px;">-->
<!-- <el-pagination-->
<!-- :current-page="pageCurrent"-->
<!-- :page-sizes="[10, 20, 30, 40, 50]"-->
<!-- :page-size="pageSize"-->
<!-- :total="total"-->
<!-- layout="total, sizes, prev, pager, next, jumper"-->
<!-- @size-change="handleSizeChange"-->
<!-- @current-change="handleCurrentChange"/>-->
<!-- </div>-->
<!-- </el-card>-->
<!-- </div>-->
<!--</template>-->
<!--<script>-->
<!--import { mapGetters } from 'vuex'-->
<!--import request from '@/utils/request'-->
<!--export default {-->
<!-- data() {-->
<!-- return {-->
<!-- materialName: '',-->
<!-- materialSpec: '',-->
<!-- materialModel: '',-->
<!-- tableData1: [],-->
<!-- pageCurrent: 1,-->
<!-- pageSize: 10,-->
<!-- total: 0-->
<!-- }-->
<!-- },-->
<!-- computed: {-->
<!-- ...mapGetters([-->
<!-- 'id' // 人员编号-->
<!-- ])-->
<!-- },-->
<!-- mounted() {-->
<!-- this.searchMaterial()-->
<!-- },-->
<!-- methods: {-->
<!-- // 根据条件查物料货位数量-->
<!-- searchMaterial() {-->
<!-- // this.$router.push('/ManufacturingCenter/StatusQuery')-->
<!-- let check1, check2, check3-->
<!-- this.materialName ? check1 = 1 : check1 = 0-->
<!-- this.materialSpec ? check2 = 1 : check2 = 0-->
<!-- this.materialModel ? check3 = 1 : check3 = 0-->
<!-- const param = {-->
<!-- url: '',-->
<!-- method: 'post',-->
<!-- data: {-->
<!-- type: '1',-->
<!-- name: `库存管理_库存盘点_物料货位数量_查询数据`,-->
<!-- param: `物料名称_check=${check1}&物料名称=${this.materialName}&物料规格_check=${check2}&物料规格=${this.materialSpec}&物料型号_check=${check3}&物料型号=${this.materialModel}&仓库流水号_check=${0}&仓库流水号=${0}&货位流水号_check=${0}&货位流水号=${0}`,-->
<!-- Pagination: this.pageCurrent + '&' + this.pageSize-->
<!-- }-->
<!-- }-->
<!-- request(param).then(res => {-->
<!-- this.tableData1 = res.data.rows-->
<!-- this.tableData1.map(v => {-->
<!-- this.$set(v, 'changeValue', false)-->
<!-- v.原货位存量 = v.货位存量-->
<!-- return v-->
<!-- })-->
<!-- this.total = res.data.total-->
<!-- })-->
<!-- },-->
<!-- // 分页-->
<!-- handleSizeChange(val) {-->
<!-- this.pageSize = val-->
<!-- this.pageCurrent = 1-->
<!-- this.searchMaterial()-->
<!-- },-->
<!-- handleCurrentChange(val) {-->
<!-- this.pageCurrent = val-->
<!-- this.searchMaterial()-->
<!-- }-->
<!-- }-->
<!--}-->
<!--</script>-->
<!--<style scoped>-->
<!-- .el-select{-->
<!-- width:165px-->
<!-- }-->
<!-- .el-input{-->
<!-- width:165px-->
<!-- }-->
<!--</style>-->

View File

@@ -215,8 +215,8 @@ export default {
this.personValue ? check3 = 1 : check3 = 0 this.personValue ? check3 = 1 : check3 = 0
var param = [] var param = []
param[0] = ['查询全部', this.radio] param[0] = ['查询全部', this.radio]
param[1] = ['供应商名称_check', check1] param[1] = ['供应商流水号_check', check1]
param[2] = ['供应商名称', this.supplierValue] param[2] = ['供应商流水号', this.supplierValue]
param[3] = ['时间段_check', check2] param[3] = ['时间段_check', check2]
if (check2 === 0) { if (check2 === 0) {
param[4] = ['开始时间', ''] param[4] = ['开始时间', '']

View File

@@ -712,6 +712,8 @@ export default {
this.tableData02 = [] this.tableData02 = []
this.tableData03 = [] this.tableData03 = []
if (this.contractType === '采购合同') { if (this.contractType === '采购合同') {
this.showtable02 = true
this.showtable03 = false
searchPurchaseDetail(row.采购合同流水号).then(response => { searchPurchaseDetail(row.采购合同流水号).then(response => {
response.data.map(data => { response.data.map(data => {
this.$set(data, '本次到票数量', 0) this.$set(data, '本次到票数量', 0)
@@ -720,8 +722,11 @@ export default {
}) })
}) })
} else if (this.contractType === '离线合同') { } else if (this.contractType === '离线合同') {
this.showtable02 = false
this.showtable03 = true
searchOfflineDetail(row.离线合同流水号).then(response => { searchOfflineDetail(row.离线合同流水号).then(response => {
response.data.map(data => { response.data.map(data => {
console.log(data, 'tableData3')
this.$set(data, '本次到票数量', 0) this.$set(data, '本次到票数量', 0)
data.本次到票数量 = data.到货数量 - data.到票数量 data.本次到票数量 = data.到货数量 - data.到票数量
this.tableData03.push(data) this.tableData03.push(data)

View File

@@ -474,6 +474,8 @@ export default {
this.tableData1 = response.data.rows this.tableData1 = response.data.rows
this.total1 = response.data.total this.total1 = response.data.total
}) })
this.tableData2 = []
this.gridData = []
this.totalSum = 0 this.totalSum = 0
this.totalPay = 0 this.totalPay = 0
searchPurchaseContract(1, check2, this.supplierValue).then(response => { searchPurchaseContract(1, check2, this.supplierValue).then(response => {

View File

@@ -177,6 +177,11 @@
{{ scope.row.采购合同名称 || scope.row.离线合同名称 }} {{ scope.row.采购合同名称 || scope.row.离线合同名称 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="采购数量" align="center" width="100">
<template slot-scope="scope">
{{ scope.row.采购数量 }}
</template>
</el-table-column>
<el-table-column label="到票数量" align="center" width="100"> <el-table-column label="到票数量" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.到票数量 }} {{ scope.row.到票数量 }}

View File

@@ -565,6 +565,11 @@ export default {
purchasingOrder: '', purchasingOrder: '',
ArrivalOrderNumber: '', ArrivalOrderNumber: '',
ArrivalOrderMXNumber: '', ArrivalOrderMXNumber: '',
ArrivalDetailSerialNumber: '',
ArrivalOrderGroup: [],
ArrivalOrderMXNumberGroup: [],
numberGroup: [],
LxnumberGroup: [],
supplierName0: '', supplierName0: '',
planType: 0, planType: 0,
planTypes: [ planTypes: [
@@ -1036,12 +1041,34 @@ export default {
}) })
}, },
deleteArrivalOrder(row) { // 删除采购单 deleteArrivalOrder(row) { // 删除采购单
this.ArrivalOrderGroup = []
this.ArrivalOrderMXNumberGroup = []
this.numberGroup = []
this.LxnumberGroup = []
this.ArrivalDetailSerialNumber = ''
searchTable5(row.到货单流水号).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.ArrivalDetailSerialNumber = response.data[i].到货单明细流水号
this.ArrivalOrderGroup.push(response.data[i].到货单明细流水号)
console.log(this.ArrivalDetailSerialNumber, 231)
searchTable6(this.ArrivalDetailSerialNumber).then(response => {
for (let j = 0; j < response.data.length; j++) {
this.ArrivalOrderMXNumberGroup.push(response.data[j].到货单明细绑定流水号)
this.numberGroup.push(response.data[j].采购计划明细流水号)
this.LxnumberGroup.push(response.data[j].离线采购计划明细流水号)
}
})
}
console.log(this.ArrivalOrderMXNumberGroup, this.numberGroup, this.LxnumberGroup, 111)
})
this.$confirm('确定删除该到货单?', '提示', { this.$confirm('确定删除该到货单?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
deletePurchaseOrder(row.到货单流水号).then(response => { console.log(row.到货单流水号, this.ArrivalOrderGroup, this.ArrivalOrderMXNumberGroup, this.numberGroup, this.LxnumberGroup, 2222)
deletePurchaseOrder(row.到货单流水号, this.ArrivalOrderGroup, this.ArrivalOrderMXNumberGroup, this.numberGroup, this.LxnumberGroup).then(response => {
console.log(response, 123)
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('删除成功') this.$message.success('删除成功')
this.searchTable4() this.searchTable4()
@@ -1101,12 +1128,14 @@ export default {
this.到货重量组 = [] this.到货重量组 = []
this.到货金额组 = [] this.到货金额组 = []
this.arrest.map(v => { this.arrest.map(v => {
this.工艺计划流水号组.push(v.工艺计划流水号) if (v.到货重量 > 0) {
this.采购计划明细流水号组.push(v.采购计划明细流水号) this.工艺计划流水号组.push(v.工艺计划流水号)
this.离线采购计划明细流水号组.push(v.离线采购计划明细流水号) this.采购计划明细流水号组.push(v.采购计划明细流水号)
this.本次到货数量组.push(v.未到货数量) this.离线采购计划明细流水号组.push(v.离线采购计划明细流水号)
this.到货量组.push(v.到货量) this.本次到货量组.push(v.到货量)
this.到货金额组.push(v.到货重量 * this.form10.单价) this.到货重量组.push(v.到货重量)
this.到货金额组.push(v.到货重量 * this.form10.单价)
}
}) })
AddArrivalOrderMX(this.ArrivalOrderNumber, this.form10.CailiaoValue, this.form10.数量, this.form10.单位, this.form10.单价, this.form10.金额, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组, this.到货重量组, this.到货金额组, this.userId).then(response => { AddArrivalOrderMX(this.ArrivalOrderNumber, this.form10.CailiaoValue, this.form10.数量, this.form10.单位, this.form10.单价, this.form10.金额, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组, this.到货重量组, this.到货金额组, this.userId).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
@@ -1176,17 +1205,28 @@ export default {
}) })
}, },
deleteArrivalMX(row) { deleteArrivalMX(row) {
this.ArrivalOrderMXNumberGroup = []
this.numberGroup = []
this.LxnumberGroup = []
searchTable6(this.ArrivalOrderMXNumber).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.ArrivalOrderMXNumberGroup.push(response.data[i].到货单明细绑定流水号)
this.numberGroup.push(response.data[i].采购计划明细流水号)
this.LxnumberGroup.push(response.data[i].离线采购计划明细流水号)
}
})
this.$confirm('确定取消该物料的到货信息?', '提示', { this.$confirm('确定取消该物料的到货信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
deleteArrivalMX(row.到货单明细流水号).then(response => { deleteArrivalMX(row.到货单明细流水号, this.ArrivalOrderMXNumberGroup, this.numberGroup, this.LxnumberGroup).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('删除成功') this.$message.success('删除成功')
searchTable5(this.ArrivalOrderNumber).then(response => { searchTable5(this.ArrivalOrderNumber).then(response => {
this.tableData5 = response.data this.tableData5 = response.data
}) })
this.tableData6 = []
} else { this.$message.error('数据占用,删除失败') } } else { this.$message.error('数据占用,删除失败') }
}) })
}).catch(() => { }).catch(() => {
@@ -1205,7 +1245,6 @@ export default {
if (response.data.length !== 0) { if (response.data.length !== 0) {
this.中间变量 = response.data[0].单件重量 this.中间变量 = response.data[0].单件重量
this.未绑定数量 = response.data[0].未绑定数量 this.未绑定数量 = response.data[0].未绑定数量
console.log(this.未绑定数量, 111)
} else { } else {
this.未绑定数量 = row.数量 this.未绑定数量 = row.数量
} }
@@ -1248,12 +1287,14 @@ export default {
this.到货重量组 = [] this.到货重量组 = []
this.到货金额组 = [] this.到货金额组 = []
this.arrest1.map(v => { this.arrest1.map(v => {
this.工艺计划流水号组.push(v.工艺计划流水号) if (v.到货数量 > 0) {
this.采购计划明细流水号组.push(v.采购计划明细流水号) this.工艺计划流水号组.push(v.工艺计划流水号)
this.离线采购计划明细流水号组.push(v.离线采购计划明细流水号) this.采购计划明细流水号组.push(v.采购计划明细流水号)
this.本次到货数量组.push(v.未到货数量) this.离线采购计划明细流水号组.push(v.离线采购计划明细流水号)
this.到货量组.push(v.到货量) this.本次到货量组.push(v.到货量)
this.到货金额组.push(v.到货重量 * this.单价) this.到货重量组.push(v.到货重量)
this.到货金额组.push(v.到货重量 * this.单价)
}
}) })
addMateriel(this.ArrivalOrderMXNumber, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组, this.到货重量组, this.到货金额组, this.userId).then(response => { addMateriel(this.ArrivalOrderMXNumber, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组, this.到货重量组, this.到货金额组, this.userId).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {

View File

@@ -163,6 +163,7 @@
<el-tooltip effect="dark" content="取消关联" placement="top"> <el-tooltip effect="dark" content="取消关联" placement="top">
<div style="display: inline-block"> <div style="display: inline-block">
<el-button <el-button
:disabled="disabled"
type="text" type="text"
size="mini" size="mini"
icon="el-icon-right" icon="el-icon-right"
@@ -290,6 +291,7 @@ export default {
name: '', // 发票交接单 name: '', // 发票交接单
data() { data() {
return { return {
disabled: false,
addTable1_disable: false, addTable1_disable: false,
aboutArrival_disable: false, aboutArrival_disable: false,
dateRange: '', dateRange: '',
@@ -469,6 +471,8 @@ export default {
}, },
searchTable02(row) { // 查看详情(发票包含的合同) searchTable02(row) { // 查看详情(发票包含的合同)
this.发票流水号 = row.发票流水号 this.发票流水号 = row.发票流水号
row.是否请款 === '1' ? this.disabled = true : this.disabled = false
console.log(this.disabled, 123)
searchInvoiceDetail(this.发票流水号).then(response => { searchInvoiceDetail(this.发票流水号).then(response => {
this.gridData = response.data this.gridData = response.data
}) })

View File

@@ -37,12 +37,15 @@
<el-card style="width: 100%"> <el-card style="width: 100%">
<el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="mini" style="width: 100%" height="750" @sort-change="sortChange"> <el-table v-loading="loading" :data="tableData" highlight-current-row border stripe size="mini" style="width: 100%" height="750" @sort-change="sortChange">
<el-table-column label="序号" align="center" type="index" width="50"/> <el-table-column label="序号" align="center" type="index" width="50"/>
<!--<el-table-column label="进程" align="center" prop="进程" sortable="custom" width="80px">-->
<!--<template slot-scope="scope">-->
<!--<span v-if="Number(scope.row.是否到货)===0" type="warning" size="mini">未到</span>-->
<!--<span v-if="Number(scope.row.是否到货)===1" type="primary" size="mini">已到</span>-->
<!--<span v-if="Number(scope.row.是否到货)===2" type="success" size="mini">已结</span>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="进程" align="center" prop="进程" sortable="custom" width="80px"> <el-table-column label="进程" align="center" prop="进程" sortable="custom" width="80px">
<template slot-scope="scope"> <template slot-scope="scope">{{ scope.row.备料状态 }}</template>
<span v-if="Number(scope.row.是否到货)===0" type="warning" size="mini">未到</span>
<span v-if="Number(scope.row.是否到货)===1" type="primary" size="mini">已到</span>
<span v-if="Number(scope.row.是否到货)===2" type="success" size="mini">已结</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="供应商" label="供应商"
@@ -58,7 +61,7 @@
label="物料编码" label="物料编码"
align="center" align="center"
width="180px"> width="180px">
<template slot-scope="scope">{{ scope.row.物料编码 }}</template> <template slot-scope="scope">{{ scope.row.物料编码 ? scope.row.物料编码 : scope.row.零件图号 }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="物料名称" label="物料名称"
@@ -76,6 +79,12 @@
align="center"> align="center">
<template slot-scope="scope">{{ scope.row.材料 }}</template> <template slot-scope="scope">{{ scope.row.材料 }}</template>
</el-table-column> </el-table-column>
<el-table-column
label="计划件数"
align="center"
width="100">
<template slot-scope="scope">{{ scope.row.批次数量 }}</template>
</el-table-column>
<el-table-column label="备料件数" align="center" width="100"> <el-table-column label="备料件数" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.采购数量 }} {{ scope.row.采购数量 }}
@@ -162,13 +171,22 @@ export default {
MaterialsValue: '', MaterialsValue: '',
Materials: [{ Materials: [{
value: 0, value: 0,
label: '未到' label: '已结'
}, { }, {
value: 1, value: 1,
label: '已到' label: '已到'
}, { }, {
value: 2, value: 2,
label: '已结' label: '未到'
}, {
value: 3,
label: '未采'
}, {
value: 4,
label: '自家'
}, {
value: 5,
label: '未分配'
}], }],
loading: false, loading: false,
total: 0, total: 0,

View File

@@ -216,8 +216,8 @@ export default {
this.dateRange ? check2 = 1 : (check2 = 0, this.dateRange = '') this.dateRange ? check2 = 1 : (check2 = 0, this.dateRange = '')
var param = [] var param = []
param[0] = ['查询全部', this.radio] param[0] = ['查询全部', this.radio]
param[1] = ['供应商名称_check', check1] param[1] = ['供应商流水号_check', check1]
param[2] = ['供应商名称', this.supplierValue] param[2] = ['供应商流水号', this.supplierValue]
param[3] = ['时间段_check', check2] param[3] = ['时间段_check', check2]
if (check2 === 0) { if (check2 === 0) {
param[4] = ['开始时间', ''] param[4] = ['开始时间', '']