Compare commits

2 Commits

Author SHA1 Message Date
qsh
51f7a85542 Merge branch 'main' of http://114.55.169.15:3000/qiushanhe/ss-crm-manage-web 2024-08-26 16:51:56 +08:00
qsh
baf325cda6 sc 2024-08-26 16:51:42 +08:00

View File

@@ -186,7 +186,15 @@
</template>
</el-table-column>
<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
v-if="appStore.getAppInfo?.instanceType == 1"
prop="receiverName"
@@ -429,16 +437,19 @@ async function handleUpdate(row) {
id: row.id,
money: row.money,
companyProfit: row.companyProfit,
personProfit: row.personProfit
personProfit: row.personProfit,
isPayoff: row.isPayoffValue
})
.then(() => {
message.success('修改成功')
getList()
})
.finally(() => {
row.edit = false
})
} else {
row.edit = true
row.isPayoffValue = row.isPayoff == '结清'
}
}