apply-clients 7.1.36-yuchuan-11 → 7.1.36-yuchuan-14

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,82 +1,82 @@
1
- <template>
2
- <div style="background-color: #ffffff;padding: 10px;">
3
- <template v-if="this.selectdata.defname === '报装申请'|| this.selectdata.defname === '报建受理'|| this.selectdata.defname ==='现场勘察'">
4
- <apply-input-search
5
- :markmapdata="markmapdata" v-ref:pick
6
- @locationclick="locationclick"
7
- ></apply-input-search>
8
- </template>
9
- <template v-else>
10
- <amap-location
11
- :isshowsearch="false"
12
- :mylocationinfo="false"
13
- :isshowmapmodel="false"
14
- :islocation="false"
15
- mapmodel="dragMarker"
16
- :labelmarksarray="labelmarksarray"
17
- ></amap-location>
18
- </template>
19
- </div>
20
- </template>
21
- <script>
22
- export default {
23
- title: '地图',
24
- props: {
25
- selectdata: {
26
- type: Object
27
- }
28
- },
29
- data () {
30
- return {
31
- }
32
- },
33
- ready () {
34
- console.log('-----------------------进入地图-------------------------')
35
- },
36
- methods: {
37
- locationclick (res) {
38
- console.log('=======选点回调=======')
39
- console.log(res)
40
-
41
- this.$dispatch('locationclick', res)
42
- }
43
- },
44
- events: {
45
- },
46
- computed: {
47
- markmapdata () {
48
- if (!this.selectdata.f_lng || !this.selectdata.f_lat) {
49
- return null
50
- }
51
- return {
52
- name: `${this.selectdata.f_user_name}`,
53
- address: `${this.selectdata.f_order_address}`,
54
- location: {
55
- Q: this.selectdata.f_lat,
56
- R: this.selectdata.f_lng,
57
- lat: this.selectdata.f_lat,
58
- lng: this.selectdata.f_lng
59
- }
60
- }
61
- },
62
- labelmarksarray () {
63
- return [{
64
- data: {
65
- data: this.selectdata,
66
- label: `<div style="background: #fff;border-radius: 5px;height: 100px;padding: 5px">
67
- <h5>${this.selectdata.f_user_name}</h5>
68
- <h5>${this.selectdata.f_phone}</h5>
69
- <h5>${this.selectdata.f_order_address}</h5>
70
- </div>`
71
- },
72
- position: [this.selectdata.f_lng, this.selectdata.f_lat],
73
- isclearmarker: false
74
- }]
75
- }
76
- },
77
- watch: {
78
- }
79
- }
80
- </script>
81
- <style scoped>
82
- </style>
1
+ <template>
2
+ <div style="background-color: #ffffff;padding: 10px;">
3
+ <template v-if="this.selectdata.defname === '报装申请'|| this.selectdata.defname === '报建受理'|| this.selectdata.defname ==='现场勘察'">
4
+ <apply-input-search
5
+ :markmapdata="markmapdata" v-ref:pick
6
+ @locationclick="locationclick"
7
+ ></apply-input-search>
8
+ </template>
9
+ <template v-else>
10
+ <apply-amap-location
11
+ :isshowsearch="false"
12
+ :mylocationinfo="false"
13
+ :isshowmapmodel="false"
14
+ :islocation="false"
15
+ mapmodel="dragMarker"
16
+ :labelmarksarray="labelmarksarray"
17
+ ></apply-amap-location>
18
+ </template>
19
+ </div>
20
+ </template>
21
+ <script>
22
+ export default {
23
+ title: '地图',
24
+ props: {
25
+ selectdata: {
26
+ type: Object
27
+ }
28
+ },
29
+ data () {
30
+ return {
31
+ }
32
+ },
33
+ ready () {
34
+ console.log('-----------------------进入地图-------------------------')
35
+ },
36
+ methods: {
37
+ locationclick (res) {
38
+ console.log('=======选点回调=======')
39
+ console.log(res)
40
+
41
+ this.$dispatch('locationclick', res)
42
+ }
43
+ },
44
+ events: {
45
+ },
46
+ computed: {
47
+ markmapdata () {
48
+ if (!this.selectdata.f_lng || !this.selectdata.f_lat) {
49
+ return null
50
+ }
51
+ return {
52
+ name: `${this.selectdata.f_user_name}`,
53
+ address: `${this.selectdata.f_order_address}`,
54
+ location: {
55
+ Q: this.selectdata.f_lat,
56
+ R: this.selectdata.f_lng,
57
+ lat: this.selectdata.f_lat,
58
+ lng: this.selectdata.f_lng
59
+ }
60
+ }
61
+ },
62
+ labelmarksarray () {
63
+ return [{
64
+ data: {
65
+ data: this.selectdata,
66
+ label: `<div style="background: #fff;border-radius: 5px;height: 100px;padding: 5px">
67
+ <h5>${this.selectdata.f_user_name}</h5>
68
+ <h5>${this.selectdata.f_phone}</h5>
69
+ <h5>${this.selectdata.f_order_address}</h5>
70
+ </div>`
71
+ },
72
+ position: [this.selectdata.f_lng, this.selectdata.f_lat],
73
+ isclearmarker: false
74
+ }]
75
+ }
76
+ },
77
+ watch: {
78
+ }
79
+ }
80
+ </script>
81
+ <style scoped>
82
+ </style>
@@ -299,7 +299,7 @@
299
299
 
300
300
  let str = personexpression.substring(2, personexpression.length-1)
301
301
 
302
- if (mark === 'D' && this.$login.f.f_parentname.includes(str)) {
302
+ if (mark === 'D' && this.$login.f.f_department_name.includes(str)) {
303
303
  return true
304
304
  }
305
305
  if (mark === 'R' && this.$login.f.rolesnames.includes(str)) {
@@ -0,0 +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>