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) => {
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 {
if (formType === 'create') {
let flag = false;

Loading…
Cancel
Save