点位释放新加弹窗加条件

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

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

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

Loading…
Cancel
Save