apply-clients 3.0.5-4 → 3.0.5-6
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.
package/package.json
CHANGED
|
@@ -1,331 +1,347 @@
|
|
|
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
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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>{{$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="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
|
+
getapplysite(row){
|
|
286
|
+
let rows = row
|
|
287
|
+
let expe = rows.actorexpression
|
|
288
|
+
if (expe.includes('getChildren') || expe.includes('getChildByName')) {//{source:'this.getParentByType($organization$).getChildByName($客户服务部门$).getChildByName($客户服务部负责人$).getChildren()','userid':'12290'
|
|
289
|
+
let arr = expe.split('$')
|
|
290
|
+
return arr[arr.length - 2]
|
|
291
|
+
} else { //{source: 'this', userid: '12290'}
|
|
292
|
+
let arr = expe.split('\'')
|
|
293
|
+
let userid = arr[arr.length - 2]
|
|
294
|
+
for (let j = 0; j < this.users.length; j++) {
|
|
295
|
+
if (this.users[j].id == userid) {
|
|
296
|
+
return this.users[j].name
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
generateUUID() {
|
|
302
|
+
var d = new Date().getTime()
|
|
303
|
+
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
304
|
+
var r = (d + Math.random() * 16) % 16 | 0
|
|
305
|
+
d = Math.floor(d / 16)
|
|
306
|
+
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16)
|
|
307
|
+
})
|
|
308
|
+
return uuid
|
|
309
|
+
},
|
|
310
|
+
check(val) {
|
|
311
|
+
console.log("val:" + JSON.stringify(val))
|
|
312
|
+
this.$dispatch('check', val)
|
|
313
|
+
},
|
|
314
|
+
close() {
|
|
315
|
+
this.$dispatch('close')
|
|
316
|
+
},
|
|
317
|
+
compare(val) {
|
|
318
|
+
val === '完工'
|
|
319
|
+
console.log('完工', val)
|
|
320
|
+
return false
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
computed: {
|
|
324
|
+
date() {
|
|
325
|
+
return getNowDate()
|
|
326
|
+
},
|
|
327
|
+
selected() {
|
|
328
|
+
return this.$refs.cp.$refs.grid.selected
|
|
329
|
+
},
|
|
330
|
+
usertype() {
|
|
331
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
332
|
+
},
|
|
333
|
+
defnameType() {
|
|
334
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('流程状态')]
|
|
335
|
+
},
|
|
336
|
+
applytype() {
|
|
337
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
</script>
|
|
342
|
+
<style>
|
|
343
|
+
tr.title {
|
|
344
|
+
background-color: #6666ff;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
</style>
|