safecheck-client 3.0.34-4 → 3.0.34-43
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/docs/FormPrint.md +18 -18
- package/docs/GridTree.md +47 -47
- package/docs/PrintFile.md +38 -38
- package/docs/tree.md +40 -40
- package/package.json +1 -1
- package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
- package/src/assets/123.png +0 -0
- package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
- package/src/components/LoadData.vue +62 -0
- package/src/components/android/AddGas.vue +147 -147
- package/src/components/android/AndroidDefectDeal.vue +1 -0
- package/src/components/android/AreaPlan.vue +566 -572
- package/src/components/android/CheckerMonthly.vue +84 -84
- package/src/components/android/LcheckUnplan.vue +108 -108
- package/src/components/android/PaperFeedback.vue +1 -1
- package/src/components/android/PaperFeedbackTemp.vue +1 -1
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
- package/src/components/android/QRCode/QRCodePage.vue +212 -0
- package/src/components/android/SafecheckDevices.vue +1 -1
- package/src/components/android/SafecheckDevicesTemp.vue +1 -1
- package/src/components/android/SafecheckOrderV.vue +2809 -2809
- package/src/components/android/SwitchValve.vue +323 -323
- package/src/components/android/examples/SafeListExamples.vue +96 -0
- package/src/components/android/examples/UserExamples.vue +126 -0
- package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
- package/src/components/checkerphonestate/Checker.vue +32 -32
- package/src/components/checkerphonestate/CheckerState.vue +97 -97
- package/src/components/defects/AddDefectModal.vue +120 -120
- package/src/components/defects/AddDevice.vue +95 -95
- package/src/components/defects/DevicesSeting.vue +106 -106
- package/src/components/metterfiles/AddUserfiles.vue +246 -246
- package/src/components/metterfiles/MetterFiles.vue +104 -104
- package/src/components/notice/NoticeQuery.vue +76 -76
- package/src/components/paper/RepairVerifyForm.vue +76 -76
- package/src/components/phonestate/DailyTraffic.vue +57 -57
- package/src/components/phonestate/LastKnownState.vue +74 -74
- package/src/components/task/RepairAnnual.vue +79 -79
- package/src/components/task/RepairAnnualDetail.vue +49 -49
- package/src/components/task/RepairMonthly.vue +91 -91
- package/src/components/task/TaskAnnual.vue +77 -77
- package/src/components/task/TaskAnnualDetail.vue +47 -47
- package/src/components/task/TaskMonthly.vue +89 -89
- package/src/components/userfile/UserfileChange.vue +277 -277
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2798 -0
- package/src/filiale/baiyin/android.js +1 -0
- package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
- package/src/filiale/baiyin/pc.js +21 -21
- package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
- package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/bayan/android/SafecheckOrderV.vue +52 -29
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
- package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
- package/src/filiale/huaran/android.js +12 -0
- package/src/filiale/huaran/pc/CheckBook.vue +313 -0
- package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
- package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
- package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
- package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
- package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
- package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
- package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
- package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
- package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
- package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
- package/src/filiale/huaran/pc/PaperList.vue +822 -0
- package/src/filiale/huaran/pc/PlanManage.vue +887 -0
- package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
- package/src/filiale/huaran/pc/checkUserList.vue +867 -0
- package/src/filiale/huaran/pc.js +27 -0
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
- package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
- package/src/filiale/jiaxian/android/SafecheckDevices.vue +4 -4
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2811 -0
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/jiaxian/android.js +4 -0
- package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
- package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
- package/src/filiale/ruihua/android.js +11 -0
- package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/tongchuan/android/Select.vue +421 -0
- package/src/filiale/tongchuan/android.js +1 -0
- package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
- package/src/filiale/tongchuan/utils/EventListener.js +29 -0
- package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
- package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
- package/src/filiale/weinan/android/SafecheckOrderV.vue +1 -1
- package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +57 -59
- package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
- package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
- package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
- package/src/filiale/weinan/pc/checkUserList.vue +34 -113
- package/src/filiale/weinan/pc.js +47 -46
- package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1192 -1200
- package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +472 -480
- package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +2 -2
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +473 -481
- package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +9 -7
- package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
- package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
- package/src/safecheck-android.js +4 -0
@@ -1,120 +1,120 @@
|
|
1
|
-
<template>
|
2
|
-
<modal :show.sync="$parent.showModal" v-ref:modal>
|
3
|
-
<div slot="modal-header" class="modal-header">
|
4
|
-
<h4 class="modal-title">
|
5
|
-
添加隐患
|
6
|
-
</h4>
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<div slot="modal-body" class="modal-body">
|
10
|
-
<div class="row auto">
|
11
|
-
<validator name='v'>
|
12
|
-
|
13
|
-
<div class="form-group">
|
14
|
-
<label for="f_defect" class=" col-sm-3 control-label">隐患:</label>
|
15
|
-
<div class="col-sm-3">
|
16
|
-
<input class="form-control" type="text" v-model="model.f_defect" placeholder='隐患' v-validate:f_defect='{ required: true }'>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<label for="f_defect_level" class="col-sm-3 control-label">隐患级别:</label>
|
20
|
-
<div class="col-sm-3">
|
21
|
-
<input class="form-control" type="text" v-model="model.f_defect_level" placeholder='例如:A1' v-validate:f_defect_level='{ required: true }'>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="form-group">
|
25
|
-
<label for="f_defect_field" class=" col-sm-3 control-label">隐患字段:</label>
|
26
|
-
<div class="col-sm-3">
|
27
|
-
<input class="form-control" type="text" v-model="model.f_defect_field" placeholder='例如:f_defect_field' v-validate:f_defect_field='{ required: true }'>
|
28
|
-
</div>
|
29
|
-
|
30
|
-
<label for="f_defect_path" class="col-sm-3 control-label">隐患照片路径字段:</label>
|
31
|
-
<div class="col-sm-3">
|
32
|
-
<input class="form-control" type="text" v-model="model.f_defect_path" placeholder='例如:f_defect_path' v-validate:f_defect_path='{ required: true }'>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
</div>
|
36
|
-
<div class="form-group">
|
37
|
-
<label class=" col-sm-3 control-label">设备类别:</label>
|
38
|
-
<div class="col-sm-3">
|
39
|
-
<v-select id="f_state" :value.sync="model.f_device_type"
|
40
|
-
:options='devices'
|
41
|
-
close-on-select clear-button></v-select>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<label class="col-sm-3 control-label">设备:</label>
|
45
|
-
<div class="col-sm-3">
|
46
|
-
<input class="form-control" type="text" v-model="model.f_device_id" placeholder='设备' >
|
47
|
-
</div>
|
48
|
-
|
49
|
-
</div>
|
50
|
-
<div class="form-group">
|
51
|
-
<label for="f_remark" class=" col-sm-3 control-label">备注:</label>
|
52
|
-
<div class="col-sm-3">
|
53
|
-
<input class="form-control" type="text" v-model="model.f_remark" placeholder='备注'>
|
54
|
-
</div>
|
55
|
-
</div>
|
56
|
-
</validator>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
<div slot="modal-footer" class="modal-footer">
|
60
|
-
<button type="button" class="btn btn-primary" @click="addDefect" >保存</button>
|
61
|
-
<button type="button" class="btn btn-default" @click="$parent.undo()">取消</button>
|
62
|
-
</div>
|
63
|
-
</modal>
|
64
|
-
</template>
|
65
|
-
|
66
|
-
<script>
|
67
|
-
import Vue from 'vue'
|
68
|
-
|
69
|
-
|
70
|
-
export default {
|
71
|
-
title: '添加隐患信息',
|
72
|
-
props:['showModal'],
|
73
|
-
data() {
|
74
|
-
return {
|
75
|
-
model:{},
|
76
|
-
devices:[]
|
77
|
-
}
|
78
|
-
},
|
79
|
-
methods: {
|
80
|
-
addDefect() {
|
81
|
-
let errorring = true
|
82
|
-
if(this.model.f_defect_field)
|
83
|
-
if(this.model.f_defect_field.endsWith("_path")){
|
84
|
-
errorring = false
|
85
|
-
alert("隐患字段不能以 _path结尾")
|
86
|
-
}
|
87
|
-
if(errorring) {
|
88
|
-
if (this.model.f_defect_path) {
|
89
|
-
if (!this.model.f_defect_path.endsWith("_path")) {
|
90
|
-
errorring = false
|
91
|
-
alert("图片路径字段必须以 _path结尾")
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
if(errorring) {
|
96
|
-
this.$resetpost(`rs/logic/添加总隐患信息`,
|
97
|
-
{data: this.model},
|
98
|
-
{resolveMsg: null, rejectMsg: null}).then(
|
99
|
-
(response) => {
|
100
|
-
window.alert('添加隐患信息成功')
|
101
|
-
}
|
102
|
-
).catch(
|
103
|
-
(response) => {
|
104
|
-
window.alert('添加隐患信息失败')
|
105
|
-
}
|
106
|
-
)
|
107
|
-
}
|
108
|
-
this.$parent.undo()
|
109
|
-
},
|
110
|
-
},
|
111
|
-
ready(){
|
112
|
-
let that = this
|
113
|
-
this.$resetpost("rs/logic/获取安检设备",{condition: '1 =1'}).then((respanse) => {
|
114
|
-
respanse.data.data.forEach((item)=>{
|
115
|
-
that.devices.push({label:item.f_device_name,value:item.f_device_name})
|
116
|
-
})
|
117
|
-
})
|
118
|
-
}
|
119
|
-
}
|
120
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<modal :show.sync="$parent.showModal" v-ref:modal>
|
3
|
+
<div slot="modal-header" class="modal-header">
|
4
|
+
<h4 class="modal-title">
|
5
|
+
添加隐患
|
6
|
+
</h4>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div slot="modal-body" class="modal-body">
|
10
|
+
<div class="row auto">
|
11
|
+
<validator name='v'>
|
12
|
+
|
13
|
+
<div class="form-group">
|
14
|
+
<label for="f_defect" class=" col-sm-3 control-label">隐患:</label>
|
15
|
+
<div class="col-sm-3">
|
16
|
+
<input class="form-control" type="text" v-model="model.f_defect" placeholder='隐患' v-validate:f_defect='{ required: true }'>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<label for="f_defect_level" class="col-sm-3 control-label">隐患级别:</label>
|
20
|
+
<div class="col-sm-3">
|
21
|
+
<input class="form-control" type="text" v-model="model.f_defect_level" placeholder='例如:A1' v-validate:f_defect_level='{ required: true }'>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="form-group">
|
25
|
+
<label for="f_defect_field" class=" col-sm-3 control-label">隐患字段:</label>
|
26
|
+
<div class="col-sm-3">
|
27
|
+
<input class="form-control" type="text" v-model="model.f_defect_field" placeholder='例如:f_defect_field' v-validate:f_defect_field='{ required: true }'>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<label for="f_defect_path" class="col-sm-3 control-label">隐患照片路径字段:</label>
|
31
|
+
<div class="col-sm-3">
|
32
|
+
<input class="form-control" type="text" v-model="model.f_defect_path" placeholder='例如:f_defect_path' v-validate:f_defect_path='{ required: true }'>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
</div>
|
36
|
+
<div class="form-group">
|
37
|
+
<label class=" col-sm-3 control-label">设备类别:</label>
|
38
|
+
<div class="col-sm-3">
|
39
|
+
<v-select id="f_state" :value.sync="model.f_device_type"
|
40
|
+
:options='devices'
|
41
|
+
close-on-select clear-button></v-select>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<label class="col-sm-3 control-label">设备:</label>
|
45
|
+
<div class="col-sm-3">
|
46
|
+
<input class="form-control" type="text" v-model="model.f_device_id" placeholder='设备' >
|
47
|
+
</div>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
<div class="form-group">
|
51
|
+
<label for="f_remark" class=" col-sm-3 control-label">备注:</label>
|
52
|
+
<div class="col-sm-3">
|
53
|
+
<input class="form-control" type="text" v-model="model.f_remark" placeholder='备注'>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</validator>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
<div slot="modal-footer" class="modal-footer">
|
60
|
+
<button type="button" class="btn btn-primary" @click="addDefect" >保存</button>
|
61
|
+
<button type="button" class="btn btn-default" @click="$parent.undo()">取消</button>
|
62
|
+
</div>
|
63
|
+
</modal>
|
64
|
+
</template>
|
65
|
+
|
66
|
+
<script>
|
67
|
+
import Vue from 'vue'
|
68
|
+
|
69
|
+
|
70
|
+
export default {
|
71
|
+
title: '添加隐患信息',
|
72
|
+
props:['showModal'],
|
73
|
+
data() {
|
74
|
+
return {
|
75
|
+
model:{},
|
76
|
+
devices:[]
|
77
|
+
}
|
78
|
+
},
|
79
|
+
methods: {
|
80
|
+
addDefect() {
|
81
|
+
let errorring = true
|
82
|
+
if(this.model.f_defect_field)
|
83
|
+
if(this.model.f_defect_field.endsWith("_path")){
|
84
|
+
errorring = false
|
85
|
+
alert("隐患字段不能以 _path结尾")
|
86
|
+
}
|
87
|
+
if(errorring) {
|
88
|
+
if (this.model.f_defect_path) {
|
89
|
+
if (!this.model.f_defect_path.endsWith("_path")) {
|
90
|
+
errorring = false
|
91
|
+
alert("图片路径字段必须以 _path结尾")
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
if(errorring) {
|
96
|
+
this.$resetpost(`rs/logic/添加总隐患信息`,
|
97
|
+
{data: this.model},
|
98
|
+
{resolveMsg: null, rejectMsg: null}).then(
|
99
|
+
(response) => {
|
100
|
+
window.alert('添加隐患信息成功')
|
101
|
+
}
|
102
|
+
).catch(
|
103
|
+
(response) => {
|
104
|
+
window.alert('添加隐患信息失败')
|
105
|
+
}
|
106
|
+
)
|
107
|
+
}
|
108
|
+
this.$parent.undo()
|
109
|
+
},
|
110
|
+
},
|
111
|
+
ready(){
|
112
|
+
let that = this
|
113
|
+
this.$resetpost("rs/logic/获取安检设备",{condition: '1 =1'}).then((respanse) => {
|
114
|
+
respanse.data.data.forEach((item)=>{
|
115
|
+
that.devices.push({label:item.f_device_name,value:item.f_device_name})
|
116
|
+
})
|
117
|
+
})
|
118
|
+
}
|
119
|
+
}
|
120
|
+
</script>
|
@@ -1,95 +1,95 @@
|
|
1
|
-
<template>
|
2
|
-
<modal :show.sync="$parent.showModal" v-ref:modal>
|
3
|
-
<div slot="modal-header" class="modal-header">
|
4
|
-
<h4 class="modal-title">
|
5
|
-
添加安检设备
|
6
|
-
</h4>
|
7
|
-
</div>
|
8
|
-
<div slot="modal-body" class="modal-body">
|
9
|
-
<div class="row auto">
|
10
|
-
<div class="form-group">
|
11
|
-
<label class=" col-sm-3 control-label">设备名称:</label>
|
12
|
-
<div class="col-sm-3">
|
13
|
-
<input class="form-control" type="text" v-model="model.f_defect" placeholder='设备名称'>
|
14
|
-
</div>
|
15
|
-
<label class="col-sm-3 control-label">用户类型:</label>
|
16
|
-
<div class="col-sm-3">
|
17
|
-
<v-select id="f_user_type" :value.sync="model.f_user_type"
|
18
|
-
:options='user_type'
|
19
|
-
close-on-select clear-button></v-select>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
<div class="form-group">
|
23
|
-
<label class=" col-sm-3 control-label">设备保存字段:</label>
|
24
|
-
<div class="col-sm-3">
|
25
|
-
<input class="form-control" type="text" v-model="model.f_device_field" placeholder='例如:f_device_field'>
|
26
|
-
</div>
|
27
|
-
|
28
|
-
<label class="col-sm-3 control-label">是否必检:</label>
|
29
|
-
<div class="col-sm-3">
|
30
|
-
<input class="form-control" type="text" v-model="model.f_write_must" placeholder='是否必检'>
|
31
|
-
</div>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
<div slot="modal-footer" class="modal-footer">
|
36
|
-
<button type="button" class="btn btn-primary" @click="addDevice" >保存</button>
|
37
|
-
<button type="button" class="btn btn-default" @click="$parent.undo()">取消</button>
|
38
|
-
</div>
|
39
|
-
</modal>
|
40
|
-
</template>
|
41
|
-
|
42
|
-
<script>
|
43
|
-
import Vue from 'vue'
|
44
|
-
|
45
|
-
|
46
|
-
export default {
|
47
|
-
title: '添加设备信息',
|
48
|
-
data() {
|
49
|
-
return {
|
50
|
-
model:{},
|
51
|
-
devices:[]
|
52
|
-
}
|
53
|
-
},
|
54
|
-
methods: {
|
55
|
-
addDevice() {
|
56
|
-
let errorring = true
|
57
|
-
if(this.model.f_defect_field)
|
58
|
-
if(this.model.f_defect_field.endsWith("_path")){
|
59
|
-
errorring = false
|
60
|
-
alert("隐患字段不能以 _path结尾")
|
61
|
-
}
|
62
|
-
if(errorring) {
|
63
|
-
if (this.model.f_defect_path) {
|
64
|
-
if (!this.model.f_defect_path.endsWith("_path")) {
|
65
|
-
errorring = false
|
66
|
-
alert("图片路径字段必须以 _path结尾")
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
if(errorring) {
|
71
|
-
this.$resetpost('rs/entity/t_device_info',
|
72
|
-
{data: this.model},
|
73
|
-
{resolveMsg: null, rejectMsg: null}).then(
|
74
|
-
(response) => {
|
75
|
-
window.alert('添加隐患信息成功')
|
76
|
-
}
|
77
|
-
).catch(
|
78
|
-
(response) => {
|
79
|
-
window.alert('添加隐患信息失败')
|
80
|
-
}
|
81
|
-
)
|
82
|
-
}
|
83
|
-
this.$parent.undo()
|
84
|
-
},
|
85
|
-
},
|
86
|
-
ready(){
|
87
|
-
let that = this
|
88
|
-
this.$resetpost("rs/logic/获取安检设备",{condition: '1 =1'}).then((respanse) => {
|
89
|
-
respanse.data.data.forEach((item)=>{
|
90
|
-
that.devices.push({label:item.f_device_name,value:item.f_device_name})
|
91
|
-
})
|
92
|
-
})
|
93
|
-
}
|
94
|
-
}
|
95
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<modal :show.sync="$parent.showModal" v-ref:modal>
|
3
|
+
<div slot="modal-header" class="modal-header">
|
4
|
+
<h4 class="modal-title">
|
5
|
+
添加安检设备
|
6
|
+
</h4>
|
7
|
+
</div>
|
8
|
+
<div slot="modal-body" class="modal-body">
|
9
|
+
<div class="row auto">
|
10
|
+
<div class="form-group">
|
11
|
+
<label class=" col-sm-3 control-label">设备名称:</label>
|
12
|
+
<div class="col-sm-3">
|
13
|
+
<input class="form-control" type="text" v-model="model.f_defect" placeholder='设备名称'>
|
14
|
+
</div>
|
15
|
+
<label class="col-sm-3 control-label">用户类型:</label>
|
16
|
+
<div class="col-sm-3">
|
17
|
+
<v-select id="f_user_type" :value.sync="model.f_user_type"
|
18
|
+
:options='user_type'
|
19
|
+
close-on-select clear-button></v-select>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<div class="form-group">
|
23
|
+
<label class=" col-sm-3 control-label">设备保存字段:</label>
|
24
|
+
<div class="col-sm-3">
|
25
|
+
<input class="form-control" type="text" v-model="model.f_device_field" placeholder='例如:f_device_field'>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<label class="col-sm-3 control-label">是否必检:</label>
|
29
|
+
<div class="col-sm-3">
|
30
|
+
<input class="form-control" type="text" v-model="model.f_write_must" placeholder='是否必检'>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div slot="modal-footer" class="modal-footer">
|
36
|
+
<button type="button" class="btn btn-primary" @click="addDevice" >保存</button>
|
37
|
+
<button type="button" class="btn btn-default" @click="$parent.undo()">取消</button>
|
38
|
+
</div>
|
39
|
+
</modal>
|
40
|
+
</template>
|
41
|
+
|
42
|
+
<script>
|
43
|
+
import Vue from 'vue'
|
44
|
+
|
45
|
+
|
46
|
+
export default {
|
47
|
+
title: '添加设备信息',
|
48
|
+
data() {
|
49
|
+
return {
|
50
|
+
model:{},
|
51
|
+
devices:[]
|
52
|
+
}
|
53
|
+
},
|
54
|
+
methods: {
|
55
|
+
addDevice() {
|
56
|
+
let errorring = true
|
57
|
+
if(this.model.f_defect_field)
|
58
|
+
if(this.model.f_defect_field.endsWith("_path")){
|
59
|
+
errorring = false
|
60
|
+
alert("隐患字段不能以 _path结尾")
|
61
|
+
}
|
62
|
+
if(errorring) {
|
63
|
+
if (this.model.f_defect_path) {
|
64
|
+
if (!this.model.f_defect_path.endsWith("_path")) {
|
65
|
+
errorring = false
|
66
|
+
alert("图片路径字段必须以 _path结尾")
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
if(errorring) {
|
71
|
+
this.$resetpost('rs/entity/t_device_info',
|
72
|
+
{data: this.model},
|
73
|
+
{resolveMsg: null, rejectMsg: null}).then(
|
74
|
+
(response) => {
|
75
|
+
window.alert('添加隐患信息成功')
|
76
|
+
}
|
77
|
+
).catch(
|
78
|
+
(response) => {
|
79
|
+
window.alert('添加隐患信息失败')
|
80
|
+
}
|
81
|
+
)
|
82
|
+
}
|
83
|
+
this.$parent.undo()
|
84
|
+
},
|
85
|
+
},
|
86
|
+
ready(){
|
87
|
+
let that = this
|
88
|
+
this.$resetpost("rs/logic/获取安检设备",{condition: '1 =1'}).then((respanse) => {
|
89
|
+
respanse.data.data.forEach((item)=>{
|
90
|
+
that.devices.push({label:item.f_device_name,value:item.f_device_name})
|
91
|
+
})
|
92
|
+
})
|
93
|
+
}
|
94
|
+
}
|
95
|
+
</script>
|
@@ -1,106 +1,106 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="over col-md-6">
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
4
|
-
<criteria partial='criteria' @condition-changed='search'>
|
5
|
-
<form class="form-inline" partial>
|
6
|
-
<div class="form-group">
|
7
|
-
<label class="control-label">设备</label>
|
8
|
-
<v-select id="f_device_name" :value.sync="$parent.$parent.model.f_device_name"
|
9
|
-
condition="f_device_name={}"
|
10
|
-
placeholder="设备" :options='$parent.$parent.devices_list' close-on-select clear-button> </v-select>
|
11
|
-
</div>
|
12
|
-
<div class="form-group">
|
13
|
-
<label class="control-label">用户类型</label>
|
14
|
-
<v-select id="f_user_type" :value.sync="$parent.$parent.model.f_user_type" placeholder='用户类型'
|
15
|
-
condition="f_user_type={}"
|
16
|
-
:options='$parent.$parent.user_types' close-on-select clear-button> </v-select>
|
17
|
-
</div>
|
18
|
-
<div class="form-group">
|
19
|
-
<label class="control-label">是否必检</label>
|
20
|
-
<v-select id="f_write_must" :value.sync="$parent.$parent.f_write_must" placeholder='是否必检'
|
21
|
-
condition="f_write_must={}"
|
22
|
-
:options='$parent.$parent.write_must' close-on-select clear-button> </v-select>
|
23
|
-
</div>
|
24
|
-
<div class="form-group">
|
25
|
-
<button type="button" class="btn btn-success width-80" @click="search()">查询</button>
|
26
|
-
<button type="button" class="btn btn-default width-80" @click="showMo()">新增</button>
|
27
|
-
</div>
|
28
|
-
</form>
|
29
|
-
</criteria>
|
30
|
-
<data-grid :model="model" partial='list' v-ref:grid>
|
31
|
-
<template partial='head'>
|
32
|
-
<tr>
|
33
|
-
<th>设备</th>
|
34
|
-
<th>用户类型</th>
|
35
|
-
<th>保存字段</th>
|
36
|
-
<th>是否必检</th>
|
37
|
-
</tr>
|
38
|
-
</template>
|
39
|
-
<template partial='body'>
|
40
|
-
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_device_name}}</td>
|
41
|
-
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_user_type}}</td>
|
42
|
-
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_device_field}}</td>
|
43
|
-
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_write_must}}</td>
|
44
|
-
</template>
|
45
|
-
</data-grid>
|
46
|
-
</criteria-paged>
|
47
|
-
</div>
|
48
|
-
<div class="span-row over col-md-6">
|
49
|
-
<devices-and-item ></devices-and-item>
|
50
|
-
</div>
|
51
|
-
<add-devices></add-devices>
|
52
|
-
</template>
|
53
|
-
<script>
|
54
|
-
import { PagedList } from 'vue-client'
|
55
|
-
import co from 'co'
|
56
|
-
import Vue from 'vue'
|
57
|
-
import * as Util from '../Util'
|
58
|
-
import DevicesAndItem from "./DevicesAndItem";
|
59
|
-
|
60
|
-
let syncDelete = function * (self,row) {
|
61
|
-
yield self.$remove('rs/entity/t_defect_info/', {id: row.id})
|
62
|
-
self.$refs.paged.$refs.criteria.search()
|
63
|
-
}
|
64
|
-
|
65
|
-
export default {
|
66
|
-
components: {DevicesAndItem},
|
67
|
-
title: '安检项配置',
|
68
|
-
data () {
|
69
|
-
return {
|
70
|
-
model:new PagedList('rs/path/getDevices',20) ,
|
71
|
-
user_types: this.$appdata.getParam('用户类型'),
|
72
|
-
write_must: this.$appdata.getParam('是否必检'),
|
73
|
-
devices_list:[],
|
74
|
-
device:[],
|
75
|
-
showModal:false
|
76
|
-
}
|
77
|
-
},
|
78
|
-
ready(){
|
79
|
-
this.$resetpost("rs/logic/获取安检设备",{condition: '1 =1'}).then((respanse) => {
|
80
|
-
respanse.data.data.forEach((item)=>{
|
81
|
-
this.devices_list.push({label:item.f_device_name,value:item.f_device_name})
|
82
|
-
})
|
83
|
-
})
|
84
|
-
},
|
85
|
-
computed: {
|
86
|
-
selected () {
|
87
|
-
return this.$refs.paged.$refs.grid.selected
|
88
|
-
}
|
89
|
-
},
|
90
|
-
methods:{
|
91
|
-
checkitem(row){
|
92
|
-
this.$set('device',row.f_device_item)
|
93
|
-
},
|
94
|
-
showMo () {
|
95
|
-
this.showModal = true
|
96
|
-
},
|
97
|
-
delete(row){
|
98
|
-
let gen = syncDelete(this,row)
|
99
|
-
return co(gen)
|
100
|
-
},
|
101
|
-
undo(){
|
102
|
-
this.showModal = false
|
103
|
-
},
|
104
|
-
}
|
105
|
-
}
|
106
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<div class="over col-md-6">
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
4
|
+
<criteria partial='criteria' @condition-changed='search'>
|
5
|
+
<form class="form-inline" partial>
|
6
|
+
<div class="form-group">
|
7
|
+
<label class="control-label">设备</label>
|
8
|
+
<v-select id="f_device_name" :value.sync="$parent.$parent.model.f_device_name"
|
9
|
+
condition="f_device_name={}"
|
10
|
+
placeholder="设备" :options='$parent.$parent.devices_list' close-on-select clear-button> </v-select>
|
11
|
+
</div>
|
12
|
+
<div class="form-group">
|
13
|
+
<label class="control-label">用户类型</label>
|
14
|
+
<v-select id="f_user_type" :value.sync="$parent.$parent.model.f_user_type" placeholder='用户类型'
|
15
|
+
condition="f_user_type={}"
|
16
|
+
:options='$parent.$parent.user_types' close-on-select clear-button> </v-select>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label class="control-label">是否必检</label>
|
20
|
+
<v-select id="f_write_must" :value.sync="$parent.$parent.f_write_must" placeholder='是否必检'
|
21
|
+
condition="f_write_must={}"
|
22
|
+
:options='$parent.$parent.write_must' close-on-select clear-button> </v-select>
|
23
|
+
</div>
|
24
|
+
<div class="form-group">
|
25
|
+
<button type="button" class="btn btn-success width-80" @click="search()">查询</button>
|
26
|
+
<button type="button" class="btn btn-default width-80" @click="showMo()">新增</button>
|
27
|
+
</div>
|
28
|
+
</form>
|
29
|
+
</criteria>
|
30
|
+
<data-grid :model="model" partial='list' v-ref:grid>
|
31
|
+
<template partial='head'>
|
32
|
+
<tr>
|
33
|
+
<th>设备</th>
|
34
|
+
<th>用户类型</th>
|
35
|
+
<th>保存字段</th>
|
36
|
+
<th>是否必检</th>
|
37
|
+
</tr>
|
38
|
+
</template>
|
39
|
+
<template partial='body'>
|
40
|
+
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_device_name}}</td>
|
41
|
+
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_user_type}}</td>
|
42
|
+
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_device_field}}</td>
|
43
|
+
<td @click="$parent.$parent.$parent.checkitem(row)">{{row.f_write_must}}</td>
|
44
|
+
</template>
|
45
|
+
</data-grid>
|
46
|
+
</criteria-paged>
|
47
|
+
</div>
|
48
|
+
<div class="span-row over col-md-6">
|
49
|
+
<devices-and-item ></devices-and-item>
|
50
|
+
</div>
|
51
|
+
<add-devices></add-devices>
|
52
|
+
</template>
|
53
|
+
<script>
|
54
|
+
import { PagedList } from 'vue-client'
|
55
|
+
import co from 'co'
|
56
|
+
import Vue from 'vue'
|
57
|
+
import * as Util from '../Util'
|
58
|
+
import DevicesAndItem from "./DevicesAndItem";
|
59
|
+
|
60
|
+
let syncDelete = function * (self,row) {
|
61
|
+
yield self.$remove('rs/entity/t_defect_info/', {id: row.id})
|
62
|
+
self.$refs.paged.$refs.criteria.search()
|
63
|
+
}
|
64
|
+
|
65
|
+
export default {
|
66
|
+
components: {DevicesAndItem},
|
67
|
+
title: '安检项配置',
|
68
|
+
data () {
|
69
|
+
return {
|
70
|
+
model:new PagedList('rs/path/getDevices',20) ,
|
71
|
+
user_types: this.$appdata.getParam('用户类型'),
|
72
|
+
write_must: this.$appdata.getParam('是否必检'),
|
73
|
+
devices_list:[],
|
74
|
+
device:[],
|
75
|
+
showModal:false
|
76
|
+
}
|
77
|
+
},
|
78
|
+
ready(){
|
79
|
+
this.$resetpost("rs/logic/获取安检设备",{condition: '1 =1'}).then((respanse) => {
|
80
|
+
respanse.data.data.forEach((item)=>{
|
81
|
+
this.devices_list.push({label:item.f_device_name,value:item.f_device_name})
|
82
|
+
})
|
83
|
+
})
|
84
|
+
},
|
85
|
+
computed: {
|
86
|
+
selected () {
|
87
|
+
return this.$refs.paged.$refs.grid.selected
|
88
|
+
}
|
89
|
+
},
|
90
|
+
methods:{
|
91
|
+
checkitem(row){
|
92
|
+
this.$set('device',row.f_device_item)
|
93
|
+
},
|
94
|
+
showMo () {
|
95
|
+
this.showModal = true
|
96
|
+
},
|
97
|
+
delete(row){
|
98
|
+
let gen = syncDelete(this,row)
|
99
|
+
return co(gen)
|
100
|
+
},
|
101
|
+
undo(){
|
102
|
+
this.showModal = false
|
103
|
+
},
|
104
|
+
}
|
105
|
+
}
|
106
|
+
</script>
|