manage-client 4.1.126 → 4.1.128

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.
@@ -6,8 +6,8 @@ const proxyMiddleware = require('http-proxy-middleware')
6
6
  const app = express()
7
7
  const compiler = webpack(config)
8
8
 
9
- const server = 'http://111.229.34.22:31467/'
10
- const local = 'http://111.229.34.22:31467/'
9
+ const server = 'http://123.57.3.66:31467/'
10
+ const local = 'http://127.0.0.1:9026/'
11
11
  const proxyTable = {
12
12
  '/rs/logic/exportfile': {
13
13
  target: server
@@ -16,22 +16,22 @@ const proxyTable = {
16
16
  target: server
17
17
  },
18
18
  '/api/af-revenue/sql/': {
19
- // pathRewrite: {
20
- // '^/api/af-revenue': '/'
21
- // },
22
- target: local
23
- },
24
- '/api/af-revenue/report/': {
25
- // pathRewrite: {
26
- // '^/api/af-revenue': '/'
27
- // },
28
- target: local
19
+ pathRewrite: {
20
+ '^/api/af-revenue': '/singlepage/api/af-revenue/'
21
+ },
22
+ target: server
29
23
  },
24
+ // '/api/af-revenue/report/': {
25
+ // pathRewrite: {
26
+ // '^/api/af-revenue': '/'
27
+ // },
28
+ // target: local
29
+ // },
30
30
  '/api/af-revenue/logic': {
31
- // pathRewrite: {
32
- // '^/api/af-revenue': '/'
33
- // },
34
- target: local
31
+ pathRewrite: {
32
+ '^/api/af-revenue': '/singlepage/api/af-revenue/'
33
+ },
34
+ target: server
35
35
  },
36
36
  '/api': {
37
37
  target: server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.126",
3
+ "version": "4.1.128",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,976 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
22
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
23
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
24
+ </div>
25
+ <div class="col-sm-2 form-group">
26
+ <label class="font_normal_body">客户电话</label>
27
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
28
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
29
+ </div>
30
+ <div class="span" style="float:right;">
31
+ <button class="button_search button_spacing" v-show="false"
32
+ @click="$parent.$parent.ReadIDCard()">读取身份证
33
+ </button>
34
+ <read-card v-if="!$filialeInfo || $filialeInfo !== 'rongcheng'"
35
+ :is-single.sync="$parent.$parent.isSingleUser" @read-info="$parent.$parent.cardBtn"
36
+ v-ref:readcard></read-card>
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
40
+
41
+ <export-excel :data="$parent.$parent.getCondition" :field="$parent.$parent.getExportField"
42
+ :footer="$parent.$parent.footer" :header="$parent.$parent.other"
43
+ v-if="$parent.$parent.authArr.includes('档案查询导出')" sqlurl="api/af-revenue/logic/openapi/exportfile"
44
+ sql-name="meterQuery"
45
+ template-name='表具查询导出' :choose-col="true"></export-excel>
46
+ <print-data :sum-field="$parent.$parent.getExportField" :model="$parent.model"
47
+ :field="$parent.$parent.getExportField" :defaultfield="$parent.$parent.defaultfield"
48
+ titletable="客户查询" :sumsmodel="$parent.$parent.sumsmodel"></print-data>
49
+
50
+
51
+ <div style="float: right" class="button_spacing"
52
+ :class="{ 'button_shrink_top': $parent.$parent.criteriaShow, 'button_shrink_bottom': !$parent.$parent.criteriaShow }"
53
+ @click="$parent.$parent.hidden()"></div>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <res-select-group :initres="$parent.$parent.initres"
58
+ @re-res="$parent.$parent.getRes"></res-select-group>
59
+
60
+
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户地址</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
64
+ condition="f_address like '%{}%'" placeholder='客户地址'>
65
+ </div>
66
+ <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo !== 'rongcheng'">
67
+ <label class="font_normal_body">用气点</label>
68
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userfiles_address"
69
+ condition="f_userfiles_address like '%{}%'" placeholder='用气点'>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;表号&nbsp;&nbsp;&nbsp;</label>
73
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
74
+ condition="f_meternumber = '{}'" placeholder='表号'>
75
+ </div>
76
+
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
79
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
80
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
81
+ </div>
82
+
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">客户类型</label>
85
+ <v-select :value.sync="model.f_user_type" :options='$parent.$parent.usertypes'
86
+ @change="$parent.$parent.userTypeChange()" placeholder='请选择' v-model="model.f_user_type"
87
+ condition="f_user_type = '{}'" close-on-select></v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label for="f_usetype" class="font_normal_body">二次挂表</label>
91
+ <v-select :value.sync="model.issecondtype" v-model="model.issecondtype" condition="f_usetype {}"
92
+ :options='$parent.$parent.issecond' placeholder='请选择' close-on-select></v-select>
93
+ </div>
94
+ <div class="col-sm-2 form-group" v-if="titleShow">
95
+ <label for="f_usetype" class="font_normal_body" title="参数:使用类型">使用类型</label>
96
+ <v-select :value.sync="model.f_usetype" v-model="model.f_usetype" condition="f_usetype = '{}'"
97
+ :options='$parent.$parent.usetype' placeholder='请选择' close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-2 form-group" v-if="titleShow">
100
+ <label class="font_normal_body">用气性质</label>
101
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
102
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
103
+ condition="f_gasproperties = '{}'"
104
+ close-on-select></v-select>
105
+ </div>
106
+ <div class="col-sm-2 form-group">
107
+ <label class="font_normal_body">气价类型</label>
108
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype" placeholder='气价类型'
109
+ :options="$parent.$parent.pricetypes" condition="f_price_type = '{}'" close-on-select
110
+ v-ref:type>
111
+ </v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">气价名称</label>
115
+ <v-select :value.sync="model.f_price_name" v-model="model.f_price_name"
116
+ :options="$parent.$parent.getPricenames" placeholder='请选择' condition="f_price_name = '{}'"
117
+ close-on-select></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">气表分类</label>
121
+ <v-select :value.sync="model.f_meter_classify" v-model="model.f_meter_classify"
122
+ :options='$parent.$parent.metertypes' placeholder='请选择'
123
+ condition="f_meter_classify = '{}'"
124
+ close-on-select></v-select>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label class="font_normal_body">气表品牌</label>
128
+ <v-select :value.sync="model.f_meter_brand" v-model="model.f_meter_brand"
129
+ :options='$parent.$parent.meterbrands' placeholder='请选择' condition="f_meter_brand = '{}'"
130
+ close-on-select></v-select>
131
+ </div>
132
+ <div class="col-sm-2 form-group">
133
+ <label class="font_normal_body">气表型号</label>
134
+ <v-select :value.sync="model.f_meter_style" v-model="model.f_meter_style"
135
+ :options='$parent.$parent.meterstyle[model.f_meter_brand]' placeholder='请选择'
136
+ condition="f_meter_style = '{}'" close-on-select></v-select>
137
+ </div>
138
+ <div class="col-sm-2 form-group">
139
+ <label class="font_normal_body">气表状态</label>
140
+ <v-select :value.sync="model.f_table_state" v-model="model.f_table_state"
141
+ :options='$parent.$parent.tablestate' placeholder='请选择' condition="f_table_state = '{}'"
142
+ close-on-select></v-select>
143
+ </div>
144
+ <div class="col-sm-2 form-group">
145
+ <label class="font_normal_body">使用状态</label>
146
+ <v-select :value.sync="model.f_usestate" v-model="model.f_usestate"
147
+ :options='$parent.$parent.usestate' placeholder='请选择' condition="f_usestate = '{}'"
148
+ close-on-select></v-select>
149
+ </div>
150
+ <div class="col-sm-2 form-group">
151
+ <label for="startDate" class="font_normal_body">建表日期</label>
152
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%" v-model="model.startDate"
153
+ :value.sync="model.startDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
154
+ condition="f_input_date >= '{} 00:00:00'">
155
+ </datepicker>
156
+ </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label for="endDate" class="font_normal_body">建表日期</label>
159
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%" v-model="model.endDate"
160
+ :value.sync="model.endDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
161
+ condition="f_input_date <= '{} 23:59:59'">
162
+ </datepicker>
163
+ </div>
164
+ <div class="col-sm-2 form-group">
165
+ <label for="startDate" class="font_normal_body">通气日期</label>
166
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%" v-model="model.startTQDate"
167
+ :value.sync="model.startTQDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
168
+ condition="f_gas_date >= '{} 00:00:00'">
169
+ </datepicker>
170
+ </div>
171
+ <div class="col-sm-2 form-group">
172
+ <label for="endDate" class="font_normal_body">通气日期</label>
173
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%" v-model="model.endTQDate"
174
+ :value.sync="model.endTQDate" :format="'yyyy-MM-dd'" :show-reset-button="true"
175
+ condition="f_gas_date <= '{} 23:59:59'">
176
+ </datepicker>
177
+ </div>
178
+ <div class="col-sm-2 form-group">
179
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;壁挂炉</label>
180
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl" :options='$parent.$parent.bgl'
181
+ placeholder='请选择' condition="isbgl = '{}'" close-on-select></v-select>
182
+ </div>
183
+ <div class="col-sm-2 form-group" v-if="titleShow">
184
+ <label class="font_normal_body">用户等级</label>
185
+ <v-select :value.sync="model.f_user_grade" v-model="model.f_user_grade"
186
+ :options='$parent.$parent.usergrade' placeholder='请选择' condition="f_user_grade = '{}'"
187
+ close-on-select></v-select>
188
+ </div>
189
+ <!--表册片区-->
190
+ <div class="col-sm-2 form-group">
191
+ <label class="font_normal_body">表册片区</label>
192
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
193
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册' style="width:60%" close-on-select
194
+ condition="f_book_slice_area = '{}'"></v-select>
195
+ </div>
196
+ <div class="col-sm-2 form-group">
197
+ <label class="font_normal_body">抄&nbsp;&nbsp;表&nbsp;员</label>
198
+ <v-select :value.sync="model.f_inputtor" v-model="model.f_inputtor"
199
+ :options='$parent.$parent.inputtores' placeholder='请选择' condition="f_inputtor = '{}'"
200
+ close-on-select :value-single="true" :search="false">
201
+ </v-select>
202
+ </div>
203
+ <div class="col-sm-2 form-group">
204
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
205
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
206
+ :options='$parent.$parent.meterbooks' placeholder='抄表册' style="width:60%" close-on-select
207
+ condition="f_meter_book_num = '{}'"></v-select>
208
+ </div>
209
+ <div class="col-sm-2 form-group">
210
+ <label class="font_normal_body">自动阀控</label>
211
+ <v-select placeholder='自动阀控' :value.sync="model.f_network_valve" style="width:60%"
212
+ v-model="model.f_network_valve" :options='$parent.$parent.networkvalves' close-on-select
213
+ condition="f_networkvalve='{}'">
214
+ </v-select>
215
+ </div>
216
+ <div class="col-sm-2 form-group">
217
+ <label class="font_normal_body">通&nbsp;气&nbsp;人&nbsp;</label>
218
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_gas_person"
219
+ condition="f_gas_person like '%{}%' " placeholder="通气人">
220
+ </div>
221
+ </div>
222
+ </div>
223
+ </criteria>
224
+
225
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy"
226
+ :classname="$parent.classname">
227
+ <template partial='head'>
228
+ <tr>
229
+ <th>
230
+ <!--<nobr>客户编号</nobr>-->
231
+ <data-order field="f_userinfo_code" name="客户编号"
232
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
233
+ </th>
234
+ <th>
235
+ <nobr>客户名称</nobr>
236
+ </th>
237
+ <th>
238
+ <nobr>档案编号</nobr>
239
+ </th>
240
+ <th>
241
+ <nobr>客户电话</nobr>
242
+ </th>
243
+ <th>
244
+ <nobr>备用电话</nobr>
245
+ </th>
246
+ <th>
247
+ <nobr>身份证号</nobr>
248
+ </th>
249
+ <th>
250
+ <!--<nobr>客户地址</nobr>-->
251
+ <data-order field="f_address" name="客户地址"
252
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
253
+ </th>
254
+ <th>
255
+ <nobr>表册片区</nobr>
256
+ </th>
257
+ <th>
258
+ <nobr>累购气量</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>累购金额</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>表上余额</nobr>
265
+ </th>
266
+ <th>
267
+ <nobr>客户类型</nobr>
268
+ </th>
269
+ <th v-if="titleShow">
270
+ <nobr>使用类型</nobr>
271
+ </th>
272
+ <th v-if="titleShow">
273
+ <nobr>用气性质</nobr>
274
+ </th>
275
+ <th>
276
+ <nobr>表号</nobr>
277
+ </th>
278
+ <th>
279
+ <nobr>卡号</nobr>
280
+ </th>
281
+
282
+
283
+ <th>
284
+ <nobr>气价名称</nobr>
285
+ </th>
286
+ <th>
287
+ <nobr>气价详情</nobr>
288
+ </th>
289
+ <th>
290
+ <nobr>气表品牌</nobr>
291
+ </th>
292
+ <th>
293
+ <nobr>气表型号</nobr>
294
+ </th>
295
+ <th>
296
+ <nobr>户管员</nobr>
297
+ </th>
298
+ <th>
299
+ <nobr>通气人</nobr>
300
+ </th>
301
+ <th>
302
+ <!--<nobr>通气时间</nobr>-->
303
+ <data-order field="f_gas_date" name="通气时间"
304
+ :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
305
+ </th>
306
+ <th>
307
+ <!--<nobr>建表时间</nobr>-->
308
+ <data-order field="f_input_date" name="建表时间"
309
+ :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
310
+ </th>
311
+ <th>
312
+ <nobr>气表状态</nobr>
313
+ </th>
314
+ <th>
315
+ <nobr>是否壁挂炉</nobr>
316
+ </th>
317
+ <th>
318
+ <nobr>自动阀控</nobr>
319
+ </th>
320
+ </tr>
321
+ </template>
322
+ <template partial='body'>
323
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
324
+ <nobr>
325
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{ row.f_userinfo_code }}</a></span>
326
+ </nobr>
327
+ </td>
328
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
329
+ <nobr>{{ row.f_user_name }}</nobr>
330
+ </td>
331
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
332
+ <nobr>{{ row.f_olduserinfo_code }}</nobr>
333
+ </td>
334
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
335
+ <nobr>{{ row.f_user_phone }}</nobr>
336
+ </td>
337
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
338
+ <nobr>{{ row.f_rent_phone }}</nobr>
339
+ </td>
340
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
341
+ <nobr>{{ row.idnumber }}</nobr>
342
+ </td>
343
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
344
+ <nobr>{{ row.f_address }}</nobr>
345
+ </td>
346
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
347
+ <nobr>{{ row.f_book_slice_area }}</nobr>
348
+ </td>
349
+ <td :class="row.f_table_state!== '正常' ? 'back-red' : 'back-blue'" style="...">
350
+ <nobr>{{ row.f_total_gas }}</nobr>
351
+ </td>
352
+ <td :class="row.f_table_state!== '正常' ? 'back-red' : 'back-blue'" style="...">
353
+ <nobr>{{ row.f_total_fee }}</nobr>
354
+ </td>
355
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
356
+ <nobr>{{ row.f_balance_amount }}</nobr>
357
+ </td>
358
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
359
+ <nobr>{{ row.f_user_type }}</nobr>
360
+ </td>
361
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;"
362
+ v-if="titleShow">
363
+ <nobr>{{ row.f_usetype }}</nobr>
364
+ </td>
365
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;"
366
+ v-if="titleShow">
367
+ <nobr>{{ row.f_gasproperties }}</nobr>
368
+ </td>
369
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
370
+ <nobr>{{ row.f_meternumber }}</nobr>
371
+ </td>
372
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
373
+ <nobr>{{ row.f_card_id }}</nobr>
374
+ </td>
375
+
376
+
377
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
378
+ <nobr>{{ row.f_price_name }}</nobr>
379
+ </td>
380
+ <th :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
381
+ <nobr>{{ row.value }}</nobr>
382
+ </th>
383
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
384
+ <nobr>{{ row.f_meter_brand }}</nobr>
385
+ </td>
386
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
387
+ <nobr>{{ row.f_meter_style }}</nobr>
388
+ </td>
389
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
390
+ <nobr>{{ row.f_inputtor }}</nobr>
391
+ </td>
392
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
393
+ <nobr>{{ row.f_gas_person }}</nobr>
394
+ </td>
395
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
396
+ <nobr>{{ row.f_gas_date }}</nobr>
397
+ </td>
398
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
399
+ <nobr>{{ row.f_input_date }}</nobr>
400
+ </td>
401
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
402
+ <nobr>{{ row.f_table_state }}</nobr>
403
+ </td>
404
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
405
+ <nobr>{{ row.isbgl }}</nobr>
406
+ </td>
407
+ <td :class="row.f_table_state !== '正常' ? 'back-red' : 'back-blue'" style="text-align: center;">
408
+ <nobr>{{ row.f_networkvalve }}</nobr>
409
+ </td>
410
+ </template>
411
+ <template partial='foot'>
412
+ </template>
413
+ </data-grid>
414
+ </criteria-paged>
415
+
416
+ <table class="table-hover">
417
+ <tr style="position: relative" class="table-bordered">
418
+ <td
419
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
420
+ 汇总信息
421
+ </td>
422
+ <td
423
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
424
+ 表上余额合计&emsp;{{ sumsmodel.f_balance_amount }}
425
+ </td>
426
+ </tr>
427
+ </table>
428
+
429
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
430
+ <!--<header slot="modal-header" class="modal-header text-center">-->
431
+ <!--<h4 class="modal-title">打印列选择</h4>-->
432
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
433
+ <!--<label for="f_generations" class="font-size">全选</label>-->
434
+ <!--</header>-->
435
+ <!--<article slot="modal-body">-->
436
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
437
+ <!--<div class="col-sm-3" v-for="f in fields">-->
438
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
439
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
440
+ <!--</div>-->
441
+ <!--</div>-->
442
+ <!--</article>-->
443
+ <!--<footer slot="modal-footer" class="modal-footer">-->
444
+ <!--<center>-->
445
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
446
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
447
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
448
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
449
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
450
+ <!--:fields="modelval" :printpage="true">-->
451
+ <!--</print-table>-->
452
+ <!--</center>-->
453
+ <!--</footer>-->
454
+ <!--</modal>-->
455
+ </div>
456
+ <div class="flex" v-if="show">
457
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
458
+ @cancel-main="cancel"></user-info-detail-manage-new>
459
+ </div>
460
+ </div>
461
+ </div>
462
+ </div>
463
+ <high-meter-idcard :show.sync="false" v-ref:highcard></high-meter-idcard>
464
+ </template>
465
+
466
+ <script>
467
+ import {PagedList} from 'vue-client'
468
+ import exportConfig from './config/exportConfig'
469
+
470
+ let cardBtnGen = async function (self, val) {
471
+ self.cardInfo = val.data
472
+
473
+ // 判断读卡是否需要卡密码
474
+ console.log('读卡上的信息', self.cardInfo)
475
+
476
+ if (self.cardInfo.NewParam) {
477
+ if (self.cardInfo.NewParam.error) {
478
+ if (self.cardInfo.NewParam.error === '0001') {
479
+ // 需要重新读卡并传卡密码
480
+ if (self.model.rows.length == 1 && self.model.rows[0].f_alias === self.cardInfo.Factory) {
481
+ self.readCardParam = self.model.rows[0].f_card_password
482
+ self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
483
+ } else {
484
+ self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
485
+ return
486
+ }
487
+ }
488
+ }
489
+ }
490
+ self.card = self.cardInfo.CardID
491
+ self.search()
492
+ }
493
+
494
+ let readySomething = async function (self) {
495
+ self.$MagGetSaleParam.initinputtor();
496
+ self.getinputtores();
497
+ self.initmeterbook();
498
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
499
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
500
+ // await self.$refs.paged.$refs.cri.search()
501
+ await self.$MagLoadParams.loadParam()
502
+ self.initParams()
503
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
504
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
505
+ }
506
+
507
+ export default {
508
+ title: '表具查询',
509
+ data() {
510
+ return {
511
+ IdCardInfo: '',
512
+ titleShow: true,
513
+ card: '',
514
+ isSingleUser: null,
515
+ other: [],
516
+ footer: [],
517
+ model: new PagedList('api/af-revenue/sql/meterQuery', 20, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
518
+ criteriaShow: false,
519
+ orgCondtionStr: '',
520
+
521
+ modelval: [],
522
+ printshow: false,
523
+ all: false,
524
+ fields: {},
525
+ //排序
526
+ orderitem: 'f_user_id,f_table_state desc',
527
+ orderFields: {
528
+ f_userinfo_id: 'no'
529
+ },
530
+ thead: '',
531
+ tfoot: '',
532
+ initres: {
533
+ org: [this.$login.f.orgid],
534
+ dep: [],
535
+ user: [],
536
+ },
537
+ show: false,
538
+ rowdata: {},
539
+ meterbrands: [],
540
+ // 气表型号
541
+ meterstyle: {},
542
+ //默认打印列
543
+ defaultfield: [],
544
+ config: {
545
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
546
+ },
547
+ pricenames: [],
548
+ gasproperties: [],
549
+ inputtouPerson: [],
550
+ meterbooks: [{label: '全部', value: ''}], //抄表册
551
+ prices: [],
552
+ //合计数据
553
+ sumsmodel: {},
554
+ //表册片区
555
+ bookSlice: [{label: '全部', value: ''}],
556
+ inputtores: [{label: '全部', value: ''}], //抄表员
557
+ f_filialeid: this.$login.f.f_orgid,
558
+ allorgid: [],
559
+ tempfalg: false,
560
+ lastorgstr: '',
561
+ issecond: [{label: '是', value: " = '二次挂表'"}, {label: '否', value: " <> '二次挂表'"}],
562
+ usetype: this.$appdata.getParam('使用类型'),
563
+ networkvalves: this.$appdata.getParam('自动阀控') ? [{
564
+ label: '全部',
565
+ value: ''
566
+ }, ...this.$appdata.getParam('自动阀控')] : [],
567
+ }
568
+ },
569
+ ready() {
570
+ console.log("===========", this.$filialeInfo)
571
+ this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null ? true : this.$appdata.getSingleValue('是否显示筛选框')
572
+ readySomething(this).then(() => {
573
+ this.$emit('ready')
574
+ }).catch((error) => {
575
+ this.$emit('error', error)
576
+ })
577
+ },
578
+ methods: {
579
+ ReadIDCard() {
580
+ this.$refs.highcard.sendMsg(this.$refs.highcard.CLT_MSG.READ_IDCARD, (msg) => {
581
+ console.log('======', msg)
582
+ if (msg.err !== 0) {
583
+ return
584
+ }
585
+ this.IdCardInfo = msg.strID
586
+ })
587
+ console.log(this.IdCardInfo)
588
+ if (this.IdCardInfo) {
589
+ this.search()
590
+ } else {
591
+ alert("读取失败,找不到用户信息")
592
+ }
593
+ },
594
+ cardBtn(val) {
595
+ // this.clear()
596
+ cardBtnGen(this, val)
597
+ },
598
+ async initmeterbook(orgstr) {
599
+ if (orgstr == null) {
600
+ orgstr = this.f_filialeid;
601
+ }
602
+ //获取新的抄表册,先去清理所有的抄表册
603
+ this.$GetSaleParam.meterbooks = [];
604
+ //开始加载新的抄表册
605
+ await this.$LoadParams.loadMeterBook(orgstr)
606
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
607
+ },
608
+ async getinputtores() {
609
+ // 获取抄表员
610
+ let rs = []
611
+ if (this.$login.f.f_gasman.length > 0) {
612
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
613
+ let temp = {
614
+ label: this.$login.f.f_gasman[i].name,
615
+ value: this.$login.f.f_gasman[i].name
616
+ }
617
+ rs.push(temp)
618
+ }
619
+ }
620
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
621
+ },
622
+ getotherfooter() {
623
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
624
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
625
+ this.other = [];
626
+ this.footer = [];
627
+ let exportdata = this.getCondition;
628
+ let otherInData = [];
629
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
630
+ let footerData = [], exportfield = this.getExportField;
631
+ footerData.push("合计");
632
+ let self = this;
633
+ for (var field in self.sumsmodel) {
634
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
635
+ }
636
+ this.footer.push(footerData);
637
+ this.other.push(otherInData);
638
+ },
639
+ search() {
640
+ this.$refs.paged.$refs.cri.search()
641
+ },
642
+ cancel() {
643
+ this.show = false
644
+ },
645
+ showmsg(obj) {
646
+ this.rowdata = obj
647
+ this.show = true
648
+ },
649
+ selfSearch(args) {
650
+ //抄表员查询条件
651
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
652
+ if (this.inputtouPerson.length !== 0) {
653
+ let str = JSON.stringify(this.inputtouPerson)
654
+ str = str.replace(/"/g, `'`)
655
+ str = str.replace(/\[/g, ``)
656
+ str = str.replace(/\]/g, ``)
657
+ console.log("=====抄表员model22222222222绑定====", str)
658
+ //查询多个抄表员时条件
659
+ args.condition += ` and f_inputtor in ( ${str} )`
660
+ }
661
+ if (!this.orgCondtionStr) {
662
+ args.condition = `${args.condition}` + " and f_orgid = " + this.$login.f.orgid
663
+ } else {
664
+ args.condition = `${args.condition}` + this.orgCondtionStr
665
+ }
666
+ if (this.card != '') {
667
+ args.condition += ` and f_card_id='${this.card}'`
668
+ }
669
+ if (this.IdCardInfo != '') {
670
+ args.condition += ` and f_idnumber='${this.IdCardInfo}'`
671
+ }
672
+ this.model.search(args.condition, args.model)
673
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
674
+ this.card = ''
675
+ this.IdCardInfo = ''
676
+ },
677
+ clear() {
678
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
679
+ this.$refs.paged.$refs.cri.model[key] = []
680
+ })
681
+ },
682
+ hidden() {
683
+ this.criteriaShow = !this.criteriaShow
684
+ },
685
+ async getRes(condition) {
686
+ this.orgCondtionStr = condition
687
+
688
+ },
689
+ stamp() {
690
+ this.all = false
691
+ //默认选择要打印的列
692
+ this.modelval = defaultPrint.config
693
+ this.fields = this.getfield
694
+ console.log('所有打印字段', this.fields)
695
+ this.printshow = true
696
+ this.put()
697
+ },
698
+ put() {
699
+ // 对Modelval进行排序
700
+ this.sortModelval()
701
+ this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
702
+ for (let key of this.modelval) {
703
+ this.thead += '<th>' + this.fields[key] + '</th>'
704
+ }
705
+ this.thead += '</tr>'
706
+ },
707
+ print() {
708
+ this.$refs.print.PrintAsFile()
709
+ this.printshow = false
710
+ },
711
+ close() {
712
+ this.printshow = false
713
+ this.all = false
714
+ },
715
+ userTypeChange() {
716
+ this.gasproperties = []
717
+ if (this.$refs.paged.$refs.cri.model !== null) {
718
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
719
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
720
+ } else {
721
+ this.gasproperties = [{label: '全部', value: ''}]
722
+ }
723
+ },
724
+ initParams() {
725
+ // 初始化气表品牌
726
+ let brandArr = []
727
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
728
+ let temp = {}
729
+ temp.label = item.label
730
+ temp.value = item.value.f_meter_brand
731
+ brandArr.push(temp)
732
+ // 取出对应气表型号
733
+ let styleArr = []
734
+ for (let row of item.value.gasmodel) {
735
+ styleArr.push({label: row.label, value: row.value.f_meter_style})
736
+ }
737
+ this.meterstyle[temp.value] = styleArr
738
+ })
739
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
740
+ //初始化气表价格
741
+ this.prices = this.$MagGetSaleParam.getPrices();
742
+ },
743
+ // 对选择的列进行排序
744
+ sortModelval() {
745
+ let sortModel = []
746
+ Object.keys(this.fields).forEach((key) => {
747
+ if (this.modelval.includes(key)) {
748
+ sortModel.push(key)
749
+ }
750
+ })
751
+ this.modelval = sortModel
752
+ console.log('选择的打印的字段', this.modelval)
753
+ },
754
+ async updateParams() {
755
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
756
+ this.inputtores = [];
757
+ this.inputtores.push({label: "全部", value: ""})
758
+ this.initSlice(this.f_filialeid)
759
+ if (this.allorgid != null) {
760
+ this.allorgid.forEach((res) => {
761
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
762
+ })
763
+ }
764
+ },
765
+ async initSlice(val) {
766
+ if (val) {
767
+ let getAllArea = await this.$resetpost('/rs/search', {
768
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
769
+ userid: this.$login.f.id
770
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
771
+ let arr = getAllArea.data.filter((res) => {
772
+ return res.parentid == val
773
+ })
774
+ this.bookSlice = []
775
+ console.log('过滤之后的片区-------------------', arr)
776
+ arr.forEach((res) => {
777
+ this.bookSlice.push({label: res.name, value: res.name})
778
+ })
779
+ }
780
+ },
781
+ sort(field, rule) {
782
+ // 将所有排序方式设为不排序,实现相互排斥
783
+ for (let key in this.orderFields) {
784
+ if (key === field) {
785
+ this.orderFields[key] = rule
786
+ } else {
787
+ this.orderFields[key] = 'no'
788
+ }
789
+ }
790
+ // 如果新规则不排序,还原为默认排序
791
+ if (rule === 'no') {
792
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
793
+ } else {
794
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
795
+ }
796
+
797
+ this.search()
798
+ }
799
+ },
800
+ watch: {
801
+ 'model.rows.length'() {
802
+ this.isSingleUser = this.model.rows
803
+ },
804
+ 'all'(val) {
805
+ if (val) {
806
+ this.modelval = this.bodyData
807
+ } else {
808
+ this.modelval = defaultPrint.config
809
+ this.put()
810
+ }
811
+ },
812
+ sumsmodel: {
813
+ handler: function (val) {
814
+ this.getotherfooter();
815
+ },
816
+ deep: true
817
+ },
818
+ 'modelval.length'() {
819
+ this.put()
820
+ },
821
+ async 'orgCondtionStr'(val) {
822
+ //更新抄表册
823
+ this.meterbooks = [{label: '全部', value: ''}];
824
+ if (this.lastorgstr != val) {
825
+ this.tempfalg = true;
826
+ this.lastorgstr = val;
827
+ }
828
+ if (this.tempfalg && val != null && val != '' && val.indexOf("(") > -1) {
829
+ this.tempfalg = false;
830
+ let a = val.substring(val.indexOf("(") + 2)
831
+ await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
832
+ }
833
+ let res = val.match(/'(.*?)'/)
834
+ console.log('正则提取:', res && res[1])
835
+ if (res) {
836
+ this.f_filialeid = res[1]
837
+ if (res.input != null) {
838
+ let resorgid = res.input.substring(res.input.indexOf("'"));
839
+ if (resorgid != null && resorgid != '') {
840
+ resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
841
+ // resorgid = resorgid.replaceAll("'","");
842
+ resorgid = resorgid.replace(/'/g, "");
843
+ this.allorgid = resorgid.split(",")
844
+ }
845
+ }
846
+ this.updateParams()
847
+ }
848
+ }
849
+ },
850
+ computed: {
851
+ authArr() {
852
+ return this.$login.r ? this.$login.r : []
853
+ },
854
+ getPricenames() {
855
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
856
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
857
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
858
+ // console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
859
+ if (this.$refs.paged.$refs.cri.model !== null) {
860
+ let rs = []
861
+ let priceArr = []
862
+ if (pricetype.length > 0) {
863
+ let params = {
864
+ f_price_type: pricetype[0],
865
+ filter: this.f_filialeid,
866
+ prices: this.prices
867
+ }
868
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
869
+ let temp = {}
870
+ temp.label = item.label
871
+ temp.value = item.value.f_price_name
872
+ priceArr.push(temp)
873
+ })
874
+ rs = [{label: '全部', value: ''}, ...priceArr]
875
+ }
876
+ if (rs.length === 0) {
877
+ console.log('rs读出来是空')
878
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
879
+ }
880
+ return rs
881
+ }
882
+ },
883
+ getCondition() {
884
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr, orderitem: this.orderitem}
885
+ },
886
+ getfield() {
887
+ let data = {}
888
+ this.bodyData.forEach((value, index) => {
889
+ data[this.bodyData[index]] = this.headData[index]
890
+ })
891
+ //合计字段打印
892
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
893
+ if (this.sumsmodel) {
894
+ Object.keys(this.sumsmodel).forEach((key) => {
895
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
896
+ })
897
+ } else {
898
+ this.tfoot += '暂无'
899
+ }
900
+ this.tfoot += '</th></tr>'
901
+ return data
902
+ },
903
+ getExportField() {
904
+ return exportConfig.meterConfig
905
+ },
906
+ areas() {
907
+ let rs = []
908
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
909
+ let temp = {
910
+ label: this.$login.f.f_allArea[i].label,
911
+ value: this.$login.f.f_allArea[i].label
912
+ }
913
+ rs.push(temp)
914
+ }
915
+ return [{label: '全部', value: ''}, ...rs]
916
+ },
917
+ sliceArea() {
918
+ let rs = []
919
+ if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
920
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
921
+ if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
922
+ rs = this.$login.f.f_allArea[i].value
923
+ }
924
+ }
925
+ }
926
+ return [{label: '全部', value: ''}, ...rs]
927
+ },
928
+ usertypes() {
929
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
930
+ },
931
+ // gasproperties() {
932
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
933
+ // },
934
+
935
+ metertypes() {
936
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
937
+ },
938
+ // meterbrands() {
939
+ // let arr = []
940
+ // this.$MagGetSaleParam.getGasbrand().forEach((item) => {
941
+ // let temp = {}
942
+ // temp.label = item.label
943
+ // temp.value = item.value.f_meter_brand
944
+ // arr.push(temp)
945
+ // })
946
+ // return [{label: '全部', value: ''}, ...arr]
947
+ // },
948
+ pricetypes() {
949
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
950
+ },
951
+ tablestate() {
952
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
953
+ },
954
+ bgl() {
955
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
956
+ },
957
+ usergrade() {
958
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
959
+ },
960
+ usestate() {
961
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用状态')]
962
+ }
963
+ }
964
+ }
965
+ </script>
966
+ <style>
967
+ .back-red {
968
+ /* 红色背景 */
969
+ background-color: #F6C6CE;
970
+ }
971
+
972
+ .back-blue {
973
+ /* 蓝色背景 */
974
+
975
+ }
976
+ </style>
@@ -145,6 +145,7 @@ export default {
145
145
  'idnumber': '身份证号',
146
146
  'f_address': '客户地址',
147
147
  'f_book_slice_area': '表册片区',
148
+ 'f_total_fee': '累购金额',
148
149
  'f_balance_amount': '表上余额',
149
150
  'f_user_type': '客户类型',
150
151
  'f_usetype': '使用类型',
@@ -31,6 +31,10 @@ export default function () {
31
31
  Vue.component('webmeter-query', (resolve) => {
32
32
  require(['./WebmeterQuery'], resolve)
33
33
  })
34
+ // 表具查询
35
+ Vue.component('meter-query', (resolve) => {
36
+ require(['./MeterQuery'], resolve)
37
+ })
34
38
  // 用户失联
35
39
  Vue.component('user-lost-contact-analysis', (resolve) => { require(['./UserLostContactAnalysis'], resolve) })
36
40
  }
@@ -501,7 +501,7 @@
501
501
  <!--<nobr>{{row.f_balance_gas}}</nobr>-->
502
502
  <!--</td>-->
503
503
  <td style="text-align: center;" :class="row.f_table_state !== '正常' || row.f_user_state !== '正常' ? 'bg-red' : ''" >
504
- <nobr>{{$parent.$parent.$parent.trouble(row.f_defect_content)}}</nobr>
504
+ <nobr>{{row.f_defect_content}}</nobr>
505
505
  </td>
506
506
  <td style="text-align: center;" :class="row.f_table_state !== '正常' || row.f_user_state !== '正常' ? 'bg-red' : ''" >
507
507
  <nobr>{{row.f_complete}}</nobr>
@@ -653,30 +653,6 @@
653
653
  },
654
654
  methods: {
655
655
  //转换json数值
656
- trouble(val) {
657
- if(val === '无问题'){
658
- return '无问题'
659
- }
660
- if(val === '未知') {
661
- return '未知'
662
- }
663
- const defect_content = JSON.parse(val)
664
- let result = ''
665
- if(defect_content.result === '正常'){
666
- return '无问题'
667
- }
668
- if (defect_content.data) {
669
- const jsonData = defect_content.data
670
- for (const itemdata of jsonData) {
671
- const keys = Object.keys(itemdata)
672
- for (const itm of keys) {
673
- const value = itemdata[itm]
674
- result += itm + ':' + value
675
- }
676
- }
677
- }
678
- return result
679
- },
680
656
  async dealmsg(row,id,type){
681
657
  this.titles = type+'变更记录'
682
658
  this.filechangeHistorys.rows = []
package/src/main.js CHANGED
@@ -6,8 +6,8 @@ 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/beifangshiye/reportManage'
10
- // import ShanXianwebSaleManage from './filiale/rongcheng/webmeterManage'
9
+ import ShanXianSaleManage from './filiale/qingjian/sale'
10
+ import ShanXianwebSaleManage from './filiale/qingjian/webmeterManage'
11
11
  import webmeterManage from './webmeterManage'
12
12
  import reportManage from './reportManage'
13
13
  import newmanage from './newmanage'
@@ -51,6 +51,7 @@ ManageHome()
51
51
  newmanage()
52
52
  ShanXianSaleManage()
53
53
  reportManage()
54
+ ShanXianwebSaleManage()
54
55
  // ShanXianSaleManage()
55
56
  require('system-clients/src/styles/less/bootstrap.less')
56
57
  require('./components/qinhua/Style/qinhuaStyle.less')