Merge branch 'main' of http://114.55.169.15:3000/qiushanhe/ss-crm-manage-web into dev-cl
This commit is contained in:
@@ -186,7 +186,15 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="signPrice" label="成交价" min-width="90" />
|
<el-table-column prop="signPrice" label="成交价" min-width="90" />
|
||||||
<el-table-column prop="isPayoff" label="是否结清" min-width="90" />
|
<el-table-column prop="isPayoff" label="是否结清" min-width="90">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-select v-if="row.edit" size="small" v-model="row.isPayoffValue">
|
||||||
|
<el-option label="结清" :value="true" />
|
||||||
|
<el-option label="未结清" :value="false" />
|
||||||
|
</el-select>
|
||||||
|
<div v-else>{{ row.isPayoff }}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="appStore.getAppInfo?.instanceType == 1"
|
v-if="appStore.getAppInfo?.instanceType == 1"
|
||||||
prop="receiverName"
|
prop="receiverName"
|
||||||
@@ -429,16 +437,19 @@ async function handleUpdate(row) {
|
|||||||
id: row.id,
|
id: row.id,
|
||||||
money: row.money,
|
money: row.money,
|
||||||
companyProfit: row.companyProfit,
|
companyProfit: row.companyProfit,
|
||||||
personProfit: row.personProfit
|
personProfit: row.personProfit,
|
||||||
|
isPayoff: row.isPayoffValue
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.success('修改成功')
|
message.success('修改成功')
|
||||||
|
getList()
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
row.edit = false
|
row.edit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
row.edit = true
|
row.edit = true
|
||||||
|
row.isPayoffValue = row.isPayoff == '结清'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user