自动取货

This commit is contained in:
2023-11-23 15:54:12 +08:00
parent dd1503c4a3
commit b5e59c6fb3

View File

@@ -10,8 +10,15 @@
<div class="point fl" :class="{'statusbg': pkId === e.point_code}" v-for="e in dataList" :key="e.point_code" @click="toRadio(e)">{{e.code_name}}</div>
</div>
</div>
<div class="box2">
<div class="btn" @click="toSure">定为目标站点</div>
<!-- <div class="box2">
<div class="btn" @click="toSure('1')">自动取货</div>
<div class="btn" @click="toSure('2')">自动放货</div>
<div class="btn" @click="toSure('0')">定为目标站点</div>
</div> -->
<div class="box2 buttons_wrapper">
<button class="button_control" @click="toSure('1')"><p>自动取货</p></button>
<button class="button_control" @click="toSure('2')"><p>自动放货</p></button>
<button class="button_control" @click="toSure('0')"><p>定为目标站点</p></button>
</div>
</div>
</div>
@@ -126,8 +133,8 @@ export default {
this.toast(res.desc)
}
},
async confirmPoint () {
let res = await confirmPoint(this.selectObj.point_code)
async confirmPoint (type) {
let res = await confirmPoint(this.selectObj.point_code, type)
if (res.code === '1') {
this.toast(res.desc)
this.selectObj = {}
@@ -139,10 +146,10 @@ export default {
this.pkId = this.pkId === e.point_code ? '' : e.point_code
this.selectObj = e
},
toSure () {
toSure (type) {
console.log(this.selectObj.point_code, 666)
if (this.selectObj.point_code) {
this.confirmPoint()
this.confirmPoint(type)
}
},
toClear () {
@@ -189,13 +196,6 @@ export default {
background center / 100% 100% url(../../../images/new/bg1.png) no-repeat !important
.box2
position fixed
left 935px
bottom 88px
.btn
width 335px
line-height 91px
font-size 36px
text-align center
color #EFF2FF
background center / 100% 100% url(../../../images/new/button.png) no-repeat
left 500px
bottom 50px
</style>