|
|
|
@ -348,10 +348,8 @@ export default { |
|
|
|
// 自动调用绑定接口 |
|
|
|
// 自动调用绑定接口 |
|
|
|
this.$u.api |
|
|
|
this.$u.api |
|
|
|
.boxBinding({ |
|
|
|
.boxBinding({ |
|
|
|
boxBarcode: this.activeBox, |
|
|
|
// boxBarcode: this.activeBox, |
|
|
|
orderIdList: this.boxInfo.yieldOrderList.map( |
|
|
|
orderIdList: [this.cardCode] |
|
|
|
(o) => o.cardNo |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
.then((bindRes) => { |
|
|
|
.then((bindRes) => { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
@ -393,7 +391,7 @@ export default { |
|
|
|
// 调用解绑接口(单个解绑) |
|
|
|
// 调用解绑接口(单个解绑) |
|
|
|
this.$u.api |
|
|
|
this.$u.api |
|
|
|
.boxUnbind({ |
|
|
|
.boxUnbind({ |
|
|
|
boxBarcode: this.activeBox, |
|
|
|
// boxBarcode: this.activeBox, |
|
|
|
orderIdList: [this.cardCode], |
|
|
|
orderIdList: [this.cardCode], |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then((unbindRes) => { |
|
|
|
.then((unbindRes) => { |
|
|
|
|