结算单不合并

jg-waiwang-pro
XI_TENG\xixi_ 4 months ago
parent 31daaeb21f
commit a13c10011a

@ -1368,7 +1368,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.spec" <JnpfInput v-model="scope.row.spec"
@change="changeData('cwsettlementsummary-spec',scope.$index)" @change="changeData('cwsettlementsummary-spec',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -1470,8 +1470,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.settlementSubtotalNo" <JnpfInput v-model="scope.row.settlementSubtotalNo"
@change="changeData('cwsettlementsummary-settlementSubtotalNo',scope.$index)" @change="changeData('cwsettlementsummary-settlementSubtotalNo',scope.$index)"
placeholder="请输入" addonBefore="¥" :disabled="true" clearable placeholder="请输入" addonBefore="¥" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -1512,8 +1511,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.settlementTotalNo" <JnpfInput v-model="scope.row.settlementTotalNo"
@change="changeData('cwsettlementsummary-settlementTotalNo',scope.$index)" @change="changeData('cwsettlementsummary-settlementTotalNo',scope.$index)"
placeholder="请输入" addonBefore="¥" :disabled="true" clearable placeholder="请输入" addonBefore="¥" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -2954,25 +2952,26 @@ export default {
this.dataForm.overdueAmount = overdueAmount; this.dataForm.overdueAmount = overdueAmount;
// debugger // debugger
var data = JSON.parse(JSON.stringify(this.dataForm.cwsettlementaccountList)) // var data = JSON.parse(JSON.stringify(this.dataForm.cwsettlementaccountList))
var order = this.dataForm.cwsettlementaccountList[0].code // var order = this.dataForm.cwsettlementaccountList[0].code
console.log(order); // console.log(order);
var dataProduct = JSON.parse(JSON.stringify(res.data)) // var dataProduct = JSON.parse(JSON.stringify(res.data))
console.log(dataProduct); // console.log(dataProduct);
var productid = res.data[0].productId // var productid = res.data[0].productId
data.forEach(item => { // data.forEach(item => {
dataProduct.forEach(item1 => { // dataProduct.forEach(item1 => {
// debugger // // debugger
if (item.code == order && item1.productId == productid) { // if (item.code == order && item1.productId == productid) {
this.dataForm.cwsettlementsummaryList = this.sameReduce(res.data); // this.dataForm.cwsettlementsummaryList = this.sameReduce(res.data);
} else { // } else {
this.dataForm.cwsettlementsummaryList = res.data; // this.dataForm.cwsettlementsummaryList = res.data;
return // return
} // }
}) // })
}) // })
this.dataForm.cwsettlementsummaryList = res.data;
this.dataForm.cwsettlementsummaryList.forEach(item => { this.dataForm.cwsettlementsummaryList.forEach(item => {
item.settlementPrice = this.jnpf.floatDiv(item.settlementSubtotal, item.settlementSum);// item.settlementPrice = this.jnpf.floatDiv(item.settlementSubtotal, item.settlementSum);//

Loading…
Cancel
Save