apply-clients 4.0.66 → 4.0.67

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 (26) hide show
  1. package/package.json +1 -1
  2. package/src/apply.js +186 -186
  3. package/src/components/product/Function/InstallInfoSelect.vue +239 -239
  4. package/src/components/product/ImageUpload1.vue +10 -6
  5. package/src/components/product/Process/ExplorationSelect.vue +463 -463
  6. package/src/components/product/Process/Processes/BatchItem.vue +507 -507
  7. package/src/components/product/Statistics/ApplyPaySearch/ApplyCheckBill.vue +420 -420
  8. package/src/components/product/Statistics/ApplyPaySearch/ApplyPaySearch.vue +363 -363
  9. package/src/components/product/Statistics/ApplyPaySearch/MaterialSummary.vue +373 -373
  10. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +207 -207
  11. package/src/components/product/Supervisory/SupervisoryControl.vue +157 -157
  12. package/src/components/product/Supervisory/SupervisoryList.vue +450 -450
  13. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  14. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  15. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  16. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  17. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  18. package/.gradle/5.2.1/gc.properties +0 -0
  19. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  20. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  21. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  22. package/.gradle/vcs-1/gc.properties +0 -0
  23. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  24. package/gradle/wrapper/gradle-wrapper.properties +0 -5
  25. package/gradlew +0 -172
  26. package/gradlew.bat +0 -84
@@ -1,363 +1,363 @@
1
- <template>
2
- <div style="flex:1;" class="flex">
3
- <button class="btn btn-xs" v-show="!this.criteriaShow" @click="this.show()">
4
- <span class="glyphicon glyphicon-chevron-down" style="color: #000;"></span>
5
- </button>
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
11
- <label class="control-label">用户姓名</label>
12
- <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_user_name"
13
- condition="f_user_name like '%{}%'" placeholder="用户姓名"
14
- :size="model.f_user_name ? model.f_user_name.length : 1">
15
- </div>
16
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
17
- <label class="control-label">用户电话</label>
18
- <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_phone"
19
- condition="f_phone like '%{}%'" placeholder="用户电话"
20
- :size="model.f_phone ? model.f_phone.length : 1">
21
- </div>
22
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
23
- <label class="control-label">小区</label>
24
- <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_residential_area"
25
- condition="f_residential_area like '%{}%'" placeholder="小区"
26
- :size="model.f_residential_area ? model.f_residential_area.length * 2 : 1"/>
27
- </div>
28
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
29
- <label class="control-label">地址</label>
30
- <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_address"
31
- condition="f_address like '%{}%'" placeholder='用户地址'
32
- :size="model.f_address ? model.f_address.length * 2 : 1">
33
- </div>
34
- <div class="col-sm-3 form-group form-input-group" style="width: 20%">
35
- <label class="control-label">当前环节</label>
36
- <v-select @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.defnames" condition="defname like '%{}%'" placeholder='当前环节'
37
- v-model="model.defname" :value.sync="model.defname" close-on-select>
38
- </v-select>
39
- </div>
40
- <!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
41
- <!--<label class="control-label">用气性质</label>-->
42
- <!--<v-select @change="$dispatch('setQueryCondition',model)" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
43
- <!--:options='$parent.$parent.gasproperties' placeholder='请选择'-->
44
- <!--condition="f_gasproperties = '{}'"-->
45
- <!--close-on-select></v-select>-->
46
- <!--</div>-->
47
- </div>
48
- <div class="row">
49
- <div class="span" style = "float:right;margin-top:10px">
50
- <button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="search()">查询</button>
51
- <button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="$parent.$parent.clear()">清空</button>
52
- <!--<button class="btn btn-default" style="border-radius: 2px;margin-right: 10px"-->
53
- <!--type="button" @click="$parent.$parent.stamp()">打印</button>-->
54
-
55
- <export-excel :data="$parent.$parent.getCondition"
56
- :field="$parent.$parent.getfield"
57
- sqlurl="rs/logic/exportfile" sql-name="ApplyPaySearch" template-name='报装收费综合查询导出' :choose-col="true"></export-excel>
58
- <button class="btn" @click="$parent.$parent.hidden()" style="margin-left: 10px">
59
- <span class="glyphicon glyphicon-chevron-up"></span>
60
- </button>
61
- </div>
62
- </div>
63
- </div>
64
- </criteria>
65
-
66
- <data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname" @dblclick="$parent.dblclick">
67
- <template partial='head'>
68
- <tr>
69
- <th v-for="item in $parent.$parent.$parent.headData"><nobr>{{item}}</nobr></th>
70
- </tr>
71
- </template>
72
- <template partial='body'>
73
- <td v-for="item in $parent.$parent.$parent.bodyData"><nobr>{{row[item]}}</nobr></td>
74
- </template>
75
- <template partial='foot'></template>
76
- </data-grid>
77
-
78
- </criteria-paged>
79
-
80
- <table class="table-hover">
81
- <tr style="position: relative" class="table-bordered">
82
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
83
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">初装费(建安费)合计:&emsp;{{sumsmodel.f_cost2}}</td>
84
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">工料费合计:&emsp;{{sumsmodel.f_glf}}</td>
85
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">超长费(延伸服务费)合计:&emsp;{{sumsmodel.f_ysfwf}}</td>
86
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(收取材料费)合计:&emsp;{{sumsmodel.f_other_charge2}}</td>
87
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火材料费合计:&emsp;{{sumsmodel.f_dhclf}}</td>
88
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火不锈钢波纹管费合计:&emsp;{{sumsmodel.f_dhbxgbwg}}</td>
89
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(点火)合计:&emsp;{{sumsmodel.f_dhqtfy}}</td>
90
- <!--f_cost: 0,f_glf: 0,f_ysfwf: 0,f_other_charge: 0,f_dhclf: 0,f_dhqtfy: 0-->
91
- </tr>
92
- </table>
93
- <!-- <colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
94
- <modal :show.sync="printshow" v-ref:modal backdrop="false">
95
- <header slot="modal-header" class="modal-header text-center">
96
- <h4 class="modal-title">打印列选择</h4>
97
- <input type="checkbox" class="" id="f_generations" v-model="all">
98
- <label for="f_generations" class="font-size">全选</label>
99
- </header>
100
- <article slot="modal-body">
101
- <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
102
- <div class="col-sm-3" v-for="f in fields">
103
- <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
104
- <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
105
- </div>
106
- </div>
107
- </article>
108
- <footer slot="modal-footer" class="modal-footer">
109
- <center>
110
- <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
111
- <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
112
- <print-table :model='model' v-show="false" v-ref:print
113
- :top='40' :left='60' :right='40' :bottom='60'
114
- :thead="thead" :tfoot='tfoot' :attach="yangsen"
115
- :fields="modelval" :printpage="true">
116
- </print-table>
117
- </center>
118
- </footer>
119
- </modal>
120
- </div>
121
- </template>
122
-
123
- <script>
124
- import { PagedList } from 'vue-client'
125
- import {HttpResetClass} from 'vue-client'
126
- // import defaultPrint from './config/DefaultPrint'
127
- import Vue from 'vue'
128
-
129
- let readySomething = async function (self) {
130
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
131
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
132
- // self.$refs.paged.$refs.cri.model.f_charge_state = ['有效']
133
- await self.$MagLoadParams.loadParam(self.$login.f)
134
- console.log("参数拿到了YYYYYYYYYYYYYY")
135
- self.initGasBrand()
136
- await self.$refs.paged.$refs.cri.search()
137
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
138
- }
139
- export default {
140
- data() {
141
- return {
142
- showinfo: false,
143
- meterbrands: [],
144
- businesstype: '报装收费查询',
145
- data: {},
146
- model: new PagedList('rs/sql/ApplyPaySearch', 20,{},{f_cost2: 0,f_glf: 0,f_ysfwf: 0,f_other_charge2: 0,f_dhclf: 0,f_dhqtfy: 0,f_dhbxgbwg:0}),
147
- criteriaShow: true,
148
- classname: 'table table-bordered table table-hover',
149
- headData: ["用户姓名","用户电话","地址","用气性质","当前报装环节","初装费(建安费)","工料费","超长费(含报警器)","其他费用(收取材料费)","点火材料费","其他费用(点火)","开始日期","分公司"],
150
- bodyData: ["f_user_name","f_phone","f_address","f_gas_type","defname","f_cost","f_glf","f_ysfwf","f_other_charge","f_dhclf","f_dhqtfy","f_apply_date","f_filiale"],
151
-
152
- filialeNameStr: null,
153
- filialeCodeStr: this.$login.f.f_orgids,
154
- userid: this.$login.f.id,
155
- source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
156
- defnames:[],
157
- modelval: [],
158
- printshow: false,
159
- all: false,
160
- fields: {},
161
- thead: '',
162
- tfoot: '',
163
- //合计数据
164
- sumsmodel: {}
165
- }
166
- },
167
- async ready(){
168
- let http = new HttpResetClass()
169
- http.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
170
- resolveMsg: null,
171
- rejectMsg: null
172
- }).then((res)=>{
173
- // 先获取所有流程环节
174
- this.defnames = []
175
- for(let i=0;i<res.data.length;i++){
176
- this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
177
- }
178
- })
179
-
180
-
181
- // this.model = Object.assign(this.model,this.$parent.queryCondition)
182
- readySomething(this).then(() => {
183
- this.$emit('ready')
184
- }).catch((error) => {
185
- this.$emit('error', error)
186
- })
187
- this.$refs.paged.$refs.cri.model = Object.assign(this.$refs.paged.$refs.cri.model,this.$parent.$parent.$parent.queryCondition)
188
- this.$refs.paged.$refs.cri.search()
189
- },
190
- methods: {
191
- initGasBrand () {
192
- let arr = []
193
- console.log("this.$MagGetSaleParam.getGasbrand()===",this.$MagGetSaleParam.getGasbrand())
194
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
195
- let temp = {}
196
- temp.label = item.label
197
- temp.value = item.value.f_meter_brand
198
- arr.push(temp)
199
- })
200
- this.meterbrands = [{label: '全部', value: ''}, ...arr]
201
- console.log("his.meterbrands===",this.meterbrands)
202
- },
203
- dblclick(obj) {
204
- this.data = obj
205
- this.showinfo = true
206
- },
207
- async selfSearch (args) {
208
- let f_orgstr = this.filialeCodeStr
209
- console.log('xxxx',f_orgstr)
210
- args.condition = `${args.condition}`
211
- console.log('我的阐述',JSON.stringify(args.condition))
212
- await this.model.search(args.condition, args.model)
213
-
214
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
215
- console.log('合计字段',this.sumsmodel)
216
- },
217
- clear(){
218
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
219
- this.$refs.paged.$refs.cri.model[key] = []
220
- this.$parent.$parent.$parent.queryCondition[key] = []
221
- })
222
- },
223
- show(){
224
- this.criteriaShow = true
225
- },
226
- hidden(){
227
- this.criteriaShow = false
228
- },
229
- getRes(obj) {
230
- this.filialeNameStr = obj.res
231
- this.filialeCodeStr = obj.resids
232
- },
233
- stamp () {
234
- this.all = false
235
- //默认选择要打印的列
236
- this.modelval = this.bodyData
237
- this.fields = this.getfield
238
- console.log('所有打印字段',this.fields)
239
- this.printshow = true
240
- this.put()
241
- },
242
- put () {
243
- // 对Modelval进行排序
244
- this.sortModelval()
245
- this.thead = `<tr><th colspan=${this.modelval.length}>报装收费统计报表</th></tr><tr>`
246
- for (let key of this.modelval) {
247
- this.thead += '<th>' + this.fields[key] + '</th>'
248
- }
249
- this.thead += '</tr>'
250
- },
251
- print () {
252
- this.$refs.print.PrintAsFile()
253
- this.printshow = false
254
- },
255
- close () {
256
- this.printshow = false
257
- this.all = false
258
- },
259
- // 对选择的列进行排序
260
- sortModelval () {
261
- let sortModel = []
262
- Object.keys(this.fields).forEach((key) => {
263
- if (this.modelval.includes(key)) {
264
- sortModel.push(key)
265
- }
266
- })
267
- this.modelval = sortModel
268
- console.log('选择的打印的字段', this.modelval)
269
- }
270
- },
271
- watch:{
272
- 'all' (val) {
273
- if (val) {
274
- this.modelval = this.bodyData
275
- } else {
276
- this.modelval = this.bodyData
277
- this.put()
278
- }
279
- },
280
- 'modelval.length' () {
281
- this.put()
282
- },
283
- },
284
- computed:{
285
- getCondition(){
286
- this.$refs.paged.$refs.cri.condition = this.$refs.paged.$refs.cri.condition?this.$refs.paged.$refs.cri.condition:'1=1'
287
- return {condition: `${this.$refs.paged.$refs.cri.condition}`}
288
- },
289
- getfield(){
290
- let data = {}
291
- this.bodyData.forEach((value, index)=>{
292
- data[this.bodyData[index]] = this.headData[index]
293
- })
294
-
295
- //合计字段打印
296
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
297
- if(this.sumsmodel){
298
- Object.keys(this.sumsmodel).forEach((key) => {
299
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
300
- })
301
- }else{
302
- this.tfoot += '暂无'
303
- }
304
- this.tfoot += '</th></tr>'
305
-
306
- return data
307
- },
308
- usertypes () {
309
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
310
- },
311
- gasproperties () {
312
- let rs = []
313
- if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
314
- rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
315
- }
316
- if(rs.length==0){
317
- rs=[{label: '居民用气', value: '居民用气'},{label: '商业用气', value: '商业用气'},{label: '工商业用气', value: '工商业用气'}]
318
- }
319
- return [{label: '全部', value: ''}, ...rs]
320
- },
321
- pricenames () {
322
- let arr = []
323
- this.$GetSaleParam.getOnlyPrice().forEach((item) => {
324
- console.log('看看气价的分公司..', item.value, this.$login.f.f_filiale)
325
- if (item.value) {
326
- if (this.$login.f.f_fengongsi === item.value.f_filiale) {
327
- let temp = {}
328
- temp.label = item.label
329
- temp.value = item.value.f_price_name
330
- arr.push(temp)
331
- }
332
- }
333
- })
334
- return [{label: '全部', value: ''}, ...arr]
335
- },
336
- metertypes () {
337
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
338
- },
339
- // meterbrands () {
340
- // let arr = []
341
- // this.$GetSaleParam.getGasbrand().forEach((item) => {
342
- // let temp = {}
343
- // temp.label = item.label
344
- // temp.value = item.value.f_meter_brand
345
- // arr.push(temp)
346
- // })
347
- // return [{label: '全部', value: ''}, ...arr]
348
- // },
349
- tablestate () {
350
- return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
351
- },
352
- chargetype () {
353
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
354
- },
355
- payments () {
356
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式查询专用')]
357
- },
358
- charge_state(){
359
- return [{label: '全部', value: ''},...this.$appdata.getParam('收费状态')]
360
- }
361
- }
362
- }
363
- </script>
1
+ <template>
2
+ <div style="flex:1;" class="flex">
3
+ <button class="btn btn-xs" v-show="!this.criteriaShow" @click="this.show()">
4
+ <span class="glyphicon glyphicon-chevron-down" style="color: #000;"></span>
5
+ </button>
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
11
+ <label class="control-label">用户姓名</label>
12
+ <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_user_name"
13
+ condition="f_user_name like '%{}%'" placeholder="用户姓名"
14
+ :size="model.f_user_name ? model.f_user_name.length : 1">
15
+ </div>
16
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
17
+ <label class="control-label">用户电话</label>
18
+ <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_phone"
19
+ condition="f_phone like '%{}%'" placeholder="用户电话"
20
+ :size="model.f_phone ? model.f_phone.length : 1">
21
+ </div>
22
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
23
+ <label class="control-label">小区</label>
24
+ <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_residential_area"
25
+ condition="f_residential_area like '%{}%'" placeholder="小区"
26
+ :size="model.f_residential_area ? model.f_residential_area.length * 2 : 1"/>
27
+ </div>
28
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
29
+ <label class="control-label">地址</label>
30
+ <input @change="$dispatch('setQueryCondition',model)" type="text" class="form-control" v-model="model.f_address"
31
+ condition="f_address like '%{}%'" placeholder='用户地址'
32
+ :size="model.f_address ? model.f_address.length * 2 : 1">
33
+ </div>
34
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%">
35
+ <label class="control-label">当前环节</label>
36
+ <v-select @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.defnames" condition="defname like '%{}%'" placeholder='当前环节'
37
+ v-model="model.defname" :value.sync="model.defname" close-on-select>
38
+ </v-select>
39
+ </div>
40
+ <!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
41
+ <!--<label class="control-label">用气性质</label>-->
42
+ <!--<v-select @change="$dispatch('setQueryCondition',model)" :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"-->
43
+ <!--:options='$parent.$parent.gasproperties' placeholder='请选择'-->
44
+ <!--condition="f_gasproperties = '{}'"-->
45
+ <!--close-on-select></v-select>-->
46
+ <!--</div>-->
47
+ </div>
48
+ <div class="row">
49
+ <div class="span" style = "float:right;margin-top:10px">
50
+ <button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="search()">查询</button>
51
+ <button class="btn btn-success" style="border-radius: 2px;margin-right: 10px" @click="$parent.$parent.clear()">清空</button>
52
+ <!--<button class="btn btn-default" style="border-radius: 2px;margin-right: 10px"-->
53
+ <!--type="button" @click="$parent.$parent.stamp()">打印</button>-->
54
+
55
+ <export-excel :data="$parent.$parent.getCondition"
56
+ :field="$parent.$parent.getfield"
57
+ sqlurl="rs/logic/exportfile" sql-name="ApplyPaySearch" template-name='报装收费综合查询导出' :choose-col="true"></export-excel>
58
+ <button class="btn" @click="$parent.$parent.hidden()" style="margin-left: 10px">
59
+ <span class="glyphicon glyphicon-chevron-up"></span>
60
+ </button>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </criteria>
65
+
66
+ <data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname" @dblclick="$parent.dblclick">
67
+ <template partial='head'>
68
+ <tr>
69
+ <th v-for="item in $parent.$parent.$parent.headData"><nobr>{{item}}</nobr></th>
70
+ </tr>
71
+ </template>
72
+ <template partial='body'>
73
+ <td v-for="item in $parent.$parent.$parent.bodyData"><nobr>{{row[item]}}</nobr></td>
74
+ </template>
75
+ <template partial='foot'></template>
76
+ </data-grid>
77
+
78
+ </criteria-paged>
79
+
80
+ <table class="table-hover">
81
+ <tr style="position: relative" class="table-bordered">
82
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
83
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">初装费(建安费)合计:&emsp;{{sumsmodel.f_cost2}}</td>
84
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">工料费合计:&emsp;{{sumsmodel.f_glf}}</td>
85
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">超长费(延伸服务费)合计:&emsp;{{sumsmodel.f_ysfwf}}</td>
86
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(收取材料费)合计:&emsp;{{sumsmodel.f_other_charge2}}</td>
87
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火材料费合计:&emsp;{{sumsmodel.f_dhclf}}</td>
88
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">点火不锈钢波纹管费合计:&emsp;{{sumsmodel.f_dhbxgbwg}}</td>
89
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">其他费用(点火)合计:&emsp;{{sumsmodel.f_dhqtfy}}</td>
90
+ <!--f_cost: 0,f_glf: 0,f_ysfwf: 0,f_other_charge: 0,f_dhclf: 0,f_dhqtfy: 0-->
91
+ </tr>
92
+ </table>
93
+ <!-- <colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
94
+ <modal :show.sync="printshow" v-ref:modal backdrop="false">
95
+ <header slot="modal-header" class="modal-header text-center">
96
+ <h4 class="modal-title">打印列选择</h4>
97
+ <input type="checkbox" class="" id="f_generations" v-model="all">
98
+ <label for="f_generations" class="font-size">全选</label>
99
+ </header>
100
+ <article slot="modal-body">
101
+ <div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">
102
+ <div class="col-sm-3" v-for="f in fields">
103
+ <input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">
104
+ <label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>
105
+ </div>
106
+ </div>
107
+ </article>
108
+ <footer slot="modal-footer" class="modal-footer">
109
+ <center>
110
+ <button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>
111
+ <button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>
112
+ <print-table :model='model' v-show="false" v-ref:print
113
+ :top='40' :left='60' :right='40' :bottom='60'
114
+ :thead="thead" :tfoot='tfoot' :attach="yangsen"
115
+ :fields="modelval" :printpage="true">
116
+ </print-table>
117
+ </center>
118
+ </footer>
119
+ </modal>
120
+ </div>
121
+ </template>
122
+
123
+ <script>
124
+ import { PagedList } from 'vue-client'
125
+ import {HttpResetClass} from 'vue-client'
126
+ // import defaultPrint from './config/DefaultPrint'
127
+ import Vue from 'vue'
128
+
129
+ let readySomething = async function (self) {
130
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
131
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
132
+ // self.$refs.paged.$refs.cri.model.f_charge_state = ['有效']
133
+ await self.$MagLoadParams.loadParam(self.$login.f)
134
+ console.log("参数拿到了YYYYYYYYYYYYYY")
135
+ self.initGasBrand()
136
+ await self.$refs.paged.$refs.cri.search()
137
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
138
+ }
139
+ export default {
140
+ data() {
141
+ return {
142
+ showinfo: false,
143
+ meterbrands: [],
144
+ businesstype: '报装收费查询',
145
+ data: {},
146
+ model: new PagedList('rs/sql/ApplyPaySearch', 20,{},{f_cost2: 0,f_glf: 0,f_ysfwf: 0,f_other_charge2: 0,f_dhclf: 0,f_dhqtfy: 0,f_dhbxgbwg:0}),
147
+ criteriaShow: true,
148
+ classname: 'table table-bordered table table-hover',
149
+ headData: ["用户姓名","用户电话","地址","用气性质","当前报装环节","初装费(建安费)","工料费","超长费(含报警器)","其他费用(收取材料费)","点火材料费","其他费用(点火)","开始日期","分公司"],
150
+ bodyData: ["f_user_name","f_phone","f_address","f_gas_type","defname","f_cost","f_glf","f_ysfwf","f_other_charge","f_dhclf","f_dhqtfy","f_apply_date","f_filiale"],
151
+
152
+ filialeNameStr: null,
153
+ filialeCodeStr: this.$login.f.f_orgids,
154
+ userid: this.$login.f.id,
155
+ source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
156
+ defnames:[],
157
+ modelval: [],
158
+ printshow: false,
159
+ all: false,
160
+ fields: {},
161
+ thead: '',
162
+ tfoot: '',
163
+ //合计数据
164
+ sumsmodel: {}
165
+ }
166
+ },
167
+ async ready(){
168
+ let http = new HttpResetClass()
169
+ http.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
170
+ resolveMsg: null,
171
+ rejectMsg: null
172
+ }).then((res)=>{
173
+ // 先获取所有流程环节
174
+ this.defnames = []
175
+ for(let i=0;i<res.data.length;i++){
176
+ this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
177
+ }
178
+ })
179
+
180
+
181
+ // this.model = Object.assign(this.model,this.$parent.queryCondition)
182
+ readySomething(this).then(() => {
183
+ this.$emit('ready')
184
+ }).catch((error) => {
185
+ this.$emit('error', error)
186
+ })
187
+ this.$refs.paged.$refs.cri.model = Object.assign(this.$refs.paged.$refs.cri.model,this.$parent.$parent.$parent.queryCondition)
188
+ this.$refs.paged.$refs.cri.search()
189
+ },
190
+ methods: {
191
+ initGasBrand () {
192
+ let arr = []
193
+ console.log("this.$MagGetSaleParam.getGasbrand()===",this.$MagGetSaleParam.getGasbrand())
194
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
195
+ let temp = {}
196
+ temp.label = item.label
197
+ temp.value = item.value.f_meter_brand
198
+ arr.push(temp)
199
+ })
200
+ this.meterbrands = [{label: '全部', value: ''}, ...arr]
201
+ console.log("his.meterbrands===",this.meterbrands)
202
+ },
203
+ dblclick(obj) {
204
+ this.data = obj
205
+ this.showinfo = true
206
+ },
207
+ async selfSearch (args) {
208
+ let f_orgstr = this.filialeCodeStr
209
+ console.log('xxxx',f_orgstr)
210
+ args.condition = `${args.condition}`
211
+ console.log('我的阐述',JSON.stringify(args.condition))
212
+ await this.model.search(args.condition, args.model)
213
+
214
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
215
+ console.log('合计字段',this.sumsmodel)
216
+ },
217
+ clear(){
218
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
219
+ this.$refs.paged.$refs.cri.model[key] = []
220
+ this.$parent.$parent.$parent.queryCondition[key] = []
221
+ })
222
+ },
223
+ show(){
224
+ this.criteriaShow = true
225
+ },
226
+ hidden(){
227
+ this.criteriaShow = false
228
+ },
229
+ getRes(obj) {
230
+ this.filialeNameStr = obj.res
231
+ this.filialeCodeStr = obj.resids
232
+ },
233
+ stamp () {
234
+ this.all = false
235
+ //默认选择要打印的列
236
+ this.modelval = this.bodyData
237
+ this.fields = this.getfield
238
+ console.log('所有打印字段',this.fields)
239
+ this.printshow = true
240
+ this.put()
241
+ },
242
+ put () {
243
+ // 对Modelval进行排序
244
+ this.sortModelval()
245
+ this.thead = `<tr><th colspan=${this.modelval.length}>报装收费统计报表</th></tr><tr>`
246
+ for (let key of this.modelval) {
247
+ this.thead += '<th>' + this.fields[key] + '</th>'
248
+ }
249
+ this.thead += '</tr>'
250
+ },
251
+ print () {
252
+ this.$refs.print.PrintAsFile()
253
+ this.printshow = false
254
+ },
255
+ close () {
256
+ this.printshow = false
257
+ this.all = false
258
+ },
259
+ // 对选择的列进行排序
260
+ sortModelval () {
261
+ let sortModel = []
262
+ Object.keys(this.fields).forEach((key) => {
263
+ if (this.modelval.includes(key)) {
264
+ sortModel.push(key)
265
+ }
266
+ })
267
+ this.modelval = sortModel
268
+ console.log('选择的打印的字段', this.modelval)
269
+ }
270
+ },
271
+ watch:{
272
+ 'all' (val) {
273
+ if (val) {
274
+ this.modelval = this.bodyData
275
+ } else {
276
+ this.modelval = this.bodyData
277
+ this.put()
278
+ }
279
+ },
280
+ 'modelval.length' () {
281
+ this.put()
282
+ },
283
+ },
284
+ computed:{
285
+ getCondition(){
286
+ this.$refs.paged.$refs.cri.condition = this.$refs.paged.$refs.cri.condition?this.$refs.paged.$refs.cri.condition:'1=1'
287
+ return {condition: `${this.$refs.paged.$refs.cri.condition}`}
288
+ },
289
+ getfield(){
290
+ let data = {}
291
+ this.bodyData.forEach((value, index)=>{
292
+ data[this.bodyData[index]] = this.headData[index]
293
+ })
294
+
295
+ //合计字段打印
296
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
297
+ if(this.sumsmodel){
298
+ Object.keys(this.sumsmodel).forEach((key) => {
299
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
300
+ })
301
+ }else{
302
+ this.tfoot += '暂无'
303
+ }
304
+ this.tfoot += '</th></tr>'
305
+
306
+ return data
307
+ },
308
+ usertypes () {
309
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
310
+ },
311
+ gasproperties () {
312
+ let rs = []
313
+ if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
314
+ rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
315
+ }
316
+ if(rs.length==0){
317
+ rs=[{label: '居民用气', value: '居民用气'},{label: '商业用气', value: '商业用气'},{label: '工商业用气', value: '工商业用气'}]
318
+ }
319
+ return [{label: '全部', value: ''}, ...rs]
320
+ },
321
+ pricenames () {
322
+ let arr = []
323
+ this.$GetSaleParam.getOnlyPrice().forEach((item) => {
324
+ console.log('看看气价的分公司..', item.value, this.$login.f.f_filiale)
325
+ if (item.value) {
326
+ if (this.$login.f.f_fengongsi === item.value.f_filiale) {
327
+ let temp = {}
328
+ temp.label = item.label
329
+ temp.value = item.value.f_price_name
330
+ arr.push(temp)
331
+ }
332
+ }
333
+ })
334
+ return [{label: '全部', value: ''}, ...arr]
335
+ },
336
+ metertypes () {
337
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
338
+ },
339
+ // meterbrands () {
340
+ // let arr = []
341
+ // this.$GetSaleParam.getGasbrand().forEach((item) => {
342
+ // let temp = {}
343
+ // temp.label = item.label
344
+ // temp.value = item.value.f_meter_brand
345
+ // arr.push(temp)
346
+ // })
347
+ // return [{label: '全部', value: ''}, ...arr]
348
+ // },
349
+ tablestate () {
350
+ return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
351
+ },
352
+ chargetype () {
353
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
354
+ },
355
+ payments () {
356
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式查询专用')]
357
+ },
358
+ charge_state(){
359
+ return [{label: '全部', value: ''},...this.$appdata.getParam('收费状态')]
360
+ }
361
+ }
362
+ }
363
+ </script>