This commit is contained in:
xd 2024-05-09 17:22:20 +08:00
parent c923a46bca
commit be70da84cb
1 changed files with 9 additions and 2 deletions

View File

@ -49,7 +49,7 @@
<el-input-number v-model="perc2" size="small" controls-position="right" :min="0" :max="6" :step="0.5"></el-input-number>% <el-input-number v-model="perc2" size="small" controls-position="right" :min="0" :max="6" :step="0.5"></el-input-number>%
</span> </span>
<el-table width="100%;" style="margin-top:5px" ref="selectedResultTable" :data="selectedResultData"> <el-table width="100%;" style="margin-top:5px" ref="selectedResultTable" :data="selectedResultData">
<el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width"> <el-table-column fixed="left" label="操作" align="center" width="60" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handleDeleteClick(scope.$index)">删除</el-button> <el-button type="text" @click="handleDeleteClick(scope.$index)">删除</el-button>
</template> </template>
@ -59,11 +59,16 @@
<el-table-column label="电压" align="center" prop="voltage" width="120"/> <el-table-column label="电压" align="center" prop="voltage" width="120"/>
<el-table-column label="红本价(元)" align="center" prop="price" width="100"/> <el-table-column label="红本价(元)" align="center" prop="price" width="100"/>
<el-table-column label="单位" align="center" prop="stu" width="80"/> <el-table-column label="单位" align="center" prop="stu" width="80"/>
<el-table-column label="调价比例" align="center" prop="percent" width="100"> <el-table-column label="一次折扣" align="center" prop="percent" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.percent"/> <el-input v-model="scope.row.percent"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="二次折扣" align="center" prop="percent2" width="100">
<template slot-scope="scope">
<el-input v-model="scope.row.percent2"/>
</template>
</el-table-column>
<el-table-column label="单价" align="center" prop="setPrice" width="100"/> <el-table-column label="单价" align="center" prop="setPrice" width="100"/>
<el-table-column label="数量调整" align="center" prop="count" width="100"> <el-table-column label="数量调整" align="center" prop="count" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
@ -361,8 +366,10 @@
handleRowDblclick(row, event, column){ handleRowDblclick(row, event, column){
const price = row.price; const price = row.price;
const percent = '1'; const percent = '1';
const percent2 = '1';
const count = '1'; const count = '1';
row.percent = percent; row.percent = percent;
row.percent2 = percent2;
row.setPrice = price; row.setPrice = price;
row.count = count; row.count = count;
const allPrice = this.toDecimal(count*price); const allPrice = this.toDecimal(count*price);