apply-clients 3.0.5-2 → 3.0.5-21

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,331 +1,361 @@
1
- <template>
2
- <div class="d1">
3
- <div class="left col-sm-12">
4
- <criteria-paged :model="model" v-ref:cp>
5
- <criteria partial='criteria' @condition-changed='search' v-ref:cri
6
- style="padding: 20px;background-color: #f6f6f6;">
7
- <form novalidate class="" partial>
8
- <div class="col-sm-12">
9
- <div class="form-group col-sm-4">
10
- <label class=" col-sm-6" style="padding-top: 8px">联系人/项目名称/用户名称:</label>
11
- <div class="col-sm-6">
12
- <input type="text" class="form-control" v-model="model.f_user_name"
13
- condition=" (f_user_name like '%{}%' or f_entry_name like '%{}%' or f_company_name like '%{}%') " placeholder='三选一输入'>
14
- </div>
15
- </div>
16
- <div class="col-sm-1">
17
- <!--<label class="col-sm-6">合同编号</label>-->
18
- <div class="col-sm-12">
19
- <input type="text" class="form-control" placeholder='合同编号' v-model="model.f_contract_number"
20
- v-on:keyup.enter="search"
21
- condition="f_contract_number like '%{}%'">
22
- </div>
23
- </div>
24
- <div class="col-sm-1">
25
- <!--<label class="col-sm-6">用户地址</label>-->
26
- <div class="col-sm-12">
27
- <input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
28
- v-on:keyup.enter="search"
29
- condition="f_address like '%{}%'">
30
- </div>
31
- </div>
32
- <div class="col-sm-1">
33
- <!--<label class="col-sm-6"> 报建类型:</label>-->
34
- <div class="col-sm-12" v-if="!this.$login.f.f_fengongsi.includes('中燃')">
35
- <v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.applytype" placeholder='报建类型' condition="f_apply_type like '%{}%'"
36
- v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
37
- </v-select>
38
- </div>
39
- </div>
40
- <div class="col-sm-2">
41
- <label class="col-sm-6">办理环节:</label>
42
- <div class="col-sm-6">
43
- <v-select :width ="'90%'" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.defnames"
44
- condition="defname = '{}'" placeholder='办理环节'
45
- v-model="model.defname" :value.sync="model.defname" close-on-select>
46
- </v-select>
47
- </div>
48
- </div>
49
- <div class="col-sm-1">
50
- <input type="text" class="form-control" placeholder='经办人' v-model="model.f_survey_name"
51
- v-on:keyup.enter="search"
52
- condition=" (f_apply_kefu_employee like '%{}%' or f_survey_name like '%{}%') ">
53
- </div>
54
- <div class="col-sm-1">
55
- <button class="btn btn-primary btn-sm" type="button" @click="search(),$parent.$parent.close()">
56
- <span class="glyphicon glyphicon-search"></span>查询
57
- </button>
58
- </div>
59
- </div>
60
- </form>
61
- </criteria>
62
- <data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
63
- <template partial='head'>
64
- <tr class="title">
65
- <th>
66
- <nobr>序号</nobr>
67
- </th>
68
- <th>
69
- <nobr>当前状态</nobr>
70
- </th>
71
- <th>
72
- <nobr>当前办理人</nobr>
73
- </th>
74
- <th><nobr>联系人/项目名称/用户名称</nobr></th>
75
- <th>
76
- <nobr>合同编号</nobr>
77
- </th>
78
- <th>
79
- <nobr>用户类型</nobr>
80
- </th>
81
- <th>
82
- <nobr>电话</nobr>
83
- </th>
84
- <th>
85
- <nobr>地址</nobr>
86
- </th>
87
- <th>
88
- <nobr>流程状态</nobr>
89
- </th>
90
- <th>
91
- <nobr>报建类型</nobr>
92
- </th>
93
- <th>
94
- <nobr>报建日期</nobr>
95
- </th>
96
- </tr>
97
- </template>
98
- <template partial='body'>
99
- <tr>
100
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
101
- <nobr>{{$index+1}}</nobr>
102
- </td>
103
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
104
- <nobr>{{row.f_sub_state}}</nobr>
105
- </td>
106
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
107
- <nobr>{{row.applysite}}</nobr>
108
- </td>
109
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
110
- <nobr>{{row.f_user_name}}/{{row.f_entry_name}}/{{row.f_company_name}}</nobr>
111
- </td>
112
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
113
- <nobr>{{row.f_contract_number}}</nobr>
114
- </td>
115
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
116
- <nobr>{{row.f_user_type}}</nobr>
117
- </td>
118
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
119
- <nobr>{{row.f_phone}}</nobr>
120
- </td>
121
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
122
- <nobr>{{row.f_address}}</nobr>
123
- </td>
124
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
125
- <nobr>{{row.defname}}</nobr>
126
- </td>
127
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
128
- <nobr>{{row.f_apply_type}}</nobr>
129
- </td>
130
- <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
131
- <nobr>{{row.f_apply_date}}</nobr>
132
- </td>
133
- </tr>
134
- </template>
135
- </data-grid>
136
- </criteria-paged>
137
- </div>
138
- </div>
139
- </template>
140
- <script>
141
- import AppData from '../../../stores/AppData.js'
142
- import PagedListLogic from '../../../stores/PagedListLogic'
143
- import getNowDate from '../../getNowDate.js'
144
- import {HttpResetClass} from 'vue-client'
145
-
146
- export default {
147
- title: '勘探详情',
148
- data() {
149
- return {
150
- applytype: this.$appdata.getParam('报建类型'),
151
- model: new PagedListLogic('rs/sql/supervisory', 20, {
152
- data: {
153
- id: `${this.$login.f.name}`,
154
- fengongsi: `${this.$login.f.f_fengongsi}`
155
- }
156
- }),
157
- users:[],
158
- defnames:[],
159
- condition: '',
160
- select: ''
161
- }
162
- },
163
- async ready() {
164
- let http3 = new HttpResetClass()
165
- http3.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
166
- resolveMsg: null,
167
- rejectMsg: null
168
- }).then((res)=>{
169
- // 先获取所有流程环节
170
- this.defnames = [{label: '全部', value: ''}]
171
- for(let i=0;i<res.data.length;i++){
172
- this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
173
- }
174
- })
175
-
176
- let http = new HttpResetClass()
177
- let data = {
178
- columnname: 'id,name',
179
- tablename: 't_user',
180
- condition: '1=1'
181
- }
182
- let res = await http.load('POST','rs/sql/singleTable',{data:data}, {
183
- resolveMsg: null,
184
- rejectMsg: '获取人员失败'
185
- })
186
- this.users = res.data
187
- this.$refs.cp.$refs.cri.search()
188
- },
189
- events: {
190
- async dataGrid() {
191
- // //获取购货方信息
192
- // let data = {
193
- // tablename: 't_user',
194
- // condition: `1=1`
195
- // }
196
- // let buyerinfos = await this.$resetpost('rs/sql/singleTable', {data: data}, {
197
- // resolveMsg: null,
198
- // rejectMsg: '获取user失败'
199
- // })
200
- // let users = buyerinfos.data
201
- if (!this.$refs.cp.$refs.grid.model.rows) return
202
- let rows = this.$refs.cp.$refs.grid.model.rows
203
- for (let i = 0; i < rows.length; i++) {
204
- let expe = rows[i].actorexpression
205
- if(expe.includes('getChildren')||expe.includes('getChildByName')){//{source:'this.getParentByType($organization$).getChildByName($客户服务部门$).getChildByName($客户服务部负责人$).getChildren()','userid':'12290'
206
- let arr = expe.split('$')
207
- this.$refs.cp.$refs.grid.model.rows[i].applysite = arr[arr.length - 2]
208
- }else{ //{source: 'this', userid: '12290'}
209
- let arr = expe.split('\'')
210
- let userid = arr[arr.length - 2]
211
- for(let j =0;j<this.users.length;j++){
212
- if(this.users[j].id == userid){
213
- this.$refs.cp.$refs.grid.model.rows[i].applysite = this.users[j].name
214
- }
215
- }
216
- }
217
-
218
-
219
-
220
- //
221
- // if (expe.indexOf("'this'") == -1) {
222
- // let arr = expe.split('$')
223
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = arr[arr.length - 2]
224
- // } else if (rows[i].f_survey_name && typeof rows[i].f_survey_name == 'string' && rows[i].f_survey_name.includes("\"")) {
225
- // // 如果是属于工程技术部的就给工程技术部
226
- // let flag = ''
227
- // let str = this.$appdata.getSingleValue("客户服务部")
228
- // let str2 = this.$appdata.getSingleValue("工程技术部")
229
- // let arr = str.split(",")
230
- // let arr2 = str2.split(",")
231
- // for (let p = 0; p < arr.length; p++) {
232
- // if (arr[p] == rows[i].f_apply_type) {
233
- // flag = '客户服务部'
234
- // console.log(rows[i].f_apply_num, flag)
235
- // break
236
- // }
237
- // }
238
- // for (let p = 0; p < arr2.length; p++) {
239
- // if (arr2[p] == rows[i].f_apply_type) {
240
- // flag = '工程技术部'
241
- // console.log(rows[i].f_apply_num, flag)
242
- // break
243
- // }
244
- // }
245
- //
246
- // if (flag == '工程技术部') {
247
- // let js = JSON.parse(rows[i].f_survey_name)
248
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = js.name
249
- // } else if (flag == '客户服务部') {
250
- // let rows2 = this.$refs.cp.$refs.grid.model.rows
251
- // for (let i = 0; i < rows2.length; i++) {
252
- // if (!this.$refs.cp.$refs.grid.model.rows[i].applysite) {
253
- // if (rows2[i].f_apply_kefu_employee) {
254
- // if (rows2[i].f_apply_kefu_employee.startsWith("{")) {
255
- // let obj = JSON.parse(rows2[i].f_apply_kefu_employee)
256
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = obj.name
257
- // } else {
258
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = rows2[i].f_apply_kefu_employee
259
- // }
260
- // }
261
- // }
262
- // }
263
- // }
264
- // }
265
- // let numReg = /^[0-9]+$/
266
- // let numRe = new RegExp(numReg)
267
- // if (numRe.test(this.$refs.cp.$refs.grid.model.rows[i].applysite)) {
268
- // let querydata = {
269
- // tablename: 't_user',
270
- // condition: `id = ${this.$refs.cp.$refs.grid.model.rows[i].applysite}`
271
- // }
272
- // let http = new HttpResetClass()
273
- // http.load('POST','rs/sql/singleTable', {data: querydata}, {
274
- // resolveMsg: null,
275
- // rejectMsg: '获取人员失败'
276
- // }).then((res)=>{
277
- // this.$refs.cp.$refs.grid.model.rows[i].applysite = res.data[0].name
278
- // })
279
- // }
280
- }
281
-
282
- }
283
- },
284
- methods: {
285
- generateUUID() {
286
- var d = new Date().getTime()
287
- var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
288
- var r = (d + Math.random() * 16) % 16 | 0
289
- d = Math.floor(d / 16)
290
- return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
291
- })
292
- return uuid
293
- },
294
- check(val) {
295
- console.log("val:" + JSON.stringify(val))
296
- this.$dispatch('check', val)
297
- },
298
- close() {
299
- this.$dispatch('close')
300
- },
301
- compare(val) {
302
- val === '完工'
303
- console.log('完工', val)
304
- return false
305
- }
306
- },
307
- computed: {
308
- date() {
309
- return getNowDate()
310
- },
311
- selected() {
312
- return this.$refs.cp.$refs.grid.selected
313
- },
314
- usertype() {
315
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
316
- },
317
- defnameType() {
318
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
319
- },
320
- applytype() {
321
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
322
- }
323
- }
324
- }
325
- </script>
326
- <style>
327
- tr.title {
328
- background-color: #6666ff;
329
- }
330
-
331
- </style>
1
+ <template>
2
+ <div class="d1">
3
+ <div class="left col-sm-12">
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri
6
+ style="padding: 20px;background-color: #f6f6f6;">
7
+ <form novalidate class="" partial>
8
+ <div class="col-sm-12">
9
+ <div class="form-group col-sm-4">
10
+ <label class=" col-sm-6" style="padding-top: 8px">联系人/项目名称/用户名称:</label>
11
+ <div class="col-sm-6">
12
+ <input type="text" class="form-control" v-model="model.f_user_name"
13
+ condition=" (f_user_name like '%{}%' or f_entry_name like '%{}%' or f_company_name like '%{}%') " placeholder='三选一输入'>
14
+ </div>
15
+ </div>
16
+ <div class="col-sm-1">
17
+ <!--<label class="col-sm-6">合同编号</label>-->
18
+ <div class="col-sm-12">
19
+ <input type="text" class="form-control" placeholder='合同编号' v-model="model.f_contract_number"
20
+ v-on:keyup.enter="search"
21
+ condition="f_contract_number like '%{}%'">
22
+ </div>
23
+ </div>
24
+ <div class="col-sm-1">
25
+ <!--<label class="col-sm-6">用户地址</label>-->
26
+ <div class="col-sm-12">
27
+ <input type="text" class="form-control" placeholder='用户地址' v-model="model.f_address"
28
+ v-on:keyup.enter="search"
29
+ condition="f_address like '%{}%'">
30
+ </div>
31
+ </div>
32
+ <div class="col-sm-1">
33
+ <!--<label class="col-sm-6"> 报建类型:</label>-->
34
+ <div class="col-sm-12" v-if="!this.$login.f.f_fengongsi.includes('中燃')">
35
+ <v-select :width ="'100%'" style="width: 100%" :options="$parent.$parent.applytype" placeholder='报建类型' condition="f_apply_type like '%{}%'"
36
+ v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
37
+ </v-select>
38
+ </div>
39
+ </div>
40
+ <div class="col-sm-2">
41
+ <label class="col-sm-6">办理环节:</label>
42
+ <div class="col-sm-6">
43
+ <v-select :width ="'90%'" @change="$dispatch('setQueryCondition',model)" :options="$parent.$parent.defnames"
44
+ condition="defname = '{}'" placeholder='办理环节'
45
+ v-model="model.defname" :value.sync="model.defname" close-on-select>
46
+ </v-select>
47
+ </div>
48
+ </div>
49
+ <div class="col-sm-1">
50
+ <input type="text" class="form-control" placeholder='经办人' v-model="model.f_survey_name"
51
+ v-on:keyup.enter="search"
52
+ condition=" (f_apply_kefu_employee like '%{}%' or f_survey_name like '%{}%') ">
53
+ </div>
54
+ <div class="col-sm-1">
55
+ <button class="btn btn-primary btn-sm" type="button" @click="search(),$parent.$parent.close()">
56
+ <span class="glyphicon glyphicon-search"></span>查询
57
+ </button>
58
+ </div>
59
+ </div>
60
+ </form>
61
+ </criteria>
62
+ <data-grid :model="model" partial='list' v-ref:grid class="data-grid" is-fixed='false' style="overflow-x:auto">
63
+ <template partial='head'>
64
+ <tr class="title">
65
+ <th>
66
+ <nobr>序号</nobr>
67
+ </th>
68
+ <th>
69
+ <nobr>当前状态</nobr>
70
+ </th>
71
+ <th>
72
+ <nobr>当前办理人</nobr>
73
+ </th>
74
+ <th><nobr>联系人/项目名称/用户名称</nobr></th>
75
+ <th>
76
+ <nobr>合同编号</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>用户类型</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>电话</nobr>
83
+ </th>
84
+ <th style="width: 250px">
85
+ <nobr>地址</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>流程状态</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>报建类型</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>报建日期</nobr>
95
+ </th>
96
+ </tr>
97
+ </template>
98
+ <template partial='body'>
99
+ <tr>
100
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
101
+ <nobr>{{$index+1}}</nobr>
102
+ </td>
103
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
104
+ <nobr>{{row.f_sub_state}}</nobr>
105
+ </td>
106
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
107
+ <nobr>{{$parent.$parent.$parent.getapplysite(row)}}</nobr>
108
+ </td>
109
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
110
+ <nobr>{{row.f_user_name}}/{{row.f_entry_name}}/{{row.f_company_name}}</nobr>
111
+ </td>
112
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
113
+ <nobr>{{row.f_contract_number}}</nobr>
114
+ </td>
115
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
116
+ <nobr>{{row.f_user_type}}</nobr>
117
+ </td>
118
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
119
+ <nobr>{{row.f_phone}}</nobr>
120
+ </td>
121
+ <td @click="$parent.$parent.$parent.check(row)" style="width: 250px; white-space: normal;">
122
+ {{row.f_address}}
123
+ </td>
124
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
125
+ <nobr>{{row.defname}}</nobr>
126
+ </td>
127
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
128
+ <nobr>{{$parent.$parent.$parent.getApplyType(row.f_user_type,row.f_apply_type)}}</nobr>
129
+ </td>
130
+ <td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
131
+ <nobr>{{row.f_apply_date}}</nobr>
132
+ </td>
133
+ </tr>
134
+ </template>
135
+ </data-grid>
136
+ </criteria-paged>
137
+ </div>
138
+ </div>
139
+ </template>
140
+ <script>
141
+ import AppData from '../../../stores/AppData.js'
142
+ import PagedListLogic from '../../../stores/PagedListLogic'
143
+ import getNowDate from '../../getNowDate.js'
144
+ import {HttpResetClass} from 'vue-client'
145
+
146
+ export default {
147
+ title: '勘探详情',
148
+ data() {
149
+ return {
150
+ applytype: this.$appdata.getParam('报建类型'),
151
+ model: new PagedListLogic('rs/sql/supervisory', 20, {
152
+ data: {
153
+ id: `${this.$login.f.name}`,
154
+ fengongsi: `${this.$login.f.f_fengongsi}`,
155
+ f_filialeid: this.$login.f.f_orgids
156
+ }
157
+ }),
158
+ users:[],
159
+ defnames:[],
160
+ condition: '',
161
+ select: ''
162
+ }
163
+ },
164
+ async ready() {
165
+ let http3 = new HttpResetClass()
166
+ http3.load('POST', 'rs/sql/getDefnamesForActivityins', {data:{}}, {
167
+ resolveMsg: null,
168
+ rejectMsg: null
169
+ }).then((res)=>{
170
+ // 先获取所有流程环节
171
+ this.defnames = [{label: '全部', value: ''}]
172
+ for(let i=0;i<res.data.length;i++){
173
+ this.defnames.push({label:res.data[i].defname,value:res.data[i].defname})
174
+ }
175
+ })
176
+
177
+ let http = new HttpResetClass()
178
+ let data = {
179
+ columnname: 'id,name',
180
+ tablename: 't_user',
181
+ condition: '1=1'
182
+ }
183
+ let res = await http.load('POST','rs/sql/singleTable',{data:data}, {
184
+ resolveMsg: null,
185
+ rejectMsg: '获取人员失败'
186
+ })
187
+ this.users = res.data
188
+ this.$refs.cp.$refs.cri.search()
189
+ },
190
+ events: {
191
+ async dataGrid() {
192
+ // //获取购货方信息
193
+ // let data = {
194
+ // tablename: 't_user',
195
+ // condition: `1=1`
196
+ // }
197
+ // let buyerinfos = await this.$resetpost('rs/sql/singleTable', {data: data}, {
198
+ // resolveMsg: null,
199
+ // rejectMsg: '获取user失败'
200
+ // })
201
+ // let users = buyerinfos.data
202
+ if (!this.$refs.cp.$refs.grid.model.rows) return
203
+ let rows = this.$refs.cp.$refs.grid.model.rows
204
+ for (let i = 0; i < rows.length; i++) {
205
+ let expe = rows[i].actorexpression
206
+ if(expe.includes('getChildren')||expe.includes('getChildByName')){//{source:'this.getParentByType($organization$).getChildByName($客户服务部门$).getChildByName($客户服务部负责人$).getChildren()','userid':'12290'
207
+ let arr = expe.split('$')
208
+ this.$refs.cp.$refs.grid.model.rows[i].applysite = arr[arr.length - 2]
209
+ }else{ //{source: 'this', userid: '12290'}
210
+ let arr = expe.split('\'')
211
+ let userid = arr[arr.length - 2]
212
+ for(let j =0;j<this.users.length;j++){
213
+ if(this.users[j].id == userid){
214
+ this.$refs.cp.$refs.grid.model.rows[i].applysite = this.users[j].name
215
+ }
216
+ }
217
+ }
218
+
219
+
220
+
221
+ //
222
+ // if (expe.indexOf("'this'") == -1) {
223
+ // let arr = expe.split('$')
224
+ // this.$refs.cp.$refs.grid.model.rows[i].applysite = arr[arr.length - 2]
225
+ // } else if (rows[i].f_survey_name && typeof rows[i].f_survey_name == 'string' && rows[i].f_survey_name.includes("\"")) {
226
+ // // 如果是属于工程技术部的就给工程技术部
227
+ // let flag = ''
228
+ // let str = this.$appdata.getSingleValue("客户服务部")
229
+ // let str2 = this.$appdata.getSingleValue("工程技术部")
230
+ // let arr = str.split(",")
231
+ // let arr2 = str2.split(",")
232
+ // for (let p = 0; p < arr.length; p++) {
233
+ // if (arr[p] == rows[i].f_apply_type) {
234
+ // flag = '客户服务部'
235
+ // console.log(rows[i].f_apply_num, flag)
236
+ // break
237
+ // }
238
+ // }
239
+ // for (let p = 0; p < arr2.length; p++) {
240
+ // if (arr2[p] == rows[i].f_apply_type) {
241
+ // flag = '工程技术部'
242
+ // console.log(rows[i].f_apply_num, flag)
243
+ // break
244
+ // }
245
+ // }
246
+ //
247
+ // if (flag == '工程技术部') {
248
+ // let js = JSON.parse(rows[i].f_survey_name)
249
+ // this.$refs.cp.$refs.grid.model.rows[i].applysite = js.name
250
+ // } else if (flag == '客户服务部') {
251
+ // let rows2 = this.$refs.cp.$refs.grid.model.rows
252
+ // for (let i = 0; i < rows2.length; i++) {
253
+ // if (!this.$refs.cp.$refs.grid.model.rows[i].applysite) {
254
+ // if (rows2[i].f_apply_kefu_employee) {
255
+ // if (rows2[i].f_apply_kefu_employee.startsWith("{")) {
256
+ // let obj = JSON.parse(rows2[i].f_apply_kefu_employee)
257
+ // this.$refs.cp.$refs.grid.model.rows[i].applysite = obj.name
258
+ // } else {
259
+ // this.$refs.cp.$refs.grid.model.rows[i].applysite = rows2[i].f_apply_kefu_employee
260
+ // }
261
+ // }
262
+ // }
263
+ // }
264
+ // }
265
+ // }
266
+ // let numReg = /^[0-9]+$/
267
+ // let numRe = new RegExp(numReg)
268
+ // if (numRe.test(this.$refs.cp.$refs.grid.model.rows[i].applysite)) {
269
+ // let querydata = {
270
+ // tablename: 't_user',
271
+ // condition: `id = ${this.$refs.cp.$refs.grid.model.rows[i].applysite}`
272
+ // }
273
+ // let http = new HttpResetClass()
274
+ // http.load('POST','rs/sql/singleTable', {data: querydata}, {
275
+ // resolveMsg: null,
276
+ // rejectMsg: '获取人员失败'
277
+ // }).then((res)=>{
278
+ // this.$refs.cp.$refs.grid.model.rows[i].applysite = res.data[0].name
279
+ // })
280
+ // }
281
+ }
282
+
283
+ }
284
+ },
285
+ methods: {
286
+ getApplyType(userType,applyType){
287
+ if(userType=='民用'&&applyType=='民用报建'){
288
+ return '个人报建'
289
+ }else if(userType=='民用'&&applyType=='微信对接'){
290
+ return '个人报建'
291
+ }else if(userType=='非民用'&&applyType=='微信对接'){
292
+ return '企业报建'
293
+ }else if(userType=='非民用'&&applyType=='企业报建'){
294
+ return '企业报建'
295
+ }else{
296
+ return applyType
297
+ }
298
+ },
299
+ getapplysite(row){
300
+ let rows = row
301
+ let expe = rows.actorexpression
302
+ if (expe.includes('getChildren') || expe.includes('getChildByName')) {//{source:'this.getParentByType($organization$).getChildByName($客户服务部门$).getChildByName($客户服务部负责人$).getChildren()','userid':'12290'
303
+ let arr = expe.split('$')
304
+ return arr[arr.length - 2]
305
+ } else { //{source: 'this', userid: '12290'}
306
+ let arr = expe.split('\'')
307
+ let userid = arr[arr.length - 2]
308
+ for (let j = 0; j < this.users.length; j++) {
309
+ if (this.users[j].id == userid) {
310
+ return this.users[j].name
311
+ }
312
+ }
313
+ }
314
+ },
315
+ generateUUID() {
316
+ var d = new Date().getTime()
317
+ var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
318
+ var r = (d + Math.random() * 16) % 16 | 0
319
+ d = Math.floor(d / 16)
320
+ return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
321
+ })
322
+ return uuid
323
+ },
324
+ check(val) {
325
+ console.log("val:" + JSON.stringify(val))
326
+ this.$dispatch('check', val)
327
+ },
328
+ close() {
329
+ this.$dispatch('close')
330
+ },
331
+ compare(val) {
332
+ val === '完工'
333
+ console.log('完工', val)
334
+ return false
335
+ }
336
+ },
337
+ computed: {
338
+ date() {
339
+ return getNowDate()
340
+ },
341
+ selected() {
342
+ return this.$refs.cp.$refs.grid.selected
343
+ },
344
+ usertype() {
345
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
346
+ },
347
+ defnameType() {
348
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
349
+ },
350
+ applytype() {
351
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
352
+ }
353
+ }
354
+ }
355
+ </script>
356
+ <style>
357
+ tr.title {
358
+ background-color: #6666ff;
359
+ }
360
+
361
+ </style>