|
@ -299,7 +299,7 @@ const isShowMainButton = (row, val) => { |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED') && isReceiver(row.maintenance)}), // 编辑 |
|
|
defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && isReceiver(row.maintenance)) }), // 编辑 |
|
|
defaultButtons.acceptOrderBtn({ |
|
|
defaultButtons.acceptOrderBtn({ |
|
|
hide: !( |
|
|
hide: !( |
|
|
row.status == 'PENDING' && |
|
|
row.status == 'PENDING' && |
|
@ -602,7 +602,7 @@ const detailSubmitForm= async (formType,data,getList,formRef,tableList) => { |
|
|
const openFormCallBack = (type, row, masterParmas, callback) => { |
|
|
const openFormCallBack = (type, row, masterParmas, callback) => { |
|
|
if (operatRecord.value.type == 'TECH') { |
|
|
if (operatRecord.value.type == 'TECH') { |
|
|
MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { |
|
|
MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'maintenance') { |
|
|
if (item.field == 'maintenances') { |
|
|
selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { |
|
|
selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { |
|
|
item.componentProps.options = response |
|
|
item.componentProps.options = response |
|
|
callback(); |
|
|
callback(); |
|
@ -611,7 +611,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { |
|
|
}) |
|
|
}) |
|
|
} else if (operatRecord.value.type == 'DEVICE') { |
|
|
} else if (operatRecord.value.type == 'DEVICE') { |
|
|
MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { |
|
|
MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'maintenance') { |
|
|
if (item.field == 'maintenances') { |
|
|
selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { |
|
|
selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { |
|
|
item.componentProps.options = response |
|
|
item.componentProps.options = response |
|
|
callback(); |
|
|
callback(); |
|
@ -620,7 +620,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { |
|
|
}) |
|
|
}) |
|
|
} else if (operatRecord.value.type == 'MOLD') { |
|
|
} else if (operatRecord.value.type == 'MOLD') { |
|
|
MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { |
|
|
MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'maintenance') { |
|
|
if (item.field == 'maintenances') { |
|
|
selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { |
|
|
selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { |
|
|
item.componentProps.options = response |
|
|
item.componentProps.options = response |
|
|
callback(); |
|
|
callback(); |
|
|