manage-client 3.2.132 → 3.2.133

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.2.132",
3
+ "version": "3.2.133",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -106,7 +106,7 @@
106
106
  condition="f_payment in {}"
107
107
  close-on-select></v-select>
108
108
  </div>
109
- <div class="col-sm-2 form-group">
109
+ <div class="col-sm-2 form-group" v-if="titleShow">
110
110
  <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
111
111
  <v-select :value.sync="model.f_bank_type" multiple
112
112
  v-model="model.f_bank_type"
@@ -430,7 +430,7 @@
430
430
  <th>
431
431
  <nobr>写卡状态</nobr>
432
432
  </th>
433
- <th>
433
+ <th v-if="titleShow">
434
434
  <nobr>支付渠道</nobr>
435
435
  </th>
436
436
  <th>
@@ -626,7 +626,7 @@
626
626
  <td style="text-align: center;">
627
627
  <nobr>{{row.f_write_card}}</nobr>
628
628
  </td>
629
- <td style="text-align: center;">
629
+ <td style="text-align: center;" v-if="titleShow">
630
630
  <nobr>{{row.f_bank_type}}</nobr>
631
631
  </td>
632
632
  <td style="text-align: center;">
@@ -832,6 +832,7 @@
832
832
  data() {
833
833
  return {
834
834
  IdCardInfo:'',
835
+ titleShow : true,
835
836
  card:'',
836
837
  isSingleUser: null,
837
838
  startDate1:'',
@@ -914,6 +915,7 @@
914
915
  this.$refs.paged.$refs.cri.model.f_state=['有效']
915
916
  this.getaddress()
916
917
  this.getEquipment()
918
+ this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
917
919
  //加载抄表册
918
920
  this.$MagGetSaleParam.initinputtor();
919
921
  this.getinputtores();
@@ -92,14 +92,14 @@
92
92
  :options='$parent.$parent.issecond' placeholder='请选择'
93
93
  close-on-select></v-select>
94
94
  </div>
95
- <div class="col-sm-2 form-group" >
95
+ <div class="col-sm-2 form-group" v-if="titleShow">
96
96
  <label for="f_usetype" class="font_normal_body" title="参数:使用类型">使用类型</label>
97
97
  <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
98
98
  condition="f_usetype = '{}'"
99
99
  :options='$parent.$parent.usetype' placeholder='请选择'
100
100
  close-on-select></v-select>
101
101
  </div>
102
- <div class="col-sm-2 form-group">
102
+ <div class="col-sm-2 form-group" v-if="titleShow">
103
103
  <label class="font_normal_body">用气性质</label>
104
104
  <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
105
105
  :options='$parent.$parent.gasproperties' placeholder='请选择'
@@ -210,7 +210,7 @@
210
210
  condition="isbgl = '{}'"
211
211
  close-on-select></v-select>
212
212
  </div>
213
- <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo!=='rongcheng'">
213
+ <div class="col-sm-2 form-group" v-if="titleShow">
214
214
  <label class="font_normal_body">用户等级</label>
215
215
  <v-select :value.sync="model.f_user_grade"
216
216
  v-model="model.f_user_grade"
@@ -284,10 +284,10 @@
284
284
  <th>
285
285
  <nobr>客户类型</nobr>
286
286
  </th>
287
- <th>
287
+ <th v-if="titleShow">
288
288
  <nobr>使用类型</nobr>
289
289
  </th>
290
- <th>
290
+ <th v-if="titleShow">
291
291
  <nobr>用气性质</nobr>
292
292
  </th>
293
293
  <th>
@@ -363,10 +363,10 @@
363
363
  <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
364
  <nobr>{{row.f_user_type}}</nobr>
365
365
  </td>
366
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
366
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" v-if="titleShow">
367
367
  <nobr>{{row.f_usetype}}</nobr>
368
368
  </td>
369
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
369
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" v-if="titleShow">
370
370
  <nobr>{{row.f_gasproperties}}</nobr>
371
371
  </td>
372
372
  <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
@@ -506,6 +506,7 @@
506
506
  data() {
507
507
  return {
508
508
  IdCardInfo:'',
509
+ titleShow : true,
509
510
  card:'',
510
511
  isSingleUser: null,
511
512
  other:[],
@@ -560,6 +561,7 @@
560
561
  },
561
562
  ready() {
562
563
  console.log("===========",this.$filialeInfo)
564
+ this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
563
565
  readySomething(this).then(() => {
564
566
  this.$emit('ready')
565
567
  }).catch((error) => {
@@ -7,7 +7,8 @@
7
7
  <tabs header="换表查询" v-if="permission('换表查询')">
8
8
  <change-meter-query v-if="show.includes('换表查询')" @deal-msg="dealMsg" :data="data"></change-meter-query>
9
9
  </tabs>
10
- <tabs header="机表抄表查询" v-if="permission('机表抄表查询')">
10
+ <!--<tabs header="机表抄表查询" v-if="permission('机表抄表查询')">-->
11
+ <tabs header="机表抄表查询" v-if="false">
11
12
  <handplan-query v-if="show.includes('机表抄表查询')" @deal-msg="dealMsg" :data="data"></handplan-query>
12
13
  </tabs>
13
14
  <tabs header="过户查询" v-if="permission('过户查询')">
@@ -37,7 +38,8 @@
37
38
  <!-- <tabs header="减免优惠查询" v-if="permission('减免优惠查询')">-->
38
39
  <!-- <over-due-query v-if="show.includes('减免优惠查询')" @deal-msg="dealMsg" :data="data"></over-due-query>-->
39
40
  <!-- </tabs>-->
40
- <tabs header="调价补差查询" v-if="permission('调价补差查询')">
41
+ <!--<tabs header="调价补差查询" v-if="permission('调价补差查询')">-->
42
+ <tabs header="调价补差查询" v-if="false">
41
43
  <priceadjust-query v-if="show.includes('调价补差查询')" @deal-msg="dealMsg" :data="data"></priceadjust-query>
42
44
  </tabs>
43
45
  <tabs header="迁表查询" v-if="permission('迁表查询')">
@@ -52,13 +54,16 @@
52
54
  <!-- <tabs header="操作记录查询" v-if="permission('操作记录查询')">-->
53
55
  <!-- <record-query v-if="show == '操作记录查询'" @deal-msg="dealMsg" :data="data"></record-query>-->
54
56
  <!-- </tabs>-->
55
- <tabs header="业务查询" v-if="permission('业务查询')">
57
+ <!--<tabs header="业务查询" v-if="permission('业务查询')">-->
58
+ <tabs header="业务查询" v-if="false">
56
59
  <busines-query v-if="show.includes('业务查询')" @deal-msg="dealMsg" :data="data"></busines-query>
57
60
  </tabs>
58
- <tabs header="预存查询" v-if="permission('预存查询')">
61
+ <!--<tabs header="预存查询" v-if="permission('预存查询')">-->
62
+ <tabs header="预存查询" v-if="false">
59
63
  <yucun-detailss v-if="show.includes('预存查询')" @deal-msg="dealMsg" :data="data"></yucun-detailss>
60
64
  </tabs>
61
- <tabs header="发折查询" v-if="permission('发折查询')">
65
+ <!--<tabs header="发折查询" v-if="permission('发折查询')">-->
66
+ <tabs header="发折查询" v-if="false">
62
67
  <sendbook-query v-if="show.includes('发折查询')" @deal-msg="dealMsg" :data="data"></sendbook-query>
63
68
  </tabs>
64
69
  <tabs header="用户参保查询" v-if="permission('用户参保查询')">
@@ -0,0 +1,422 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">开始日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ condition="f_operate_date >= '{}'">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_operate_date <= '{}'">
28
+ </datepicker>
29
+ </div>
30
+ <div class="col-sm-2 form-group">
31
+ <label class="font_normal_body">客户编号</label>
32
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
+ </div>
35
+ <div class="col-sm-2 form-group" v-show="false">
36
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
37
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
39
+ </div>
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>-->
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ :header="$parent.$parent.other"
49
+ sqlurl="rs/logic/exportfile" sql-name="CancellationQuery" template-name='销户查询导出'
50
+ :choose-col="true"></export-excel>
51
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
52
+ :defaultfield="$parent.$parent.defaultfield"
53
+ titletable="销户记录"
54
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
55
+ <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>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <res-select-group :initres="$parent.$parent.initres" :show-component="$parent.$parent.showCom" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户名称</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
64
+ condition=" f_user_name like '%{}%'" placeholder='客户名称'>
65
+ </div>
66
+ <div class="col-sm-2 form-group" v-show="false">
67
+ <label class="font_normal_body">客户地址</label>
68
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
69
+ condition="f_address like '%{}%'" placeholder='客户地址'>
70
+ </div>
71
+ <div class="col-sm-2 form-group">
72
+ <label class="font_normal_body">操作类型</label>
73
+ <v-select :value.sync="model.f_operat_type"
74
+ v-model="model.f_operat_type"
75
+ :options='$parent.$parent.operattype' placeholder='请选择'
76
+ condition="f_operat_type = '{}'"
77
+ close-on-select></v-select>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ </criteria>
82
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
83
+ <template partial='head'>
84
+ <tr>
85
+ <th>
86
+ <data-order field="f_userinfo_code" name="客户编号"
87
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
88
+ </th>
89
+ <th>
90
+ <nobr>客户名称</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>档案编号</nobr>
94
+ </th>
95
+ <th>
96
+ <nobr>客户类型</nobr>
97
+ </th>
98
+ <th>
99
+ <nobr>联系电话</nobr>
100
+ </th>
101
+ <th>
102
+ <data-order field="f_address" name="客户地址"
103
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
104
+ </th>
105
+ <th>
106
+ <nobr>表号</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>销户原因</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>状态</nobr>
113
+ </th>
114
+ <th>
115
+ <data-order field="f_operate_date" name="销户日期"
116
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
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><nobr>附件</nobr></th>
131
+ </tr>
132
+ </template>
133
+ <template partial='body'>
134
+ <td style="text-align: center;">
135
+ <nobr>
136
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
137
+ </td>
138
+ <td style="text-align: center;">
139
+ <nobr>{{row.f_user_name}}</nobr>
140
+ </td>
141
+ <td style="text-align: center;">
142
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
143
+ </td>
144
+ <td style="text-align: center;">
145
+ <nobr>{{row.f_user_type}}</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_address}}</nobr>
152
+ </td>
153
+ <td style="text-align: center;">
154
+ <nobr>{{row.f_meternumber}}</nobr>
155
+ </td>
156
+ <td style="text-align: center;">
157
+ <nobr>{{row.f_comments}}</nobr>
158
+ </td>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_state}}</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_operat_type}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_operator}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_depname}}</nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr>{{row.f_orgname}}</nobr>
176
+ </td>
177
+ <td style="text-align: center;"><nobr>
178
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
179
+ </nobr></td>
180
+ </template>
181
+ <template partial='foot'></template>
182
+ </data-grid>
183
+ </criteria-paged>
184
+ <!-- <table class="table-hover">-->
185
+ <!-- <tr style="position: relative" class="table-bordered">-->
186
+ <!-- <td-->
187
+ <!-- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
188
+ <!-- 汇总信息-->
189
+ <!-- </td>-->
190
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">合计:&emsp;{{sumsmodel.f_pregas}}</td>-->
191
+ <!-- </tr>-->
192
+ <!-- </table>-->
193
+ </div>
194
+ <div class="flex" v-if="show">
195
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
196
+ </div>
197
+ </div>
198
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
199
+ <article slot="modal-body">
200
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="销户" :isremark="false" style="width:auto" ></upload>
201
+ </article>
202
+ <footer slot="modal-footer" class="modal-footer">
203
+ </footer>
204
+ </modal>
205
+ </div>
206
+ </template>
207
+
208
+ <script>
209
+ import {PagedList} from 'vue-client'
210
+ import defaultPrint from './config/DefaultPrint'
211
+ import exportConfig from './config/exportConfig'
212
+
213
+ let readySomething = async function (self) {
214
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
215
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
216
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
217
+ // await self.$refs.paged.$refs.cri.search()
218
+ //self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
219
+ await self.$MagLoadParams.loadParam()
220
+
221
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
222
+ }
223
+ export default {
224
+ props:['data'],
225
+ title: '销户查询',
226
+ data() {
227
+ return {
228
+ data: {},
229
+ other: [],
230
+ footer: [],
231
+ model: new PagedList('rs/sql/CancellationQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc '"}),
232
+ criteriaShow: false,
233
+ headData: ["客户编号", "客户名称", "操作人", "操作日期", "销户状态", "销户原因", "同步状态"],
234
+ bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_sendsuccess"],
235
+ orgCondtionStr: '',
236
+ show:false,
237
+ rowdata:{},
238
+ modelval: [],
239
+ printshow: false,
240
+ all: false,
241
+ fields: {},
242
+ thead: '',
243
+ showupload:false,
244
+ config: {
245
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
246
+ },
247
+ //排序
248
+ orderitem:'f_operate_date desc',
249
+ orderFields: {
250
+ f_operate_date: 'no'
251
+ },
252
+ defaultfield: [],
253
+ selected:{},
254
+ tfoot: '',
255
+ initres: {
256
+ org:[this.$login.f.orgid],
257
+ dep:[],
258
+ user:[],
259
+ },
260
+ //合计数据
261
+ sumsmodel: {},
262
+ operattype:[{label: '全部', value: ''},{label: '销户', value: '销户'},{label: '销户启用', value: '销户启用'}],
263
+ showCom:['company','department','operator']
264
+ }
265
+ },
266
+ ready() {
267
+ readySomething(this).then(() => {
268
+ this.$emit('ready')
269
+ }).catch((error) => {
270
+ this.$emit('error', error)
271
+ })
272
+ },
273
+ methods: {
274
+ view(row){
275
+ this.showupload = true
276
+ this.selected= row
277
+ },
278
+ getotherfooter() {
279
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
280
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
281
+ this.other = [];
282
+ this.footer = [];
283
+ let exportdata = this.getCondition;
284
+ let otherInData = [];
285
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
286
+ let footerData = [], exportfield = this.getfield;
287
+ footerData.push("合计");
288
+ let self = this;
289
+ for (var field in self.sumsmodel) {
290
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
291
+ }
292
+ this.footer.push(footerData);
293
+ this.other.push(otherInData);
294
+ },
295
+ search(){
296
+ this.$refs.paged.$refs.cri.search()
297
+ },
298
+ selfSearch(args) {
299
+ if (this.data) {
300
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
301
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
302
+ }
303
+ args.condition = `${args.condition}` + this.orgCondtionStr
304
+ this.model.search(args.condition, args.model)
305
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
306
+ },
307
+ clear() {
308
+ //清空部门和人员
309
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
310
+ //部门和人员变为全选
311
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
312
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
313
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
314
+ this.$refs.paged.$refs.cri.model[key] = []
315
+ })
316
+ },
317
+ show() {
318
+ this.criteriaShow = true
319
+ },
320
+ hidden() {
321
+ this.criteriaShow = !this.criteriaShow
322
+ },
323
+ getRes(obj) {
324
+ this.orgCondtionStr = obj
325
+ },
326
+ stamp() {
327
+ this.all = false
328
+ //默认选择要打印的列
329
+ this.modelval = defaultPrint.config
330
+ this.fields = this.getfield
331
+ console.log('所有打印字段', this.fields)
332
+ this.printshow = true
333
+ this.put()
334
+ },
335
+ sort (field, rule) {
336
+ // 将所有排序方式设为不排序,实现相互排斥
337
+ for (let key in this.orderFields) {
338
+ if (key === field) {
339
+ this.orderFields[key] = rule
340
+ } else {
341
+ this.orderFields[key] = 'no'
342
+ }
343
+ }
344
+ // 如果新规则不排序,还原为默认排序
345
+ if (rule === 'no') {
346
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
347
+ } else {
348
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
349
+ }
350
+
351
+ this.search()
352
+ },
353
+
354
+ put() {
355
+ // 对Modelval进行排序
356
+ this.sortModelval()
357
+ this.thead = `<tr><th colspan=${this.modelval.length}>销户查询报表</th></tr><tr>`
358
+ for (let key of this.modelval) {
359
+ this.thead += '<th>' + this.fields[key] + '</th>'
360
+ }
361
+ this.thead += '</tr>'
362
+ },
363
+ cancel() {
364
+ this.show = false
365
+ },
366
+ dealmsg(val) {
367
+ console.log('---------------dealmsg')
368
+ this.rowdata=val
369
+ this.show=true
370
+ val.model = this.model.model
371
+ this.$dispatch('deal-msg', val)
372
+ },
373
+ print() {
374
+ this.$refs.print.PrintAsFile()
375
+ this.printshow = false
376
+ },
377
+ close() {
378
+ this.printshow = false
379
+ this.all = false
380
+ },
381
+ // 对选择的列进行排序
382
+ sortModelval() {
383
+ let sortModel = []
384
+ Object.keys(this.fields).forEach((key) => {
385
+ if (this.modelval.includes(key)) {
386
+ sortModel.push(key)
387
+ }
388
+ })
389
+ this.modelval = sortModel
390
+ console.log('选择的打印的字段', this.modelval)
391
+ }
392
+ },
393
+ watch: {
394
+ 'all'(val) {
395
+ if (val) {
396
+ this.modelval = this.bodyData
397
+ } else {
398
+ this.modelval = defaultPrint.config
399
+ this.put()
400
+ }
401
+ },
402
+ sumsmodel: {
403
+ handler: function (val) {
404
+ this.getotherfooter();
405
+ },
406
+ deep: true
407
+ },
408
+ 'modelval.length'() {
409
+ this.put()
410
+ },
411
+ },
412
+ computed: {
413
+ getCondition() {
414
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
415
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
416
+ },
417
+ getfield() {
418
+ return exportConfig.CancellationConfig
419
+ }
420
+ }
421
+ }
422
+ </script>