apply-clients 3.1.55 → 3.1.56
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
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
this.show_data.fields[i].label === '用气性质'
|
|
448
448
|
) {
|
|
449
449
|
let http = new HttpResetClass()
|
|
450
|
-
let condition = "
|
|
450
|
+
let condition = "f_filialeid = '" + this.$login.f.orgid + "'"
|
|
451
451
|
let res = await http.load('POST','rs/sql/applysingleTable',{data:{tablename:'t_stairprice',condition:condition}}, {resolveMsg: null, rejectMsg: null})
|
|
452
452
|
for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
453
453
|
if (this.show_data.fields[i].label == '气价名称') {
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
|
|
483
483
|
if (this.show_data.fields[i].label == '气价名称' && this.show_data.fields[i].value.length != 0) {
|
|
484
484
|
let http2 = new HttpResetClass()
|
|
485
|
-
let condition2 = "s.
|
|
485
|
+
let condition2 = "s.f_filialeid = '" + this.$login.f.orgid + "'" + " and s.f_price_name = '" + this.show_data.fields[i].value + "'"
|
|
486
486
|
let res2 = await http2.load('POST','rs/sql/searchGasPrice',{data:{condition:condition2}}, {resolveMsg: null, rejectMsg: null})
|
|
487
487
|
console.log("气价数据:" + JSON.stringify(res2.data))
|
|
488
488
|
for (let j = 0; j < this.show_data.fields.length; j++) {
|
|
@@ -490,21 +490,26 @@
|
|
|
490
490
|
console.log("气价类型:" + res2.data[0])
|
|
491
491
|
console.log("气价类型1:" + res2.data[0].f_price_type)
|
|
492
492
|
this.show_data.fields[j].value = res2.data[0].f_price_type
|
|
493
|
+
this.show_data.f_price_type = this.show_data.fields[j].value
|
|
493
494
|
console.log("气价类型2:" + this.show_data.fields[j].value)
|
|
494
495
|
}
|
|
495
496
|
//气价拼接
|
|
496
497
|
if (this.show_data.fields[j].label == '气价') {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
498
|
+
if(this.show_data.f_price_type == '阶梯气价'){
|
|
499
|
+
let p = 1
|
|
500
|
+
let resultPrice = ''
|
|
501
|
+
for(let l = 0; l < res2.data.length; l++){
|
|
502
|
+
resultPrice = resultPrice + res2.data[l].price + ' |'
|
|
503
|
+
if (p == 3) {
|
|
504
|
+
break
|
|
505
|
+
}
|
|
506
|
+
p++
|
|
503
507
|
}
|
|
504
|
-
|
|
508
|
+
console.log("拼接的价格:" + resultPrice)
|
|
509
|
+
this.show_data.fields[j].value = resultPrice
|
|
510
|
+
}else {
|
|
511
|
+
this.show_data.fields[j].value = res2.data[0].price
|
|
505
512
|
}
|
|
506
|
-
console.log("拼接的价格:" + resultPrice)
|
|
507
|
-
this.show_data.fields[j].value = resultPrice
|
|
508
513
|
}
|
|
509
514
|
if (this.show_data.fields[j].label == '用气性质') {
|
|
510
515
|
this.show_data.fields[j].value = res2.data[0].f_gasproperties
|