Commit 0983f604 by LJM

js

parent d06559bf
...@@ -100,6 +100,16 @@ ...@@ -100,6 +100,16 @@
color: #ffffff; color: #ffffff;
} }
} }
.addRow {
width: 128rpx;
height: 60rpx;
background: #197adb;
border-radius: 4rpx;
font-size: 28rpx;
color: #ffffff;
margin-top: 24rpx;
margin-bottom: 24rpx;
}
.save { .save {
height: 88rpx; height: 88rpx;
background: #197adb; background: #197adb;
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="addRow row rowCenter verCenter">新增行</view>
<view class="uni-table-box"> <view class="uni-table-box">
<uni-table type="selection" border stripe emptyText="暂无更多数据" @selection-change="selectionChange"> <uni-table type="selection" border stripe emptyText="暂无更多数据" @selection-change="selectionChange">
<uni-tr> <uni-tr>
...@@ -129,11 +130,15 @@ export default { ...@@ -129,11 +130,15 @@ export default {
}, },
submit() { submit() {
let params = {}; let params = {};
let arr = [];
for (let i = 0; i < this.list.length; i++) { for (let i = 0; i < this.list.length; i++) {
params['goods_sn[' + i + ']'] = this.list[i].goods_sn; arr.push({
params['goods_num[' + i + ']'] = this.list[i].goods_num; goods_sn: this.list[i].goods_sn,
params['wsbxnmsn_id[' + i + ']'] = this.list[i].wsbxnmsn_id; goods_num: this.list[i].goods_num,
wsbxnmsn_id: this.list[i].wsbxnmsn_id
});
} }
params.list = JSON.stringify(arr);
params.box_sn = this.box_sn; params.box_sn = this.box_sn;
this.request(API.submitBoxSnAndNum, 'POST', params, false).then(res => { this.request(API.submitBoxSnAndNum, 'POST', params, false).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
......
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