|
@@ -119,9 +119,7 @@ export default {
|
|
|
let info = { id: this.id };
|
|
|
res = await this.sotCreate(info);
|
|
|
if (this.$checkRes(res)) {
|
|
|
- if (res.errcode == '0') {
|
|
|
- this.$set(this, `activities`, res.data);
|
|
|
- }
|
|
|
+ if (res.errcode == '0') this.$set(this, `activities`, res.data);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -129,9 +127,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);
|
|
|
},
|
|
|
// 返回
|
|
|
toBack() {
|
|
@@ -142,14 +138,10 @@ export default {
|
|
|
let res;
|
|
|
// 减免方式
|
|
|
res = await this.dictQuery({ code: 'order_process' });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `order_processList`, res.data);
|
|
|
- }
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `order_processList`, res.data);
|
|
|
// 快递类型
|
|
|
res = await this.dictQuery({ code: 'transport_type' });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `transport_typeList`, res.data);
|
|
|
- }
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `transport_typeList`, res.data);
|
|
|
},
|
|
|
},
|
|
|
computed: {},
|