apply-clients 7.1.36-yuchuan-21 → 7.1.36-yuchuan-24

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,189 +1,189 @@
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
- condition="f_operate_date > '{}'"
15
- :show-reset-button="reset">
16
- </datepicker>
17
- </div>
18
- <div class="col-sm-2" >
19
- <label class="font_normal_body" for="endDate">结束日期:</label>
20
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
21
- v-model="model.endDate"
22
- :value.sync="model.endDate"
23
- :disabled-days-of-Week="[]"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- condition="f_operate_date < '{}'"
26
- :show-reset-button="reset">
27
- </datepicker>
28
- </div><br>
29
- <div class="col-sm-2" style="margin-top: -24px">
30
- <label class="font_normal_body" for="f_insurance_company">保险公司:</label>
31
- <v-select
32
- placeholder='请选择'
33
- v-model="model.f_insurance_company"
34
- condition="f_insurance_company = '{}'"
35
- @change="$parent.$parent.changeCompany"
36
- :value.sync="model.f_insurance_company"
37
- :options="$parent.$parent.applyCompany"
38
- :value-single="true"
39
- style="margin-left:-12px"
40
- close-on-select></v-select>
41
- </div>
42
- <div class="col-sm-2" style="margin-top: -24px">
43
- <label class="font_normal_body" for="f_insurance_company">保险类型:</label>
44
- <v-select
45
- placeholder='请选择'
46
- v-model="model.f_insurance_type"
47
- condition="f_insurance_type = '{}'"
48
- :value.sync="model.f_insurance_type"
49
- :options="$parent.$parent.applyType"
50
- :value-single="true"
51
- style="margin-left:-12px"
52
- close-on-select></v-select>
53
- </div>
54
- </div>
55
- <div class="span" style = "float:right;">
56
- <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
57
- <report-print id='gasprice1' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
58
- <report-excel id='gasprice1'></report-excel>
59
- </div>
60
- </div>
61
- </criteria>
62
- <div partial='list' v-el:handcollect id='gasprice1' style="overflow-y: scroll">
63
- <table class='tableprint' style="margin: 0px auto">
64
- <thead>
65
- <tr>
66
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
67
- <h3 style="text-align: center">保险报表查询</h3>
68
- </th>
69
- </tr>
70
- <tr>
71
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
72
- 开始时间:{{ $refs.criteria.model.startDate }}&nbsp;&nbsp;&nbsp;
73
- 结束时间:{{ $refs.criteria.model.endDate }}
74
- </th>
75
- </tr>
76
- <tr>
77
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
78
- 打印时间:{{{$parent.printTime}}}
79
- </th>
80
- </tr>
81
- <tr>
82
- <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
83
- <div>
84
- <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
85
- <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
86
- <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
87
- </div>
88
- </th>
89
- </tr>
90
- </thead>
91
- <tr>
92
- <td :colspan='$parent.spans' class="norder">
93
- {{{ model.data.substring(26,model.data.length-8) }}}
94
- </td>
95
- </tr>
96
- <tfoot>
97
- </tfoot>
98
- </table>
99
- </div>
100
- </criteria-paged>
101
- </div>
102
- </template>
103
-
104
- <script>
105
- import { DataModel } from 'vue-client'
106
- export default {
107
- title: '保险报表查询',
108
- props: ['data'],
109
- data () {
110
- return {
111
- printTime: this.$login.toStandardTimeString(),
112
- depresid: [],
113
- userresid: [],
114
- f_orgid: this.$login.f.orgid,
115
- f_depid: this.$login.f.depids,
116
- f_operatorid: this.$login.f.id,
117
- operatorid: [],
118
- depid: [],
119
- orgname: '',
120
- depname: '',
121
- operatorname: '',
122
- f_inputtor: [],
123
- f_user_type: '',
124
- orgCondtionStr: '1=1',
125
- model: new DataModel('rs/apply/report/apply-insurance-yuchuan', {
126
- startDate: 'this.model.startDate', endDate: 'this.model.endDate',
127
- f_orgid: 'this.model.f_orgid', f_insurance_company: 'this.model.f_insurance_company' ,
128
- f_insurance_type: 'this.model.f_insurance_type'
129
- }),
130
- reportStr: null,
131
- spans: 0,
132
- applyCompany: [],
133
- applyType: []
134
- }
135
- },
136
- ready () {
137
- this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
138
- this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
139
- this.searchData()
140
- this.applyCompany = this.$appdata.getParam('保险公司')
141
- },
142
- created () {
143
- this.$nextTick(() => {
144
- this.$watch(this.$refs.paged.$refs.criteria.model.f_insurance_company, function () {
145
- console.log(123)
146
- })
147
- })
148
- },
149
- methods: {
150
- searchData () {
151
- this.$refs.paged.$refs.criteria.search()
152
- },
153
- selfSearch(args) {
154
- console.log(args)
155
- let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
156
- this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
157
- this.$refs.paged.search(args)
158
- },
159
- getRes (obj) {
160
- this.orgname = obj.res[0]
161
- // this.depresid = obj.resids
162
- this.f_orgid = obj.resids
163
- },
164
- changeCompany () {
165
- this.$refs.paged.$refs.criteria.model.f_insurance_type = ''
166
- if (this.$refs.paged.$refs.criteria.model.f_insurance_company === '中国太平洋保险') {
167
- this.applyType = this.$appdata.getParam('中国太平洋保险')
168
- } else if (this.$refs.paged.$refs.criteria.model.f_insurance_company === '中意财险') {
169
- this.applyType = this.$appdata.getParam('中意财险')
170
- } else {
171
- this.applyType = []
172
- }
173
- }
174
- },
175
- watch: {
176
- 'model.data' (val) {
177
- this.spans = val.split('</tr>').map(item => item.split('</td>').length - 1).reduce((x, y) => x > y ? x : y)
178
- },
179
- 'this.$refs.paged.$refs.criteria.model.f_insurance_company' (val) {
180
- console.log(val)
181
- }
182
- }
183
- }
184
- </script>
185
- <style scoped>
186
- .noborder {
187
- border: none;
188
- }
189
- </style>
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
+ condition="f_operate_date > '{}'"
15
+ :show-reset-button="reset">
16
+ </datepicker>
17
+ </div>
18
+ <div class="col-sm-2" >
19
+ <label class="font_normal_body" for="endDate">结束日期:</label>
20
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
21
+ v-model="model.endDate"
22
+ :value.sync="model.endDate"
23
+ :disabled-days-of-Week="[]"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ condition="f_operate_date < '{}'"
26
+ :show-reset-button="reset">
27
+ </datepicker>
28
+ </div><br>
29
+ <!-- <div class="col-sm-2" style="margin-top: -24px">-->
30
+ <!-- <label class="font_normal_body" for="f_insurance_company">保险公司:</label>-->
31
+ <!-- <v-select-->
32
+ <!-- placeholder='请选择'-->
33
+ <!-- v-model="model.f_insurance_company"-->
34
+ <!-- condition="f_insurance_company = '{}'"-->
35
+ <!-- @change="$parent.$parent.changeCompany"-->
36
+ <!-- :value.sync="model.f_insurance_company"-->
37
+ <!-- :options="$parent.$parent.applyCompany"-->
38
+ <!-- :value-single="true"-->
39
+ <!-- style="margin-left:-12px"-->
40
+ <!-- close-on-select></v-select>-->
41
+ <!-- </div>-->
42
+ <!-- <div class="col-sm-2" style="margin-top: -24px">-->
43
+ <!-- <label class="font_normal_body" for="f_insurance_company">保险类型:</label>-->
44
+ <!-- <v-select-->
45
+ <!-- placeholder='请选择'-->
46
+ <!-- v-model="model.f_insurance_type"-->
47
+ <!-- condition="f_insurance_type = '{}'"-->
48
+ <!-- :value.sync="model.f_insurance_type"-->
49
+ <!-- :options="$parent.$parent.applyType"-->
50
+ <!-- :value-single="true"-->
51
+ <!-- style="margin-left:-12px"-->
52
+ <!-- close-on-select></v-select>-->
53
+ <!-- </div>-->
54
+ </div>
55
+ <div class="span" style = "float:right;">
56
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
57
+ <report-print id='gasprice1' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
58
+ <report-excel id='gasprice1'></report-excel>
59
+ </div>
60
+ </div>
61
+ </criteria>
62
+ <div partial='list' v-el:handcollect id='gasprice1' style="overflow-y: scroll">
63
+ <table class='tableprint' style="margin: 0px auto">
64
+ <thead>
65
+ <tr>
66
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
67
+ <h3 style="text-align: center">保险报表查询</h3>
68
+ </th>
69
+ </tr>
70
+ <tr>
71
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
72
+ 开始时间:{{ $refs.criteria.model.startDate }}&nbsp;&nbsp;&nbsp;
73
+ 结束时间:{{ $refs.criteria.model.endDate }}
74
+ </th>
75
+ </tr>
76
+ <tr>
77
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
78
+ 打印时间:{{{$parent.printTime}}}
79
+ </th>
80
+ </tr>
81
+ <tr>
82
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
83
+ <div>
84
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
85
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
86
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
87
+ </div>
88
+ </th>
89
+ </tr>
90
+ </thead>
91
+ <tr>
92
+ <td :colspan='$parent.spans' class="norder">
93
+ {{{ model.data.substring(26,model.data.length-8) }}}
94
+ </td>
95
+ </tr>
96
+ <tfoot>
97
+ </tfoot>
98
+ </table>
99
+ </div>
100
+ </criteria-paged>
101
+ </div>
102
+ </template>
103
+
104
+ <script>
105
+ import { DataModel } from 'vue-client'
106
+ export default {
107
+ title: '保险报表查询',
108
+ props: ['data'],
109
+ data () {
110
+ return {
111
+ printTime: this.$login.toStandardTimeString(),
112
+ depresid: [],
113
+ userresid: [],
114
+ f_orgid: this.$login.f.orgid,
115
+ f_depid: this.$login.f.depids,
116
+ f_operatorid: this.$login.f.id,
117
+ operatorid: [],
118
+ depid: [],
119
+ orgname: '',
120
+ depname: '',
121
+ operatorname: '',
122
+ f_inputtor: [],
123
+ f_user_type: '',
124
+ orgCondtionStr: '1=1',
125
+ model: new DataModel('rs/apply/report/apply-insurance-yuchuan', {
126
+ startDate: 'this.model.startDate', endDate: 'this.model.endDate',
127
+ f_orgid: 'this.model.f_orgid', f_insurance_company: 'this.model.f_insurance_company' ,
128
+ f_insurance_type: 'this.model.f_insurance_type'
129
+ }),
130
+ reportStr: null,
131
+ spans: 0,
132
+ applyCompany: [],
133
+ applyType: []
134
+ }
135
+ },
136
+ ready () {
137
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
138
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
139
+ this.searchData()
140
+ this.applyCompany = this.$appdata.getParam('保险公司')
141
+ },
142
+ created () {
143
+ this.$nextTick(() => {
144
+ this.$watch(this.$refs.paged.$refs.criteria.model.f_insurance_company, function () {
145
+ console.log(123)
146
+ })
147
+ })
148
+ },
149
+ methods: {
150
+ searchData () {
151
+ this.$refs.paged.$refs.criteria.search()
152
+ },
153
+ selfSearch(args) {
154
+ console.log(args)
155
+ let orgcondition = 'f_orgid in (' + this.f_orgid + ')'
156
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
157
+ this.$refs.paged.search(args)
158
+ },
159
+ getRes (obj) {
160
+ this.orgname = obj.res[0]
161
+ // this.depresid = obj.resids
162
+ this.f_orgid = obj.resids
163
+ },
164
+ changeCompany () {
165
+ this.$refs.paged.$refs.criteria.model.f_insurance_type = ''
166
+ if (this.$refs.paged.$refs.criteria.model.f_insurance_company === '中国太平洋保险') {
167
+ this.applyType = this.$appdata.getParam('中国太平洋保险')
168
+ } else if (this.$refs.paged.$refs.criteria.model.f_insurance_company === '中意财险') {
169
+ this.applyType = this.$appdata.getParam('中意财险')
170
+ } else {
171
+ this.applyType = []
172
+ }
173
+ }
174
+ },
175
+ watch: {
176
+ 'model.data' (val) {
177
+ this.spans = val.split('</tr>').map(item => item.split('</td>').length - 1).reduce((x, y) => x > y ? x : y)
178
+ },
179
+ 'this.$refs.paged.$refs.criteria.model.f_insurance_company' (val) {
180
+ console.log(val)
181
+ }
182
+ }
183
+ }
184
+ </script>
185
+ <style scoped>
186
+ .noborder {
187
+ border: none;
188
+ }
189
+ </style>