|
@@ -230,7 +230,7 @@ export default {
|
|
if (res.data.transport) {
|
|
if (res.data.transport) {
|
|
// 快递数据回显
|
|
// 快递数据回显
|
|
if (res.data.transport.customer_transport_type) {
|
|
if (res.data.transport.customer_transport_type) {
|
|
- let arr = await this.dictQuery({ code: 'transport_type', value: res.data.transport.customer_transport_type });
|
|
|
|
|
|
+ let arr = await this.dictQuery({ code: 'transport_company', value: res.data.transport.customer_transport_type });
|
|
if (this.$checkRes(arr)) {
|
|
if (this.$checkRes(arr)) {
|
|
let type = arr.data.find((i) => i.value == res.data.transport.customer_transport_type);
|
|
let type = arr.data.find((i) => i.value == res.data.transport.customer_transport_type);
|
|
if (type) {
|
|
if (type) {
|
|
@@ -243,7 +243,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (res.data.transport.shop_transport_type) {
|
|
if (res.data.transport.shop_transport_type) {
|
|
- let aee = await this.dictQuery({ code: 'transport_type', value: res.data.transport.shop_transport_type });
|
|
|
|
|
|
+ let aee = await this.dictQuery({ code: 'transport_company', value: res.data.transport.shop_transport_type });
|
|
if (this.$checkRes(aee)) {
|
|
if (this.$checkRes(aee)) {
|
|
let type = aee.data.find((i) => i.value == res.data.transport.shop_transport_type);
|
|
let type = aee.data.find((i) => i.value == res.data.transport.shop_transport_type);
|
|
if (type) {
|
|
if (type) {
|
|
@@ -310,7 +310,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
async querySearch(value) {
|
|
async querySearch(value) {
|
|
- let res = await this.dictQuery({ code: 'transport_type', label: value });
|
|
|
|
|
|
+ let res = await this.dictQuery({ code: 'transport_company', label: value });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, 'shop_transport_typeList', res.data);
|
|
this.$set(this, 'shop_transport_typeList', res.data);
|
|
}
|
|
}
|
|
@@ -367,14 +367,13 @@ export default {
|
|
window.history.go('-1');
|
|
window.history.go('-1');
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+
|
|
computed: {
|
|
computed: {
|
|
|
|
+ ...mapState(['user']),
|
|
id() {
|
|
id() {
|
|
return this.$route.query.id;
|
|
return this.$route.query.id;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- computed: {
|
|
|
|
- ...mapState(['user']),
|
|
|
|
- },
|
|
|
|
metaform() {
|
|
metaform() {
|
|
return { title: this.$route.meta.title };
|
|
return { title: this.$route.meta.title };
|
|
},
|
|
},
|