|
|
|
@ -213,10 +213,12 @@ Page({ |
|
|
|
for (let index = 0; index < this.data.factoryDetail.paperCategoryList.length; index++) { |
|
|
|
const element = this.data.factoryDetail.paperCategoryList[index] |
|
|
|
if(element.categoryId == detail.value){ |
|
|
|
this.data.form.unitPrice = element.unitPrice |
|
|
|
if(element.publicSubsidies && Number(element.publicSubsidies) > 0){ |
|
|
|
this.data.form.publicSubsidies = element.publicSubsidies |
|
|
|
this.data.form.unitPrice = math.plus(element.unitPrice, element.publicSubsidies) |
|
|
|
} else { |
|
|
|
this.data.form.unitPrice = element.unitPrice |
|
|
|
this.data.form.publicSubsidies = 0 |
|
|
|
} |
|
|
|
this.data.cateName = element.categoryName |
|
|
|
break |
|
|
|
|