Commit d06559bf by LJM

css

parent 9394c104
Showing with 28 additions and 6 deletions
...@@ -45,9 +45,9 @@ ...@@ -45,9 +45,9 @@
</template> </template>
<script> <script>
import { API } from '@/util/api.js'; import { API } from '@/util/api.js';
export default { export default {
data() { data() {
return { return {
box_sn: '', box_sn: '',
...@@ -126,13 +126,35 @@ ...@@ -126,13 +126,35 @@
for (let i = 0; i < this.selectedIndexs.length; i++) { for (let i = 0; i < this.selectedIndexs.length; i++) {
this.list.splice(this.selectedIndexs[i], 1); this.list.splice(this.selectedIndexs[i], 1);
} }
}, },
submit() {} submit() {
let params = {};
for (let i = 0; i < this.list.length; i++) {
params['goods_sn[' + i + ']'] = this.list[i].goods_sn;
params['goods_num[' + i + ']'] = this.list[i].goods_num;
params['wsbxnmsn_id[' + i + ']'] = this.list[i].wsbxnmsn_id;
} }
}; params.box_sn = this.box_sn;
this.request(API.submitBoxSnAndNum, 'POST', params, false).then(res => {
if (res.err_code === 0) {
uni.showModal({
title: '提示',
content: '保存成功',
showCancel: false
});
} else {
uni.showModal({
title: '提示',
content: res.err_msg,
showCancel: false
});
}
});
}
}
};
</script> </script>
<style lang="scss"> <style lang="scss">
@import '../../assets/css/scanInventory/index.scss'; @import '../../assets/css/scanInventory/index.scss';
</style> </style>
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