Commit 96966002 by LJM

css

parent 50f6ed15
...@@ -202,8 +202,10 @@ export default { ...@@ -202,8 +202,10 @@ export default {
} }
}, },
onShow() { onShow() {
this.getData(); if (this.noexebshowFalg) {
this.getTallyContainer(); this.getData();
this.getTallyContainer();
}
}, },
methods: { methods: {
/** /**
...@@ -342,6 +344,13 @@ export default { ...@@ -342,6 +344,13 @@ export default {
}); });
return false; return false;
} }
if (this.indexContainer == -1) {
uni.showToast({
title: '请选择容器',
icon: 'error'
});
return false;
}
this.formParams.container_id = this.tallyContainer[this.indexContainer].id; this.formParams.container_id = this.tallyContainer[this.indexContainer].id;
this.showDrawer(); this.showDrawer();
}, },
...@@ -350,7 +359,7 @@ export default { ...@@ -350,7 +359,7 @@ export default {
*/ */
createTallyReceiveSubmit() { createTallyReceiveSubmit() {
var params = Object.assign(this.formParams, { var params = Object.assign(this.formParams, {
stock_in_item_id: JSON.stringify(this.filter_id) 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) {
......
...@@ -207,13 +207,17 @@ export default { ...@@ -207,13 +207,17 @@ export default {
this.stock_in_id = options.stock_in_id || ''; this.stock_in_id = options.stock_in_id || '';
}, },
onShow() { onShow() {
this.getData(); if (this.noexebshowFalg) {
this.getTallyContainer(); this.getData();
this.getTallyContainer();
}
}, },
watch: { watch: {
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 = '';
} }
} }
}, },
...@@ -397,7 +401,7 @@ export default { ...@@ -397,7 +401,7 @@ export default {
* @param {Object} index * @param {Object} index
*/ */
previewChange(img, index) { previewChange(img, index) {
this.noexebshowFalg = false; this.noexebshowFalg = false; //不允许再次触发onshow这个生命周期
uni.previewImage({ uni.previewImage({
current: index, current: index,
urls: img urls: img
......
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