manage-client 3.2.171 → 3.2.173

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 (28) hide show
  1. package/package.json +1 -1
  2. package/src/components/SellReport/DayStairMoneyHunum.vue +256 -0
  3. package/src/components/SellReport/MonthStairHunum.vue +256 -0
  4. package/src/components/sale/config/exportConfig.js +1 -1
  5. package/src/filiale/WEINAN/ChargeQuery.vue +2 -2
  6. package/src/filiale/WEINAN/InspectListGas.vue +544 -0
  7. package/src/filiale/WEINAN/InspectListUser.vue +11 -1
  8. package/src/filiale/WEINAN/RecordInfoQuery.vue +7 -1
  9. package/src/filiale/WEINAN/sale.js +3 -2
  10. package/src/filiale/kelai/AreaChargeQuery.vue +393 -0
  11. package/src/filiale/kelai/sale.js +3 -1
  12. package/src/filiale/tongchuan/sale.js +0 -1
  13. package/src/filiale/tongchuan/webmeterManage.js +9 -0
  14. package/src/filiale/zhongyi/CallReport/CallReportMainPage.vue +25 -16
  15. package/src/filiale/zhongyi/CallReport/DropDownBox.vue +15 -25
  16. package/src/filiale/zhongyi/CallReport/IncomingTelegram.vue +17 -2
  17. package/src/filiale/zhongyi/CallReport/PercentageComplete.vue +95 -37
  18. package/src/filiale/zhongyi/CallReport/PercentageCompleteEchart.vue +15 -4
  19. package/src/filiale/zhongyi/CallReport/ServiceStatus.vue +86 -100
  20. package/src/filiale/zhongyi/CallReport/SwiperTools.vue +34 -55
  21. package/src/filiale/zhongyi/CallReport/Userinfo.vue +33 -61
  22. package/src/filiale/zhongyi/CallReport/WeatherData.vue +69 -5
  23. package/src/filiale/zhongyi/CallReport/WorkOrderPage.vue +32 -41
  24. package/src/reportManage.js +8 -0
  25. package/static/images/zhongyi//345/244/251/346/260/224-/346/231/264.png +0 -0
  26. package/static/images/zhongyi//346/232/264/351/233/250/345/210/260/345/244/247/346/232/264/351/233/250.png +0 -0
  27. package/static/images/zhongyi//351/230/264/345/244/251.png +0 -0
  28. package/static/images/zhongyi//351/233/276.png +0 -0
@@ -0,0 +1,544 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
8
+ <div class="row">
9
+ <div class="col-sm-2">
10
+ <label class="font_normal_body">公&emsp;&emsp;&emsp;司</label>
11
+ <right-tree @re-res="$parent.$parent.getorg"
12
+ :initresid='$parent.$parent.org'></right-tree>
13
+ </div>
14
+
15
+ <div class="col-sm-2 ">
16
+ <label v-if="$parent.$parent.meter_classify == '卡表'" for="startDate" class="font_normal_body">&emsp;购气开始</label>
17
+ <label v-else for="startDate" class="font_normal_body">&emsp;抄表开始</label>
18
+ <datepicker id="startDate" placeholder="开始日期"
19
+ v-model="model.startDate"
20
+ style="width:60%"
21
+ :value.sync="model.startDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 ">
28
+ <label v-if="$parent.$parent.meter_classify == '卡表'" for="startDate" class="font_normal_body">&emsp;购气结束</label>
29
+ <label v-else for="startDate" class="font_normal_body">&emsp;抄表结束</label>
30
+ <datepicker id="endDate" placeholder="结束日期"
31
+ v-model="model.endDate"
32
+ style="width:60%"
33
+ :value.sync="model.endDate"
34
+ :disabled-days-of-Week="[]"
35
+ :format="'yyyy-MM-dd'"
36
+ :show-reset-button="reset">
37
+ </datepicker>
38
+ </div>
39
+ <div class="col-sm-2 ">
40
+ <label for="f_meter_classify"class="font_normal_body">&emsp;&emsp;表类型</label>
41
+ <v-select id="f_meter_classify"
42
+ v-model="$parent.$parent.meter_classify"
43
+ placeholder='表类型'
44
+ style="width:70%"
45
+ :value.sync="$parent.$parent.meter_classify"
46
+ :options='$parent.$parent.f_meter_classify'
47
+ condition="f_meter_type like '%{}'"
48
+ :value-single="true"
49
+ close-on-select >
50
+ </v-select>
51
+ </div>
52
+ <div class="span" style="float:right;">
53
+ <button class="btn button_search" @click="search()">查询</button>
54
+ <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
55
+ <export-excel :data="$parent.$parent.getCondition"
56
+ :field="$parent.$parent.getfield"
57
+ :footer="$parent.$parent.footer"
58
+ :header="$parent.$parent.other"
59
+ sqlurl="rs/logic/exportfile"
60
+ :sql-name="$parent.$parent.sqlName"
61
+ template-name='购气稽查导出' :choose-col="true"></export-excel>
62
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
63
+ <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>
64
+
65
+ </div>
66
+ </div>
67
+ <div class="row" v-show="$parent.$parent.criteriaShow">
68
+ <div class="col-sm-2 ">
69
+ <label for="f_gasproperties"class="font_normal_body">&emsp;用气性质</label>
70
+ <v-select id="f_gasproperties"
71
+ style="width:60%"
72
+ v-model="model.f_gasproperties"
73
+ placeholder='用气性质'
74
+ :value.sync="model.f_gasproperties"
75
+ :options='$parent.$parent.gasproperties'
76
+ condition="f_gasproperties = '{}'"
77
+ close-on-select >
78
+ </v-select>
79
+ </div>
80
+ <div class="col-sm-2">
81
+ <label class="font_normal_body" title="旧客户编号">&emsp;档案编号</label>
82
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
83
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
84
+ </div>
85
+ <div class="col-sm-2 ">
86
+ <label for="contain_newfile" class="font_normal_body">包含新开户</label>
87
+ <v-select id="contain_newfile"
88
+ v-model="model.contain_newfile"
89
+ style="width:60%"
90
+ :value.sync="model.contain_newfile"
91
+ :options='$parent.$parent.contain_newfiles'
92
+ :value-single="true"
93
+ close-on-select >
94
+ </v-select>
95
+ </div>
96
+ <div class="col-sm-2" >
97
+ <label for="f_user_state" class="font_normal_body">&emsp;客户状态</label>
98
+ <v-select :value.sync="model.f_user_state"
99
+ v-model="model.f_user_state"
100
+ :options='$parent.$parent.userstate' placeholder='请选择'
101
+ condition="f_user_state = '{}'"
102
+ close-on-select></v-select>
103
+ </div>
104
+ <div class="col-sm-2 ">
105
+ <label for="f_table_state"class="font_normal_body">&emsp;&emsp;表状态</label>
106
+ <v-select id="f_table_state"
107
+ style="width:60%"
108
+ v-model="model.f_table_state"
109
+ placeholder='表状态'
110
+ :value.sync="model.f_table_state"
111
+ :options='$parent.$parent.tablestate'
112
+ condition="f_table_state = '{}'"
113
+ close-on-select >
114
+ </v-select>
115
+ </div>
116
+
117
+ <div class="col-sm-2">
118
+ <label class="font_normal_body">&emsp;&emsp;&emsp;表号</label>
119
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
120
+ condition="f_meternumber = '{}'" placeholder='表号'>
121
+ </div>
122
+ <div class="col-sm-2 ">
123
+ <label class="font_normal_body">&emsp;用户类型</label>
124
+ <v-select :value.sync="model.f_user_type"
125
+ @change="$parent.$parent.userTypeChange()"
126
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
127
+ condition="f_user_type = '{}'"
128
+ close-on-select></v-select>
129
+ </div>
130
+
131
+ <div class="col-sm-2">
132
+ <label class="font_normal_body">&emsp;客户名称</label>
133
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
134
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
135
+ </div>
136
+ <div class="col-sm-2">
137
+ <label class="font_normal_body">&emsp;客户编号</label>
138
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
139
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
140
+ </div>
141
+ <div class="col-sm-2">
142
+ <label class="font_normal_body">&emsp;客户地址</label>
143
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
144
+ condition="f_address like '%{}%'" placeholder='客户地址'>
145
+ </div>
146
+ <div class="col-sm-2">
147
+ <label class="font_normal_body">&emsp;客户电话</label>
148
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
149
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
150
+ </div>
151
+
152
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
153
+ <label class="font_normal_body">&emsp;期间次数</label>
154
+ <div class="row">
155
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumin"
156
+ condition="sellcishu >= {} " placeholder="">
157
+ <label class="font_normal_body"> ≤ x ≤ </label>
158
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumax"
159
+ condition="sellcishu <= {} " placeholder="">
160
+ </div>
161
+ </div>
162
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
163
+ <label class="font_normal_body">&emsp;期间次数</label>
164
+ <div class="row">
165
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumin"
166
+ condition="sellcishu >= {} " placeholder="">
167
+ <label class="font_normal_body"> ≤ x ≤ </label>
168
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumax"
169
+ condition="sellcishu <= {} " placeholder="">
170
+ </div>
171
+ </div>
172
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
173
+ <label class="font_normal_body">期间购气量</label>
174
+ <div class="row">
175
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmin"
176
+ condition="sellpregas >= {} " placeholder="">
177
+ <label class="font_normal_body"> ≤ x ≤ </label>
178
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmax"
179
+ condition="sellpregas <= {} " placeholder="">
180
+ </div>
181
+ </div>
182
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
183
+ <label class="font_normal_body">期间用气量</label>
184
+ <div class="row">
185
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmin"
186
+ condition="sellpregas >= {} " placeholder="">
187
+ <label class="font_normal_body"> ≤ x ≤ </label>
188
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmax"
189
+ condition="sellpregas <= {} " placeholder="">
190
+ </div>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ </criteria>
195
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
196
+ <template partial='head'>
197
+ <tr>
198
+ <th><nobr>序号</nobr></th>
199
+ <th><nobr>客户编号</nobr></th>
200
+ <th><nobr>客户电话</nobr></th>
201
+ <th><nobr>档案编号</nobr></th>
202
+ <th><nobr>表号</nobr></th>
203
+ <th><nobr>客户名称</nobr></th>
204
+ <th><nobr>客户状态</nobr></th>
205
+ <th><nobr>地址</nobr></th>
206
+ <th><nobr>用户类型</nobr></th>
207
+ <th><nobr>用气性质</nobr></th>
208
+ <th><nobr>表具状态</nobr></th>
209
+ <th><nobr>气表品牌</nobr></th>
210
+ <th><nobr>气价名称</nobr></th>
211
+ <th><nobr>最后购气日期</nobr></th>
212
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气次数</nobr></th>-->
213
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表次数</nobr></th>-->
214
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气量</nobr></th>-->
215
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表气量</nobr></th>-->
216
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表' || $parent.$parent.$parent.meter_classify =='物联网表'"><nobr>期间购气次数</nobr></th>
217
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表次数</nobr></th>
218
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表' || $parent.$parent.$parent.meter_classify == '物联网表'"><nobr>期间购气量</nobr></th>
219
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表气量</nobr></th>
220
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>累计未购气天数</nobr></th>-->
221
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>累计未抄表天数</nobr></th>-->
222
+ <th><nobr>组织机构</nobr></th>
223
+ </tr>
224
+ </template>
225
+ <template partial='body'>
226
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
227
+ <td style="text-align: center;"><nobr>
228
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
229
+ </nobr> </td>
230
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
231
+ <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
232
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
233
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
234
+ <th style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></th>
235
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
236
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
237
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
238
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
239
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
240
+ <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
241
+ <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
242
+ <!-- <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>-->
243
+ <!-- <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>-->
244
+ <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>
245
+ <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>
246
+ <!-- <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>-->
247
+ <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
248
+ </template>
249
+ </data-grid>
250
+ </criteria-paged>
251
+ <table class="table-hover">
252
+ <tr style="position: relative" class="table-bordered">
253
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
254
+ <!-- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总购气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>-->
255
+ <td v-if="meter_classify == '卡表' || meter_classify == '物联网表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">期间购气量合计:&emsp;&emsp;{{sumsmodel.sellpregas}}</td>
256
+ <!-- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总抄表气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>-->
257
+ <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">期间抄表气量合计:&emsp;{{sumsmodel.sellpregas}}</td>
258
+ </tr>
259
+ </table>
260
+ </div>
261
+ <div class="flex" v-if="show">
262
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
263
+ </div>
264
+ </div></div>
265
+ </template>
266
+ <script>
267
+ /**
268
+ *用户档案查询列表以及添加操作组件
269
+ */
270
+ import { PagedList } from 'vue-client'
271
+ import Vue from 'vue'
272
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
273
+
274
+ let readySomething = async function (self) {
275
+
276
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
277
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
278
+ let year = new Date().getFullYear()
279
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
280
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
281
+
282
+ // await self.$refs.paged.$refs.cri.search()
283
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
284
+ }
285
+ export default {
286
+ title: '购气稽查',
287
+ data () {
288
+ return {
289
+ other:[],
290
+ footer:[],
291
+ org:[this.$login.f.orgid],
292
+ criteriaShow: false,
293
+ meter_classify:'卡表',
294
+ filialeNameStr: null,
295
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
296
+ userid: this.$login.f.id,
297
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
298
+ getfield:{"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
299
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
300
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
301
+ "delivery_date":"最后购气日期","f_user_phone":"客户电话",
302
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织机构"},
303
+ model: new PagedList('rs/sql/inspectList_sellinggas', 50,{},{sellpregas: 0}),
304
+ rows: null,
305
+ //orgid:'',
306
+ sumsmodel: {},
307
+ sqlName:'inspectList_sellinggas',
308
+ config: {
309
+ defaultPrint: ['f_userinfo_code','f_user_id']
310
+ },
311
+ show:false,
312
+ rowdata:{},
313
+ initres: {
314
+ org:[this.$login.f.orgid],
315
+ dep:[],
316
+ user:[],
317
+ },
318
+ defaultfield: [],
319
+ }
320
+ },
321
+ watch:{
322
+ sumsmodel:{
323
+ handler: function(val) {
324
+ this.getotherfooter();
325
+ },
326
+ deep: true
327
+ },
328
+ meter_classify(val){
329
+ if(val == '卡表') {
330
+ this.url = 'rs/sql/inspectList_sellinggas'
331
+ this.sqlName = 'inspectList_sellinggas'
332
+ this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
333
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
334
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
335
+ "delivery_date":"最后购气日期","f_user_phone":"客户电话",
336
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织机构"}
337
+ }if(val == '物联网表'){
338
+ this.url = 'rs/sql/getwulw_listgas'
339
+ this.sqlName = 'getwulw_listgas'
340
+ this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
341
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
342
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
343
+ "delivery_date":"最后购气日期","f_user_phone":"客户电话",
344
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织机构"}
345
+ }
346
+ if(val == '机表'){
347
+ this.url = 'rs/sql/handinspectList_sellinggas'
348
+ this.sqlName = 'handinspectList_sellinggas'
349
+ this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
350
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
351
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
352
+ "delivery_date":"最后抄表日期","f_user_phone":"客户电话",
353
+ "sellcishu":"期间抄表次数","sellpregas":"期间抄表气量","f_orgname":"组织机构"}
354
+ }
355
+ this.clear()
356
+ }
357
+ },
358
+ ready () {
359
+
360
+ readySomething(this).then(() => {
361
+ this.$emit('ready')
362
+ }).catch((error) => {
363
+ this.$emit('error', error)
364
+ })
365
+ },
366
+ methods: {
367
+ getotherfooter(){
368
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
369
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
370
+ this.other=[];
371
+ this.footer=[];
372
+ let exportdata = this.getCondition;
373
+ let otherInData=[];
374
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
375
+ let footerData=[],exportfield=this.getfield;
376
+ footerData.push("合计");
377
+ let self = this;
378
+ for(var field in self.sumsmodel){
379
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
380
+ }
381
+ this.footer.push(footerData);
382
+ this.other.push(otherInData);
383
+ },
384
+ cancel() {
385
+ this.show = false
386
+ },
387
+ showmsg(obj){
388
+ this.rowdata=obj
389
+ this.show=true
390
+ },
391
+ getorg (obj) {
392
+ if(obj.resids.length>0){
393
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
394
+ }
395
+ else{
396
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
397
+ }
398
+ },
399
+ userTypeChange () {
400
+ this.gasproperties=[]
401
+ console.log("查气价")
402
+ console.log(this.$refs.paged.model.model)
403
+
404
+ if(this.$refs.paged.model.model !==null) {
405
+ console.log("进if")
406
+ this.$refs.paged.model.model.f_gasproperties=''
407
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
408
+ // this.gasproperties.push({label: '全部', value: ''})
409
+ console.log(this.gasproperties )
410
+ }
411
+ else{
412
+ this.gasproperties =[{label: '全部', value: ''}]
413
+ }
414
+ console.log("最终气价")
415
+ console.log(this.gasproperties )
416
+ },
417
+ search () {
418
+ this.$refs.paged.$refs.cri.search()
419
+ },
420
+ selfSearch (args) {
421
+ console.log('9999999999999999999', this.meter_classify )
422
+ console.log('9999999999999999999', this.meter_classify.length)
423
+ if(this.meter_classify == '卡表'){
424
+ this.model.url='rs/sql/inspectList_sellinggas'
425
+ }
426
+ if(this.meter_classify == '机表'){
427
+ this.model.url='rs/sql/handinspectList_sellinggas'
428
+ }
429
+ if(this.meter_classify == '物联网表'){
430
+ this.model.url= 'rs/sql/getwulw_listgas'
431
+ }
432
+ console.log(this.$login.f)
433
+ if(this.$refs.paged.$refs.cri.model.startDate){
434
+ this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate} 00:00:00' `
435
+ }else{
436
+ this.model.params.startDate ='DATEADD(yy,DATEDIFF(yy,0,getdate()),0)'
437
+ }
438
+ if(this.$refs.paged.$refs.cri.model.endDate){
439
+ this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate} 23:59:59' `
440
+ }else{
441
+ this.model.params.endDate ='DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
442
+ }
443
+
444
+ if(this.$refs.paged.$refs.cri.model.contain_newfile){
445
+ if(this.$refs.paged.$refs.cri.model.contain_newfile==='否') {
446
+ if (this.$refs.paged.$refs.cri.model.startDate === ''&&this.$refs.paged.$refs.cri.model.endDate ==='') {
447
+ args.condition = args.condition + "and f_open_date not between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))"
448
+ }else if (this.$refs.paged.$refs.cri.model.startDate === ''&& this.$refs.paged.$refs.cri.model.endDate !=='') {
449
+ args.condition = args.condition + "and f_open_date not between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and "+this.model.params.endDate
450
+ }else if (this.$refs.paged.$refs.cri.model.startDate !== ''&& this.$refs.paged.$refs.cri.model.endDate ==='') {
451
+ args.condition = args.condition + "and f_open_date not between " + this.model.params.startDate + "and DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))"
452
+ }
453
+ else {
454
+ args.condition = args.condition + "and f_open_date not between " + this.model.params.startDate + " and " + this.model.params.endDate
455
+ }
456
+ }
457
+ }
458
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
459
+ console.log("拼接的condition", args.condition, this.model)
460
+ this.model.search(args.condition, args.model)
461
+ },
462
+ // show(){
463
+ // this.criteriaShow = true
464
+ // },
465
+ hidden(){
466
+ this.criteriaShow = !this.criteriaShow
467
+ },
468
+ clear(){
469
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
470
+ if(key != 'startDate' && key != 'endDate')
471
+ this.$refs.paged.$refs.cri.model[key] = []
472
+ })
473
+ this.$refs.paged.$refs.cri.model.contain_newfile='是'
474
+ let year = new Date().getFullYear()
475
+ this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
476
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
477
+ }
478
+
479
+ },
480
+ computed: {
481
+ gasproperties() {
482
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
483
+ },
484
+ usertypes() {
485
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
486
+ },
487
+ userstate() {
488
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('客户状态')]
489
+ },
490
+ tablestate () {
491
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
492
+ },
493
+ f_meter_classify(){
494
+ return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '网表', value: '物联网表'} ]
495
+ // return [{label: '卡表', value: '卡表'}]
496
+ },
497
+ contain_newfiles(){
498
+ return [{label: '是', value: '是'},{label: '否', value: '否'} ]
499
+ },
500
+ getCondition () {
501
+ let result = {
502
+ condition: '',
503
+ startDate: '',
504
+ endDate: ''
505
+ // diffDay:' 1=1 '
506
+ }
507
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
508
+ let temp2 = this.$refs.paged.$refs.cri
509
+ if (temp2.model.startDate && temp2.model.endDate) {
510
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
511
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
512
+ } if (!temp2.model.startDate && !temp2.model.endDate) {
513
+ result.startDate = 'new Date().getFullYear()'
514
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
515
+ }
516
+ if (temp2.model.startDate&&!temp2.model.endDate) {
517
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
518
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
519
+ } if (temp2.model.endDate&&!temp2.model.startDate) {
520
+ result.startDate = 'new Date().getFullYear()'
521
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
522
+ }
523
+
524
+ // if(temp2.model.diffday != ''){
525
+ // result.diffDay += " and diffDay "+ temp2.model.diffday;
526
+ // }
527
+ if (temp2.model.contain_newfile==='否'){
528
+ result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
529
+ }
530
+
531
+ return result
532
+ }
533
+ }
534
+ }
535
+ </script>
536
+ <style media="screen">
537
+ .divtext {
538
+ min-width: 50px;
539
+ max-width: 200px;
540
+ border: 1px solid green;
541
+ display: inline-block;
542
+ }
543
+ </style>
544
+
@@ -171,6 +171,14 @@
171
171
  condition="cishu <= {} " placeholder="">
172
172
  </div>
173
173
  </div>
174
+ <div class="col-sm-2" >
175
+ <label for="f_user_state" class="font_normal_body">客户状态</label>
176
+ <v-select :value.sync="model.f_user_state"
177
+ v-model="model.f_user_state"
178
+ :options='$parent.$parent.userstate' placeholder='请选择'
179
+ condition="f_user_state = '{}'"
180
+ close-on-select></v-select>
181
+ </div>
174
182
 
175
183
  </div>
176
184
 
@@ -466,7 +474,9 @@
466
474
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('表类型')]
467
475
  // return [{label: '卡表', value: '卡表'}]
468
476
  },
469
-
477
+ userstate () {
478
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
479
+ },
470
480
  getCondition () {
471
481
  let result = {
472
482
  condition: '',
@@ -56,7 +56,7 @@
56
56
  </div>
57
57
 
58
58
  <div class="row" v-show="$parent.$parent.criteriaShow">
59
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
59
+ <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
60
  <div class="col-sm-2 form-group" >
61
61
  <label for="startDate" class="font_normal_body" title="建档开始日期">开始日期</label>
62
62
  <datepicker id="startDate" placeholder="建档开始日期" style="width:60%"
@@ -878,6 +878,12 @@
878
878
  console.log('合计字段',this.sumsmodel)
879
879
  },
880
880
  clear(){
881
+ //清空部门和人员
882
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
883
+ this.$refs.paged.$refs.cri.$refs.sel.slice_area = []
884
+ //部门和人员变为全选
885
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
886
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
881
887
  Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
882
888
  this.$refs.paged.$refs.cri.model[key] = []
883
889
  })
@@ -35,8 +35,9 @@ let specialComp = {
35
35
  // 汇总查询
36
36
  'collect-manage':(resolve) => {require(['./CollectManage'], resolve)},
37
37
  // 开户查询
38
- 'new-account-query':(resolve) => {require(['./NewAccountQuery'], resolve)
39
- }
38
+ 'new-account-query': (resolve) => { require(['./NewAccountQuery'], resolve) },
39
+ // 购气稽查
40
+ 'inspect-list-gas': (resolve) => { require(['./InspectListGas'], resolve) }
40
41
  }
41
42
  exports.specialComp = specialComp
42
43