Commit 0dbf758e by LJM

修改entryID

parent b282019a
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
this.goods_check_pic_list = Array.from({ length }, () => []); this.goods_check_pic_list = Array.from({ length }, () => []);
this.form.pic_json = res.data.entrys.map(item => ({ this.form.pic_json = res.data.entrys.map(item => ({
ptEntryID: item.ptEntryID, entryID: item.entryID,
goods_check_pic: '' goods_check_pic: ''
})); }));
} else { } else {
...@@ -476,6 +476,7 @@ export default { ...@@ -476,6 +476,7 @@ export default {
return false; return false;
} }
//商检图片必填
if (this.isInspOrg) { if (this.isInspOrg) {
// 使用every方法检查每个子数组是否满足条件 // 使用every方法检查每个子数组是否满足条件
var isValid = this.goods_check_pic_list.every(subArray => subArray.length >= 2); var isValid = this.goods_check_pic_list.every(subArray => subArray.length >= 2);
......
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
this.tally_num = parseInt(e.target.value) + 1; this.tally_num = parseInt(e.target.value) + 1;
this.index = e.target.value; this.index = e.target.value;
this.total = 0; this.total = 0;
this.detail_json = Array.from({ length: this.tally_num }, () => ({ origin: '', tally_num: '', ptEntryID: this.goods_list[this.goods_index].ptEntryID })); this.detail_json = Array.from({ length: this.tally_num }, () => ({ origin: '', tally_num: '', entryID: this.goods_list[this.goods_index].entryID }));
} }
}, },
getOrigin() { getOrigin() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment