...
|
...
|
@@ -73,22 +73,38 @@ |
|
|
limit: 10,
|
|
|
pageTotal: 1,
|
|
|
type: this.$parent.$data.type,
|
|
|
orderList: [],
|
|
|
busy: false,
|
|
|
cancelbusy: false,
|
|
|
emptybox: 'hide',
|
|
|
currentCode: '',
|
|
|
selected: {},
|
|
|
options: [],
|
|
|
currentCode: '',
|
|
|
cancelbusy: false
|
|
|
orderList: []
|
|
|
};
|
|
|
},
|
|
|
|
|
|
ready() {
|
|
|
created() {
|
|
|
this.getOrderData();
|
|
|
this.getCancelReason();
|
|
|
},
|
|
|
|
|
|
document.addEventListener('visibilitychange', () => {
|
|
|
if (!document.hidden) {
|
|
|
this.reload();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
reload() {
|
|
|
this.page = 0;
|
|
|
this.pageTotal = 1;
|
|
|
this.busy = false;
|
|
|
this.cancelbusy = false;
|
|
|
this.emptybox = 'hide';
|
|
|
this.currentCode = '';
|
|
|
this.selected = {};
|
|
|
this.orderList = [];
|
|
|
|
|
|
this.getOrderData();
|
|
|
},
|
|
|
getOrderData() {
|
|
|
this.busy = true;
|
|
|
if (this.page >= this.pageTotal) {
|
...
|
...
|
@@ -129,7 +145,7 @@ |
|
|
if (result.code === 200) {
|
|
|
tip('取消成功');
|
|
|
setTimeout(() => {
|
|
|
location.reload();
|
|
|
this.reload();
|
|
|
}, 1000);
|
|
|
} else if (result.code !== 500) {
|
|
|
tip(result.message);
|
...
|
...
|
@@ -158,7 +174,7 @@ |
|
|
reason: this.options.length ? this.options[0].reason : null
|
|
|
}, (result) => {
|
|
|
if (result.code === 200) {
|
|
|
location.reload();
|
|
|
this.reload();
|
|
|
}
|
|
|
});
|
|
|
};
|
...
|
...
|
@@ -209,7 +225,9 @@ |
|
|
});
|
|
|
},
|
|
|
confirmGoods(code) {
|
|
|
Modal.confirm('', '确认收货', function() {
|
|
|
let _this = this;
|
|
|
|
|
|
Modal.confirm('', '确认收货吗?', function() {
|
|
|
this.hide();
|
|
|
$.ajax({
|
|
|
url: '/me/confirmReceive',
|
...
|
...
|
@@ -219,7 +237,7 @@ |
|
|
}
|
|
|
}).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
location.reload();
|
|
|
_this.reload();
|
|
|
} else if (result.code !== 500) {
|
|
|
tip(result.message);
|
|
|
}
|
...
|
...
|
|