sale-client 3.6.114 → 3.6.115
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 +1 -1
- package/src/components/charge/business/PriceChangeCompensation/IotCompensation.vue +2 -2
- package/src/components/charge/business/PriceChangeCompensation/JbCompensation.vue +2 -2
- package/src/components/charge/business/PriceChangeCompensation/SurplusRecordDetail.vue +2 -2
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListList.vue +4 -4
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/liaoyuan/NewPriceAdjustment.vue +50 -14
- package/src/filiale/liaoyuan/NewPriceAdjustmentSell.vue +596 -0
- package/src/filiale/liaoyuan/NewPriceAdjustmentWebmeter.vue +1 -1
- package/src/filiale/liaoyuan/PriceAdjustmentManage.vue +3 -3
- package/src/filiale/liaoyuan/sale.js +1 -0
- package/src/filiale/lixianV3/MeterReadAudit.vue +28 -12
package/package.json
CHANGED
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
let getSurplus = await http.load('POST', 'rs/sql/singleTable_OrderBy',
|
|
158
158
|
{data: {items: "f_user_id,f_userfiles_id,f_change_price,sum(f_real_amount)f_real_amount,f_userinfo_id,f_type,sum(f_surplus_fee) as 'f_surplus_fee'",
|
|
159
159
|
tablename: 't_surplus_detail',
|
|
160
|
-
condition: `
|
|
161
|
-
orderitem: '
|
|
160
|
+
condition: `f_userinfo_id = '${self.row.f_userinfo_id}' and f_state='有效' and f_whether_pay = '否' GROUP BY f_user_id,f_userfiles_id,f_userinfo_id,f_type,f_change_price`,
|
|
161
|
+
orderitem: 'f_userinfo_id'}},
|
|
162
162
|
{resolveMsg: null, rejectMsg: null})
|
|
163
163
|
if (getSurplus.data.length > 0) {
|
|
164
164
|
self.row.f_surplus_id = getSurplus.data[0].id
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
let getSurplus = await http.load('POST', 'rs/sql/singleTable_OrderBy',
|
|
177
177
|
{data: {items: "min(id) minid,f_user_id,f_userfiles_id,sum(f_real_amount) f_real_amount,f_userinfo_id,f_type,sum(f_surplus_fee) f_surplus_fee",
|
|
178
178
|
tablename: 't_surplus_detail',
|
|
179
|
-
condition: `
|
|
180
|
-
orderitem: '
|
|
179
|
+
condition: `f_userinfo_id = '${self.row.f_userinfo_id}' and f_state='有效' and f_whether_pay = '否' GROUP BY f_user_id,f_userfiles_id,f_userinfo_id,f_type`,
|
|
180
|
+
orderitem: 'f_userinfo_id'}},
|
|
181
181
|
{resolveMsg: null, rejectMsg: null})
|
|
182
182
|
if (getSurplus.data.length > 0) {
|
|
183
183
|
self.row.f_surplus_id = getSurplus.data[0].minid
|
|
@@ -57,8 +57,8 @@ export default {
|
|
|
57
57
|
var suplusList = await http.load('POST', 'rs/sql/singleTable_OrderBy',
|
|
58
58
|
{data: {items: "*",
|
|
59
59
|
tablename: 't_surplus_detail',
|
|
60
|
-
condition: `
|
|
61
|
-
orderitem: '
|
|
60
|
+
condition: `f_userinfo_id = '${this.row.f_userinfo_id}' and f_state='有效' and f_whether_pay = '否'`,
|
|
61
|
+
orderitem: 'f_userinfo_id'}},
|
|
62
62
|
{resolveMsg: null, rejectMsg: null})
|
|
63
63
|
this.model.rows = suplusList.data
|
|
64
64
|
}
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
<datepicker placeholder="开始日期"
|
|
95
95
|
style="width:60%"
|
|
96
96
|
class="datepicker"
|
|
97
|
-
v-model="model.
|
|
98
|
-
:value.sync="model.
|
|
97
|
+
v-model="model.f_last_check_date"
|
|
98
|
+
:value.sync="model.f_last_check_date"
|
|
99
99
|
:format="'yyyy-MM-dd'"
|
|
100
|
-
condition="
|
|
100
|
+
condition="f_last_check_date >= '{} 00:00:00'"
|
|
101
101
|
></datepicker>
|
|
102
102
|
</div>
|
|
103
103
|
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_card_id}}</td>
|
|
147
147
|
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_user_phone}}</td>
|
|
148
148
|
<td style="text-align: center;">{{row.f_address}}</td>
|
|
149
|
-
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.
|
|
149
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_last_check_date}}</td>
|
|
150
150
|
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_parameter_value}}</td>
|
|
151
151
|
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_operator}}</td>
|
|
152
152
|
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_comments}}</td>
|
|
@@ -538,7 +538,7 @@ import axios from 'axios'
|
|
|
538
538
|
args.condition = `${args.condition} ` + this.orgcondition
|
|
539
539
|
if (this.$refs.paged.$refs.criteria.model.f_meter_brand) {
|
|
540
540
|
if (this.$refs.paged.$refs.criteria.model.f_meter_brand.length > 0) {
|
|
541
|
-
args.condition = `${args.condition} ` + `and
|
|
541
|
+
args.condition = `${args.condition} ` + `and f_meter_brand = '${this.$refs.paged.$refs.criteria.model.f_meter_brand[0]}'`
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
args.condition = `${args.condition} ` + this.uploadCodeCondition
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
condition="f_user_name = '{}'">
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
<div class="form-group col-sm-2">
|
|
33
|
+
<label class="font_normal_body" style="color: #c52323">气价变更时间</label>
|
|
34
|
+
<datepicker placeholder="气价变更时间"
|
|
35
|
+
style="padding: 2px;width: 60%"
|
|
36
|
+
v-model="model.f_change_date"
|
|
37
|
+
:value.sync="model.f_change_date"
|
|
38
|
+
:format="'yyyy-MM-dd'"
|
|
39
|
+
></datepicker>
|
|
40
|
+
</div>
|
|
41
41
|
<div class="span" style="float:right;">
|
|
42
42
|
<button class="button_new" style="width: max-content" v-show="$parent.$parent.pricechange" @click="$parent.$parent.priceshow()">批量调价</button>
|
|
43
43
|
<button class="button_search" @click="search()" v-el:cx>查询</button>
|
|
@@ -260,6 +260,27 @@
|
|
|
260
260
|
<th>
|
|
261
261
|
<nobr>上次抄表日期</nobr>
|
|
262
262
|
</th>
|
|
263
|
+
<th>
|
|
264
|
+
<nobr>调价前天数</nobr>
|
|
265
|
+
</th>
|
|
266
|
+
<th>
|
|
267
|
+
<nobr>调价前补差气量</nobr>
|
|
268
|
+
</th>
|
|
269
|
+
<th>
|
|
270
|
+
<nobr>调价后天数</nobr>
|
|
271
|
+
</th>
|
|
272
|
+
<th>
|
|
273
|
+
<nobr>调价后气量</nobr>
|
|
274
|
+
</th>
|
|
275
|
+
<th>
|
|
276
|
+
<nobr>调价后一阶补差气量</nobr>
|
|
277
|
+
</th>
|
|
278
|
+
<th>
|
|
279
|
+
<nobr>调价后二阶补差气量</nobr>
|
|
280
|
+
</th>
|
|
281
|
+
<th>
|
|
282
|
+
<nobr>调价后三阶补差气量</nobr>
|
|
283
|
+
</th>
|
|
263
284
|
<th>
|
|
264
285
|
<nobr>操作时间</nobr>
|
|
265
286
|
</th>
|
|
@@ -276,9 +297,9 @@
|
|
|
276
297
|
<th style="text-align: center;">{{row.f_user_type}}</th>
|
|
277
298
|
<th style="text-align: center;">{{row.f_meter_type}}</th>
|
|
278
299
|
<th style="text-align: center;">{{row.f_price_name}}</th>
|
|
279
|
-
<th style="text-align: center;">{{row.
|
|
280
|
-
<th style="text-align: center;">{{row.
|
|
281
|
-
<th style="text-align: center;">{{row.
|
|
300
|
+
<th style="text-align: center;">{{row.stair_gas1}}</th>
|
|
301
|
+
<th style="text-align: center;">{{row.stair_gas2}}</th>
|
|
302
|
+
<th style="text-align: center;">{{row.stair_gas3}}</th>
|
|
282
303
|
<th style="text-align: center;">{{row.f_stair_price1}}</th>
|
|
283
304
|
<th style="text-align: center;">{{row.f_stair_price2}}</th>
|
|
284
305
|
<th style="text-align: center;">{{row.f_stair_price3}}</th>
|
|
@@ -308,6 +329,15 @@
|
|
|
308
329
|
<th style="text-align: center;">{{row.f_source}}</th>
|
|
309
330
|
<th style="text-align: center;">{{row.f_input_date}}</th>
|
|
310
331
|
<th style="text-align: center;">{{row.f_last_input_date}}</th>
|
|
332
|
+
|
|
333
|
+
<th style="text-align: center;">{{row.startday}}</th>
|
|
334
|
+
<th style="text-align: center;">{{row.startpregas}}</th>
|
|
335
|
+
|
|
336
|
+
<th style="text-align: center;">{{row.endday}}</th>
|
|
337
|
+
<th style="text-align: center;">{{row.f_pregas}}</th>
|
|
338
|
+
<th style="text-align: center;">{{row.f_stair_gas1}}</th>
|
|
339
|
+
<th style="text-align: center;">{{row.f_stair_gas2}}</th>
|
|
340
|
+
<th style="text-align: center;">{{row.f_stair_gas3}}</th>
|
|
311
341
|
<th style="text-align: center;">{{row.f_operate_date}}</th>
|
|
312
342
|
<th style="text-align: center;">
|
|
313
343
|
<button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
|
|
@@ -375,7 +405,7 @@
|
|
|
375
405
|
self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString()
|
|
376
406
|
self.$refs.paged.$refs.criteria.model.f_change_date = ''
|
|
377
407
|
getPrice(self)
|
|
378
|
-
self.$showAlert('请输入[
|
|
408
|
+
self.$showAlert('请输入[气价变更时间,气价类型]后进行查询!', 'warning', 2000)
|
|
379
409
|
self.pricechange = false
|
|
380
410
|
|
|
381
411
|
}
|
|
@@ -815,12 +845,18 @@
|
|
|
815
845
|
this.pricechange = false
|
|
816
846
|
return
|
|
817
847
|
}
|
|
848
|
+
if ( this.$refs.paged.$refs.criteria.model.f_change_date == '') {
|
|
849
|
+
this.$showAlert('请输入[气价变更时间]后进行查询!', 'warning', 2000)
|
|
850
|
+
this.model.rows = []
|
|
851
|
+
this.pricechange = false
|
|
852
|
+
return
|
|
853
|
+
}
|
|
818
854
|
if (args.model.price_states.toString() === '' || args.model.price_states.toString() === ' >0') {
|
|
819
855
|
this.pricechange = false
|
|
820
856
|
// args.model.addSelectParam = 'u5.f_surplus_fee,u5.id,u5.f_state,u5.f_new_price,u5.f_old_price,u5.f_change_price,u5.f_whether_pay,u5.f_sell_id,'
|
|
821
857
|
// args.model.joinTable = 'left join t_surplus_detail u5 on u5.f_handplan_id = u1.f_handplan_id'
|
|
822
858
|
} else {
|
|
823
|
-
if(args.model.price_name && args.model.price_type && args.model.price_states[0] && args.model.price_states[0]==='is null'){
|
|
859
|
+
if(args.model.price_name[0] && args.model.price_type && args.model.price_states[0] && args.model.price_states[0]==='is null'){
|
|
824
860
|
this.pricechange = true
|
|
825
861
|
}else {
|
|
826
862
|
this.pricechange = false
|
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="form-group col-sm-2">
|
|
10
|
+
<label class="font_normal_body">组织机构</label>
|
|
11
|
+
<res-select
|
|
12
|
+
:initresid='$parent.$parent.curorgid'
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
is-mul="false"
|
|
15
|
+
restype='organization'
|
|
16
|
+
>
|
|
17
|
+
</res-select>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="form-group col-sm-2" >
|
|
20
|
+
<label class="font_normal_body">客户编号</label>
|
|
21
|
+
<input type="text" class="input_search" style="width:60%"
|
|
22
|
+
v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
23
|
+
condition="f_userinfo_code = '{}'" >
|
|
24
|
+
</div>
|
|
25
|
+
<div class="form-group col-sm-2">
|
|
26
|
+
<label class="font_normal_body">客户名称</label>
|
|
27
|
+
<input type="text" class="input_search" style="width:60%"
|
|
28
|
+
v-model="model.f_user_name" placeholder='客户名称'
|
|
29
|
+
condition="f_user_name = '{}'">
|
|
30
|
+
</div>
|
|
31
|
+
<div class="form-group col-sm-2" >
|
|
32
|
+
<label class="font_normal_body">开始日期</label>
|
|
33
|
+
<datepicker placeholder="开始日期"
|
|
34
|
+
style="width:60%"
|
|
35
|
+
v-model="model.startDate"
|
|
36
|
+
:value.sync="model.startDate"
|
|
37
|
+
:format="'yyyy-MM-dd'"
|
|
38
|
+
></datepicker>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="form-group col-sm-2" >
|
|
41
|
+
<label class="font_normal_body">结束日期</label>
|
|
42
|
+
<datepicker placeholder="结束日期"
|
|
43
|
+
style="width:60%"
|
|
44
|
+
v-model="model.endDate"
|
|
45
|
+
:value.sync="model.endDate"
|
|
46
|
+
:format="'yyyy-MM-dd'"
|
|
47
|
+
></datepicker>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="span" style="float:right;">
|
|
50
|
+
<button class="button_new" style="width: max-content" v-show="$parent.$parent.pricechange" @click="$parent.$parent.priceshow()">批量调价</button>
|
|
51
|
+
<button class="button_search" @click="search()" v-el:cx>查询</button>
|
|
52
|
+
<button class="button_clear" @click="$parent.$parent.clear()">清空</button>
|
|
53
|
+
<div style="float: right" class="button_spacing"
|
|
54
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
55
|
+
@click="$parent.$parent.hidden()"></div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
59
|
+
<div class="form-group col-sm-2">
|
|
60
|
+
<label class="font_normal_body">客户地址</label>
|
|
61
|
+
<input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_address" placeholder='客户地址'
|
|
62
|
+
condition="u3.f_address like '%{}%'">
|
|
63
|
+
</div>
|
|
64
|
+
<div class="form-group col-sm-2">
|
|
65
|
+
<label class="font_normal_body">电  话</label>
|
|
66
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='电话'
|
|
67
|
+
condition="f_user_phone like '%{}%'">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="form-group col-sm-2">
|
|
70
|
+
<label class="font_normal_body">表  号</label>
|
|
71
|
+
<input type="text" class="input_search" style="width:60%" style="width:60%" v-model="model.f_meternumber" placeholder='表号'
|
|
72
|
+
condition="f_meternumber like '%{}%'">
|
|
73
|
+
</div>
|
|
74
|
+
<div class="form-group col-sm-2">
|
|
75
|
+
<label class="font_normal_body">状  态</label>
|
|
76
|
+
<v-select id="price_states"
|
|
77
|
+
v-model="model.price_states"
|
|
78
|
+
placeholder='调价状态'
|
|
79
|
+
style="width: 60%"
|
|
80
|
+
:value.sync="model.price_states"
|
|
81
|
+
:options='$parent.$parent.price_states'
|
|
82
|
+
condition="f_change_price1 {}"
|
|
83
|
+
close-on-select></v-select>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="form-group col-sm-2">
|
|
86
|
+
<label class="font_normal_body">用户类型</label>
|
|
87
|
+
<v-select id="f_user_tye"
|
|
88
|
+
v-model="model.f_user_type"
|
|
89
|
+
placeholder='用户类型'
|
|
90
|
+
style="width: 60%"
|
|
91
|
+
@change="$parent.$parent.userTypeChange"
|
|
92
|
+
:value.sync="model.f_user_type"
|
|
93
|
+
:options='$parent.$parent.userTypes'
|
|
94
|
+
condition="u2.f_user_type = '{}'"
|
|
95
|
+
close-on-select></v-select>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="form-group col-sm-2">
|
|
98
|
+
<label class="font_normal_body">气价类型</label>
|
|
99
|
+
<v-select id="f_price_type"
|
|
100
|
+
v-model="model.price_type"
|
|
101
|
+
placeholder='气价类型'
|
|
102
|
+
:value-single="true"
|
|
103
|
+
style="width: 60%"
|
|
104
|
+
:value.sync="model.price_type"
|
|
105
|
+
@change="$parent.$parent.priceTypeChange"
|
|
106
|
+
:options='$parent.$parent.priceTypes'
|
|
107
|
+
condition="sp.f_price_type = '{}'"
|
|
108
|
+
close-on-select></v-select>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="form-group col-sm-2">
|
|
111
|
+
<label class="font_normal_body">气  价</label>
|
|
112
|
+
<v-select id="f_price_name"
|
|
113
|
+
v-model="model.price_name"
|
|
114
|
+
placeholder='气价名称'
|
|
115
|
+
style="width: 60%"
|
|
116
|
+
:value.sync="model.price_name"
|
|
117
|
+
:options='$parent.$parent.price_name'
|
|
118
|
+
condition="sp.id = '{}'"
|
|
119
|
+
close-on-select></v-select>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</criteria>
|
|
124
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
|
125
|
+
<template partial='head'>
|
|
126
|
+
<tr>
|
|
127
|
+
<th><nobr>序号</nobr></th>
|
|
128
|
+
<th><nobr>客户编号</nobr></th>
|
|
129
|
+
<th><nobr>表号</nobr></th>
|
|
130
|
+
<th><nobr>姓名</nobr></th>
|
|
131
|
+
<th><nobr>用户类型</nobr></th>
|
|
132
|
+
<th><nobr>气表类型</nobr></th>
|
|
133
|
+
<th><nobr>购气时间</nobr></th>
|
|
134
|
+
<th><nobr>购气量</nobr></th>
|
|
135
|
+
<th><nobr>购气金额</nobr></th>
|
|
136
|
+
<th><nobr>气价名称</nobr></th>
|
|
137
|
+
<th>
|
|
138
|
+
<nobr>一阶气量</nobr>
|
|
139
|
+
</th>
|
|
140
|
+
<th>
|
|
141
|
+
<nobr>二阶气量</nobr>
|
|
142
|
+
</th>
|
|
143
|
+
<th>
|
|
144
|
+
<nobr>三阶气量</nobr>
|
|
145
|
+
</th>
|
|
146
|
+
<th>
|
|
147
|
+
<nobr>一阶单价</nobr>
|
|
148
|
+
</th>
|
|
149
|
+
<th>
|
|
150
|
+
<nobr>二阶单价</nobr>
|
|
151
|
+
</th>
|
|
152
|
+
<th>
|
|
153
|
+
<nobr>三阶单价</nobr>
|
|
154
|
+
</th>
|
|
155
|
+
<th>
|
|
156
|
+
<nobr>一阶补差单价</nobr>
|
|
157
|
+
</th>
|
|
158
|
+
<th>
|
|
159
|
+
<nobr>二阶补差单价</nobr>
|
|
160
|
+
</th>
|
|
161
|
+
<th>
|
|
162
|
+
<nobr>三阶补差单价</nobr>
|
|
163
|
+
</th>
|
|
164
|
+
<th>
|
|
165
|
+
<nobr>一阶补差金额</nobr>
|
|
166
|
+
</th>
|
|
167
|
+
<th>
|
|
168
|
+
<nobr>二阶补差金额</nobr>
|
|
169
|
+
</th>
|
|
170
|
+
<th>
|
|
171
|
+
<nobr>三阶补差金额</nobr>
|
|
172
|
+
</th>
|
|
173
|
+
|
|
174
|
+
<th><nobr>补差气量</nobr></th>
|
|
175
|
+
<th><nobr>补差金额</nobr></th>
|
|
176
|
+
<th><nobr>差价来源</nobr></th>
|
|
177
|
+
<th><nobr>操作</nobr></th>
|
|
178
|
+
</tr>
|
|
179
|
+
</template>
|
|
180
|
+
<template partial='body'>
|
|
181
|
+
<td style="text-align: center;">{{$index+1}}</td>
|
|
182
|
+
<th style="text-align: center;">{{row.f_userinfo_code}}</th>
|
|
183
|
+
<th style="text-align: center;">{{row.f_meternumber}}</th>
|
|
184
|
+
<th style="text-align: center;">{{row.f_user_name}}</th>
|
|
185
|
+
<th style="text-align: center;">{{row.f_user_type}}</th>
|
|
186
|
+
<th style="text-align: center;">{{row.f_meter_type}}</th>
|
|
187
|
+
<th style="text-align: center;"><nobr>{{row.sell_date}}</nobr></th>
|
|
188
|
+
<th style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></th>
|
|
189
|
+
<th style="text-align: center;"><nobr>{{row.f_preamount}}</nobr></th>
|
|
190
|
+
<th style="text-align: center;">{{row.f_price_name}}</th>
|
|
191
|
+
<th style="text-align: center;">{{row.f_stair_gas1}}</th>
|
|
192
|
+
<th style="text-align: center;">{{row.f_stair_gas2}}</th>
|
|
193
|
+
<th style="text-align: center;">{{row.f_stair_gas3}}</th>
|
|
194
|
+
<th style="text-align: center;">{{row.f_stair_price1}}</th>
|
|
195
|
+
<th style="text-align: center;">{{row.f_stair_price2}}</th>
|
|
196
|
+
<th style="text-align: center;">{{row.f_stair_price3}}</th>
|
|
197
|
+
<th style="text-align: center;">
|
|
198
|
+
<div v-if="!row.f_change_price1">
|
|
199
|
+
<button type="button" name="button" class="btn btn-link"
|
|
200
|
+
@click.stop="$parent.$parent.$parent.calculation(row) && row.states === 1">调价补差
|
|
201
|
+
</button>
|
|
202
|
+
|
|
203
|
+
</div>
|
|
204
|
+
<div v-else>
|
|
205
|
+
{{row.f_change_price1}}
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
</th>
|
|
209
|
+
<th style="text-align: center;">{{row.f_change_price2}}</th>
|
|
210
|
+
<th style="text-align: center;">{{row.f_change_price3}}</th>
|
|
211
|
+
<th style="text-align: center;">{{row.f_surplus_fee1}}</th>
|
|
212
|
+
<th style="text-align: center;">{{row.f_surplus_fee2}}</th>
|
|
213
|
+
<th style="text-align: center;">{{row.f_surplus_fee3}}</th>
|
|
214
|
+
<!-- <th style="text-align: center;">{{row.f_address}}</th>-->
|
|
215
|
+
<!-- <th style="text-align: center;">-->
|
|
216
|
+
<!-- <div class="form-group" style="margin-bottom:0px;"-->
|
|
217
|
+
<!-- v-if="!row.f_new_price>0">-->
|
|
218
|
+
<!-- <input type="text" class="form-control" v-model="row.oldprice"-->
|
|
219
|
+
<!-- v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">-->
|
|
220
|
+
<!-- </div>-->
|
|
221
|
+
<!-- <div v-else>{{row.f_old_price}}</div>-->
|
|
222
|
+
<!-- </th>-->
|
|
223
|
+
<!-- <th style="text-align: center;">-->
|
|
224
|
+
<!-- <div class="form-group" style="margin-bottom:0px;"-->
|
|
225
|
+
<!-- v-if="!row.f_new_price>0">-->
|
|
226
|
+
<!-- <input type="text" class="form-control" v-model="row.newprice" @blur="$parent.$parent.$parent.enter(row)"-->
|
|
227
|
+
<!-- v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">-->
|
|
228
|
+
<!-- </div>-->
|
|
229
|
+
<!-- <div v-else>{{row.f_new_price}}</div>-->
|
|
230
|
+
<!-- </th>-->
|
|
231
|
+
<!-- <th style="text-align: center;">-->
|
|
232
|
+
<!-- <div class="form-group" style="margin-bottom:0px;" v-if="!row.f_surplus_id">-->
|
|
233
|
+
<!-- <input type="number" class="form-control" v-model="row.f_change_price" @blur="$parent.$parent.$parent.enter(row)"-->
|
|
234
|
+
<!-- v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'">-->
|
|
235
|
+
<!-- </div>-->
|
|
236
|
+
<!-- <div v-else>{{row.f_change_price}}</div>-->
|
|
237
|
+
<!-- </th>-->
|
|
238
|
+
<!-- <th style="text-align: center;">{{row.f_change_price}}</th>-->
|
|
239
|
+
<th style="text-align: center;">{{row.f_pregas}}</th>
|
|
240
|
+
<th style="text-align: center;">{{row.f_surplus_fee}}</th>
|
|
241
|
+
<th style="text-align: center;">{{row.f_source}}</th>
|
|
242
|
+
<th style="text-align: center;">
|
|
243
|
+
<button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
|
|
244
|
+
@click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
|
|
245
|
+
</button>
|
|
246
|
+
</th>
|
|
247
|
+
</template>
|
|
248
|
+
</data-grid>
|
|
249
|
+
</criteria-paged>
|
|
250
|
+
<modal :show.sync="show">
|
|
251
|
+
<header slot="modal-header" class="modal-header">
|
|
252
|
+
<h4 class="modal-title">调 价 补 差</h4>
|
|
253
|
+
</header>
|
|
254
|
+
<article slot="modal-body" class="modal-body">
|
|
255
|
+
<div class="flex">
|
|
256
|
+
<div class="row" v-if="model.model.price_type==='阶梯气价'">
|
|
257
|
+
<div class="row">
|
|
258
|
+
<div class="form-group col-sm-6">
|
|
259
|
+
<label class="font_normal_body col-sm-9"><span v-if="operatorrow">({{operatorrow.f_stair_price1}})</span>一阶补差单价</label>
|
|
260
|
+
<input type="text" class="form-control" v-model="f_change_price1">
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
<div class="row" >
|
|
264
|
+
<div class="form-group col-sm-6">
|
|
265
|
+
<label class="font_normal_body col-sm-9"><span v-if="operatorrow">({{operatorrow.f_stair_price2}})</span>二阶补差单价</label>
|
|
266
|
+
<input type="text" class="form-control" v-model="f_change_price2">
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
<div class="row">
|
|
270
|
+
<div class="form-group col-sm-6 ">
|
|
271
|
+
<label class="font_normal_body col-sm-9"><span v-if="operatorrow">({{operatorrow.f_stair_price3}})</span>三阶补差单价</label>
|
|
272
|
+
<input type="text" class="form-control" v-model="f_change_price3">
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
<div v-else>
|
|
277
|
+
<div class="form-group col-sm-4">
|
|
278
|
+
<label class="font_normal_body">补差单价</label>
|
|
279
|
+
<input type="text" class="form-control" v-model="f_change_price1">
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</article>
|
|
284
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
285
|
+
<button class="button_search" @click="priceadjustment">生成调价补差表</button>
|
|
286
|
+
<button type="button" class="btn btn-default" @click='close'>取消</button>
|
|
287
|
+
</footer>
|
|
288
|
+
</modal>
|
|
289
|
+
<work-busy :is-busy="locking" v-show="locking"></work-busy>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</template>
|
|
294
|
+
|
|
295
|
+
<script>
|
|
296
|
+
import { HttpResetClass } from 'vue-client'
|
|
297
|
+
import { PagedList } from 'vue-client'
|
|
298
|
+
import Vue from 'vue'
|
|
299
|
+
let readySomething = async function (self) {
|
|
300
|
+
self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString()
|
|
301
|
+
self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString()
|
|
302
|
+
self.$refs.paged.$refs.criteria.model.f_change_date = ''
|
|
303
|
+
getPrice(self)
|
|
304
|
+
self.$showAlert('请输入[气价类型]后进行查询!', 'warning', 2000)
|
|
305
|
+
self.pricechange = false
|
|
306
|
+
|
|
307
|
+
}
|
|
308
|
+
let getPrice = async function(self) {
|
|
309
|
+
self.$resetpost('rs/sql/getpriceid', {data: {f_filialeids: self.f_filialeid}}, {
|
|
310
|
+
resolveMsg: null,
|
|
311
|
+
rejectMsg: null
|
|
312
|
+
}).then((res) => {
|
|
313
|
+
console.log('气价信息-------->',res.data)
|
|
314
|
+
let rs = []
|
|
315
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
316
|
+
let temp = {
|
|
317
|
+
label: res.data[i].f_price_name+`(${res.data[i].id})`,
|
|
318
|
+
type:res.data[i].f_price_type,
|
|
319
|
+
flage: res.data[i].f_user_type,
|
|
320
|
+
value: res.data[i].id
|
|
321
|
+
}
|
|
322
|
+
rs.push(temp)
|
|
323
|
+
}
|
|
324
|
+
console.log(rs)
|
|
325
|
+
self.pricers = [ ...rs]
|
|
326
|
+
self.priceTypeChange()
|
|
327
|
+
})
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export default {
|
|
331
|
+
title: '调价补差',
|
|
332
|
+
data () {
|
|
333
|
+
return {
|
|
334
|
+
f_orgid: '',
|
|
335
|
+
f_filialeid: this.$login.f.orgid,
|
|
336
|
+
operatorrow:'',
|
|
337
|
+
operatortype :'one',
|
|
338
|
+
pricechange: true,
|
|
339
|
+
criteriaShow: false,
|
|
340
|
+
f_change_price1:0,
|
|
341
|
+
f_change_price2:0,
|
|
342
|
+
f_change_price3:0,
|
|
343
|
+
pricers: [{label: '全部', value: '', flage: ''}],
|
|
344
|
+
price_name: [{label: '全部', value: ''}],
|
|
345
|
+
price_states: [{label: '全部', value: ''}, {label: '已调价', value: ' is not null'}, {label: '未调价', value: 'is null'}],
|
|
346
|
+
userTypes: this.$appdata.getParam('用户类型') ? [...this.$appdata.getParam('用户类型')] : [],
|
|
347
|
+
priceTypes: this.$appdata.getParam('气价类型') ? [ ...this.$appdata.getParam('气价类型')] : [],
|
|
348
|
+
condition: '',
|
|
349
|
+
locking: false,
|
|
350
|
+
model: new PagedList('rs/sql/get_AdjustSellCharge', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', price_states: 'this.model.price_states[0]', addSelectParam: 'this.model.addSelectParam'}),
|
|
351
|
+
f_new_price: 0.0,
|
|
352
|
+
f_old_price:0.0,
|
|
353
|
+
f_change_price:0.0,
|
|
354
|
+
show: false,
|
|
355
|
+
curorgid: [this.$login.f.orgid],
|
|
356
|
+
addSelectParam: ''
|
|
357
|
+
// joinTable:'',
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
ready () {
|
|
361
|
+
readySomething(this).then(() => {
|
|
362
|
+
this.$emit('ready')
|
|
363
|
+
}).catch((error) => {
|
|
364
|
+
this.$emit('error', error)
|
|
365
|
+
})
|
|
366
|
+
},
|
|
367
|
+
methods: {
|
|
368
|
+
calculation (row) {
|
|
369
|
+
this.f_change_price1 = 0,
|
|
370
|
+
this.f_change_price2 = 0,
|
|
371
|
+
this.f_change_price3 = 0,
|
|
372
|
+
this.pricetime_states = ''
|
|
373
|
+
this.show = true
|
|
374
|
+
this.operatorrow = row
|
|
375
|
+
this.operatortype = 'one'
|
|
376
|
+
},
|
|
377
|
+
getorg (val) {
|
|
378
|
+
this.f_filialeid = val[0]
|
|
379
|
+
},
|
|
380
|
+
hidden () {
|
|
381
|
+
this.criteriaShow = !this.criteriaShow
|
|
382
|
+
},
|
|
383
|
+
priceTypeChange () {
|
|
384
|
+
console.log(1)
|
|
385
|
+
this.price_name = []
|
|
386
|
+
if (this.$refs.paged.$refs.criteria.model.f_user_type) {
|
|
387
|
+
if (this.$refs.paged.$refs.criteria.model.price_type) {
|
|
388
|
+
console.log(2)
|
|
389
|
+
for (let i = 0; i < this.pricers.length; i++) {
|
|
390
|
+
if (this.pricers[i].type === this.$refs.paged.$refs.criteria.model.price_type && this.pricers[i].flage === this.$refs.paged.$refs.criteria.model.f_user_type[0]) {
|
|
391
|
+
let rs = {
|
|
392
|
+
type:this.pricers[i].type,
|
|
393
|
+
label: this.pricers[i].label,
|
|
394
|
+
value: this.pricers[i].value
|
|
395
|
+
}
|
|
396
|
+
this.price_name.push(rs)
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
// 用户类型发生改变
|
|
403
|
+
userTypeChange () {
|
|
404
|
+
this.price_name = []
|
|
405
|
+
if (this.$refs.paged.$refs.criteria.model.price_type) {
|
|
406
|
+
if (this.$refs.paged.$refs.criteria.model.price_type) {
|
|
407
|
+
for (let i = 0; i < this.pricers.length; i++) {
|
|
408
|
+
if (this.pricers[i].type === this.$refs.paged.$refs.criteria.model.price_type && this.pricers[i].flage === this.$refs.paged.$refs.criteria.model.f_user_type[0]) {
|
|
409
|
+
let rs = {
|
|
410
|
+
type:this.pricers[i].type,
|
|
411
|
+
label: this.pricers[i].label,
|
|
412
|
+
value: this.pricers[i].value
|
|
413
|
+
}
|
|
414
|
+
this.price_name.push(rs)
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
// 冲正
|
|
421
|
+
delectHand (row) {
|
|
422
|
+
this.$showMessage('冲正后不可恢复,确定冲正吗?', ['confirm', 'cancel']).then((res) => {
|
|
423
|
+
if (res === 'confirm') {
|
|
424
|
+
row.f_operator = this.$login.f.name
|
|
425
|
+
row.f_operatorid = this.$login.f.id
|
|
426
|
+
row.f_orgid = this.$login.f.orgid
|
|
427
|
+
row.f_orgname = this.$login.f.orgs
|
|
428
|
+
row.f_depid = this.$login.f.depids
|
|
429
|
+
row.f_depname = this.$login.f.deps
|
|
430
|
+
this.$resetpost('rs/logic/priceAdjustmentOffset', {data: row}).then(() => {
|
|
431
|
+
// this.$dispatch('refresh', '正在处理', row)
|
|
432
|
+
this.selfSearch(this.model)
|
|
433
|
+
})
|
|
434
|
+
}
|
|
435
|
+
})
|
|
436
|
+
},
|
|
437
|
+
priceshow () {
|
|
438
|
+
this.operatorrow = this.model.rows[0]
|
|
439
|
+
this.show = true
|
|
440
|
+
this.f_change_price1 = 0
|
|
441
|
+
this.f_change_price2 = 0
|
|
442
|
+
this.f_change_price3 = 0
|
|
443
|
+
this.pricetime_states = ''
|
|
444
|
+
this.operatortype = 'batch'
|
|
445
|
+
},
|
|
446
|
+
close () {
|
|
447
|
+
this.show = false
|
|
448
|
+
this.f_change_price1 = 0
|
|
449
|
+
this.f_change_price2 = 0
|
|
450
|
+
this.f_change_price3 = 0
|
|
451
|
+
},
|
|
452
|
+
async priceadjustment () {
|
|
453
|
+
if (this.operatortype == 'one') {
|
|
454
|
+
this.enter()
|
|
455
|
+
} else if (this.operatortype == 'batch') {
|
|
456
|
+
this.$showMessage('确认生成补差记录吗?', ['cancel', 'confirm']).then(
|
|
457
|
+
(response) => {
|
|
458
|
+
if (response === 'confirm') {
|
|
459
|
+
this.show = false
|
|
460
|
+
this.locking = true
|
|
461
|
+
this.getAdjustData()
|
|
462
|
+
}
|
|
463
|
+
})
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
async enter (row) {
|
|
467
|
+
|
|
468
|
+
let param = {
|
|
469
|
+
f_state: '有效',
|
|
470
|
+
f_change_price1:this.f_change_price1,
|
|
471
|
+
f_change_price2:this.f_change_price2,
|
|
472
|
+
f_change_price3:this.f_change_price3,
|
|
473
|
+
f_operator: this.$login.f.name,
|
|
474
|
+
f_operatorid: this.$login.f.id,
|
|
475
|
+
f_orgid: this.$login.f.orgid,
|
|
476
|
+
f_orgname: this.$login.f.orgs,
|
|
477
|
+
f_depid: this.$login.f.depids,
|
|
478
|
+
f_depname: this.$login.f.deps,
|
|
479
|
+
f_start_date: this.model.model.startDate + ' 00:00:00',
|
|
480
|
+
f_end_date: this.model.model.endDate + ' 23:59:59',
|
|
481
|
+
f_change_date: this.model.model.f_change_date,
|
|
482
|
+
row: this.operatorrow
|
|
483
|
+
}
|
|
484
|
+
await this.$resetpost('rs/logic/newpriceAdjustmentSell', {data: param}, {resolveMsg: '调价补差成功!', rejectMsg: '调价补差失败!'})
|
|
485
|
+
this.operatorrow = {}
|
|
486
|
+
this.show = false
|
|
487
|
+
this.selfSearch(this.model)
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
},
|
|
492
|
+
async getAdjustData () {
|
|
493
|
+
try {
|
|
494
|
+
let param = {
|
|
495
|
+
f_state: '有效',
|
|
496
|
+
f_resource:'卡表收费',
|
|
497
|
+
pricetime_states: this.pricetime_states,
|
|
498
|
+
f_change_price1:this.f_change_price1,
|
|
499
|
+
f_change_price2:this.f_change_price2,
|
|
500
|
+
f_change_price3:this.f_change_price3,
|
|
501
|
+
f_operator: this.$login.f.name,
|
|
502
|
+
f_operatorid: this.$login.f.id,
|
|
503
|
+
f_orgid: this.$login.f.orgid,
|
|
504
|
+
f_orgname: this.$login.f.orgs,
|
|
505
|
+
f_depid: this.$login.f.depids,
|
|
506
|
+
f_depname: this.$login.f.deps,
|
|
507
|
+
f_start_date: this.model.model.startDate + ' 00:00:00',
|
|
508
|
+
f_end_date: this.model.model.endDate + ' 23:59:59',
|
|
509
|
+
f_change_date: this.model.model.f_change_date, //调价时间
|
|
510
|
+
condition: ''
|
|
511
|
+
}
|
|
512
|
+
let searchCondition = {
|
|
513
|
+
data: {
|
|
514
|
+
condition: this.condition,
|
|
515
|
+
f_change_date: this.model.model.f_change_date === '' ? '1911-01-01' : this.model.model.f_change_date,
|
|
516
|
+
startDate: this.model.model.startDate,
|
|
517
|
+
endDate: this.model.model.endDate, addSelectParam: '', price_states: 'not'
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
param.condition = searchCondition
|
|
521
|
+
let res = await this.$resetpost('rs/logic/newpriceAdjustmentAll', {data: param}, {
|
|
522
|
+
resolveMsg: null,
|
|
523
|
+
rejectMsg: null
|
|
524
|
+
})
|
|
525
|
+
if (res.data) {
|
|
526
|
+
this.$showMessage(`本次调价用户数:${res.data.allsize},调价成功数量:${res.data.successsize},无需调价数量:${res.data.nodealsize},调价错误数量:${res.data.errorsize}`, ['confirm'])
|
|
527
|
+
}
|
|
528
|
+
this.close()
|
|
529
|
+
this.$refs.paged.$refs.criteria.search()
|
|
530
|
+
this.locking = false
|
|
531
|
+
this.pricetime_states = ''
|
|
532
|
+
this.f_new_price = ''
|
|
533
|
+
} catch (error) {
|
|
534
|
+
this.$showAlert('生成调价补差表失败!!!', 'error', 3)
|
|
535
|
+
this.locking = false
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
search () {
|
|
539
|
+
this.selfSearch()
|
|
540
|
+
},
|
|
541
|
+
async selfSearch (args) {
|
|
542
|
+
this.f_prices = [{label: '全部', value: ''}]
|
|
543
|
+
if (this.$refs.paged.$refs.criteria.model.price_type == '') {
|
|
544
|
+
this.$showAlert('请输入[气价类型]后进行查询!', 'warning', 2000)
|
|
545
|
+
this.model.rows = []
|
|
546
|
+
this.pricechange = false
|
|
547
|
+
return
|
|
548
|
+
}
|
|
549
|
+
args.model.addSelectParam = ''
|
|
550
|
+
if( args.model.price_name[0] && args.model.price_type && args.model.price_states[0] && args.model.price_states[0]==='is null'){
|
|
551
|
+
this.pricechange = true
|
|
552
|
+
}else {
|
|
553
|
+
this.pricechange = false
|
|
554
|
+
}
|
|
555
|
+
this.condition = `${args.condition} and u2.f_orgid = '${this.f_filialeid}'`
|
|
556
|
+
await this.model.search(this.condition, args.model)
|
|
557
|
+
// let arr2 = this.model.rows.filter((value, index, array) => {
|
|
558
|
+
// return array.findIndex(item => item.key === value.key && item.f_price === value.f_price) === index
|
|
559
|
+
// })
|
|
560
|
+
// let rs = [{label: '全部', value: ''}]
|
|
561
|
+
// arr2.forEach(function (item) {
|
|
562
|
+
// console.log('item', item.f_price)
|
|
563
|
+
// let temp = {
|
|
564
|
+
// label: item.f_price,
|
|
565
|
+
// value: item.f_price
|
|
566
|
+
// }
|
|
567
|
+
// rs.push(temp)
|
|
568
|
+
// })
|
|
569
|
+
// this.f_prices = rs
|
|
570
|
+
// console.log('this.f_price', this.f_prices)
|
|
571
|
+
},
|
|
572
|
+
clear () {
|
|
573
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
574
|
+
this.$refs.paged.$refs.criteria.model[key] = ''
|
|
575
|
+
})
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
computed: {
|
|
579
|
+
},
|
|
580
|
+
watch: {
|
|
581
|
+
async 'f_filialeid' (val) {
|
|
582
|
+
// 更新抄表册
|
|
583
|
+
this.$refs.paged.$refs.criteria.model.f_meter_book = []
|
|
584
|
+
this.$refs.paged.$refs.criteria.model.f_book_slice_area = []
|
|
585
|
+
this.$refs.paged.$refs.criteria.model.f_inputtor = []
|
|
586
|
+
this.meterbooks = [{label: '全部', value: ''}]
|
|
587
|
+
if (this.f_filialeid) {
|
|
588
|
+
getPrice(this)
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
</script>
|
|
594
|
+
|
|
595
|
+
<style >
|
|
596
|
+
</style>
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
return
|
|
552
552
|
}
|
|
553
553
|
args.model.addSelectParam = ''
|
|
554
|
-
if( args.model.price_type && args.model.price_states[0] && args.model.price_states[0]==='is null'){
|
|
554
|
+
if(args.model.price_name[0] && args.model.price_type && args.model.price_states[0] && args.model.price_states[0]==='is null'){
|
|
555
555
|
this.pricechange = true
|
|
556
556
|
}else {
|
|
557
557
|
this.pricechange = false
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
<tabs header="机表调价补差">
|
|
8
8
|
<new-price-adjustment @deal-msg="dealMsg"></new-price-adjustment>
|
|
9
9
|
</tabs>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<tabs header="卡表调价补差">
|
|
11
|
+
<new-price-adjustment-sell @deal-msg="dealMsg"></new-price-adjustment-sell>
|
|
12
|
+
</tabs>
|
|
13
13
|
</tab-button>
|
|
14
14
|
<!-- </div>-->
|
|
15
15
|
<!-- <div v-if="!listpage">-->
|
|
@@ -34,6 +34,7 @@ export default function () {
|
|
|
34
34
|
|
|
35
35
|
// 调价补差(新)
|
|
36
36
|
Vue.component('new-price-adjustment', (resolve) => { require(['./NewPriceAdjustment'], resolve) })
|
|
37
|
+
Vue.component('new-price-adjustment-sell', (resolve) => { require(['./NewPriceAdjustmentSell'], resolve) })
|
|
37
38
|
Vue.component('new-price-adjustment-webmeter', (resolve) => { require(['./NewPriceAdjustmentWebmeter'], resolve) })
|
|
38
39
|
// 售气收费 --弹出框
|
|
39
40
|
Vue.component('charge-modal', (resolve) => { require(['./ChargeModal'], resolve) })
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
<!-- <button class="button_search button_spacing width-60"-->
|
|
38
38
|
<!-- @click="$parent.$parent.allsuccess()" v-el:cx>全部通过-->
|
|
39
39
|
<!-- </button>-->
|
|
40
|
-
<button class="button_search button_spacing width-60"
|
|
41
|
-
@click="$parent.$parent.allfaild()" v-el:cx
|
|
42
|
-
</button
|
|
40
|
+
<!-- <button class="button_search button_spacing width-60"-->
|
|
41
|
+
<!-- @click="$parent.$parent.allfaild()" v-el:cx>全部不通过-->
|
|
42
|
+
<!-- </button>-->
|
|
43
43
|
<!-- <export-excel-->
|
|
44
44
|
<!-- :data="$parent.$parent.getCondition"-->
|
|
45
45
|
<!-- :field="$parent.$parent.config.excelHeaders"-->
|
|
@@ -269,7 +269,7 @@ export default {
|
|
|
269
269
|
orgCondtionStr: '',
|
|
270
270
|
criteriaShow: false,
|
|
271
271
|
show: false,
|
|
272
|
-
pushdata: {
|
|
272
|
+
pushdata: {f_user_phone: '',f_userinfo_id: '',f_user_name: '',f_open_id: '',cause: '',isPass: ''},
|
|
273
273
|
row: null,
|
|
274
274
|
model: new PagedList('rs/sql/meterReadAudit', 20),
|
|
275
275
|
states: [{label: '待审核', value: ` f_meter_state = '待审核' and f_hand_state ='有效'`}, {
|
|
@@ -355,7 +355,18 @@ export default {
|
|
|
355
355
|
f_meter_brand: row.f_meter_brand,
|
|
356
356
|
f_audit_person: this.$login.f.name
|
|
357
357
|
}
|
|
358
|
-
await this.$resetpost('rs/logic/handPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
358
|
+
await this.$resetpost('rs/logic/handPlanAudit', data, {resolveMsg: '操作成功', rejectMsg: '操作失败'}).then((res) => {
|
|
359
|
+
// this.$info(`获取到数据, data:${JSON.stringify(a.data)}`)
|
|
360
|
+
if (res.data === 200) {
|
|
361
|
+
this.pushdata.f_open_id = row.f_open_id
|
|
362
|
+
this.pushdata.f_user_phone = row.f_user_phone
|
|
363
|
+
this.pushdata.f_userinfo_id = row.f_userinfo_id
|
|
364
|
+
this.pushdata.f_userfiles_id = row.f_userfiles_id
|
|
365
|
+
this.pushdata.f_user_name = row.f_user_name
|
|
366
|
+
this.pushdata.isPass = '通过'
|
|
367
|
+
this.confirm()
|
|
368
|
+
}
|
|
369
|
+
})
|
|
359
370
|
this.search()
|
|
360
371
|
}
|
|
361
372
|
},
|
|
@@ -384,19 +395,24 @@ export default {
|
|
|
384
395
|
async faild (row) {
|
|
385
396
|
let res = await this.$showMessage('确定作废该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
|
|
386
397
|
if (res === 'confirm') {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
398
|
+
this.row = row
|
|
399
|
+
this.pushdata.f_open_id = row.f_open_id
|
|
400
|
+
this.pushdata.f_user_phone = row.f_user_phone
|
|
401
|
+
this.pushdata.f_userinfo_id = row.f_userinfo_id
|
|
402
|
+
this.pushdata.f_userfiles_id = row.f_userfiles_id
|
|
403
|
+
this.pushdata.f_user_name = row.f_user_name
|
|
404
|
+
this.pushdata.isPass = '不通过'
|
|
405
|
+
this.show = true
|
|
390
406
|
let sql = `UPDATE t_handplan SET f_hand_state = '无效',f_audit_person = '${this.$login.f.name}',f_audit_date = getDate() WHERE id = ${row.id}`
|
|
391
407
|
await this.$resetpost('rs/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
392
408
|
this.search()
|
|
393
409
|
}
|
|
394
410
|
},
|
|
395
411
|
async confirm () {
|
|
396
|
-
await this.$resetpost('rs/logic/weixinHanPlanAudit', this.row, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
397
|
-
await this.$resetpost('
|
|
398
|
-
resolveMsg:
|
|
399
|
-
rejectMsg:
|
|
412
|
+
// await this.$resetpost('rs/logic/weixinHanPlanAudit', this.row, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
413
|
+
await this.$resetpost('wx/rs/logic/meterReadMsg', this.pushdata, {
|
|
414
|
+
resolveMsg: '推送请求发送成功',
|
|
415
|
+
rejectMsg: '推送请求发送失败'
|
|
400
416
|
})
|
|
401
417
|
this.show = false
|
|
402
418
|
this.search()
|