safecheck-client 3.0.39-73 → 3.0.39-74

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 (40) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -26
  3. package/src/components/android/rejectInspecCheck.vue +322 -322
  4. package/src/components/pc/RoleSelector.vue +172 -172
  5. package/src/components/rongcheng/AddPlanItem.vue +344 -344
  6. package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
  7. package/src/components/rongcheng/PaperDefectMain.vue +828 -828
  8. package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -652
  9. package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -637
  10. package/src/filiale/BFshiye/pc/NewCheckpaper.vue +1962 -1962
  11. package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
  12. package/src/filiale/BFshiye/pc.js +17 -17
  13. package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -775
  14. package/src/filiale/baiyin/android.js +12 -12
  15. package/src/filiale/dexin/pc/PaperList.vue +840 -840
  16. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1357 -1357
  17. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +823 -823
  18. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1919
  19. package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -1262
  20. package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -398
  21. package/src/filiale/rongchuang/pc.js +18 -18
  22. package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +532 -532
  23. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1340 -1340
  24. package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
  25. package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
  26. package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
  27. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
  28. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
  29. package/src/filiale/yangchunboneng/android.js +21 -21
  30. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
  31. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
  32. package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
  33. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
  34. package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
  35. package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
  36. package/src/filiale/yangchunboneng/pc.js +29 -29
  37. package/src/main.js +1 -1
  38. package/src/rongcheng.js +319 -319
  39. package/src/safecheck-android.js +316 -316
  40. package/yarn-error.log +0 -140
@@ -1,322 +1,322 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
-
8
- .app-row {
9
- background-color: white;
10
- padding: 10px 10px 0 10px;
11
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
- }
13
-
14
- .search_input {
15
- border: 0;
16
- outline: none;
17
- }
18
-
19
- .font {
20
- font: 15px PingFang-SC-Medium;
21
- color: #666666;
22
- }
23
-
24
- .input-font {
25
- font: 15px PingFang-SC-Medium;
26
- color: #333333;
27
- }
28
-
29
- .btn-font {
30
- font: 600 16px PingFang-SC-Bold;
31
- color: #499EDF;
32
- }
33
-
34
- .btn-color {
35
- background-color: #FFFFFF;
36
- border-radius: 10px;
37
- border: 1px solid #499EDF;
38
- }
39
-
40
- .app-text {
41
- font-size: 12px;
42
- }
43
-
44
- .panel-self {
45
- border-radius: 10px;
46
- border: 1px solid #499EDF;
47
- background-color: #F8F8F8;
48
- }
49
-
50
- .yybtn-color {
51
- background-color: #499edf;
52
- border-radius: 4px;
53
- border: 1px solid #499EDF;
54
- color: #FFFFFF;
55
- font: 14px PingFang-SC-Bold;
56
- }
57
-
58
- .qxbtn-color {
59
- background-color: #FFFFFF;
60
- border-radius: 4px;
61
- color: #499edf;
62
- font: 14px PingFang-SC-Bold;
63
- border: 1px solid #499EDF;
64
- }
65
-
66
- .button_shrink_top {
67
- width: 35px;
68
- height: 35px;
69
- background-size: 100%;
70
- background-image: url("../../../static/newStyle/stretch_top.png")
71
- }
72
-
73
- .button_shrink_bottom {
74
- width: 35px;
75
- height: 35px;
76
- background-size: 100%;
77
- background-image: url("../../../static/newStyle/stretch_bottom.png")
78
- }
79
-
80
- .button_shrink_left {
81
- width: 35px;
82
- height: 35px;
83
- background-size: 100%;
84
- background-image: url("../../../static/newStyle/stretch_left.png")
85
- }
86
-
87
- .button_shrink_right {
88
- width: 35px;
89
- height: 35px;
90
- background-size: 100%;
91
- background-image: url("../../../static/newStyle/stretch_right.png")
92
- }
93
- </style>
94
- <template>
95
- <div style="height: auto;width: 100%">
96
- <criteria-paged :model="model" v-ref:paged>
97
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
98
- <div partial>
99
- <form>
100
- <div class="row app-row">
101
- <div class="col-xs-4">
102
- <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
103
- <label class="font text-left">用户姓名:</label>
104
- </div>
105
- <div class="col-xs-8">
106
- <input class="search_input input-font" v-model=model.f_user_name
107
- condition="f_user_name like '%{}%'"/>
108
- </div>
109
- </div>
110
- <div class="row app-row">
111
- <div class="col-xs-4">
112
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
113
- <label for="f_userinfo_code" class="font text-left">用户编号:</label>
114
- </div>
115
- <div class="col-xs-8">
116
- <input id="f_userinfo_code" class="search_input input-font"
117
- v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'"/>
118
- </div>
119
- </div>
120
- <div class="row app-row">
121
- <div class="col-xs-4">
122
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
123
- <label class="font text-left">用户地址:</label>
124
- </div>
125
- <div class="col-xs-8">
126
- <input class="search_input input-font"
127
- v-model=model.f_address condition="f_address like '%{}%'"/>
128
- </div>
129
- </div>
130
- <div class="row app-row">
131
- <div class="col-xs-4">
132
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
133
- <label class="font text-left">安检员:</label>
134
- </div>
135
- <div class="col-xs-8">
136
- <v-select :value.sync="model.check" v-model='model.check'
137
- :value-single="true"
138
- class="select_list select"
139
- :options='$parent.$parent.checkers'
140
- placeholder='安检员'
141
- close-on-select width="100%"></v-select>
142
- </div>
143
- </div>
144
- <div class="row text-center" style="margin-top: 20px;">
145
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
146
- @click="$parent.$parent.selfSearch">查询
147
- </button>
148
- <div style="float: right;margin-right: 3% " class="button_spacing"
149
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
150
- @click="$parent.$parent.hidden()"></div>
151
- </div>
152
- <div style="height:30px;"></div>
153
- </form>
154
- </div>
155
- </criteria>
156
- <list :model="model" partial='list'>
157
- <div partial>
158
- <div class="auto app-text" style="margin-top: 5px;">
159
- <div class="panel" style="padding: 10px 10px 5px 10px;">
160
- <div class="panel-body panel-self">
161
- <div class="col-xs-12">
162
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
163
- <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
164
- </div>
165
- <div class="col-xs-12">
166
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
167
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
168
- </div>
169
- <div class="col-xs-12">
170
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
171
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
172
- </div>
173
- <div class="col-xs-12">
174
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>安检时间:</b></p>
175
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_create_time }}</p>
176
- </div>
177
- <div class="col-xs-12">
178
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
179
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
180
- </div>
181
- <div class="col-xs-12">
182
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>所属安检:</b></p>
183
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
184
- </div>
185
- <div class="col-xs-12">
186
- <p class="panel-title col-xs-5 text-left font"><b>不通过原因:</b></p>
187
- <p style="color: red" class="panel-title col-xs-7 text-left input-font">{{ row.f_approved_note }}</p>
188
- </div>
189
- <div class="col-xs-12">
190
- <button type="button" name="button" class="btn btn-primary"
191
- style="background-color:#499edf;float: right;margin-right:10px;"
192
- @click="$parent.$parent.$parent.Handle(row)">处理
193
- </button>
194
- </div>
195
- </div>
196
- </div>
197
- </div>
198
- </div>
199
- </list>
200
- </criteria-paged>
201
- </div>
202
- </template>
203
- <script>
204
- import Vue from 'vue'
205
- import {HttpResetClass, PagedList} from 'vue-client'
206
- import * as Util from '../Util'
207
- import co from "co";
208
- let select = function * (self) {
209
- let http = new HttpResetClass()
210
- http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
211
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
212
- userid: Vue.user.id
213
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
214
- //tag
215
- self.checkers.push({label:'全部',value:''})
216
- res.data.forEach((checker)=>{
217
- self.checkers.push({label:checker.name,value:checker.name})
218
- })
219
- })
220
- }
221
- export default {
222
- title: '安检单驳回',
223
- data() {
224
- return {
225
- checkers: [],
226
- showModal: false,
227
- f_filialeids: '',
228
- model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/AndroidGetcheckpaper`, 20, {
229
- condition: 'this.condition',
230
- f_filialeid: `'${Vue.user.orgid}'`,
231
- f_checker_id: `'${Vue.user.id}'`
232
- }),
233
- criteriaShow: false,
234
- select: {}
235
- }
236
- },
237
- ready() {
238
- this.selfSearch()
239
- let gen = select(this)
240
- co(gen)
241
- },
242
- methods: {
243
- selfSearch() {
244
- let condition = "1=1 "
245
- if (this.$refs.paged.$refs.cri.model.f_user_name) {
246
- if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
247
- condition += " and f_user_name like '%" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
248
- }
249
- }
250
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
251
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
252
- condition += " and f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
253
- }
254
- }
255
- if (this.$refs.paged.$refs.cri.model.f_address) {
256
- if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
257
- condition += " and f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
258
- }
259
- }
260
- if (this.$refs.paged.$refs.cri.model.check) {
261
- if (this.$refs.paged.$refs.cri.model.check.toString().trim()) {
262
- condition += " and f_checker_name like '%" + this.$refs.paged.$refs.cri.model.check + "%'"
263
- }
264
- }else{
265
- condition += " and f_checker_name like '%" + Vue.user.name+ "%'"
266
- }
267
- this.model.search(condition)
268
- },
269
- hidden() {
270
- this.criteriaShow = !this.criteriaShow
271
- },
272
- Handle(row) {
273
- //跳转到无计划安检
274
- if (row.f_userinfo_code) {
275
- let http = new HttpResetClass()
276
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, {data: {condition: "f_userinfo_code= '" + row.f_userinfo_code + "'",
277
- groupitem:'', orderitem: 'f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room', f_check_type: '',f_filialeid:'',
278
- f_user_name: '', myCycle: '', fyCycle: '', f_user_type: '', f_sign: '', f_residential_area: '', f_address: '', f_user_state: '', f_orgids: '', f_unit: '', f_building: ''
279
- }}).then(
280
- (res) => {
281
- if(res.data.length==0){
282
- this.$showMessage('未查询到当前用户档案信息')
283
- return
284
- }
285
- let info = res.data[0]
286
- info.id = ''
287
- info.f_state = '未检'
288
- info.f_no_checkplan = '无计划安检'
289
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
290
- info['f_plan_meters'] = response.data
291
- var pardate = {
292
- _this:this,
293
- tittle:'安检详情',
294
- safe:true
295
- }
296
- this.$dispatch('gotoson',pardate)
297
- this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'rejectInspecCheck'}, 'self', this.selfSearch)
298
- })
299
- })
300
- }
301
- },
302
- reassign(row) {
303
- this.select = row
304
- this.showModal = true
305
- },
306
- manyisok() {
307
- let sqlstr=`update t_check_paper set f_checker_reciver='${this.check}' where id='${this.select.id}'`
308
- let http = new HttpResetClass()
309
- http.load('POST', 'rs/logic/runSQL', {data: {sql: sqlstr}},
310
- {resolveMsg: null, rejectMsg: '移出安检册失败'}).then(resp=>{
311
- this.showModal = false
312
- this.selfSearch()
313
- }).catch(error=>{
314
- this.$showMessage('转单失败',error)
315
- })
316
- },
317
- iscancel() {
318
- this.showModal = false
319
- }
320
- }
321
- }
322
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+
8
+ .app-row {
9
+ background-color: white;
10
+ padding: 10px 10px 0 10px;
11
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
+ }
13
+
14
+ .search_input {
15
+ border: 0;
16
+ outline: none;
17
+ }
18
+
19
+ .font {
20
+ font: 15px PingFang-SC-Medium;
21
+ color: #666666;
22
+ }
23
+
24
+ .input-font {
25
+ font: 15px PingFang-SC-Medium;
26
+ color: #333333;
27
+ }
28
+
29
+ .btn-font {
30
+ font: 600 16px PingFang-SC-Bold;
31
+ color: #499EDF;
32
+ }
33
+
34
+ .btn-color {
35
+ background-color: #FFFFFF;
36
+ border-radius: 10px;
37
+ border: 1px solid #499EDF;
38
+ }
39
+
40
+ .app-text {
41
+ font-size: 12px;
42
+ }
43
+
44
+ .panel-self {
45
+ border-radius: 10px;
46
+ border: 1px solid #499EDF;
47
+ background-color: #F8F8F8;
48
+ }
49
+
50
+ .yybtn-color {
51
+ background-color: #499edf;
52
+ border-radius: 4px;
53
+ border: 1px solid #499EDF;
54
+ color: #FFFFFF;
55
+ font: 14px PingFang-SC-Bold;
56
+ }
57
+
58
+ .qxbtn-color {
59
+ background-color: #FFFFFF;
60
+ border-radius: 4px;
61
+ color: #499edf;
62
+ font: 14px PingFang-SC-Bold;
63
+ border: 1px solid #499EDF;
64
+ }
65
+
66
+ .button_shrink_top {
67
+ width: 35px;
68
+ height: 35px;
69
+ background-size: 100%;
70
+ background-image: url("../../../static/newStyle/stretch_top.png")
71
+ }
72
+
73
+ .button_shrink_bottom {
74
+ width: 35px;
75
+ height: 35px;
76
+ background-size: 100%;
77
+ background-image: url("../../../static/newStyle/stretch_bottom.png")
78
+ }
79
+
80
+ .button_shrink_left {
81
+ width: 35px;
82
+ height: 35px;
83
+ background-size: 100%;
84
+ background-image: url("../../../static/newStyle/stretch_left.png")
85
+ }
86
+
87
+ .button_shrink_right {
88
+ width: 35px;
89
+ height: 35px;
90
+ background-size: 100%;
91
+ background-image: url("../../../static/newStyle/stretch_right.png")
92
+ }
93
+ </style>
94
+ <template>
95
+ <div style="height: auto;width: 100%">
96
+ <criteria-paged :model="model" v-ref:paged>
97
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
98
+ <div partial>
99
+ <form>
100
+ <div class="row app-row">
101
+ <div class="col-xs-4">
102
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
103
+ <label class="font text-left">用户姓名:</label>
104
+ </div>
105
+ <div class="col-xs-8">
106
+ <input class="search_input input-font" v-model=model.f_user_name
107
+ condition="f_user_name like '%{}%'"/>
108
+ </div>
109
+ </div>
110
+ <div class="row app-row">
111
+ <div class="col-xs-4">
112
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
113
+ <label for="f_userinfo_code" class="font text-left">用户编号:</label>
114
+ </div>
115
+ <div class="col-xs-8">
116
+ <input id="f_userinfo_code" class="search_input input-font"
117
+ v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'"/>
118
+ </div>
119
+ </div>
120
+ <div class="row app-row">
121
+ <div class="col-xs-4">
122
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
123
+ <label class="font text-left">用户地址:</label>
124
+ </div>
125
+ <div class="col-xs-8">
126
+ <input class="search_input input-font"
127
+ v-model=model.f_address condition="f_address like '%{}%'"/>
128
+ </div>
129
+ </div>
130
+ <div class="row app-row">
131
+ <div class="col-xs-4">
132
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
133
+ <label class="font text-left">安检员:</label>
134
+ </div>
135
+ <div class="col-xs-8">
136
+ <v-select :value.sync="model.check" v-model='model.check'
137
+ :value-single="true"
138
+ class="select_list select"
139
+ :options='$parent.$parent.checkers'
140
+ placeholder='安检员'
141
+ close-on-select width="100%"></v-select>
142
+ </div>
143
+ </div>
144
+ <div class="row text-center" style="margin-top: 20px;">
145
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
146
+ @click="$parent.$parent.selfSearch">查询
147
+ </button>
148
+ <div style="float: right;margin-right: 3% " class="button_spacing"
149
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
150
+ @click="$parent.$parent.hidden()"></div>
151
+ </div>
152
+ <div style="height:30px;"></div>
153
+ </form>
154
+ </div>
155
+ </criteria>
156
+ <list :model="model" partial='list'>
157
+ <div partial>
158
+ <div class="auto app-text" style="margin-top: 5px;">
159
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
160
+ <div class="panel-body panel-self">
161
+ <div class="col-xs-12">
162
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
163
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
164
+ </div>
165
+ <div class="col-xs-12">
166
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
167
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
168
+ </div>
169
+ <div class="col-xs-12">
170
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
171
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
172
+ </div>
173
+ <div class="col-xs-12">
174
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>安检时间:</b></p>
175
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_create_time }}</p>
176
+ </div>
177
+ <div class="col-xs-12">
178
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
179
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
180
+ </div>
181
+ <div class="col-xs-12">
182
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>所属安检:</b></p>
183
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
184
+ </div>
185
+ <div class="col-xs-12">
186
+ <p class="panel-title col-xs-5 text-left font"><b>不通过原因:</b></p>
187
+ <p style="color: red" class="panel-title col-xs-7 text-left input-font">{{ row.f_approved_note }}</p>
188
+ </div>
189
+ <div class="col-xs-12">
190
+ <button type="button" name="button" class="btn btn-primary"
191
+ style="background-color:#499edf;float: right;margin-right:10px;"
192
+ @click="$parent.$parent.$parent.Handle(row)">处理
193
+ </button>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ </list>
200
+ </criteria-paged>
201
+ </div>
202
+ </template>
203
+ <script>
204
+ import Vue from 'vue'
205
+ import {HttpResetClass, PagedList} from 'vue-client'
206
+ import * as Util from '../Util'
207
+ import co from "co";
208
+ let select = function * (self) {
209
+ let http = new HttpResetClass()
210
+ http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
211
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
212
+ userid: Vue.user.id
213
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
214
+ //tag
215
+ self.checkers.push({label:'全部',value:''})
216
+ res.data.forEach((checker)=>{
217
+ self.checkers.push({label:checker.name,value:checker.name})
218
+ })
219
+ })
220
+ }
221
+ export default {
222
+ title: '安检单驳回',
223
+ data() {
224
+ return {
225
+ checkers: [],
226
+ showModal: false,
227
+ f_filialeids: '',
228
+ model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/AndroidGetcheckpaper`, 20, {
229
+ condition: 'this.condition',
230
+ f_filialeid: `'${Vue.user.orgid}'`,
231
+ f_checker_id: `'${Vue.user.id}'`
232
+ }),
233
+ criteriaShow: false,
234
+ select: {}
235
+ }
236
+ },
237
+ ready() {
238
+ this.selfSearch()
239
+ let gen = select(this)
240
+ co(gen)
241
+ },
242
+ methods: {
243
+ selfSearch() {
244
+ let condition = "1=1 "
245
+ if (this.$refs.paged.$refs.cri.model.f_user_name) {
246
+ if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
247
+ condition += " and f_user_name like '%" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
248
+ }
249
+ }
250
+ if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
251
+ if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
252
+ condition += " and f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
253
+ }
254
+ }
255
+ if (this.$refs.paged.$refs.cri.model.f_address) {
256
+ if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
257
+ condition += " and f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
258
+ }
259
+ }
260
+ if (this.$refs.paged.$refs.cri.model.check) {
261
+ if (this.$refs.paged.$refs.cri.model.check.toString().trim()) {
262
+ condition += " and f_checker_name like '%" + this.$refs.paged.$refs.cri.model.check + "%'"
263
+ }
264
+ }else{
265
+ condition += " and f_checker_name like '%" + Vue.user.name+ "%'"
266
+ }
267
+ this.model.search(condition)
268
+ },
269
+ hidden() {
270
+ this.criteriaShow = !this.criteriaShow
271
+ },
272
+ Handle(row) {
273
+ //跳转到无计划安检
274
+ if (row.f_userinfo_code) {
275
+ let http = new HttpResetClass()
276
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, {data: {condition: "f_userinfo_code= '" + row.f_userinfo_code + "'",
277
+ groupitem:'', orderitem: 'f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room', f_check_type: '',f_filialeid:'',
278
+ f_user_name: '', myCycle: '', fyCycle: '', f_user_type: '', f_sign: '', f_residential_area: '', f_address: '', f_user_state: '', f_orgids: '', f_unit: '', f_building: ''
279
+ }}).then(
280
+ (res) => {
281
+ if(res.data.length==0){
282
+ this.$showMessage('未查询到当前用户档案信息')
283
+ return
284
+ }
285
+ let info = res.data[0]
286
+ info.id = ''
287
+ info.f_state = '未检'
288
+ info.f_no_checkplan = '无计划安检'
289
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
290
+ info['f_plan_meters'] = response.data
291
+ var pardate = {
292
+ _this:this,
293
+ tittle:'安检详情',
294
+ safe:true
295
+ }
296
+ this.$dispatch('gotoson',pardate)
297
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'rejectInspecCheck'}, 'self', this.selfSearch)
298
+ })
299
+ })
300
+ }
301
+ },
302
+ reassign(row) {
303
+ this.select = row
304
+ this.showModal = true
305
+ },
306
+ manyisok() {
307
+ let sqlstr=`update t_check_paper set f_checker_reciver='${this.check}' where id='${this.select.id}'`
308
+ let http = new HttpResetClass()
309
+ http.load('POST', 'rs/logic/runSQL', {data: {sql: sqlstr}},
310
+ {resolveMsg: null, rejectMsg: '移出安检册失败'}).then(resp=>{
311
+ this.showModal = false
312
+ this.selfSearch()
313
+ }).catch(error=>{
314
+ this.$showMessage('转单失败',error)
315
+ })
316
+ },
317
+ iscancel() {
318
+ this.showModal = false
319
+ }
320
+ }
321
+ }
322
+ </script>