Browse Source

修改校验逻辑

master
zhaoxuebing 10 months ago
parent
commit
109c1d3557
  1. 11
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

11
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -586,17 +586,6 @@ const handleDeleteTable = (item, index, formRef) => {
// //
const submitForm = async (formType, data) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // data.subList = tableData.value //
let array =[]
data.subList.forEach((item,index) => {
if(item.supplierCode != data.supplierCode){
array.push(index+1)
}
})
if (!data.purchaseReceiptRecordNumber && array.length>0) {
formRef.value.formLoading = false
message.error(`${array.join(',')}行数据的供应商代码与上方填写的供应商代码不一致`)
return
}
try { try {
if (formType === 'create') { if (formType === 'create') {
let flag = false; let flag = false;

Loading…
Cancel
Save