Compare commits

..

No commits in common. 'dd4bdb0786d6a31b6e4f0ddf88a3efb0d0ce498d' and '477a279867da6548f5f073e0e6528e50923d4563' have entirely different histories.

  1. 15
      src/views/Clue/Order/Comp/Reback.vue

@ -186,15 +186,7 @@
</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"
@ -437,19 +429,16 @@ 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