Commit 0983f604 by LJM

js

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