|
|
@@ -339,7 +339,7 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="发货连锁品牌" prop="chainBrand">
|
|
|
- <el-select v-model="form.chainBrand" multiple placeholder="请选择发货连锁品牌" size="small" style="width: 100%">
|
|
|
+ <el-select v-model="form.chainBrand" multiple placeholder="请选择发货连锁品牌" size="small" style="width: 100%" clearable>
|
|
|
<el-option label="红德堂" value="红德堂" />
|
|
|
<el-option label="优身" value="优身" />
|
|
|
<el-option label="乘济" value="乘济" />
|
|
|
@@ -433,7 +433,10 @@ shippingType:[],
|
|
|
account: null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
- form: {},
|
|
|
+ form: {
|
|
|
+ chainBrand: [],
|
|
|
+ chainBrands: null
|
|
|
+ },
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
storeName: [
|
|
|
@@ -613,6 +616,8 @@ shippingType:[],
|
|
|
brokerageRate:0,
|
|
|
fullName:null,
|
|
|
shopCode: null,
|
|
|
+ chainBrand: [],
|
|
|
+ chainBrands: null
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
@@ -657,7 +662,9 @@ shippingType:[],
|
|
|
this.form.deliveryType=JSON.stringify(this.form.deliveryType)
|
|
|
}
|
|
|
if (this.form.chainBrands) {
|
|
|
- this.form.chainBrand = this.form.chainBrands.split(',');
|
|
|
+ this.$set(this.form, 'chainBrand', this.form.chainBrands.split(','));
|
|
|
+ } else {
|
|
|
+ this.$set(this.form, 'chainBrand', []);
|
|
|
}
|
|
|
this.handleDeliveryTypeChange(this.form.deliveryType);
|
|
|
|
|
|
@@ -675,6 +682,8 @@ shippingType:[],
|
|
|
this.form.shippingType=(this.form.shippingType).toString()
|
|
|
if (this.form.chainBrand && Array.isArray(this.form.chainBrand)) {
|
|
|
this.form.chainBrands = this.form.chainBrand.join(',');
|
|
|
+ } else {
|
|
|
+ this.form.chainBrands = '';
|
|
|
}
|
|
|
if (this.form.storeId != null) {
|
|
|
updateStore(this.form).then(response => {
|