manage-client 3.3.118 → 3.3.119
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 +24 -33
- package/lib/package_2022-12-01-14-30-50.json +109 -0
- package/package.json +1 -1
- package/src/components/sale/config/exportConfig.js +1 -1
- package/src/components/sale/filesquery/RecordInfoQuery.vue +4 -2
- package/src/filiale/lixianV3/BusinessManage.vue +3 -0
- package/src/filiale/lixianV3/GasAnalysisQuery.vue +36 -9
- package/src/filiale/lixianV3/paymentQuery.vue +276 -0
- package/src/filiale/lixianV3/sale.js +2 -0
- package/src/filiale/lixianV3/useGasYearRatioQuery.vue +44 -9
- package/src/filiale/yuncheng/ChangeMeterQuery.vue +721 -0
- package/src/filiale/yuncheng/config/DefaultPrint.js +6 -0
- package/src/filiale/yuncheng/config/exportConfig.js +1209 -0
- package/src/filiale/yuncheng/config/tableConfig.js +54 -0
- package/src/filiale/yuncheng/sale.js +8 -0
- package/src/main.js +1 -1
package/build/dev-server.js
CHANGED
|
@@ -19,91 +19,82 @@ var qtx= 'http://36.103.222.144:6300/'
|
|
|
19
19
|
// var bendi = 'http://203.57.101.233:8400/'
|
|
20
20
|
// var bendi = 'http://121.36.106.17:8400/'
|
|
21
21
|
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
|
-
var
|
|
22
|
+
var bendi = 'http://192.168.50.67:31785'
|
|
23
23
|
// var bendi = 'http://119.187.112.234:8400/'
|
|
24
|
-
var
|
|
24
|
+
var wode = 'http://192.168.50.67:31785'
|
|
25
25
|
// 192.168.
|
|
26
26
|
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
27
27
|
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
|
28
28
|
var proxyTable = {
|
|
29
29
|
'/rs/logic/exportfile': {
|
|
30
|
-
target:
|
|
30
|
+
target: bendi
|
|
31
31
|
},
|
|
32
32
|
'/rs/sql/chargeQuery_by_gasproperties': {
|
|
33
|
-
target:
|
|
33
|
+
target: 'http://localhost:8084/'
|
|
34
34
|
},
|
|
35
35
|
'/rs/logic/chargeQuery_by_gasproperties_line': {
|
|
36
|
-
target:
|
|
36
|
+
target: 'http://localhost:8084/'
|
|
37
37
|
},
|
|
38
38
|
'/files': {
|
|
39
|
-
target:
|
|
39
|
+
target: bendi
|
|
40
40
|
},
|
|
41
41
|
// 查找资源服务数据
|
|
42
42
|
'/rs/search': {
|
|
43
|
-
target:
|
|
43
|
+
target: bendi
|
|
44
44
|
},
|
|
45
45
|
// 查找资源服务数据
|
|
46
46
|
'/rs/logic/getLogin': {
|
|
47
|
-
target:
|
|
47
|
+
target: bendi
|
|
48
48
|
},
|
|
49
49
|
// 查找资源服务数据
|
|
50
50
|
'/rs/logic/getInitData': {
|
|
51
|
-
target:
|
|
51
|
+
target: bendi
|
|
52
52
|
},
|
|
53
53
|
'/rs/logic/getSaleInitData': {
|
|
54
|
-
target:
|
|
54
|
+
target: bendi
|
|
55
55
|
},
|
|
56
56
|
// 用户登录服务地址
|
|
57
57
|
'/rs/user': {
|
|
58
|
-
target:
|
|
58
|
+
target: bendi
|
|
59
59
|
},
|
|
60
60
|
'/rs/path/getParams': {
|
|
61
|
-
target:
|
|
61
|
+
target: bendi
|
|
62
62
|
},
|
|
63
63
|
'/rs/data': {
|
|
64
|
-
target:
|
|
64
|
+
target: bendi
|
|
65
65
|
},
|
|
66
66
|
'/rs/license': {
|
|
67
|
-
target:
|
|
67
|
+
target: bendi
|
|
68
68
|
},
|
|
69
69
|
'/rs/db': {
|
|
70
|
-
target:
|
|
70
|
+
target: bendi
|
|
71
71
|
},
|
|
72
72
|
'/excel': {
|
|
73
|
-
target:
|
|
73
|
+
target: bendi
|
|
74
74
|
},
|
|
75
75
|
'/rs/config': {
|
|
76
|
-
target:
|
|
76
|
+
target: bendi
|
|
77
77
|
},
|
|
78
78
|
'/rs/sql/getLicenseById': {
|
|
79
|
-
target:
|
|
79
|
+
target: bendi
|
|
80
80
|
},
|
|
81
81
|
'/rs/report': {
|
|
82
|
-
target:
|
|
82
|
+
target: bendi
|
|
83
83
|
},
|
|
84
84
|
'/rs/vue': {
|
|
85
|
-
target:
|
|
85
|
+
target: bendi
|
|
86
86
|
},
|
|
87
87
|
'/rs/file': {
|
|
88
|
-
target:
|
|
88
|
+
target: bendi
|
|
89
89
|
},
|
|
90
90
|
'/rs/sql/singleTable': {
|
|
91
|
-
target:
|
|
92
|
-
},
|
|
93
|
-
'/rs/sql/address': {
|
|
94
|
-
target: server
|
|
95
|
-
},
|
|
96
|
-
'/rs/sql/getFiles': {
|
|
97
|
-
target: server
|
|
91
|
+
target: bendi
|
|
98
92
|
},
|
|
99
93
|
'/rs/sql': {
|
|
100
|
-
target:
|
|
101
|
-
},
|
|
102
|
-
'/rs/logic': {
|
|
103
|
-
target: local
|
|
94
|
+
target: 'http://localhost:8084/'
|
|
104
95
|
},
|
|
105
96
|
'/rs': {
|
|
106
|
-
target:
|
|
97
|
+
target: wode
|
|
107
98
|
}
|
|
108
99
|
}
|
|
109
100
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "manage-client",
|
|
3
|
+
"version": "3.2.174",
|
|
4
|
+
"description": "经营管控模块前台组件",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"directories": {
|
|
7
|
+
"test": "test"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"swiper": "^5.4.5"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"axios": "0.15.3",
|
|
14
|
+
"babel-core": "^6.0.0",
|
|
15
|
+
"babel-loader": "^6.0.0",
|
|
16
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
17
|
+
"babel-preset-es2015": "^6.0.0",
|
|
18
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
19
|
+
"chai": "^3.5.0",
|
|
20
|
+
"co": "^4.6.0",
|
|
21
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
22
|
+
"cross-env": "^1.0.7",
|
|
23
|
+
"cross-spawn": "^2.1.5",
|
|
24
|
+
"css-loader": "^0.23.0",
|
|
25
|
+
"echarts": "^4.1.0",
|
|
26
|
+
"eslint": "^2.0.0",
|
|
27
|
+
"eslint-config-standard": "^5.1.0",
|
|
28
|
+
"eslint-friendly-formatter": "^1.2.2",
|
|
29
|
+
"eslint-loader": "^1.3.0",
|
|
30
|
+
"eslint-plugin-html": "^1.3.0",
|
|
31
|
+
"eslint-plugin-promise": "^1.0.8",
|
|
32
|
+
"eslint-plugin-standard": "^1.3.2",
|
|
33
|
+
"eslint-plugin-vue": "^0.1.1",
|
|
34
|
+
"eventsource-polyfill": "^0.9.6",
|
|
35
|
+
"express": "^4.13.3",
|
|
36
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
37
|
+
"filemanager-webpack-plugin": "^2.0.5",
|
|
38
|
+
"file-loader": "^0.8.4",
|
|
39
|
+
"function-bind": "^1.0.2",
|
|
40
|
+
"html-webpack-plugin": "^2.8.1",
|
|
41
|
+
"http-proxy-middleware": "^0.11.0",
|
|
42
|
+
"inject-loader": "^2.0.1",
|
|
43
|
+
"isparta-loader": "^2.0.0",
|
|
44
|
+
"jasmine-core": "^2.4.1",
|
|
45
|
+
"jquery": "^3.3.1",
|
|
46
|
+
"jsencrypt": "3.0.0-rc.1",
|
|
47
|
+
"json-loader": "^0.5.4",
|
|
48
|
+
"karma": "^1.4.1",
|
|
49
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
50
|
+
"karma-coverage": "^1.1.1",
|
|
51
|
+
"karma-mocha": "^1.3.0",
|
|
52
|
+
"karma-sinon-chai": "^1.3.1",
|
|
53
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
54
|
+
"karma-spec-reporter": "0.0.31",
|
|
55
|
+
"karma-webpack": "^2.0.2",
|
|
56
|
+
"ldap-clients": "3.0.28",
|
|
57
|
+
"less": "^2.7.3",
|
|
58
|
+
"mkdirp": "^0.5.1",
|
|
59
|
+
"mocha": "^3.2.0",
|
|
60
|
+
"moment": "2.24.0",
|
|
61
|
+
"ncp": "^2.0.0",
|
|
62
|
+
"rimraf": "^2.5.0",
|
|
63
|
+
"sale-client": "3.4.14",
|
|
64
|
+
"selenium-server": "2.52.0",
|
|
65
|
+
"sinon": "^2.1.0",
|
|
66
|
+
"sinon-chai": "^2.8.0",
|
|
67
|
+
"style": "0.0.3",
|
|
68
|
+
"style-loader": "^0.20.3",
|
|
69
|
+
"swiper": "^5.4.5",
|
|
70
|
+
"system-clients": "3.1.89-20",
|
|
71
|
+
"url-loader": "^0.5.7",
|
|
72
|
+
"vue-amap": "0.5.10",
|
|
73
|
+
"vue-client": "1.24.51",
|
|
74
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
75
|
+
"vue-html-loader": "^1.0.0",
|
|
76
|
+
"vue-loader": "8.2.1",
|
|
77
|
+
"vue-resource": "^1.5.0",
|
|
78
|
+
"vue-router": "^0.7.13",
|
|
79
|
+
"vue-strap": "^1.0.9",
|
|
80
|
+
"vue-style-loader": "^1.0.0",
|
|
81
|
+
"vue-validator": "2.1.7",
|
|
82
|
+
"webpack": "1.12.2",
|
|
83
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
84
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
85
|
+
"webpack-merge": "^0.8.3",
|
|
86
|
+
"webpack-parallel-uglify-plugin": "^1.0.0"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"unit": "karma start test/unit/karma.conf.js --single-run",
|
|
90
|
+
"example": "node build/example-server.js",
|
|
91
|
+
"dev": "node build/dev-server.js",
|
|
92
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
93
|
+
"build": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_ENTRY=reportManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_BUILDEND=true VUE_APP_ENTRY=webmeterManage webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
94
|
+
"buildSaleManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
95
|
+
"buildReportManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=reportManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
96
|
+
"buildWebmeterManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=webmeterManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
97
|
+
"e2e": "node test/e2e/runner.js",
|
|
98
|
+
"release": "bash build/release.sh"
|
|
99
|
+
},
|
|
100
|
+
"repository": {
|
|
101
|
+
"type": "git",
|
|
102
|
+
"url": "https://gitee.com/aote/management_modules.git"
|
|
103
|
+
},
|
|
104
|
+
"keywords": [
|
|
105
|
+
"manage"
|
|
106
|
+
],
|
|
107
|
+
"author": "liuxudong",
|
|
108
|
+
"license": "ISC"
|
|
109
|
+
}
|
package/package.json
CHANGED
|
@@ -227,7 +227,7 @@ export default{
|
|
|
227
227
|
'f_total_usegas_amount': '累计用气金额', 'f_total_gas': '表累购气量', 'f_total_fee': '表累购金额', 'f_inputtor': '档案抄表员',
|
|
228
228
|
'f_book_inputtor': '表册抄表员',
|
|
229
229
|
'f_userfiles_address': '安装地址', 'f_install_person': '安装人', 'f_gas_person': '通气人员',
|
|
230
|
-
'f_meter_book_num': '抄表册编号', 'f_meter_book_sort': '抄表册顺序',
|
|
230
|
+
'f_book_name': '表册名称', 'f_meter_book_num': '抄表册编号', 'f_meter_book_sort': '抄表册顺序',
|
|
231
231
|
'f_balance_amount': '表剩余金额', 'f_times': '写卡次数',
|
|
232
232
|
'f_fillcard_times': '补卡次数', 'f_sendsuccess': '表同步状态', 'f_isband': '微信绑定', 'f_cost_type': '缴费类型',
|
|
233
233
|
'f_bank_accopen': '银行户名', 'f_bank_name': '银行名称', 'f_bank_account': '银行账号',
|
|
@@ -664,6 +664,7 @@
|
|
|
664
664
|
<th><nobr>安装人</nobr></th>
|
|
665
665
|
<!-- <th><nobr>通气人</nobr></th>-->
|
|
666
666
|
<!-- <th><nobr>点火状态</nobr></th>-->
|
|
667
|
+
<th><nobr>表册名称</nobr></th>
|
|
667
668
|
<th><nobr>抄表册编号</nobr></th>
|
|
668
669
|
|
|
669
670
|
<th><nobr>抄表册顺序</nobr></th>
|
|
@@ -796,13 +797,14 @@
|
|
|
796
797
|
<td style="text-align: center;"><nobr>{{row.f_total_usegas_amount}}</nobr></td>
|
|
797
798
|
<td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>
|
|
798
799
|
<td style="text-align: center;"><nobr>{{row.f_total_fee}}</nobr></td>
|
|
799
|
-
|
|
800
|
-
<td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
|
|
801
800
|
<td style="text-align: center;"><nobr>{{row.f_book_inputtor}}</nobr></td>
|
|
801
|
+
<td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
|
|
802
|
+
|
|
802
803
|
<td style="text-align: center;"><nobr>{{row.f_userfiles_address}}</nobr></td>
|
|
803
804
|
<td style="text-align: center;"><nobr>{{row.f_install_person}}</nobr></td>
|
|
804
805
|
<!-- <td style="text-align: center;"><nobr>{{row.f_gas_person}}</nobr></td>-->
|
|
805
806
|
<!-- <td style="text-align: center;"><nobr>{{row.f_fire_state}}</nobr></td>-->
|
|
807
|
+
<td style="text-align: center;"><nobr>{{row.f_book_name}}</nobr></td>
|
|
806
808
|
<td style="text-align: center;"><nobr>{{row.f_meter_book_num}}</nobr></td>
|
|
807
809
|
|
|
808
810
|
<td style="text-align: center;"><nobr>{{row.f_meter_book_sort}}</nobr></td>
|
|
@@ -130,6 +130,9 @@
|
|
|
130
130
|
<tabs header="用气分析" v-if="permission('用气分析')">
|
|
131
131
|
<gas-analysis-query @deal-msg="dealMsg" :data="data"></gas-analysis-query>
|
|
132
132
|
</tabs>
|
|
133
|
+
<tabs header="用户缴费抄表查询" v-if="permission('用户缴费抄表查询')">
|
|
134
|
+
<manage-payment-query @deal-msg="dealMsg" :data="data"></manage-payment-query>
|
|
135
|
+
</tabs>
|
|
133
136
|
</tab-button>
|
|
134
137
|
<!-- </div>-->
|
|
135
138
|
<!-- <div v-if="!listpage">-->
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
|
|
40
40
|
<export-excel :data="$parent.$parent.getCondition"
|
|
41
41
|
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
42
|
-
sqlurl="rs/logic/exportfile" sql-name="
|
|
43
|
-
template-name='
|
|
42
|
+
sqlurl="rs/logic/exportfile" sql-name="lixian_gasAnalysisQuery"
|
|
43
|
+
template-name='用气分析导出'
|
|
44
44
|
:choose-col="true">
|
|
45
45
|
</export-excel>
|
|
46
46
|
<div style="float: right" class="button_spacing"
|
|
@@ -80,14 +80,16 @@
|
|
|
80
80
|
<v-select :value.sync="model.f_user_type"
|
|
81
81
|
@change="$parent.$parent.userTypeChange()"
|
|
82
82
|
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
83
|
-
condition="f_user_type
|
|
83
|
+
condition="f_user_type in {}"
|
|
84
|
+
multiple
|
|
84
85
|
close-on-select></v-select>
|
|
85
86
|
</div>
|
|
86
87
|
<div class="col-sm-2 form-group">
|
|
87
88
|
<label class="font_normal_body">用气性质</label>
|
|
88
89
|
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
89
90
|
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
90
|
-
condition="f_gasproperties
|
|
91
|
+
condition="f_gasproperties in {}"
|
|
92
|
+
multiple
|
|
91
93
|
close-on-select></v-select>
|
|
92
94
|
</div>
|
|
93
95
|
<div class="col-sm-2 form-group">
|
|
@@ -95,14 +97,16 @@
|
|
|
95
97
|
<v-select :value.sync="model.f_meter_brand"
|
|
96
98
|
v-model="model.f_meter_brand"
|
|
97
99
|
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
98
|
-
condition="f_meter_brand
|
|
100
|
+
condition="f_meter_brand in {}"
|
|
101
|
+
multiple
|
|
99
102
|
close-on-select></v-select>
|
|
100
103
|
</div>
|
|
101
104
|
<div class="col-sm-2 form-group">
|
|
102
105
|
<label class="font_normal_body">气表型号</label>
|
|
103
106
|
<v-select :value.sync="model.f_meter_type"
|
|
104
107
|
:options='$parent.$parent.meterStyle' placeholder='请选择' v-model="model.f_meter_style"
|
|
105
|
-
condition="f_meter_type
|
|
108
|
+
condition="f_meter_type in {}"
|
|
109
|
+
multiple
|
|
106
110
|
close-on-select></v-select>
|
|
107
111
|
</div>
|
|
108
112
|
<div class="col-sm-2 form-group">
|
|
@@ -110,7 +114,8 @@
|
|
|
110
114
|
<v-select :value.sync="model.f_inputtor"
|
|
111
115
|
v-model="model.f_inputtor"
|
|
112
116
|
:options='$parent.$parent.inputtores' placeholder='请选择'
|
|
113
|
-
condition="f_inputtor
|
|
117
|
+
condition="f_inputtor in {}"
|
|
118
|
+
multiple
|
|
114
119
|
close-on-select>
|
|
115
120
|
</v-select>
|
|
116
121
|
</div>
|
|
@@ -150,6 +155,27 @@
|
|
|
150
155
|
:show-reset-button="true">
|
|
151
156
|
</datepicker>
|
|
152
157
|
</div>
|
|
158
|
+
|
|
159
|
+
<div class="col-sm-2 form-group" >
|
|
160
|
+
<label for="startDate" class="font_normal_body" title="建档开始日期">建档时间</label>
|
|
161
|
+
<datepicker id="startDate2" placeholder="建档开始日期" style="width:60%"
|
|
162
|
+
v-model="model.startDate"
|
|
163
|
+
:value.sync="model.startDate"
|
|
164
|
+
:format="'yyyy-MM-dd'"
|
|
165
|
+
:show-reset-button="true"
|
|
166
|
+
condition="f_createfile_date >= '{} 00:00:00'">
|
|
167
|
+
</datepicker>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="col-sm-2 form-group" >
|
|
170
|
+
<label for="endDate" class="font_normal_body" title="建档结束日期"> 至 </label>
|
|
171
|
+
<datepicker id="endDate2" placeholder="建档结束日期" style="width:60%"
|
|
172
|
+
v-model="model.endDate"
|
|
173
|
+
:value.sync="model.endDate"
|
|
174
|
+
:format="'yyyy-MM-dd'"
|
|
175
|
+
:show-reset-button="true"
|
|
176
|
+
condition="f_createfile_date <= '{} 23:59:59'">
|
|
177
|
+
</datepicker>
|
|
178
|
+
</div>
|
|
153
179
|
</div>
|
|
154
180
|
</div>
|
|
155
181
|
</criteria>
|
|
@@ -253,6 +279,7 @@ export default {
|
|
|
253
279
|
org: [this.$login.f.orgid]
|
|
254
280
|
},
|
|
255
281
|
meterbrands: [],
|
|
282
|
+
gasproperties : [],
|
|
256
283
|
inputtores: [{label: '全部',value: ''}],
|
|
257
284
|
criteriaShow: false,
|
|
258
285
|
condition: '',
|
|
@@ -327,8 +354,8 @@ export default {
|
|
|
327
354
|
userTypeChange () {
|
|
328
355
|
this.gasproperties = []
|
|
329
356
|
if (this.$refs.paged.$refs.cri.model !== null) {
|
|
330
|
-
this.$refs.paged.$refs.cri.model.f_gasproperties =
|
|
331
|
-
this.gasproperties = this.$appdata.getParam(
|
|
357
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = []
|
|
358
|
+
this.gasproperties = this.$appdata.getParam('用气性质')
|
|
332
359
|
} else {
|
|
333
360
|
this.gasproperties = [{label: '全部', value: ''}]
|
|
334
361
|
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
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-inline auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">客户编号</label>
|
|
11
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
12
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-2 form-group">
|
|
15
|
+
<label class="font_normal_body">客户名称</label>
|
|
16
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
17
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
22
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
23
|
+
v-model="model.startDate"
|
|
24
|
+
:value.sync="model.startDate"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="true"
|
|
27
|
+
>
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2 form-group">
|
|
31
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
32
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
33
|
+
v-model="model.endDate"
|
|
34
|
+
:value.sync="model.endDate"
|
|
35
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
36
|
+
:show-reset-button="true"
|
|
37
|
+
>
|
|
38
|
+
</datepicker>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="span" style="float:right;">
|
|
42
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
44
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
45
|
+
:field="$parent.$parent.config.pageFields"
|
|
46
|
+
sqlurl="rs/logic/exportfile"
|
|
47
|
+
sql-name="paymentQuery"
|
|
48
|
+
template-name='用户缴费抄表查询'
|
|
49
|
+
:choose-col="true"></export-excel>
|
|
50
|
+
|
|
51
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.config.pageFields"
|
|
52
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
53
|
+
titletable="用户缴费抄表查询"
|
|
54
|
+
></print-data>
|
|
55
|
+
<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>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</criteria>
|
|
60
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
|
|
61
|
+
<template partial='head'>
|
|
62
|
+
<tr>
|
|
63
|
+
<th v-for="(key,value ) in $parent.$parent.$parent.config.pageFields" ><nobr>{{value}}</nobr></th>
|
|
64
|
+
</tr>
|
|
65
|
+
</template>
|
|
66
|
+
<template partial='body'>
|
|
67
|
+
<td style="text-align: center;" v-for="(key,value ) in $parent.$parent.$parent.config.pageFields"><nobr>{{row[key]}}</nobr></td>
|
|
68
|
+
</template>
|
|
69
|
+
<template partial='foot'></template>
|
|
70
|
+
</data-grid>
|
|
71
|
+
</criteria-paged>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</template>
|
|
76
|
+
<script>
|
|
77
|
+
import { PagedList } from 'vue-client'
|
|
78
|
+
import * as Util from '../../Util'
|
|
79
|
+
import defaultPrint from './config/DefaultPrint'
|
|
80
|
+
import exportConfig from './config/exportConfig.js'
|
|
81
|
+
let readySomething = async function(self) {
|
|
82
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
83
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
84
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
85
|
+
await self.$MagLoadParams.loadParam()
|
|
86
|
+
self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
|
|
87
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
88
|
+
}
|
|
89
|
+
export default {
|
|
90
|
+
title: '用户缴费抄表查询',
|
|
91
|
+
name: 'paymentQuery',
|
|
92
|
+
data () {
|
|
93
|
+
return {
|
|
94
|
+
model: new PagedList('rs/sql/paymentQuery', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
|
|
95
|
+
initres: {
|
|
96
|
+
org:[this.$login.f.orgid],
|
|
97
|
+
dep:[],
|
|
98
|
+
user:[],
|
|
99
|
+
},
|
|
100
|
+
other: [],
|
|
101
|
+
footer: [],
|
|
102
|
+
gasproperties:[],
|
|
103
|
+
show:false,
|
|
104
|
+
rowdata:{},
|
|
105
|
+
criteriaShow: false,
|
|
106
|
+
orgCondtionStr: '',
|
|
107
|
+
modelval: [],
|
|
108
|
+
printshow: false,
|
|
109
|
+
all: false,
|
|
110
|
+
fields: {},
|
|
111
|
+
thead: '',
|
|
112
|
+
tfoot: '',
|
|
113
|
+
defaultfield: [],
|
|
114
|
+
config: {
|
|
115
|
+
pageFields:{
|
|
116
|
+
'f_userinfo_code': '客户编号', 'f_user_name': '名称','f_user_phone': '电话','f_residential_area':'小区','f_address':'地址','f_idnumber':'身份证号','f_user_state':'用户状态',
|
|
117
|
+
'f_meternumber':'表号','f_charge_type':'操作类型','f_operate_date':'操作时间','f_operator':'操作员','f_last_tablebase':'上期底数','f_tablebase':'本期底数',
|
|
118
|
+
'f_oughtamount': '用气量', 'f_oughtfee': '用气金额','f_collection':'收款','f_curbalance':'本期结余','f_delaypay':'滞纳金'
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
smallareas:[{label: '全部',value: ''}], //区域
|
|
122
|
+
//合计数据
|
|
123
|
+
sumsmodel: {},
|
|
124
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
125
|
+
f_orgid: this.$login.f.orgid,
|
|
126
|
+
f_depid: this.$login.f.depids,
|
|
127
|
+
f_operatorid: this.$login.f.id
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
ready () {
|
|
131
|
+
readySomething(this)
|
|
132
|
+
},
|
|
133
|
+
methods: {
|
|
134
|
+
getotherfooter() {
|
|
135
|
+
this.other = [];
|
|
136
|
+
this.footer = [];
|
|
137
|
+
let otherInData = [];
|
|
138
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
139
|
+
let footerData = [], exportfield = this.getfield;
|
|
140
|
+
footerData.push("合计");
|
|
141
|
+
let self = this;
|
|
142
|
+
this.other.push(otherInData);
|
|
143
|
+
},
|
|
144
|
+
userTypeChange () {
|
|
145
|
+
this.gasproperties=[]
|
|
146
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
147
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
148
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
149
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
150
|
+
}
|
|
151
|
+
else{
|
|
152
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
search(){
|
|
156
|
+
this.$refs.paged.$refs.cri.search()
|
|
157
|
+
},
|
|
158
|
+
cancel() {
|
|
159
|
+
this.show = false
|
|
160
|
+
},
|
|
161
|
+
selfSearch(args) {
|
|
162
|
+
this.model.search(args.condition, args.model)
|
|
163
|
+
},
|
|
164
|
+
clear() {
|
|
165
|
+
//清空部门和人员
|
|
166
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
167
|
+
//部门和人员变为全选
|
|
168
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
169
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
170
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
171
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
172
|
+
})
|
|
173
|
+
},
|
|
174
|
+
show() {
|
|
175
|
+
this.criteriaShow = true
|
|
176
|
+
},
|
|
177
|
+
hidden() {
|
|
178
|
+
this.criteriaShow = !this.criteriaShow
|
|
179
|
+
},
|
|
180
|
+
showmsg(obj){
|
|
181
|
+
this.rowdata=obj
|
|
182
|
+
this.show=true
|
|
183
|
+
},
|
|
184
|
+
getRes(condition,obj) {
|
|
185
|
+
this.orgCondtionStr = condition
|
|
186
|
+
this.orgname = obj.orgnames[0]
|
|
187
|
+
this.depname = obj.depnames[0]
|
|
188
|
+
},
|
|
189
|
+
put() {
|
|
190
|
+
// 对Modelval进行排序
|
|
191
|
+
this.sortModelval()
|
|
192
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
|
|
193
|
+
for (let key of this.modelval) {
|
|
194
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
195
|
+
}
|
|
196
|
+
this.thead += '</tr>'
|
|
197
|
+
},
|
|
198
|
+
print() {
|
|
199
|
+
this.$refs.print.PrintAsFile()
|
|
200
|
+
this.printshow = false
|
|
201
|
+
},
|
|
202
|
+
dealmsg(val) {
|
|
203
|
+
this.rowdata=val
|
|
204
|
+
this.show=true
|
|
205
|
+
val.model = this.model.model
|
|
206
|
+
this.$dispatch('deal-msg', val)
|
|
207
|
+
},
|
|
208
|
+
close() {
|
|
209
|
+
this.printshow = false
|
|
210
|
+
this.all = false
|
|
211
|
+
},
|
|
212
|
+
// 对选择的列进行排序
|
|
213
|
+
sortModelval() {
|
|
214
|
+
let sortModel = []
|
|
215
|
+
Object.keys(this.fields).forEach((key) => {
|
|
216
|
+
if (this.modelval.includes(key)) {
|
|
217
|
+
sortModel.push(key)
|
|
218
|
+
}
|
|
219
|
+
})
|
|
220
|
+
this.modelval = sortModel
|
|
221
|
+
console.log('选择的打印的字段', this.modelval)
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
computed: {
|
|
225
|
+
getCondition() {
|
|
226
|
+
return {
|
|
227
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
228
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
229
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
getfield() {
|
|
233
|
+
return exportConfig.monthGasConfig
|
|
234
|
+
},
|
|
235
|
+
usertypes() {
|
|
236
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
237
|
+
},
|
|
238
|
+
f_state() {
|
|
239
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
240
|
+
},
|
|
241
|
+
metertypes() {
|
|
242
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
events: {
|
|
246
|
+
|
|
247
|
+
},
|
|
248
|
+
watch: {
|
|
249
|
+
'all'(val) {
|
|
250
|
+
if (val) {
|
|
251
|
+
this.modelval = this.bodyData
|
|
252
|
+
} else {
|
|
253
|
+
this.modelval = defaultPrint.monthGasConfig
|
|
254
|
+
this.put()
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
'modelval.length'() {
|
|
258
|
+
this.put()
|
|
259
|
+
},
|
|
260
|
+
sumsmodel: {
|
|
261
|
+
handler: function (val) {
|
|
262
|
+
this.getotherfooter();
|
|
263
|
+
},
|
|
264
|
+
deep: true
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
</script>
|
|
269
|
+
<style>
|
|
270
|
+
.datapanel {
|
|
271
|
+
color: #333;
|
|
272
|
+
background-color: white;
|
|
273
|
+
padding: 10px 20px;
|
|
274
|
+
border-radius:15px;
|
|
275
|
+
}
|
|
276
|
+
</style>
|