safecheck-client 3.0.30-62-t6 → 3.0.30-62-t8

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 (46) hide show
  1. package/package.json +1 -1
  2. package/src/components/DefectDealMain/DefectListNew.vue +597 -597
  3. package/src/components/NewDefectList/DefectListNew.vue +52 -12
  4. package/src/components/Util/SafecheckUpload.vue +276 -265
  5. package/src/components/android/CurrentCreate.vue +2 -2
  6. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  7. package/src/components/android/PhoneUpUserinfo.vue +1230 -1230
  8. package/src/components/pc/NewCheckpaperTemp.vue +1295 -1295
  9. package/src/components/rongcheng/DefectList.vue +560 -560
  10. package/src/components/rongcheng/PhoneDevicesInfo.vue +248 -248
  11. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  12. package/src/components/userfile/SecurityAudit.vue +243 -243
  13. package/src/components/userfile/UserInfoAudit.vue +316 -316
  14. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
  15. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  16. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
  17. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  18. package/src/filiale/ganquan/android/PhoneUpUserinfo.vue +986 -986
  19. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
  20. package/src/filiale/jinbin/android/PhoneUpUserinfo.vue +878 -878
  21. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +1234 -1234
  22. package/src/filiale/jingyang/pc/UserInfoAuditNew.vue +272 -272
  23. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1053 -1053
  24. package/src/filiale/kelai/pc/UserInfoAudit.vue +254 -254
  25. package/src/filiale/minsheng/android/PhoneUpUserinfo.vue +1269 -1269
  26. package/src/filiale/qianneng/android/PhoneUpUserinfo.vue +1127 -1127
  27. package/src/filiale/qianneng/pc/UserInfoAudit.vue +286 -286
  28. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  29. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -1230
  30. package/src/filiale/shanxian/android/PhoneUpUserinfo.vue +939 -939
  31. package/src/filiale/shexian/android/PhoneUpUserinfo.vue +1153 -1153
  32. package/src/filiale/tongchuan/android/PhoneUpDetail.vue +707 -707
  33. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1323 -1323
  34. package/src/filiale/weinan/android/PhoneUpDetail.vue +968 -968
  35. package/src/filiale/weinan/android/PhoneUpUserinfo.vue +1038 -1038
  36. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1076 -1076
  37. package/src/filiale/wuhai/android/PhoneUpUserinfo.vue +926 -926
  38. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  39. package/src/filiale/yongzhou/android/PhoneUpUserinfo.vue +1257 -1257
  40. package/src/filiale/yuansheng/android/PhoneUpUserinfo.vue +942 -942
  41. package/src/filiale/yunchengminsheng/android/PhoneUpUserinfo.vue +1198 -1198
  42. package/src/filiale/zhongsheng/android/PhoneUpUserinfo.vue +926 -926
  43. package/src/filiale/zhongsheng/pc/UserInfoAudit.vue +252 -252
  44. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  45. package/src/filiale/zhoukou/android/PhoneUpUserinfo.vue +957 -957
  46. package/src/main.js +33 -33
@@ -1,316 +1,316 @@
1
- <template>
2
- <work-busy :is-busy="excessive"></work-busy>
3
- <div class="basic-main" style="height: 100%">
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria class="search_area" partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2" >
9
- <label class="font_normal_body">客户编号</label>
10
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
- style="width: 60%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
12
- </div>
13
- <div class="form-group col-sm-2" >
14
- <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_username"
16
- style="width: 60%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-2" >
19
- <label class="font_normal_body">提&nbsp;交&nbsp;人</label>
20
- <input type="text" class="input_search" v-model="model.f_modifier"
21
- style="width: 60%" placeholder="提交人" condition="f_modifier like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-2" >
24
- <label class="font_normal_body">审&nbsp;核&nbsp;人</label>
25
- <input type="text" class="input_search" v-model="model.f_approved_by"
26
- style="width: 60%" placeholder="审核人" condition="f_approved_by like '%{}%'">
27
- </div>
28
- <div class="form-group col-sm-2">
29
- <label class="font_normal_body">审核状态</label>
30
- <v-select id="f_approved"
31
- placeholder='审核状态' style="width: 60%"
32
- v-model='model.f_approved'
33
- :value.sync="model.f_approved"
34
- :options='$parent.$parent.f_approval_states'
35
- condition="f_approved = '{}'"
36
- close-on-select clear-button></v-select>
37
- </div>
38
- <div class="col-sm-2 " style="width: auto; margin-top: 8px">
39
- <button class="button_search button_spacing" @click="search">查询</button>
40
- <export-excel :data="$parent.$parent.searchData"
41
- :field="$parent.$parent.excelHeaders"
42
- :choose-col="true"
43
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="用户档案审核查询" template-name='用户档案审核查询'></export-excel>
44
- <!--<button class="button_new button_spacing" @click="$parent.$parent.verify()">审核</button>-->
45
- <!--<button class="button_export button_spacing" @click="$parent.$parent.verifyAll()">一键审核</button>-->
46
-
47
- </div>
48
- </div>
49
- <div class="row">
50
- <div class="form-group col-sm-2">
51
- <label class="font_normal_body">用户类型</label>
52
- <v-select
53
- placeholder='用户类型' style="width: 60%"
54
- v-model='model.f_user_nature'
55
- :value.sync="model.f_user_nature"
56
- :options='$parent.$parent.f_user_nature_arr'
57
- condition="ui.f_user_nature = '{}'"
58
- close-on-select clear-button></v-select>
59
- </div>
60
- <div class="form-group col-sm-2">
61
- <label class="font_normal_body">开始时间</label>
62
- <datepicker
63
- :value.sync="model.f_check_start"
64
- placeholder='开始时间'
65
- :disabled-days-of-week="[]" style="width: 60%"
66
- :format="'yyyy-MM-dd'"
67
- :show-rest-button="reset"
68
- v-model = "model.f_check_start"
69
- condition="f_time > ='{} 00:00:00'">
70
- </datepicker>
71
- </div>
72
- <div class="form-group col-sm-2">
73
- <label class="font_normal_body">结束时间</label>
74
- <datepicker
75
- :value.sync="model.f_check_end"
76
- placeholder='结束时间'
77
- :disabled-days-of-week="[]"
78
- :format="'yyyy-MM-dd'" style="width: 60%"
79
- :show-rest-button="reset"
80
- v-model = "model.f_check_end"
81
- condition="f_time <= '{} 23:59:59'">
82
- </datepicker>
83
- </div>
84
- <div class="form-group col-sm-2">
85
- <label class="font_normal_body">用户类型</label>
86
- <v-select
87
- placeholder='用户类型' style="width: 60%"
88
- v-model='model.f_user_nature'
89
- :value.sync="model.f_user_nature"
90
- :options='$parent.$parent.f_user_nature_arr'
91
- condition="ui.f_user_nature = '{}'"
92
- close-on-select clear-button></v-select>
93
- </div>
94
- </div>
95
-
96
- </div>
97
- </criteria>
98
- <data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid>
99
- <template partial='head'>
100
- <tr>
101
- <!--<th><nobr></nobr></th>-->
102
- <th><nobr>用户编号</nobr></th>
103
- <th><nobr>用户类型</nobr></th>
104
- <th><nobr>用户名称</nobr></th>
105
- <th><nobr>提交人</nobr></th>
106
- <th><nobr>提交时间</nobr></th>
107
- <th><nobr>修改类型</nobr></th>
108
- <th><nobr>备注</nobr></th>
109
- <th><nobr>审核状态</nobr></th>
110
- <th><nobr>审核人</nobr></th>
111
- <th><nobr>审核时间</nobr></th>
112
- <th><nobr>审核</nobr></th>
113
- </tr>
114
- </template>
115
- <template partial='body'>
116
- <!--<td style="text-align: center"><nobr><input type="checkbox" v-model="row.checked" v-bind:checked="row.checked" @click="$parent.$parent.$parent.addChecked(row)"></nobr></td>-->
117
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
118
- <td style="text-align: center"><nobr>{{row.f_user_nature}}</nobr></td>
119
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
120
- <td style="text-align: center"><nobr>{{row.f_modifier}}</nobr></td>
121
- <td style="text-align: center"><nobr>{{row.f_time}}</nobr></td>
122
- <td style="text-align: center"><nobr>{{row.f_modify_type}}</nobr></td>
123
- <td style="text-align: center"><nobr>{{row.f_remark}}</nobr></td>
124
- <td style="text-align: center"><nobr>{{row.f_approved}}</nobr></td>
125
- <td style="text-align: center"><nobr>{{row.f_approved_by}}</nobr></td>
126
- <td style="text-align: center"><nobr>{{row.f_approved_time}}</nobr></td>
127
- <td style="text-align: center"><nobr>
128
- <button class="button_search-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved == '未审核'">审核</button>
129
- <button class="button_new-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved != '未审核'">查看</button>
130
- </nobr></td>
131
- </template>
132
- </data-grid>
133
- </criteria-paged>
134
- <info-modify-modal v-show="showModal" :userinfome.sync="userInformation" :info.sync="info" ></info-modify-modal>
135
- </div>
136
- </template>
137
-
138
- <script>
139
- import { PagedList,HttpResetClass } from 'vue-client'
140
- import * as Util from '../Util'
141
- import Vue from 'vue'
142
- import InfoModifyModal from "./InfoModifyModal";
143
-
144
- export default {
145
- components: {InfoModifyModal},
146
- title: '档案审核',
147
- data() {
148
- let model = new PagedList('api/af-safecheck/sql/用户档案审核查询', 20, {
149
- groupitem: '""', orderitem: '"f_time desc"', f_approved: 'this.f_approved[0]',filialestr:'this.filialestr'
150
- })
151
- model.filialestr = this.$login.f.orgid
152
- model.f_archive_date = ''
153
- model.f_approved = ['']
154
- return {
155
- searchData: {
156
- condition: "1=1",
157
- orderitem: "f_time desc",
158
- groupitem: "",
159
- f_approved: '',
160
- filialestr: this.$login.f.orgid
161
- },
162
- excelHeaders: {
163
- //searchData:searchData,
164
- 'f_userinfo_code': '客户编号',
165
- 'f_user_name': '客户姓名',
166
- 'f_user_nature':'用户类型',
167
- 'f_modifier':'提交人',
168
- 'f_time': '提交时间',
169
- 'f_modify_type': '修改类型',
170
- 'f_remark': '备注',
171
- 'f_approved': '审核状态',
172
- 'f_approved_by': '审核人',
173
- 'f_approved_time': '审核时间'
174
- },
175
- showModal: false,
176
- model: model,
177
- info: {},
178
- userinfo:{},
179
- context: {},
180
- excessive:false,
181
- userInformation:{},
182
- f_user_nature_arr:this.$appdata.getParam('用户类型'),
183
- f_approval_states:this.$appdata.getParam('审核状态'),
184
- }
185
- },
186
- methods: {
187
- selfSearch(args) {
188
- this.searchData.condition = args.condition
189
- this.model.search(args.condition, args.model, args.condValue)
190
- },
191
- search(args){
192
- args += 'f_time= (select max(f_time) from t_modify_userinfo B where A.f_userinfoid = B.f_userinfoid)'
193
- this.model.search(args)
194
- },
195
- change(row) {
196
- //tag)
197
- new HttpResetClass().load('post',`/api/af-safecheck/logic/filemanage_getFilesDetail`, {
198
- //f_userinfo_code:'12381344',
199
- f_userinfo_id:row.f_userinfoid
200
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
201
- //tag
202
- //this.userInformation=res.data
203
- this.$set('userInformation',res.data)
204
- //tag
205
- this.$set('info',row)
206
- this.showModal = true
207
- })
208
-
209
- },
210
- async todo(row){
211
- let r = confirm("确认修改该资料?")
212
- if(r) {
213
- this.excessive=true
214
- let userinfoms=Object.assign({},this.userInformation.baseinfo.base)
215
- //userinfoms.f_user_name=row.f_user_name
216
- userinfoms.f_operator_record=row.f_modifier
217
- userinfoms.f_operatorid_record=row.f_modifier_id
218
- //userinfoms.f_remark=row.f_remark
219
- //tag
220
- if(this.userInformation.meterinfo[0].f_meter_classify!='物联网表'){
221
- this.userInformation.meterinfo[0].f_meternumber=row.f_meternumber
222
- }
223
- if (row.f_defendcard){
224
- this.userInformation.meterinfo[0].f_defendcard = row.f_defendcard
225
- }
226
- userinfoms.userfiles=[]
227
- userinfoms.userfiles.push(this.userInformation.meterinfo[0])
228
- userinfoms.f_orgid_record=null
229
- userinfoms.f_orgname_record=null
230
- userinfoms.f_depid_record=null
231
- userinfoms.f_depname_record=null
232
- let useraddressms=Object.assign({},this.userInformation.addressinfo)
233
- useraddressms.f_pcd=row.f_pcd
234
- useraddressms.f_pcd_id=row.f_pcd_id
235
- useraddressms.f_street=row.f_street
236
- useraddressms.f_street_id=row.f_street_id
237
- useraddressms.f_residential_area=row.f_residential_area
238
- useraddressms.f_residential_area_id=row.f_residential_area_id
239
- useraddressms.f_building=row.f_building?row.f_building:null
240
- useraddressms.f_building_id=row.f_building_id
241
- useraddressms.f_unit=row.f_unit?row.f_unit:null
242
- useraddressms.f_floor=row.f_floor?row.f_floor:null
243
- useraddressms.f_room=row.f_room?row.f_room:null
244
- useraddressms.f_building_suffix= row.f_building_suffix?row.f_building_suffix:null
245
- useraddressms.f_unit_suffix= row.f_unit_suffix?row.f_unit_suffix:null
246
- useraddressms.f_floor_suffix= row.f_floor_suffix?row.f_floor_suffix:null
247
- useraddressms.f_room_suffix= row.f_room_suffix?row.f_room_suffix:null
248
- //useraddressms.f_slice_area=row.f_slice_area
249
- useraddressms.f_address=row.f_address
250
- useraddressms.f_special=row.f_special
251
- useraddressms.f_iscity=row.f_iscity
252
- useraddressms.f_operator=row.f_modifier
253
- useraddressms.f_operatorid=row.f_modifier_id
254
- try{
255
- let res1=await new HttpResetClass().load('POST','/api/af-safecheck/logic/filemanage_fileSave', {data: {userinfo: userinfoms,modifyReason:this.f_source?`${this.f_source}审核通过更改档案信息`:'',address:{id:this.userInformation.addressinfo.id,oldid:this.userInformation.addressinfo.id}}},{resolveMsg: null, rejectMsg: null})
256
- //tag)
257
- if(res1.data.status==200){
258
- let res2=await new HttpResetClass().load('POST','/api/af-safecheck/logic/address_updateuseraddress', useraddressms,{resolveMsg: null, rejectMsg: null})
259
- //tag)
260
- if(res2.data.id){
261
- //tag)
262
- this.info.f_approved='已审核'
263
- this.info.f_approved_by=this.$login.f.name
264
- this.info.f_approved_time=Util.toStandardTimeString()
265
- //tag)
266
- let res3=await new HttpResetClass().load('POST','/api/af-safecheck/logic/SaveEntity', {data:{row:this.info,tablename:'t_modify_userinfo'}},{resolveMsg: null, rejectMsg: null})
267
- //tag)
268
- if(res3.data.code==200){
269
- this.$showMessage("审核成功,用户信息已更新!")
270
- this.excessive=false
271
- }else{
272
- this.$showMessage("审核失败!")
273
- this.excessive=false
274
- }
275
- }else{
276
- this.$showMessage("更新地址信息失败!")
277
- this.excessive=false
278
- }
279
- }else{
280
- this.$showMessage("修改用户信息失败!")
281
- this.excessive=false
282
- }
283
- }catch(msg){
284
- if( typeof msg == 'object' && msg.data){
285
- this.$showMessage("修改用户信息失败!"+msg.data)
286
- }else{
287
- this.$showMessage("审核失败,可以尝试重新点击审核按钮再次进行审核!!")
288
- }
289
- this.excessive=false
290
- }
291
- }
292
- },
293
- isnull(val){
294
- if(val == null){
295
- return ''
296
- }else{
297
- return val
298
- }
299
- },
300
- undo(row){
301
- this.info.f_approved='未通过'
302
- this.info.f_approved_by=this.$login.f.name
303
- this.info.f_approved_time=Util.toStandardTimeString()
304
- new HttpResetClass().load('POST','/api/af-safecheck/logic/SaveEntity', {data:{row:this.info,tablename:'t_modify_userinfo'}},{resolveMsg: null, rejectMsg: null}).then((res3)=>{
305
- //tag)
306
- if(res3.data.code==200){
307
- this.$showMessage("审核成功,审核结果:未通过!")
308
- }else{
309
- this.$showMessage("审核失败!")
310
- }
311
- })
312
-
313
- }
314
- }
315
- }
316
- </script>
1
+ <template>
2
+ <work-busy :is-busy="excessive"></work-busy>
3
+ <div class="basic-main" style="height: 100%">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria class="search_area" partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2" >
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
+ style="width: 60%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-2" >
14
+ <label class="font_normal_body">客户名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_username"
16
+ style="width: 60%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-2" >
19
+ <label class="font_normal_body">提&nbsp;交&nbsp;人</label>
20
+ <input type="text" class="input_search" v-model="model.f_modifier"
21
+ style="width: 60%" placeholder="提交人" condition="f_modifier like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">审&nbsp;核&nbsp;人</label>
25
+ <input type="text" class="input_search" v-model="model.f_approved_by"
26
+ style="width: 60%" placeholder="审核人" condition="f_approved_by like '%{}%'">
27
+ </div>
28
+ <div class="form-group col-sm-2">
29
+ <label class="font_normal_body">审核状态</label>
30
+ <v-select id="f_approved"
31
+ placeholder='审核状态' style="width: 60%"
32
+ v-model='model.f_approved'
33
+ :value.sync="model.f_approved"
34
+ :options='$parent.$parent.f_approval_states'
35
+ condition="f_approved = '{}'"
36
+ close-on-select clear-button></v-select>
37
+ </div>
38
+ <div class="col-sm-2 " style="width: auto; margin-top: 8px">
39
+ <button class="button_search button_spacing" @click="search">查询</button>
40
+ <export-excel :data="$parent.$parent.searchData"
41
+ :field="$parent.$parent.excelHeaders"
42
+ :choose-col="true"
43
+ sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="用户档案审核查询" template-name='用户档案审核查询'></export-excel>
44
+ <!--<button class="button_new button_spacing" @click="$parent.$parent.verify()">审核</button>-->
45
+ <!--<button class="button_export button_spacing" @click="$parent.$parent.verifyAll()">一键审核</button>-->
46
+
47
+ </div>
48
+ </div>
49
+ <div class="row">
50
+ <div class="form-group col-sm-2">
51
+ <label class="font_normal_body">用户类型</label>
52
+ <v-select
53
+ placeholder='用户类型' style="width: 60%"
54
+ v-model='model.f_user_nature'
55
+ :value.sync="model.f_user_nature"
56
+ :options='$parent.$parent.f_user_nature_arr'
57
+ condition="ui.f_user_nature = '{}'"
58
+ close-on-select clear-button></v-select>
59
+ </div>
60
+ <div class="form-group col-sm-2">
61
+ <label class="font_normal_body">开始时间</label>
62
+ <datepicker
63
+ :value.sync="model.f_check_start"
64
+ placeholder='开始时间'
65
+ :disabled-days-of-week="[]" style="width: 60%"
66
+ :format="'yyyy-MM-dd'"
67
+ :show-rest-button="reset"
68
+ v-model = "model.f_check_start"
69
+ condition="f_time > ='{} 00:00:00'">
70
+ </datepicker>
71
+ </div>
72
+ <div class="form-group col-sm-2">
73
+ <label class="font_normal_body">结束时间</label>
74
+ <datepicker
75
+ :value.sync="model.f_check_end"
76
+ placeholder='结束时间'
77
+ :disabled-days-of-week="[]"
78
+ :format="'yyyy-MM-dd'" style="width: 60%"
79
+ :show-rest-button="reset"
80
+ v-model = "model.f_check_end"
81
+ condition="f_time <= '{} 23:59:59'">
82
+ </datepicker>
83
+ </div>
84
+ <div class="form-group col-sm-2">
85
+ <label class="font_normal_body">用户类型</label>
86
+ <v-select
87
+ placeholder='用户类型' style="width: 60%"
88
+ v-model='model.f_user_nature'
89
+ :value.sync="model.f_user_nature"
90
+ :options='$parent.$parent.f_user_nature_arr'
91
+ condition="ui.f_user_nature = '{}'"
92
+ close-on-select clear-button></v-select>
93
+ </div>
94
+ </div>
95
+
96
+ </div>
97
+ </criteria>
98
+ <data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid>
99
+ <template partial='head'>
100
+ <tr>
101
+ <!--<th><nobr></nobr></th>-->
102
+ <th><nobr>用户编号</nobr></th>
103
+ <th><nobr>用户类型</nobr></th>
104
+ <th><nobr>用户名称</nobr></th>
105
+ <th><nobr>提交人</nobr></th>
106
+ <th><nobr>提交时间</nobr></th>
107
+ <th><nobr>修改类型</nobr></th>
108
+ <th><nobr>备注</nobr></th>
109
+ <th><nobr>审核状态</nobr></th>
110
+ <th><nobr>审核人</nobr></th>
111
+ <th><nobr>审核时间</nobr></th>
112
+ <th><nobr>审核</nobr></th>
113
+ </tr>
114
+ </template>
115
+ <template partial='body'>
116
+ <!--<td style="text-align: center"><nobr><input type="checkbox" v-model="row.checked" v-bind:checked="row.checked" @click="$parent.$parent.$parent.addChecked(row)"></nobr></td>-->
117
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
118
+ <td style="text-align: center"><nobr>{{row.f_user_nature}}</nobr></td>
119
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
120
+ <td style="text-align: center"><nobr>{{row.f_modifier}}</nobr></td>
121
+ <td style="text-align: center"><nobr>{{row.f_time}}</nobr></td>
122
+ <td style="text-align: center"><nobr>{{row.f_modify_type}}</nobr></td>
123
+ <td style="text-align: center"><nobr>{{row.f_remark}}</nobr></td>
124
+ <td style="text-align: center"><nobr>{{row.f_approved}}</nobr></td>
125
+ <td style="text-align: center"><nobr>{{row.f_approved_by}}</nobr></td>
126
+ <td style="text-align: center"><nobr>{{row.f_approved_time}}</nobr></td>
127
+ <td style="text-align: center"><nobr>
128
+ <button class="button_search-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved == '未审核'">审核</button>
129
+ <button class="button_new-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved != '未审核'">查看</button>
130
+ </nobr></td>
131
+ </template>
132
+ </data-grid>
133
+ </criteria-paged>
134
+ <info-modify-modal v-show="showModal" :userinfome.sync="userInformation" :info.sync="info" ></info-modify-modal>
135
+ </div>
136
+ </template>
137
+
138
+ <script>
139
+ import { PagedList,HttpResetClass } from 'vue-client'
140
+ import * as Util from '../Util'
141
+ import Vue from 'vue'
142
+ import InfoModifyModal from "./InfoModifyModal";
143
+
144
+ export default {
145
+ components: {InfoModifyModal},
146
+ title: '档案审核',
147
+ data() {
148
+ let model = new PagedList('api/af-safecheck/sql/用户档案审核查询', 20, {
149
+ groupitem: '""', orderitem: '"f_time desc"', f_approved: 'this.f_approved[0]',filialestr:'this.filialestr'
150
+ })
151
+ model.filialestr = this.$login.f.orgid
152
+ model.f_archive_date = ''
153
+ model.f_approved = ['']
154
+ return {
155
+ searchData: {
156
+ condition: "1=1",
157
+ orderitem: "f_time desc",
158
+ groupitem: "",
159
+ f_approved: '',
160
+ filialestr: this.$login.f.orgid
161
+ },
162
+ excelHeaders: {
163
+ //searchData:searchData,
164
+ 'f_userinfo_code': '客户编号',
165
+ 'f_user_name': '客户姓名',
166
+ 'f_user_nature':'用户类型',
167
+ 'f_modifier':'提交人',
168
+ 'f_time': '提交时间',
169
+ 'f_modify_type': '修改类型',
170
+ 'f_remark': '备注',
171
+ 'f_approved': '审核状态',
172
+ 'f_approved_by': '审核人',
173
+ 'f_approved_time': '审核时间'
174
+ },
175
+ showModal: false,
176
+ model: model,
177
+ info: {},
178
+ userinfo:{},
179
+ context: {},
180
+ excessive:false,
181
+ userInformation:{},
182
+ f_user_nature_arr:this.$appdata.getParam('用户类型'),
183
+ f_approval_states:this.$appdata.getParam('审核状态'),
184
+ }
185
+ },
186
+ methods: {
187
+ selfSearch(args) {
188
+ this.searchData.condition = args.condition
189
+ this.model.search(args.condition, args.model, args.condValue)
190
+ },
191
+ search(args){
192
+ args += 'f_time= (select max(f_time) from t_modify_userinfo B where A.f_userinfoid = B.f_userinfoid)'
193
+ this.model.search(args)
194
+ },
195
+ change(row) {
196
+ //tag)
197
+ new HttpResetClass().load('post',`/api/af-revenue/logic/filemanage_getFilesDetail`, {
198
+ //f_userinfo_code:'12381344',
199
+ f_userinfo_id:row.f_userinfoid
200
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
201
+ //tag
202
+ //this.userInformation=res.data
203
+ this.$set('userInformation',res.data)
204
+ //tag
205
+ this.$set('info',row)
206
+ this.showModal = true
207
+ })
208
+
209
+ },
210
+ async todo(row){
211
+ let r = confirm("确认修改该资料?")
212
+ if(r) {
213
+ this.excessive=true
214
+ let userinfoms=Object.assign({},this.userInformation.baseinfo.base)
215
+ //userinfoms.f_user_name=row.f_user_name
216
+ userinfoms.f_operator_record=row.f_modifier
217
+ userinfoms.f_operatorid_record=row.f_modifier_id
218
+ //userinfoms.f_remark=row.f_remark
219
+ //tag
220
+ if(this.userInformation.meterinfo[0].f_meter_classify!='物联网表'){
221
+ this.userInformation.meterinfo[0].f_meternumber=row.f_meternumber
222
+ }
223
+ if (row.f_defendcard){
224
+ this.userInformation.meterinfo[0].f_defendcard = row.f_defendcard
225
+ }
226
+ userinfoms.userfiles=[]
227
+ userinfoms.userfiles.push(this.userInformation.meterinfo[0])
228
+ userinfoms.f_orgid_record=null
229
+ userinfoms.f_orgname_record=null
230
+ userinfoms.f_depid_record=null
231
+ userinfoms.f_depname_record=null
232
+ let useraddressms=Object.assign({},this.userInformation.addressinfo)
233
+ useraddressms.f_pcd=row.f_pcd
234
+ useraddressms.f_pcd_id=row.f_pcd_id
235
+ useraddressms.f_street=row.f_street
236
+ useraddressms.f_street_id=row.f_street_id
237
+ useraddressms.f_residential_area=row.f_residential_area
238
+ useraddressms.f_residential_area_id=row.f_residential_area_id
239
+ useraddressms.f_building=row.f_building?row.f_building:null
240
+ useraddressms.f_building_id=row.f_building_id
241
+ useraddressms.f_unit=row.f_unit?row.f_unit:null
242
+ useraddressms.f_floor=row.f_floor?row.f_floor:null
243
+ useraddressms.f_room=row.f_room?row.f_room:null
244
+ useraddressms.f_building_suffix= row.f_building_suffix?row.f_building_suffix:null
245
+ useraddressms.f_unit_suffix= row.f_unit_suffix?row.f_unit_suffix:null
246
+ useraddressms.f_floor_suffix= row.f_floor_suffix?row.f_floor_suffix:null
247
+ useraddressms.f_room_suffix= row.f_room_suffix?row.f_room_suffix:null
248
+ //useraddressms.f_slice_area=row.f_slice_area
249
+ useraddressms.f_address=row.f_address
250
+ useraddressms.f_special=row.f_special
251
+ useraddressms.f_iscity=row.f_iscity
252
+ useraddressms.f_operator=row.f_modifier
253
+ useraddressms.f_operatorid=row.f_modifier_id
254
+ try{
255
+ let res1=await new HttpResetClass().load('POST','/api/af-safecheck/logic/filemanage_fileSave', {data: {userinfo: userinfoms,modifyReason:this.f_source?`${this.f_source}审核通过更改档案信息`:'',address:{id:this.userInformation.addressinfo.id,oldid:this.userInformation.addressinfo.id}}},{resolveMsg: null, rejectMsg: null})
256
+ //tag)
257
+ if(res1.data.status==200){
258
+ let res2=await new HttpResetClass().load('POST','/api/af-safecheck/logic/address_updateuseraddress', useraddressms,{resolveMsg: null, rejectMsg: null})
259
+ //tag)
260
+ if(res2.data.id){
261
+ //tag)
262
+ this.info.f_approved='已审核'
263
+ this.info.f_approved_by=this.$login.f.name
264
+ this.info.f_approved_time=Util.toStandardTimeString()
265
+ //tag)
266
+ let res3=await new HttpResetClass().load('POST','/api/af-safecheck/logic/SaveEntity', {data:{row:this.info,tablename:'t_modify_userinfo'}},{resolveMsg: null, rejectMsg: null})
267
+ //tag)
268
+ if(res3.data.code==200){
269
+ this.$showMessage("审核成功,用户信息已更新!")
270
+ this.excessive=false
271
+ }else{
272
+ this.$showMessage("审核失败!")
273
+ this.excessive=false
274
+ }
275
+ }else{
276
+ this.$showMessage("更新地址信息失败!")
277
+ this.excessive=false
278
+ }
279
+ }else{
280
+ this.$showMessage("修改用户信息失败!")
281
+ this.excessive=false
282
+ }
283
+ }catch(msg){
284
+ if( typeof msg == 'object' && msg.data){
285
+ this.$showMessage("修改用户信息失败!"+msg.data)
286
+ }else{
287
+ this.$showMessage("审核失败,可以尝试重新点击审核按钮再次进行审核!!")
288
+ }
289
+ this.excessive=false
290
+ }
291
+ }
292
+ },
293
+ isnull(val){
294
+ if(val == null){
295
+ return ''
296
+ }else{
297
+ return val
298
+ }
299
+ },
300
+ undo(row){
301
+ this.info.f_approved='未通过'
302
+ this.info.f_approved_by=this.$login.f.name
303
+ this.info.f_approved_time=Util.toStandardTimeString()
304
+ new HttpResetClass().load('POST','/api/af-safecheck/logic/SaveEntity', {data:{row:this.info,tablename:'t_modify_userinfo'}},{resolveMsg: null, rejectMsg: null}).then((res3)=>{
305
+ //tag)
306
+ if(res3.data.code==200){
307
+ this.$showMessage("审核成功,审核结果:未通过!")
308
+ }else{
309
+ this.$showMessage("审核失败!")
310
+ }
311
+ })
312
+
313
+ }
314
+ }
315
+ }
316
+ </script>