manage-client 3.2.87 → 3.2.88-1

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 (58) hide show
  1. package/.gradle/4.4/fileContent/fileContent.lock +0 -0
  2. package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
  3. package/.gradle/4.4/taskHistory/taskHistory.lock +0 -0
  4. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  5. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  6. package/build/tmp/jar/MANIFEST.MF +2 -0
  7. package/package.json +1 -1
  8. package/src/components/SellReport/NonResidentGas.vue +216 -216
  9. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +507 -507
  10. package/src/components/SellReport/ReportItems.vue +56 -49
  11. package/src/components/sale/businessquery/ArrearsQuery.vue +934 -924
  12. package/src/components/sale/businessquery/BusinesQuery.vue +32 -6
  13. package/src/components/sale/businessquery/ChangeUserQuery.vue +375 -350
  14. package/src/components/sale/businessquery/ChargeQuery.vue +1277 -1277
  15. package/src/components/sale/businessquery/GasLossQuery.vue +30 -4
  16. package/src/components/sale/businessquery/GroupChargeQuery.vue +5 -3
  17. package/src/components/sale/businessquery/InspectListGas.vue +552 -535
  18. package/src/components/sale/businessquery/InspectListUser.vue +449 -419
  19. package/src/components/sale/businessquery/PriceChange.vue +44 -8
  20. package/src/components/sale/businessquery/PrickBillQuery.vue +31 -5
  21. package/src/components/sale/businessquery/SendbookQuery.vue +33 -7
  22. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +36 -8
  23. package/src/components/sale/businessquery/gasPriceQuery.vue +39 -8
  24. package/src/components/sale/businessquery/pricechangeRecordQuery.vue +37 -8
  25. package/src/components/sale/businessquery/sellingChargePrice.vue +1 -1
  26. package/src/components/sale/businessquery/yucunDetails.vue +30 -4
  27. package/src/components/sale/config/exportConfig.js +944 -944
  28. package/src/components/sale/filesquery/DeviceQuery.vue +50 -9
  29. package/src/components/sale/filesquery/FireQuery.vue +42 -7
  30. package/src/components/sale/filesquery/MeterQuery.vue +35 -8
  31. package/src/components/sale/filesquery/PriceChangeQuery.vue +34 -9
  32. package/src/components/sale/filesquery/RecordInfoQuery.vue +48 -31
  33. package/src/components/sale/filesquery/UserDeviceQuery.vue +35 -6
  34. package/src/components/sale/filesquery/UserQuery.vue +6 -2
  35. package/src/components/webmeter/gasStatistics/GasStatistics.vue +469 -467
  36. package/src/components/webmeter/instruction/NewQueryInstruct.vue +446 -446
  37. package/src/filiale/liaoyuan/MeterQuery.vue +905 -905
  38. package/src/filiale/liaoyuan/RecordInfoQuery.vue +1163 -1163
  39. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  40. package/src/filiale/macheng/FxGasTable.vue +236 -236
  41. package/src/filiale/macheng/ManageDayGas.vue +248 -248
  42. package/src/filiale/macheng/ManageHandSellMoney.vue +249 -249
  43. package/src/filiale/macheng/ManageMonthGas.vue +250 -250
  44. package/src/filiale/macheng/ManageOtherCharge.vue +251 -251
  45. package/src/filiale/macheng/ManageSellType.vue +287 -287
  46. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  47. package/src/filiale/macheng/SellingTable.vue +219 -219
  48. package/src/filiale/macheng/UserBalanceReport.vue +178 -178
  49. package/src/filiale/macheng/config/exportConfig.js +67 -67
  50. package/src/filiale/macheng/reportManage.js +19 -19
  51. package/src/filiale/macheng/sale.js +11 -11
  52. package/src/filiale/meihekou/HandplanQuery.vue +1234 -1229
  53. package/src/filiale/qianneng/OtherChargeQuery.vue +646 -646
  54. package/src/filiale/qianneng/SellDepReport.vue +269 -0
  55. package/src/filiale/qianneng/reportManage.js +10 -0
  56. package/src/filiale/qianneng/sale.js +12 -12
  57. package/src/filiale/tongchuan/ChargeQuery.vue +1 -1
  58. package/src/main.js +65 -66
@@ -1,369 +1,394 @@
1
1
  <template>
2
- <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
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 form-group">
10
- <label class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_operate_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group ">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
- </div>
2
+ <div id="unit" class="flex-row" class="foot_tabset" @keyup.enter="search">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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 form-group">
10
+ <label class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group ">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
+ </div>
39
39
 
40
40
 
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
45
 
46
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- :header="$parent.$parent.other"
49
- v-if="$parent.$parent.authArr.includes('档案查询导出')"
50
- sqlurl="rs/logic/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
51
- :choose-col="true"></export-excel>
52
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
- :defaultfield="$parent.$parent.defaultfield"
54
- titletable="档案变更"
55
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
- <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>
57
- </div>
58
- </div>
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :header="$parent.$parent.other"
49
+ v-if="$parent.$parent.authArr.includes('档案查询导出')"
50
+ sqlurl="rs/logic/exportfile" sql-name="changeuserquery" template-name='档案变更导出'
51
+ :choose-col="true"></export-excel>
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
+ :defaultfield="$parent.$parent.defaultfield"
54
+ titletable="档案变更"
55
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
+ <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>
57
+ </div>
58
+ </div>
59
59
 
60
- <div class="row" v-show="$parent.$parent.criteriaShow">
61
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">客户名称</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
65
- condition="f_user_name like '%{}%'" placeholder="客户名称">
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">客户电话</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
70
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">表&emsp;&emsp;号</label>
74
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
75
- condition="f_meternumber = '{}'" placeholder='表号'>
76
- </div>
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
79
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
80
- condition="f_card_id = '{}'" placeholder='卡号'>
81
- </div>
82
- <div class="col-sm-2 form-group">
83
- <label class="font_normal_body">更改内容</label>
84
- <v-select :value.sync="model.f_field_name"
85
- v-model="model.f_field_name"
86
- :options='$parent.$parent.field_name' placeholder='请选择'
87
- condition="f_field_name = '{}'"
88
- close-on-select></v-select>
89
- </div>
90
- </div>
91
- </div>
92
- </criteria>
93
-
94
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
95
- <template partial='head'>
96
- <tr>
97
- <th>
98
- <nobr>客户编号</nobr>
99
- </th>
100
- <th>
101
- <nobr>客户名称</nobr>
102
- </th>
103
- <th>
104
- <nobr>档案编号</nobr>
105
- </th>
106
- <th>
107
- <nobr>客户电话</nobr>
108
- </th>
109
- <th>
110
- <nobr>更改内容</nobr>
111
- </th>
112
- <th>
113
- <nobr>更改前</nobr>
114
- </th>
115
- <th>
116
- <nobr>更改后</nobr>
117
- </th>
118
- <th>
119
- <nobr>操作人</nobr>
120
- </th>
121
- <th>
122
- <nobr>操作日期</nobr>
123
- </th>
124
- <th>
125
- <nobr>部门</nobr>
126
- </th>
127
- <th>
128
- <nobr>公司</nobr>
129
- </th>
130
- <th>
131
- <nobr>修改原因</nobr>
132
- </th>
133
- </tr>
134
- </template>
135
- <template partial='body'>
136
- <td style="text-align: center;"><nobr>
137
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
138
- </nobr> </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_user_name}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_olduserinfo_code}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_user_phone}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_field_name}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_used_content}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_new_content}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.f_operator}}</nobr>
159
- </td>
160
- <td style="text-align: center;">
161
- <nobr>{{row.f_operate_date}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_depname}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_orgname}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.f_comments}}</nobr>
171
- </td>
172
- </template>
173
- <template partial='foot'></template>
174
- </data-grid>
175
- </criteria-paged>
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">客户名称</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
65
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">客户电话</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
70
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
74
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_number"
75
+ condition="f_meternumber = '{}'" placeholder='表号'>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
79
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
80
+ condition="f_card_id = '{}'" placeholder='卡号'>
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body">更改内容</label>
84
+ <v-select :value.sync="model.f_field_name"
85
+ v-model="model.f_field_name"
86
+ :options='$parent.$parent.field_name' placeholder='请选择'
87
+ condition="f_field_name = '{}'"
88
+ close-on-select></v-select>
89
+ </div>
90
+ </div>
176
91
  </div>
177
- <div class="flex" v-if="show">
178
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
179
- </div>
180
- </div>
92
+ </criteria>
93
+
94
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
95
+ <template partial='head'>
96
+ <tr>
97
+ <th>
98
+ <!--<nobr>客户编号</nobr>-->
99
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
100
+ </th>
101
+ <th>
102
+ <nobr>客户名称</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>档案编号</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>客户电话</nobr>
109
+ </th>
110
+ <th>
111
+ <nobr>更改内容</nobr>
112
+ </th>
113
+ <th>
114
+ <nobr>更改前</nobr>
115
+ </th>
116
+ <th>
117
+ <nobr>更改后</nobr>
118
+ </th>
119
+ <th>
120
+ <nobr>操作人</nobr>
121
+ </th>
122
+ <th>
123
+ <!--<nobr>操作日期</nobr>-->
124
+ <data-order field="f_operate_date" name="操作日期" :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
125
+ </th>
126
+ <th>
127
+ <nobr>部门</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>公司</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>修改原因</nobr>
134
+ </th>
135
+ </tr>
136
+ </template>
137
+ <template partial='body'>
138
+ <td style="text-align: center;"><nobr>
139
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
140
+ </nobr> </td>
141
+ <td style="text-align: center;">
142
+ <nobr>{{row.f_user_name}}</nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
146
+ </td>
147
+ <td style="text-align: center;">
148
+ <nobr>{{row.f_user_phone}}</nobr>
149
+ </td>
150
+ <td style="text-align: center;">
151
+ <nobr>{{row.f_field_name}}</nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_used_content}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_new_content}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_operator}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_operate_date}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.f_depname}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_orgname}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_comments}}</nobr>
173
+ </td>
174
+ </template>
175
+ <template partial='foot'></template>
176
+ </data-grid>
177
+ </criteria-paged>
178
+ </div>
179
+ <div class="flex" v-if="show">
180
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
181
+ </div>
181
182
  </div>
183
+ </div>
182
184
  </template>
183
185
 
184
186
  <script>
185
- import {PagedList} from 'vue-client'
186
- import defaultPrint from '../config/DefaultPrint'
187
- import exportConfig from '../config/exportConfig'
187
+ import {PagedList} from 'vue-client'
188
+ import defaultPrint from '../config/DefaultPrint'
189
+ import exportConfig from '../config/exportConfig'
188
190
 
189
- let readySomething = async function (self) {
191
+ let readySomething = async function (self) {
190
192
 
191
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
192
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
193
- // self.$refs.paged.$refs.cri.search()
194
- await self.$MagLoadParams.loadParam()
195
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
196
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
197
- }
198
- export default {
199
- title: '综合档案信息查询',
200
- data() {
201
- return {
202
- data: {},
203
- other:[],
204
- footer:[],
205
- meterbrands: [],
206
- pricenames: [],
207
- model: new PagedList('rs/sql/changeuserquery', 20),
208
- criteriaShow: false,
209
- orgCondtionStr: '',
210
- modelval: [],
211
- printshow: false,
212
- all: false,
213
- fields: {},
214
- initres: {
215
- org:[this.$login.f.orgid],
216
- dep:[],
217
- user:[],
218
- },
219
- defaultfield: [],
220
- config: {
221
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
222
- },
223
- show:false,
224
- rowdata:{},
225
- thead: '',
226
- tfoot: '',
193
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
194
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
195
+ // self.$refs.paged.$refs.cri.search()
196
+ await self.$MagLoadParams.loadParam()
197
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
198
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
199
+ }
200
+ export default {
201
+ title: '档案变更记录',
202
+ data() {
203
+ return {
204
+ data: {},
205
+ other:[],
206
+ footer:[],
207
+ meterbrands: [],
208
+ pricenames: [],
209
+ model: new PagedList('rs/sql/changeuserquery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}),
210
+ criteriaShow: false,
211
+ orgCondtionStr: '',
212
+ modelval: [],
213
+ printshow: false,
214
+ all: false,
215
+ fields: {},
216
+ //排序
217
+ orderitem:'f_operate_date desc',
218
+ orderFields: {
219
+ f_operate_date: 'no'
220
+ },
221
+ initres: {
222
+ org:[this.$login.f.orgid],
223
+ dep:[],
224
+ user:[],
225
+ },
226
+ defaultfield: [],
227
+ config: {
228
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
229
+ },
230
+ show:false,
231
+ rowdata:{},
232
+ thead: '',
233
+ tfoot: '',
227
234
 
228
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
235
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
229
236
 
230
237
 
231
- //合计数据
232
- sumsmodel: {}
233
- }
234
- },
235
- ready() {
236
- readySomething(this)
237
- },
238
- methods: {
239
- getotherfooter () {
240
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
241
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
242
- this.other = [];
243
- this.footer = [];
244
- let exportdata = this.getCondition;
245
- let otherInData = [];
246
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
247
- // let footerData = [], exportfield = this.getfield;
248
- // footerData.push("合计");
249
- // let self = this;
250
- // for (var field in self.sumsmodel) {
251
- // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
252
- // }
253
- // this.footer.push(footerData);
254
- this.other.push(otherInData);
255
- },
256
- search(){
257
- this.$refs.paged.$refs.cri.search()
258
- },
259
- cancel() {
260
- this.show = false
261
- },
262
- showmsg(obj){
263
- this.rowdata=obj
264
- this.show=true
265
- },
238
+ //合计数据
239
+ sumsmodel: {}
240
+ }
241
+ },
242
+ ready() {
243
+ readySomething(this)
244
+ },
245
+ methods: {
246
+ getotherfooter () {
247
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
248
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
249
+ this.other = [];
250
+ this.footer = [];
251
+ let exportdata = this.getCondition;
252
+ let otherInData = [];
253
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
254
+ // let footerData = [], exportfield = this.getfield;
255
+ // footerData.push("合计");
256
+ // let self = this;
257
+ // for (var field in self.sumsmodel) {
258
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
259
+ // }
260
+ // this.footer.push(footerData);
261
+ this.other.push(otherInData);
262
+ },
263
+ search(){
264
+ this.$refs.paged.$refs.cri.search()
265
+ },
266
+ cancel() {
267
+ this.show = false
268
+ },
269
+ showmsg(obj){
270
+ this.rowdata=obj
271
+ this.show=true
272
+ },
266
273
 
267
- selfSearch(args) {
268
- args.condition = `${args.condition}` + this.orgCondtionStr
269
- this.model.search(args.condition, args.model)
270
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
271
- },
272
- clear() {
273
- //清空部门和人员
274
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
275
- //部门和人员变为全选
276
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
277
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
278
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
279
- this.$refs.paged.$refs.cri.model[key] = []
280
- })
281
- },
282
- show() {
283
- this.criteriaShow = true
284
- },
285
- hidden() {
286
- this.criteriaShow = !this.criteriaShow
287
- },
288
- getRes(obj) {
289
- console.log(obj,"========")
290
- this.orgCondtionStr = obj
291
- },
292
- stamp() {
293
- this.all = false
294
- //默认选择要打印的列
295
- this.modelval = defaultPrint.config
296
- this.fields = this.getfield
297
- console.log('所有打印字段', this.fields)
298
- this.printshow = true
299
- this.put()
300
- },
301
- dealmsg(val) {
302
- console.log('---------------dealmsg')
303
- val.model = this.model.model
304
- this.$dispatch('deal-msg', val)
305
- },
306
- put() {
307
- // 对Modelval进行排序
308
- this.sortModelval()
309
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
310
- for (let key of this.modelval) {
311
- this.thead += '<th>' + this.fields[key] + '</th>'
312
- }
313
- this.thead += '</tr>'
314
- },
315
- print() {
316
- this.$refs.print.PrintAsFile()
317
- this.printshow = false
318
- },
319
- close() {
320
- this.printshow = false
321
- this.all = false
322
- },
323
- // 对选择的列进行排序
324
- sortModelval() {
325
- let sortModel = []
326
- Object.keys(this.fields).forEach((key) => {
327
- if (this.modelval.includes(key)) {
328
- sortModel.push(key)
329
- }
330
- })
331
- this.modelval = sortModel
332
- console.log('选择的打印的字段', this.modelval)
333
- }
334
- },
335
- watch: {
336
- 'all'(val) {
337
- if (val) {
338
- this.modelval = this.bodyData
339
- } else {
340
- this.modelval = defaultPrint.config
341
- this.put()
342
- }
343
- },
344
- 'modelval.length'() {
345
- this.put()
346
- },
347
- sumsmodel:{
348
- handler: function(val) {
349
- this.getotherfooter();
350
- },
351
- deep: true
352
- },
353
- },
354
- computed: {
355
- authArr () {
356
- return this.$login.r ? this.$login.r : []
357
- },
358
- getCondition() {
359
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
360
- },
361
- getfield() {
362
- return exportConfig.changUserConfig
363
- },
364
- field_name() {
365
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
366
- }
274
+ selfSearch(args) {
275
+ args.condition = `${args.condition}` + this.orgCondtionStr
276
+ this.model.search(args.condition, args.model)
277
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
278
+ },
279
+ clear() {
280
+ //清空部门和人员
281
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
282
+ //部门和人员变为全选
283
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
284
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
285
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
286
+ this.$refs.paged.$refs.cri.model[key] = []
287
+ })
288
+ },
289
+ show() {
290
+ this.criteriaShow = true
291
+ },
292
+ hidden() {
293
+ this.criteriaShow = !this.criteriaShow
294
+ },
295
+ getRes(obj) {
296
+ console.log(obj,"========")
297
+ this.orgCondtionStr = obj
298
+ },
299
+ stamp() {
300
+ this.all = false
301
+ //默认选择要打印的列
302
+ this.modelval = defaultPrint.config
303
+ this.fields = this.getfield
304
+ console.log('所有打印字段', this.fields)
305
+ this.printshow = true
306
+ this.put()
307
+ },
308
+ dealmsg(val) {
309
+ console.log('---------------dealmsg')
310
+ val.model = this.model.model
311
+ this.$dispatch('deal-msg', val)
312
+ },
313
+ put() {
314
+ // 对Modelval进行排序
315
+ this.sortModelval()
316
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
317
+ for (let key of this.modelval) {
318
+ this.thead += '<th>' + this.fields[key] + '</th>'
319
+ }
320
+ this.thead += '</tr>'
321
+ },
322
+ print() {
323
+ this.$refs.print.PrintAsFile()
324
+ this.printshow = false
325
+ },
326
+ close() {
327
+ this.printshow = false
328
+ this.all = false
329
+ },
330
+ // 对选择的列进行排序
331
+ sortModelval() {
332
+ let sortModel = []
333
+ Object.keys(this.fields).forEach((key) => {
334
+ if (this.modelval.includes(key)) {
335
+ sortModel.push(key)
336
+ }
337
+ })
338
+ this.modelval = sortModel
339
+ console.log('选择的打印的字段', this.modelval)
340
+ },
341
+ sort (field, rule) {
342
+ // 将所有排序方式设为不排序,实现相互排斥
343
+ for (let key in this.orderFields) {
344
+ if (key === field) {
345
+ this.orderFields[key] = rule
346
+ } else {
347
+ this.orderFields[key] = 'no'
348
+ }
367
349
  }
350
+ // 如果新规则不排序,还原为默认排序
351
+ if (rule === 'no') {
352
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
353
+ } else {
354
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
355
+ }
356
+
357
+ this.search()
358
+ }
359
+ },
360
+ watch: {
361
+ 'all'(val) {
362
+ if (val) {
363
+ this.modelval = this.bodyData
364
+ } else {
365
+ this.modelval = defaultPrint.config
366
+ this.put()
367
+ }
368
+ },
369
+ 'modelval.length'() {
370
+ this.put()
371
+ },
372
+ sumsmodel:{
373
+ handler: function(val) {
374
+ this.getotherfooter();
375
+ },
376
+ deep: true
377
+ },
378
+ },
379
+ computed: {
380
+ authArr () {
381
+ return this.$login.r ? this.$login.r : []
382
+ },
383
+ getCondition() {
384
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
385
+ },
386
+ getfield() {
387
+ return exportConfig.changUserConfig
388
+ },
389
+ field_name() {
390
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
391
+ }
368
392
  }
393
+ }
369
394
  </script>