manage-client 3.2.52-aode → 3.2.53-aode

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 (68) hide show
  1. package/build/dev-server.js +6 -6
  2. package/client.iml +14 -14
  3. package/package.json +1 -1
  4. package/src/Util.js +383 -383
  5. package/src/components/MeterManage/MeterList.vue +336 -336
  6. package/src/components/WebReport/UserGasAll.vue +214 -214
  7. package/src/components/sale/businessquery/ChangeMeterQuery.vue +627 -627
  8. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  9. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  10. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  11. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  13. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  14. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  15. package/src/components/sale/businessquery/InspectListGas.vue +453 -453
  16. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  17. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  18. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  19. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  20. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  21. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  22. package/src/components/sale/config/exportConfig.js +1 -1
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  35. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  36. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  37. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  38. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  39. package/src/components/sale/report/aode/iot/ReportQuery.vue +344 -344
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -408
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -392
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +530 -530
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +560 -560
  49. package/src/components/webmeter/DrillData/UserGasAll.vue +515 -507
  50. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +488 -488
  51. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  52. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  53. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  54. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  55. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  56. package/src/components/webmeter/WebmeterHandplanQuery2CK.vue +663 -663
  57. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  58. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  59. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  60. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  61. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  62. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  63. package/src/components/webmeter/newwebmeter/UserGasList.vue +293 -293
  64. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  65. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  66. package/src/components/webmeter/report/ReportList.vue +211 -211
  67. package/src/main.js +56 -56
  68. package/src/saleManage.js +256 -256
@@ -1,453 +1,453 @@
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;司</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">&nbsp;&nbsp;&nbsp;购气开始</label>
17
- <label v-else for="startDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表开始</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">&nbsp;&nbsp;&nbsp;购气结束</label>
29
- <label v-else for="startDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表结束</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
-
40
- <div class="col-sm-2 ">
41
- <label for="f_gasproperties"class="font_normal_body">&nbsp;&nbsp;&nbsp;用气性质</label>
42
- <v-select id="f_gasproperties"
43
- style="width:60%"
44
- v-model="model.f_gasproperties"
45
- placeholder='用气性质'
46
- :value.sync="model.f_gasproperties"
47
- :options='$parent.$parent.gasproperties'
48
- condition="f_gasproperties = '{}'"
49
- close-on-select >
50
- </v-select>
51
- </div>
52
-
53
- <div class="span" style="float:right;">
54
- <button class="btn button_search" @click="search()">查询</button>
55
- <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
56
- <export-excel-plus :defaultselect="$parent.$parent.selectfields" :data="$parent.$parent.getCondition"
57
- :field="$parent.$parent.getfield"
58
- :exportprogress="true"
59
- sqlurl="rs/logic/exportfileplus" :sql-name="$parent.$parent.sqlName" template-name='购气稽查导出' :choose-col="true"></export-excel-plus>
60
- <print-data :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
61
- <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>
62
-
63
- </div>
64
- </div>
65
- <div class="row" v-show="$parent.$parent.criteriaShow">
66
-
67
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
68
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;期间次数&nbsp;</label>
69
- <div class="row">
70
- <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumin"
71
- condition="sellcishu >= {} " placeholder="">
72
- <label class="font_normal_body"> ≤ x ≤ </label>
73
- <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumax"
74
- condition="sellcishu <= {} " placeholder="">
75
- </div>
76
-
77
-
78
- </div>
79
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
80
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;期间次数&nbsp;</label>
81
-
82
- <div class="row">
83
- <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumin"
84
- condition="sellcishu >= {} " placeholder="">
85
- <label class="font_normal_body"> ≤ x ≤ </label>
86
- <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumax"
87
- condition="sellcishu <= {} " placeholder="">
88
- </div>
89
-
90
- </div>
91
-
92
- <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
93
- <label class="font_normal_body">期间购气量&nbsp;</label>
94
- <div class="row">
95
- <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmin"
96
- condition="sellpregas >= {} " placeholder="">
97
- <label class="font_normal_body"> ≤ x ≤ </label>
98
- <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmax"
99
- condition="sellpregas <= {} " placeholder="">
100
- </div>
101
-
102
- </div>
103
- <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
104
- <label class="font_normal_body">期间用气量&nbsp;</label>
105
- <div class="row">
106
- <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmin"
107
- condition="sellpregas >= {} " placeholder="">
108
- <label class="font_normal_body"> ≤ x ≤ </label>
109
- <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmax"
110
- condition="sellpregas <= {} " placeholder="">
111
- </div>
112
- </div>
113
- <div class="col-sm-2 ">
114
- <label for="contain_newfile" class="font_normal_body">包含新开户</label>
115
- <v-select id="contain_newfile"
116
- v-model="model.contain_newfile"
117
- style="width:60%"
118
- :value.sync="model.contain_newfile"
119
- :options='$parent.$parent.contain_newfiles'
120
- :value-single="true"
121
- close-on-select >
122
- </v-select>
123
- </div>
124
- <div class="col-sm-2 ">
125
- <label for="f_meter_classify"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表类型</label>
126
- <v-select id="f_meter_classify"
127
- v-model="$parent.$parent.meter_classify"
128
- placeholder='表类型'
129
- style="width:70%"
130
- :value.sync="$parent.$parent.meter_classify"
131
- :options='$parent.$parent.f_meter_classify'
132
- condition="f_meter_type like '%{}'"
133
- :value-single="true"
134
- close-on-select >
135
- </v-select>
136
- </div>
137
-
138
-
139
- <div class="col-sm-2 ">
140
- <label for="f_table_state"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表状态</label>
141
- <v-select id="f_table_state"
142
- style="width:60%"
143
- v-model="model.f_table_state"
144
- placeholder='表状态'
145
- :value.sync="model.f_table_state"
146
- :options='$parent.$parent.tablestate'
147
- condition="f_table_state = '{}'"
148
- close-on-select >
149
- </v-select>
150
- </div>
151
-
152
- </div>
153
-
154
- </div>
155
- </criteria>
156
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
157
- <template partial='head'>
158
- <tr>
159
- <th><nobr>序号</nobr></th>
160
- <th><nobr>客户编号</nobr></th>
161
- <th><nobr>用户电话</nobr></th>
162
- <th><nobr>表号</nobr></th>
163
- <th><nobr>客户名称</nobr></th>
164
- <th><nobr>地址</nobr></th>
165
- <th><nobr>用户类型</nobr></th>
166
- <th><nobr>用气性质</nobr></th>
167
- <th><nobr>表具状态</nobr></th>
168
- <th><nobr>气表品牌</nobr></th>
169
- <th><nobr>气价名称</nobr></th>
170
- <th><nobr>最后购气日期</nobr></th>
171
- <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气次数</nobr></th>-->
172
- <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表次数</nobr></th>-->
173
- <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气量</nobr></th>-->
174
- <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表气量</nobr></th>-->
175
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>期间购气次数</nobr></th>
176
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表次数</nobr></th>
177
- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>期间购气量</nobr></th>
178
- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表气量</nobr></th>
179
- <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>累计未购气天数</nobr></th>-->
180
- <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>累计未抄表天数</nobr></th>-->
181
- <th><nobr>组织机构</nobr></th>
182
- </tr>
183
- </template>
184
- <template partial='body'>
185
- <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
186
- <td style="text-align: center;"><nobr>
187
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
188
- </nobr> </td>
189
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
190
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
191
- <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
192
- <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
193
- <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
194
- <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
195
- <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
196
- <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
197
- <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
198
- <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
199
- <!-- <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>-->
200
- <!-- <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>-->
201
- <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>
202
- <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>
203
- <!-- <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>-->
204
- <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
205
- </template>
206
- </data-grid>
207
- </criteria-paged>
208
- <table class="table-hover">
209
- <tr style="position: relative" class="table-bordered">
210
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
211
- <!-- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总购气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>-->
212
- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">期间购气量合计:&emsp;&emsp;{{sumsmodel.sellpregas}}</td>
213
- <!-- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总抄表气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>-->
214
- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">期间抄表气量合计:&emsp;{{sumsmodel.sellpregas}}</td>
215
- </tr>
216
- </table>
217
- </div>
218
- <div v-if="show">
219
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
220
- </div>
221
- </div></div>
222
- </template>
223
- <script>
224
- /**
225
- *用户档案查询列表以及添加操作组件
226
- */
227
- import { PagedList } from 'vue-client'
228
- import Vue from 'vue'
229
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
230
-
231
- let readySomething = async function (self) {
232
- self.$refs.paged.$refs.cri.model.f_table_state = ['正常']
233
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
234
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
235
- let year = new Date().getFullYear()
236
- self.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
237
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
238
-
239
- // await self.$refs.paged.$refs.cri.search()
240
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
241
- }
242
- export default {
243
- title: '购气稽查',
244
- data () {
245
- return {
246
- org:[this.$login.f.orgid],
247
- criteriaShow: false,
248
- meter_classify:'卡表',
249
- filialeNameStr: null,
250
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
251
- userid: this.$login.f.id,
252
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
253
- getfield:{"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
254
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
255
- "delivery_date":"最后购气日期",
256
- "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"},
257
- model: new PagedList('rs/sql/inspectList_sellinggas', 50,{},{sellpregas: 0}),
258
- rows: null,
259
- //orgid:'',
260
- sumsmodel: {},
261
- sqlName:'inspectList_sellinggas',
262
- config: {
263
- defaultPrint: ['f_userinfo_code','f_user_id']
264
- },
265
- show:false,
266
- rowdata:{},
267
- initres: {
268
- org:[this.$login.f.orgid],
269
- dep:[],
270
- user:[],
271
- },
272
- defaultfield: [],
273
- selectfields:[],
274
- searchCondition:[],
275
- gasproperties:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
276
- tablestate :[{label: '全部', value: ''},...this.$appdata.getParam('气表状态')]
277
- }
278
- },
279
- watch:{
280
-
281
- meter_classify(val){
282
- if(val == '卡表') {
283
- this.url = 'rs/sql/inspectList_sellinggas'
284
- this.sqlName = 'inspectList_sellinggas'
285
- this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
286
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
287
- "delivery_date":"最后购气日期",
288
- "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"}
289
- }else{
290
- this.url = 'rs/sql/handinspectList_sellinggas'
291
- this.sqlName = 'handinspectList_sellinggas'
292
- this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
293
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
294
- "delivery_date":"最后抄表日期",
295
- "sellcishu":"期间抄表次数","sellpregas":"期间抄表气量","f_orgname":"组织"}
296
- }
297
- this.clear()
298
- }
299
- },
300
- ready () {
301
-
302
- readySomething(this).then(() => {
303
- this.$emit('ready')
304
- }).catch((error) => {
305
- this.$emit('error', error)
306
- })
307
- },
308
- methods: {
309
- cancel() {
310
- this.show = false
311
- let self = this;
312
- setTimeout(function(){
313
- self.$refs.paged.$refs.cri.model = self.searchCondition;
314
- },800);
315
- },
316
- showmsg(obj){
317
- this.searchCondition = this.$refs.paged.$refs.cri.model
318
- this.rowdata=obj
319
- this.show=true
320
- },
321
- getorg (obj) {
322
- if(obj.resids.length>0){
323
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
324
- }
325
- else{
326
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
327
- }
328
- },
329
- userTypeChange () {
330
- this.gasproperties=[]
331
- console.log("查气价")
332
- console.log(this.$refs.paged.$refs.cri.model)
333
-
334
- if(this.$refs.paged.$refs.cri.model !==null) {
335
- console.log("进if")
336
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
337
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
338
- // this.gasproperties.push({label: '全部', value: ''})
339
- console.log(this.gasproperties )
340
- }
341
- else{
342
- this.gasproperties =[{label: '全部', value: ''}]
343
- }
344
- console.log("最终气价")
345
- console.log(this.gasproperties )
346
- },
347
- search () {
348
- this.$refs.paged.$refs.cri.search()
349
- },
350
- selfSearch (args) {
351
- this.model.url = this.meter_classify === '卡表' ? 'rs/sql/inspectList_sellinggas': 'rs/sql/handinspectList_sellinggas'
352
- console.log(this.$login.f)
353
- if(this.$refs.paged.$refs.cri.model.startDate){
354
- this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate} 00:00:00' `
355
- }else{
356
- this.model.params.startDate ='DATEADD(yy,DATEDIFF(yy,0,getdate()),0)'
357
- }
358
- if(this.$refs.paged.$refs.cri.model.endDate){
359
- this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate} 23:59:59' `
360
- }else{
361
- this.model.params.endDate ='DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
362
- }
363
-
364
- if(this.$refs.paged.$refs.cri.model.contain_newfile){
365
- if(this.$refs.paged.$refs.cri.model.contain_newfile==='否') {
366
- if (this.$refs.paged.$refs.cri.model.startDate === ''&&this.$refs.paged.$refs.cri.model.endDate ==='') {
367
- 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))))"
368
- }else if (this.$refs.paged.$refs.cri.model.startDate === ''&& this.$refs.paged.$refs.cri.model.endDate !=='') {
369
- args.condition = args.condition + "and f_open_date not between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and "+this.model.params.endDate
370
- }else if (this.$refs.paged.$refs.cri.model.startDate !== ''&& this.$refs.paged.$refs.cri.model.endDate ==='') {
371
- 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))))"
372
- }
373
- else {
374
- args.condition = args.condition + "and f_open_date not between " + this.model.params.startDate + " and " + this.model.params.endDate
375
- }
376
- }
377
- }
378
- args.condition = args.condition+ ` ${this.filialeCodeStr}`
379
- console.log("拼接的condition", args.condition, this.model)
380
- this.model.search(args.condition, args.model)
381
- },
382
- // show(){
383
- // this.criteriaShow = true
384
- // },
385
- hidden(){
386
- this.criteriaShow = !this.criteriaShow
387
- },
388
- clear(){
389
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
390
- if(key != 'startDate' && key != 'endDate')
391
- this.$refs.paged.$refs.cri.model[key] = []
392
- })
393
- this.$refs.paged.$refs.cri.model.contain_newfile='是'
394
- let year = new Date().getFullYear()
395
- this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
396
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
397
- }
398
-
399
- },
400
- computed: {
401
-
402
- f_meter_classify(){
403
- return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'} ]
404
- // return [{label: '卡表', value: '卡表'}]
405
- },
406
- contain_newfiles(){
407
- return [{label: '是', value: '是'},{label: '否', value: '否'} ]
408
- },
409
- getCondition () {
410
- let result = {
411
- condition: '',
412
- startDate: '',
413
- endDate: ''
414
- // diffDay:' 1=1 '
415
- }
416
- result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
417
- let temp2 = this.$refs.paged.$refs.cri
418
- if (temp2.model.startDate && temp2.model.endDate) {
419
- result.startDate = ` '${temp2.model.startDate} 00:00:00'`
420
- result.endDate = ` '${temp2.model.endDate} 23:59:59'`
421
- } if (!temp2.model.startDate && !temp2.model.endDate) {
422
- result.startDate = 'new Date().getFullYear()'
423
- result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
424
- }
425
- if (temp2.model.startDate&&!temp2.model.endDate) {
426
- result.startDate = ` '${temp2.model.startDate} 00:00:00'`
427
- result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
428
- } if (temp2.model.endDate&&!temp2.model.startDate) {
429
- result.startDate = 'new Date().getFullYear()'
430
- result.endDate = ` '${temp2.model.endDate} 23:59:59'`
431
- }
432
-
433
- // if(temp2.model.diffday != ''){
434
- // result.diffDay += " and diffDay "+ temp2.model.diffday;
435
- // }
436
- if (temp2.model.contain_newfile==='否'){
437
- result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
438
- }
439
-
440
- return result
441
- }
442
- }
443
- }
444
- </script>
445
- <style media="screen">
446
- .divtext {
447
- min-width: 50px;
448
- max-width: 200px;
449
- border: 1px solid green;
450
- display: inline-block;
451
- }
452
- </style>
453
-
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;司</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">&nbsp;&nbsp;&nbsp;购气开始</label>
17
+ <label v-else for="startDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表开始</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">&nbsp;&nbsp;&nbsp;购气结束</label>
29
+ <label v-else for="startDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表结束</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
+
40
+ <div class="col-sm-2 ">
41
+ <label for="f_gasproperties"class="font_normal_body">&nbsp;&nbsp;&nbsp;用气性质</label>
42
+ <v-select id="f_gasproperties"
43
+ style="width:60%"
44
+ v-model="model.f_gasproperties"
45
+ placeholder='用气性质'
46
+ :value.sync="model.f_gasproperties"
47
+ :options='$parent.$parent.gasproperties'
48
+ condition="f_gasproperties = '{}'"
49
+ close-on-select >
50
+ </v-select>
51
+ </div>
52
+
53
+ <div class="span" style="float:right;">
54
+ <button class="btn button_search" @click="search()">查询</button>
55
+ <button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
56
+ <export-excel-plus :defaultselect="$parent.$parent.selectfields" :data="$parent.$parent.getCondition"
57
+ :field="$parent.$parent.getfield"
58
+ :exportprogress="true"
59
+ sqlurl="rs/logic/exportfileplus" :sql-name="$parent.$parent.sqlName" template-name='购气稽查导出' :choose-col="true"></export-excel-plus>
60
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
61
+ <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>
62
+
63
+ </div>
64
+ </div>
65
+ <div class="row" v-show="$parent.$parent.criteriaShow">
66
+
67
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
68
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;期间次数&nbsp;</label>
69
+ <div class="row">
70
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumin"
71
+ condition="sellcishu >= {} " placeholder="">
72
+ <label class="font_normal_body"> ≤ x ≤ </label>
73
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellcishumax"
74
+ condition="sellcishu <= {} " placeholder="">
75
+ </div>
76
+
77
+
78
+ </div>
79
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
80
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;期间次数&nbsp;</label>
81
+
82
+ <div class="row">
83
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumin"
84
+ condition="sellcishu >= {} " placeholder="">
85
+ <label class="font_normal_body"> ≤ x ≤ </label>
86
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellcishumax"
87
+ condition="sellcishu <= {} " placeholder="">
88
+ </div>
89
+
90
+ </div>
91
+
92
+ <div v-if="$parent.$parent.meter_classify == '卡表'" class="col-sm-2 flex-row" style="white-space: nowrap">
93
+ <label class="font_normal_body">期间购气量&nbsp;</label>
94
+ <div class="row">
95
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmin"
96
+ condition="sellpregas >= {} " placeholder="">
97
+ <label class="font_normal_body"> ≤ x ≤ </label>
98
+ <input type="text" style="width:30%" class="input_search" v-model="model.sellpregasmax"
99
+ condition="sellpregas <= {} " placeholder="">
100
+ </div>
101
+
102
+ </div>
103
+ <div v-if="$parent.$parent.meter_classify == '机表'" class="col-sm-2 flex-row" style="white-space: nowrap">
104
+ <label class="font_normal_body">期间用气量&nbsp;</label>
105
+ <div class="row">
106
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmin"
107
+ condition="sellpregas >= {} " placeholder="">
108
+ <label class="font_normal_body"> ≤ x ≤ </label>
109
+ <input type="text" style="width:30%" class="input_search" v-model="model.handsellpregasmax"
110
+ condition="sellpregas <= {} " placeholder="">
111
+ </div>
112
+ </div>
113
+ <div class="col-sm-2 ">
114
+ <label for="contain_newfile" class="font_normal_body">包含新开户</label>
115
+ <v-select id="contain_newfile"
116
+ v-model="model.contain_newfile"
117
+ style="width:60%"
118
+ :value.sync="model.contain_newfile"
119
+ :options='$parent.$parent.contain_newfiles'
120
+ :value-single="true"
121
+ close-on-select >
122
+ </v-select>
123
+ </div>
124
+ <div class="col-sm-2 ">
125
+ <label for="f_meter_classify"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表类型</label>
126
+ <v-select id="f_meter_classify"
127
+ v-model="$parent.$parent.meter_classify"
128
+ placeholder='表类型'
129
+ style="width:70%"
130
+ :value.sync="$parent.$parent.meter_classify"
131
+ :options='$parent.$parent.f_meter_classify'
132
+ condition="f_meter_type like '%{}'"
133
+ :value-single="true"
134
+ close-on-select >
135
+ </v-select>
136
+ </div>
137
+
138
+
139
+ <div class="col-sm-2 ">
140
+ <label for="f_table_state"class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;表状态</label>
141
+ <v-select id="f_table_state"
142
+ style="width:60%"
143
+ v-model="model.f_table_state"
144
+ placeholder='表状态'
145
+ :value.sync="model.f_table_state"
146
+ :options='$parent.$parent.tablestate'
147
+ condition="f_table_state = '{}'"
148
+ close-on-select >
149
+ </v-select>
150
+ </div>
151
+
152
+ </div>
153
+
154
+ </div>
155
+ </criteria>
156
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
157
+ <template partial='head'>
158
+ <tr>
159
+ <th><nobr>序号</nobr></th>
160
+ <th><nobr>客户编号</nobr></th>
161
+ <th><nobr>用户电话</nobr></th>
162
+ <th><nobr>表号</nobr></th>
163
+ <th><nobr>客户名称</nobr></th>
164
+ <th><nobr>地址</nobr></th>
165
+ <th><nobr>用户类型</nobr></th>
166
+ <th><nobr>用气性质</nobr></th>
167
+ <th><nobr>表具状态</nobr></th>
168
+ <th><nobr>气表品牌</nobr></th>
169
+ <th><nobr>气价名称</nobr></th>
170
+ <th><nobr>最后购气日期</nobr></th>
171
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气次数</nobr></th>-->
172
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表次数</nobr></th>-->
173
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>总购气量</nobr></th>-->
174
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>总抄表气量</nobr></th>-->
175
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>期间购气次数</nobr></th>
176
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表次数</nobr></th>
177
+ <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>期间购气量</nobr></th>
178
+ <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>期间抄表气量</nobr></th>
179
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '卡表'"><nobr>累计未购气天数</nobr></th>-->
180
+ <!-- <th v-show="$parent.$parent.$parent.meter_classify == '机表'"><nobr>累计未抄表天数</nobr></th>-->
181
+ <th><nobr>组织机构</nobr></th>
182
+ </tr>
183
+ </template>
184
+ <template partial='body'>
185
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
186
+ <td style="text-align: center;"><nobr>
187
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
188
+ </nobr> </td>
189
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
190
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
191
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
192
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
193
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
194
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
195
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
196
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
197
+ <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
198
+ <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
199
+ <!-- <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>-->
200
+ <!-- <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>-->
201
+ <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>
202
+ <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>
203
+ <!-- <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>-->
204
+ <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
205
+ </template>
206
+ </data-grid>
207
+ </criteria-paged>
208
+ <table class="table-hover">
209
+ <tr style="position: relative" class="table-bordered">
210
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
211
+ <!-- <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总购气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>-->
212
+ <td v-if="meter_classify == '卡表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">期间购气量合计:&emsp;&emsp;{{sumsmodel.sellpregas}}</td>
213
+ <!-- <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">总抄表气量合计:&emsp;&emsp;{{sumsmodel.pregas}}</td>-->
214
+ <td v-if="meter_classify == '机表'" style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">期间抄表气量合计:&emsp;{{sumsmodel.sellpregas}}</td>
215
+ </tr>
216
+ </table>
217
+ </div>
218
+ <div v-if="show">
219
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
220
+ </div>
221
+ </div></div>
222
+ </template>
223
+ <script>
224
+ /**
225
+ *用户档案查询列表以及添加操作组件
226
+ */
227
+ import { PagedList } from 'vue-client'
228
+ import Vue from 'vue'
229
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
230
+
231
+ let readySomething = async function (self) {
232
+ self.$refs.paged.$refs.cri.model.f_table_state = ['正常']
233
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
234
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
235
+ let year = new Date().getFullYear()
236
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
237
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
238
+
239
+ // await self.$refs.paged.$refs.cri.search()
240
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
241
+ }
242
+ export default {
243
+ title: '购气稽查',
244
+ data () {
245
+ return {
246
+ org:[this.$login.f.orgid],
247
+ criteriaShow: false,
248
+ meter_classify:'卡表',
249
+ filialeNameStr: null,
250
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
251
+ userid: this.$login.f.id,
252
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
253
+ getfield:{"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
254
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
255
+ "delivery_date":"最后购气日期",
256
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"},
257
+ model: new PagedList('rs/sql/inspectList_sellinggas', 50,{},{sellpregas: 0}),
258
+ rows: null,
259
+ //orgid:'',
260
+ sumsmodel: {},
261
+ sqlName:'inspectList_sellinggas',
262
+ config: {
263
+ defaultPrint: ['f_userinfo_code','f_user_id']
264
+ },
265
+ show:false,
266
+ rowdata:{},
267
+ initres: {
268
+ org:[this.$login.f.orgid],
269
+ dep:[],
270
+ user:[],
271
+ },
272
+ defaultfield: [],
273
+ selectfields:[],
274
+ searchCondition:[],
275
+ gasproperties:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
276
+ tablestate :[{label: '全部', value: ''},...this.$appdata.getParam('气表状态')]
277
+ }
278
+ },
279
+ watch:{
280
+
281
+ meter_classify(val){
282
+ if(val == '卡表') {
283
+ this.url = 'rs/sql/inspectList_sellinggas'
284
+ this.sqlName = 'inspectList_sellinggas'
285
+ this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
286
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
287
+ "delivery_date":"最后购气日期",
288
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"}
289
+ }else{
290
+ this.url = 'rs/sql/handinspectList_sellinggas'
291
+ this.sqlName = 'handinspectList_sellinggas'
292
+ this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
293
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
294
+ "delivery_date":"最后抄表日期",
295
+ "sellcishu":"期间抄表次数","sellpregas":"期间抄表气量","f_orgname":"组织"}
296
+ }
297
+ this.clear()
298
+ }
299
+ },
300
+ ready () {
301
+
302
+ readySomething(this).then(() => {
303
+ this.$emit('ready')
304
+ }).catch((error) => {
305
+ this.$emit('error', error)
306
+ })
307
+ },
308
+ methods: {
309
+ cancel() {
310
+ this.show = false
311
+ let self = this;
312
+ setTimeout(function(){
313
+ self.$refs.paged.$refs.cri.model = self.searchCondition;
314
+ },800);
315
+ },
316
+ showmsg(obj){
317
+ this.searchCondition = this.$refs.paged.$refs.cri.model
318
+ this.rowdata=obj
319
+ this.show=true
320
+ },
321
+ getorg (obj) {
322
+ if(obj.resids.length>0){
323
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
324
+ }
325
+ else{
326
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
327
+ }
328
+ },
329
+ userTypeChange () {
330
+ this.gasproperties=[]
331
+ console.log("查气价")
332
+ console.log(this.$refs.paged.$refs.cri.model)
333
+
334
+ if(this.$refs.paged.$refs.cri.model !==null) {
335
+ console.log("进if")
336
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
337
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
338
+ // this.gasproperties.push({label: '全部', value: ''})
339
+ console.log(this.gasproperties )
340
+ }
341
+ else{
342
+ this.gasproperties =[{label: '全部', value: ''}]
343
+ }
344
+ console.log("最终气价")
345
+ console.log(this.gasproperties )
346
+ },
347
+ search () {
348
+ this.$refs.paged.$refs.cri.search()
349
+ },
350
+ selfSearch (args) {
351
+ this.model.url = this.meter_classify === '卡表' ? 'rs/sql/inspectList_sellinggas': 'rs/sql/handinspectList_sellinggas'
352
+ console.log(this.$login.f)
353
+ if(this.$refs.paged.$refs.cri.model.startDate){
354
+ this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate} 00:00:00' `
355
+ }else{
356
+ this.model.params.startDate ='DATEADD(yy,DATEDIFF(yy,0,getdate()),0)'
357
+ }
358
+ if(this.$refs.paged.$refs.cri.model.endDate){
359
+ this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate} 23:59:59' `
360
+ }else{
361
+ this.model.params.endDate ='DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
362
+ }
363
+
364
+ if(this.$refs.paged.$refs.cri.model.contain_newfile){
365
+ if(this.$refs.paged.$refs.cri.model.contain_newfile==='否') {
366
+ if (this.$refs.paged.$refs.cri.model.startDate === ''&&this.$refs.paged.$refs.cri.model.endDate ==='') {
367
+ 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))))"
368
+ }else if (this.$refs.paged.$refs.cri.model.startDate === ''&& this.$refs.paged.$refs.cri.model.endDate !=='') {
369
+ args.condition = args.condition + "and f_open_date not between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and "+this.model.params.endDate
370
+ }else if (this.$refs.paged.$refs.cri.model.startDate !== ''&& this.$refs.paged.$refs.cri.model.endDate ==='') {
371
+ 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))))"
372
+ }
373
+ else {
374
+ args.condition = args.condition + "and f_open_date not between " + this.model.params.startDate + " and " + this.model.params.endDate
375
+ }
376
+ }
377
+ }
378
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
379
+ console.log("拼接的condition", args.condition, this.model)
380
+ this.model.search(args.condition, args.model)
381
+ },
382
+ // show(){
383
+ // this.criteriaShow = true
384
+ // },
385
+ hidden(){
386
+ this.criteriaShow = !this.criteriaShow
387
+ },
388
+ clear(){
389
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
390
+ if(key != 'startDate' && key != 'endDate')
391
+ this.$refs.paged.$refs.cri.model[key] = []
392
+ })
393
+ this.$refs.paged.$refs.cri.model.contain_newfile='是'
394
+ let year = new Date().getFullYear()
395
+ this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
396
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
397
+ }
398
+
399
+ },
400
+ computed: {
401
+
402
+ f_meter_classify(){
403
+ return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'} ]
404
+ // return [{label: '卡表', value: '卡表'}]
405
+ },
406
+ contain_newfiles(){
407
+ return [{label: '是', value: '是'},{label: '否', value: '否'} ]
408
+ },
409
+ getCondition () {
410
+ let result = {
411
+ condition: '',
412
+ startDate: '',
413
+ endDate: ''
414
+ // diffDay:' 1=1 '
415
+ }
416
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
417
+ let temp2 = this.$refs.paged.$refs.cri
418
+ if (temp2.model.startDate && temp2.model.endDate) {
419
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
420
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
421
+ } if (!temp2.model.startDate && !temp2.model.endDate) {
422
+ result.startDate = 'new Date().getFullYear()'
423
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
424
+ }
425
+ if (temp2.model.startDate&&!temp2.model.endDate) {
426
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
427
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
428
+ } if (temp2.model.endDate&&!temp2.model.startDate) {
429
+ result.startDate = 'new Date().getFullYear()'
430
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
431
+ }
432
+
433
+ // if(temp2.model.diffday != ''){
434
+ // result.diffDay += " and diffDay "+ temp2.model.diffday;
435
+ // }
436
+ if (temp2.model.contain_newfile==='否'){
437
+ result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
438
+ }
439
+
440
+ return result
441
+ }
442
+ }
443
+ }
444
+ </script>
445
+ <style media="screen">
446
+ .divtext {
447
+ min-width: 50px;
448
+ max-width: 200px;
449
+ border: 1px solid green;
450
+ display: inline-block;
451
+ }
452
+ </style>
453
+