|
@@ -339,24 +339,22 @@ export default {
|
|
|
},
|
|
|
// 买家快递填写保存
|
|
|
async customerSubmit(val) {
|
|
|
- if (val.customer_transport_no && val.customer_transport_type) {
|
|
|
- let info = this.info;
|
|
|
- let res;
|
|
|
- if (info.transport) {
|
|
|
- info.transport = {
|
|
|
- ...info.transport,
|
|
|
- customer_transport_no: val.customer_transport_no,
|
|
|
- customer_transport_type: val.customer_transport_type,
|
|
|
- };
|
|
|
- } else {
|
|
|
- let transport = { customer_transport_no: val.customer_transport_no, customer_transport_type: val.customer_transport_type };
|
|
|
- info.transport = transport;
|
|
|
- }
|
|
|
- if (info.id) res = await this.update(info);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$message({ type: `success`, message: `维护信息成功` });
|
|
|
- this.search();
|
|
|
- }
|
|
|
+ let info = this.info;
|
|
|
+ let res;
|
|
|
+ if (info.transport) {
|
|
|
+ info.transport = {
|
|
|
+ ...info.transport,
|
|
|
+ customer_transport_no: val.customer_transport_no,
|
|
|
+ customer_transport_type: val.customer_transport_type,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ let transport = { customer_transport_no: val.customer_transport_no, customer_transport_type: val.customer_transport_type };
|
|
|
+ info.transport = transport;
|
|
|
+ }
|
|
|
+ if (info.id) res = await this.update(info);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({ type: `success`, message: `维护信息成功` });
|
|
|
+ this.search();
|
|
|
}
|
|
|
},
|
|
|
// 保存
|