apply-clients 3.1.48 → 3.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -524,6 +524,52 @@
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
|
+
getTotalCost(){
|
|
528
|
+
if (this.selectdata.defname === '结算') {
|
|
529
|
+
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
530
|
+
if (this.show_data.fields[i].label === '低压工程款') {
|
|
531
|
+
this.show_data.f_project_money_down = Number(this.show_data.fields[i].value)
|
|
532
|
+
console.log("测试1", this.show_data.f_project_money_down)
|
|
533
|
+
} else if (this.show_data.fields[i].label === '中压工程款') {
|
|
534
|
+
this.show_data.f_project_money_up = Number(this.show_data.fields[i].value)
|
|
535
|
+
console.log("测试2", this.show_data.f_project_money_up)
|
|
536
|
+
} else if (this.show_data.fields[i].label === '低压材料款') {
|
|
537
|
+
this.show_data.f_material_money_down = Number(this.show_data.fields[i].value)
|
|
538
|
+
console.log("测试3", this.show_data.f_material_money_down)
|
|
539
|
+
} else if (this.show_data.fields[i].label === '中压材料款') {
|
|
540
|
+
this.show_data.f_material_money_up = Number(this.show_data.fields[i].value)
|
|
541
|
+
console.log("测试4", this.show_data.f_material_money_up)
|
|
542
|
+
} else if (this.show_data.fields[i].label === '支付结算') {
|
|
543
|
+
console.log("测试5", this.show_data.f_payment_settlement)
|
|
544
|
+
if ((this.show_data.f_project_money_down + this.show_data.f_project_money_up) > 0) {
|
|
545
|
+
this.show_data.fields[i].value = this.show_data.f_project_money_down + this.show_data.f_project_money_up
|
|
546
|
+
}
|
|
547
|
+
this.show_data.f_payment_settlement = Number(this.show_data.fields[i].value)
|
|
548
|
+
} else if (this.show_data.fields[i].label === '支付材料') {
|
|
549
|
+
console.log("测试6", (this.show_data.f_material_money_down + this.show_data.f_material_money_up))
|
|
550
|
+
if ((this.show_data.f_material_money_down + this.show_data.f_material_money_up) > 0) {
|
|
551
|
+
console.log("测试6", (this.show_data.f_material_money_down + this.show_data.f_material_money_up))
|
|
552
|
+
this.show_data.fields[i].value = this.show_data.f_material_money_down + this.show_data.f_material_money_up
|
|
553
|
+
}
|
|
554
|
+
this.show_data.f_payment_material = Number(this.show_data.fields[i].value)
|
|
555
|
+
} else if (this.show_data.fields[i].label === '总成本') {
|
|
556
|
+
if ((this.show_data.f_payment_material + this.show_data.f_payment_settlement) > 0) {
|
|
557
|
+
console.log("测试7")
|
|
558
|
+
this.show_data.fields[i].value = this.show_data.f_payment_material + this.show_data.f_payment_settlement
|
|
559
|
+
}
|
|
560
|
+
this.show_data.f_total_cost = this.show_data.fields[i].value
|
|
561
|
+
} else if (this.show_data.fields[i].label === '毛利') {
|
|
562
|
+
if (this.show_data.f_total_cost > 0) {
|
|
563
|
+
console.log("测试8")
|
|
564
|
+
let number = parseFloat((this.selectdata.f_contract_money - this.show_data.f_total_cost) / this.selectdata.f_contract_money).toFixed(5)
|
|
565
|
+
let realVal = number.substring(0, number.length - 1)
|
|
566
|
+
this.show_data.fields[i].value =(realVal * 100).toFixed(2)+"%"
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
console.log("测试", this.show_data)
|
|
571
|
+
}
|
|
572
|
+
},
|
|
527
573
|
an_kang_yi_hua () {
|
|
528
574
|
//===================安康逸华前端特殊逻辑===========================
|
|
529
575
|
let swap1 = null // 小区名称转换
|
|
@@ -896,6 +942,7 @@
|
|
|
896
942
|
this.an_kang_yi_hua()
|
|
897
943
|
this.getGasMeter1()
|
|
898
944
|
this.getGasPrice()
|
|
945
|
+
this.getTotalCost()
|
|
899
946
|
|
|
900
947
|
|
|
901
948
|
// 合成地址
|