|
|
@@ -548,9 +548,13 @@ Page({
|
|
|
let amount_index = contentList.findIndex(it => it.code == 'amount');
|
|
|
let count_index = contentList.findIndex(it => it.code == 'count');
|
|
|
choosedGoodsList.forEach(element => {
|
|
|
- if(this.data.billType == 'purReturn'){
|
|
|
+ if(this.data.billType == 'purReturn'||this.data.billType == 'purInto'){
|
|
|
element.sumPrice = Number(element.itemQty) * Number(element.priceInto)
|
|
|
sum = sum + (Number(element.itemQty) * Number(element.priceInto))
|
|
|
+ }else if (this.data.billType == 'pur'){
|
|
|
+ element.sumPrice = Number(element.itemQty) * Number(element.pricePur)
|
|
|
+ sum = sum + (Number(element.itemQty) * Number(element.pricePur))
|
|
|
+
|
|
|
}else{
|
|
|
element.sumPrice = Number(element.itemQty) * Number(element.priceSale)
|
|
|
sum = sum + (Number(element.itemQty) * Number(element.priceSale))
|
|
|
@@ -601,9 +605,12 @@ Page({
|
|
|
this.data.billType == Constants.billType.inventory){ //销售的时候 改价格pop
|
|
|
popChangePrice[popChangePriceindex].code = 'priceOut'
|
|
|
}
|
|
|
- if(this.data.billType == Constants.billType.purReturn){
|
|
|
+ if(this.data.billType == Constants.billType.purReturn||this.data.billType == Constants.billType.purInto){
|
|
|
popChangePrice[popChangePriceindex].code = 'priceInto'
|
|
|
- }
|
|
|
+ }
|
|
|
+ if(this.data.billType == Constants.billType.pur){
|
|
|
+ popChangePrice[popChangePriceindex].code = 'pricePur'
|
|
|
+ }
|
|
|
this.setData({
|
|
|
popChangePrice:popChangePrice,
|
|
|
showChangePrice: true,
|