Browse Source

完善单车返利管理、专项返利管理 增加返利政策方

zhanglei
yunuo970428 2 weeks ago
parent
commit
bcfd501e04
  1. 1
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagement.vue
  2. 28
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagementAdd.vue
  3. 28
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagementEdit.vue
  4. 1
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagement.vue
  5. 30
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagementAdd.vue

1
anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagement.vue

@ -101,6 +101,7 @@
</template>
</el-table-column>
<el-table-column fixed prop="purchaseSystemName" label="采购系统" align="center" width="110" />
<el-table-column fixed prop="policySideValue" label="返利政策方" align="center" width="130" />
<el-table-column fixed prop="vinNo" label="车架号" align="center" width="90" />
<el-table-column prop="vehModelName" label="车型" align="center" width="200" />
<el-table-column prop="palceGenDate" label="所属年月" align="center" width="85" />

28
anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagementAdd.vue

@ -44,7 +44,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-col :span="8">
<div class="span-sty">
<span class="icon">*</span>计算标准
<span v-if="formobj.calculationModeValue == '比例'">(%)</span>
@ -52,6 +52,14 @@
</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-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>
<div class="title titleOne">
<div>返利车辆列表</div>
@ -121,6 +129,7 @@ export default {
viewState: 1,
rebateType_list: [], //
calculationMode_list: [], //
policySide_list: [], //
//
formobj: {
rebateTypeKey: '',
@ -129,6 +138,8 @@ export default {
palceGenDate: '',
calculationModeKey: '',
calculationModeValue: '',
policySideKey: '',
policySideValue: '',
calculationStandard: '',
sid: '',
orgPath: '',
@ -157,6 +168,11 @@ export default {
this.calculationMode_list = resp.data
}
})
typeValues({ type: 'policySide' }).then((resp) => {
if (resp.success) {
this.policySide_list = resp.data
}
})
},
getSpecialNumber(val, limit) {
val = val.replace(/[^0-9.-]/g, '') //
@ -221,6 +237,14 @@ export default {
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() {
if (this.formobj.calculationModeValue !== '' && this.formobj.calculationStandard !== '') {
@ -334,6 +358,8 @@ export default {
palceGenDate: '',
calculationModeKey: '',
calculationModeValue: '',
policySideKey: '',
policySideValue: '',
calculationStandard: '',
sid: '',
orgPath: '',

28
anrui-scm/anrui-scm-ui/src/views/bikerebate/bikerebatemanagement/bicyclerebatemanagementEdit.vue

@ -43,7 +43,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="16">
<el-col :span="8">
<div class="span-sty">
<span class="icon">*</span>计算标准
<span v-if="formobj.calculationModeValue == '比例'">(%)</span>
@ -51,6 +51,14 @@
</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-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>
<div class="title">车辆信息({{ formobj.vinNo }} {{ formobj.purchaseSystemName }} {{ formobj.brandName }})</div>
<el-row>
@ -111,6 +119,7 @@ export default {
viewTitle: '',
rebateType_list: [], //
calculationMode_list: [], //
policySide_list: [], //
//
formobj: {
rebateTypeKey: '',
@ -119,6 +128,8 @@ export default {
palceGenDate: '',
calculationModeKey: '',
calculationModeValue: '',
policySideKey: '',
policySideValue: '',
calculationStandard: '',
sid: '',
vinNo: '',
@ -174,6 +185,11 @@ export default {
this.calculationMode_list = resp.data
}
})
typeValues({ type: 'policySide' }).then((resp) => {
if (resp.success) {
this.policySide_list = resp.data
}
})
},
getSpecialNumber(val, limit) {
val = val.replace(/[^0-9.-]/g, '') //
@ -229,6 +245,14 @@ export default {
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 = ''
}
},
showEdit(row) {
this.init()
this.$nextTick(() => {
@ -273,6 +297,8 @@ export default {
palceGenDate: '',
calculationModeKey: '',
calculationModeValue: '',
policySideKey: '',
policySideValue: '',
calculationStandard: '',
sid: '',
vinNo: '',

1
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagement.vue

@ -93,6 +93,7 @@
</template>
</el-table-column>
<el-table-column fixed prop="purchaseSystemName" label="采购系统" align="center" width="110" />
<el-table-column fixed prop="policySideValue" label="返利政策方" align="center" width="130" />
<el-table-column prop="palceGenDate" label="所属年月" align="center" width="85" />
<el-table-column prop="rebateTypeValue" label="返利类型" align="center" width="120" />
<el-table-column prop="rebateName" label="返利名称" align="center" min-width="130" />

30
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagementAdd.vue

@ -62,10 +62,18 @@
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-col :span="16">
<div class="span-sty"><span class="icon">*</span>预计返利</div>
<el-form-item prop="estimateRebate"><el-input class="addinputInfo" style="width: 30%" v-model="formobj.estimateRebate" @keydown.native="formobj.estimateRebate = getSpecialNumber(formobj.estimateRebate, 2)" placeholder="" clearable /></el-form-item>
</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>
<el-col :span="8">
@ -102,7 +110,7 @@
<script>
import req from '@/api/specialrebate/specialrebatemanagement'
import { fetchBySid, brandDown, fetchDetailsByUseOrgSid, getTypeValueList } from '@/api/cheliang/dictcommons'
import { fetchBySid, brandDown, fetchDetailsByUseOrgSid, getTypeValueList, typeValues } from '@/api/cheliang/dictcommons'
export default {
name: 'ZhuanXiangFanLiGuanLiAdd',
@ -115,6 +123,7 @@ export default {
orgDept_list: [], //
rebateType_list: [], //
carBrand_list: [], //
policySide_list: [], //
//
formobj: {
brandName: '',
@ -122,6 +131,8 @@ export default {
createTime: '',
rebateTypeKey: '',
rebateTypeValue: '',
policySideKey: '',
policySideValue: '',
rebateName: '',
sid: '',
createOrgSid: '',
@ -211,6 +222,11 @@ export default {
this.orgDept_list = res.data
}
})
typeValues({ type: 'policySide' }).then((resp) => {
if (resp.success) {
this.policySide_list = resp.data
}
})
},
showAdd(createOrgSid) {
this.$nextTick(() => {
@ -258,6 +274,14 @@ export default {
this.formobj.rebateTypeKey = ''
}
},
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 = ''
}
},
save() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
@ -286,6 +310,8 @@ export default {
createTime: '',
rebateTypeKey: '',
rebateTypeValue: '',
policySideKey: '',
policySideValue: '',
rebateName: '',
sid: '',
createOrgSid: '',

Loading…
Cancel
Save