|
|
@@ -205,16 +205,17 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- freeShipModalClick(e) {
|
|
|
- if (e.index === 0) {
|
|
|
- this.modalCancel();
|
|
|
- } else {
|
|
|
- freeShipping({ id: this.detailInfo.id }).then(res => {
|
|
|
- this.init();
|
|
|
- this.$msg("操作成功!");
|
|
|
- this.modalCancel();
|
|
|
- });
|
|
|
- }
|
|
|
+ freeShipModalClick() {
|
|
|
+ freeShipping({ id: this.detailInfo.id }).then(res => {
|
|
|
+ this.init();
|
|
|
+ this.$msg("操作成功!");
|
|
|
+ // this.modalCancel();
|
|
|
+ });
|
|
|
+ // if (e.index === 0) {
|
|
|
+ // this.modalCancel();
|
|
|
+ // } else {
|
|
|
+ //
|
|
|
+ // }
|
|
|
},
|
|
|
modalCancel() {
|
|
|
this.freeShipModal = false;
|
|
|
@@ -225,6 +226,14 @@ export default {
|
|
|
this.gotoSelect();
|
|
|
// 自取
|
|
|
} else if (s.type === "selfGet") {
|
|
|
+ let self = this;
|
|
|
+ uni.showModal({title: "提示",content: "确认客户已自取",confirmText: "确认",
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ self.freeShipModalClick();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
this.freeShipModal = true;
|
|
|
// this.operateData = item;
|
|
|
//打印
|