manage-client 4.1.104 → 4.1.106-wnls
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/build/dev-server.js +37 -63
- package/index.html +12 -11
- package/package.json +1 -1
- package/src/App.vue +21 -9
- package/src/filiale/WEINAN/businessquery/abnormalQuery.vue +22 -1
- package/src/filiale/bayan/ChargeQuery.vue +3 -12
- package/src/filiale/shexian/sale.js +0 -4
- package/src/main.js +1 -1
- package/src/components/Test.vue +0 -14
- package/src/filiale/shexian/InspectListUser.vue +0 -690
package/build/dev-server.js
CHANGED
|
@@ -6,125 +6,99 @@ const proxyMiddleware = require('http-proxy-middleware')
|
|
|
6
6
|
const app = express()
|
|
7
7
|
const compiler = webpack(config)
|
|
8
8
|
|
|
9
|
-
const server = '
|
|
10
|
-
const local = '
|
|
9
|
+
const server = 'http://192.168.50.67:31567/'
|
|
10
|
+
const local = 'http://127.0.0.1:9026/'
|
|
11
11
|
const proxyTable = {
|
|
12
12
|
'/rs/logic/exportfile': {
|
|
13
|
-
target: server
|
|
14
|
-
changeOrigin: true
|
|
13
|
+
target: server
|
|
15
14
|
},
|
|
16
15
|
'/dataManage': {
|
|
17
|
-
target: server
|
|
18
|
-
changeOrigin: true
|
|
16
|
+
target: server
|
|
19
17
|
},
|
|
20
18
|
'/api/af-revenue/sql/': {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
target: local
|
|
25
|
-
changeOrigin: true
|
|
19
|
+
pathRewrite: {
|
|
20
|
+
'^/api/af-revenue': '/'
|
|
21
|
+
},
|
|
22
|
+
target: local
|
|
26
23
|
},
|
|
27
24
|
'/api/af-revenue/report/': {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
target: local
|
|
32
|
-
changeOrigin: true
|
|
25
|
+
pathRewrite: {
|
|
26
|
+
'^/api/af-revenue': '/'
|
|
27
|
+
},
|
|
28
|
+
target: local
|
|
33
29
|
},
|
|
34
30
|
'/api/af-revenue/logic': {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
target: local
|
|
39
|
-
changeOrigin: true
|
|
31
|
+
pathRewrite: {
|
|
32
|
+
'^/api/af-revenue': '/'
|
|
33
|
+
},
|
|
34
|
+
target: local
|
|
40
35
|
},
|
|
41
36
|
'/api': {
|
|
42
|
-
target: server
|
|
43
|
-
changeOrigin: true
|
|
37
|
+
target: server
|
|
44
38
|
},
|
|
45
39
|
'/rs/sql/chargeQuery_by_gasproperties': {
|
|
46
|
-
target: server
|
|
47
|
-
changeOrigin: true
|
|
40
|
+
target: server
|
|
48
41
|
},
|
|
49
42
|
'/rs/logic/chargeQuery_by_gasproperties_line': {
|
|
50
|
-
target: server
|
|
51
|
-
changeOrigin: true
|
|
43
|
+
target: server
|
|
52
44
|
},
|
|
53
45
|
'/files': {
|
|
54
|
-
target: server
|
|
55
|
-
changeOrigin: true
|
|
46
|
+
target: server
|
|
56
47
|
},
|
|
57
48
|
// 查找资源服务数据
|
|
58
49
|
'/rs/search': {
|
|
59
|
-
target: server
|
|
60
|
-
changeOrigin: true
|
|
50
|
+
target: server
|
|
61
51
|
},
|
|
62
52
|
// 查找资源服务数据
|
|
63
53
|
'/rs/logic/getLogin': {
|
|
64
|
-
target: server
|
|
65
|
-
changeOrigin: true
|
|
54
|
+
target: server
|
|
66
55
|
},
|
|
67
56
|
// 查找资源服务数据
|
|
68
57
|
'/rs/logic/getInitData': {
|
|
69
|
-
target: server
|
|
70
|
-
changeOrigin: true
|
|
58
|
+
target: server
|
|
71
59
|
},
|
|
72
60
|
'/rs/logic/getSaleInitData': {
|
|
73
|
-
target: server
|
|
74
|
-
changeOrigin: true
|
|
61
|
+
target: server
|
|
75
62
|
},
|
|
76
63
|
// 用户登录服务地址
|
|
77
64
|
'/rs/user': {
|
|
78
|
-
target: server
|
|
79
|
-
changeOrigin: true
|
|
65
|
+
target: server
|
|
80
66
|
},
|
|
81
67
|
'/rs/path/getParams': {
|
|
82
|
-
target: server
|
|
83
|
-
changeOrigin: true
|
|
68
|
+
target: server
|
|
84
69
|
},
|
|
85
70
|
'/rs/data': {
|
|
86
|
-
target: server
|
|
87
|
-
changeOrigin: true
|
|
71
|
+
target: server
|
|
88
72
|
},
|
|
89
73
|
'/rs/license': {
|
|
90
|
-
target: server
|
|
91
|
-
changeOrigin: true
|
|
74
|
+
target: server
|
|
92
75
|
},
|
|
93
76
|
'/rs/db': {
|
|
94
|
-
target: server
|
|
95
|
-
changeOrigin: true
|
|
77
|
+
target: server
|
|
96
78
|
},
|
|
97
79
|
'/excel': {
|
|
98
|
-
target: server
|
|
99
|
-
changeOrigin: true
|
|
80
|
+
target: server
|
|
100
81
|
},
|
|
101
82
|
'/rs/config': {
|
|
102
|
-
target: server
|
|
103
|
-
changeOrigin: true
|
|
83
|
+
target: server
|
|
104
84
|
},
|
|
105
85
|
'/rs/sql/getLicenseById': {
|
|
106
|
-
target: server
|
|
107
|
-
changeOrigin: true
|
|
86
|
+
target: server
|
|
108
87
|
},
|
|
109
88
|
'/rs/report': {
|
|
110
|
-
target: server
|
|
111
|
-
changeOrigin: true
|
|
89
|
+
target: server
|
|
112
90
|
},
|
|
113
91
|
'/rs/vue': {
|
|
114
|
-
target: server
|
|
115
|
-
changeOrigin: true
|
|
92
|
+
target: server
|
|
116
93
|
},
|
|
117
94
|
'/rs/file': {
|
|
118
|
-
target: server
|
|
119
|
-
changeOrigin: true
|
|
95
|
+
target: server
|
|
120
96
|
},
|
|
121
97
|
'/rs/sql/singleTable': {
|
|
122
|
-
target: server
|
|
123
|
-
changeOrigin: true
|
|
98
|
+
target: server
|
|
124
99
|
},
|
|
125
100
|
'/rs': {
|
|
126
|
-
target: server
|
|
127
|
-
changeOrigin: true
|
|
101
|
+
target: server
|
|
128
102
|
}
|
|
129
103
|
}
|
|
130
104
|
|
package/index.html
CHANGED
|
@@ -6,22 +6,23 @@
|
|
|
6
6
|
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
|
|
7
7
|
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
|
|
8
8
|
<META HTTP-EQUIV="expires" CONTENT="0">
|
|
9
|
-
<
|
|
10
|
-
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.3&key=4889f1e58df01cb40415536c8907bf64&plugin=AMap.Autocomplete,AMap.PlaceSearch"></script>
|
|
11
|
-
<script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
|
|
12
|
-
<title>燃气客服系统</title>
|
|
9
|
+
<title>奥枫信息系统</title>
|
|
13
10
|
<style media="screen">
|
|
14
11
|
/*url(./static/newmainbg.jpg)*/
|
|
15
|
-
body{
|
|
16
|
-
|
|
12
|
+
body {
|
|
13
|
+
width: 100%;
|
|
14
|
+
background: #7f8eaf no-repeat center bottom;
|
|
15
|
+
background-size: cover;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body .loginbg {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background: url(./static/loginbg.jpg) no-repeat center top;
|
|
22
|
+
}
|
|
17
23
|
</style>
|
|
18
24
|
</head>
|
|
19
25
|
<body id="bodymain" class="themeOne">
|
|
20
26
|
<app></app>
|
|
21
27
|
</body>
|
|
22
28
|
</html>
|
|
23
|
-
<style>
|
|
24
|
-
* {
|
|
25
|
-
font-family: PingFangSC-Regular;
|
|
26
|
-
}
|
|
27
|
-
</style>
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<!--<route :comp="{name: 'liaoyuan-manage-home'}"></route>-->
|
|
7
|
+
<!--<route :comp="{name: 'meter-reading'}"></route>-->
|
|
8
|
+
<!--<route :comp="{name: 'Gasproperties'}"></route>-->
|
|
9
|
+
<!--<route :comp="{name: 'vender-management'}"></route>-->
|
|
10
|
+
<!--<route :comp="{name: 'malfunction-home'}"></route>-->
|
|
11
|
+
<route :comp="{name: 'login'}"></route>
|
|
12
|
+
<!-- <route :comp="{name: 'call-report-main-page'}"></route>-->
|
|
13
|
+
<!-- <route :comp="{name: 'load-data'}"></route> -->
|
|
14
|
+
<!--<route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route>-->
|
|
15
|
+
<!-- <route :comp="{name: 'load-params', props: {dataUrl: ['api/af-revenue/sql/getMeterBrand','api/af-revenue/sql/getPriceType','api/af-revenue/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
|
|
16
|
+
</article>
|
|
17
|
+
</div>
|
|
18
|
+
</app-base>
|
|
19
|
+
</div>
|
|
9
20
|
</template>
|
|
10
21
|
|
|
11
22
|
<script>
|
|
12
|
-
|
|
23
|
+
|
|
13
24
|
|
|
14
25
|
export default {
|
|
15
|
-
|
|
26
|
+
|
|
27
|
+
|
|
16
28
|
}
|
|
17
29
|
</script>
|
|
@@ -154,6 +154,17 @@
|
|
|
154
154
|
close-on-select>
|
|
155
155
|
</v-select>
|
|
156
156
|
</div>
|
|
157
|
+
<div class="col-sm-2 form-group" v-if="$parent.$parent.queryType === 'lostContact'">
|
|
158
|
+
<label for="type" class="font_normal_body ">开户状态</label>
|
|
159
|
+
<v-select :value.sync="model.type" :search="false"
|
|
160
|
+
v-model="model.type"
|
|
161
|
+
:options='$parent.$parent.whetherCard'
|
|
162
|
+
condition="type = '{}'"
|
|
163
|
+
placeholder='开户状态'
|
|
164
|
+
value-single="true"
|
|
165
|
+
close-on-select>
|
|
166
|
+
</v-select>
|
|
167
|
+
</div>
|
|
157
168
|
</div>
|
|
158
169
|
</div>
|
|
159
170
|
</criteria>
|
|
@@ -205,6 +216,9 @@
|
|
|
205
216
|
<th v-show="$parent.$parent.$parent.queryType === 'commandException'">
|
|
206
217
|
<nobr>指令状态</nobr>
|
|
207
218
|
</th>
|
|
219
|
+
<th v-show="$parent.$parent.$parent.queryType === 'lostContact'">
|
|
220
|
+
<nobr>开户状态</nobr>
|
|
221
|
+
</th>
|
|
208
222
|
</tr>
|
|
209
223
|
</template>
|
|
210
224
|
<template partial='body'>
|
|
@@ -255,6 +269,9 @@
|
|
|
255
269
|
<td v-show="$parent.$parent.$parent.queryType === 'commandException'" style="text-align: center;">
|
|
256
270
|
<nobr>{{ row.f_instruct_state }}</nobr>
|
|
257
271
|
</td>
|
|
272
|
+
<td v-show="$parent.$parent.$parent.queryType === 'lostContact'" style="text-align: center;">
|
|
273
|
+
<nobr>{{ row.type }}</nobr>
|
|
274
|
+
</td>
|
|
258
275
|
</template>
|
|
259
276
|
</data-grid>
|
|
260
277
|
</criteria-paged>
|
|
@@ -336,6 +353,9 @@ export default {
|
|
|
336
353
|
userusetypes () {
|
|
337
354
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
|
338
355
|
},
|
|
356
|
+
whetherCard(){
|
|
357
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('开户状态')]
|
|
358
|
+
},
|
|
339
359
|
// 动态获取SQL名称
|
|
340
360
|
sqlName() {
|
|
341
361
|
const sqlNameMap = {
|
|
@@ -433,7 +453,8 @@ export default {
|
|
|
433
453
|
'f_meter_brand': '气表品牌',
|
|
434
454
|
'f_user_usetype': '用气类型',
|
|
435
455
|
'f_use_institution': '用气机构',
|
|
436
|
-
'f_user_usenature': '使用性质'
|
|
456
|
+
'f_user_usenature': '使用性质',
|
|
457
|
+
'type': '开户状态'
|
|
437
458
|
},
|
|
438
459
|
negative: {
|
|
439
460
|
'f_userinfo_code': '客户编号',
|
|
@@ -811,28 +811,19 @@
|
|
|
811
811
|
<tr style="position: relative" class="table-bordered">
|
|
812
812
|
<td
|
|
813
813
|
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
814
|
-
|
|
814
|
+
全表汇总信息
|
|
815
815
|
</td>
|
|
816
816
|
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
817
817
|
气量合计: {{(sumsmodel.f_pregas - 0).toFixed(2)}}
|
|
818
818
|
</td>
|
|
819
819
|
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
820
|
-
|
|
820
|
+
卡表收费合计: {{(sumsmodel.f_preamount - 0).toFixed(2)}}
|
|
821
821
|
</td>
|
|
822
822
|
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
823
|
-
|
|
824
|
-
</td>
|
|
825
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
826
|
-
燃气费合计: {{(sumsmodel.f_preamount - 0).toFixed(2)}}
|
|
827
|
-
</td>
|
|
828
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
829
|
-
预存金额合计: {{sumsmodel.f_yucun}}
|
|
823
|
+
物联网收费合计: {{sumsmodel.f_yucun}}
|
|
830
824
|
</td>
|
|
831
825
|
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
832
826
|
收款合计: {{(sumsmodel.f_collection - 0).toFixed(2)}}
|
|
833
|
-
</td>
|
|
834
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
835
|
-
优惠合计: {{sumsmodel.f_privilege_money}}
|
|
836
827
|
</td>
|
|
837
828
|
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
838
829
|
一阶气量合计: {{(sumsmodel.f_stairamount1 -0).toFixed(2)}}
|
|
@@ -14,10 +14,6 @@ export default function () {
|
|
|
14
14
|
Vue.component('user-query', (resolve) => {
|
|
15
15
|
require(['./UserQuery'], resolve)
|
|
16
16
|
})
|
|
17
|
-
// 用户稽查查询
|
|
18
|
-
Vue.component('inspect-list-user', (resolve) => {
|
|
19
|
-
require(['./InspectListUser'], resolve)
|
|
20
|
-
})
|
|
21
17
|
// 气量稽查查询
|
|
22
18
|
Vue.component('inspect-list-gas', (resolve) => {
|
|
23
19
|
require(['./InspectListGas'], resolve)
|
package/src/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { all } from 'vue-client'
|
|
|
6
6
|
import { system } from 'system-clients'
|
|
7
7
|
import { ldap } from 'ldap-clients'
|
|
8
8
|
import saleManage from './saleManage'
|
|
9
|
-
import ShanXianSaleManage from './filiale/
|
|
9
|
+
import ShanXianSaleManage from './filiale/xinjiangdexin/sale'
|
|
10
10
|
// import ShanXianwebSaleManage from './filiale/rongcheng/webmeterManage'
|
|
11
11
|
import webmeterManage from './webmeterManage'
|
|
12
12
|
import reportManage from './reportManage'
|
package/src/components/Test.vue
DELETED
|
@@ -1,690 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<div class="flex" v-if="!show">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial @keyup.enter="search()">
|
|
8
|
-
<div class="row">
|
|
9
|
-
<div class="col-sm-2">
|
|
10
|
-
<label class="font_normal_body">  公司</label>
|
|
11
|
-
<right-tree @re-res="$parent.$parent.getorg"
|
|
12
|
-
:initresid='$parent.$parent.org'></right-tree>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-sm-2 ">
|
|
15
|
-
<label for="f_gasproperties"class="font_normal_body">用气性质</label>
|
|
16
|
-
<v-select id="f_gasproperties"
|
|
17
|
-
style="width:60%"
|
|
18
|
-
v-model="model.f_gasproperties"
|
|
19
|
-
placeholder='用气性质'
|
|
20
|
-
:value.sync="model.f_gasproperties"
|
|
21
|
-
:options='$parent.$parent.gasproperties'
|
|
22
|
-
condition="f_gasproperties = '{}'"
|
|
23
|
-
close-on-select >
|
|
24
|
-
</v-select>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="col-sm-2" >
|
|
27
|
-
<label for="f_user_state" class="font_normal_body">客户状态</label>
|
|
28
|
-
<v-select :value.sync="model.f_user_state"
|
|
29
|
-
v-model="model.f_user_state"
|
|
30
|
-
:options='$parent.$parent.userstate' placeholder='请选择'
|
|
31
|
-
condition="f_user_state = '{}'"
|
|
32
|
-
close-on-select></v-select>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="col-sm-2 flex-row" style="white-space: nowrap">
|
|
35
|
-
<label class="font_normal_body" v-if="$parent.$parent.meter_classify.includes('卡表') || $parent.$parent.meter_classify.includes('物联网表')" >未购天数</label>
|
|
36
|
-
<label class="font_normal_body" v-else>未抄天数</label>
|
|
37
|
-
<div class="row">
|
|
38
|
-
<input type="text" style="width:30%" class="input_search" v-model="model.diffdaymin"
|
|
39
|
-
condition="diffday >= {} " placeholder="">
|
|
40
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
41
|
-
<input type="text" style="width:30%" class="input_search" v-model="model.diffdaymax"
|
|
42
|
-
condition="diffday <= {} " placeholder="">
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<div class="span" style="float:right;">
|
|
48
|
-
<button class="btn button_search" @click="search()">查询</button>
|
|
49
|
-
<button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
|
|
50
|
-
<button class="btn button_clear" @click="$parent.$parent.batchQuota()">批量限购</button>
|
|
51
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
52
|
-
:field="$parent.$parent.getfield"
|
|
53
|
-
:footer="$parent.$parent.footer"
|
|
54
|
-
:header="$parent.$parent.other"
|
|
55
|
-
sqlurl="api/af-revenue/logic/openapi/exportfile"
|
|
56
|
-
:sql-name="$parent.$parent.sqlName"
|
|
57
|
-
template-name='用户稽查导出' :choose-col="true"></export-excel>
|
|
58
|
-
<print-data
|
|
59
|
-
:sum-field="$parent.$parent.getfield"
|
|
60
|
-
:model="$parent.model"
|
|
61
|
-
:field="$parent.$parent.getfield"
|
|
62
|
-
:defaultfield="$parent.$parent.defaultfield"
|
|
63
|
-
print-name="稽查查询打印"
|
|
64
|
-
:sumsmodel="$parent.$parent.sumsmodel" ></print-data>
|
|
65
|
-
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
66
|
-
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
70
|
-
<div class="col-sm-2 ">
|
|
71
|
-
<label class="font_normal_body">起始时间</label>
|
|
72
|
-
<datepicker id="startDate" placeholder="起始时间"
|
|
73
|
-
v-model="model.startDate"
|
|
74
|
-
style="width:60%"
|
|
75
|
-
:value.sync="model.startDate"
|
|
76
|
-
:disabled-days-of-Week="[]"
|
|
77
|
-
:format="'yyyy-MM-dd'"
|
|
78
|
-
:show-reset-button="reset">
|
|
79
|
-
</datepicker>
|
|
80
|
-
</div>
|
|
81
|
-
<div class="col-sm-2 ">
|
|
82
|
-
<label class="font_normal_body">截止时间</label>
|
|
83
|
-
<datepicker id="endDate" placeholder="截止时间"
|
|
84
|
-
v-model="model.endDate"
|
|
85
|
-
style="width:60%"
|
|
86
|
-
:value.sync="model.endDate"
|
|
87
|
-
:disabled-days-of-Week="[]"
|
|
88
|
-
:format="'yyyy-MM-dd'"
|
|
89
|
-
:show-reset-button="reset">
|
|
90
|
-
</datepicker>
|
|
91
|
-
</div>
|
|
92
|
-
<div class="col-sm-2 ">
|
|
93
|
-
<label for="f_meter_classify"class="font_normal_body" title="参数名称:气表类型">气表类型</label>
|
|
94
|
-
<v-select id="f_meter_classify"
|
|
95
|
-
v-model="$parent.$parent.meter_classify"
|
|
96
|
-
placeholder='气表类型'
|
|
97
|
-
style="width:70%"
|
|
98
|
-
:value.sync="$parent.$parent.meter_classify"
|
|
99
|
-
:options='$parent.$parent.f_meter_classify'
|
|
100
|
-
:value-single="true"
|
|
101
|
-
close-on-select >
|
|
102
|
-
</v-select>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="col-sm-2 ">
|
|
105
|
-
<label for="f_table_state" class="font_normal_body"> 表状态</label>
|
|
106
|
-
<v-select id="f_table_state"
|
|
107
|
-
style="width:60%"
|
|
108
|
-
v-model="model.f_table_state"
|
|
109
|
-
placeholder='表状态'
|
|
110
|
-
:value.sync="model.f_table_state"
|
|
111
|
-
:options='$parent.$parent.tablestate'
|
|
112
|
-
condition="f_table_state = '{}'"
|
|
113
|
-
close-on-select >
|
|
114
|
-
</v-select>
|
|
115
|
-
</div>
|
|
116
|
-
<div class="col-sm-2" >
|
|
117
|
-
<label class="font_normal_body" v-if="$parent.$parent.meter_classify.includes('卡表') || $parent.$parent.meter_classify.includes('物联网表')">购气次数</label>
|
|
118
|
-
<label class="font_normal_body" v-else>抄表次数</label>
|
|
119
|
-
<input type="text" style="width:25%" class="input_search" v-model="model.cishumin"
|
|
120
|
-
condition="cishu >= {} " placeholder="">
|
|
121
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
122
|
-
<input type="text" style="width:25%" class="input_search" v-model="model.cishumax"
|
|
123
|
-
condition="cishu <= {} " placeholder="">
|
|
124
|
-
</div>
|
|
125
|
-
<div class="col-sm-2">
|
|
126
|
-
<label class="font_normal_body" v-if="$parent.$parent.meter_classify.includes('卡表')"> 购气量</label>
|
|
127
|
-
<label class="font_normal_body" v-if="$parent.$parent.meter_classify === '机表'"> 用气量</label>
|
|
128
|
-
<label class="font_normal_body" v-if="$parent.$parent.meter_classify === '物联网表'">购气金额</label>
|
|
129
|
-
<input type="text" style="width:25%" class="input_search" v-model="model.pregasmin"
|
|
130
|
-
condition="pregas >= {} " placeholder="">
|
|
131
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
132
|
-
<input type="text" style="width:25%" class="input_search" v-model="model.pregasmax"
|
|
133
|
-
condition="pregas <= {} " placeholder="">
|
|
134
|
-
</div>
|
|
135
|
-
<div class="col-sm-2" v-if="$parent.$parent.meter_classify.includes('卡表')">
|
|
136
|
-
<label class="font_normal_body">购气金额</label>
|
|
137
|
-
<input type="text" style="width:25%" class="input_search" v-model="model.collectionmin"
|
|
138
|
-
condition="collection >= {} " placeholder="">
|
|
139
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
140
|
-
<input type="text" style="width:25%" class="input_search" v-model="model.collectionmax"
|
|
141
|
-
condition="collection <= {} " placeholder="">
|
|
142
|
-
</div>
|
|
143
|
-
|
|
144
|
-
<div class="col-sm-2">
|
|
145
|
-
<label class="font_normal_body">  表号</label>
|
|
146
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
147
|
-
condition="f_meternumber = '{}'" placeholder='表号'>
|
|
148
|
-
</div>
|
|
149
|
-
<div class="col-sm-2 ">
|
|
150
|
-
<label class="font_normal_body">用户类型</label>
|
|
151
|
-
<v-select :value.sync="model.f_user_type"
|
|
152
|
-
@change="$parent.$parent.userTypeChange()"
|
|
153
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
154
|
-
condition="f_user_type = '{}'"
|
|
155
|
-
close-on-select></v-select>
|
|
156
|
-
</div>
|
|
157
|
-
|
|
158
|
-
<div class="col-sm-2">
|
|
159
|
-
<label class="font_normal_body">客户名称</label>
|
|
160
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
161
|
-
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
162
|
-
</div>
|
|
163
|
-
<div class="col-sm-2">
|
|
164
|
-
<label class="font_normal_body">客户编号</label>
|
|
165
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
166
|
-
condition="f_userinfo_code like '%{}%' " placeholder="客户编号">
|
|
167
|
-
</div>
|
|
168
|
-
<div class="col-sm-2 form-group">
|
|
169
|
-
<label class="font_normal_body" title="旧客户编号">档案编号</label>
|
|
170
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
171
|
-
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
172
|
-
</div>
|
|
173
|
-
<div class="col-sm-2 form-group">
|
|
174
|
-
<label class="font_normal_body">客户地址</label>
|
|
175
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
176
|
-
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
177
|
-
</div>
|
|
178
|
-
<div class="col-sm-2 form-group">
|
|
179
|
-
<label class="font_normal_body">客户电话</label>
|
|
180
|
-
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
181
|
-
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
182
|
-
</div>
|
|
183
|
-
<div class="col-sm-2 form-group">
|
|
184
|
-
<label class="font_normal_body">是否安检</label>
|
|
185
|
-
<v-select :value.sync="model.f_ischeck"
|
|
186
|
-
:options='$parent.$parent.ischecks'
|
|
187
|
-
placeholder='请选择'
|
|
188
|
-
v-model="model.f_ischeck"
|
|
189
|
-
condition="f_ischeck = '{}'"
|
|
190
|
-
close-on-select></v-select>
|
|
191
|
-
</div>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
</div>
|
|
195
|
-
|
|
196
|
-
</div>
|
|
197
|
-
</criteria>
|
|
198
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
|
|
199
|
-
<template partial='head'>
|
|
200
|
-
<tr>
|
|
201
|
-
<th><nobr>序号</nobr></th>
|
|
202
|
-
<th><nobr>客户编号</nobr></th>
|
|
203
|
-
<th><nobr>客户电话</nobr></th>
|
|
204
|
-
<th><nobr>档案编号</nobr></th>
|
|
205
|
-
<th><nobr>表号</nobr></th>
|
|
206
|
-
<th><nobr>客户名称</nobr></th>
|
|
207
|
-
<th><nobr>客户状态</nobr></th>
|
|
208
|
-
<th><nobr>客户地址</nobr></th>
|
|
209
|
-
<th><nobr>建档日期</nobr></th>
|
|
210
|
-
<th><nobr>客户类型</nobr></th>
|
|
211
|
-
<th><nobr>用气性质</nobr></th>
|
|
212
|
-
<th><nobr>表具状态</nobr></th>
|
|
213
|
-
<th><nobr>气表品牌</nobr></th>
|
|
214
|
-
<th><nobr>气价名称</nobr></th>
|
|
215
|
-
<th v-show="$parent.$parent.$parent.meter_classify.includes('卡表') || $parent.$parent.$parent.meter_classify.includes('物联网表')"><nobr>区间内最后购气日期</nobr></th>
|
|
216
|
-
<th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>区间内最后抄表日期</nobr></th>
|
|
217
|
-
<th v-show="$parent.$parent.$parent.meter_classify.includes('卡表') || $parent.$parent.$parent.meter_classify.includes('物联网表')"><nobr>区间内购气次数</nobr></th>
|
|
218
|
-
<th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>区间内抄表次数</nobr></th>
|
|
219
|
-
|
|
220
|
-
<th v-show="$parent.$parent.$parent.meter_classify.includes('卡表')"><nobr>区间内购气量</nobr></th>
|
|
221
|
-
<th v-show="$parent.$parent.$parent.meter_classify.includes('卡表') || $parent.$parent.$parent.meter_classify.includes('物联网表')"><nobr>区间内购气金额</nobr></th>
|
|
222
|
-
<th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>区间内用气量</nobr></th>
|
|
223
|
-
|
|
224
|
-
<th v-show="$parent.$parent.$parent.meter_classify.includes('卡表') || $parent.$parent.$parent.meter_classify.includes('物联网表')"><nobr>区间内未购气天数</nobr></th>
|
|
225
|
-
<th v-show="$parent.$parent.$parent.meter_classify === '机表'"><nobr>区间内未抄表天数</nobr></th>
|
|
226
|
-
<th><nobr>组织机构</nobr></th>
|
|
227
|
-
<th><nobr>安检次数</nobr></th>
|
|
228
|
-
<th><nobr>最后安检时间</nobr></th>
|
|
229
|
-
</tr>
|
|
230
|
-
</template>
|
|
231
|
-
<template partial='body'>
|
|
232
|
-
<td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
|
|
233
|
-
<td style="text-align: center;"><nobr>
|
|
234
|
-
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
235
|
-
</nobr> </td>
|
|
236
|
-
<td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
237
|
-
<td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
|
|
238
|
-
<td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
239
|
-
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
240
|
-
<td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
|
|
241
|
-
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
242
|
-
<td style="text-align: center;"><nobr>{{row.f_createfile_date}}</nobr></td>
|
|
243
|
-
<td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
|
|
244
|
-
<td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
|
|
245
|
-
<td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
|
|
246
|
-
<td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
|
|
247
|
-
<td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
|
|
248
|
-
<td style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></td>
|
|
249
|
-
|
|
250
|
-
<td style="text-align: center;"><nobr>{{row.cishu}}</nobr></td>
|
|
251
|
-
<td style="text-align: center;"><nobr>{{row.pregas}}</nobr></td>
|
|
252
|
-
<td style="text-align: center;" v-show="$parent.$parent.$parent.meter_classify.includes('卡表')"><nobr>{{row.collection}}</nobr></td>
|
|
253
|
-
<td style="text-align: center;"><nobr>{{row.diffday}}</nobr></td>
|
|
254
|
-
<td style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></td>
|
|
255
|
-
<td style="text-align: center;"><nobr>{{row.f_checknum}}</nobr></td>
|
|
256
|
-
<td style="text-align: center;"><nobr>{{row.f_last_check_date}}</nobr></td>
|
|
257
|
-
</template>
|
|
258
|
-
</data-grid>
|
|
259
|
-
</criteria-paged>
|
|
260
|
-
<table class="table-hover">
|
|
261
|
-
<tr style="position: relative" class="table-bordered">
|
|
262
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
263
|
-
<td v-if="meter_classify.includes('卡表')" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">购气量合计:  {{sumsmodel.pregas}}</td>
|
|
264
|
-
<td v-if="meter_classify === '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">抄表气量合计:  {{sumsmodel.pregas}}</td>
|
|
265
|
-
<td v-if="meter_classify === '物联网表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">购气金额合计:  {{sumsmodel.pregas}}</td>
|
|
266
|
-
</tr>
|
|
267
|
-
</table>
|
|
268
|
-
</div>
|
|
269
|
-
<div class="flex" v-if="show">
|
|
270
|
-
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
271
|
-
</div>
|
|
272
|
-
</div>
|
|
273
|
-
<modal :show.sync="batchQuotaModalShow" v-ref:secureQuotaModalShow
|
|
274
|
-
backdrop="false" class="secureQuotaModalShow" @modal-close="batchQuotaModalClose">
|
|
275
|
-
<header slot="modal-header" class="modal-header" style="text-align: center">
|
|
276
|
-
</header>
|
|
277
|
-
<article slot="modal-body" class="modal-body">
|
|
278
|
-
<validator name='v'>
|
|
279
|
-
<form class="form-horizontal select-overspread">
|
|
280
|
-
<div class="row">
|
|
281
|
-
<div class="col-sm-6 form-input-group" :class="[$v.third.required ? 'has-error' : '']">
|
|
282
|
-
<label class="font_normal_body col-sm-3">第三方缴费</label>
|
|
283
|
-
<input type="text" v-show="false" v-model="$refs.third.selectedItems"
|
|
284
|
-
v-validate:third='{required: true }'>
|
|
285
|
-
<v-select
|
|
286
|
-
:value.sync="quotaData.f_third_pay"
|
|
287
|
-
v-model="quotaData.f_third_pay"
|
|
288
|
-
:options='thirdPays'
|
|
289
|
-
:value-single="true"
|
|
290
|
-
close-on-select v-ref:third></v-select>
|
|
291
|
-
</div>
|
|
292
|
-
<div class="col-sm-6 form-input-group" :class="[$v.style.required ? 'has-error' : '']">
|
|
293
|
-
<label class="font_normal_body col-sm-3">限制类型</label>
|
|
294
|
-
<input type="text" v-show="false" v-model="$refs.style.selectedItems"
|
|
295
|
-
v-validate:style='{required: true }'>
|
|
296
|
-
<v-select
|
|
297
|
-
:value.sync="quotaData.f_limit_style"
|
|
298
|
-
v-model="quotaData.f_limit_style"
|
|
299
|
-
:options='limitstyle'
|
|
300
|
-
:value-single="true"
|
|
301
|
-
close-on-select v-ref:style></v-select>
|
|
302
|
-
</div>
|
|
303
|
-
</div>
|
|
304
|
-
<div class="row" style="margin-top:10px;" >
|
|
305
|
-
<div class="col-sm-6 form-input-group" :class="[$v.timetypes.required ? 'has-error' : '']">
|
|
306
|
-
<label class="font_normal_body col-sm-3">周期类型</label>
|
|
307
|
-
<input type="text" v-show="false" v-model="$refs.timetypes.selectedItems"
|
|
308
|
-
v-validate:timetypes='{required: true }'>
|
|
309
|
-
<v-select
|
|
310
|
-
:value.sync="quotaData.f_time_type"
|
|
311
|
-
v-model="quotaData.f_time_type"
|
|
312
|
-
:options='timeTypes'
|
|
313
|
-
:value-single="true"
|
|
314
|
-
close-on-select v-ref:timetypes></v-select>
|
|
315
|
-
</div>
|
|
316
|
-
<div class="col-sm-6 form-input-group" :class="[$v.f_time_value.required ? 'has-error' : '']">
|
|
317
|
-
<label class="font_normal_body col-sm-3">周期时长</label>
|
|
318
|
-
<input type="text" v-model="quotaData.f_time_value"
|
|
319
|
-
placeholder="周期时长"
|
|
320
|
-
style="vertical-align:middle"
|
|
321
|
-
v-validate:f_time_value='{required: true }'>
|
|
322
|
-
</div>
|
|
323
|
-
</div>
|
|
324
|
-
|
|
325
|
-
<div class="row" style="margin-top:10px;" v-if="quotaData.f_limit_style !=='按总量'">
|
|
326
|
-
<div class="col-sm-6 form-input-group" :class="[$v.f_limit_times.required ? 'has-error' : '']">
|
|
327
|
-
<label class="font_normal_body col-sm-3">限制次数</label>
|
|
328
|
-
<input type="text" style="width: 70%;display: inline-block" v-model="quotaData.f_limit_times" placeholder="限制次数" v-validate:f_limit_times='{required: true }'>
|
|
329
|
-
</div>
|
|
330
|
-
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='气量'" :class="[$v.f_limit_value.required ? 'has-error' : '']">
|
|
331
|
-
<label class="font_normal_body col-sm-3">单次限购</label>
|
|
332
|
-
<input type="text" v-model="quotaData.f_limit_value" placeholder="单次限购" v-validate:f_limit_value='{required: true }'>
|
|
333
|
-
</div>
|
|
334
|
-
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='金额'" :class="[$v.f_limit_amount.required ? 'has-error' : '']">
|
|
335
|
-
<label class="font_normal_body col-sm-3">单次限购</label>
|
|
336
|
-
<input type="text" v-model="quotaData.f_limit_amount" placeholder="单次限购" v-validate:f_limit_amount='{required: true }'>
|
|
337
|
-
</div>
|
|
338
|
-
</div>
|
|
339
|
-
<div class="row" style="margin-top:10px;" v-if="quotaData.f_limit_style ==='按总量'">
|
|
340
|
-
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='气量'" :class="[$v.f_limit_value.required ? 'has-error' : '']">
|
|
341
|
-
<label class="font_normal_body col-sm-3">总限购量</label>
|
|
342
|
-
<input type="text" v-model="quotaData.f_limit_value" placeholder="单次限购" v-validate:f_limit_value='{required: true }'>
|
|
343
|
-
</div>
|
|
344
|
-
<div class="col-sm-6 form-input-group" v-if="quotaData.f_limit_type ==='金额'" :class="[$v.f_limit_amount.required ? 'has-error' : '']">
|
|
345
|
-
<label class="font_normal_body col-sm-3">总限购量</label>
|
|
346
|
-
<input type="text" v-model="quotaData.f_limit_amount" placeholder="单次限购" v-validate:f_limit_amount='{required: true }'>
|
|
347
|
-
</div>
|
|
348
|
-
</div>
|
|
349
|
-
<div class="row" style="margin-top:10px;">
|
|
350
|
-
<div class="col-sm-6 form-input-group" :class="[$v.limittype.required ? 'has-error' : '']">
|
|
351
|
-
<label class="font_normal_body col-sm-3">支付限制</label>
|
|
352
|
-
<input type="text" v-show="false" v-model="$refs.limittype.selectedItems"
|
|
353
|
-
v-validate:limittype='{required: true }'>
|
|
354
|
-
<v-select
|
|
355
|
-
:value.sync="quotaData.f_limit_type"
|
|
356
|
-
v-model="quotaData.f_limit_type"
|
|
357
|
-
:options='limitTypes'
|
|
358
|
-
:value-single="true"
|
|
359
|
-
close-on-select v-ref:limittype></v-select>
|
|
360
|
-
</div>
|
|
361
|
-
<div class="col-sm-6 form-input-group">
|
|
362
|
-
<label class="font_normal_body col-sm-3">执行时间</label>
|
|
363
|
-
<datepicker placeholder="执行时间"
|
|
364
|
-
v-model="quotaData.f_start_date"
|
|
365
|
-
:value.sync="quotaData.f_start_date"
|
|
366
|
-
:format="'yyyy-MM-dd'">
|
|
367
|
-
</datepicker>
|
|
368
|
-
</div>
|
|
369
|
-
<div class="row auto">
|
|
370
|
-
<div class="col-sm-12 form-group form-input-group" :class="[$v.f_operate_reason.required ? 'has-error' : '']">
|
|
371
|
-
<label class="control-label">限购原因</label>
|
|
372
|
-
<div class="col-sm-4">
|
|
373
|
-
<textarea class="form-control col-sm-4"
|
|
374
|
-
v-model="quotaData.f_operate_reason"
|
|
375
|
-
v-validate:f_operate_reason='{required: true }'
|
|
376
|
-
placeholder="限购原因">
|
|
377
|
-
</textarea>
|
|
378
|
-
</div>
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
</form>
|
|
383
|
-
</validator>
|
|
384
|
-
</article>
|
|
385
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
386
|
-
<div class="modal-footer">
|
|
387
|
-
<button type="button" class="btn btn-default" :disabled="!$v.valid"
|
|
388
|
-
@click='batchQuotaConfirm'>确定
|
|
389
|
-
</button>
|
|
390
|
-
<button type="button" class="btn btn-default" @click='batchQuotaModalClose'>取消</button>
|
|
391
|
-
</div>
|
|
392
|
-
</footer>
|
|
393
|
-
</modal>
|
|
394
|
-
</div>
|
|
395
|
-
</template>
|
|
396
|
-
<script>
|
|
397
|
-
/**
|
|
398
|
-
*用户档案查询列表以及添加操作组件
|
|
399
|
-
*/
|
|
400
|
-
import { PagedList } from 'vue-client'
|
|
401
|
-
import Vue from 'vue'
|
|
402
|
-
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
403
|
-
|
|
404
|
-
let readySomething = async function (self) {
|
|
405
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
|
|
406
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
407
|
-
|
|
408
|
-
// await self.$refs.paged.$refs.cri.search()
|
|
409
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
410
|
-
}
|
|
411
|
-
export default {
|
|
412
|
-
title: '用户稽查',
|
|
413
|
-
data () {
|
|
414
|
-
return {
|
|
415
|
-
other:[],
|
|
416
|
-
footer:[],
|
|
417
|
-
org:[this.$login.f.orgid],
|
|
418
|
-
criteriaShow: false,
|
|
419
|
-
meter_classify:'气量卡表',
|
|
420
|
-
filialeNameStr: null,
|
|
421
|
-
filialeCodeStr: `and f_orgid = '${this.$login.f.orgid}'`,
|
|
422
|
-
userid: this.$login.f.id,
|
|
423
|
-
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
424
|
-
getfield:{"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号","f_user_name":"客户名称",
|
|
425
|
-
"f_user_state":"客户状态","f_user_phone":"客户电话","f_address":"地址","f_createfile_date":"建档日期","f_user_type":"用户类型",
|
|
426
|
-
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
427
|
-
"delivery_date":"区间内最后购气日期","cishu":"区间内购气次数","pregas":"区间内购气量","collection":"区间内购气金额",
|
|
428
|
-
"diffday":"区间内未购气天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"},
|
|
429
|
-
model: new PagedList('api/af-revenue/sql/inspectList', 50,{startDate:'this.model.startDate',endDate:'this.model.endDate'},{pregas: 0}),
|
|
430
|
-
rows: null,
|
|
431
|
-
//orgid:'',
|
|
432
|
-
show:false,
|
|
433
|
-
sqlName:'inspectList',
|
|
434
|
-
rowdata:{},
|
|
435
|
-
sumsmodel: {},
|
|
436
|
-
config: {
|
|
437
|
-
defaultPrint: ['f_userinfo_code','f_user_id']
|
|
438
|
-
},
|
|
439
|
-
thirdPays: [{label: '支持', value: '1'},{label: '不支持', value: '0'}],
|
|
440
|
-
timeTypes: [{label: '按月', value: '按月'},{label: '按日', value: '按日'}],
|
|
441
|
-
limitTypes: [{label: '气量', value: '气量'},{label: '金额', value: '金额'}],
|
|
442
|
-
limitstyle: [{label: '按次数', value: '按次数'},{label: '按总量', value: '按总量'}],
|
|
443
|
-
batchRowList: [],
|
|
444
|
-
quotaData: {
|
|
445
|
-
f_third_pay: '0',
|
|
446
|
-
f_time_type: '按月',
|
|
447
|
-
f_limit_times: '',
|
|
448
|
-
f_time_value: '',
|
|
449
|
-
f_limit_type: '气量',
|
|
450
|
-
f_limit_style:'',
|
|
451
|
-
f_limit_value: 0,
|
|
452
|
-
f_limit_amount: 0,
|
|
453
|
-
f_start_date: this.$login.toStandardDateString(),
|
|
454
|
-
f_operate_reason: '',
|
|
455
|
-
f_limit_source: '营收批量限购'
|
|
456
|
-
},
|
|
457
|
-
ischecks: [{label: '全部', value: ''},{label: '已安检', value: '已安检'},{label: '未安检', value: '未安检'}],
|
|
458
|
-
batchQuotaModalShow: false,
|
|
459
|
-
defaultfield: [],
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
watch:{
|
|
463
|
-
meter_classify(val){
|
|
464
|
-
if (val.includes('卡表')) {
|
|
465
|
-
this.model.url = this.url = 'api/af-revenue/sql/inspectList'
|
|
466
|
-
this.sqlName = 'inspectList'
|
|
467
|
-
this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
|
|
468
|
-
"f_user_name":"客户名称","f_user_state":"客户状态","f_user_phone":"客户电话","f_address":"地址",
|
|
469
|
-
"f_createfile_date":"建档日期","f_user_type":"用户类型",
|
|
470
|
-
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
471
|
-
"delivery_date":"区间内最后购气日期","cishu":"区间内购气次数","pregas":"区间内购气量","collection":"区间内购气金额",
|
|
472
|
-
"diffday":"区间内未购气天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"}
|
|
473
|
-
}else if (val === '机表') {
|
|
474
|
-
this.model.url = this.url = 'api/af-revenue/sql/handinspectList'
|
|
475
|
-
this.sqlName = 'handinspectList'
|
|
476
|
-
this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
|
|
477
|
-
"f_user_name":"客户名称","f_user_state":"客户状态","f_user_phone":"客户电话","f_address":"地址",
|
|
478
|
-
"f_createfile_date":"建档日期","f_user_type":"用户类型",
|
|
479
|
-
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
480
|
-
"delivery_date":"区间内最后抄表日期","cishu":"区间内抄表次数","pregas":"区间内抄表气量",
|
|
481
|
-
"diffday":"区间内未抄表天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"}
|
|
482
|
-
} else if (val === '物联网表') {
|
|
483
|
-
this.model.url = this.url = 'api/af-revenue/sql/getWebMeterList'
|
|
484
|
-
this.sqlName = 'getWebMeterList'
|
|
485
|
-
this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
|
|
486
|
-
"f_user_name":"客户名称","f_user_state":"客户状态","f_user_phone":"客户电话","f_address":"地址",
|
|
487
|
-
"f_createfile_date":"建档日期", "f_user_type":"用户类型",
|
|
488
|
-
"f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
|
|
489
|
-
"delivery_date":"区间内最后购气日期","cishu":"区间内购气次数","pregas":"区间内购气金额",
|
|
490
|
-
"diffday":"区间内未购气天数","f_checknum":"安检次数","f_last_check_date":"最后安检日期"}
|
|
491
|
-
}
|
|
492
|
-
this.clear()
|
|
493
|
-
this.model.rows = []
|
|
494
|
-
for(let key in this.model.sums){
|
|
495
|
-
this.model.sums[key] = 0
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
},
|
|
499
|
-
sumsmodel:{
|
|
500
|
-
handler: function(val) {
|
|
501
|
-
this.getotherfooter();
|
|
502
|
-
},
|
|
503
|
-
deep: true
|
|
504
|
-
}
|
|
505
|
-
},
|
|
506
|
-
ready () {
|
|
507
|
-
|
|
508
|
-
readySomething(this).then(() => {
|
|
509
|
-
this.$emit('ready')
|
|
510
|
-
}).catch((error) => {
|
|
511
|
-
this.$emit('error', error)
|
|
512
|
-
})
|
|
513
|
-
|
|
514
|
-
// 添加回车键监听
|
|
515
|
-
document.addEventListener('keyup', this.handleKeyUp)
|
|
516
|
-
},
|
|
517
|
-
methods: {
|
|
518
|
-
// 添加处理回车键的方法
|
|
519
|
-
handleKeyUp(e) {
|
|
520
|
-
if (e.key === 'Enter') {
|
|
521
|
-
this.search()
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
batchQuotaConfirm () {
|
|
525
|
-
let selectRow = this.$refs.paged.$refs.grid.getRowData()
|
|
526
|
-
let selectRowLen = selectRow.length
|
|
527
|
-
let msg = {
|
|
528
|
-
resolveMsg: `您已成功限购${selectRowLen}位用户!`,
|
|
529
|
-
rejectMsg: '批量作废限购失败!'
|
|
530
|
-
}
|
|
531
|
-
this.batchRowList = []
|
|
532
|
-
selectRow.forEach(row => {
|
|
533
|
-
this.batchRowList.push({"f_userinfo_id": row.f_userinfo_id, "f_priceid": row.f_priceid})
|
|
534
|
-
})
|
|
535
|
-
this.$showMessage(`您确定要将您你选中的${selectRowLen}位用户进行批量限购吗?`, ['confirm', 'cancel']).then(async (res) => {
|
|
536
|
-
if (res === 'confirm') {
|
|
537
|
-
console.log('所选中的用户:=======' + JSON.stringify(this.batchRowList))
|
|
538
|
-
let data = {
|
|
539
|
-
limitUserList: this.batchRowList,
|
|
540
|
-
f_operate_people: this.$login.f.name,
|
|
541
|
-
f_operate_peopleid: this.$login.f.id,
|
|
542
|
-
model: this.quotaData,
|
|
543
|
-
f_operate_type: '0'
|
|
544
|
-
}
|
|
545
|
-
await this.$resetpost('api/af-revenue/logic/sale_operateQuotaRecord', {data: data}, msg)
|
|
546
|
-
this.batchQuotaModalClose()
|
|
547
|
-
this.search()
|
|
548
|
-
}
|
|
549
|
-
})
|
|
550
|
-
},
|
|
551
|
-
batchQuotaModalClose () {
|
|
552
|
-
this.quotaData = {
|
|
553
|
-
f_third_pay: '0',
|
|
554
|
-
f_time_type: '按月',
|
|
555
|
-
f_limit_times: '',
|
|
556
|
-
f_time_value: '',
|
|
557
|
-
f_limit_type: '气量',
|
|
558
|
-
f_limit_style:'',
|
|
559
|
-
f_limit_value: 0,
|
|
560
|
-
f_limit_amount: 0,
|
|
561
|
-
f_start_date: this.$login.toStandardDateString(),
|
|
562
|
-
f_operate_reason: '',
|
|
563
|
-
f_limit_source: '营收批量限购'
|
|
564
|
-
}
|
|
565
|
-
this.batchQuotaModalShow = false
|
|
566
|
-
},
|
|
567
|
-
batchQuota(){
|
|
568
|
-
if (!this.$login.r.find(value => value == '稽查批量限购')) {
|
|
569
|
-
this.$showAlert('您没有权限操作此功能!!!', 'warning', 2000)
|
|
570
|
-
return
|
|
571
|
-
}
|
|
572
|
-
if(this.$refs.paged.$refs.grid.getRowData().length === 0){
|
|
573
|
-
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
574
|
-
return
|
|
575
|
-
}
|
|
576
|
-
this.batchQuotaModalShow = true
|
|
577
|
-
},
|
|
578
|
-
getotherfooter(){
|
|
579
|
-
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
580
|
-
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
581
|
-
this.other=[];
|
|
582
|
-
this.footer=[];
|
|
583
|
-
let exportdata = this.getCondition;
|
|
584
|
-
let otherInData=[];
|
|
585
|
-
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
586
|
-
let footerData=[],exportfield=this.getfield;
|
|
587
|
-
footerData.push("合计");
|
|
588
|
-
let self = this;
|
|
589
|
-
for(var field in self.sumsmodel){
|
|
590
|
-
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
591
|
-
}
|
|
592
|
-
this.footer.push(footerData);
|
|
593
|
-
this.other.push(otherInData);
|
|
594
|
-
},
|
|
595
|
-
getorg (obj) {
|
|
596
|
-
if(obj.resids.length>0){
|
|
597
|
-
this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids) + "and (cishu = 0 or cishu is null)"
|
|
598
|
-
}
|
|
599
|
-
else{
|
|
600
|
-
this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid + "and (cishu = 0 or cishu is null)"
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
userTypeChange () {
|
|
604
|
-
this.gasproperties=[]
|
|
605
|
-
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
606
|
-
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
607
|
-
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
608
|
-
}
|
|
609
|
-
else{
|
|
610
|
-
this.gasproperties =[{label: '全部', value: ''}]
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
|
|
614
|
-
cancel() {
|
|
615
|
-
this.show = false
|
|
616
|
-
},
|
|
617
|
-
showmsg(obj){
|
|
618
|
-
this.rowdata=obj
|
|
619
|
-
this.show=true
|
|
620
|
-
},
|
|
621
|
-
search () {
|
|
622
|
-
this.$refs.paged.$refs.cri.search()
|
|
623
|
-
},
|
|
624
|
-
selfSearch (args) {
|
|
625
|
-
if (!this.meter_classify) {
|
|
626
|
-
this.$showMessage('请选择气表类型。。。')
|
|
627
|
-
return
|
|
628
|
-
}
|
|
629
|
-
this.model.params.meter_classify = this.meter_classify
|
|
630
|
-
args.condition = args.condition+ ` ${this.filialeCodeStr}`
|
|
631
|
-
this.model.search(args.condition, args.model)
|
|
632
|
-
},
|
|
633
|
-
hidden(){
|
|
634
|
-
this.criteriaShow = !this.criteriaShow
|
|
635
|
-
},
|
|
636
|
-
clear(){
|
|
637
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
638
|
-
if(key != 'startDate' && key != 'endDate')
|
|
639
|
-
this.$refs.paged.$refs.cri.model[key] = []
|
|
640
|
-
})
|
|
641
|
-
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStartAndEndDateString()[0]
|
|
642
|
-
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
643
|
-
}
|
|
644
|
-
},
|
|
645
|
-
computed: {
|
|
646
|
-
gasproperties() {
|
|
647
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
648
|
-
},
|
|
649
|
-
usertypes() {
|
|
650
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
651
|
-
},
|
|
652
|
-
userstate() {
|
|
653
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('客户状态')]
|
|
654
|
-
},
|
|
655
|
-
tablestate () {
|
|
656
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
|
|
657
|
-
},
|
|
658
|
-
f_meter_classify(){
|
|
659
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
660
|
-
// return [{label: '机表', value: '机表'},{label: '卡表', value: '卡表'},{label: '物联网表', value: '物联网表'}]
|
|
661
|
-
// return [{label: '卡表', value: '卡表'}]
|
|
662
|
-
},
|
|
663
|
-
|
|
664
|
-
getCondition () {
|
|
665
|
-
let result = {
|
|
666
|
-
condition: '',
|
|
667
|
-
diffDay:' 1=1 ',
|
|
668
|
-
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
669
|
-
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
670
|
-
}
|
|
671
|
-
result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
|
|
672
|
-
|
|
673
|
-
return result
|
|
674
|
-
}
|
|
675
|
-
},
|
|
676
|
-
beforeDestroy() {
|
|
677
|
-
// 组件销毁前移除事件监听
|
|
678
|
-
document.removeEventListener('keyup', this.handleKeyUp)
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
</script>
|
|
682
|
-
<style media="screen">
|
|
683
|
-
.divtext {
|
|
684
|
-
min-width: 50px;
|
|
685
|
-
max-width: 200px;
|
|
686
|
-
border: 1px solid green;
|
|
687
|
-
display: inline-block;
|
|
688
|
-
}
|
|
689
|
-
</style>
|
|
690
|
-
|