|
@@ -197,10 +197,8 @@ export default {
|
|
|
if (status) res.data.zhStatus = status.label;
|
|
|
this.$set(this, `info`, res.data);
|
|
|
this.$set(this, `shop`, res.data.shop);
|
|
|
- if (res.data.type == '4' || res.data.type == '5') {
|
|
|
- // 商品
|
|
|
- this.$set(this, `list`, res.data.order_detail.goods);
|
|
|
- } else if (res.data.type == '1' || res.data.type == '2' || res.data.type == '3') {
|
|
|
+ if (res.data.type == '4' || res.data.type == '5') this.$set(this, `list`, res.data.order_detail.goods); // 商品
|
|
|
+ else if (res.data.type == '1' || res.data.type == '2' || res.data.type == '3') {
|
|
|
if (res.data.transport) this.$set(this, `transport`, res.data.transport);
|
|
|
// 图片
|
|
|
this.$set(this, `file`, res.data.goods.goods.file[0].url);
|
|
@@ -228,9 +226,7 @@ export default {
|
|
|
else if (res.data.status == '!5') this.$set(this, `active`, 5);
|
|
|
else if (res.data.status == '-5') this.$set(this, `active`, 4);
|
|
|
// 查询物流
|
|
|
- if (res.data.transport) {
|
|
|
- this.toLog(res.data.transport);
|
|
|
- }
|
|
|
+ if (res.data.transport) this.toLog(res.data.transport);
|
|
|
this.loading = false;
|
|
|
}
|
|
|
},
|
|
@@ -333,9 +329,7 @@ export default {
|
|
|
// 远程查询快递公司
|
|
|
async querySearch(value) {
|
|
|
let res = await this.dictQuery({ code: 'transport_company', label: value });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, 'shop_transport_typeList', res.data);
|
|
|
- }
|
|
|
+ if (this.$checkRes(res)) this.$set(this, 'shop_transport_typeList', res.data);
|
|
|
},
|
|
|
// 买家快递填写保存
|
|
|
async customerSubmit(val) {
|
|
@@ -378,13 +372,9 @@ export default {
|
|
|
let res;
|
|
|
// 类型
|
|
|
res = await this.dictQuery({ code: 'afterSale_type' });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `typeList`, res.data);
|
|
|
- }
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `typeList`, res.data);
|
|
|
res = await this.dictQuery({ code: 'afterSale_status' });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `statusList`, res.data);
|
|
|
- }
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
|
|
|
},
|
|
|
// 返回
|
|
|
toBack() {
|