manage-client 3.2.30 → 3.2.31

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 (45) hide show
  1. package/build/dev-server.js +8 -27
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  4. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  5. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  6. package/src/components/sale/businessquery/ChargeQuery.vue +1245 -1245
  7. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  8. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  9. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  10. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  11. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  12. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  13. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  14. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  15. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  16. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  17. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  18. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  19. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  20. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  21. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  22. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  23. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  24. package/src/filiale/pingxiang/sale.js +9 -9
  25. package/src/filiale/qingtongxia/sale.js +13 -13
  26. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  27. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  28. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  29. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  30. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  31. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  32. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  33. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  34. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  35. package/src/filiale/tongchuan/ChargeQuery.vue +1270 -1270
  36. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  37. package/src/main.js +9 -9
  38. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  39. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  40. package/.gradle/5.4.1/gc.properties +0 -0
  41. package/src/.idea/misc.xml +0 -9
  42. package/src/.idea/modules.xml +0 -8
  43. package/src/.idea/src.iml +0 -9
  44. package/src/.idea/vcs.xml +0 -6
  45. package/src/.idea/workspace.xml +0 -93
@@ -1,272 +1,272 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" v-ref:sel></res-select-group>
10
- <div class="col-sm-2" >
11
- <label for="YeadDate" class="font_normal_body">统计年份</label>
12
- <datepicker placeholder="结束日期" style="width:60%"
13
- v-model="model.YeadDate"
14
- :value.sync="model.YeadDate"
15
- :format="'yyyy'"
16
- :show-reset-button="true"
17
- :select-year="true">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2">
21
- <label class="font_normal_body">包含APP</label>
22
- <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
23
- :options='$parent.$parent.hasapps' placeholder='请选择'
24
- condition="f_operator {} "
25
- close-on-select></v-select>
26
- </div>
27
-
28
- <div class="col-sm-2 ">
29
- <label class="font_normal_body" for="startDate">开始年份:</label>
30
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
31
- v-model="model.f_begin_operate_date"
32
- :value.sync="model.f_begin_operate_date"
33
- :format="'yyyy'"
34
- :show-reset-button="true"
35
- :select-year="true">
36
- </datepicker>
37
- </div>
38
- <div class="col-sm-2 " >
39
- <label class="font_normal_body" for="endDate">结束年份:</label>
40
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
41
- v-model="model.f_end_operate_date"
42
- :value.sync="model.f_end_operate_date"
43
- :format="'yyyy'"
44
- :show-reset-button="true"
45
- :select-year="true">
46
- </datepicker>
47
- </div>
48
- <div class="span" style = "float:right;margin-top:10px">
49
- <button class="button_search button_spacing" @click="search()">查询</button>
50
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
51
- <export-excel :data="$parent.$parent.getCondition"
52
- :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
53
- sqlurl="rs/logic/exportfile" sql-name="aode_YearByUserType" template-name='年报(客户类型)' :choose-col="true"></export-excel>
54
- <year-by-user-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></year-by-user-print>
55
-
56
-
57
- <!--<export-excel :data="$parent.$parent.getCondition"-->
58
- <!--:field="$parent.$parent.getExportField"-->
59
- <!--sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出' :choose-col="true"></export-excel>-->
60
- </div>
61
- </div>
62
- </div>
63
- </criteria>
64
- <data-grid :model="model" partial='list' :sumsmodel="sumsmodel" class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
65
- <template partial='head'>
66
- <tr>
67
- <th><nobr>购买日期</nobr></th>
68
- <th><nobr>民用开户</nobr></th>
69
- <th><nobr>民用人次</nobr></th>
70
- <th><nobr>民用气量</nobr></th>
71
- <th><nobr>民用金额</nobr></th>
72
- <th><nobr>商业开户</nobr></th>
73
- <th><nobr>商业人次</nobr></th>
74
- <th><nobr>商业气量</nobr></th>
75
- <th><nobr>商业金额</nobr></th>
76
- <th><nobr>工业开户</nobr></th>
77
- <th><nobr>工业人次</nobr></th>
78
- <th><nobr>工业气量</nobr></th>
79
- <th><nobr>工业金额</nobr></th>
80
- <th><nobr>合计开户</nobr></th>
81
- <th><nobr>合计人次</nobr></th>
82
- <th><nobr>合计气量</nobr></th>
83
- <th><nobr>合计金额</nobr></th>
84
- </tr>
85
- </template>
86
- <template partial='body'>
87
- <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
88
- <td style="text-align: center;"><nobr>{{row.f_open_my}}</nobr></td>
89
- <td style="text-align: center;"><nobr>{{row.f_count_my}}</nobr></td>
90
- <td style="text-align: center;"><nobr>{{row.f_pregas_my}}</nobr></td>
91
- <td style="text-align: center;"><nobr>{{row.f_collection_my}}</nobr></td>
92
-
93
- <td style="text-align: center;"><nobr>{{row.f_open_sy}}</nobr></td>
94
- <td style="text-align: center;"><nobr>{{row.f_count_sy}}</nobr></td>
95
- <td style="text-align: center;"><nobr>{{row.f_pregas_sy}}</nobr></td>
96
- <td style="text-align: center;"><nobr>{{row.f_collection_sy}}</nobr></td>
97
-
98
- <td style="text-align: center;"><nobr>{{row.f_open_gy}}</nobr></td>
99
- <td style="text-align: center;"><nobr>{{row.f_count_gy}}</nobr></td>
100
- <td style="text-align: center;"><nobr>{{row.f_pregas_gy}}</nobr></td>
101
- <td style="text-align: center;"><nobr>{{row.f_collection_gy}}</nobr></td>
102
-
103
- <td style="text-align: center;"><nobr>{{row.f_open}}</nobr></td>
104
- <td style="text-align: center;"><nobr>{{row.f_count}}</nobr></td>
105
- <td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
106
- <td style="text-align: center;"><nobr>{{row.f_collection}}</nobr></td>
107
- </template>
108
- <template partial='foot'>
109
- <td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
110
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open_my}}</nobr></td>
111
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_my}}</nobr></td>
112
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_my}}</nobr></td>
113
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_my}}</nobr></td>
114
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open_sy}}</nobr></td>
115
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_sy}}</nobr></td>
116
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_sy}}</nobr></td>
117
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_sy}}</nobr></td>
118
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open_gy}}</nobr></td>
119
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_gy}}</nobr></td>
120
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_gy}}</nobr></td>
121
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_gy}}</nobr></td>
122
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open}}</nobr></td>
123
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count}}</nobr></td>
124
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas}}</nobr></td>
125
- <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection}}</nobr></td>
126
- </template>
127
- </data-grid>
128
- </criteria-paged>
129
- </div>
130
- </div>
131
- </div>
132
- </template>
133
-
134
- <script>
135
- import { PagedList } from 'vue-client'
136
- // import defaultPrint from '../config/DefaultPrint'
137
- import exportConfig from '../../config/exportConfig'
138
- let readySomething = async function (self) {
139
- let year = new Date().getFullYear()
140
- self.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
141
- self.$refs.paged.$refs.cri.model.YeadDate = year+""
142
- self.$refs.paged.$refs.cri.model.f_end_operate_date = year+""
143
- self.$refs.paged.$refs.cri.model.f_begin_operate_date = year+""
144
- // await self.$refs.paged.$refs.cri.search()
145
- // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
146
- }
147
-
148
- export default {
149
- title: '年报(客户类型)',
150
- data() {
151
- return {
152
- model: new PagedList('rs/sql/aode_YearByUserType', 35,{YeadDate: 'this.model.YeadDate',f_end_operate_date:'this.model.f_end_operate_date',f_begin_operate_date:'this.model.f_begin_operate_date'},{
153
- f_open_my:0,
154
- f_count_my:0,
155
- f_pregas_my:0,
156
- f_collection_my:0,
157
- f_open_sy:0,
158
- f_count_sy:0,
159
- f_pregas_sy:0,
160
- f_collection_sy:0,
161
- f_open_gy:0,
162
- f_count_gy:0,
163
- f_pregas_gy:0,
164
- f_collection_gy:0,
165
- f_open: 0,
166
- f_count: 0,
167
- f_pregas: 0,
168
- f_collection: 0
169
- }),
170
- initres: {
171
- org:[this.$login.f.orgid],
172
- dep:[this.$login.f.depids],
173
- user:[this.$login.f.id]
174
- },
175
- criteriaShow: true,
176
- orgCondtionStr:'',
177
- sumsmodel: {},
178
- orgname: '',
179
- depname: '',
180
- hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
181
- defaultfield:[],
182
- sumName:['f_open_my','f_count_my','f_pregas_my','f_collection_my',
183
- 'f_open_sy','f_count_sy','f_pregas_sy',
184
- 'f_collection_sy','f_open_gy','f_count_gy','f_pregas_gy',
185
- ' f_collection_gy','f_open','f_count','f_pregas',
186
- 'f_collection']
187
- }
188
- },
189
- ready(){
190
- readySomething(this).then(() => {
191
- this.$emit('ready')
192
- }).catch((error) => {
193
- this.$emit('error', error)
194
- })
195
- },
196
- methods: {
197
- async selfSearch (args) {
198
- let f_orgstr = this.orgCondtionStr
199
- if(!this.orgCondtionStr){
200
- f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
201
- }
202
- args.condition = `${args.condition} ` + f_orgstr
203
- await this.model.search(args.condition, args.model)
204
-
205
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
206
- console.log('计算合计。', this.sumsmodel)
207
- if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
208
- for (let key in this.sumsmodel) {
209
- this.sumsmodel[key] = 0
210
- }
211
- }
212
- this.$dispatch('getdata', this.sumsmodel)
213
- },
214
- clear(){
215
- //清空部门和人员
216
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
217
- //部门和人员变为全选
218
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
219
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
220
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
221
- this.$refs.paged.$refs.cri.model[key] = []
222
- })
223
- },
224
- show(){
225
- this.criteriaShow = true
226
- },
227
- hidden(){
228
- this.criteriaShow = false
229
- },
230
- getRes(condition,obj) {
231
- this.orgCondtionStr = condition
232
- this.orgname = obj.orgnames[0]
233
- this.depname = obj.depnames[0]
234
- }
235
- },
236
- watch:{
237
- 'all' (val) {
238
- if (val) {
239
- this.modelval = this.bodyData
240
- } else {
241
- this.modelval = defaultPrint.config
242
- this.put()
243
- }
244
- },
245
- 'modelval.length' () {
246
- this.put()
247
- },
248
- },
249
- computed:{
250
- getCondition(){
251
- return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,YeadDate:`${this.$refs.paged.$refs.cri.model.YeadDate}`}
252
- },
253
- getfield(){
254
- return exportConfig.yearByUserConfig
255
- },
256
- userstates () {
257
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
258
- },
259
- sliceArea () {
260
- let rs = new Array()
261
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
262
- let temp = {
263
- label: this.$login.f.f_allArea[i].label,
264
- value: this.$login.f.f_allArea[i].label
265
- }
266
- rs.push(temp)
267
- }
268
- return [{label: '全部', value: ''}, ...rs]
269
- }
270
- }
271
- }
272
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" v-ref:sel></res-select-group>
10
+ <div class="col-sm-2" >
11
+ <label for="YeadDate" class="font_normal_body">统计年份</label>
12
+ <datepicker placeholder="结束日期" style="width:60%"
13
+ v-model="model.YeadDate"
14
+ :value.sync="model.YeadDate"
15
+ :format="'yyyy'"
16
+ :show-reset-button="true"
17
+ :select-year="true">
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2">
21
+ <label class="font_normal_body">包含APP</label>
22
+ <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
23
+ :options='$parent.$parent.hasapps' placeholder='请选择'
24
+ condition="f_operator {} "
25
+ close-on-select></v-select>
26
+ </div>
27
+
28
+ <div class="col-sm-2 ">
29
+ <label class="font_normal_body" for="startDate">开始年份:</label>
30
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
31
+ v-model="model.f_begin_operate_date"
32
+ :value.sync="model.f_begin_operate_date"
33
+ :format="'yyyy'"
34
+ :show-reset-button="true"
35
+ :select-year="true">
36
+ </datepicker>
37
+ </div>
38
+ <div class="col-sm-2 " >
39
+ <label class="font_normal_body" for="endDate">结束年份:</label>
40
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
41
+ v-model="model.f_end_operate_date"
42
+ :value.sync="model.f_end_operate_date"
43
+ :format="'yyyy'"
44
+ :show-reset-button="true"
45
+ :select-year="true">
46
+ </datepicker>
47
+ </div>
48
+ <div class="span" style = "float:right;margin-top:10px">
49
+ <button class="button_search button_spacing" @click="search()">查询</button>
50
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
51
+ <export-excel :data="$parent.$parent.getCondition"
52
+ :field="$parent.$parent.getfield" :sumname="$parent.$parent.sumName"
53
+ sqlurl="rs/logic/exportfile" sql-name="aode_YearByUserType" template-name='年报(客户类型)' :choose-col="true"></export-excel>
54
+ <year-by-user-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></year-by-user-print>
55
+
56
+
57
+ <!--<export-excel :data="$parent.$parent.getCondition"-->
58
+ <!--:field="$parent.$parent.getExportField"-->
59
+ <!--sqlurl="rs/logic/exportfile" sql-name="filesQuery" template-name='用户查询导出' :choose-col="true"></export-excel>-->
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </criteria>
64
+ <data-grid :model="model" partial='list' :sumsmodel="sumsmodel" class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
65
+ <template partial='head'>
66
+ <tr>
67
+ <th><nobr>购买日期</nobr></th>
68
+ <th><nobr>民用开户</nobr></th>
69
+ <th><nobr>民用人次</nobr></th>
70
+ <th><nobr>民用气量</nobr></th>
71
+ <th><nobr>民用金额</nobr></th>
72
+ <th><nobr>商业开户</nobr></th>
73
+ <th><nobr>商业人次</nobr></th>
74
+ <th><nobr>商业气量</nobr></th>
75
+ <th><nobr>商业金额</nobr></th>
76
+ <th><nobr>工业开户</nobr></th>
77
+ <th><nobr>工业人次</nobr></th>
78
+ <th><nobr>工业气量</nobr></th>
79
+ <th><nobr>工业金额</nobr></th>
80
+ <th><nobr>合计开户</nobr></th>
81
+ <th><nobr>合计人次</nobr></th>
82
+ <th><nobr>合计气量</nobr></th>
83
+ <th><nobr>合计金额</nobr></th>
84
+ </tr>
85
+ </template>
86
+ <template partial='body'>
87
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
88
+ <td style="text-align: center;"><nobr>{{row.f_open_my}}</nobr></td>
89
+ <td style="text-align: center;"><nobr>{{row.f_count_my}}</nobr></td>
90
+ <td style="text-align: center;"><nobr>{{row.f_pregas_my}}</nobr></td>
91
+ <td style="text-align: center;"><nobr>{{row.f_collection_my}}</nobr></td>
92
+
93
+ <td style="text-align: center;"><nobr>{{row.f_open_sy}}</nobr></td>
94
+ <td style="text-align: center;"><nobr>{{row.f_count_sy}}</nobr></td>
95
+ <td style="text-align: center;"><nobr>{{row.f_pregas_sy}}</nobr></td>
96
+ <td style="text-align: center;"><nobr>{{row.f_collection_sy}}</nobr></td>
97
+
98
+ <td style="text-align: center;"><nobr>{{row.f_open_gy}}</nobr></td>
99
+ <td style="text-align: center;"><nobr>{{row.f_count_gy}}</nobr></td>
100
+ <td style="text-align: center;"><nobr>{{row.f_pregas_gy}}</nobr></td>
101
+ <td style="text-align: center;"><nobr>{{row.f_collection_gy}}</nobr></td>
102
+
103
+ <td style="text-align: center;"><nobr>{{row.f_open}}</nobr></td>
104
+ <td style="text-align: center;"><nobr>{{row.f_count}}</nobr></td>
105
+ <td style="text-align: center;"><nobr>{{row.f_pregas}}</nobr></td>
106
+ <td style="text-align: center;"><nobr>{{row.f_collection}}</nobr></td>
107
+ </template>
108
+ <template partial='foot'>
109
+ <td style="text-align: center;background-color: mistyrose"><nobr>合计:</nobr></td>
110
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open_my}}</nobr></td>
111
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_my}}</nobr></td>
112
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_my}}</nobr></td>
113
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_my}}</nobr></td>
114
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open_sy}}</nobr></td>
115
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_sy}}</nobr></td>
116
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_sy}}</nobr></td>
117
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_sy}}</nobr></td>
118
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open_gy}}</nobr></td>
119
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count_gy}}</nobr></td>
120
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas_gy}}</nobr></td>
121
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection_gy}}</nobr></td>
122
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_open}}</nobr></td>
123
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_count}}</nobr></td>
124
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_pregas}}</nobr></td>
125
+ <td style="text-align: center;background-color: mistyrose"><nobr>{{model.sums.f_collection}}</nobr></td>
126
+ </template>
127
+ </data-grid>
128
+ </criteria-paged>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </template>
133
+
134
+ <script>
135
+ import { PagedList } from 'vue-client'
136
+ // import defaultPrint from '../config/DefaultPrint'
137
+ import exportConfig from '../../config/exportConfig'
138
+ let readySomething = async function (self) {
139
+ let year = new Date().getFullYear()
140
+ self.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
141
+ self.$refs.paged.$refs.cri.model.YeadDate = year+""
142
+ self.$refs.paged.$refs.cri.model.f_end_operate_date = year+""
143
+ self.$refs.paged.$refs.cri.model.f_begin_operate_date = year+""
144
+ // await self.$refs.paged.$refs.cri.search()
145
+ // self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
146
+ }
147
+
148
+ export default {
149
+ title: '年报(客户类型)',
150
+ data() {
151
+ return {
152
+ model: new PagedList('rs/sql/aode_YearByUserType', 35,{YeadDate: 'this.model.YeadDate',f_end_operate_date:'this.model.f_end_operate_date',f_begin_operate_date:'this.model.f_begin_operate_date'},{
153
+ f_open_my:0,
154
+ f_count_my:0,
155
+ f_pregas_my:0,
156
+ f_collection_my:0,
157
+ f_open_sy:0,
158
+ f_count_sy:0,
159
+ f_pregas_sy:0,
160
+ f_collection_sy:0,
161
+ f_open_gy:0,
162
+ f_count_gy:0,
163
+ f_pregas_gy:0,
164
+ f_collection_gy:0,
165
+ f_open: 0,
166
+ f_count: 0,
167
+ f_pregas: 0,
168
+ f_collection: 0
169
+ }),
170
+ initres: {
171
+ org:[this.$login.f.orgid],
172
+ dep:[this.$login.f.depids],
173
+ user:[this.$login.f.id]
174
+ },
175
+ criteriaShow: true,
176
+ orgCondtionStr:'',
177
+ sumsmodel: {},
178
+ orgname: '',
179
+ depname: '',
180
+ hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
181
+ defaultfield:[],
182
+ sumName:['f_open_my','f_count_my','f_pregas_my','f_collection_my',
183
+ 'f_open_sy','f_count_sy','f_pregas_sy',
184
+ 'f_collection_sy','f_open_gy','f_count_gy','f_pregas_gy',
185
+ ' f_collection_gy','f_open','f_count','f_pregas',
186
+ 'f_collection']
187
+ }
188
+ },
189
+ ready(){
190
+ readySomething(this).then(() => {
191
+ this.$emit('ready')
192
+ }).catch((error) => {
193
+ this.$emit('error', error)
194
+ })
195
+ },
196
+ methods: {
197
+ async selfSearch (args) {
198
+ let f_orgstr = this.orgCondtionStr
199
+ if(!this.orgCondtionStr){
200
+ f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
201
+ }
202
+ args.condition = `${args.condition} ` + f_orgstr
203
+ await this.model.search(args.condition, args.model)
204
+
205
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
206
+ console.log('计算合计。', this.sumsmodel)
207
+ if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
208
+ for (let key in this.sumsmodel) {
209
+ this.sumsmodel[key] = 0
210
+ }
211
+ }
212
+ this.$dispatch('getdata', this.sumsmodel)
213
+ },
214
+ clear(){
215
+ //清空部门和人员
216
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
217
+ //部门和人员变为全选
218
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
219
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
220
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
221
+ this.$refs.paged.$refs.cri.model[key] = []
222
+ })
223
+ },
224
+ show(){
225
+ this.criteriaShow = true
226
+ },
227
+ hidden(){
228
+ this.criteriaShow = false
229
+ },
230
+ getRes(condition,obj) {
231
+ this.orgCondtionStr = condition
232
+ this.orgname = obj.orgnames[0]
233
+ this.depname = obj.depnames[0]
234
+ }
235
+ },
236
+ watch:{
237
+ 'all' (val) {
238
+ if (val) {
239
+ this.modelval = this.bodyData
240
+ } else {
241
+ this.modelval = defaultPrint.config
242
+ this.put()
243
+ }
244
+ },
245
+ 'modelval.length' () {
246
+ this.put()
247
+ },
248
+ },
249
+ computed:{
250
+ getCondition(){
251
+ return {condition: `${this.$refs.paged.$refs.cri.condition}`+this.orgCondtionStr,YeadDate:`${this.$refs.paged.$refs.cri.model.YeadDate}`}
252
+ },
253
+ getfield(){
254
+ return exportConfig.yearByUserConfig
255
+ },
256
+ userstates () {
257
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
258
+ },
259
+ sliceArea () {
260
+ let rs = new Array()
261
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
262
+ let temp = {
263
+ label: this.$login.f.f_allArea[i].label,
264
+ value: this.$login.f.f_allArea[i].label
265
+ }
266
+ rs.push(temp)
267
+ }
268
+ return [{label: '全部', value: ''}, ...rs]
269
+ }
270
+ }
271
+ }
272
+ </script>