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

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

parent 67d6f8bd
......@@ -754,12 +754,12 @@ export default {
tableColumn: [
{
type: 'selection',
width: 80
width: 60
},
{
name: 'arrangeCode',
label: '编排单号',
width: 120,
width: 85,
cellFun: (row, index) => {
console.log(row, index)
this.tableDataDetail = row.proWorkorderList;
......@@ -767,20 +767,19 @@ export default {
}
},
{
name: 'scheduleStartDate',
name: 'scheduleStartDateStr',
label: '计划开始时间',
width: 140,
width: 95,
},
{
name: 'scheduleEndDate',
name: 'scheduleEndDateStr',
label: '计划结束时间',
width: 140
width: 95
},
{
name: 'quantity',
label: '排产数量',
width: 80,
align: 'center'
width: 70,
},
{
name: 'quantityWait',
......@@ -797,8 +796,7 @@ export default {
ERROR_STOP: '异常停工',
FINISH: '完工'
},
width: 100,
align: 'center'
width: 65,
},
// {
// name: 'date',
......@@ -808,7 +806,7 @@ export default {
{
name: 'taskCode',
label: '任务单号',
width: 120
width: 100
},
// {
// name: 'workorderCode',
......@@ -827,19 +825,17 @@ export default {
{
name: 'processName',
label: '工序',
width: 60
width: 80
},
{
name: 'quantityQualify',
label: '合格数量',
width: 80,
align: 'center'
width: 70,
},
{
name: 'quantityUnqualify',
label: '不合格数量',
width: 80,
align: 'center'
},
// {
// name: 'clientName',
......@@ -1318,7 +1314,13 @@ userTempVisible: false,
.then((res) => {
if (res.code === 200) {
// 过滤可加工数量为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) {
this.curTaskInfo = this.tableData[0];
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