mirror of
https://github.com/shawncai/ERP.git
synced 2024-11-15 21:25:14 +08:00
comiit
修改bug
This commit is contained in:
parent
d1d8cc1083
commit
493d4f81fd
1 changed files with 3 additions and 3 deletions
|
@ -323,7 +323,7 @@
|
|||
:precision="2"
|
||||
:controls="false"
|
||||
v-model="scope.row.discountRate"
|
||||
@input="getdiscountRate(scope.row)"/>
|
||||
@change="getdiscountRate(scope.row)"/>
|
||||
</template>
|
||||
</el-editable-column>
|
||||
<el-editable-column :edit-render="{name: 'ElInputNumber', attrs: {min: 0}, type: 'visible'}" prop="discountMoney" align="center" label="折扣额" min-width="170">
|
||||
|
@ -332,7 +332,7 @@
|
|||
:precision="2"
|
||||
:controls="false"
|
||||
v-model="scope.row.discountMoney"
|
||||
@input="getdiscountMoney(scope.row)"/>
|
||||
@change="getdiscountMoney(scope.row)"/>
|
||||
</template>
|
||||
</el-editable-column>
|
||||
<el-editable-column :edit-render="{name: 'ElInput', type: 'visible'}" prop="carCode" align="center" label="车架编码" min-width="150" >
|
||||
|
@ -1388,7 +1388,7 @@ export default {
|
|||
getdiscountMoney(row) {
|
||||
console.log(row)
|
||||
if (row.taxprice !== 0 && row.quantity !== 0 && row.discountMoney !== 0) {
|
||||
row.discountRate = ((1 - (row.discountMoney / row.includeTaxCostMoney).toFixed(2)) * 100).toFixed(2)
|
||||
row.discountRate = ((1 - (row.discountMoney / row.includeTaxCostMoney)) * 100).toFixed(2)
|
||||
}
|
||||
},
|
||||
// 计算金额
|
||||
|
|
Loading…
Reference in a new issue