manage-client 4.0.96 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,599 @@
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
+ <!--新增通气状态查询条件-->
53
+ <div class="col-sm-2">
54
+ <label for="f_gas_date" class="font_normal_body">通气状态&emsp;</label>
55
+ <v-select id="f_gas_date"
56
+ style="width:60%"
57
+ v-model="model.f_gas_date"
58
+ placeholder='通气状态'
59
+ :value.sync="model.f_gas_date"
60
+ :options='$parent.$parent.f_gas_date'
61
+ condition="ss.ventilation_status = '{}'"
62
+ close-on-select>
63
+ </v-select>
64
+ </div>
65
+ <div class="span" style="float:right;">
66
+ <button class="btn button_search" @click="search()">查询</button>
67
+ <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
68
+ <export-excel :data="$parent.$parent.getCondition"
69
+ :field="$parent.$parent.getfield"
70
+ :footer="$parent.$parent.footer"
71
+ :header="$parent.$parent.other"
72
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
73
+ :sql-name="$parent.$parent.sqlName"
74
+ template-name='购气稽查导出' :choose-col="true"></export-excel>
75
+ <print-data
76
+ :sum-field="$parent.$parent.getfield"
77
+ :model="$parent.model"
78
+ :field="$parent.$parent.getfield"
79
+ :defaultfield="$parent.$parent.defaultfield"
80
+ print-name="稽查查询打印"
81
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
82
+ <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>
83
+ </div>
84
+ </div>
85
+ <div class="row" v-show="$parent.$parent.criteriaShow">
86
+ <div class="col-sm-2 ">
87
+ <label for="f_gasproperties"class="font_normal_body">&emsp;用气性质</label>
88
+ <v-select id="f_gasproperties"
89
+ style="width:60%"
90
+ v-model="model.f_gasproperties"
91
+ placeholder='用气性质'
92
+ :value.sync="model.f_gasproperties"
93
+ :options='$parent.$parent.gasproperties'
94
+ condition="f_gasproperties = '{}'"
95
+ close-on-select >
96
+ </v-select>
97
+ </div>
98
+ <div class="col-sm-2">
99
+ <label class="font_normal_body" title="旧客户编号">&emsp;档案编号</label>
100
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
101
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
102
+ </div>
103
+ <div class="col-sm-2 ">
104
+ <label for="contain_newfile" class="font_normal_body">包含新开户</label>
105
+ <v-select id="contain_newfile"
106
+ v-model="model.contain_newfile"
107
+ style="width:60%"
108
+ :value.sync="model.contain_newfile"
109
+ :options='$parent.$parent.contain_newfiles'
110
+ :value-single="true"
111
+ close-on-select >
112
+ </v-select>
113
+ </div>
114
+ <div class="col-sm-2" >
115
+ <label for="f_user_state" class="font_normal_body">&emsp;客户状态</label>
116
+ <v-select :value.sync="model.f_user_state"
117
+ v-model="model.f_user_state"
118
+ :options='$parent.$parent.userstate' placeholder='请选择'
119
+ condition="f_user_state = '{}'"
120
+ close-on-select></v-select>
121
+ </div>
122
+ <div class="col-sm-2 ">
123
+ <label for="f_table_state"class="font_normal_body">&emsp;&emsp;表状态</label>
124
+ <v-select id="f_table_state"
125
+ style="width:60%"
126
+ v-model="model.f_table_state"
127
+ placeholder='表状态'
128
+ :value.sync="model.f_table_state"
129
+ :options='$parent.$parent.tablestate'
130
+ condition="f_table_state = '{}'"
131
+ close-on-select >
132
+ </v-select>
133
+ </div>
134
+ <div class="col-sm-2 form-group">
135
+ <label class="font_normal_body">&emsp;气表品牌</label>
136
+ <v-select :value.sync="model.f_meter_brand"
137
+ v-model="model.f_meter_brand"
138
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
139
+ condition="f_meter_brand = '{}'"
140
+ close-on-select></v-select>
141
+ </div>
142
+ <div class="col-sm-2">
143
+ <label class="font_normal_body">&emsp;&emsp;&emsp;表号</label>
144
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
145
+ condition="f_meternumber = '{}'" placeholder='表号'>
146
+ </div>
147
+ <div class="col-sm-2 ">
148
+ <label class="font_normal_body">&emsp;用户类型</label>
149
+ <v-select :value.sync="model.f_user_type"
150
+ @change="$parent.$parent.userTypeChange()"
151
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
152
+ condition="f_user_type = '{}'"
153
+ close-on-select></v-select>
154
+ </div>
155
+
156
+ <div class="col-sm-2">
157
+ <label class="font_normal_body">&emsp;客户名称</label>
158
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
159
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
160
+ </div>
161
+ <div class="col-sm-2">
162
+ <label class="font_normal_body">&emsp;客户编号</label>
163
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
164
+ condition="f_userinfo_code like '%{}%' " placeholder="客户编号">
165
+ </div>
166
+ <div class="col-sm-2">
167
+ <label class="font_normal_body">&emsp;客户地址</label>
168
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
169
+ condition="f_address like '%{}%'" placeholder='客户地址'>
170
+ </div>
171
+ <div class="col-sm-2">
172
+ <label class="font_normal_body">&emsp;客户电话</label>
173
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
174
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
175
+ </div>
176
+
177
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
178
+ <label class="font_normal_body">&emsp;期间次数</label>
179
+ <div class="row">
180
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumin"
181
+ condition="sellcishu >= {} " placeholder="">
182
+ <label class="font_normal_body"> ≤ x ≤ </label>
183
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumax"
184
+ condition="sellcishu <= {} " placeholder="">
185
+ </div>
186
+ </div>
187
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
188
+ <label class="font_normal_body">&emsp;期间次数</label>
189
+ <div class="row">
190
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumin"
191
+ condition="sellcishu >= {} " placeholder="">
192
+ <label class="font_normal_body"> ≤ x ≤ </label>
193
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumax"
194
+ condition="sellcishu <= {} " placeholder="">
195
+ </div>
196
+ </div>
197
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
198
+ <label class="font_normal_body">期间购气量</label>
199
+ <div class="row">
200
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmin"
201
+ condition="sellpregas >= {} " placeholder="">
202
+ <label class="font_normal_body"> ≤ x ≤ </label>
203
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmax"
204
+ condition="sellpregas <= {} " placeholder="">
205
+ </div>
206
+ </div>
207
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
208
+ <label class="font_normal_body">期间用气量</label>
209
+ <div class="row">
210
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmin"
211
+ condition="sellpregas >= {} " placeholder="">
212
+ <label class="font_normal_body"> ≤ x ≤ </label>
213
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmax"
214
+ condition="sellpregas <= {} " placeholder="">
215
+ </div>
216
+ </div>
217
+ </div>
218
+ </div>
219
+ </criteria>
220
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
221
+ <template partial='head'>
222
+ <tr>
223
+ <th><nobr>序号</nobr></th>
224
+ <th><nobr>客户编号</nobr></th>
225
+ <th><nobr>客户电话</nobr></th>
226
+ <th><nobr>档案编号</nobr></th>
227
+ <th><nobr>表号</nobr></th>
228
+ <th><nobr>客户名称</nobr></th>
229
+ <th><nobr>客户状态</nobr></th>
230
+ <th><nobr>地址</nobr></th>
231
+ <th><nobr>用户类型</nobr></th>
232
+ <th><nobr>用气性质</nobr></th>
233
+ <th><nobr>通气状态</nobr></th>
234
+ <th><nobr>表具状态</nobr></th>
235
+ <th><nobr>气表品牌</nobr></th>
236
+ <th><nobr>气价名称</nobr></th>
237
+ <th><nobr>最后购气日期</nobr></th>
238
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气次数</nobr></th>-->
239
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表次数</nobr></th>-->
240
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气量</nobr></th>-->
241
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表气量</nobr></th>-->
242
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表' || $parent.$parent.$parent.meter_classify =='物联网表'"><nobr>期间购气次数</nobr></th>
243
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表次数</nobr></th>
244
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表' || $parent.$parent.$parent.meter_classify == '物联网表'"><nobr>期间购气量</nobr></th>
245
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表气量</nobr></th>
246
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>累计未购气天数</nobr></th>-->
247
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>累计未抄表天数</nobr></th>-->
248
+ <th><nobr>组织机构</nobr></th>
249
+ </tr>
250
+ </template>
251
+ <template partial='body'>
252
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
253
+ <td style="text-align: center;"><nobr>
254
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
255
+ </nobr> </td>
256
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
257
+ <td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
258
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
259
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
260
+ <th style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></th>
261
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
262
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
263
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
264
+ <th style="text-align: center;"><nobr>{{row.ventilation_status}}</nobr></th>
265
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
266
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
267
+ <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
268
+ <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
269
+ <!-- <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>-->
270
+ <!-- <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>-->
271
+ <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>
272
+ <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>
273
+ <!-- <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>-->
274
+ <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
275
+ </template>
276
+ </data-grid>
277
+ </criteria-paged>
278
+ <table class="table-hover">
279
+ <tr style="position: relative" class="table-bordered">
280
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
281
+ <!-- <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>-->
282
+ <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>
283
+ <!-- <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>-->
284
+ <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>
285
+ </tr>
286
+ </table>
287
+ </div>
288
+ <div class="flex" v-if="show">
289
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
290
+ </div>
291
+ </div></div>
292
+ </template>
293
+ <script>
294
+ /**
295
+ *用户档案查询列表以及添加操作组件
296
+ */
297
+ import { PagedList } from 'vue-client'
298
+ import Vue from 'vue'
299
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
300
+
301
+ let readySomething = async function (self) {
302
+ await self.$MagLoadParams.loadParam()
303
+ self.initParams()
304
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
305
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
306
+ let year = new Date().getFullYear()
307
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
308
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
309
+
310
+ // await self.$refs.paged.$refs.cri.search()
311
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
312
+ }
313
+ export default {
314
+ title: '购气稽查',
315
+ data () {
316
+ return {
317
+ meterbrands: [],
318
+ other:[],
319
+ footer:[],
320
+ org:[this.$login.f.orgid],
321
+ criteriaShow: false,
322
+ meter_classify:'卡表',
323
+ filialeNameStr: null,
324
+ filialeCodeStr: `and f_orgid = '${this.$login.f.orgid}'`,
325
+ userid: this.$login.f.id,
326
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
327
+ getfield:{"f_userinfo_code":"客户编号","f_user_phone":"客户电话","f_olduserinfo_code":"档案编号","f_meternumber":"表号",
328
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
329
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
330
+ "delivery_date":"最后购气日期",
331
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织机构"},
332
+ model: new PagedList('api/af-revenue/sql/inspectList_sellinggas', 50,{},{sellpregas: 0}),
333
+ rows: null,
334
+ //orgid:'',
335
+ sumsmodel: {},
336
+ sqlName:'inspectList_sellinggas',
337
+ config: {
338
+ defaultPrint: ['f_userinfo_code','f_user_id']
339
+ },
340
+ show:false,
341
+ rowdata:{},
342
+ initres: {
343
+ org:[this.$login.f.orgid],
344
+ dep:[],
345
+ user:[],
346
+ },
347
+ defaultfield: [],
348
+ }
349
+ },
350
+ watch:{
351
+ sumsmodel:{
352
+ handler: function(val) {
353
+ this.getotherfooter();
354
+ },
355
+ deep: true
356
+ },
357
+ meter_classify(val){
358
+ if(val == '卡表') {
359
+ this.url = 'api/af-revenue/sql/inspectList_sellinggas'
360
+ this.sqlName = 'inspectList_sellinggas'
361
+ this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_user_phone":"客户电话","f_meternumber":"表号",
362
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
363
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
364
+ "delivery_date":"最后购气日期",
365
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织机构"}
366
+ }if(val == '物联网表'){
367
+ this.url = 'api/af-revenue/sql/getwulw_listgas'
368
+ this.sqlName = 'getwulw_listgas'
369
+ this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_user_phone":"客户电话","f_meternumber":"表号",
370
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
371
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
372
+ "delivery_date":"最后购气日期",
373
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织机构"}
374
+ }
375
+ if(val == '机表'){
376
+ this.url = 'api/af-revenue/sql/handinspectList_sellinggas'
377
+ this.sqlName = 'handinspectList_sellinggas'
378
+ this.getfield = {"f_userinfo_code":"客户编号","f_olduserinfo_code":"档案编号","f_user_phone":"客户电话","f_meternumber":"表号",
379
+ "f_user_name":"客户名称","f_user_state":"客户状态","f_address":"地址","f_user_type":"用户类型",
380
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
381
+ "delivery_date":"最后抄表日期",
382
+ "sellcishu":"期间抄表次数","sellpregas":"期间抄表气量","f_orgname":"组织机构"}
383
+ }
384
+ this.clear()
385
+ }
386
+ },
387
+ ready () {
388
+
389
+ readySomething(this).then(() => {
390
+ this.$emit('ready')
391
+ }).catch((error) => {
392
+ this.$emit('error', error)
393
+ })
394
+ },
395
+ methods: {
396
+ initParams () {
397
+ // 初始化气表品牌
398
+ let brandArr = []
399
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
400
+ console.log('item-->',item)
401
+ let temp = {}
402
+ temp.label = item.label
403
+ temp.value = item.value.f_meter_brand
404
+ brandArr.push(temp)
405
+ })
406
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
407
+ console.log('气表品牌---------->',this.meterbrands)
408
+ },
409
+ getotherfooter(){
410
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
411
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
412
+ this.other=[];
413
+ this.footer=[];
414
+ let exportdata = this.getCondition;
415
+ let otherInData=[];
416
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
417
+ let footerData=[],exportfield=this.getfield;
418
+ footerData.push("合计");
419
+ let self = this;
420
+ for(var field in self.sumsmodel){
421
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
422
+ }
423
+ this.footer.push(footerData);
424
+ this.other.push(otherInData);
425
+ },
426
+ cancel() {
427
+ this.show = false
428
+ },
429
+ showmsg(obj){
430
+ this.rowdata=obj
431
+ this.show=true
432
+ },
433
+ getorg (obj) {
434
+ if(obj.resids.length>0){
435
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
436
+ }
437
+ else{
438
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
439
+ }
440
+ },
441
+ userTypeChange () {
442
+ this.gasproperties=[]
443
+ console.log("查气价")
444
+ console.log(this.$refs.paged.model.model)
445
+
446
+ if(this.$refs.paged.model.model !==null) {
447
+ console.log("进if")
448
+ this.$refs.paged.model.model.f_gasproperties=''
449
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
450
+ // this.gasproperties.push({label: '全部', value: ''})
451
+ console.log(this.gasproperties )
452
+ }
453
+ else{
454
+ this.gasproperties =[{label: '全部', value: ''}]
455
+ }
456
+ console.log("最终气价")
457
+ console.log(this.gasproperties )
458
+ },
459
+ search () {
460
+ this.$refs.paged.$refs.cri.search()
461
+ },
462
+ selfSearch (args) {
463
+ console.log('9999999999999999999', this.meter_classify )
464
+ console.log('9999999999999999999', this.meter_classify.length)
465
+ if(this.meter_classify == '卡表'){
466
+ this.model.url='api/af-revenue/sql/inspectList_sellinggas'
467
+ }
468
+ if(this.meter_classify == '机表'){
469
+ this.model.url='api/af-revenue/sql/handinspectList_sellinggas'
470
+ }
471
+ if(this.meter_classify == '物联网表'){
472
+ this.model.url= 'api/af-revenue/sql/getwulw_listgas'
473
+ }
474
+ if (this.meter_classify == '卡表') {
475
+ if (!this.$refs.paged.$refs.cri.model.sellcishumin && !this.$refs.paged.$refs.cri.model.sellcishumax) {
476
+ args.condition = args.condition + "and sellcishu > 0"
477
+ }
478
+ }
479
+ if (this.meter_classify == '机表') {
480
+ if (!this.$refs.paged.$refs.cri.model.handsellcishumin && !this.$refs.paged.$refs.cri.model.handsellcishumax) {
481
+ args.condition = args.condition + "and sellcishu > 0"
482
+ }
483
+ }
484
+ console.log(this.$login.f)
485
+ if(this.$refs.paged.$refs.cri.model.startDate){
486
+ this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate} 00:00:00' `
487
+ }else{
488
+ this.model.params.startDate ='DATEADD(yy,DATEDIFF(yy,0,getdate()),0)'
489
+ }
490
+ if(this.$refs.paged.$refs.cri.model.endDate){
491
+ this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate} 23:59:59' `
492
+ }else{
493
+ this.model.params.endDate ='DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
494
+ }
495
+
496
+ if(this.$refs.paged.$refs.cri.model.contain_newfile){
497
+ if(this.$refs.paged.$refs.cri.model.contain_newfile==='否') {
498
+ if (this.$refs.paged.$refs.cri.model.startDate === ''&&this.$refs.paged.$refs.cri.model.endDate ==='') {
499
+ 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))))"
500
+ }else if (this.$refs.paged.$refs.cri.model.startDate === ''&& this.$refs.paged.$refs.cri.model.endDate !=='') {
501
+ args.condition = args.condition + "and f_open_date not between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and "+this.model.params.endDate
502
+ }else if (this.$refs.paged.$refs.cri.model.startDate !== ''&& this.$refs.paged.$refs.cri.model.endDate ==='') {
503
+ 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))))"
504
+ }
505
+ else {
506
+ args.condition = args.condition + "and f_open_date not between " + this.model.params.startDate + " and " + this.model.params.endDate
507
+ }
508
+ }
509
+ }
510
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
511
+ console.log("拼接的condition", args.condition, this.model)
512
+ this.model.search(args.condition, args.model)
513
+ },
514
+ // show(){
515
+ // this.criteriaShow = true
516
+ // },
517
+ hidden(){
518
+ this.criteriaShow = !this.criteriaShow
519
+ },
520
+ clear(){
521
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
522
+ if(key != 'startDate' && key != 'endDate')
523
+ this.$refs.paged.$refs.cri.model[key] = []
524
+ })
525
+ this.$refs.paged.$refs.cri.model.contain_newfile='是'
526
+ let year = new Date().getFullYear()
527
+ this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
528
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
529
+ }
530
+
531
+ },
532
+ computed: {
533
+ gasproperties() {
534
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
535
+ },
536
+ usertypes() {
537
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
538
+ },
539
+ userstate() {
540
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('客户状态')]
541
+ },
542
+ tablestate () {
543
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
544
+ },
545
+ f_meter_classify(){
546
+ return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '网表', value: '物联网表'} ]
547
+ // return [{label: '卡表', value: '卡表'}]
548
+ },
549
+ contain_newfiles(){
550
+ return [{label: '是', value: '是'},{label: '否', value: '否'} ]
551
+ },
552
+ f_gas_date() {
553
+ return [{label: ' 已通气 ', value: '已通气'}, {label: ' 未通气 ', value: '未通气'} ]
554
+ },
555
+ getCondition () {
556
+ let result = {
557
+ condition: '',
558
+ startDate: '',
559
+ endDate: ''
560
+ // diffDay:' 1=1 '
561
+ }
562
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
563
+ let temp2 = this.$refs.paged.$refs.cri
564
+ if (temp2.model.startDate && temp2.model.endDate) {
565
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
566
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
567
+ } if (!temp2.model.startDate && !temp2.model.endDate) {
568
+ result.startDate = 'new Date().getFullYear()'
569
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
570
+ }
571
+ if (temp2.model.startDate&&!temp2.model.endDate) {
572
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
573
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
574
+ } if (temp2.model.endDate&&!temp2.model.startDate) {
575
+ result.startDate = 'new Date().getFullYear()'
576
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
577
+ }
578
+
579
+ // if(temp2.model.diffday != ''){
580
+ // result.diffDay += " and diffDay "+ temp2.model.diffday;
581
+ // }
582
+ if (temp2.model.contain_newfile==='否'){
583
+ result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
584
+ }
585
+
586
+ return result
587
+ }
588
+ }
589
+ }
590
+ </script>
591
+ <style media="screen">
592
+ .divtext {
593
+ min-width: 50px;
594
+ max-width: 200px;
595
+ border: 1px solid green;
596
+ display: inline-block;
597
+ }
598
+ </style>
599
+
@@ -14,4 +14,12 @@ export default function () {
14
14
  Vue.component('user-query', (resolve) => {
15
15
  require(['./UserQuery'], resolve)
16
16
  })
17
+ // 气量稽查查询
18
+ Vue.component('inspect-list-gas', (resolve) => {
19
+ require(['./InspectListGas'], resolve)
20
+ })
21
+ // 用气稽查查询
22
+ Vue.component('gas-inspection', (resolve) => {
23
+ require(['./GasInspection'], resolve)
24
+ })
17
25
  }
@@ -125,7 +125,7 @@
125
125
  :show-reset-button="reset"
126
126
  :value.sync="model.startDate"
127
127
  id="startDate"
128
- condition = "f_input_date >= '{}' "
128
+ condition = "f_last_hand_date >= '{}' "
129
129
  style="width:60%"
130
130
  placeholder="开始时间"
131
131
  v-model="model.startDate">
@@ -137,7 +137,7 @@
137
137
  :show-reset-button="reset"
138
138
  :value.sync="model.endDate"
139
139
  style="width:60%"
140
- condition = "f_input_date <= '{}'"
140
+ condition = "f_last_hand_date <= '{}'"
141
141
  id="endDate"
142
142
  style="width:60%"
143
143
  placeholder="结束日期"
package/src/main.js CHANGED
@@ -6,7 +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/rongcheng/sale'
9
+ import ShanXianSaleManage from './filiale/shexian/sale'
10
+ // import ShanXianwebSaleManage from './filiale/rongcheng/webmeterManage'
10
11
  import webmeterManage from './webmeterManage'
11
12
  import reportManage from './reportManage'
12
13
  import newmanage from './newmanage'
@@ -48,6 +49,7 @@ saleManage()
48
49
  webmeterManage()
49
50
  ManageHome()
50
51
  newmanage()
52
+ // ShanXianwebSaleManage()
51
53
  reportManage()
52
54
  ShanXianSaleManage()
53
55
  require('system-clients/src/styles/less/bootstrap.less')