自动取货

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 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> </div>
<div class="box2"> <!-- <div class="box2">
<div class="btn" @click="toSure">定为目标站点</div> <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> </div>
</div> </div>
@@ -126,8 +133,8 @@ export default {
this.toast(res.desc) this.toast(res.desc)
} }
}, },
async confirmPoint () { async confirmPoint (type) {
let res = await confirmPoint(this.selectObj.point_code) let res = await confirmPoint(this.selectObj.point_code, type)
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc) this.toast(res.desc)
this.selectObj = {} this.selectObj = {}
@@ -139,10 +146,10 @@ export default {
this.pkId = this.pkId === e.point_code ? '' : e.point_code this.pkId = this.pkId === e.point_code ? '' : e.point_code
this.selectObj = e this.selectObj = e
}, },
toSure () { toSure (type) {
console.log(this.selectObj.point_code, 666) console.log(this.selectObj.point_code, 666)
if (this.selectObj.point_code) { if (this.selectObj.point_code) {
this.confirmPoint() this.confirmPoint(type)
} }
}, },
toClear () { toClear () {
@@ -189,13 +196,6 @@ export default {
background center / 100% 100% url(../../../images/new/bg1.png) no-repeat !important background center / 100% 100% url(../../../images/new/bg1.png) no-repeat !important
.box2 .box2
position fixed position fixed
left 935px left 500px
bottom 88px bottom 50px
.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
</style> </style>