safecheck-client 3.0.33-3 → 3.0.33-30
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 +133 -133
- package/src/App.vue +2 -2
- package/src/components/paper/PaperList.vue +5 -4
- package/src/components/planmanage/checkUserList.vue +34 -2
- package/src/components/report/CheckPlanCountChartArea.vue +5 -0
- package/src/filiale/bayan/android/AddPlanItem.vue +5 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +4 -1
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
- package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
- package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
- package/src/filiale/fugou/pc/CheckBook.vue +303 -301
- package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
- package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
- package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
- package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +809 -651
- package/src/filiale/fugou/pc/CheckBookUser.vue +47 -44
- package/src/filiale/fugou/pc/PlanManage.vue +27 -8
- package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
- package/src/filiale/fugou/pc/checkUserList.vue +222 -42
- package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
- package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
- package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
- package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
- package/src/filiale/wensu/pc/DefectPaperNew.vue +1 -1
- package/src/filiale/wensu/pc/checkUserList.vue +8 -8
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/wuhai/pc/PaperList.vue +785 -0
- package/src/filiale/wuhai/pc.js +1 -0
- package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
- package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
- package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
- package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +114 -207
- package/src/filiale/yongzhou/pc/safeDetail.vue +446 -248
- package/src/filiale/yongzhou/pc.js +3 -0
- package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
- package/src/main.js +1 -1
@@ -4,36 +4,47 @@
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
5
5
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
6
6
|
<div class="row">
|
7
|
-
<div class="form-group col-sm-3"
|
7
|
+
<div class="form-group col-sm-3">
|
8
8
|
<label class="font_normal_body">客户编号</label>
|
9
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
9
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
10
|
+
placeholder='客户编号'
|
10
11
|
condition="f_userinfo_code = '{}'" @keyup.enter="search()">
|
11
12
|
</div>
|
12
|
-
<div class="form-group col-sm-2 button-range"
|
13
|
-
<button class="button_search" style="margin-right: 10px"
|
13
|
+
<div class="form-group col-sm-2 button-range">
|
14
|
+
<button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
|
14
15
|
|
15
16
|
</div>
|
16
17
|
</div>
|
17
18
|
</div>
|
18
19
|
</criteria>
|
19
|
-
<data-grid :model="model" class="table_sy"
|
20
|
-
<template partial='head'
|
20
|
+
<data-grid :model="model" class="table_sy" partial='list' v-ref:grid>
|
21
|
+
<template partial='head'>
|
21
22
|
<tr>
|
22
|
-
<th
|
23
|
-
|
24
|
-
|
25
|
-
<th
|
26
|
-
|
23
|
+
<th>
|
24
|
+
<nobr>序号</nobr>
|
25
|
+
</th>
|
26
|
+
<th>
|
27
|
+
<nobr>用户编号</nobr>
|
28
|
+
</th>
|
29
|
+
<th>
|
30
|
+
<nobr>用户姓名</nobr>
|
31
|
+
</th>
|
32
|
+
<th>
|
33
|
+
<nobr>用户电话</nobr>
|
34
|
+
</th>
|
35
|
+
<th>
|
36
|
+
<nobr>用户地址</nobr>
|
37
|
+
</th>
|
27
38
|
|
28
39
|
</tr>
|
29
40
|
</template>
|
30
|
-
<template partial='body'
|
31
|
-
<tr
|
32
|
-
<td style="text-align:center;">{{$index+1}}</td>
|
33
|
-
|
34
|
-
<td style="text-align:center">{{row.f_user_name}}</td>
|
35
|
-
<td style="text-align:center">{{row.f_user_phone}}</td>
|
36
|
-
<td style="text-align:center">{{row.f_address}}</td>
|
41
|
+
<template partial='body'>
|
42
|
+
<tr>
|
43
|
+
<td style="text-align:center;">{{ $index + 1 }}</td>
|
44
|
+
<td style="text-align:center">{{ row.f_userinfo_code }}</td>
|
45
|
+
<td style="text-align:center">{{ row.f_user_name }}</td>
|
46
|
+
<td style="text-align:center">{{ row.f_user_phone }}</td>
|
47
|
+
<td style="text-align:center">{{ row.f_address }}</td>
|
37
48
|
</tr>
|
38
49
|
</template>
|
39
50
|
<template partial='foot'></template>
|
@@ -48,49 +59,41 @@ import {PagedList} from 'vue-client'
|
|
48
59
|
export default {
|
49
60
|
title: '安检记录列表',
|
50
61
|
props: ['row'],
|
51
|
-
data
|
62
|
+
data() {
|
52
63
|
return {
|
53
64
|
rowdata: this.row,
|
54
|
-
model: new PagedList('rs/sql/
|
65
|
+
model: new PagedList('rs/sql/safe_singleTable_OrderBy', 50,
|
66
|
+
{
|
67
|
+
items: '"tua.f_address,tui.f_userinfo_code,tui.f_user_name,tui.f_user_phone"',
|
68
|
+
tablename: '"t_user_address tua left join t_userinfo tui on tua.f_userinfo_id = tui.f_userinfo_id"',
|
69
|
+
orderitem: '"tua.id desc"'
|
70
|
+
}
|
71
|
+
)
|
55
72
|
}
|
56
73
|
},
|
57
|
-
ready(){
|
58
|
-
if(this.row){
|
59
|
-
let condition=''
|
60
|
-
|
61
|
-
this.model.url = 'rs/sql/getUserByCheckBook'
|
62
|
-
condition = `ta.f_check_book_id =${this.row.f_check_book_id} and ta.id=${this.row.id}`
|
63
|
-
}else{
|
64
|
-
this.model.url = 'rs/sql/getUserByCheckBookCompany'
|
65
|
-
condition = `tc.f_check_book_id =${this.row.f_check_book_id} and tc.id=${this.row.id}`
|
66
|
-
}
|
74
|
+
ready() {
|
75
|
+
if (this.row) {
|
76
|
+
let condition = ''
|
77
|
+
condition = `tua.f_check_book_id =${this.row.id}`
|
67
78
|
this.model.search(condition)
|
68
79
|
//只显示用户页面
|
69
|
-
this.row.f_check_book_type='用户'
|
80
|
+
this.row.f_check_book_type = '用户'
|
70
81
|
}
|
71
82
|
},
|
72
83
|
watch: {
|
73
|
-
'row'
|
84
|
+
'row'(val) {
|
74
85
|
if (val) {
|
75
86
|
this.rowdata = val
|
76
|
-
let condition=''
|
77
|
-
|
78
|
-
condition = `ta.f_check_book_id =${val.f_check_book_id} and ta.id=${val.id}`
|
79
|
-
}else{
|
80
|
-
condition = `tc.f_check_book_id =${val.f_check_book_id} and tc.id=${val.id}`
|
81
|
-
}
|
87
|
+
let condition = ''
|
88
|
+
condition = `tua.f_check_book_id =${val.id} `
|
82
89
|
this.model.search(condition)
|
83
90
|
}
|
84
91
|
}
|
85
92
|
},
|
86
93
|
methods: {
|
87
|
-
selfSearch
|
94
|
+
selfSearch(args) {
|
88
95
|
if (this.rowdata.id) {
|
89
|
-
|
90
|
-
args.condition += `and ta.f_check_book_id =${this.rowdata.f_check_book_id} and ta.id=${this.rowdata.id}`
|
91
|
-
}else{
|
92
|
-
args.condition += `and tc.f_check_book_id =${this.rowdata.f_check_book_id} and tc.id=${this.rowdata.id}`
|
93
|
-
}
|
96
|
+
args.condition += `and tua.f_check_book_id =${this.rowdata.id}`
|
94
97
|
this.model.search(args.condition)
|
95
98
|
} else {
|
96
99
|
this.$showMessage('请选择片区')
|
@@ -27,7 +27,7 @@
|
|
27
27
|
v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
|
28
28
|
<table style="width:100%;table-layout:fixed">
|
29
29
|
<tr class="safe-planfont">
|
30
|
-
<td rowspan="
|
30
|
+
<td rowspan="7"><input type="checkbox" style="pointer-events:auto"
|
31
31
|
v-show="row.plan_count==0 || row.f_issued=='未下发'"
|
32
32
|
onClick="event.cancelBubble = true"
|
33
33
|
:checked="checkplan.check.isChecked(row.f_check_item_id)"
|
@@ -66,7 +66,7 @@
|
|
66
66
|
</td>
|
67
67
|
</tr>
|
68
68
|
<tr class="safe-bodyfont" v-if="row.f_safecheck_type">
|
69
|
-
<td >
|
69
|
+
<td colspan="8">
|
70
70
|
<input type="button" style="pointer-events:auto"
|
71
71
|
@click="showPlanHistory(row)"
|
72
72
|
onClick="event.cancelBubble = true"/>变更记录
|
@@ -139,18 +139,20 @@
|
|
139
139
|
<label class="font_normal_body">开始时间</label>
|
140
140
|
<datepicker
|
141
141
|
:value.sync="planCondition.f_start_time"
|
142
|
+
style="width: 60%;margin-bottom: 8px"
|
142
143
|
:format="'yyyy-MM-dd HH:mm:ss'"
|
143
144
|
v-model="planCondition.f_start_time"
|
144
|
-
:show-reset-button="reset" placeholder="请输入开始时间"
|
145
|
+
:show-reset-button="reset" placeholder="请输入开始时间">
|
145
146
|
</datepicker>
|
146
147
|
</div>
|
147
148
|
<div class="form-group col-sm-4">
|
148
149
|
<label class="font_normal_body">结束时间:</label>
|
149
150
|
<datepicker
|
150
151
|
:value.sync="planCondition.f_end_time"
|
152
|
+
style="width: 60%;margin-bottom: 8px"
|
151
153
|
:format="'yyyy-MM-dd HH:mm:ss'"
|
152
154
|
v-model="planCondition.f_end_time"
|
153
|
-
:show-reset-button="reset" placeholder="请输入结束时间"
|
155
|
+
:show-reset-button="reset" placeholder="请输入结束时间">
|
154
156
|
</datepicker>
|
155
157
|
</div>
|
156
158
|
<div class="form-group col-sm-4">
|
@@ -231,6 +233,21 @@
|
|
231
233
|
>
|
232
234
|
</v-select>
|
233
235
|
</div>
|
236
|
+
<div class="form-group col-sm-4">
|
237
|
+
<label class="font_normal_body">计划类型:</label>
|
238
|
+
<v-select
|
239
|
+
class="select select_list"
|
240
|
+
:value.sync="planCondition.f_plan_type"
|
241
|
+
v-model="planCondition.f_plan_type"
|
242
|
+
@change="setProperty('checkplan','f_plan_type',planCondition.f_plan_type)"
|
243
|
+
:search="false"
|
244
|
+
:options='planType'
|
245
|
+
placeholder='请选择'
|
246
|
+
close-on-select
|
247
|
+
value-single
|
248
|
+
>
|
249
|
+
</v-select>
|
250
|
+
</div>
|
234
251
|
</div>
|
235
252
|
</div>
|
236
253
|
<div slot="modal-footer" class="modal-footer" style="text-align: center">
|
@@ -397,7 +414,7 @@
|
|
397
414
|
value-single>
|
398
415
|
</v-select>
|
399
416
|
</div>
|
400
|
-
<div class="form-group col-sm-4"
|
417
|
+
<div class="form-group col-sm-4" >
|
401
418
|
<label class="font_normal_body">结束时间:</label>
|
402
419
|
<datepicker
|
403
420
|
:value.sync="upCheckPlan.f_end_time"
|
@@ -776,7 +793,8 @@ export default {
|
|
776
793
|
"isAndNot": "f_checker {}",
|
777
794
|
"safechecktype": "f_safecheck_type='{}'",
|
778
795
|
"issude": "f_issued = '{}'",
|
779
|
-
"f_create_operator": "f_create_operator like '%{}%'"
|
796
|
+
"f_create_operator": "f_create_operator like '%{}%'",
|
797
|
+
"f_plan_type": "f_plan_type = '{}'"
|
780
798
|
},
|
781
799
|
{
|
782
800
|
orderitem: fieldValue,
|
@@ -807,10 +825,10 @@ export default {
|
|
807
825
|
this.showUpPlan = true
|
808
826
|
},
|
809
827
|
async upPlan() {
|
810
|
-
if (this.upCheckPlan.f_issued == '已下发') {
|
828
|
+
/*if (this.upCheckPlan.f_issued == '已下发') {
|
811
829
|
this.$showMessage("该计划已下发,无法进行修改!")
|
812
830
|
return
|
813
|
-
}
|
831
|
+
}*/
|
814
832
|
if (!this.upCheckPlan.f_plan_name) {
|
815
833
|
Vue.showMessage("请输入安检计划名称!")
|
816
834
|
return false
|
@@ -849,6 +867,7 @@ export default {
|
|
849
867
|
f_end_time: this.upCheckPlan.f_end_time,
|
850
868
|
f_operetiom_name:this.upCheckPlan.f_operetiom_name,
|
851
869
|
f_update_message:this.upCheckPlan.f_update_message,
|
870
|
+
issued: '是' // 修改已下发计划
|
852
871
|
}
|
853
872
|
}, {resolveMsg: null, rejectMsg: null})
|
854
873
|
if (res.data.code == 200) {
|