Commit 726934e8 by LJM

盘点

parent d9e7b1c6
Showing with 10 additions and 1 deletions
......@@ -273,7 +273,7 @@
</view>
<view class="form-input">
<view class="input-title"><text class="input-title-t2">目标打印机:</text></view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入" v-model="formParams.ip" /></view>
<view class="input-box"><input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入目标打印机IP (比如:192.168.2.1)" v-model="formParams.ip" /></view>
</view>
<view class="form-input">
<view class="input-title">
......@@ -397,9 +397,18 @@ export default {
});
return false;
}
var filteredList = this.list.filter(item => this.filter_id.includes(item.stocktake_items_id));
console.log(filteredList);
if (this.filter_id.length > 1) {
//如果勾选的是多个,则显示两个单选项:按库存数量、按盘点数据
this.formParams.label_num = this.filter_id.length;
} else {
//若勾选的是单个,则显示输入框,默认带入库存数量。
this.formParams.label_num = filteredList[0].stock_qty;
}
this.formParams.stocktake_id = this.searchParams.stocktake_id; //盘点单id
this.formParams.stocktake_items_ids = filteredList.map(item => item.stocktake_items_id).join(','); //任务id 多个英文逗号隔开
this.$refs.showRightPrintLabel.open();
}
},
......
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