manage-client 3.2.54 → 3.2.59

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.
@@ -1,11 +1,13 @@
1
- // 分公司特殊组件页面注册
2
- let specialComp = {
3
- // 收费查询
4
- 'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) }
5
-
6
- }
7
- exports.specialComp = specialComp
8
-
9
-
10
-
11
-
1
+ // 分公司特殊组件页面注册
2
+ let specialComp = {
3
+ // 收费查询
4
+ 'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
5
+ 'print-data-rc': (resolve) => { require(['./PrintData'], resolve) },
6
+ 'print-table-rc': (resolve) => { require(['./PrintTable'], resolve) }
7
+
8
+ }
9
+ exports.specialComp = specialComp
10
+
11
+
12
+
13
+
@@ -0,0 +1,410 @@
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>
39
+
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
+ 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
+
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
+
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">&nbsp;旧&nbsp;气&nbsp;价</label>
75
+ <v-select :value.sync="model.f_used_content"
76
+ v-model="model.f_used_content"
77
+ :options='$parent.$parent.price' placeholder='请选择'
78
+ condition="f_used_content = '{}'"
79
+ close-on-select></v-select>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">&nbsp;新&nbsp;气&nbsp;价</label>
83
+ <v-select :value.sync="model.f_new_content"
84
+ v-model="model.f_new_content"
85
+ :options='$parent.$parent.price ' placeholder='请选择'
86
+ condition="f_new_content = '{}'"
87
+ close-on-select></v-select>
88
+ </div>
89
+ <div
90
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
91
+ class="form-group">
92
+ <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;域</label>
93
+ <v-select
94
+ v-model="model.f_pcd"
95
+ placeholder='选择区域'
96
+ :value.sync="model.f_pcd"
97
+ :options='$parent.$parent.pcdslist'
98
+ condition="f_pcd_id = '{}'"
99
+ style="width: 60%"
100
+ close-on-select >
101
+ </v-select>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </criteria>
106
+
107
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
108
+ <template partial='head'>
109
+ <tr>
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
+ </th>
125
+ <th>
126
+ <nobr>更改后气价</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>操作人</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>操作日期</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>部门</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>公司</nobr>
139
+ </th>
140
+ </tr>
141
+ </template>
142
+ <template partial='body'>
143
+ <td style="text-align: center;"><nobr>
144
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
145
+ </nobr> </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.f_user_name}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.f_user_phone}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.f_used_content}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.f_new_content}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.f_operator}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.f_operate_date}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.f_depname}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;">
171
+ <nobr>{{row.f_orgname}}</nobr>
172
+ </td>
173
+ </template>
174
+ <template partial='foot'></template>
175
+ </data-grid>
176
+ </criteria-paged>
177
+ </div>
178
+ <div class="flex" v-if="show">
179
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
180
+ </div>
181
+ </div>
182
+ </div>
183
+ </template>
184
+
185
+ <script>
186
+ import {HttpResetClass, PagedList} from 'vue-client'
187
+ import defaultPrint from './config/DefaultPrint'
188
+ import exportConfig from './config/exportConfig'
189
+
190
+ let readySomething = async function (self) {
191
+
192
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
193
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
194
+ // self.$refs.paged.$refs.cri.search()
195
+ await self.$MagLoadParams.loadParam()
196
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
197
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
198
+ self.getPricenames()
199
+ }
200
+ export default {
201
+ title: '调价记录查询',
202
+ data() {
203
+ return {
204
+ pcdslist:[],
205
+ data: {},
206
+ other:[],
207
+ footer:[],
208
+ meterbrands: [],
209
+ pricenames: [],
210
+ model: new PagedList('rs/sql/pricechangequery', 20),
211
+ criteriaShow: false,
212
+ orgCondtionStr: '',
213
+ modelval: [],
214
+ printshow: false,
215
+ all: false,
216
+ fields: {},
217
+ initres: {
218
+ org:[this.$login.f.orgid],
219
+ dep:[],
220
+ user:[],
221
+ },
222
+ defaultfield: [],
223
+ config: {
224
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone']
225
+ },
226
+ show:false,
227
+ rowdata:{},
228
+ thead: '',
229
+ tfoot: '',
230
+ price: [],
231
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
232
+
233
+
234
+ //合计数据
235
+ sumsmodel: {}
236
+ }
237
+ },
238
+ ready() {
239
+
240
+ this.getpcd()
241
+ readySomething(this)
242
+ },
243
+ methods: {
244
+ getPricenames() {
245
+ this.price = []
246
+ let priceArr = []
247
+ debugger
248
+ this.$MagGetSaleParam.prices.forEach((item) => {
249
+ let temp = {}
250
+ temp.label = item.f_price_name
251
+ temp.value = item.f_price_name
252
+ priceArr.push(temp)
253
+ })
254
+ this.price = [{label: '全部', value: ''}, ...priceArr]
255
+ },
256
+ getotherfooter () {
257
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
258
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
259
+ this.other = [];
260
+ this.footer = [];
261
+ let exportdata = this.getCondition;
262
+ let otherInData = [];
263
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
264
+ // let footerData = [], exportfield = this.getfield;
265
+ // footerData.push("合计");
266
+ // let self = this;
267
+ // for (var field in self.sumsmodel) {
268
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
269
+ // }
270
+ // this.footer.push(footerData);
271
+ this.other.push(otherInData);
272
+ },
273
+ search(){
274
+ this.$refs.paged.$refs.cri.search()
275
+ },
276
+ cancel() {
277
+ this.show = false
278
+ },
279
+ showmsg(obj){
280
+ this.rowdata=obj
281
+ this.show=true
282
+ },
283
+
284
+ selfSearch(args) {
285
+ args.condition = `${args.condition}` + this.orgCondtionStr
286
+ this.model.search(args.condition, args.model)
287
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
288
+ },
289
+ clear() {
290
+ //清空部门和人员
291
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
292
+ //部门和人员变为全选
293
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
294
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
295
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
296
+ this.$refs.paged.$refs.cri.model[key] = []
297
+ })
298
+ },
299
+ show() {
300
+ this.criteriaShow = true
301
+ },
302
+ hidden() {
303
+ this.criteriaShow = !this.criteriaShow
304
+ },
305
+ getRes(obj) {
306
+ console.log(obj,"========")
307
+ this.orgCondtionStr = obj
308
+ },
309
+ stamp() {
310
+ this.all = false
311
+ //默认选择要打印的列
312
+ this.modelval = defaultPrint.config
313
+ this.fields = this.getfield
314
+ console.log('所有打印字段', this.fields)
315
+ this.printshow = true
316
+ this.put()
317
+ },
318
+ dealmsg(val) {
319
+ console.log('---------------dealmsg')
320
+ val.model = this.model.model
321
+ this.$dispatch('deal-msg', val)
322
+ },
323
+ put() {
324
+ // 对Modelval进行排序
325
+ this.sortModelval()
326
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
327
+ for (let key of this.modelval) {
328
+ this.thead += '<th>' + this.fields[key] + '</th>'
329
+ }
330
+ this.thead += '</tr>'
331
+ },
332
+ print() {
333
+ this.$refs.print.PrintAsFile()
334
+ this.printshow = false
335
+ },
336
+ close() {
337
+ this.printshow = false
338
+ this.all = false
339
+ },
340
+ // 对选择的列进行排序
341
+ sortModelval() {
342
+ let sortModel = []
343
+ Object.keys(this.fields).forEach((key) => {
344
+ if (this.modelval.includes(key)) {
345
+ sortModel.push(key)
346
+ }
347
+ })
348
+ this.modelval = sortModel
349
+ console.log('选择的打印的字段', this.modelval)
350
+ },
351
+ async getpcd(){
352
+ let HttpReset = new HttpResetClass()
353
+ console.log('开始获取区域')
354
+ var req = await HttpReset.load('POST','rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
355
+ data: {
356
+ items: '*',
357
+ tablename: 't_pcd',
358
+ orderitem: 'id',
359
+ condition: `1=1`
360
+ }
361
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
362
+ let redata = []
363
+ console.log('区域是:',req)
364
+ req.data.forEach((row, n) => {
365
+ redata[n] = {
366
+ label: row.f_pcd,
367
+ value: row.id,
368
+ data: row,
369
+ id: row.id
370
+ }
371
+ })
372
+ console.log('获取到的区域',redata)
373
+ this.pcdslist = redata
374
+ }
375
+ },
376
+ watch: {
377
+ 'all'(val) {
378
+ if (val) {
379
+ this.modelval = this.bodyData
380
+ } else {
381
+ this.modelval = defaultPrint.config
382
+ this.put()
383
+ }
384
+ },
385
+ 'modelval.length'() {
386
+ this.put()
387
+ },
388
+ sumsmodel:{
389
+ handler: function(val) {
390
+ this.getotherfooter();
391
+ },
392
+ deep: true
393
+ },
394
+ },
395
+ computed: {
396
+ authArr () {
397
+ return this.$login.r ? this.$login.r : []
398
+ },
399
+ getCondition() {
400
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
401
+ },
402
+ getfield() {
403
+ return exportConfig.changUserConfig
404
+ },
405
+ field_name() {
406
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('更改内容')]
407
+ }
408
+ }
409
+ }
410
+ </script>