Commit 9db3f6af authored by 张海景's avatar 张海景

update:修改生产工单一屏显示

parent 67d6f8bd
...@@ -754,12 +754,12 @@ export default { ...@@ -754,12 +754,12 @@ export default {
tableColumn: [ tableColumn: [
{ {
type: 'selection', type: 'selection',
width: 80 width: 60
}, },
{ {
name: 'arrangeCode', name: 'arrangeCode',
label: '编排单号', label: '编排单号',
width: 120, width: 85,
cellFun: (row, index) => { cellFun: (row, index) => {
console.log(row, index) console.log(row, index)
this.tableDataDetail = row.proWorkorderList; this.tableDataDetail = row.proWorkorderList;
...@@ -767,20 +767,19 @@ export default { ...@@ -767,20 +767,19 @@ export default {
} }
}, },
{ {
name: 'scheduleStartDate', name: 'scheduleStartDateStr',
label: '计划开始时间', label: '计划开始时间',
width: 140, width: 95,
}, },
{ {
name: 'scheduleEndDate', name: 'scheduleEndDateStr',
label: '计划结束时间', label: '计划结束时间',
width: 140 width: 95
}, },
{ {
name: 'quantity', name: 'quantity',
label: '排产数量', label: '排产数量',
width: 80, width: 70,
align: 'center'
}, },
{ {
name: 'quantityWait', name: 'quantityWait',
...@@ -797,8 +796,7 @@ export default { ...@@ -797,8 +796,7 @@ export default {
ERROR_STOP: '异常停工', ERROR_STOP: '异常停工',
FINISH: '完工' FINISH: '完工'
}, },
width: 100, width: 65,
align: 'center'
}, },
// { // {
// name: 'date', // name: 'date',
...@@ -808,7 +806,7 @@ export default { ...@@ -808,7 +806,7 @@ export default {
{ {
name: 'taskCode', name: 'taskCode',
label: '任务单号', label: '任务单号',
width: 120 width: 100
}, },
// { // {
// name: 'workorderCode', // name: 'workorderCode',
...@@ -827,19 +825,17 @@ export default { ...@@ -827,19 +825,17 @@ export default {
{ {
name: 'processName', name: 'processName',
label: '工序', label: '工序',
width: 60 width: 80
}, },
{ {
name: 'quantityQualify', name: 'quantityQualify',
label: '合格数量', label: '合格数量',
width: 80, width: 70,
align: 'center'
}, },
{ {
name: 'quantityUnqualify', name: 'quantityUnqualify',
label: '不合格数量', label: '不合格数量',
width: 80, width: 80,
align: 'center'
}, },
// { // {
// name: 'clientName', // name: 'clientName',
...@@ -1318,7 +1314,13 @@ userTempVisible: false, ...@@ -1318,7 +1314,13 @@ userTempVisible: false,
.then((res) => { .then((res) => {
if (res.code === 200) { if (res.code === 200) {
// 过滤可加工数量为0的数据 // 过滤可加工数量为0的数据
this.tableData = res.rows this.tableData = res.rows.map(item => {
return {
...item,
scheduleStartDateStr: item.scheduleStartDate.substring(2, 16),
scheduleEndDateStr: item.scheduleEndDate.substring(2, 16),
}
})
if (this.tableData.length > 0) { if (this.tableData.length > 0) {
this.curTaskInfo = this.tableData[0]; this.curTaskInfo = this.tableData[0];
this.getMaterialUsageRecordList(); this.getMaterialUsageRecordList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment