|
|
|
|
@ -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); |
|
|
|
|
|