|
@ -496,22 +496,13 @@ const buttonTableClick = async (val, row) => { |
|
|
// 删除 |
|
|
// 删除 |
|
|
handleDelete(row.masterId) |
|
|
handleDelete(row.masterId) |
|
|
} else if (val == 'ssbq') { |
|
|
} else if (val == 'ssbq') { |
|
|
await SupplierdeliverRequestMainApi.selfCheckReport(row.masterId).then(async (res) => { |
|
|
// 生成标签 |
|
|
if(!res){ |
|
|
detatableData.params = { |
|
|
message.warning(t('ts.请先上传自检报告!')) |
|
|
masterId:row.masterId |
|
|
return |
|
|
} |
|
|
}else{ |
|
|
genLabelId.value = row.masterId |
|
|
// 生成标签 |
|
|
await getDetailList() |
|
|
detatableData.params = { |
|
|
formLabelRef.value.open('create', row, null,'createLabel')//创建标签页面 createLabel 标题 |
|
|
masterId:row.masterId |
|
|
|
|
|
} |
|
|
|
|
|
genLabelId.value = row.masterId |
|
|
|
|
|
await getDetailList() |
|
|
|
|
|
formLabelRef.value.open('create', row, null,'createLabel')//创建标签页面 createLabel 标题 |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log("自检报告校验异常",err) |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (val == 'point') { |
|
|
} else if (val == 'point') { |
|
|
// 标签打印 |
|
|
// 标签打印 |
|
|
labelPrint(row) |
|
|
labelPrint(row) |
|
|