点位释放新加弹窗加条件

master
Mr.sun 2 years ago
parent c066d15e61
commit 2ea66b8fc8
  1. 2
      pages/AvgOrderPkg/index.vue
  2. 2
      pages/payInto/index.vue
  3. 40
      pages/release/index.vue

@ -344,7 +344,7 @@
this.$u.api.pickBy.pickByContainerCode(this.dataForm).then(res=>{
if(!res.data || res.data.length == 0){
// console.log(res);
this.$u.toast("当前托盘不存在");
this.$u.toast("当前台车不存在");
}else if(res.code == '200'){
// console.log(res);
res.data.forEach((item)=>{

@ -273,7 +273,7 @@
e.text=111
this.$u.api.mouldStorage.callEmptyContainer().then(res=>{
if(res.code==200){
this.$u.toast("已呼叫空托盘");
this.$u.toast("已呼叫台车");
}
})

@ -61,7 +61,7 @@
</view> -->
</view>
<u-popup v-model="show" width='90%' height="220px" :mask-close-able="false" :mask="true" @close="close" mode="center">
<!-- <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>
@ -74,7 +74,8 @@
<button style="width: 30%;font-size: 16px;line-height: 44px;;" type="default" @click="enterUp(item)">确认</button>
</view>
</u-popup>
</u-popup> -->
</view>
</view>
@ -83,9 +84,10 @@
</view> -->
<!-- <button @click="open">测试</button> -->
<view class="bottom">
<button @click="pickUp()"class="global-font" >释放点位</button>
<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%;
@ -177,6 +179,8 @@
this.loadList();
}, 100);
},
//
onPullDownRefresh () {
this.list = []
//
@ -194,10 +198,7 @@
},
methods: {
pickUp(){
// console.log('');
this.$u.api.release.releasePoint({pointNo:this.dataForm.pointNo}).then(res=>{
// this.dataList=res.rows
// console.log(res);
this.$u.api.release.releasePoint({pointNo:this.dataForm.pointNo}).then(res=>{
this.dataForm.pointNo = ''
})
},
@ -207,7 +208,18 @@
})
},
cpnclick(item){
// console.log('cpnclick', item)
},
openModal(){
if(this.dataForm.pointNo === null
|| this.dataForm.pointNo === ''
|| this.dataForm.pointNo === 0
|| this.dataForm.pointNo === undefined
|| this.dataForm.pointNo === 'undefined'){
this.$u.toast("点位释放为空");
return;
}
this.show = true;
},
//
btn(index,item){
@ -222,35 +234,25 @@
},
confirmChange(){
// console.log(11111111+",");
},
editBtn(){
this.show=true
},
queryList(index,item){
// console.log(index,item);
this.dataForm.pointNo=item.value
},
enterUp(item){
console.log(item);
this.$u.api.replaceCar.upateBusinItemInDataForQty(item).then(res=>{
// console.log(res);
})
},
/**搜索框查询*/
inputQuery() {
// if (this.queryFlag !== '') {
// clearTimeout(this.queryFlag);
// this.loadList()
// }
if (this.dataForm.pointNo == '' || this.dataForm.pointNo == null || this.dataForm.pointNo ==
undefined) {
return
}
// this.queryFlag = setTimeout(() => {
this.loadList()
// }, 500)
},
onNavigationBarButtonTap(e){
// console.log(e);

Loading…
Cancel
Save