|
@ -44,7 +44,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="16"> |
|
|
<el-col :span="8"> |
|
|
<div class="span-sty"> |
|
|
<div class="span-sty"> |
|
|
<span class="icon">*</span>计算标准 |
|
|
<span class="icon">*</span>计算标准 |
|
|
<span v-if="formobj.calculationModeValue == '比例'">(%)</span> |
|
|
<span v-if="formobj.calculationModeValue == '比例'">(%)</span> |
|
@ -52,6 +52,14 @@ |
|
|
</div> |
|
|
</div> |
|
|
<el-form-item prop="calculationStandard"><el-input class="addinputInfo addinputw" v-model="formobj.calculationStandard" @keyup.native="formobj.calculationStandard = getSpecialNumber(formobj.calculationStandard, 2)" clearable placeholder="" /></el-form-item> |
|
|
<el-form-item prop="calculationStandard"><el-input class="addinputInfo addinputw" v-model="formobj.calculationStandard" @keyup.native="formobj.calculationStandard = getSpecialNumber(formobj.calculationStandard, 2)" clearable placeholder="" /></el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
<el-col :span="8"> |
|
|
|
|
|
<div class="span-sty"><span class="icon">*</span>返利政策方</div> |
|
|
|
|
|
<el-form-item prop="policySideValue"> |
|
|
|
|
|
<el-select class="addinputInfo" v-model="formobj.policySideValue" placeholder="请选择" filterable clearable @change="changePolicySide"> |
|
|
|
|
|
<el-option v-for="item in policySide_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<div class="title titleOne"> |
|
|
<div class="title titleOne"> |
|
|
<div>返利车辆列表</div> |
|
|
<div>返利车辆列表</div> |
|
@ -121,6 +129,7 @@ export default { |
|
|
viewState: 1, |
|
|
viewState: 1, |
|
|
rebateType_list: [], // 返利类型 |
|
|
rebateType_list: [], // 返利类型 |
|
|
calculationMode_list: [], // 计算方式 |
|
|
calculationMode_list: [], // 计算方式 |
|
|
|
|
|
policySide_list: [], // 返利政策方 |
|
|
// 表单数据 |
|
|
// 表单数据 |
|
|
formobj: { |
|
|
formobj: { |
|
|
rebateTypeKey: '', |
|
|
rebateTypeKey: '', |
|
@ -129,6 +138,8 @@ export default { |
|
|
palceGenDate: '', |
|
|
palceGenDate: '', |
|
|
calculationModeKey: '', |
|
|
calculationModeKey: '', |
|
|
calculationModeValue: '', |
|
|
calculationModeValue: '', |
|
|
|
|
|
policySideKey: '', |
|
|
|
|
|
policySideValue: '', |
|
|
calculationStandard: '', |
|
|
calculationStandard: '', |
|
|
sid: '', |
|
|
sid: '', |
|
|
orgPath: '', |
|
|
orgPath: '', |
|
@ -157,6 +168,11 @@ export default { |
|
|
this.calculationMode_list = resp.data |
|
|
this.calculationMode_list = resp.data |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
typeValues({ type: 'policySide' }).then((resp) => { |
|
|
|
|
|
if (resp.success) { |
|
|
|
|
|
this.policySide_list = resp.data |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getSpecialNumber(val, limit) { |
|
|
getSpecialNumber(val, limit) { |
|
|
val = val.replace(/[^0-9.-]/g, '') // 保留数字 |
|
|
val = val.replace(/[^0-9.-]/g, '') // 保留数字 |
|
@ -221,6 +237,14 @@ export default { |
|
|
this.formobj.calculationModeKey = '' |
|
|
this.formobj.calculationModeKey = '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
changePolicySide(value) { |
|
|
|
|
|
const choose = this.policySide_list.filter((item) => item.dictValue === value) |
|
|
|
|
|
if (choose !== null && choose.length > 0) { |
|
|
|
|
|
this.formobj.policySideKey = choose[0].dictKey |
|
|
|
|
|
} else { |
|
|
|
|
|
this.formobj.policySideKey = '' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
// 明细表添加一行数据 |
|
|
// 明细表添加一行数据 |
|
|
addjacket() { |
|
|
addjacket() { |
|
|
if (this.formobj.calculationModeValue !== '' && this.formobj.calculationStandard !== '') { |
|
|
if (this.formobj.calculationModeValue !== '' && this.formobj.calculationStandard !== '') { |
|
@ -334,6 +358,8 @@ export default { |
|
|
palceGenDate: '', |
|
|
palceGenDate: '', |
|
|
calculationModeKey: '', |
|
|
calculationModeKey: '', |
|
|
calculationModeValue: '', |
|
|
calculationModeValue: '', |
|
|
|
|
|
policySideKey: '', |
|
|
|
|
|
policySideValue: '', |
|
|
calculationStandard: '', |
|
|
calculationStandard: '', |
|
|
sid: '', |
|
|
sid: '', |
|
|
orgPath: '', |
|
|
orgPath: '', |
|
|