manage-client 4.0.59 → 4.0.60

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,358 +0,0 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
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'"
16
- :show-reset-button="true"
17
- condition="f_band_time >= '{}'">
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'"
26
- :show-reset-button="true"
27
- condition="f_band_time <= '{}'">
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">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" placeholder="客户名称">
39
- </div>
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
44
-
45
- <!-- <export-excel :data="$parent.$parent.getCondition"-->
46
- <!-- :field="$parent.$parent.getExportField"-->
47
- <!-- sqlurl="api/af-revenue/logic/exportfile" sql-name="wechatQuery" template-name='微信查询导出'-->
48
- <!-- :choose-col="true"></export-excel>-->
49
-
50
- <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>
51
- </div>
52
- </div>
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
55
- <div class="col-sm-2 form-group">
56
- <label class="font_normal_body">客户电话</label>
57
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
58
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
59
- </div>
60
- <div class="col-sm-2 form-group">
61
- <label class="font_normal_body">客户地址</label>
62
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
63
- condition="f_address like '%{}%'" placeholder='客户地址'>
64
- </div>
65
- <div class="col-sm-2 form-group" >
66
- <label class="font_normal_body">气表品牌</label>
67
- <v-select :value.sync="model.gasbrand" v-model="model.gasbrand"
68
- :options='$parent.$parent.meterbrands' placeholder='气表品牌' close-on-select
69
- v-model='$parent.$parent.gasbrand'
70
- condition="f_meter_brand = '{}'"
71
- ></v-select>
72
- </div>
73
- </div>
74
- </div>
75
- </criteria>
76
-
77
- <data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
78
- <template partial='head'>
79
- <tr>
80
- <th>
81
- <nobr>客户编号</nobr>
82
- </th>
83
- <th>
84
- <nobr>客户名称</nobr>
85
- </th>
86
- <th>
87
- <nobr>气表品牌</nobr>
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
- <nobr>客户地址</nobr>
103
- </th>
104
- <th>
105
- <nobr>操作</nobr>
106
- </th>
107
- </tr>
108
- </template>
109
- <template partial='body'>
110
- <td :class="'back-blue'" style="text-align: center;" >
111
- <nobr>
112
- {{row.f_userinfo_code}}
113
- </nobr> </td>
114
- <td :class="'back-blue'" style="text-align: center;">
115
- <nobr>{{row.f_user_name}}</nobr>
116
- </td>
117
- <td :class="'back-blue'" style="text-align: center;">
118
- <nobr>{{row.f_meter_brand}}</nobr>
119
- </td>
120
- <td :class="'back-blue'" style="text-align: center;">
121
- <nobr>{{row.f_meter_type}}</nobr>
122
- </td>
123
- <td :class="'back-blue'" style="text-align: center;">
124
- <nobr>{{row.f_user_phone}}</nobr>
125
- </td>
126
- <td :class="'back-blue'" style="text-align: center;">
127
- <nobr>{{row.f_open_id}}</nobr>
128
- </td>
129
- <td :class="'back-blue'" style="text-align: center;">
130
- <nobr>{{row.f_band_state}}</nobr>
131
- </td>
132
- <td :class="'back-blue'" style="text-align: center;">
133
- <nobr>{{row.f_address}}</nobr>
134
- </td>
135
- <td style="text-align: center;">
136
- <button type="button" name="button" class="btn btn-link"
137
- @click="$parent.$parent.$parent.wechatbing(row)">解绑
138
- </button>
139
- </td>
140
- </template>
141
- </data-grid>
142
- </criteria-paged>
143
- </div>
144
- </div>
145
- </div>
146
- </div>
147
- </template>
148
-
149
- <script>
150
- import {HttpResetClass, PagedList} from 'vue-client'
151
- import defaultPrint from '../../../components/sale/config/DefaultPrint'
152
- import exportConfig from "../../../components/sale/config/exportConfig"
153
-
154
- let readySomething = async function (self) {
155
- self.loadMeterBooks()
156
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
157
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
158
- await self.$refs.paged.$refs.cri.search()
159
- // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
160
-
161
- }
162
-
163
- export default {
164
- title: '微信绑定查询',
165
- data() {
166
- return {
167
- model: new PagedList('api/af-revenue/sql/wechatQuery', 20, {}),
168
- criteriaShow: false,
169
- orgCondtionStr: '',
170
- modelval: [],
171
- printshow: false,
172
- all: false,
173
- fields: {},
174
- meterbrands:[{label: '全部',value: ''}],
175
- thead: '',
176
- tfoot: '',
177
- area: [],
178
- //合计数据
179
- // sumsmodel: {},
180
- initres: {
181
- org:[this.$login.f.f_orgids.slice(0, -1)],
182
- dep:[],
183
- user:[],
184
- },
185
- userdetail: {
186
- show: false,
187
- f_userinfo_code: '',
188
- f_filialeids: ''
189
- },
190
- show:false,
191
- rowdata:{},
192
- sliceArea: [],
193
- f_orgstr : this.$login.f.f_orgids.slice(0, -1)
194
- }
195
- },
196
- ready() {
197
- readySomething(this).then(() => {
198
- this.$emit('ready')
199
- }).catch((error) => {
200
- this.$emit('error', error)
201
- })
202
- this.initAreas(this.f_orgstr)
203
- },
204
- methods: {
205
- loadMeterBooks(){
206
- let meterbrand = this.$GetSaleParam.getGasbrand()
207
- for(let row of meterbrand){
208
- this.meterbrands.push({label: row.label,value: row.value.f_meter_brand})
209
- }
210
- },
211
- //把数据库查询数据转换为下拉数据
212
- calculate(rows){
213
- let data = []
214
- rows.forEach((row, n) => {
215
- data[n] = {label: row.f_residential_area, value: row.id}
216
- })
217
- return data
218
- },
219
- search(){
220
- this.$refs.paged.$refs.cri.search()
221
- },
222
- wechatbing(row) {
223
- console.log('微信解绑用户', row)
224
- let param = {
225
- id: row.id
226
- }
227
- this.$resetpost('api/af-revenue/logic/wechatbind', {data: param}, {warnMsg: '确定对这条记录进行解绑吗?'}).then(() => {
228
- this.$refs.paged.$refs.cri.search()
229
- })
230
- },
231
- cancel(obj) {
232
- this.show = false
233
- },
234
- async initAreas (val) {
235
-
236
- if (val) {
237
- let getAllArea = await this.$resetpost('/rs/search', {
238
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
239
- userid: this.$login.f.id
240
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
241
-
242
- let arr = getAllArea.data.filter((res) => {
243
- return res.parentid == val
244
- })
245
- console.log('过滤之后的片区', arr)
246
- this.sliceArea = []
247
- this.sliceArea.push({label: "全部", value: ""})
248
- arr.forEach((res) => {
249
- this.sliceArea.push({label: res.name, value: res.name})
250
- })
251
- console.log(this.sliceArea)
252
- }
253
- },
254
- selfSearch(args) {
255
- if (!this.orgCondtionStr) {
256
- args.condition = `${args.condition}` + " and f_orgid = " + this.f_orgstr
257
- } else {
258
- args.condition = `${args.condition}` + this.orgCondtionStr
259
- }
260
- this.model.search(args.condition, args.model)
261
- },
262
- clear() {
263
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
264
- this.$refs.paged.$refs.cri.model[key] = []
265
- })
266
- },
267
- hidden() {
268
- this.criteriaShow = !this.criteriaShow
269
- },
270
- getRes(obj) {
271
- this.orgCondtionStr = obj
272
- },
273
- stamp() {
274
- this.all = false
275
- //默认选择要打印的列
276
- this.modelval = defaultPrint.config
277
- this.fields = this.getfield
278
- console.log('所有打印字段', this.fields)
279
- this.printshow = true
280
- this.put()
281
- },
282
- put() {
283
- // 对Modelval进行排序
284
- this.sortModelval()
285
- this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
286
- for (let key of this.modelval) {
287
- this.thead += '<th>' + this.fields[key] + '</th>'
288
- }
289
- this.thead += '</tr>'
290
- },
291
- print() {
292
- this.$refs.print.PrintAsFile()
293
- this.printshow = false
294
- },
295
- close() {
296
- this.printshow = false
297
- },
298
- // 对选择的列进行排序
299
- sortModelval() {
300
- let sortModel = []
301
- Object.keys(this.fields).forEach((key) => {
302
- if (this.modelval.includes(key)) {
303
- sortModel.push(key)
304
- }
305
- })
306
- this.modelval = sortModel
307
- console.log('选择的打印的字段', this.modelval)
308
- },
309
- dblclick(row, index) {
310
- console.log('双击之后数据', row, index)
311
- this.userdetail.show = true
312
- this.userdetail.f_userinfo_code = row.f_userinfo_code
313
- this.userdetail.f_filialeids = row.f_filialeids
314
- }
315
- },
316
- watch: {
317
- 'all'(val) {
318
- if (val) {
319
- this.modelval = this.bodyData
320
- } else {
321
- this.modelval = defaultPrint.config
322
- this.put()
323
- }
324
- },
325
- 'modelval.length'() {
326
- this.put()
327
- },
328
- },
329
- computed: {
330
- authArr () {
331
- return this.$login.r ? this.$login.r : []
332
- },
333
-
334
- getCondition() {
335
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
336
- },
337
- getfield() {
338
- let data = {}
339
- this.bodyData.forEach((value, index) => {
340
- data[this.bodyData[index]] = this.headData[index]
341
- })
342
- return data
343
- },
344
- getExportField() {
345
- return exportConfig.wechatConfig
346
- }
347
- }
348
- }
349
- </script>
350
- <style>
351
- .back-red{ /* 红色背景 */
352
- background-color: #F6C6CE;
353
- }
354
- .back-blue{ /* 蓝色背景 */
355
-
356
- }
357
- </style>
358
-
@@ -1,9 +0,0 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from 'vue'
3
-
4
- export default function () {
5
- // 收费查询
6
- Vue.component('wechat-bind', (resolve) => {
7
- require(['./businessquery/weChatBind'], resolve)
8
- })
9
- }
File without changes
File without changes