manage-client 3.3.54 → 3.3.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.3.54",
3
+ "version": "3.3.56",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -334,6 +334,11 @@
334
334
  <!-- condition="jietilevel = '{}'"-->
335
335
  <!-- close-on-select></v-select>-->
336
336
  <!-- </div>-->
337
+ <div class="col-sm-2 form-group">
338
+ <label class="font_normal_body">业务单号</label>
339
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_serial_number"
340
+ condition="f_serial_number = '{}'" placeholder='业务单号'>
341
+ </div>
337
342
  </div>
338
343
  </div>
339
344
  </criteria>
@@ -0,0 +1,581 @@
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 for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name = '{}'" placeholder="客户名称">
38
+ </div>
39
+
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <export-excel :data="$parent.$parent.getCondition"
44
+ :field="$parent.$parent.getfield"
45
+ :footer="$parent.$parent.footer"
46
+ :header="$parent.$parent.other"
47
+ sqlurl="rs/logic/exportfile"
48
+ sql-name="MonthGasQuery"
49
+ template-name='月用气导出'
50
+ :choose-col="true"></export-excel>
51
+ <!-- <print-data :model="$parent.model" :field="$parent.$parent.getfield"-->
52
+ <!-- :defaultfield="$parent.$parent.defaultfield" print-name="非民用用气查询打印"-->
53
+ <!-- ></print-data>-->
54
+ <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>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">客户地址</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
61
+ condition="f_address like '%{}%'" placeholder='客户地址'>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </criteria>
66
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
67
+ <template partial='head'>
68
+ <tr>
69
+ <th><nobr>用户编号</nobr></th>
70
+ <th><nobr>用户姓名</nobr></th>
71
+ <th><nobr>用户地址</nobr></th>
72
+ <th><nobr>单双月</nobr></th>
73
+ <th><nobr>1号</nobr></th>
74
+ <th><nobr>2号</nobr></th>
75
+ <th><nobr>3号</nobr></th>
76
+ <th><nobr>4号</nobr></th>
77
+ <th><nobr>5号</nobr></th>
78
+ <th><nobr>6号</nobr></th>
79
+ <th><nobr>7号</nobr></th>
80
+ <th><nobr>8号</nobr></th>
81
+ <th><nobr>9号</nobr></th>
82
+ <th><nobr>10号</nobr></th>
83
+ <th><nobr>11号</nobr></th>
84
+ <th><nobr>12号</nobr></th>
85
+ <th><nobr>13号</nobr></th>
86
+ <th><nobr>14号</nobr></th>
87
+ <th><nobr>15号</nobr></th>
88
+ <th><nobr>16号</nobr></th>
89
+ <th><nobr>17号</nobr></th>
90
+ <th><nobr>18号</nobr></th>
91
+ <th><nobr>19号</nobr></th>
92
+ <th><nobr>20号</nobr></th>
93
+ <th><nobr>21号</nobr></th>
94
+ <th><nobr>22号</nobr></th>
95
+ <th><nobr>23号</nobr></th>
96
+ <th><nobr>24号</nobr></th>
97
+ <th><nobr>25号</nobr></th>
98
+ <th><nobr>26号</nobr></th>
99
+ <th><nobr>27号</nobr></th>
100
+ <th><nobr>28号</nobr></th>
101
+ <th><nobr>29号</nobr></th>
102
+ <th><nobr>30号</nobr></th>
103
+ <th><nobr>31号</nobr></th>
104
+
105
+ <th><nobr>最高用气量</nobr></th>
106
+ <th><nobr>最低用气量</nobr></th>
107
+ <th><nobr>日均用气量</nobr></th>
108
+ <th><nobr>总用气量</nobr></th>
109
+ <th><nobr>去年同期日均用气量</nobr></th>
110
+ <th><nobr>去年同期总用气量</nobr></th>
111
+
112
+ </tr>
113
+ </template>
114
+ <template partial='body'>
115
+ <td style="text-align: center;">
116
+ <nobr>{{row.f_userinfo_code}}</nobr>
117
+ </td>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.f_user_name}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_address}}</nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_hand_month}}</nobr>
126
+ </td>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.d1}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.d2}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.d3}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.d4}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.d5}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.d6}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.d7}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.d8}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.d9}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.d10}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.d11}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.d12}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.d13}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.d14}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.d15}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.d16}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.d17}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.d18}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.d19}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.d20}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.d21}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.d20}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.d23}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.d24}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.d25}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.d26}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.d27}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.d28}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.d29}}</nobr>
213
+ </td>
214
+ <td style="text-align: center;">
215
+ <nobr>{{row.d30}}</nobr>
216
+ </td>
217
+ <td style="text-align: center;">
218
+ <nobr>{{row.d31}}</nobr>
219
+ </td>
220
+
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.maxgas}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.mingas}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.avggas}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.sumgas}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.avggas1}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.sumgas1}}</nobr>
238
+ </td>
239
+ </template>
240
+ <template partial='foot'></template>
241
+ </data-grid>
242
+ </criteria-paged>
243
+ <table class="table-hover">
244
+ <tr style="position: relative" class="table-bordered">
245
+ <td
246
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
247
+ 汇总信息
248
+ </td>
249
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
250
+ 1日:&emsp;{{sumsmodel.d1}}
251
+ </td>
252
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
253
+ 2日:&emsp;{{sumsmodel.d2}}
254
+ </td>
255
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
256
+ 3日:&emsp;{{sumsmodel.d3}}
257
+ </td>
258
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
259
+ 4日:&emsp;{{sumsmodel.d4}}
260
+ </td>
261
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
262
+ 5日:&emsp;{{sumsmodel.d5}}
263
+ </td>
264
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
265
+ 6日:&emsp;{{sumsmodel.d6}}
266
+ </td>
267
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
268
+ 7日:&emsp;{{sumsmodel.d7}}
269
+ </td>
270
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
271
+ 8日:&emsp;{{sumsmodel.d8}}
272
+ </td>
273
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
274
+ 9日:&emsp;{{sumsmodel.d9}}
275
+ </td>
276
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
277
+ 10日:&emsp;{{sumsmodel.d10}}
278
+ </td>
279
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
280
+ 11日:&emsp;{{sumsmodel.d11}}
281
+ </td>
282
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
283
+ 12日:&emsp;{{sumsmodel.d12}}
284
+ </td>
285
+
286
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
287
+ 13日:&emsp;{{sumsmodel.d13}}
288
+ </td>
289
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
290
+ 14日:&emsp;{{sumsmodel.d14}}
291
+ </td>
292
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
293
+ 15日:&emsp;{{sumsmodel.d15}}
294
+ </td>
295
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
296
+ 16日:&emsp;{{sumsmodel.d16}}
297
+ </td>
298
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
299
+ 17日:&emsp;{{sumsmodel.d17}}
300
+ </td>
301
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
302
+ 18日:&emsp;{{sumsmodel.d18}}
303
+ </td>
304
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
305
+ 19日:&emsp;{{sumsmodel.d19}}
306
+ </td>
307
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
308
+ 20日:&emsp;{{sumsmodel.d20}}
309
+ </td>
310
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
311
+ 21日:&emsp;{{sumsmodel.d21}}
312
+ </td>
313
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
314
+ 22日:&emsp;{{sumsmodel.d22}}
315
+ </td>
316
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
317
+ 23日:&emsp;{{sumsmodel.d23}}
318
+ </td>
319
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
320
+ 24日:&emsp;{{sumsmodel.d24}}
321
+ </td>
322
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
323
+ 25日:&emsp;{{sumsmodel.d25}} </td>
324
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
325
+ 26日:&emsp;{{sumsmodel.d26}}</td>
326
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
327
+ 27日:&emsp;{{sumsmodel.d27}}</td>
328
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
329
+ 28日:&emsp;{{sumsmodel.d28}}</td>
330
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
331
+ 29日:&emsp;{{sumsmodel.d29}}</td>
332
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
333
+ 30日:&emsp;{{sumsmodel.d30}}</td>
334
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
335
+ 31日:&emsp;{{sumsmodel.d31}} </td>
336
+ </tr>
337
+ </table>
338
+ </div>
339
+ <div v-if="show">
340
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
341
+ </div>
342
+ </div>
343
+ </div>
344
+ </template>
345
+ <script>
346
+ import { PagedList } from 'vue-client'
347
+ import defaultPrint from '../../../components/sale/config/DefaultPrint'
348
+ import exportConfig from '../../../components/sale/config/exportConfig'
349
+
350
+ let readySomething = async function(self) {
351
+ // 加载抄表册
352
+ await self.$LoadParams.loadMeterBook(self.f_filialeid)
353
+ self.loadMeterBooks()
354
+
355
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
356
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
357
+ await self.$MagLoadParams.loadParam()
358
+
359
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
360
+ }
361
+ export default {
362
+ title: '月用气查询',
363
+ name: 'WebMeterMonthGasQuery',
364
+ data () {
365
+ return {
366
+ model: new PagedList('rs/sql/WebMeterMonth', 15, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
367
+ d1: 0,
368
+ d2: 0,
369
+ d3: 0,
370
+ d4: 0,
371
+ d5: 0,
372
+ d6: 0,
373
+ d7: 0,
374
+ d8: 0,
375
+ d9: 0,
376
+ d10: 0,
377
+ d11: 0,
378
+ d12: 0,
379
+ d13: 0,
380
+ d14: 0,
381
+ d15: 0,
382
+ d16: 0,
383
+ d17: 0,
384
+ d18: 0,
385
+ d19: 0,
386
+ d20: 0,
387
+ d21: 0,
388
+ d22: 0,
389
+ d23: 0,
390
+ d24: 0,
391
+ d25: 0,
392
+ d26: 0,
393
+ d27: 0,
394
+ d28: 0,
395
+ d29: 0,
396
+ d30: 0,
397
+ d31: 0
398
+ }),
399
+ initres: {
400
+ org:[this.$login.f.orgid],
401
+ dep:[],
402
+ user:[],
403
+ },
404
+ other: [],
405
+ footer: [],
406
+ gasproperties:[],
407
+ show:false,
408
+ rowdata:{},
409
+ criteriaShow: false,
410
+ orgCondtionStr: '',
411
+ modelval: [],
412
+ printshow: false,
413
+ all: false,
414
+ fields: {},
415
+ thead: '',
416
+ tfoot: '',
417
+ //合计数据
418
+ sumsmodel: {},
419
+ defaultfield: [],
420
+ f_filialeid: this.$login.f.f_orgid,
421
+ f_orgid: this.$login.f.orgid,
422
+ f_depid: this.$login.f.depids,
423
+ f_operatorid: this.$login.f.id,
424
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
425
+ meterbooks:[{label: '全部',value: ''}]
426
+ }
427
+ },
428
+ ready () {
429
+ readySomething(this)
430
+ },
431
+ methods: {
432
+ // 加载抄表册
433
+ loadMeterBooks() {
434
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
435
+ },
436
+ getotherfooter() {
437
+ this.other = [];
438
+ this.footer = [];
439
+ let otherInData = [];
440
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
441
+ let footerData = [], exportfield = this.getfield;
442
+ footerData.push("合计");
443
+ let self = this;
444
+ for (var field in self.sumsmodel) {
445
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
446
+ }
447
+ this.footer.push(footerData);
448
+ this.other.push(otherInData);
449
+ },
450
+ userTypeChange () {
451
+ this.gasproperties=[]
452
+ if(this.$refs.paged.$refs.cri.model !==null) {
453
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
454
+
455
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
456
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
457
+ }
458
+ else{
459
+ this.gasproperties =[{label: '全部', value: ''}]
460
+ }
461
+ },
462
+ search(){
463
+ this.$refs.paged.$refs.cri.search()
464
+ },
465
+ cancel() {
466
+ this.show = false
467
+ },
468
+ selfSearch(args) {
469
+ this.model.search(args.condition, args.model)
470
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
471
+ },
472
+ clear() {
473
+ //清空部门和人员
474
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
475
+ //部门和人员变为全选
476
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
477
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
478
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
479
+ this.$refs.paged.$refs.cri.model[key] = []
480
+ })
481
+ },
482
+ show() {
483
+ this.criteriaShow = true
484
+ },
485
+ hidden() {
486
+ this.criteriaShow = !this.criteriaShow
487
+ },
488
+ showmsg(obj){
489
+ this.rowdata=obj
490
+ this.show=true
491
+ },
492
+ getRes(condition,obj) {
493
+ this.orgCondtionStr = condition
494
+ this.orgname = obj.orgnames[0]
495
+ this.depname = obj.depnames[0]
496
+ },
497
+ put() {
498
+ // 对Modelval进行排序
499
+ this.sortModelval()
500
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
501
+ for (let key of this.modelval) {
502
+ this.thead += '<th>' + this.fields[key] + '</th>'
503
+ }
504
+ this.thead += '</tr>'
505
+ },
506
+ print() {
507
+ this.$refs.print.PrintAsFile()
508
+ this.printshow = false
509
+ },
510
+ dealmsg(val) {
511
+ this.rowdata=val
512
+ this.show=true
513
+ val.model = this.model.model
514
+ this.$dispatch('deal-msg', val)
515
+ },
516
+ close() {
517
+ this.printshow = false
518
+ this.all = false
519
+ },
520
+ // 对选择的列进行排序
521
+ sortModelval() {
522
+ let sortModel = []
523
+ Object.keys(this.fields).forEach((key) => {
524
+ if (this.modelval.includes(key)) {
525
+ sortModel.push(key)
526
+ }
527
+ })
528
+ this.modelval = sortModel
529
+ console.log('选择的打印的字段', this.modelval)
530
+ }
531
+ },
532
+ computed: {
533
+ metertype () {
534
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
535
+ },
536
+ getCondition() {
537
+ return {
538
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
539
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
540
+ endDate: this.$refs.paged.$refs.cri.model.endDate
541
+ }
542
+ },
543
+ getfield() {
544
+ return exportConfig.webmetermonthGasConfig
545
+ },
546
+ usertypes() {
547
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
548
+ },
549
+ },
550
+ events: {
551
+
552
+ },
553
+ watch: {
554
+ 'all'(val) {
555
+ if (val) {
556
+ this.modelval = this.bodyData
557
+ } else {
558
+ this.modelval = defaultPrint.config
559
+ this.put()
560
+ }
561
+ },
562
+ 'modelval.length'() {
563
+ this.put()
564
+ },
565
+ sumsmodel: {
566
+ handler: function (val) {
567
+ this.getotherfooter();
568
+ },
569
+ deep: true
570
+ }
571
+ }
572
+ }
573
+ </script>
574
+ <style>
575
+ .datapanel {
576
+ color: #333;
577
+ background-color: white;
578
+ padding: 10px 20px;
579
+ border-radius:15px;
580
+ }
581
+ </style>
package/src/saleManage.js CHANGED
@@ -657,4 +657,7 @@ export default function () {
657
657
  Vue.component('enterprise-gas-query', (resolve) => {
658
658
  require(['./components/sale/enterprisequery/enterpriseGasQuery'], resolve)
659
659
  })
660
+
661
+ // 月用气量查询
662
+ Vue.component('web-meter-month-gas-guery', (resolve) => { require(['./components/sale/businessquery/WebMeterMonthGasQuery'], resolve) })
660
663
  }