|
@@ -19,15 +19,6 @@
|
|
|
:label-col="formItemLayout.labelCol"
|
|
|
:wrapper-col="formItemLayout.wrapperCol"
|
|
|
>
|
|
|
- <a-form-model-item label="关联经销商">
|
|
|
- <a-row :gutter="10">
|
|
|
- <a-col :span="17">
|
|
|
- <custList ref="custList" @change="custChange" placeholder="请输入经销商名称搜索"></custList>
|
|
|
- </a-col>
|
|
|
- <a-col :span="6">
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form-model-item>
|
|
|
<a-form-model-item label="差价归属方" prop="cjgsf">
|
|
|
<a-row :gutter="10">
|
|
|
<a-col :span="17">
|
|
@@ -45,23 +36,29 @@
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form-model-item>
|
|
|
- <a-form-model-item label="已绑经销商" v-if="form.cjgsf.indexOf('0')>=0">
|
|
|
+ <a-form-model-item label="上级经销商" v-if="form.cjgsf.indexOf('0')>=0">
|
|
|
<a-row :gutter="10">
|
|
|
- <a-col :span="17">
|
|
|
- <a-input v-model.trim="form.name" disabled />
|
|
|
+ <a-col :span="13">
|
|
|
+ <custList ref="custList" @change="custChange" placeholder="请输入经销商名称搜索"></custList>
|
|
|
</a-col>
|
|
|
- <a-col :span="6" v-if="showPercent">
|
|
|
- <a-input-number :min="0" :max="100"/> %
|
|
|
+ <a-col :span="5">
|
|
|
+ <v-select code="DEALER_GOODS_TYPE" allowClear placeholder="请选择价格类型"></v-select>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="4" v-if="showPercent||showPercent1">
|
|
|
+ <a-input-number :min="0" :max="100" placeholder="请输入比例"/> %
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="指定经销商" v-if="form.cjgsf.indexOf('1')>=0">
|
|
|
<a-row :gutter="10" v-for="(item,index) in zdDealearList" :key="item.id">
|
|
|
- <a-col :span="17">
|
|
|
+ <a-col :span="13">
|
|
|
<custList ref="custList" @change="custChange" placeholder="请输入经销商名称搜索"></custList>
|
|
|
</a-col>
|
|
|
- <a-col :span="5" v-if="showPercent||showPercent1">
|
|
|
- <a-input-number :min="0" :max="100"/> %
|
|
|
+ <a-col :span="5">
|
|
|
+ <v-select code="DEALER_GOODS_TYPE" allowClear placeholder="请选择价格类型"></v-select>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="4" v-if="showPercent||showPercent1">
|
|
|
+ <a-input-number :min="0" :max="100" placeholder="请输入比例"/> %
|
|
|
</a-col>
|
|
|
<a-col :span="2">
|
|
|
<a-button @click="addOrDel(item,index)" size="small" shape="circle" :icon="index==zdDealearList.length-1?'plus':'minus'" style="margin-left: 10px;" />
|
|
@@ -70,11 +67,14 @@
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="箭冠总公司" v-if="form.cjgsf.indexOf('2')>=0">
|
|
|
<a-row :gutter="10">
|
|
|
- <a-col :span="17">
|
|
|
- <a-input v-model.trim="form.name" disabled />
|
|
|
+ <a-col :span="13">
|
|
|
+ <a-input value="箭冠总公司" disabled />
|
|
|
</a-col>
|
|
|
- <a-col :span="6" v-if="showPercent">
|
|
|
- <a-input-number :min="0" :max="100"/> %
|
|
|
+ <a-col :span="5">
|
|
|
+ <v-select code="DEALER_GOODS_TYPE" allowClear placeholder="请选择价格类型"></v-select>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="4" v-if="showPercent">
|
|
|
+ <a-input-number :min="0" :max="100" placeholder="请输入比例"/> %
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form-model-item>
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
cjgsf: [{ required: true, message: '请选择差价归属方', trigger: 'change' }]
|
|
|
},
|
|
|
cjgsfList: [
|
|
|
- { code: '0', name: '已绑经销商' },
|
|
|
+ { code: '0', name: '上级经销商' },
|
|
|
{ code: '1', name: '指定经销商' },
|
|
|
{ code: '2', name: '箭冠总公司' }
|
|
|
],
|
|
@@ -177,7 +177,9 @@ export default {
|
|
|
this.form.dealerSn = undefined
|
|
|
this.form.cjgsf = []
|
|
|
this.zdDealearList = []
|
|
|
- this.$refs.custList.resetForm()
|
|
|
+ if (this.$refs.custList) {
|
|
|
+ this.$refs.custList.resetForm()
|
|
|
+ }
|
|
|
},
|
|
|
// 保存
|
|
|
handleSave () {
|