safecheck-client 3.0.35-26 → 3.0.35-29
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@
|
|
20
20
|
v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
|
21
21
|
<table style="width:100%;table-layout:fixed">
|
22
22
|
<tr class="safe-planfont">
|
23
|
-
<td rowspan="
|
23
|
+
<td rowspan="8"><input type="checkbox" style="pointer-events:auto"
|
24
24
|
v-show="row.plan_count == 0 || row.f_issued == '未下发'"
|
25
25
|
onClick="event.cancelBubble = true"
|
26
26
|
:checked="checkplan.check.isChecked(row.f_check_item_id)"
|
@@ -58,6 +58,18 @@
|
|
58
58
|
:title="row.f_safecheck_type">{{ row.f_safecheck_type }}
|
59
59
|
</td>
|
60
60
|
</tr>
|
61
|
+
<tr class="safe-bodyfont" v-if="row.f_share_type">
|
62
|
+
<td colspan="3">共享公司 :</td>
|
63
|
+
<td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
|
64
|
+
:title="row.f_share_type">{{ row.f_share_type }}
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr class="safe-bodyfont" v-if="row.f_share_company_name">
|
68
|
+
<td colspan="3">分公司名称 :</td>
|
69
|
+
<td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
|
70
|
+
:title="row.f_share_company_name">{{ row.f_share_company_name }}
|
71
|
+
</td>
|
72
|
+
</tr>
|
61
73
|
</table>
|
62
74
|
</div>
|
63
75
|
</div>
|
@@ -210,6 +222,13 @@
|
|
210
222
|
value-single>
|
211
223
|
</v-select>
|
212
224
|
</div>
|
225
|
+
<div class="form-group col-sm-4">
|
226
|
+
<label class="font_normal_body">任务性质:</label>
|
227
|
+
<v-select class="select select_list" :search="false" :value.sync="createPlan.f_schedule_type"
|
228
|
+
v-model="createPlan.f_schedule_type" :options='schedule_types' placeholder='请选择' close-on-select
|
229
|
+
value-single>
|
230
|
+
</v-select>
|
231
|
+
</div>
|
213
232
|
<div class="form-group col-sm-4" v-show="createPlan.isShare == '否'">
|
214
233
|
<label class="font_normal_body">部    门:</label>
|
215
234
|
<v-select class="select select_list" :search="false" :value.sync="createPlan.f_department_id"
|
@@ -233,7 +252,7 @@
|
|
233
252
|
value-single>
|
234
253
|
</v-select>
|
235
254
|
</div>
|
236
|
-
<div class="form-group col-sm-4">
|
255
|
+
<div class="form-group col-sm-4" v-if="isSeePlanShare">
|
237
256
|
<label class="font_normal_body">共享公司:</label>
|
238
257
|
<v-select class="select select_list" :value.sync="createPlan.f_share_type" v-model="createPlan.f_share_type"
|
239
258
|
:search="false" :options='isAndNot' placeholder='请选择' close-on-select value-single>
|
@@ -298,6 +317,20 @@
|
|
298
317
|
v-model="upCheckPlan.f_safecheck_type" :options='ntoway' close-on-select value-single>
|
299
318
|
</v-select>
|
300
319
|
</div>
|
320
|
+
<div class="form-group col-sm-4" v-if="isSeePlanShare">
|
321
|
+
<label class="font_normal_body">共享公司:</label>
|
322
|
+
<v-select class="select select_list" :value.sync="upCheckPlan.f_share_type" v-model="upCheckPlan.f_share_type"
|
323
|
+
:search="false" :options='isAndNot' placeholder='请选择' close-on-select value-single>
|
324
|
+
</v-select>
|
325
|
+
</div>
|
326
|
+
<div class="form-group col-sm-6" v-if="upCheckPlan.f_share_type == '是'">
|
327
|
+
<label class="font_normal_body">分公司名称:</label>
|
328
|
+
<v-select class="select select_list" :value.sync="upCheckPlan.f_share_company_name"
|
329
|
+
v-model="upCheckPlan.f_share_company_name" :search="false" :options='companyNameList'
|
330
|
+
placeholder='请选择'
|
331
|
+
close-on-select value-single>
|
332
|
+
</v-select>
|
333
|
+
</div>
|
301
334
|
</div>
|
302
335
|
</div>
|
303
336
|
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
@@ -322,7 +355,10 @@ export default {
|
|
322
355
|
totalTaskList: [],
|
323
356
|
departments: [],
|
324
357
|
companyNameList: [],
|
358
|
+
// isSeePlanShare: this.$login.r ? this.$login.r.includes("安检任务共享公司") : true,
|
359
|
+
isSeePlanShare: true,
|
325
360
|
opt: [{label: "按时间降序", value: "按时间降序"}, {label: "按时间升序", value: "按时间升序"}],
|
361
|
+
schedule_types: [{label: "民用", value: "民用"}, {label: "非民用", value: "非民用"}],
|
326
362
|
currentorder: '按时间降序',
|
327
363
|
isdelete: this.$login.r ? this.$login.r.includes("安检任务删除") : false,
|
328
364
|
checkplan: new SearchList(true),
|
@@ -342,6 +378,7 @@ export default {
|
|
342
378
|
f_plan_name: '',
|
343
379
|
f_total_task_id:'',
|
344
380
|
f_plan_year: '',
|
381
|
+
f_schedule_type:'民用',
|
345
382
|
f_department_id: '',
|
346
383
|
f_plan_month: '',
|
347
384
|
isShare: '否',
|
@@ -576,6 +613,7 @@ export default {
|
|
576
613
|
f_plan_name: '',
|
577
614
|
f_plan_year: '',
|
578
615
|
f_plan_month: '',
|
616
|
+
f_schedule_type:'民用',
|
579
617
|
isShare: '否',
|
580
618
|
f_issued: '否',
|
581
619
|
f_checker_id: null,
|
@@ -601,6 +639,10 @@ export default {
|
|
601
639
|
Vue.showMessage("请选择安检月份!")
|
602
640
|
return false
|
603
641
|
}
|
642
|
+
if (!this.createPlan.f_schedule_type) {
|
643
|
+
Vue.showMessage("请选择任务性质!")
|
644
|
+
return false
|
645
|
+
}
|
604
646
|
if (this.createPlan.isShare == "否") {
|
605
647
|
if (JSON.stringify(this.createPlan.checker) == '{}') {
|
606
648
|
Vue.showMessage("请选择安检人员!")
|
@@ -691,14 +733,16 @@ export default {
|
|
691
733
|
this.upCheckPlan.f_checker = row.f_checker ? row.f_checker : null
|
692
734
|
this.upCheckPlan.isShare = row.f_checker_id ? '否' : '是'
|
693
735
|
this.upCheckPlan.f_issued = row.f_issued
|
736
|
+
this.upCheckPlan.f_share_type = row.f_share_type
|
737
|
+
this.upCheckPlan.f_share_company_name = row.f_share_company_name
|
694
738
|
this.upCheckPlan.checker = {id: row.f_checker_id, name: row.f_checker}
|
695
739
|
this.showUpPlan = true
|
696
740
|
},
|
697
741
|
async upPlan() {
|
698
|
-
if (this.upCheckPlan.f_issued == '已下发') {
|
699
|
-
|
700
|
-
|
701
|
-
}
|
742
|
+
// if (this.upCheckPlan.f_issued == '已下发') {
|
743
|
+
// this.$showMessage("该任务已下发,无法进行修改!")
|
744
|
+
// return
|
745
|
+
// }
|
702
746
|
if (!this.upCheckPlan.f_plan_name) {
|
703
747
|
Vue.showMessage("请输入安检任务名称!")
|
704
748
|
return false
|
@@ -729,6 +773,9 @@ export default {
|
|
729
773
|
f_plan_name: this.upCheckPlan.f_plan_name,
|
730
774
|
f_plan_year: this.upCheckPlan.f_plan_year,
|
731
775
|
f_plan_month: this.upCheckPlan.f_plan_month,
|
776
|
+
f_share_type: this.upCheckPlan.f_share_type,
|
777
|
+
f_share_company_name: this.upCheckPlan.f_share_type == '否' ? '' : this.upCheckPlan.f_share_company_name,
|
778
|
+
issued:"是",
|
732
779
|
f_plan_id: this.upCheckPlan.id
|
733
780
|
}
|
734
781
|
}, {resolveMsg: null, rejectMsg: null})
|
@@ -34,6 +34,18 @@
|
|
34
34
|
>
|
35
35
|
</v-select>
|
36
36
|
</div>
|
37
|
+
<div class="form-group col-sm-1 upuserinfo_sel">
|
38
|
+
<v-select class="select select_list"
|
39
|
+
:width="'95%'"
|
40
|
+
class="select select_list"
|
41
|
+
:value.sync="model.checkBook"
|
42
|
+
v-model="model.checkBook"
|
43
|
+
:options='$parent.$parent.checkBooks'
|
44
|
+
placeholder='安 检 册'
|
45
|
+
:multiple="true"
|
46
|
+
>
|
47
|
+
</v-select>
|
48
|
+
</div>
|
37
49
|
<div class="form-group col-sm-4">
|
38
50
|
<button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">
|
39
51
|
更多条件
|
@@ -273,20 +285,20 @@
|
|
273
285
|
>
|
274
286
|
</v-select>
|
275
287
|
</div>
|
276
|
-
<div class="form-group col-sm-4"
|
277
|
-
<label class="font_normal_body">安 检 册:</label
|
278
|
-
<v-select
|
279
|
-
class="select select_list"
|
280
|
-
:value.sync="model.checkBook"
|
281
|
-
v-model="model.checkBook"
|
282
|
-
:options='$parent.$parent.checkBooks'
|
283
|
-
placeholder='请选择'
|
284
|
-
:search="false"
|
285
|
-
close-on-select
|
286
|
-
value-single
|
287
|
-
|
288
|
-
</v-select
|
289
|
-
</div
|
288
|
+
<!-- <div class="form-group col-sm-4">-->
|
289
|
+
<!-- <label class="font_normal_body">安 检 册:</label>-->
|
290
|
+
<!-- <v-select-->
|
291
|
+
<!-- class="select select_list"-->
|
292
|
+
<!-- :value.sync="model.checkBook"-->
|
293
|
+
<!-- v-model="model.checkBook"-->
|
294
|
+
<!-- :options='$parent.$parent.checkBooks'-->
|
295
|
+
<!-- placeholder='请选择'-->
|
296
|
+
<!-- :search="false"-->
|
297
|
+
<!-- close-on-select-->
|
298
|
+
<!-- value-single-->
|
299
|
+
<!-- >-->
|
300
|
+
<!-- </v-select>-->
|
301
|
+
<!-- </div>-->
|
290
302
|
<div class="form-group col-sm-4">
|
291
303
|
<label class="font_normal_body">通气起始:</label>
|
292
304
|
<datepicker
|
@@ -513,6 +525,8 @@ export default {
|
|
513
525
|
},
|
514
526
|
props: ["selectplan", "userlogin"],
|
515
527
|
ready() {
|
528
|
+
console.log('-====')
|
529
|
+
console.log(this.$login.f)
|
516
530
|
this.$refs.paged.$refs.criteria.model.f_user_state = '正常'
|
517
531
|
// this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
|
518
532
|
// this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
|
@@ -533,7 +547,7 @@ export default {
|
|
533
547
|
orderitem: 'id desc'
|
534
548
|
}
|
535
549
|
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
536
|
-
this.checkBooks.push({label: '全部', value: ''})
|
550
|
+
// this.checkBooks.push({label: '全部', value: ''})
|
537
551
|
res.data.forEach(ress => {
|
538
552
|
this.checkBooks.push({
|
539
553
|
label: ress.f_check_book_name,
|
@@ -590,13 +604,26 @@ export default {
|
|
590
604
|
args.condition += ` and ui.f_last_check_date <='${args.model.f_end_time} 23:59:59' `
|
591
605
|
}
|
592
606
|
}
|
593
|
-
|
594
|
-
if (args.model.checkBook) {
|
595
|
-
let
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
607
|
+
debugger
|
608
|
+
if (args.model.checkBook && Array.isArray(args.model.checkBook)) {
|
609
|
+
let userIds = [];
|
610
|
+
let areaIds = [];
|
611
|
+
args.model.checkBook.forEach(checkBook => {
|
612
|
+
let arr = checkBook.split('-');
|
613
|
+
if (arr[1] == '用户') {
|
614
|
+
userIds.push(arr[0]);
|
615
|
+
} else {
|
616
|
+
areaIds.push(arr[0]);
|
617
|
+
}
|
618
|
+
});
|
619
|
+
if (userIds.length > 0 && areaIds.length == 0) {
|
620
|
+
args.condition += ` and ua.f_check_book_id in (${userIds.map(id => `'${id}'`).join(',')})`;
|
621
|
+
}
|
622
|
+
if (areaIds.length > 0 && userIds.length == 0) {
|
623
|
+
args.condition += ` and area.f_check_book_id in (${areaIds.map(id => `'${id}'`).join(',')}) and ua.f_check_book_id is null`;
|
624
|
+
}
|
625
|
+
if (userIds.length > 0 && areaIds.length > 0){
|
626
|
+
args.condition += ` and (ua.f_check_book_id in (${userIds.map(id => `'${id}'`).join(',')}) or area.f_check_book_id in (${areaIds.map(id => `'${id}'`).join(',')}))`;
|
600
627
|
}
|
601
628
|
}
|
602
629
|
if (this.uploadCodeCondition) {
|
@@ -812,6 +839,12 @@ export default {
|
|
812
839
|
})
|
813
840
|
},
|
814
841
|
|
842
|
+
},
|
843
|
+
watch:{
|
844
|
+
'userlogin.orgid'(){
|
845
|
+
this.getCheckBook()
|
846
|
+
this.loadpage()
|
847
|
+
}
|
815
848
|
}
|
816
849
|
}
|
817
850
|
</script>
|
package/src/filiale/huaran/pc.js
CHANGED
@@ -16,6 +16,7 @@ let specialComp = {
|
|
16
16
|
'check-book-list': (resolve) => { require(['./pc/CheckBookList.vue'], resolve) },
|
17
17
|
'check-book-all': (resolve) => { require(['./pc/CheckBookAll.vue'], resolve) },
|
18
18
|
'check-book': (resolve) => { require(['./pc/CheckBook.vue'], resolve) },
|
19
|
+
'check-book-entry': (resolve) => { require(['./pc/CheckBookEntry.vue'], resolve) },
|
19
20
|
'check-plan-list': (resolve) => { require(['./pc/checkPlanList'], resolve) },
|
20
21
|
'check-user-list': (resolve) => { require(['./pc/checkUserList'], resolve) },
|
21
22
|
|