|
|
@ -444,42 +444,42 @@ const butttondata = (row) => { |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainPurPlanOpe') { |
|
|
|
// 打开 |
|
|
|
handleOpe(row.id) |
|
|
|
handleOpe(row.masterId) |
|
|
|
} else if (val == 'mainPurPlanClo') { |
|
|
|
// 关闭 |
|
|
|
handleClo(row.id) |
|
|
|
handleClo(row.masterId) |
|
|
|
} else if (val == 'mainPlanUploadQualityReport') { |
|
|
|
// 上传质量报告 |
|
|
|
handleUploadQualityReport(row) |
|
|
|
} else if (val == 'mainPlanSub') { |
|
|
|
// 提交审批 |
|
|
|
handleSub(row.id) |
|
|
|
handleSub(row.masterId) |
|
|
|
} else if (val == 'mainPlanApp') { |
|
|
|
// 审批通过 |
|
|
|
handleApp(row.id) |
|
|
|
handleApp(row.masterId) |
|
|
|
} else if (val == 'mainPlanTur') { |
|
|
|
// 驳回按钮 |
|
|
|
handleTur(row.id) |
|
|
|
handleTur(row.masterId) |
|
|
|
} else if (val == 'genRecords') { |
|
|
|
// 处理 |
|
|
|
genRecords(row.id) |
|
|
|
genRecords(row.masterId) |
|
|
|
} else if (val == 'edit') { |
|
|
|
// 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { |
|
|
|
// 删除 |
|
|
|
handleDelete(row.id) |
|
|
|
handleDelete(row.masterId) |
|
|
|
} else if (val == 'ssbq') { |
|
|
|
await SupplierdeliverRequestMainApi.selfCheckReport(row.id).then(async (res) => { |
|
|
|
await SupplierdeliverRequestMainApi.selfCheckReport(row.masterId).then(async (res) => { |
|
|
|
if(!res){ |
|
|
|
message.warning("请先上传自检报告!") |
|
|
|
return |
|
|
|
}else{ |
|
|
|
// 生成标签 |
|
|
|
detatableData.params = { |
|
|
|
masterId:row.id |
|
|
|
masterId:row.masterId |
|
|
|
} |
|
|
|
genLabelId.value = row.id |
|
|
|
genLabelId.value = row.masterId |
|
|
|
await getDetailList() |
|
|
|
formLabelRef.value.open('create', row, null,'createLabel')//创建标签页面 createLabel 标题 |
|
|
|
} |
|
|
@ -491,7 +491,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
labelPrint(row) |
|
|
|
} else if (val == 'documentPrint') { |
|
|
|
// 单据打印 |
|
|
|
handleDocumentPrint(row.id) |
|
|
|
handleDocumentPrint(row.masterId) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -598,9 +598,9 @@ const handleUploadQualityReport = async (row) => { |
|
|
|
console.log('SupplierdeliverInspectionDetail',SupplierdeliverInspectionDetail.allSchemas) |
|
|
|
const uploadFile = SupplierdeliverInspectionDetail.allSchemas.formSchema.find(item=>item.field=='uploadFile') |
|
|
|
if(uploadFile){ |
|
|
|
uploadFile['componentProps']['upData']['tableId'] = row.id |
|
|
|
uploadFile['componentProps']['upData']['tableId'] = row.masterId |
|
|
|
} |
|
|
|
ploadQualityReportRef.value.open('create', null, {masterId:row.id},'上传质量报告')//创建标签页面 createLabel 标题 |
|
|
|
ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},'上传质量报告')//创建标签页面 createLabel 标题 |
|
|
|
const tableFormKeys = {} |
|
|
|
SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => { |
|
|
|
tableFormKeys[item.field] = item.default ? item.default : '' |
|
|
@ -736,6 +736,7 @@ const submitFormLabel = async (formType, data) => { |
|
|
|
await SupplierdeliverRequestMainApi.genLabel(data) |
|
|
|
isCreateLabel.value = true |
|
|
|
message.success('创建标签成功') |
|
|
|
getList() |
|
|
|
} finally { |
|
|
|
formLabelRef.value.formLoading = false |
|
|
|
formLabelRef.value.dialogVisible = false |
|
|
|