apply-clients 7.1.36-1 → 7.1.36-yuchuan-1

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 (55) hide show
  1. package/build/dev-server.js +8 -2
  2. package/dist-android.7z +0 -0
  3. package/dist.7z +0 -0
  4. package/package.json +1 -1
  5. package/src/apply.js +31 -4
  6. package/src/applyAndroid.js +5 -0
  7. package/src/components/android/AppSign.vue +13 -10
  8. package/src/components/android/Process/AppExplorationUser.vue +454 -454
  9. package/src/components/android/Process/AppServiceControl.vue +3 -3
  10. package/src/components/android/Process/Processes/AppChaiChuInfo.vue +546 -0
  11. package/src/components/android/Process/Processes/AppDevicesManagement.vue +2 -1
  12. package/src/components/android/Process/Processes/AppInstallationDetails.vue +69 -20
  13. package/src/components/android/Process/Processes/newAppDevicesManagement.vue +2 -1
  14. package/src/components/android/Process/Processes/newAppInstallationDetails.vue +5 -5
  15. package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -298
  16. package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -0
  17. package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -0
  18. package/src/components/product/ApplyCharge/ApplyChargeList.vue +27 -0
  19. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +198 -0
  20. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeSearch.vue +30 -0
  21. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +235 -0
  22. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +323 -0
  23. package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +144 -0
  24. package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -0
  25. package/src/components/product/ApplyGuanXian/TabButton.vue +157 -0
  26. package/src/components/product/ApplyGuanXian/Tabs.vue +67 -0
  27. package/src/components/product/Function/InstallInfoSelect.vue +3 -4
  28. package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -475
  29. package/src/components/product/Ignition/IgnitionList.vue +236 -232
  30. package/src/components/product/Ignition/IgnitionListManage.vue +69 -28
  31. package/src/components/product/Ignition/IgnitionRecord.vue +56 -17
  32. package/src/components/product/List/ShowDevices.vue +279 -277
  33. package/src/components/product/Print/OrderPrint/printChaiChuOrder.vue +260 -0
  34. package/src/components/product/Process/ExplorationSelect.vue +580 -566
  35. package/src/components/product/Process/ExplorationUser.vue +158 -155
  36. package/src/components/product/Process/NewExplorationUser.vue +184 -0
  37. package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -0
  38. package/src/components/product/Process/Processes/InstallationDetails.vue +86 -33
  39. package/src/components/product/Process/Processes/Print/printCharge.vue +5 -1
  40. package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -221
  41. package/src/components/product/Process/Processes/Print/printPaymentSubject.vue +170 -0
  42. package/src/components/product/Process/Processes/chargeManagement.vue +24 -6
  43. package/src/components/product/Process/Processes/devicesManagement.vue +2 -1
  44. package/src/components/product/Process/Processes/newInstallationDetails.vue +3 -3
  45. package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +230 -0
  46. package/src/components/product/Process/Service/ServiceControl.vue +169 -14
  47. package/src/components/product/Report/ReportItems.vue +79 -0
  48. package/src/components/product/Report/apply-stair-anzhuang.vue +361 -0
  49. package/src/components/product/Report/apply-stair-kaifa.vue +138 -0
  50. package/src/components/product/Report/apply-stair-tongqi.vue +137 -0
  51. package/src/components/product/Report/apply-stair-wtongqi.vue +138 -0
  52. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +37 -8
  53. package/src/components/product/Supervisory/SupervisoryList.vue +77 -26
  54. package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  55. package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
@@ -0,0 +1,79 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="baobiao">
4
+ <tab-button v-ref:list :active="0">
5
+ <tabs header="市场开发部月度报表">
6
+ <apply-stair-kaifa v-ref:paperfeimain></apply-stair-kaifa>
7
+ </tabs>
8
+ <tabs header="每月安装收入明细表">
9
+ <apply-stair-anzhuang v-ref:papermain></apply-stair-anzhuang>
10
+ </tabs>
11
+ <tabs header="用户管理部通气月报表">
12
+ <apply-stair-tongqi v-ref:paperfeimain></apply-stair-tongqi>
13
+ </tabs>
14
+ <tabs header="用户管理部未通气月报表">
15
+ <apply-stair-wtongqi v-ref:paperfeimain></apply-stair-wtongqi>
16
+ </tabs>
17
+ </tab-button>
18
+ </div>
19
+ </div>
20
+ </template>
21
+ <script>
22
+ import Vue from 'vue'
23
+ import {HttpResetClass} from 'vue-client'
24
+ export default {
25
+ title: '报表明细',
26
+ data () {
27
+ return {
28
+ showRight: false,
29
+ type: null,
30
+ selectdata: null,
31
+ show: []
32
+ }
33
+ },
34
+ methods: {
35
+ },
36
+ events: {
37
+ 'handleOrder' (type, row) {
38
+ this.showRight = false
39
+
40
+ this.type = type
41
+ this.selectdata = row
42
+
43
+ this.$nextTick(() => {
44
+ this.showRight = true
45
+ })
46
+ },
47
+ 'search' () {
48
+ this.selectdata = null
49
+ this.showRight = false
50
+ this.type = null
51
+
52
+ this.$refs.query.$refs.cp.$refs.cri.search()
53
+ }
54
+ },
55
+ watch: {
56
+ }
57
+ }
58
+ </script>
59
+ <style>
60
+ .baobiao {
61
+ padding: 1%;
62
+ margin: 1%;
63
+ width: 99%;
64
+ height: auto;
65
+ background-color: #ffffff;
66
+ border-radius: 14px;
67
+ box-shadow: 0px 1px 10px 0px rgba(2, 56, 104, 0.13);
68
+ }
69
+
70
+ .baobiao-right {
71
+ padding: 1%;
72
+ margin: 1% 1% 1% 0;
73
+ width: 58%;
74
+ height: auto;
75
+ background-color: #ffffff;
76
+ box-shadow: 0px 1px 10px 0px rgba(2, 56, 104, 0.13);
77
+ border-radius: 14px;
78
+ }
79
+ </style>
@@ -0,0 +1,361 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex dangqian" 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 for="startDate" 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 00:00:00'"
15
+ :show-reset-button="true">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label for="endDate" class="font_normal_body">结束日期</label>
20
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :format="'yyyy-MM-dd 23:59:59'"
24
+ :show-reset-button="true">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group" v-show="false">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
29
+ <res-select restype='department'
30
+ @res-select="$parent.$parent.getdep"
31
+ :parentresid="$parent.$parent.depresid"
32
+ :initresid='$parent.$parent.depid'>
33
+ </res-select>
34
+ </div>
35
+
36
+ <div class="span" style="float:right;">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+
39
+ <export-excel :data="$parent.$parent.getCondition"
40
+ :field="$parent.$parent.getfield"
41
+ :footer="$parent.$parent.footer"
42
+ :header="$parent.$parent.other"
43
+ sqlurl="rs/logic/applyExportfile"
44
+ sql-name="apply-stair-anzhuang"
45
+ template-name='每月安装收入明细表'
46
+ :choose-col="true"></export-excel>
47
+ <print-data-self :model="$parent.model" :field="$parent.$parent.getfield"
48
+ :defaultfield="$parent.$parent.defaultfield" printName="每月安装收入明细表"
49
+ :sumsmodel="$parent.$parent.sumsmodel" :sum-field="$parent.$parent.sumField" :page-sum="$parent.$parent.pageSum"
50
+ :start-date="$parent.$parent.startDate" :end-date="$parent.$parent.endDate"
51
+ ></print-data-self>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </criteria>
56
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
57
+ <template partial='head'>
58
+ <tr>
59
+ <th>
60
+ <nobr>序号</nobr>
61
+ </th>
62
+ <th>
63
+ <nobr>工程项目</nobr>
64
+ </th>
65
+ <th>
66
+ <nobr>收款时间</nobr>
67
+ </th>
68
+ <th>
69
+ <nobr>安装户数</nobr>
70
+ </th>
71
+ <th>
72
+ <nobr>发票金额</nobr>
73
+ </th>
74
+ <th>
75
+ <nobr>税额</nobr>
76
+ </th>
77
+ </tr>
78
+ </template>
79
+ <template partial='body'>
80
+ <td style="text-align:center">
81
+ <nobr>{{$index+1}}</nobr>
82
+ </td>
83
+ <td style="text-align: center;">
84
+ <nobr>{{row.name}}</nobr>
85
+ </td>
86
+ <td style="text-align: center;">
87
+ <nobr>{{row.fdate}}</nobr>
88
+ </td>
89
+ <td style="text-align: center;">
90
+ <nobr>{{row.num}}</nobr>
91
+ </td>
92
+ <td style="text-align: center;">
93
+ <nobr>{{row.fee}}</nobr>
94
+ </td>
95
+ <td style="text-align: center;">
96
+ <nobr>{{row.shui}}</nobr>
97
+ </td>
98
+ </template>
99
+ <template partial='foot'></template>
100
+ </data-grid>
101
+ </criteria-paged>
102
+ <table class="table-hover">
103
+ <tr style="position: relative" class="table-bordered">
104
+ <td
105
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold" >
106
+ 报表统计时间
107
+ </td>
108
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-if="startDate==endDate">
109
+ {{startDate}}
110
+ </td>
111
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold" v-else>
112
+ {{startDate+" 至 "+endDate}}
113
+ </td>
114
+ </tr>
115
+ <tr style="position: relative" class="table-bordered">
116
+ <td
117
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
118
+ 汇总信息
119
+ </td>
120
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
121
+ 安装户数:&emsp;{{sumsmodel.num.toFixed(2)}}
122
+ </td>
123
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
124
+ 发票金额:&emsp;{{sumsmodel.fee.toFixed(2)}}
125
+ </td>
126
+ </tr>
127
+ </table>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </template>
132
+ <script>
133
+ import {PagedList, HttpResetClass} from 'vue-client'
134
+ import defaultPrint from 'sale-client'
135
+ import exportConfig from 'sale-client'
136
+
137
+ let readySomething = async function (self) {
138
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
139
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
140
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
141
+ }
142
+ export default {
143
+ title: '每月安装收入明细表',
144
+ props: ['data'],
145
+ data() {
146
+ return {
147
+ depresid: [],
148
+ userresid: [],
149
+ f_orgid: this.$login.f.orgid,
150
+ f_depid: this.$login.f.depids,
151
+ f_operator_id: this.$login.f.id,
152
+ operatorid: [],
153
+ depid: [],
154
+ orgname: '',
155
+ depname: [],
156
+ operatorname: '',
157
+ orgCondtionStr: '1=1',
158
+ data: {},
159
+ other:[],
160
+ footer:[],
161
+ model: new PagedList('rs/sql/apply-stair-anzhuang', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'},{
162
+ num:0,
163
+ fee:0
164
+ }),
165
+ gasproperties:[],
166
+ show:false,
167
+ rowdata:{},
168
+ residentialArea: [],
169
+ modelval: [],
170
+ startDate:"",
171
+ endDate:"",
172
+ inputtouPerson: [],
173
+ printshow: false,
174
+ all: false,
175
+ fields: {},
176
+ thead: '',
177
+ tfoot: '',
178
+
179
+ // 下拉框
180
+
181
+ //合计数据
182
+ sumsmodel: {},
183
+ sumField: {
184
+ 'num': '安装户数', 'fee': '发票金额'
185
+ },
186
+ pageSum: {
187
+ 'num': '0.00',
188
+ 'fee': '0.00'
189
+ },
190
+ defaultfield: [],
191
+ config: {
192
+ defaultPrint: ['f_userinfo_code', 'f_user_name']
193
+ },
194
+ batchmoneyShow:false
195
+ }
196
+ },
197
+ ready() {
198
+ readySomething(this).then(() => {
199
+ this.$emit('ready')
200
+ }).catch((error) => {
201
+ this.$emit('error', error)
202
+ })
203
+ },
204
+ methods: {
205
+ getotherfooter(){
206
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
207
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
208
+ this.other=[];
209
+ this.footer=[];
210
+ let exportdata = this.getCondition;
211
+ let otherInData=[];
212
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
213
+ let footerData=[],exportfield=this.getfield;
214
+ footerData.push("合计");
215
+ let self =this;
216
+ // for(var field in self.sumsmodel){
217
+ // console.log("当前数据"+JSON.stringify(self.sumsmodel))
218
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
219
+ // }
220
+ this.footer.push(footerData);
221
+ this.other.push(otherInData);
222
+ },
223
+ search(){
224
+ this.$refs.paged.$refs.cri.search()
225
+ },
226
+ selfSearch(args) {
227
+ let orgcondition = ' f_orgid in (' + this.f_orgid + ')'
228
+ if (this.f_depid[0]) {
229
+ orgcondition += " and f_depid in("+this.f_depid.toString()+')'
230
+ }
231
+ if(this.f_operator_id[0]) {
232
+ orgcondition += ' and f_operator_id in (' + this.f_operator_id + ')'
233
+ }
234
+ this.startDate=this.$refs.paged.$refs.cri.model.startDate.substring(0,10)
235
+ this.endDate=this.$refs.paged.$refs.cri.model.endDate.substring(0,10)
236
+ this.orgCondtionStr=orgcondition
237
+ this.$refs.paged.$refs.cri.model.f_orgid = orgcondition
238
+ this.model.search(args.f_orgid, args.model)
239
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
240
+ },
241
+ getRes (obj) {
242
+ this.orgname = obj.res[0]
243
+ this.depresid = obj.resids
244
+ this.f_orgid = obj.resids
245
+ },
246
+ getdep (obj, val) {
247
+ this.depname = val
248
+ this.userresid = obj
249
+ this.f_depid = obj
250
+ },
251
+ getuser ( obj, val) {
252
+ this.operatorname = val[0]
253
+ this.f_operator_id = obj
254
+ },
255
+ stamp() {
256
+ this.all = false
257
+ //默认选择要打印的列
258
+ this.modelval = defaultPrint.config
259
+ this.fields = this.getfield
260
+ console.log('所有打印字段', this.fields)
261
+ this.printshow = true
262
+ this.put()
263
+ },
264
+ put() {
265
+ // 对Modelval进行排序
266
+ this.sortModelval()
267
+ this.thead = `<tr><th colspan=${this.modelval.length}>每月安装收入明细表</th></tr><tr>`
268
+ for (let key of this.modelval) {
269
+ this.thead += '<th>' + this.fields[key] + '</th>'
270
+ }
271
+ this.thead += '</tr>'
272
+ },
273
+ print() {
274
+ this.$refs.print.PrintAsFile()
275
+ this.printshow = false
276
+ },
277
+ dealmsg(val) {
278
+ console.log('---------------dealmsg')
279
+ this.rowdata=val
280
+ this.show=true
281
+ val.model = this.model.model
282
+ this.$dispatch('deal-msg', val)
283
+ },
284
+ close() {
285
+ this.printshow = false
286
+ this.all = false
287
+ },
288
+ // 对选择的列进行排序
289
+ sortModelval() {
290
+ let sortModel = []
291
+ Object.keys(this.fields).forEach((key) => {
292
+ if (this.modelval.includes(key)) {
293
+ sortModel.push(key)
294
+ }
295
+ })
296
+ this.modelval = sortModel
297
+ console.log('选择的打印的字段', this.modelval)
298
+ },
299
+ userTypeChange () {
300
+ this.gasproperties=[]
301
+ if(this.$refs.paged.$refs.criteria.model !==null) {
302
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
303
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
304
+ }
305
+ else{
306
+ this.gasproperties =[{label: '全部', value: ''}]
307
+ }
308
+ },
309
+ },
310
+ watch: {
311
+ 'all'(val) {
312
+ if (val) {
313
+ this.modelval = this.bodyData
314
+ } else {
315
+ this.modelval = defaultPrint.config
316
+ this.put()
317
+ }
318
+ },
319
+ 'modelval.length'() {
320
+ this.put()
321
+ },
322
+ sumsmodel:{
323
+ handler: function(val) {
324
+ this.getotherfooter();
325
+ },
326
+ deep: true
327
+ }
328
+ },
329
+ computed: {
330
+ getCondition() {
331
+ return {
332
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
333
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
334
+ f_orgid: this.orgCondtionStr
335
+
336
+ }
337
+
338
+ },
339
+ getfield() {
340
+ return exportConfig.apply_stair
341
+ },
342
+ whetherpaies () {
343
+ return [
344
+ {label: '全部', value: ''},
345
+ {label: '已缴费', value: '是'},
346
+ {label: '未缴费', value: '否'}
347
+ ]
348
+ },
349
+ usertypes() {
350
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
351
+ }
352
+
353
+ }
354
+ }
355
+ </script>
356
+ <style scoped>
357
+
358
+ .dangqian{
359
+ height: 90%!important;
360
+ }
361
+ </style>
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+
28
+ </div>
29
+ <div class="span" style = "float:right;">
30
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
31
+ <report-print id='gasprice1' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
32
+ <report-excel id='gasprice1'></report-excel>
33
+ </div>
34
+ </div>
35
+ </criteria>
36
+ <div partial='list' v-el:handcollect id='gasprice1' style="overflow-y: scroll">
37
+ <table class='tableprint' style="margin: 0px auto">
38
+ <thead>
39
+ <tr>
40
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
41
+ <h3 style="text-align: center">市场开发部月度报表</h3>
42
+ </th>
43
+ </tr>
44
+ <tr>
45
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
46
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
47
+ 结束时间:{{ model.model.endDate }}
48
+ </th>
49
+ </tr>
50
+ <tr>
51
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
52
+ 打印时间:{{{$parent.printTime}}}
53
+ </th>
54
+ </tr>
55
+ <tr>
56
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
57
+ <div>
58
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
59
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
60
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
61
+ </div>
62
+ </th>
63
+ </tr>
64
+ </thead>
65
+ <tr>
66
+ <td :colspan='$parent.spans' class="noborder">
67
+ {{{ model.data.substring(26,model.data.length-8) }}}
68
+ </td>
69
+ </tr>
70
+ <tfoot>
71
+ </tfoot>
72
+ </table>
73
+ </div>
74
+ </criteria-paged>
75
+ </div>
76
+ </template>
77
+
78
+ <script>
79
+ import { DataModel } from 'vue-client'
80
+ import co from 'co'
81
+ export default {
82
+ title: '市场开发部月度报表',
83
+ props: ['data'],
84
+ data () {
85
+ return {
86
+ printTime: this.$login.toStandardTimeString(),
87
+ depresid: [],
88
+ userresid: [],
89
+ f_orgid: this.$login.f.orgid,
90
+ f_depid: this.$login.f.depids,
91
+ f_operatorid: this.$login.f.id,
92
+ operatorid: [],
93
+ depid: [],
94
+ orgname: '',
95
+ depname: '',
96
+ operatorname: '',
97
+ f_inputtor: [],
98
+ f_user_type: '',
99
+ orgCondtionStr: '1=1',
100
+ model: new DataModel('rs/apply/report/apply-stair-kaifa', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
101
+ f_orgid: 'this.model.f_orgid'}),
102
+ reportStr: null,
103
+ spans: 0
104
+ }
105
+ },
106
+ ready () {
107
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
108
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
109
+ },
110
+ methods: {
111
+ searchData () {
112
+ this.$refs.paged.$refs.criteria.search()
113
+ },
114
+ selfSearch (args) {
115
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
116
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
117
+ this.$refs.paged.search(args)
118
+ },
119
+ getRes (obj) {
120
+ this.orgname = obj.res[0]
121
+ // this.depresid = obj.resids
122
+ this.f_orgid = obj.resids
123
+ }
124
+ },
125
+ watch: {
126
+ 'model.data' (val) {
127
+ this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
128
+ }
129
+ },
130
+ computed: {
131
+ }
132
+ }
133
+ </script>
134
+ <style scoped>
135
+ .noborder{
136
+ border: none;
137
+ }
138
+ </style>