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