Commit 35233337 authored by 李苏's avatar 李苏 💬

/* 移出入加库位码 */

parent 225d90a3
......@@ -49,9 +49,11 @@
</view>
<!-- 移入库位 -->
<!-- <view class="padding-xs bg-white" v-show="index!=null&&code!=''" > -->
<view v-show="index!=null&&apiCode!=''" class="padding-xs bg-white" style="display: flex;justify-content: center;align-items: center;" >
<button @tap="apiYcjh()" class="cu-btn bg-gradual-green xs " style="width: 50%;margin-top:10px;">移入库位</button>
</view>
<view class="cu-form-group" style="padding-left: 20px;padding-right: 20px;" v-show="current==1" >
<view class="title">扫库位码</view>
<input v-model="ykcode" :focus="stpmFocus" @confirm="apiYcjh" placeholder="请扫描库位码"></input>
<Scan :app="app" :params="'ykcode'" :do="'apiYcjh'" ></Scan>
</view>
</view>
</view>
</view>
......@@ -70,6 +72,7 @@
tabs: ['待移出', '待移入'],
jhList:[],
code:'',
ykcode:'',
apiCode:'',
apiShow:{
djid:'',
......@@ -124,7 +127,7 @@
},
/* 移入计划 */
apiYcjh(){
if(!this.apiCode){
if(!this.ykcode){
this.$tip.toast("请先扫描库位码")
return
}
......@@ -134,11 +137,12 @@
}
let params={
code:this.apiCode,
code:this.ykcode,
ykjhid:this.jhList[this.index].id
}
apiYrkw(params).then(res=>{
this.current=0
this.ykcode=''
this.code=''
this.apiCode=''
this.$tip.toast('操作成功')
......
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