Compare commits

..

3 Commits

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

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

Loading…
Cancel
Save