Commit 96966002 by LJM

css

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