Commit 7a6969cd by yuzhenWang

Merge branch 'wyz' into 'test'

修复来佣--佣金设置对账公司id重复得问题

See merge request !17
parents 7bce20a8 3ccb6aef
...@@ -53,7 +53,13 @@ ...@@ -53,7 +53,13 @@
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<!-- 表格数据 --> <!-- 表格数据 -->
<el-table v-loading="settingLoading" :data="settingList" border ref="settingTableRef" height="75%"> <el-table
v-loading="settingLoading"
:data="settingList"
border
ref="settingTableRef"
height="75%"
>
<el-table-column <el-table-column
label="序号 " label="序号 "
width="55" width="55"
...@@ -244,6 +250,7 @@ ...@@ -244,6 +250,7 @@
</template> </template>
<template #default="scope"> <template #default="scope">
<el-select <el-select
@change="selectChange(scope.row, 'reconciliationCompanyName')"
v-model="scope.row.reconciliationCompanyName" v-model="scope.row.reconciliationCompanyName"
filterable filterable
remote remote
...@@ -424,6 +431,16 @@ const { bx_currency_type, commission_cost_type, sys_no_yes, sys_status } = proxy ...@@ -424,6 +431,16 @@ const { bx_currency_type, commission_cost_type, sys_no_yes, sys_status } = proxy
'sys_no_yes', 'sys_no_yes',
'sys_status' 'sys_status'
) )
const selectChange = (row, key) => {
if (key == 'reconciliationCompanyName') {
row.reconciliationCompany = searchOptions.value['reconciliationCompanyName'].find(
item => item.value == row.reconciliationCompanyName
).value
row.reconciliationCompanyName = searchOptions.value['reconciliationCompanyName'].find(
item => item.value == row.reconciliationCompanyName
).label
}
}
const switchChange = row => { const switchChange = row => {
if (!row.expectedCommissionRatioBizId) { if (!row.expectedCommissionRatioBizId) {
return return
...@@ -619,6 +636,9 @@ const handleAddCommission = row => { ...@@ -619,6 +636,9 @@ const handleAddCommission = row => {
if (!row.unadd) { if (!row.unadd) {
settingList.value.push(obj) settingList.value.push(obj)
} }
console.log('====================================')
console.log('新增', settingList.value)
console.log('====================================')
} }
const closeSetting = () => { const closeSetting = () => {
showCommisionSetting.value = false showCommisionSetting.value = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment