diff --git a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue
index 90f8d56..c739e4a 100644
--- a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue
+++ b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue
@@ -12,21 +12,6 @@
选择物料
-
@@ -39,10 +24,10 @@
>
- handleInputChange(record, 'arrivalPrice', value)" />
+ handleInputChange(record, 'upperLimit', value)" />
- handleInputChange(record, 'arrivalPrice', value)" />
+ handleInputChange(record, 'lowerLimit', value)" />
删除
@@ -110,6 +95,7 @@
//修改物料上限下限
const handleInputChange = (record, field, value) => {
+ console.log("🚀 ~ handleInputChange ~ record, field, value:", record, field, value)
// 更新当前行的数据
record[field] = value;
};
@@ -174,7 +160,18 @@ function deleteWlxx(record){
return;
}
var list2 = [];
+ var sfjx = "0";
for(let item of list){
+ if(!item.upperLimit){
+ createMessage.error('您有未填写的物料上限,请检查后提交!');
+ sfjx = "1";
+ break;
+ }
+ if(!item.lowerLimit){
+ createMessage.error('您有未填写的物料下限,请检查后提交!');
+ sfjx = "1";
+ break;
+ }
var insParams = {}
insParams.nuId = formData.nuId;
insParams.wlId = item.id;
@@ -183,6 +180,9 @@ function deleteWlxx(record){
insParams.kcsl = '0';
list2.push(insParams);
}
+ if(sfjx == "1"){
+ return;
+ }
defHttp.post({url:'/invoicing/blWarehouseMaterialInfo/addBatch',params:list2}).then(res=>{
console.log("🚀 ~ submitForm ~ res:", res)
emit('ok');