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,286 +1,286 @@
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="col-sm-4 form-group form-input-group" style="width: 20%">-->
43
- <!--<label class="font_normal_body">提&nbsp;交&nbsp;人</label>-->
44
- <!--<input type="text" class="input_search" placeholder="提交人" v-model="$parent.$parent.model.f_modifier" v-on:keyup.enter="search"-->
45
- <!--style="width: 60%" condition="f_modifier like '%{}%'">-->
46
- <!--</div>-->
47
-
48
- <div class="form-group col-sm-2">
49
- <label class="font_normal_body">审核状态</label>
50
- <v-select id="f_approved"
51
- placeholder='审核状态' style="width: 60%"
52
- v-model='model.f_approved'
53
- :value.sync="model.f_approved"
54
- :options='$parent.$parent.f_approval_states'
55
- condition="f_approved = '{}'"
56
- close-on-select clear-button></v-select>
57
- </div>
58
- <div class="col-sm-4 " style="width: auto; margin-top: 8px">
59
- <button class="button_search button_spacing" @click="search">查询</button>
60
- <!--<button class="button_new button_spacing" @click="$parent.$parent.verify()">审核</button>-->
61
- <!--<button class="button_export button_spacing" @click="$parent.$parent.verifyAll()">一键审核</button>-->
62
-
63
- </div>
64
- </div>
65
-
66
- </div>
67
- </criteria>
68
- <data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid>
69
- <template partial='head'>
70
- <tr>
71
- <!--<th><nobr></nobr></th>-->
72
- <th><nobr>用户编号</nobr></th>
73
- <th><nobr>入户证号</nobr></th>
74
- <th><nobr>用户名称</nobr></th>
75
- <th><nobr>提交人</nobr></th>
76
- <th><nobr>提交时间</nobr></th>
77
- <th><nobr>修改类型</nobr></th>
78
- <th><nobr>审核状态</nobr></th>
79
- <th><nobr>审核人</nobr></th>
80
- <th><nobr>审核时间</nobr></th>
81
- <th><nobr>审核</nobr></th>
82
- </tr>
83
- </template>
84
- <template partial='body'>
85
- <!--<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>-->
86
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
87
- <td style="text-align: center"><nobr>{{row.f_enter_number}}</nobr></td>
88
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
89
- <td style="text-align: center"><nobr>{{row.f_modifier}}</nobr></td>
90
- <td style="text-align: center"><nobr>{{row.f_time}}</nobr></td>
91
- <td style="text-align: center"><nobr>{{row.f_modify_type}}</nobr></td>
92
- <td style="text-align: center"><nobr>{{row.f_approved}}</nobr></td>
93
- <td style="text-align: center"><nobr>{{row.f_approved_by}}</nobr></td>
94
- <td style="text-align: center"><nobr>{{row.f_approved_time}}</nobr></td>
95
- <td style="text-align: center"><nobr>
96
- <button class="button_search-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved == '未审核'">审核</button>
97
- <button class="button_new-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved != '未审核'">查看</button>
98
- </nobr></td>
99
- </template>
100
- </data-grid>
101
- </criteria-paged>
102
- <info-modify-modal v-show="showModal" :userinfome.sync="userInformation" :info.sync="info" ></info-modify-modal>
103
- </div>
104
- </template>
105
-
106
- <script>
107
- import { PagedList,HttpResetClass } from 'vue-client'
108
- import * as Util from '../../Util'
109
- import Vue from 'vue'
110
- import InfoModifyModal from "./InfoModifyModal";
111
-
112
- export default {
113
- components: {InfoModifyModal},
114
- title: '档案审核',
115
- data () {
116
- let model = new PagedList('api/af-safecheck/sql/用户档案审核查询', 20, {
117
- groupitem: '""', orderitem: '"f_time desc"', f_approved: 'this.f_approved[0]', filialestr: 'this.filialestr'
118
- })
119
- model.filialestr = this.$login.f.orgid
120
- model.f_archive_date = ''
121
- model.f_approved = ['']
122
- return {
123
- showModal: false,
124
- model: model,
125
- info: {},
126
- userinfo: {},
127
- context: {},
128
- excessive: false,
129
- userInformation: {},
130
- f_approval_states: this.$appdata.getParam('审核状态'),
131
- }
132
- },
133
- methods: {
134
- search (args) {
135
- args += 'f_time= (select max(f_time) from t_modify_userinfo B where A.f_userinfoid = B.f_userinfoid)'
136
- this.model.search(args)
137
- },
138
- change (row) {
139
-
140
- //tag)
141
- new HttpResetClass().load('post', `/api/af-safecheck/logic/filemanage_getFilesDetail`, {
142
-
143
- //f_userinfo_code:'12381344',
144
- f_userinfo_id: row.f_userinfoid
145
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
146
- //tag
147
- //this.userInformation=res.data
148
- this.$set('userInformation', res.data)
149
- //tag
150
- this.$set('info', row)
151
- this.showModal = true
152
- })
153
-
154
- },
155
- async todo (row) {
156
- let r = confirm("确认修改该资料?")
157
- if (r) {
158
- //
159
- this.excessive = true
160
- let userinfoms = Object.assign({}, this.userInformation.baseinfo.base)
161
- //userinfoms.f_user_name=row.f_user_name
162
- userinfoms.f_operator_record = row.f_modifier
163
- userinfoms.f_operatorid_record = row.f_modifier_id
164
- //userinfoms.f_remark=row.f_remark
165
- //tag
166
- if (this.userInformation.meterinfo[0].f_meter_classify != '物联网表') {
167
- this.userInformation.meterinfo[0].f_meternumber = row.f_meternumber
168
- }
169
- userinfoms.userfiles = []
170
- userinfoms.userfiles.push(this.userInformation.meterinfo[0])
171
- userinfoms.f_orgid_record = null
172
- userinfoms.f_orgname_record = null
173
- userinfoms.f_depid_record = null
174
- userinfoms.f_depname_record = null
175
- let useraddressms = Object.assign({}, this.userInformation.addressinfo)
176
- useraddressms.f_pcd = row.f_pcd
177
-
178
- useraddressms.f_pcd_id = row.f_pcd_id
179
- useraddressms.f_street = row.f_street
180
- useraddressms.f_street_id = row.f_street_id
181
- useraddressms.f_residential_area = row.f_residential_area
182
- useraddressms.f_residential_area_id = row.f_residential_area_id
183
- useraddressms.f_building = row.f_building
184
- useraddressms.f_building_id = row.f_building_id
185
- useraddressms.f_unit = row.f_unit
186
- useraddressms.f_floor = row.f_floor
187
- useraddressms.f_room = row.f_room
188
- useraddressms.f_enter_number = row.f_enter_number
189
- useraddressms.f_building_suffix = row.f_building_suffix
190
- useraddressms.f_unit_suffix = row.f_unit_suffix
191
- useraddressms.f_floor_suffix = row.f_floor_suffix
192
- useraddressms.f_room_suffix = row.f_room_suffix
193
- //useraddressms.f_slice_area=row.f_slice_area
194
- useraddressms.f_address = row.f_address
195
- useraddressms.f_special = row.f_special
196
- useraddressms.f_iscity = row.f_iscity
197
- useraddressms.f_operator = row.f_modifier
198
- useraddressms.f_operatorid = row.f_modifier_id
199
- try{
200
- let res1 = await new HttpResetClass().load('POST', '/api/af-safecheck/logic/filemanage_fileSave', {
201
- data: {
202
- userinfo: userinfoms,
203
- modifyReason: this.f_source ? `${this.f_source}审核通过更改档案信息` : '',
204
- address: {id: this.userInformation.addressinfo.id, oldid: this.userInformation.addressinfo.id}
205
- }
206
- }, {resolveMsg: null, rejectMsg: null})
207
- //tag)
208
- if (res1.data.status == 200) {
209
- let res2 = await new HttpResetClass().load('POST', '/api/af-safecheck/logic/address_updateuseraddress', useraddressms, {
210
- resolveMsg: null,
211
- rejectMsg: null
212
- })
213
- //tag)
214
- if (res2.data.id) {
215
- //tag)
216
- this.info.f_approved = '已审核'
217
- this.info.f_approved_by = this.$login.f.name
218
- this.info.f_approved_time = Util.toStandardTimeString()
219
- //tag)
220
- let res3 = await new HttpResetClass().load('POST', '/api/af-safecheck/logic/SaveEntity', {
221
- data: {
222
- row: this.info,
223
- tablename: 't_modify_userinfo'
224
- }
225
- }, {resolveMsg: null, rejectMsg: null})
226
- //tag)
227
- if (res3.data.code == 200) {
228
- this.$showMessage("审核成功,用户信息已更新!")
229
- this.excessive = false
230
- } else {
231
- this.$showMessage("审核失败!")
232
- this.excessive = false
233
- }
234
- } else {
235
- this.$showMessage("更新地址信息失败!")
236
- this.excessive = false
237
- }
238
- } else {
239
- this.$showMessage("修改用户信息失败!")
240
- this.excessive = false
241
- }
242
- }catch(msg){
243
- if( typeof msg == 'object' && msg.data){
244
- this.$showMessage("修改用户信息失败!"+msg.data)
245
- }else{
246
- this.$showMessage("审核失败,可以尝试重新点击审核按钮再次进行审核!!")
247
- }
248
- this.excessive=false
249
- }
250
- }/*catch(msg){
251
- this.$showMessage("审核失败,可以尝试重新点击审核按钮再次进行审核!!")
252
- this.excessive=false
253
- }*/
254
-
255
-
256
-
257
- },
258
- isnull (val) {
259
- if (val == null) {
260
- return ''
261
- } else {
262
- return val
263
- }
264
- },
265
- async undo (row) {
266
- this.info.f_approved = '未通过'
267
- this.info.f_approved_by = this.$login.f.name
268
- this.info.f_approved_time = Util.toStandardTimeString()
269
- new HttpResetClass().load('POST', '/api/af-safecheck/logic/SaveEntity', {
270
- data: {
271
- row: this.info,
272
- tablename: 't_modify_userinfo'
273
- }
274
- }, {resolveMsg: null, rejectMsg: null}).then((res3) => {
275
- //tag)
276
- if (res3.data.code == 200) {
277
- this.$showMessage("审核成功,审核结果:未通过!")
278
- } else {
279
- this.$showMessage("审核失败!")
280
- }
281
- })
282
-
283
- }
284
- }
285
- }
286
- </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="col-sm-4 form-group form-input-group" style="width: 20%">-->
43
+ <!--<label class="font_normal_body">提&nbsp;交&nbsp;人</label>-->
44
+ <!--<input type="text" class="input_search" placeholder="提交人" v-model="$parent.$parent.model.f_modifier" v-on:keyup.enter="search"-->
45
+ <!--style="width: 60%" condition="f_modifier like '%{}%'">-->
46
+ <!--</div>-->
47
+
48
+ <div class="form-group col-sm-2">
49
+ <label class="font_normal_body">审核状态</label>
50
+ <v-select id="f_approved"
51
+ placeholder='审核状态' style="width: 60%"
52
+ v-model='model.f_approved'
53
+ :value.sync="model.f_approved"
54
+ :options='$parent.$parent.f_approval_states'
55
+ condition="f_approved = '{}'"
56
+ close-on-select clear-button></v-select>
57
+ </div>
58
+ <div class="col-sm-4 " style="width: auto; margin-top: 8px">
59
+ <button class="button_search button_spacing" @click="search">查询</button>
60
+ <!--<button class="button_new button_spacing" @click="$parent.$parent.verify()">审核</button>-->
61
+ <!--<button class="button_export button_spacing" @click="$parent.$parent.verifyAll()">一键审核</button>-->
62
+
63
+ </div>
64
+ </div>
65
+
66
+ </div>
67
+ </criteria>
68
+ <data-grid class="list_area table_sy" :model="model" partial='list' v-ref:grid>
69
+ <template partial='head'>
70
+ <tr>
71
+ <!--<th><nobr></nobr></th>-->
72
+ <th><nobr>用户编号</nobr></th>
73
+ <th><nobr>入户证号</nobr></th>
74
+ <th><nobr>用户名称</nobr></th>
75
+ <th><nobr>提交人</nobr></th>
76
+ <th><nobr>提交时间</nobr></th>
77
+ <th><nobr>修改类型</nobr></th>
78
+ <th><nobr>审核状态</nobr></th>
79
+ <th><nobr>审核人</nobr></th>
80
+ <th><nobr>审核时间</nobr></th>
81
+ <th><nobr>审核</nobr></th>
82
+ </tr>
83
+ </template>
84
+ <template partial='body'>
85
+ <!--<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>-->
86
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
87
+ <td style="text-align: center"><nobr>{{row.f_enter_number}}</nobr></td>
88
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
89
+ <td style="text-align: center"><nobr>{{row.f_modifier}}</nobr></td>
90
+ <td style="text-align: center"><nobr>{{row.f_time}}</nobr></td>
91
+ <td style="text-align: center"><nobr>{{row.f_modify_type}}</nobr></td>
92
+ <td style="text-align: center"><nobr>{{row.f_approved}}</nobr></td>
93
+ <td style="text-align: center"><nobr>{{row.f_approved_by}}</nobr></td>
94
+ <td style="text-align: center"><nobr>{{row.f_approved_time}}</nobr></td>
95
+ <td style="text-align: center"><nobr>
96
+ <button class="button_search-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved == '未审核'">审核</button>
97
+ <button class="button_new-1 button_spacing" @click="$parent.$parent.$parent.change(row)" v-if="row.f_approved != '未审核'">查看</button>
98
+ </nobr></td>
99
+ </template>
100
+ </data-grid>
101
+ </criteria-paged>
102
+ <info-modify-modal v-show="showModal" :userinfome.sync="userInformation" :info.sync="info" ></info-modify-modal>
103
+ </div>
104
+ </template>
105
+
106
+ <script>
107
+ import { PagedList,HttpResetClass } from 'vue-client'
108
+ import * as Util from '../../Util'
109
+ import Vue from 'vue'
110
+ import InfoModifyModal from "./InfoModifyModal";
111
+
112
+ export default {
113
+ components: {InfoModifyModal},
114
+ title: '档案审核',
115
+ data () {
116
+ let model = new PagedList('api/af-safecheck/sql/用户档案审核查询', 20, {
117
+ groupitem: '""', orderitem: '"f_time desc"', f_approved: 'this.f_approved[0]', filialestr: 'this.filialestr'
118
+ })
119
+ model.filialestr = this.$login.f.orgid
120
+ model.f_archive_date = ''
121
+ model.f_approved = ['']
122
+ return {
123
+ showModal: false,
124
+ model: model,
125
+ info: {},
126
+ userinfo: {},
127
+ context: {},
128
+ excessive: false,
129
+ userInformation: {},
130
+ f_approval_states: this.$appdata.getParam('审核状态'),
131
+ }
132
+ },
133
+ methods: {
134
+ search (args) {
135
+ args += 'f_time= (select max(f_time) from t_modify_userinfo B where A.f_userinfoid = B.f_userinfoid)'
136
+ this.model.search(args)
137
+ },
138
+ change (row) {
139
+
140
+ //tag)
141
+ new HttpResetClass().load('post', `/api/af-revenue/logic/filemanage_getFilesDetail`, {
142
+
143
+ //f_userinfo_code:'12381344',
144
+ f_userinfo_id: row.f_userinfoid
145
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
146
+ //tag
147
+ //this.userInformation=res.data
148
+ this.$set('userInformation', res.data)
149
+ //tag
150
+ this.$set('info', row)
151
+ this.showModal = true
152
+ })
153
+
154
+ },
155
+ async todo (row) {
156
+ let r = confirm("确认修改该资料?")
157
+ if (r) {
158
+ //
159
+ this.excessive = true
160
+ let userinfoms = Object.assign({}, this.userInformation.baseinfo.base)
161
+ //userinfoms.f_user_name=row.f_user_name
162
+ userinfoms.f_operator_record = row.f_modifier
163
+ userinfoms.f_operatorid_record = row.f_modifier_id
164
+ //userinfoms.f_remark=row.f_remark
165
+ //tag
166
+ if (this.userInformation.meterinfo[0].f_meter_classify != '物联网表') {
167
+ this.userInformation.meterinfo[0].f_meternumber = row.f_meternumber
168
+ }
169
+ userinfoms.userfiles = []
170
+ userinfoms.userfiles.push(this.userInformation.meterinfo[0])
171
+ userinfoms.f_orgid_record = null
172
+ userinfoms.f_orgname_record = null
173
+ userinfoms.f_depid_record = null
174
+ userinfoms.f_depname_record = null
175
+ let useraddressms = Object.assign({}, this.userInformation.addressinfo)
176
+ useraddressms.f_pcd = row.f_pcd
177
+
178
+ useraddressms.f_pcd_id = row.f_pcd_id
179
+ useraddressms.f_street = row.f_street
180
+ useraddressms.f_street_id = row.f_street_id
181
+ useraddressms.f_residential_area = row.f_residential_area
182
+ useraddressms.f_residential_area_id = row.f_residential_area_id
183
+ useraddressms.f_building = row.f_building
184
+ useraddressms.f_building_id = row.f_building_id
185
+ useraddressms.f_unit = row.f_unit
186
+ useraddressms.f_floor = row.f_floor
187
+ useraddressms.f_room = row.f_room
188
+ useraddressms.f_enter_number = row.f_enter_number
189
+ useraddressms.f_building_suffix = row.f_building_suffix
190
+ useraddressms.f_unit_suffix = row.f_unit_suffix
191
+ useraddressms.f_floor_suffix = row.f_floor_suffix
192
+ useraddressms.f_room_suffix = row.f_room_suffix
193
+ //useraddressms.f_slice_area=row.f_slice_area
194
+ useraddressms.f_address = row.f_address
195
+ useraddressms.f_special = row.f_special
196
+ useraddressms.f_iscity = row.f_iscity
197
+ useraddressms.f_operator = row.f_modifier
198
+ useraddressms.f_operatorid = row.f_modifier_id
199
+ try{
200
+ let res1 = await new HttpResetClass().load('POST', '/api/af-safecheck/logic/filemanage_fileSave', {
201
+ data: {
202
+ userinfo: userinfoms,
203
+ modifyReason: this.f_source ? `${this.f_source}审核通过更改档案信息` : '',
204
+ address: {id: this.userInformation.addressinfo.id, oldid: this.userInformation.addressinfo.id}
205
+ }
206
+ }, {resolveMsg: null, rejectMsg: null})
207
+ //tag)
208
+ if (res1.data.status == 200) {
209
+ let res2 = await new HttpResetClass().load('POST', '/api/af-safecheck/logic/address_updateuseraddress', useraddressms, {
210
+ resolveMsg: null,
211
+ rejectMsg: null
212
+ })
213
+ //tag)
214
+ if (res2.data.id) {
215
+ //tag)
216
+ this.info.f_approved = '已审核'
217
+ this.info.f_approved_by = this.$login.f.name
218
+ this.info.f_approved_time = Util.toStandardTimeString()
219
+ //tag)
220
+ let res3 = await new HttpResetClass().load('POST', '/api/af-safecheck/logic/SaveEntity', {
221
+ data: {
222
+ row: this.info,
223
+ tablename: 't_modify_userinfo'
224
+ }
225
+ }, {resolveMsg: null, rejectMsg: null})
226
+ //tag)
227
+ if (res3.data.code == 200) {
228
+ this.$showMessage("审核成功,用户信息已更新!")
229
+ this.excessive = false
230
+ } else {
231
+ this.$showMessage("审核失败!")
232
+ this.excessive = false
233
+ }
234
+ } else {
235
+ this.$showMessage("更新地址信息失败!")
236
+ this.excessive = false
237
+ }
238
+ } else {
239
+ this.$showMessage("修改用户信息失败!")
240
+ this.excessive = false
241
+ }
242
+ }catch(msg){
243
+ if( typeof msg == 'object' && msg.data){
244
+ this.$showMessage("修改用户信息失败!"+msg.data)
245
+ }else{
246
+ this.$showMessage("审核失败,可以尝试重新点击审核按钮再次进行审核!!")
247
+ }
248
+ this.excessive=false
249
+ }
250
+ }/*catch(msg){
251
+ this.$showMessage("审核失败,可以尝试重新点击审核按钮再次进行审核!!")
252
+ this.excessive=false
253
+ }*/
254
+
255
+
256
+
257
+ },
258
+ isnull (val) {
259
+ if (val == null) {
260
+ return ''
261
+ } else {
262
+ return val
263
+ }
264
+ },
265
+ async undo (row) {
266
+ this.info.f_approved = '未通过'
267
+ this.info.f_approved_by = this.$login.f.name
268
+ this.info.f_approved_time = Util.toStandardTimeString()
269
+ new HttpResetClass().load('POST', '/api/af-safecheck/logic/SaveEntity', {
270
+ data: {
271
+ row: this.info,
272
+ tablename: 't_modify_userinfo'
273
+ }
274
+ }, {resolveMsg: null, rejectMsg: null}).then((res3) => {
275
+ //tag)
276
+ if (res3.data.code == 200) {
277
+ this.$showMessage("审核成功,审核结果:未通过!")
278
+ } else {
279
+ this.$showMessage("审核失败!")
280
+ }
281
+ })
282
+
283
+ }
284
+ }
285
+ }
286
+ </script>