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