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

/* 移出入加库位码 */

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