新购新增数量价格逻辑优化
This commit is contained in:
parent
eca37e0151
commit
88119b83dd
|
|
@ -133,14 +133,14 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="购置单价(元含税)"
|
label="购置单价(元含税)"
|
||||||
prop="purchaseTaxPrice"
|
prop="purchaseTaxPrice"
|
||||||
align="center"
|
align="center" width="200"
|
||||||
>
|
>
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="scope.row.purchaseTaxPrice"
|
v-model="scope.row.purchaseTaxPrice"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="0" disabled
|
:min="0" :step="1"
|
||||||
@change="purchaseTaxPriceChange(scope.row,scope.$index)"
|
@change="purchaseTaxPriceChange(scope.row,scope.$index)"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -148,14 +148,14 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="购置单价(元不含税)"
|
label="购置单价(元不含税)"
|
||||||
prop="purchasePrice"
|
prop="purchasePrice"
|
||||||
align="center"
|
align="center" width="200"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="scope.row.purchasePrice"
|
v-model="scope.row.purchasePrice"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:min="0"
|
:min="0" :step="1"
|
||||||
@input="purchasePriceChange(scope.row,scope.$index)"
|
@input="purchasePriceChange(scope.row,scope.$index)"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -164,7 +164,7 @@
|
||||||
label="是否为固定资产"
|
label="是否为固定资产"
|
||||||
prop="fixCode"
|
prop="fixCode"
|
||||||
align="center"
|
align="center"
|
||||||
width="200"
|
width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-select
|
<el-select
|
||||||
|
|
@ -199,7 +199,7 @@
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="相关配套资料"
|
label="相关配套资料"
|
||||||
align="center"
|
align="center" width="120"
|
||||||
prop="bmFileInfos"
|
prop="bmFileInfos"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -452,12 +452,11 @@ export default {
|
||||||
},
|
},
|
||||||
// 含税单价
|
// 含税单价
|
||||||
purchaseTaxPriceChange(row,val){
|
purchaseTaxPriceChange(row,val){
|
||||||
row.purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(4)
|
row.purchasePrice = ((row.purchaseTaxPrice/(100 + this.maForm.taxRate))*100).toFixed(10)
|
||||||
// row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(3)
|
|
||||||
},
|
},
|
||||||
// 不含税单价
|
// 不含税单价
|
||||||
purchasePriceChange(row,val){
|
purchasePriceChange(row,val){
|
||||||
row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(4)
|
row.purchaseTaxPrice = ((row.purchasePrice*(100 + this.maForm.taxRate))/100).toFixed(10)
|
||||||
},
|
},
|
||||||
/** 物资厂家-下拉选 */
|
/** 物资厂家-下拉选 */
|
||||||
supplierInfoList() {
|
supplierInfoList() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue