manage-client 3.2.79-aode → 3.2.80-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 (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,456 +1,456 @@
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 v-show="$parent.$parent.$parent.meter_classify == '卡表'"><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 v-show="$parent.$parent.$parent.meter_classify != '卡表'"><nobr>累计未抄表天数</nobr></th>-->
182
- <th><nobr>组织机构</nobr></th>
183
- </tr>
184
- </template>
185
- <template partial='body'>
186
- <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
187
- <td style="text-align: center;"><nobr>
188
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
189
- </nobr> </td>
190
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
191
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
192
- <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
193
- <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
194
- <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
195
- <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
196
- <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
197
- <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
198
- <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
199
- <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
200
- <!-- <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>-->
201
- <!-- <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>-->
202
- <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>
203
- <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>
204
- <!-- <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>-->
205
- <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
206
- </template>
207
- </data-grid>
208
- </criteria-paged>
209
- <table class="table-hover">
210
- <tr style="position: relative" class="table-bordered">
211
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</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.pregas}}</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.sellpregas}}</td>
214
- <!-- <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>-->
215
- <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>
216
- </tr>
217
- </table>
218
- </div>
219
- <div v-if="show">
220
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
221
- </div>
222
- </div></div>
223
- </template>
224
- <script>
225
- /**
226
- *用户档案查询列表以及添加操作组件
227
- */
228
- import { PagedList } from 'vue-client'
229
- import Vue from 'vue'
230
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
231
-
232
- let readySomething = async function (self) {
233
- self.$refs.paged.$refs.cri.model.f_table_state = ['正常']
234
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
235
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
236
- let year = new Date().getFullYear()
237
- self.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
238
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
239
-
240
- // await self.$refs.paged.$refs.cri.search()
241
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
242
- }
243
- export default {
244
- title: '购气稽查',
245
- data () {
246
- return {
247
- org:[this.$login.f.orgid],
248
- criteriaShow: false,
249
- meter_classify:'卡表',
250
- filialeNameStr: null,
251
- filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
252
- userid: this.$login.f.id,
253
- source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
254
- getfield:{"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
255
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
256
- "delivery_date":"最后购气日期",
257
- "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"},
258
- model: new PagedList('rs/sql/inspectList_sellinggas', 50,{},{sellpregas: 0}),
259
- rows: null,
260
- //orgid:'',
261
- sumsmodel: {},
262
- sqlName:'inspectList_sellinggas',
263
- config: {
264
- defaultPrint: ['f_userinfo_code','f_user_id']
265
- },
266
- show:false,
267
- rowdata:{},
268
- initres: {
269
- org:[this.$login.f.orgid],
270
- dep:[],
271
- user:[],
272
- },
273
- defaultfield: [],
274
- selectfields:[],
275
- searchCondition:[],
276
- gasproperties:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
277
- tablestate :[{label: '全部', value: ''},...this.$appdata.getParam('气表状态')]
278
- }
279
- },
280
- watch:{
281
-
282
- meter_classify(val){
283
- if(val == '卡表') {
284
- this.url = 'rs/sql/inspectList_sellinggas'
285
- this.sqlName = 'inspectList_sellinggas'
286
- this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
287
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
288
- "delivery_date":"最后购气日期",
289
- "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"}
290
- }else{
291
- this.url = 'rs/sql/handinspectList_sellinggas'
292
- this.sqlName = 'handinspectList_sellinggas'
293
- this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
294
- "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
295
- "delivery_date":"最后抄表日期",
296
- "sellcishu":"期间抄表次数","sellpregas":"期间抄表气量","f_orgname":"组织"}
297
- }
298
- this.clear()
299
- }
300
- },
301
- ready () {
302
-
303
- readySomething(this).then(() => {
304
- this.$emit('ready')
305
- }).catch((error) => {
306
- this.$emit('error', error)
307
- })
308
- },
309
- methods: {
310
- cancel() {
311
- this.show = false
312
- let self = this;
313
- setTimeout(function(){
314
- self.$refs.paged.$refs.cri.model = self.searchCondition;
315
- },800);
316
- },
317
- showmsg(obj){
318
- this.searchCondition = this.$refs.paged.$refs.cri.model
319
- this.rowdata=obj
320
- this.show=true
321
- },
322
- getorg (obj) {
323
- if(obj.resids.length>0){
324
- this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
325
- }
326
- else{
327
- this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
328
- }
329
- },
330
- userTypeChange () {
331
- this.gasproperties=[]
332
- console.log("查气价")
333
- console.log(this.$refs.paged.$refs.cri.model)
334
-
335
- if(this.$refs.paged.$refs.cri.model !==null) {
336
- console.log("进if")
337
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
338
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
339
- // this.gasproperties.push({label: '全部', value: ''})
340
- console.log(this.gasproperties )
341
- }
342
- else{
343
- this.gasproperties =[{label: '全部', value: ''}]
344
- }
345
- console.log("最终气价")
346
- console.log(this.gasproperties )
347
- },
348
- search () {
349
- this.$refs.paged.$refs.cri.search()
350
- },
351
- selfSearch (args) {
352
- this.model.url = this.meter_classify === '卡表' ? 'rs/sql/inspectList_sellinggas': 'rs/sql/handinspectList_sellinggas'
353
- console.log(this.$login.f)
354
- if(this.$refs.paged.$refs.cri.model.startDate){
355
- this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate} 00:00:00' `
356
- }else{
357
- this.model.params.startDate ='DATEADD(yy,DATEDIFF(yy,0,getdate()),0)'
358
- }
359
- if(this.$refs.paged.$refs.cri.model.endDate){
360
- this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate} 23:59:59' `
361
- }else{
362
- this.model.params.endDate ='DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
363
- }
364
-
365
- if(this.$refs.paged.$refs.cri.model.contain_newfile){
366
- if(this.$refs.paged.$refs.cri.model.contain_newfile==='否') {
367
- if (this.$refs.paged.$refs.cri.model.startDate === ''&&this.$refs.paged.$refs.cri.model.endDate ==='') {
368
- 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))))"
369
- }else if (this.$refs.paged.$refs.cri.model.startDate === ''&& this.$refs.paged.$refs.cri.model.endDate !=='') {
370
- args.condition = args.condition + "and f_open_date not between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and "+this.model.params.endDate
371
- }else if (this.$refs.paged.$refs.cri.model.startDate !== ''&& this.$refs.paged.$refs.cri.model.endDate ==='') {
372
- 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))))"
373
- }
374
- else {
375
- args.condition = args.condition + "and f_open_date not between " + this.model.params.startDate + " and " + this.model.params.endDate
376
- }
377
- }
378
- }
379
- args.condition = args.condition+ ` ${this.filialeCodeStr}`
380
- args.condition = args.condition+ `and f_meter_type like '%${this.meter_classify }%'`
381
- console.log("拼接的condition", args.condition, this.model)
382
- this.model.search(args.condition, args.model)
383
- },
384
- // show(){
385
- // this.criteriaShow = true
386
- // },
387
- hidden(){
388
- this.criteriaShow = !this.criteriaShow
389
- },
390
- clear(){
391
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
392
- if(key != 'startDate' && key != 'endDate')
393
- this.$refs.paged.$refs.cri.model[key] = []
394
- })
395
- this.$refs.paged.$refs.cri.model.contain_newfile='是'
396
- let year = new Date().getFullYear()
397
- this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
398
- this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
399
- }
400
-
401
- },
402
- computed: {
403
-
404
- f_meter_classify(){
405
- return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '物联网表', value: '物联网表'} ]
406
- // return [{label: '卡表', value: '卡表'}]
407
- },
408
- contain_newfiles(){
409
- return [{label: '是', value: '是'},{label: '否', value: '否'} ]
410
- },
411
- getCondition () {
412
- let result = {
413
- condition: '',
414
- startDate: '',
415
- endDate: ''
416
- // diffDay:' 1=1 '
417
- }
418
- result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
419
- let temp2 = this.$refs.paged.$refs.cri
420
- if (temp2.model.startDate && temp2.model.endDate) {
421
- result.startDate = ` '${temp2.model.startDate} 00:00:00'`
422
- result.endDate = ` '${temp2.model.endDate} 23:59:59'`
423
- } if (!temp2.model.startDate && !temp2.model.endDate) {
424
- result.startDate = 'new Date().getFullYear()'
425
- result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
426
- }
427
- if (temp2.model.startDate&&!temp2.model.endDate) {
428
- result.startDate = ` '${temp2.model.startDate} 00:00:00'`
429
- result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
430
- } if (temp2.model.endDate&&!temp2.model.startDate) {
431
- result.startDate = 'new Date().getFullYear()'
432
- result.endDate = ` '${temp2.model.endDate} 23:59:59'`
433
- }
434
-
435
- // if(temp2.model.diffday != ''){
436
- // result.diffDay += " and diffDay "+ temp2.model.diffday;
437
- // }
438
- if (temp2.model.contain_newfile==='否'){
439
- result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
440
- }
441
- result.condition = result.condition+ `and f_meter_type like '%${this.meter_classify }%'`
442
-
443
- return result
444
- }
445
- }
446
- }
447
- </script>
448
- <style media="screen">
449
- .divtext {
450
- min-width: 50px;
451
- max-width: 200px;
452
- border: 1px solid green;
453
- display: inline-block;
454
- }
455
- </style>
456
-
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 v-show="$parent.$parent.$parent.meter_classify == '卡表'"><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 v-show="$parent.$parent.$parent.meter_classify != '卡表'"><nobr>累计未抄表天数</nobr></th>-->
182
+ <th><nobr>组织机构</nobr></th>
183
+ </tr>
184
+ </template>
185
+ <template partial='body'>
186
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
187
+ <td style="text-align: center;"><nobr>
188
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
189
+ </nobr> </td>
190
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
191
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
192
+ <th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
193
+ <th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
194
+ <th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
195
+ <th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
196
+ <th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
197
+ <th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
198
+ <th style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></th>
199
+ <th style="text-align: center;"><nobr>{{row.delivery_date}}</nobr></th>
200
+ <!-- <th style="text-align: center;"><nobr>{{row.cishu}}</nobr></th>-->
201
+ <!-- <th style="text-align: center;"><nobr>{{row.pregas}}</nobr></th>-->
202
+ <th style="text-align: center;"><nobr>{{row.sellcishu}}</nobr></th>
203
+ <th style="text-align: center;"><nobr>{{row.sellpregas}}</nobr></th>
204
+ <!-- <th style="text-align: center;"><nobr>{{row.diffday}}</nobr></th>-->
205
+ <th style="text-align: center;"><nobr>{{row.f_orgname}}</nobr></th>
206
+ </template>
207
+ </data-grid>
208
+ </criteria-paged>
209
+ <table class="table-hover">
210
+ <tr style="position: relative" class="table-bordered">
211
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</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.pregas}}</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.sellpregas}}</td>
214
+ <!-- <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>-->
215
+ <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>
216
+ </tr>
217
+ </table>
218
+ </div>
219
+ <div v-if="show">
220
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
221
+ </div>
222
+ </div></div>
223
+ </template>
224
+ <script>
225
+ /**
226
+ *用户档案查询列表以及添加操作组件
227
+ */
228
+ import { PagedList } from 'vue-client'
229
+ import Vue from 'vue'
230
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
231
+
232
+ let readySomething = async function (self) {
233
+ self.$refs.paged.$refs.cri.model.f_table_state = ['正常']
234
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
235
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
236
+ let year = new Date().getFullYear()
237
+ self.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
238
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
239
+
240
+ // await self.$refs.paged.$refs.cri.search()
241
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
242
+ }
243
+ export default {
244
+ title: '购气稽查',
245
+ data () {
246
+ return {
247
+ org:[this.$login.f.orgid],
248
+ criteriaShow: false,
249
+ meter_classify:'卡表',
250
+ filialeNameStr: null,
251
+ filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
252
+ userid: this.$login.f.id,
253
+ source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
254
+ getfield:{"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
255
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
256
+ "delivery_date":"最后购气日期",
257
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"},
258
+ model: new PagedList('rs/sql/inspectList_sellinggas', 50,{},{sellpregas: 0}),
259
+ rows: null,
260
+ //orgid:'',
261
+ sumsmodel: {},
262
+ sqlName:'inspectList_sellinggas',
263
+ config: {
264
+ defaultPrint: ['f_userinfo_code','f_user_id']
265
+ },
266
+ show:false,
267
+ rowdata:{},
268
+ initres: {
269
+ org:[this.$login.f.orgid],
270
+ dep:[],
271
+ user:[],
272
+ },
273
+ defaultfield: [],
274
+ selectfields:[],
275
+ searchCondition:[],
276
+ gasproperties:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
277
+ tablestate :[{label: '全部', value: ''},...this.$appdata.getParam('气表状态')]
278
+ }
279
+ },
280
+ watch:{
281
+
282
+ meter_classify(val){
283
+ if(val == '卡表') {
284
+ this.url = 'rs/sql/inspectList_sellinggas'
285
+ this.sqlName = 'inspectList_sellinggas'
286
+ this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
287
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
288
+ "delivery_date":"最后购气日期",
289
+ "sellcishu":"期间购气次数","sellpregas":"期间购气量","f_orgname":"组织"}
290
+ }else{
291
+ this.url = 'rs/sql/handinspectList_sellinggas'
292
+ this.sqlName = 'handinspectList_sellinggas'
293
+ this.getfield = {"f_userinfo_code":"客户编号","f_user_phone":"用户电话","f_meternumber":"表号","f_user_name":"客户名称","f_address":"地址","f_user_type":"用户类型",
294
+ "f_gasproperties":"用气性质","f_table_state":"表具状态","f_meter_brand":"气表品牌","f_price_name":"气价名称",
295
+ "delivery_date":"最后抄表日期",
296
+ "sellcishu":"期间抄表次数","sellpregas":"期间抄表气量","f_orgname":"组织"}
297
+ }
298
+ this.clear()
299
+ }
300
+ },
301
+ ready () {
302
+
303
+ readySomething(this).then(() => {
304
+ this.$emit('ready')
305
+ }).catch((error) => {
306
+ this.$emit('error', error)
307
+ })
308
+ },
309
+ methods: {
310
+ cancel() {
311
+ this.show = false
312
+ let self = this;
313
+ setTimeout(function(){
314
+ self.$refs.paged.$refs.cri.model = self.searchCondition;
315
+ },800);
316
+ },
317
+ showmsg(obj){
318
+ this.searchCondition = this.$refs.paged.$refs.cri.model
319
+ this.rowdata=obj
320
+ this.show=true
321
+ },
322
+ getorg (obj) {
323
+ if(obj.resids.length>0){
324
+ this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
325
+ }
326
+ else{
327
+ this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
328
+ }
329
+ },
330
+ userTypeChange () {
331
+ this.gasproperties=[]
332
+ console.log("查气价")
333
+ console.log(this.$refs.paged.$refs.cri.model)
334
+
335
+ if(this.$refs.paged.$refs.cri.model !==null) {
336
+ console.log("进if")
337
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
338
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
339
+ // this.gasproperties.push({label: '全部', value: ''})
340
+ console.log(this.gasproperties )
341
+ }
342
+ else{
343
+ this.gasproperties =[{label: '全部', value: ''}]
344
+ }
345
+ console.log("最终气价")
346
+ console.log(this.gasproperties )
347
+ },
348
+ search () {
349
+ this.$refs.paged.$refs.cri.search()
350
+ },
351
+ selfSearch (args) {
352
+ this.model.url = this.meter_classify === '卡表' ? 'rs/sql/inspectList_sellinggas': 'rs/sql/handinspectList_sellinggas'
353
+ console.log(this.$login.f)
354
+ if(this.$refs.paged.$refs.cri.model.startDate){
355
+ this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate} 00:00:00' `
356
+ }else{
357
+ this.model.params.startDate ='DATEADD(yy,DATEDIFF(yy,0,getdate()),0)'
358
+ }
359
+ if(this.$refs.paged.$refs.cri.model.endDate){
360
+ this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate} 23:59:59' `
361
+ }else{
362
+ this.model.params.endDate ='DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
363
+ }
364
+
365
+ if(this.$refs.paged.$refs.cri.model.contain_newfile){
366
+ if(this.$refs.paged.$refs.cri.model.contain_newfile==='否') {
367
+ if (this.$refs.paged.$refs.cri.model.startDate === ''&&this.$refs.paged.$refs.cri.model.endDate ==='') {
368
+ 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))))"
369
+ }else if (this.$refs.paged.$refs.cri.model.startDate === ''&& this.$refs.paged.$refs.cri.model.endDate !=='') {
370
+ args.condition = args.condition + "and f_open_date not between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and "+this.model.params.endDate
371
+ }else if (this.$refs.paged.$refs.cri.model.startDate !== ''&& this.$refs.paged.$refs.cri.model.endDate ==='') {
372
+ 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))))"
373
+ }
374
+ else {
375
+ args.condition = args.condition + "and f_open_date not between " + this.model.params.startDate + " and " + this.model.params.endDate
376
+ }
377
+ }
378
+ }
379
+ args.condition = args.condition+ ` ${this.filialeCodeStr}`
380
+ args.condition = args.condition+ `and f_meter_type like '%${this.meter_classify }%'`
381
+ console.log("拼接的condition", args.condition, this.model)
382
+ this.model.search(args.condition, args.model)
383
+ },
384
+ // show(){
385
+ // this.criteriaShow = true
386
+ // },
387
+ hidden(){
388
+ this.criteriaShow = !this.criteriaShow
389
+ },
390
+ clear(){
391
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
392
+ if(key != 'startDate' && key != 'endDate')
393
+ this.$refs.paged.$refs.cri.model[key] = []
394
+ })
395
+ this.$refs.paged.$refs.cri.model.contain_newfile='是'
396
+ let year = new Date().getFullYear()
397
+ this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
398
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
399
+ }
400
+
401
+ },
402
+ computed: {
403
+
404
+ f_meter_classify(){
405
+ return [{label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '物联网表', value: '物联网表'} ]
406
+ // return [{label: '卡表', value: '卡表'}]
407
+ },
408
+ contain_newfiles(){
409
+ return [{label: '是', value: '是'},{label: '否', value: '否'} ]
410
+ },
411
+ getCondition () {
412
+ let result = {
413
+ condition: '',
414
+ startDate: '',
415
+ endDate: ''
416
+ // diffDay:' 1=1 '
417
+ }
418
+ result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
419
+ let temp2 = this.$refs.paged.$refs.cri
420
+ if (temp2.model.startDate && temp2.model.endDate) {
421
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
422
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
423
+ } if (!temp2.model.startDate && !temp2.model.endDate) {
424
+ result.startDate = 'new Date().getFullYear()'
425
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
426
+ }
427
+ if (temp2.model.startDate&&!temp2.model.endDate) {
428
+ result.startDate = ` '${temp2.model.startDate} 00:00:00'`
429
+ result.endDate = 'DATEADD(SS,-1,DATEADD(DD,1,CONVERT(DATETIME,CONVERT(VARCHAR(10),GETDATE(),120))))'
430
+ } if (temp2.model.endDate&&!temp2.model.startDate) {
431
+ result.startDate = 'new Date().getFullYear()'
432
+ result.endDate = ` '${temp2.model.endDate} 23:59:59'`
433
+ }
434
+
435
+ // if(temp2.model.diffday != ''){
436
+ // result.diffDay += " and diffDay "+ temp2.model.diffday;
437
+ // }
438
+ if (temp2.model.contain_newfile==='否'){
439
+ result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
440
+ }
441
+ result.condition = result.condition+ `and f_meter_type like '%${this.meter_classify }%'`
442
+
443
+ return result
444
+ }
445
+ }
446
+ }
447
+ </script>
448
+ <style media="screen">
449
+ .divtext {
450
+ min-width: 50px;
451
+ max-width: 200px;
452
+ border: 1px solid green;
453
+ display: inline-block;
454
+ }
455
+ </style>
456
+