manage-client 3.3.95 → 3.3.96

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.3.95",
3
+ "version": "3.3.96",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -58,12 +58,12 @@
58
58
  </div>
59
59
 
60
60
  <div class="col-sm-4">
61
- <label class="font_normal_body">收费类型</label>
62
- <v-select :value.sync="model.f_type" multiple
61
+ <label class="font_normal_body">收费方式/label>
62
+ <v-select :value.sync="model.f_payment" multiple
63
63
  :options='$parent.$parent.chargetype' placeholder='请选择'
64
64
  close-on-select clear-button
65
- condition="f_type in {}"
66
- v-model="model.f_type"></v-select>
65
+ condition="f_payment in {}"
66
+ v-model="model.f_payment"></v-select>
67
67
  </div>
68
68
  </div>
69
69
  <div class="span" style = "float:right;">
@@ -252,7 +252,7 @@ export default {
252
252
  return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
253
253
  },
254
254
  chargetype () {
255
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
255
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式')]
256
256
  }
257
257
  }
258
258
  }
@@ -48,12 +48,12 @@
48
48
  </div>
49
49
 
50
50
  <div class="col-sm-4">
51
- <label class="font_normal_body">收费类型</label>
52
- <v-select :value.sync="model.f_type" multiple
51
+ <label class="font_normal_body">收费方式</label>
52
+ <v-select :value.sync="model.f_payment" multiple
53
53
  :options='$parent.$parent.chargetype' placeholder='请选择'
54
54
  close-on-select clear-button
55
- condition="f_type in {}"
56
- v-model="model.f_type"></v-select>
55
+ condition="f_payment in {}"
56
+ v-model="model.f_payment"></v-select>
57
57
  </div>
58
58
  </div>
59
59
  <div class="span" style = "float:right;">
@@ -242,7 +242,7 @@ export default {
242
242
  return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
243
243
  },
244
244
  chargetype () {
245
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
245
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('付款方式')]
246
246
  }
247
247
  }
248
248
  }
@@ -313,7 +313,7 @@ export default{
313
313
  'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_address': '客户地址', 'f_zones': '片区', 'phone': '客户手机', 'f_meternumber': '表号', 'ym_data': '数据年月',
314
314
  'f_last_tablebase': '上期底数', 'f_tablebase': '本期底数', 'f_oughtamount': '用气量', 'overdue': '违约金', 'f_oughtfee': '用气金额', 'f_debt_money': '已交金额',
315
315
  'f_actual_arrears': '欠费金额', 'f_balance': '上期余额', 'f_curbalance': '本期余额', 'f_gasproperties': '用气性质',
316
- 'f_accounts_state': '下账状态', 'f_operate_date': '收费时间', 'f_inputtor': '抄表员', 'f_book_slice_area': '表册片区',
316
+ 'f_accounts_state': '下账状态', 'f_sellinggas_operate_date': '收费时间', 'f_inputtor': '抄表员', 'f_book_slice_area': '表册片区',
317
317
  'f_hand_date': '下发日期', 'f_input_person': '录入人员', 'f_input_date': '录入日期', 'f_audit_date': '审核日期','f_meter_state': '抄表状态', 'f_hand_state': '记录状态',
318
318
  'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司', 'f_surplus_gas': '剩余气量', 'f_haircut_gas': '扣减气量',
319
319
  'f_stair1amount': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
@@ -734,9 +734,9 @@
734
734
  <td style="text-align: center;"><nobr>{{row.f_card_id}}</nobr></td>
735
735
  <!-- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>-->
736
736
  <!-- <td style="text-align: center;"><nobr>{{row.f_residential_area}}</nobr></td>-->
737
- <td style="text-align: center;"><nobr>{{row.f_floor}}</nobr></td>
738
737
  <td style="text-align: center;"><nobr>{{row.f_building}}</nobr></td>
739
738
  <td style="text-align: center;"><nobr>{{row.f_unit}}</nobr></td>
739
+ <td style="text-align: center;"><nobr>{{row.f_floor}}</nobr></td>
740
740
  <!-- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>-->
741
741
  <td style="text-align: center;"><nobr>{{row.f_room}}</nobr></td>
742
742
  <!-- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>-->
@@ -159,6 +159,13 @@
159
159
  condition="ss.f_balance_amount <= {} " placeholder="">
160
160
  </div>
161
161
  </div>
162
+ <div class="col-sm-2 form-group">
163
+ <label class="font_normal_body">用户类型</label>
164
+ <v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
165
+ :options='$parent.$parent.usertypes' placeholder='请选择'
166
+ condition="f_user_type = '{}'"
167
+ close-on-select></v-select>
168
+ </div>
162
169
  <div class="col-sm-2 form-group">
163
170
  <label class="font_normal_body">用气性质</label>
164
171
  <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
@@ -888,15 +888,9 @@
888
888
  </td>
889
889
  <!-- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>-->
890
890
  <!-- <td style="text-align: center;"><nobr>{{row.f_residential_area}}</nobr></td>-->
891
- <td style="text-align: center;">
892
- <nobr>{{ row.f_floor }}</nobr>
893
- </td>
894
- <td style="text-align: center;">
895
- <nobr>{{ row.f_building }}</nobr>
896
- </td>
897
- <td style="text-align: center;">
898
- <nobr>{{ row.f_unit }}</nobr>
899
- </td>
891
+ <td style="text-align: center;"><nobr>{{row.f_building}}</nobr></td>
892
+ <td style="text-align: center;"><nobr>{{row.f_unit}}</nobr></td>
893
+ <td style="text-align: center;"><nobr>{{row.f_floor}}</nobr></td>
900
894
  <!-- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>-->
901
895
  <td style="text-align: center;">
902
896
  <nobr>{{ row.f_room }}</nobr>
@@ -233,10 +233,10 @@ export default {
233
233
  args.condition = args.condition + ` and f_user_usetype in (${this.data.f_user_usetype})`
234
234
  }
235
235
  if (this.data.f_user_usenature) {
236
- args.condition = args.condition + ` and f_user_usenature in ('${this.data.f_user_usetype}')`
236
+ args.condition = args.condition + ` and f_user_usenature in ('${this.data.f_user_usenature}')`
237
237
  }
238
238
  if (this.data.f_use_institution) {
239
- args.condition = args.condition + ` and f_use_institution in ('${this.data.f_user_usetype}')`
239
+ args.condition = args.condition + ` and f_use_institution in ('${this.data.f_use_institution}')`
240
240
  }
241
241
  this.condition = args.condition
242
242
  console.log('查看条件', this.condition)
@@ -458,6 +458,7 @@ export default {
458
458
  this.card = ''
459
459
  this.IdCardInfo = ''
460
460
  console.log('合计字段', this.sumsmodel)
461
+ this.$dispatch('cancel')
461
462
  },
462
463
  getRes (obj) {
463
464
  this.orgConditionStr = obj
@@ -6,7 +6,7 @@
6
6
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
7
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
8
  <div class="row">
9
- <div class="col-sm-2 form-group">
9
+ <div :class="$parent.$parent.style">
10
10
  <label class="font_normal_body">按单位查询</label>
11
11
  <v-select :value.sync="$parent.$parent.f_is_company"
12
12
  :options='$parent.$parent.isCompany'
@@ -16,7 +16,7 @@
16
16
  :disabled="$parent.$parent.isCompanyShow"
17
17
  close-on-select></v-select>
18
18
  </div>
19
- <div class="col-sm-2 form-group">
19
+ <div :class="$parent.$parent.style">
20
20
  <label class="font_normal_body">按小区查询</label>
21
21
  <v-select :value.sync="$parent.$parent.f_is_area"
22
22
  :options='$parent.$parent.isArea'
@@ -26,21 +26,21 @@
26
26
  :disabled="$parent.$parent.isAreaShow"
27
27
  close-on-select></v-select>
28
28
  </div>
29
- <div class="col-sm-2 form-group">
29
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
30
30
  <label for="startDate" class="font_normal_body">开始日期</label>
31
31
  <datepicker id="startDate" placeholder="开始日期" style="width:60%"
32
32
  v-model="model.startDate"
33
33
  :value.sync="model.startDate"
34
- :format="'yyyy-MM-dd 00:00:00'"
34
+ :format="'yyyy-MM-dd'"
35
35
  :show-reset-button="true">
36
36
  </datepicker>
37
37
  </div>
38
- <div class="col-sm-2 form-group">
38
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
39
39
  <label for="endDate" class="font_normal_body">结束日期</label>
40
40
  <datepicker id="endDate" placeholder="结束日期" style="width:60%"
41
41
  v-model="model.endDate"
42
42
  :value.sync="model.endDate"
43
- :format="'yyyy-MM-dd 23:59:59'"
43
+ :format="'yyyy-MM-dd'"
44
44
  :show-reset-button="true">
45
45
  </datepicker>
46
46
  </div>
@@ -69,12 +69,31 @@
69
69
  </div>
70
70
  <div class="row" v-if="$parent.$parent.criteriaShow">
71
71
  <res-select-group
72
+ :style="$parent.$parent.style"
72
73
  :show-component="['company','slicearea']"
73
74
  :initres="$parent.$parent.initres"
74
75
  @re-res="$parent.$parent.getRes"
75
76
  v-ref:sel
76
77
  ></res-select-group>
77
- <div class="col-sm-2 form-group">
78
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
79
+ <label for="startDate" class="font_normal_body">开始日期</label>
80
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
81
+ v-model="model.startDate"
82
+ :value.sync="model.startDate"
83
+ :format="'yyyy-MM-dd'"
84
+ :show-reset-button="true">
85
+ </datepicker>
86
+ </div>
87
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
88
+ <label for="endDate" class="font_normal_body">结束日期</label>
89
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
90
+ v-model="model.endDate"
91
+ :value.sync="model.endDate"
92
+ :format="'yyyy-MM-dd'"
93
+ :show-reset-button="true">
94
+ </datepicker>
95
+ </div>
96
+ <div :class="$parent.$parent.style">
78
97
  <label class="font_normal_body">用户类型</label>
79
98
  <v-select :value.sync="model.f_user_type"
80
99
  :options='$parent.$parent.usertypes'
@@ -83,7 +102,7 @@
83
102
  @change="$parent.$parent.userTypeChange()"
84
103
  close-on-select></v-select>
85
104
  </div>
86
- <div class="col-sm-2 form-group">
105
+ <div :class="$parent.$parent.style">
87
106
  <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
88
107
  <v-select :value.sync="model.f_user_usetype" :search="false"
89
108
  @change="$parent.$parent.userUseTypeChange()"
@@ -94,7 +113,7 @@
94
113
  placeholder='用气类型'>
95
114
  </v-select>
96
115
  </div>
97
- <div class="col-sm-2 form-group">
116
+ <div :class="$parent.$parent.style">
98
117
  <label for="f_use_institution" class="font_normal_body">用气机构</label>
99
118
  <v-select :value.sync="model.f_use_institution" :search="false"
100
119
  @change="$parent.$parent.userUseInstitutionChange()"
@@ -106,7 +125,7 @@
106
125
  close-on-select>
107
126
  </v-select>
108
127
  </div>
109
- <div class="col-sm-2 form-group">
128
+ <div :class="$parent.$parent.style">
110
129
  <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
111
130
  <v-select :value.sync="model.f_user_usenature" :search="false"
112
131
  v-model="model.f_user_usenature"
@@ -117,7 +136,7 @@
117
136
  close-on-select>
118
137
  </v-select>
119
138
  </div>
120
- <div class="col-sm-2 form-group">
139
+ <div :class="$parent.$parent.style">
121
140
  <label for="endDate" class="font_normal_body">单位名称</label>
122
141
  <v-select :value.sync="model.f_company_id"
123
142
  class="select_list select"
@@ -128,7 +147,7 @@
128
147
  condition="f_company_id in {}">
129
148
  </v-select>
130
149
  </div>
131
- <div class="col-sm-2 form-group">
150
+ <div :class="$parent.$parent.style">
132
151
  <label for="endDate" class="font_normal_body">小区名称</label>
133
152
  <v-select :value.sync="model.f_residential_area_id"
134
153
  class="select_list select"
@@ -163,6 +182,18 @@
163
182
  <th v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
164
183
  <nobr>购气(充值)时间</nobr>
165
184
  </th>
185
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
186
+ <nobr>卡表购气量</nobr>
187
+ </th>
188
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
189
+ <nobr>卡表购气金额</nobr>
190
+ </th>
191
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
192
+ <nobr>物联网表购气金额</nobr>
193
+ </th>
194
+ <th v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
195
+ <nobr>表具数量</nobr>
196
+ </th>
166
197
  <th>
167
198
  <nobr>购气(充值)数量</nobr>
168
199
  </th>
@@ -194,10 +225,10 @@
194
225
  <nobr>{{ row.f_userinfo_code }}</nobr>
195
226
  </td>
196
227
  <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow">
197
- <nobr>{{ row.f_company_name }}</nobr>
228
+ <nobr><span @click="$parent.$parent.$parent.toDetail(row,'1')"><a>{{ row.f_company_name }}</a></span></nobr>
198
229
  </td>
199
230
  <td style="text-align: center;" v-show="$parent.$parent.$parent.isCompanyShow">
200
- <nobr>{{ row.f_residential_area}}</nobr>
231
+ <nobr><span @click="$parent.$parent.$parent.toDetail(row,'2')"><a>{{ row.f_residential_area }}</a></span></nobr>
201
232
  </td>
202
233
  <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
203
234
  <nobr>{{ row.f_user_name }}</nobr>
@@ -205,6 +236,18 @@
205
236
  <td style="text-align: center;" v-show="!$parent.$parent.$parent.isAreaShow && !$parent.$parent.$parent.isCompanyShow">
206
237
  <nobr>{{ row.f_operate_date }}</nobr>
207
238
  </td>
239
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
240
+ <nobr>{{ row.f_gas }}</nobr>
241
+ </td>
242
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
243
+ <nobr>{{ row.f_card_money }}</nobr>
244
+ </td>
245
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
246
+ <nobr>{{ row.f_money }}</nobr>
247
+ </td>
248
+ <td style="text-align: center;" v-show="$parent.$parent.$parent.isAreaShow || $parent.$parent.$parent.isCompanyShow">
249
+ <nobr>{{ row.f_table_num }}</nobr>
250
+ </td>
208
251
  <td style="text-align: center;">
209
252
  <nobr>{{ row.f_pregas }}</nobr>
210
253
  </td>
@@ -265,8 +308,8 @@ import exportConfig from './config/exportConfig'
265
308
  import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
266
309
 
267
310
  let readySomething = async function (self) {
268
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
269
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
311
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
312
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
270
313
  self.getCompanyList()
271
314
  self.getAreaList()
272
315
  }
@@ -331,6 +374,12 @@ export default {
331
374
  corporatename: []
332
375
  }
333
376
  },
377
+ props: {
378
+ style: {
379
+ type: String,
380
+ default: 'col-sm-2 form-group'
381
+ }
382
+ },
334
383
  ready () {
335
384
  readySomething(this).then(() => {
336
385
  this.$emit('ready')
@@ -339,6 +388,10 @@ export default {
339
388
  })
340
389
  },
341
390
  methods: {
391
+ toDetail (row, val) {
392
+ row.type = val
393
+ this.$dispatch('user-detail', row)
394
+ },
342
395
  async getCompanyList(searchText){
343
396
  let condition = ' 1 = 1 '
344
397
  if (searchText) {
@@ -538,6 +591,7 @@ export default {
538
591
  this.card = ''
539
592
  this.IdCardInfo = ''
540
593
  console.log('合计字段', this.sumsmodel)
594
+ this.$dispatch('cancel')
541
595
  },
542
596
  getRes (obj) {
543
597
  this.orgConditionStr = obj
@@ -0,0 +1,260 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="span" style="float:right;">
9
+ <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </criteria>
14
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
15
+ <template partial='head'>
16
+ <tr>
17
+ <th>
18
+ <nobr>序号</nobr>
19
+ </th>
20
+ <th>
21
+ <nobr>客户编号</nobr>
22
+ </th>
23
+ <th>
24
+ <nobr>客户名称</nobr>
25
+ </th>
26
+ <th>
27
+ <nobr>气表品牌</nobr>
28
+ </th>
29
+ <th>
30
+ <nobr>表号</nobr>
31
+ </th>
32
+ <th>
33
+ <nobr>用气类型</nobr>
34
+ </th>
35
+ <th>
36
+ <nobr>用气机构</nobr>
37
+ </th>
38
+ <th>
39
+ <nobr>使用性质</nobr>
40
+ </th>
41
+ <th>
42
+ <nobr>用气性质</nobr>
43
+ </th>
44
+ <th>
45
+ <nobr>用气量</nobr>
46
+ </th>
47
+ <th>
48
+ <nobr>售气量</nobr>
49
+ </th>
50
+ <th>
51
+ <nobr>联系电话</nobr>
52
+ </th>
53
+ <th>
54
+ <nobr>气表状态</nobr>
55
+ </th>
56
+ </tr>
57
+ </template>
58
+ <template partial='body'>
59
+ <td style="text-align:center">
60
+ <nobr>{{ $index + 1 }}</nobr>
61
+ </td>
62
+ <td style="text-align:center">
63
+ <nobr>{{ row.f_userinfo_code }}</nobr>
64
+ </td>
65
+ <td style="text-align: center;">
66
+ <nobr>{{ row.f_user_name }}</nobr>
67
+ </td>
68
+ <td style="text-align: center;">
69
+ <nobr>{{ row.f_meter_brand }}</nobr>
70
+ </td>
71
+ <td style="text-align: center;">
72
+ <nobr>{{ row.f_meternumber }}</nobr>
73
+ </td>
74
+ <td style="text-align: center;">
75
+ <nobr>{{ row.f_user_usetype }}</nobr>
76
+ </td>
77
+ <td style="text-align: center;">
78
+ <nobr>{{ row.f_use_institution }}</nobr>
79
+ </td>
80
+ <td style="text-align: center;">
81
+ <nobr>{{ row.f_user_usenature }}</nobr>
82
+ </td>
83
+ <td style="text-align: center;">
84
+ <nobr>{{ row.f_gasproperties }}</nobr>
85
+ </td>
86
+ <td style="text-align: center;">
87
+ <nobr>{{ row.f_oughtamount }}</nobr>
88
+ </td>
89
+ <td style="text-align: center;">
90
+ <nobr>{{ row.f_pregas }}</nobr>
91
+ </td>
92
+ <td style="text-align: center;">
93
+ <nobr>{{ row.f_user_phone }}</nobr>
94
+ </td>
95
+ <td style="text-align: center;">
96
+ <nobr>{{ row.f_table_state }}</nobr>
97
+ </td>
98
+ </template>
99
+ <template partial='foot'></template>
100
+ </data-grid>
101
+ </criteria-paged>
102
+ </div>
103
+ </div>
104
+ </template>
105
+ <script>
106
+ import {PagedList} from 'vue-client'
107
+ import exportConfig from './config/exportConfig'
108
+
109
+ export default {
110
+ title: '表具详情',
111
+ data () {
112
+ return {
113
+ depresid: [],
114
+ userresid: [],
115
+ f_orgid: this.$login.f.orgid,
116
+ f_depid: this.$login.f.depids,
117
+ f_operatorid: this.$login.f.id,
118
+ operatorid: [],
119
+ depid: [],
120
+ orgname: '',
121
+ depname: [],
122
+ operatorname: '',
123
+ condition: '',
124
+ orgConditionStr: '',
125
+ data: {},
126
+ other: [],
127
+ footer: [],
128
+ model: new PagedList(this.data.type === '1' ? 'rs/sql/manage_companyMeterDetail' : 'rs/sql/manage_areaMeterDetail', 20, {
129
+ startDate: 'this.model.startDate',
130
+ endDate: 'this.model.endDate'
131
+ }),
132
+ gasproperties: [],
133
+ show: false,
134
+ rowdata: {},
135
+ areaList: [],
136
+ modelval: [],
137
+ startDate: '',
138
+ endDate: '',
139
+ inputtouPerson: [],
140
+ printshow: false,
141
+ all: false,
142
+ fields: {},
143
+ thead: '',
144
+ tfoot: '',
145
+ defaultfield: [],
146
+ sumsmodel: {},
147
+ sumExport: {'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
148
+ initres: {
149
+ org: [this.$login.f.orgid]
150
+ },
151
+ criteriaShow: false,
152
+ userusetypes: [],
153
+ useinstitutions: [],
154
+ userusenatures: [],
155
+ corporatename: []
156
+ }
157
+ },
158
+ ready () {
159
+ this.search()
160
+ },
161
+ props: ['data'],
162
+ methods: {
163
+ clear () {
164
+ // 清空部门和人员
165
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
166
+ // 部门和人员变为全选
167
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
168
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
169
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
170
+ this.$refs.paged.$refs.cri.model[key] = []
171
+ })
172
+ },
173
+ getotherfooter () {
174
+ this.other = []
175
+ this.footer = []
176
+ let exportdata = this.getCondition
177
+ let otherInData = []
178
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
179
+ let footerData = [], exportfield = this.sumExport
180
+ footerData.push('合计')
181
+ let self = this
182
+ for (var field in self.sumsmodel) {
183
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
184
+ }
185
+ this.footer.push(footerData)
186
+ this.other.push(otherInData)
187
+ },
188
+ search () {
189
+ this.$refs.paged.$refs.cri.search()
190
+ },
191
+ appendCondition (data) {
192
+ console.log('data=====>',data)
193
+ let stringValue = ''
194
+ for (var i = 0; i < data.length; i++) {
195
+ if (data[i]) {
196
+ if (i === data.length - 1) {
197
+ stringValue = stringValue + "'" + data[i] + "'"
198
+ } else {
199
+ stringValue = stringValue + "'" + data[i] + "',"
200
+ }
201
+ }
202
+ }
203
+ return stringValue
204
+ },
205
+ selfSearch (args) {
206
+ if (this.data.type === '1') {
207
+ args.condition = `${args.condition} and f_corporate_name_id = '${this.data.id}'`
208
+ } else {
209
+ args.condition = `${args.condition} and f_residential_area_id = '${this.data.id}'`
210
+ }
211
+ this.$refs.paged.$refs.cri.model.startDate = this.data.startDate
212
+ this.$refs.paged.$refs.cri.model.endDate = this.data.endDate
213
+ if (this.data.f_user_type == '民用' && this.data.f_user_usetype.length == 0) {
214
+ args.condition = args.condition + " and f_user_usetype in ('居民用气')"
215
+ } else if (this.data.f_user_type == '非民用' && this.data.f_user_usetype.length == 0) {
216
+ args.condition = args.condition + " and f_user_usetype in ('公福用气','商业用户','工业用户')"
217
+ }
218
+ if (this.data.f_user_usetype.length > 0) {
219
+ args.condition = args.condition + ` and f_user_usetype in (${this.appendCondition(this.data.f_user_usetype)})`
220
+ }
221
+ if (this.data.f_user_usenature) {
222
+ args.condition = args.condition + ` and f_user_usenature in ('${this.data.f_user_usenature}')`
223
+ }
224
+ if (this.data.f_use_institution) {
225
+ args.condition = args.condition + ` and f_use_institution in ('${this.data.f_use_institution}')`
226
+ }
227
+ this.condition = args.condition
228
+ console.log('查看条件', this.condition)
229
+ this.model.search(args.condition, args.model)
230
+ },
231
+ getRes (obj) {
232
+ this.orgConditionStr = obj
233
+ },
234
+ cancel () {
235
+ this.data = null
236
+ this.$dispatch('cancel')
237
+ }
238
+ },
239
+ watch: {
240
+ 'data' (val) {
241
+ if (val) {
242
+ this.search()
243
+ }
244
+ }
245
+ },
246
+ computed: {
247
+ getCondition () {
248
+ return {
249
+ condition: this.condition,
250
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
251
+ endDate: this.$refs.paged.$refs.cri.model.endDate
252
+ }
253
+ },
254
+ getfield () {
255
+ return exportConfig.manageCompanyGasSummary
256
+ }
257
+ }
258
+ }
259
+ </script>
260
+