manage-client 3.2.42 → 3.2.43

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.
Files changed (111) hide show
  1. package/build/dev-server.js +8 -26
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/ChargePrick.vue +205 -205
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  8. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  9. package/src/components/SellReport/NonResidentGas.vue +203 -203
  10. package/src/components/SellReport/OutletTable.vue +258 -258
  11. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  12. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  13. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  14. package/src/components/SellReport/SellingTable.vue +220 -220
  15. package/src/components/SellReport/UserSellingGas.vue +228 -228
  16. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  17. package/src/components/daping/GMap.vue +636 -636
  18. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  19. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  20. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  21. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -380
  22. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  23. package/src/components/sale/businessquery/BusinessManage.vue +6 -1
  24. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  25. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  26. package/src/components/sale/businessquery/CollectManage.vue +138 -138
  27. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  28. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  29. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  30. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  31. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  32. package/src/components/sale/businessquery/GasLossQuery.vue +561 -0
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  35. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  36. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  37. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  38. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  39. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  40. package/src/components/sale/businessquery/gasPriceQuery.vue +365 -0
  41. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  42. package/src/components/sale/businessquery/usergas.vue +311 -311
  43. package/src/components/sale/config/exportConfig.js +10 -0
  44. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  45. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  46. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  47. package/src/components/statistical/DendrogramManage.vue +239 -239
  48. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  49. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  50. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  51. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  53. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  54. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  55. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  56. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  57. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  58. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  59. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  60. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  61. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  62. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  63. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  64. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  65. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  66. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  67. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  68. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  69. package/src/filiale/WEINAN/reportManage.js +12 -12
  70. package/src/filiale/WEINAN/sale.js +36 -36
  71. package/src/filiale/alashan/reportManage.js +10 -10
  72. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  73. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  74. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  75. package/src/filiale/macheng/MeterQuery.vue +12 -0
  76. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  77. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  78. package/src/filiale/pingxiang/sale.js +9 -9
  79. package/src/filiale/qianneng/OtherChargeDetailQuery.vue +74 -0
  80. package/src/filiale/qianneng/OtherChargeQuery.vue +634 -0
  81. package/src/filiale/qianneng/sale.js +9 -0
  82. package/src/filiale/qingtongxia/sale.js +13 -13
  83. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  84. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  85. package/src/filiale/rongchuang/reportManage.js +11 -11
  86. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  87. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  88. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  89. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  90. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  91. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  92. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  93. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  94. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  95. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  96. package/src/filiale/tongchuan/reportManage.js +5 -5
  97. package/src/filiale/wuhai/ChargeQuery.vue +19 -16
  98. package/src/filiale/zhongsheng/ChargeQuery.vue +1255 -1255
  99. package/src/filiale/zhongsheng/config/exportConfig.js +899 -899
  100. package/src/filiale/zhongsheng/sale.js +10 -10
  101. package/src/main.js +3 -3
  102. package/src/saleManage.js +9 -0
  103. package/static/wuhai.json +1610 -1610
  104. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  105. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  106. package/.gradle/5.4.1/gc.properties +0 -0
  107. package/src/.idea/misc.xml +0 -9
  108. package/src/.idea/modules.xml +0 -8
  109. package/src/.idea/src.iml +0 -9
  110. package/src/.idea/vcs.xml +0 -6
  111. package/src/.idea/workspace.xml +0 -93
@@ -1,451 +1,451 @@
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
-
6
- <criteria-paged :model="model" v-ref:paged>
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 for="startDate" class="font_normal_body" title="停用时间">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operate_date >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body" title="停用时间">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date <= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition=" f_user_name like '%{}%'" placeholder='客户名称'>
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
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- :header="$parent.$parent.other"
49
- sqlurl="rs/logic/exportfile" sql-name="disableQuery" template-name='停用查询导出'
50
- :choose-col="true"></export-excel>
51
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
- :defaultfield="$parent.$parent.defaultfield"
53
- titletable="停用记录"
54
- :sumsmodel="$parent.$parent.sumsmodel"></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
-
59
- <div class="row" v-show="$parent.$parent.criteriaShow">
60
- <div class="col-sm-2 form-group">
61
- <label class="font_normal_body">客户电话</label>
62
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
63
- condition=" f_user_phone like '%{}%'" placeholder='客户电话'>
64
- </div>
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body">客户地址</label>
67
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
68
- condition="f_address like '%{}%'" placeholder='客户地址'>
69
- </div>
70
- <!--<div class="col-sm-2 form-group">-->
71
- <!--<label class="font_normal_body">操作类型</label>-->
72
- <!--<v-select :value.sync="model.f_operat_type"-->
73
- <!--v-model="model.f_operat_type" multiple-->
74
- <!--:options='$parent.$parent.operattype' placeholder='请选择'-->
75
- <!--condition="f_operat_type = '{}'"-->
76
- <!--close-on-select></v-select>-->
77
- <!--</div>-->
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">表&emsp;&emsp;号</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
81
- condition="f_meternumber = '{}'" placeholder='表号'>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
86
- condition="f_card_id = '{}'" placeholder='卡号'>
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body">停用原因</label>
90
- <v-select :value.sync="model.f_disable_reason"
91
- v-model="model.f_disable_reason" multiple
92
- :options='$parent.$parent.disablereason' placeholder='请选择'
93
- condition="f_disable_reason in {}"
94
- close-on-select></v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">其他原因</label>
98
- <input type="text" style="width:60%" class="input_search" v-model="model.f_othereason"
99
- condition="f_othereason like '%{}%'" placeholder='其他原因'>
100
- </div>
101
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
102
- </div>
103
- <div class="row">
104
- <div class="col-sm-2 form-group">
105
- <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
106
- <v-select class="select_list select"
107
- v-model="model.f_residential_area"
108
- :value.sync="model.f_residential_area"
109
- :options='$parent.$parent.residentialarea'
110
- style="width: 60%"
111
- placeholder='选择小区'
112
- condition="f_residential_area = '{}'"
113
- close-on-select>
114
-
115
- </v-select>
116
- </div>
117
- <div class="col-sm-2 form-group">
118
- <label class="font_normal_body">具体地址</label>
119
- <div class="btn-group select_list select" style="width: 60%;">
120
- <input type="text" style="width: 27%;" placeholder="楼号" class="input_search" v-model="model.f_building" condition="f_building = '{}'"/>&nbsp;-&nbsp;
121
- <input type="text" style="width: 20%;" placeholder="单元" class="input_search" v-model="model.f_unit" condition="f_unit = '{}'"/>&nbsp;-&nbsp;
122
- <input type="text" style="width: 36%;" placeholder="室号" class="input_search" v-model="model.f_room" condition="f_room = '{}'" />
123
- </div>
124
- </div>
125
- </div>
126
- </div>
127
- </criteria>
128
-
129
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
130
- <template partial='head'>
131
- <tr>
132
- <th>
133
- <nobr>客户编号</nobr>
134
- </th>
135
- <th>
136
- <nobr>客户名称</nobr>
137
- </th>
138
- <th>
139
- <nobr>客户类型</nobr>
140
- </th>
141
- <th>
142
- <nobr>联系电话</nobr>
143
- </th>
144
- <th>
145
- <nobr>客户电话</nobr>
146
- </th>
147
- <th>
148
- <nobr>用气点名称</nobr>
149
- </th>
150
- <th>
151
- <nobr>客户地址</nobr>
152
- </th>
153
- <th>
154
- <nobr>停用原因</nobr>
155
- </th>
156
- <th>
157
- <nobr>其他原因</nobr>
158
- </th>
159
- <th>
160
- <nobr>状态</nobr>
161
- </th>
162
- <th>
163
- <nobr>停用日期</nobr>
164
- </th>
165
- <th>
166
- <nobr>操作类型</nobr>
167
- </th>
168
- <th>
169
- <nobr>人员</nobr>
170
- </th>
171
- <th>
172
- <nobr>部门</nobr>
173
- </th>
174
- <th>
175
- <nobr>公司</nobr>
176
- </th>
177
- <th><nobr>附件</nobr></th>
178
- </tr>
179
- </template>
180
- <template partial='body'>
181
- <td style="text-align: center;">
182
- <nobr>
183
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
184
- </td>
185
- <td style="text-align: center;">
186
- <nobr>{{row.f_user_name}}</nobr>
187
- </td>
188
- <td style="text-align: center;">
189
- <nobr>{{row.f_user_type}}</nobr>
190
- </td>
191
- <td style="text-align: center;">
192
- <nobr>{{row.f_user_phone}}</nobr>
193
- </td>
194
- <td style="text-align: center;">
195
- <nobr>{{row.cy_lxr}}</nobr>
196
- </td>
197
- <td style="text-align: center;">
198
- <nobr>{{row.f_userfiles_address}}</nobr>
199
- </td>
200
- <td style="text-align: center;">
201
- <nobr>{{row.f_address}}</nobr>
202
- </td>
203
- <td style="text-align: center;">
204
- <nobr>{{row.f_disable_reason}}</nobr>
205
- </td>
206
- <td style="text-align: center;">
207
- <nobr>{{row.f_othereason}}</nobr>
208
- </td>
209
- <td style="text-align: center;">
210
- <nobr>{{row.f_state}}</nobr>
211
- </td>
212
- <td style="text-align: center;">
213
- <nobr>{{row.f_operate_date}}</nobr>
214
- </td>
215
- <td style="text-align: center;">
216
- <nobr>{{row.f_operat_type}}</nobr>
217
- </td>
218
- <td style="text-align: center;">
219
- <nobr>{{row.f_operator}}</nobr>
220
- </td>
221
- <td style="text-align: center;">
222
- <nobr>{{row.f_depname}}</nobr>
223
- </td>
224
- <td style="text-align: center;">
225
- <nobr>{{row.f_orgname}}</nobr>
226
- </td>
227
- <td style="text-align: center;"><nobr>
228
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
229
- </nobr></td>
230
- </template>
231
- <template partial='foot'></template>
232
- </data-grid>
233
- </criteria-paged>
234
-
235
- <!-- <table class="table-hover">-->
236
- <!-- <tr style="position: relative" class="table-bordered">-->
237
- <!-- <td-->
238
- <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
239
- <!-- 汇总信息-->
240
- <!-- </td>-->
241
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
242
- <!-- </tr>-->
243
- <!-- </table>-->
244
- </div>
245
- <div class="flex" v-if="show">
246
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
247
- </div>
248
- </div>
249
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
250
- <article slot="modal-body">
251
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="停用" :isremark="false" style="width:auto" ></upload>
252
- </article>
253
- <footer slot="modal-footer" class="modal-footer">
254
- </footer>
255
- </modal>
256
- </div>
257
- </template>
258
-
259
- <script>
260
- import {PagedList} from 'vue-client'
261
- import defaultPrint from '../config/DefaultPrint'
262
- import exportConfig from '../config/exportConfig'
263
-
264
- let readySomething = async function (self) {
265
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
266
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
267
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
268
- // await self.$refs.paged.$refs.cri.search()
269
- //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
270
- await self.$MagLoadParams.loadParam()
271
-
272
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
273
- }
274
- export default {
275
- props:['data','residentialarea'],
276
- title: '停用查询',
277
- data() {
278
- return {
279
- data: {},
280
- other: [],
281
- footer: [],
282
- model: new PagedList('rs/sql/disableQuery', 20, {}),
283
- criteriaShow: false,
284
- headData: ["客户编号", "客户名称", "操作人", "操作日期", "停用状态", "停用原因", "其他停用原因", "同步状态"],
285
- bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
286
- orgCondtionStr: '',
287
- show:false,
288
- rowdata:{},
289
- modelval: [],
290
- printshow: false,
291
- all: false,
292
- fields: {},
293
- config: {
294
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_othereason', 'f_state', 'f_operate_date', 'f_operat_type', 'f_operator']
295
- },
296
- thead: '',
297
- showupload:false,
298
- selected:{},
299
- //默认打印列
300
- defaultfield: [],
301
- tfoot: '',
302
- initres: {
303
- org:[this.$login.f.orgid],
304
- dep:[],
305
- user:[],
306
- },
307
- //合计数据
308
- sumsmodel: {},
309
- operattype:[{label: '全部', value: ''},{label: '停用', value: '停用'},{label: '拆表', value: '拆表'}]
310
- }
311
- },
312
- ready() {
313
- readySomething(this).then(() => {
314
- this.$emit('ready')
315
- }).catch((error) => {
316
- this.$emit('error', error)
317
- })
318
- },
319
- methods: {
320
- view(row){
321
- this.showupload = true
322
- this.selected= row
323
- },
324
- getotherfooter() {
325
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
326
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
327
- this.other = [];
328
- this.footer = [];
329
- let exportdata = this.getCondition;
330
- let otherInData = [];
331
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
332
- let footerData = [], exportfield = this.getfield;
333
- footerData.push("合计");
334
- let self = this;
335
- for (var field in self.sumsmodel) {
336
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
337
- }
338
- this.footer.push(footerData);
339
- this.other.push(otherInData);
340
- },
341
- search(){
342
- this.$refs.paged.$refs.cri.search()
343
- },
344
- selfSearch(args) {
345
- if (this.data) {
346
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
347
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
348
- }
349
- args.condition = `${args.condition}` + this.orgCondtionStr
350
- this.model.search(args.condition, args.model)
351
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
352
- },
353
- clear() {
354
- //清空部门和人员
355
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
356
- //部门和人员变为全选
357
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
358
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
359
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
360
- this.$refs.paged.$refs.cri.model[key] = []
361
- })
362
- },
363
- show() {
364
- this.criteriaShow = true
365
- },
366
- hidden() {
367
- this.criteriaShow = !this.criteriaShow
368
- },
369
- getRes(obj) {
370
- this.orgCondtionStr = obj
371
- },
372
- stamp() {
373
- this.all = false
374
- //默认选择要打印的列
375
- this.modelval = defaultPrint.config
376
- this.fields = this.getfield
377
- console.log('所有打印字段', this.fields)
378
- this.printshow = true
379
- this.put()
380
- },
381
- put() {
382
- // 对Modelval进行排序
383
- this.sortModelval()
384
- this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
385
- for (let key of this.modelval) {
386
- this.thead += '<th>' + this.fields[key] + '</th>'
387
- }
388
- this.thead += '</tr>'
389
- },
390
- cancel() {
391
- this.show = false
392
- },
393
- dealmsg(val) {
394
- console.log('---------------dealmsg')
395
- this.rowdata=val
396
- this.show=true
397
- val.model = this.model.model
398
- this.$dispatch('deal-msg', val)
399
- },
400
- print() {
401
- this.$refs.print.PrintAsFile()
402
- this.printshow = false
403
- },
404
- close() {
405
- this.printshow = false
406
- this.all = false
407
- },
408
- // 对选择的列进行排序
409
- sortModelval() {
410
- let sortModel = []
411
- Object.keys(this.fields).forEach((key) => {
412
- if (this.modelval.includes(key)) {
413
- sortModel.push(key)
414
- }
415
- })
416
- this.modelval = sortModel
417
- console.log('选择的打印的字段', this.modelval)
418
- }
419
- },
420
- watch: {
421
- 'all'(val) {
422
- if (val) {
423
- this.modelval = this.bodyData
424
- } else {
425
- this.modelval = defaultPrint.config
426
- this.put()
427
- }
428
- },
429
- sumsmodel: {
430
- handler: function (val) {
431
- this.getotherfooter();
432
- },
433
- deep: true
434
- },
435
- 'modelval.length'() {
436
- this.put()
437
- },
438
- },
439
- computed: {
440
- getCondition() {
441
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
442
- },
443
- getfield() {
444
- return exportConfig.disableConfig
445
- },
446
- disablereason () {
447
- return this.$appdata.getParam('停用原因')
448
- }
449
- }
450
- }
451
- </script>
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
+
6
+ <criteria-paged :model="model" v-ref:paged>
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 for="startDate" class="font_normal_body" title="停用时间">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body" title="停用时间">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label class="font_normal_body">客户名称</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
+ condition=" f_user_name like '%{}%'" placeholder='客户名称'>
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
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :header="$parent.$parent.other"
49
+ sqlurl="rs/logic/exportfile" sql-name="disableQuery" template-name='停用查询导出'
50
+ :choose-col="true"></export-excel>
51
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
+ :defaultfield="$parent.$parent.defaultfield"
53
+ titletable="停用记录"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></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
+
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户电话</label>
62
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
63
+ condition=" f_user_phone like '%{}%'" placeholder='客户电话'>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">客户地址</label>
67
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
68
+ condition="f_address like '%{}%'" placeholder='客户地址'>
69
+ </div>
70
+ <!--<div class="col-sm-2 form-group">-->
71
+ <!--<label class="font_normal_body">操作类型</label>-->
72
+ <!--<v-select :value.sync="model.f_operat_type"-->
73
+ <!--v-model="model.f_operat_type" multiple-->
74
+ <!--:options='$parent.$parent.operattype' placeholder='请选择'-->
75
+ <!--condition="f_operat_type = '{}'"-->
76
+ <!--close-on-select></v-select>-->
77
+ <!--</div>-->
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
81
+ condition="f_meternumber = '{}'" placeholder='表号'>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
86
+ condition="f_card_id = '{}'" placeholder='卡号'>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">停用原因</label>
90
+ <v-select :value.sync="model.f_disable_reason"
91
+ v-model="model.f_disable_reason" multiple
92
+ :options='$parent.$parent.disablereason' placeholder='请选择'
93
+ condition="f_disable_reason in {}"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">其他原因</label>
98
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_othereason"
99
+ condition="f_othereason like '%{}%'" placeholder='其他原因'>
100
+ </div>
101
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
102
+ </div>
103
+ <div class="row">
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
106
+ <v-select class="select_list select"
107
+ v-model="model.f_residential_area"
108
+ :value.sync="model.f_residential_area"
109
+ :options='$parent.$parent.residentialarea'
110
+ style="width: 60%"
111
+ placeholder='选择小区'
112
+ condition="f_residential_area = '{}'"
113
+ close-on-select>
114
+
115
+ </v-select>
116
+ </div>
117
+ <div class="col-sm-2 form-group">
118
+ <label class="font_normal_body">具体地址</label>
119
+ <div class="btn-group select_list select" style="width: 60%;">
120
+ <input type="text" style="width: 27%;" placeholder="楼号" class="input_search" v-model="model.f_building" condition="f_building = '{}'"/>&nbsp;-&nbsp;
121
+ <input type="text" style="width: 20%;" placeholder="单元" class="input_search" v-model="model.f_unit" condition="f_unit = '{}'"/>&nbsp;-&nbsp;
122
+ <input type="text" style="width: 36%;" placeholder="室号" class="input_search" v-model="model.f_room" condition="f_room = '{}'" />
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </criteria>
128
+
129
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
130
+ <template partial='head'>
131
+ <tr>
132
+ <th>
133
+ <nobr>客户编号</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>客户名称</nobr>
137
+ </th>
138
+ <th>
139
+ <nobr>客户类型</nobr>
140
+ </th>
141
+ <th>
142
+ <nobr>联系电话</nobr>
143
+ </th>
144
+ <th>
145
+ <nobr>客户电话</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>用气点名称</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>客户地址</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>停用原因</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>其他原因</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>状态</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>停用日期</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>操作类型</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>人员</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>部门</nobr>
173
+ </th>
174
+ <th>
175
+ <nobr>公司</nobr>
176
+ </th>
177
+ <th><nobr>附件</nobr></th>
178
+ </tr>
179
+ </template>
180
+ <template partial='body'>
181
+ <td style="text-align: center;">
182
+ <nobr>
183
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <nobr>{{row.f_user_name}}</nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{row.f_user_type}}</nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{row.f_user_phone}}</nobr>
193
+ </td>
194
+ <td style="text-align: center;">
195
+ <nobr>{{row.cy_lxr}}</nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr>{{row.f_userfiles_address}}</nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr>{{row.f_address}}</nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr>{{row.f_disable_reason}}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{row.f_othereason}}</nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr>{{row.f_state}}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_operate_date}}</nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_operat_type}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_operator}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_depname}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_orgname}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;"><nobr>
228
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
229
+ </nobr></td>
230
+ </template>
231
+ <template partial='foot'></template>
232
+ </data-grid>
233
+ </criteria-paged>
234
+
235
+ <!-- <table class="table-hover">-->
236
+ <!-- <tr style="position: relative" class="table-bordered">-->
237
+ <!-- <td-->
238
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
239
+ <!-- 汇总信息-->
240
+ <!-- </td>-->
241
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
242
+ <!-- </tr>-->
243
+ <!-- </table>-->
244
+ </div>
245
+ <div class="flex" v-if="show">
246
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
247
+ </div>
248
+ </div>
249
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
250
+ <article slot="modal-body">
251
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="停用" :isremark="false" style="width:auto" ></upload>
252
+ </article>
253
+ <footer slot="modal-footer" class="modal-footer">
254
+ </footer>
255
+ </modal>
256
+ </div>
257
+ </template>
258
+
259
+ <script>
260
+ import {PagedList} from 'vue-client'
261
+ import defaultPrint from '../config/DefaultPrint'
262
+ import exportConfig from '../config/exportConfig'
263
+
264
+ let readySomething = async function (self) {
265
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
266
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
267
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
268
+ // await self.$refs.paged.$refs.cri.search()
269
+ //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
270
+ await self.$MagLoadParams.loadParam()
271
+
272
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
273
+ }
274
+ export default {
275
+ props:['data','residentialarea'],
276
+ title: '停用查询',
277
+ data() {
278
+ return {
279
+ data: {},
280
+ other: [],
281
+ footer: [],
282
+ model: new PagedList('rs/sql/disableQuery', 20, {}),
283
+ criteriaShow: false,
284
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "停用状态", "停用原因", "其他停用原因", "同步状态"],
285
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_othereason", "f_sendsuccess"],
286
+ orgCondtionStr: '',
287
+ show:false,
288
+ rowdata:{},
289
+ modelval: [],
290
+ printshow: false,
291
+ all: false,
292
+ fields: {},
293
+ config: {
294
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_othereason', 'f_state', 'f_operate_date', 'f_operat_type', 'f_operator']
295
+ },
296
+ thead: '',
297
+ showupload:false,
298
+ selected:{},
299
+ //默认打印列
300
+ defaultfield: [],
301
+ tfoot: '',
302
+ initres: {
303
+ org:[this.$login.f.orgid],
304
+ dep:[],
305
+ user:[],
306
+ },
307
+ //合计数据
308
+ sumsmodel: {},
309
+ operattype:[{label: '全部', value: ''},{label: '停用', value: '停用'},{label: '拆表', value: '拆表'}]
310
+ }
311
+ },
312
+ ready() {
313
+ readySomething(this).then(() => {
314
+ this.$emit('ready')
315
+ }).catch((error) => {
316
+ this.$emit('error', error)
317
+ })
318
+ },
319
+ methods: {
320
+ view(row){
321
+ this.showupload = true
322
+ this.selected= row
323
+ },
324
+ getotherfooter() {
325
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
326
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
327
+ this.other = [];
328
+ this.footer = [];
329
+ let exportdata = this.getCondition;
330
+ let otherInData = [];
331
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
332
+ let footerData = [], exportfield = this.getfield;
333
+ footerData.push("合计");
334
+ let self = this;
335
+ for (var field in self.sumsmodel) {
336
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
337
+ }
338
+ this.footer.push(footerData);
339
+ this.other.push(otherInData);
340
+ },
341
+ search(){
342
+ this.$refs.paged.$refs.cri.search()
343
+ },
344
+ selfSearch(args) {
345
+ if (this.data) {
346
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
347
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
348
+ }
349
+ args.condition = `${args.condition}` + this.orgCondtionStr
350
+ this.model.search(args.condition, args.model)
351
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
352
+ },
353
+ clear() {
354
+ //清空部门和人员
355
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
356
+ //部门和人员变为全选
357
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
358
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
359
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
360
+ this.$refs.paged.$refs.cri.model[key] = []
361
+ })
362
+ },
363
+ show() {
364
+ this.criteriaShow = true
365
+ },
366
+ hidden() {
367
+ this.criteriaShow = !this.criteriaShow
368
+ },
369
+ getRes(obj) {
370
+ this.orgCondtionStr = obj
371
+ },
372
+ stamp() {
373
+ this.all = false
374
+ //默认选择要打印的列
375
+ this.modelval = defaultPrint.config
376
+ this.fields = this.getfield
377
+ console.log('所有打印字段', this.fields)
378
+ this.printshow = true
379
+ this.put()
380
+ },
381
+ put() {
382
+ // 对Modelval进行排序
383
+ this.sortModelval()
384
+ this.thead = `<tr><th colspan=${this.modelval.length}>停用查询报表</th></tr><tr>`
385
+ for (let key of this.modelval) {
386
+ this.thead += '<th>' + this.fields[key] + '</th>'
387
+ }
388
+ this.thead += '</tr>'
389
+ },
390
+ cancel() {
391
+ this.show = false
392
+ },
393
+ dealmsg(val) {
394
+ console.log('---------------dealmsg')
395
+ this.rowdata=val
396
+ this.show=true
397
+ val.model = this.model.model
398
+ this.$dispatch('deal-msg', val)
399
+ },
400
+ print() {
401
+ this.$refs.print.PrintAsFile()
402
+ this.printshow = false
403
+ },
404
+ close() {
405
+ this.printshow = false
406
+ this.all = false
407
+ },
408
+ // 对选择的列进行排序
409
+ sortModelval() {
410
+ let sortModel = []
411
+ Object.keys(this.fields).forEach((key) => {
412
+ if (this.modelval.includes(key)) {
413
+ sortModel.push(key)
414
+ }
415
+ })
416
+ this.modelval = sortModel
417
+ console.log('选择的打印的字段', this.modelval)
418
+ }
419
+ },
420
+ watch: {
421
+ 'all'(val) {
422
+ if (val) {
423
+ this.modelval = this.bodyData
424
+ } else {
425
+ this.modelval = defaultPrint.config
426
+ this.put()
427
+ }
428
+ },
429
+ sumsmodel: {
430
+ handler: function (val) {
431
+ this.getotherfooter();
432
+ },
433
+ deep: true
434
+ },
435
+ 'modelval.length'() {
436
+ this.put()
437
+ },
438
+ },
439
+ computed: {
440
+ getCondition() {
441
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
442
+ },
443
+ getfield() {
444
+ return exportConfig.disableConfig
445
+ },
446
+ disablereason () {
447
+ return this.$appdata.getParam('停用原因')
448
+ }
449
+ }
450
+ }
451
+ </script>