|
@@ -136,7 +136,7 @@
|
|
|
<el-table-column prop="goods.goodsSalesUnit" align="center" label="单位" ></el-table-column>
|
|
|
<el-table-column prop="" align="center" label="数量" >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-input type="number" v-model="scope.row.retQty" :disabled="isEdit != scope.$index || formType == 2" placeholder="请输入"></el-input>
|
|
|
+ <el-input type="number" v-model="scope.row.oldRefundQty" :disabled="isEdit != scope.$index || formType == 2" placeholder="请输入"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="goods.goodsCode" align="center" label="配件编码"></el-table-column>
|
|
@@ -144,8 +144,8 @@
|
|
|
<el-table-column prop="goods.productRelaName" align="center" label="适用产品大类"></el-table-column>
|
|
|
<el-table-column prop="goods.price" align="center" label="销售价格"></el-table-column>
|
|
|
<el-table-column prop="goods.saleAmount" align="center" label="销售金额" >
|
|
|
- <template slot-scope="scope" v-if="scope.row.retQty && scope.row.goods && scope.row.goods.price">
|
|
|
- {{(scope.row.goods.price * 100) * scope.row.retQty / 100}}
|
|
|
+ <template slot-scope="scope" v-if="scope.row.oldRefundQty && scope.row.goods && scope.row.goods.price">
|
|
|
+ {{(scope.row.goods.price * 100) * scope.row.oldRefundQty / 100}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column prop="goods.qty" align="center" label="库存数量"></el-table-column> -->
|
|
@@ -274,8 +274,8 @@
|
|
|
this.getWorker()
|
|
|
for(var item of res.data.websitPartsRetItemList){
|
|
|
var ress = await that.getGoods(item.goodsName, 1)
|
|
|
- item.goods = {...ress.data,oldPrice:ress.data.price,retQty: 1}
|
|
|
- item.goodsList = ress.data ? [{...ress.data,oldPrice:ress.data.price,retQty: 1}] : []
|
|
|
+ item.goods = {...ress.data,oldPrice:ress.data.price,oldRefundQty: 1}
|
|
|
+ item.goodsList = ress.data ? [{...ress.data,oldPrice:ress.data.price,oldRefundQty: 1}] : []
|
|
|
}
|
|
|
this.dataList = res.data.websitPartsRetItemList
|
|
|
})
|
|
@@ -349,7 +349,7 @@
|
|
|
refundAmount: '',
|
|
|
saleAmount: '',
|
|
|
salesQty: 1,
|
|
|
- retQty: 1,
|
|
|
+ oldRefundQty: 1,
|
|
|
qty: '',
|
|
|
goodsType: 'P'
|
|
|
})
|