Commit 0b30b8ee authored by 何远江's avatar 何远江

优化

parent 2583d394
......@@ -3,6 +3,7 @@
<StickyNavBar>
<NavBar title="发货下架"></NavBar>
<view class="btn">
<uni-easyinput class="boxSelect" prefixIcon="search" v-model="lgort" placeholder="请扫描目标仓位"></uni-easyinput>
<uni-easyinput prefixIcon="search" :disabled="isDisabled" v-model="wxparams" :focus="isFocus"
placeholder="请扫描产品包装条码/外箱码" @input="handleInputPlnr"></uni-easyinput>
</view>
......@@ -40,6 +41,7 @@
data() {
return {
wxparams: "",
lgort: '',
isDisabled: false,
isFocus: false,
goodsList: [],
......@@ -108,10 +110,13 @@
if (!this.goodsList.length) {
return this.$u.toast('请扫描需要下架的箱条码/外箱码')
}
const DATUM = parseTime(new Date(), '{y}{m}{d}'),
UNAME = this.vuex_user.nickName,
UZEIT = parseTime(new Date(), '{h}{i}{s}');
const arr = this.goodsList
if (!this.lgort) {
return this.$u.toast('请选择目标仓位')
}
const arr = this.goodsList.map((item) => {
item.LGORT = this.lgort
return item
})
this.$u.api.sapApi
.sapCasePlnr2(arr)
.then((res) => {
......@@ -184,4 +189,4 @@
font-weight: 600;
}
}
</style>
</style>
This diff is collapsed.
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 to comment