Commit 162f4f24 by LJM

理货照片必填控制需求变更

parent 9a077c5c
...@@ -199,6 +199,7 @@ export default { ...@@ -199,6 +199,7 @@ export default {
print_flag: true, //是否打印 print_flag: true, //是否打印
input_flag: false, input_flag: false,
input_contaion: false, input_contaion: false,
company_id: uni.getStorageSync('company_id') || 1, //公司组织
all_flag: false, //全选标记 all_flag: false, //全选标记
page: 1, page: 1,
limit: 50, limit: 50,
...@@ -233,6 +234,8 @@ export default { ...@@ -233,6 +234,8 @@ export default {
image_list(arr) { image_list(arr) {
if (arr.length > 0) { if (arr.length > 0) {
this.formParams.image_ids = arr.join(','); this.formParams.image_ids = arr.join(',');
} else {
this.formParams.image_ids = '';
} }
} }
}, },
...@@ -565,6 +568,9 @@ export default { ...@@ -565,6 +568,9 @@ export default {
}); });
return false; return false;
} }
//当前登录组织为深贸电子才必填
if (this.company_id == 2) {
if (this.formParams.image_ids.length <= 0) { if (this.formParams.image_ids.length <= 0) {
uni.showToast({ uni.showToast({
title: '请至少上传一张理货图片', title: '请至少上传一张理货图片',
...@@ -572,10 +578,12 @@ export default { ...@@ -572,10 +578,12 @@ export default {
}); });
return false; return false;
} }
}
var params = Object.assign(this.formParams, { var params = Object.assign(this.formParams, {
stock_in_item_id: this.filter_id.join(',') stock_in_item_id: this.filter_id.join(',')
}); });
this.request(API.createTallyReceive, 'POST', params, true).then(res => { this.request(API.createTallyReceive, 'POST', params, true).then(res => {
if (res.code === 0) { if (res.code === 0) {
uni.showToast({ uni.showToast({
...@@ -618,7 +626,7 @@ export default { ...@@ -618,7 +626,7 @@ export default {
}); });
return false; return false;
} }
this.image_list = [];
this.formParams.image_ids = []; //每次打开先清空 this.formParams.image_ids = []; //每次打开先清空
this.formParams.tally_remark = ''; //每次打开先清空 this.formParams.tally_remark = ''; //每次打开先清空
this.$refs.showRight.open(); this.$refs.showRight.open();
......
...@@ -220,6 +220,7 @@ export default { ...@@ -220,6 +220,7 @@ export default {
pic_flag: false, //是否整单照片 pic_flag: false, //是否整单照片
input_flag: true, input_flag: true,
input_contaion: true, input_contaion: true,
company_id: uni.getStorageSync('company_id') || 1, //公司组织
page: 1, page: 1,
limit: 1, limit: 1,
index: 0, index: 0,
...@@ -637,6 +638,8 @@ export default { ...@@ -637,6 +638,8 @@ export default {
return false; return false;
} }
//当前登录组织为深贸电子才必填
if (this.company_id == 2) {
if (this.formParams.image_ids.length <= 0) { if (this.formParams.image_ids.length <= 0) {
uni.showToast({ uni.showToast({
title: '请至少上传一张理货图片', title: '请至少上传一张理货图片',
...@@ -644,6 +647,7 @@ export default { ...@@ -644,6 +647,7 @@ export default {
}); });
return false; return false;
} }
}
var wait_tally_qty = Number(this.detail.wait_tally_qty); var wait_tally_qty = Number(this.detail.wait_tally_qty);
......
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