点位释放删除原来值

master
Mr.sun 2 years ago
parent 7c6533084b
commit bddecf4e50
  1. 16
      pages/AvgCarry/index.vue
  2. 55
      pages/release/index.vue
  3. 6
      uni_modules/select-lay/components/select-lay/select-lay.vue

@ -124,22 +124,6 @@
},
//
checkOutPick(){
// this.$u.api.AvgCarry.moveByAGV({fromLocation:this.begin,toLocation:this.end,containerCode:this.dataForm.containerCode}).then(res=>{
// this.$u.toast(res.msg)
// if(res.code==200){
// this.begin=''
// this.end=''
// this.judge()
// }
// }).catch(err=>console.log(err))
if(this.dataForm.containerCode == null
|| this.dataForm.containerCode === ''
|| this.dataForm.containerCode === 0
|| this.dataForm.containerCode === undefined
|| this.dataForm.containerCode ==='undefined'){
this.$u.toast("请扫描托盘编号");
return;
}
if(this.beginValue == null
|| this.beginValue === ''

@ -6,16 +6,14 @@
<!-- <u-input v-model="dataForm.containerCode" border input-align="left" height="70" style="background-color: #ffffff;height: 38px;line-height: 38px;" placeholder="请扫描台车编号"
@confirm="inputQuery()" :focus="firstFocus">
</u-input> -->
<select-lay :options="pointList" @itemclick="cpnclick" style="width: 92%;margin-left: 2vh; margin-top: 4vh;"
<select-lay @transfer="reomveValue" :options="pointList" @itemclick="cpnclick" style="width: 92%;margin-left: 2vh; margin-top: 4vh;"
smoldName="ptName" slabel="label" smodel="ptName" name="name3" svalue="value" @selectitem="queryList"
:value="dataForm.ptName" placeholder="扫描或选择要释放位置编码"> </select-lay>
</u-form-item>
</u-form>
</view>
<!-- <view class="" style="font-size: 36px;margin: 20rpx 20rpx 20rpx 20rpx;">
<text>{{dataForm.containerCode1}}</text>
</view> -->
<view class='recommend'>
<text class='recommend-title global-font'>点位物料信息</text>
</view>
@ -25,8 +23,7 @@
<view class="sh-card" v-for="(item, index) in dataList" :keys="item.id" :index="item.id" v-if="dataList.length > 0"
style="border-radius: 20rpx;">
<view class="sh-card-title" style="border-radius: 20rpx;">
<!-- @click="editBtn(index)" -->
<!-- <image src="@/static/icon/edit.png" style="width: 2.5vh;height: 2.5vh;position: absolute;right: 1vh;margin-top: 1vh;" /> -->
<view class="card-content">
<view class="card-content-item" width="60%" style="margin-top: 1vh;">
@ -41,53 +38,17 @@
</view>
</view>
<!-- <view class="card-content">
<view class="card-content-item">
<text class="item-title">台车编号:</text>
<text class="item-value">{{item.containerCode}}</text>
</view>
</view> -->
<!-- <view class="card-content">
<view class="card-content-item">
<text class="item-title">缴库数量:</text>
<text class="item-value">{{item.ttQtyRct}}</text>
</view>
<view class="card-content-item">
<text class="item-title">缴库数量:</text>
<text class="item-value">{{item.ttQtyRct}}</text>
</view>
</view> -->
</view>
<!-- <u-popup v-model="show" width='90%' height="220px" :mask-close-able="false" :mask="true" @close="close" mode="center">
<view style="height: 44px;text-align: center;line-height: 44px;font-size: 18px;margin-bottom: 18px;">
<text>数量确认</text>
</view>
<view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 0px 20px 0px;">拣货数量:</text> <input v-model="item.ttQtyRct" style="border:1px solid #000;padding-right: 20px;"></u-input>
</view>
<view style="width: 100%; display: flex;margin-top: 40px;font-size: 14px;">
<button style="width: 30%; font-size: 16px;line-height: 44px;" class="btn1" type="default" @click="noEnter()">取消</button>
<button style="width: 30%;font-size: 16px;line-height: 44px;;" type="default" @click="enterUp(item)">确认</button>
</view>
</u-popup> -->
</view>
</view>
<!-- <view class="loadmore-data">
<u-loadmore :status="loadStatus"></u-loadmore>
</view> -->
<!-- <button @click="open">测试</button> -->
<view class="bottom">
<button @click="openModal()" class="global-font" >释放点位</button>
</view>
<u-modal v-model="show" title='点位释放' @confirm="pickUp()" :content='`确定要释放此点位吗`' show-confirm-button show-cancel-button></u-modal>
<!-- @click="pickUp()" -->
<view class="global-font" style=" position: absolute;
top: 92%;
left: 40%;
@ -222,6 +183,10 @@
}
this.show = true;
},
//
reomveValue(){
this.dataForm.pointNo = ''
},
//
btn(index,item){
this.pickUpObj.dtlAddBos=[]

@ -114,7 +114,7 @@
methods: {
confirmChange(item){
this.$emit('itemclick', item)
// console.log(22233444);
},
//active
itemcheck() {
@ -185,13 +185,13 @@
if (!this.ismove) this.ismove = true;
},100)
// this.changes = false;
},
//
//
removevalue() {
this.isremove = true;
this.changes = false;
this.changevalue = "";
this.$emit('transfer',this.changevalue)
},
//value
intchange() {

Loading…
Cancel
Save