qsh 1 month ago
parent 42fec8b681
commit baf325cda6
  1. 15
      src/views/Clue/Order/Comp/Reback.vue

@ -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 == '结清'
} }
} }

Loading…
Cancel
Save