master
lion 2 weeks ago
parent eb8f9cc3cb
commit c6776c8cfc

@ -492,14 +492,15 @@
@selection-change="planPick" @selection-change="planPick"
> >
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="使用金额(元)" header-align="center" width="150" :fixed="$store.getters.device === 'mobile'?false:'right'"> <div></div>
<template v-if="scope.row.pid === 0" slot-scope="scope"> <!-- <el-table-column label="使用金额(元)" header-align="center" width="150" :fixed="$store.getters.device === 'mobile'?false:'right'">
<template v-if="scope.row.pid > 0" slot-scope="scope">
<InputNumber <InputNumber
style="width: 120px" style="width: 120px"
:min="0" :min="0"
:precision="2" :precision="2"
:active-change="false" :active-change="false"
:value="Number(scope.row._inputMoney)" :value="Number(scope.row._inputMoney?scope.row._inputMoney:0)"
:formatter=" :formatter="
(value) => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',') (value) => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')
" "
@ -507,7 +508,7 @@
@input="e => scope.row._inputMoney = e" @input="e => scope.row._inputMoney = e"
/> />
</template> </template>
</el-table-column> </el-table-column> -->
</template> </template>
</xy-table> </xy-table>
</template> </template>

@ -344,11 +344,12 @@
@select="selectPlan" @select="selectPlan"
> >
<template v-slot:btns> <template v-slot:btns>
<el-table-column label="使用金额(元)" header-align="center" width="130"> <div></div>
<template v-if="scope.row.pid === 0" slot-scope="scope"> <!-- <el-table-column label="使用金额(元)" header-align="center" width="130">
<Input :value="scope.row.useMoney" @input="planInput($event,scope.row)" /> <template v-if="scope.row.pid > 0" slot-scope="scope">
<Input :value="scope.row.useMoney?scope.row.useMoney:0" @input="planInput($event,scope.row)" />
</template> </template>
</el-table-column> </el-table-column> -->
</template> </template>
</xy-table> </xy-table>
@ -761,11 +762,11 @@ export default {
} }
if (e <= (Number(row.money) - Number(row.use_money_total))) { if (e <= (Number(row.money) - Number(row.use_money_total))) {
row.useMoney = e row.useMoney = e
this.plan.forEach(item => { // this.plan.forEach(item => {
if (item.value.plan_id == row.id) { // if (item.value.plan_id == row.id) {
item.value.use_money = e // item.value.use_money = e
} // }
}) // })
return return
} }
Message({ Message({

Loading…
Cancel
Save