Browse Source

修改

master
zhaoxuebing 9 months ago
parent
commit
a099637a3a
  1. 30
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  2. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

30
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -96,7 +96,6 @@
:isBusiness="true"
:isShowButton="false"
@submitForm="submitFormLabel"
/>
</template>
@ -488,26 +487,17 @@ const handleTur = async (id: number) => {
/** 处理按钮操作 */
const genRecords = async (id: number) => {
try {
await SupplierdeliverRequestMainApi.selfCheckReport(id).then(res => {
if(!res){
message.warning("请先上传自检报告!")
return
}else{
//
message.confirm('是否处理所选中数据?')
tableObject.loading = true
//
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => {
message.success(t('处理成功!'))
//
handleDocumentPrint(res)
})
//
getList()
}
}).catch(err => {
console.log("自检报告校验异常",err)
//
message.confirm('是否处理所选中数据?')
tableObject.loading = true
//
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => {
message.success(t('处理成功!'))
//
handleDocumentPrint(res)
})
//
getList()
} catch {}finally{
tableObject.loading = false
}

6
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -1088,18 +1088,12 @@ export const SupplierdeliverRequestDetailRules = reactive({
produceDate: [
{ required: true, message: '请输入生产日期', trigger: 'blur' }
],
packQty: [
{ required: true, message: '请输入包装数量', trigger: 'blur' }
],
poNumber: [
{ required: true, message: '请选择订单号', trigger: 'change' }
],
poLine: [
{ required: true, message: '请选择订单行', trigger: 'change' }
],
packUnit: [
{ required: true, message: '请选择包装规格', trigger: 'change' }
],
convertRate: [
{ required: true, message: '请输入转换率', trigger: 'blur' }
],

Loading…
Cancel
Save