safecheck-client 3.0.30-96 → 3.0.30-98
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/android/SafecheckOrderV.vue +68 -1
- package/src/filiale/dexin/pc/PaperList.vue +805 -805
- package/src/filiale/dexin/pc.js +12 -12
- package/src/filiale/fugou/pc/PaperDefectMain.vue +32 -21
- package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -2
- package/src/main.js +1 -1
package/src/filiale/dexin/pc.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
// 分公司特殊组件页面注册
|
2
|
-
import Vue from "vue";
|
3
|
-
|
4
|
-
//手机特殊目录注册到该文件中
|
5
|
-
let specialComp = {
|
6
|
-
'paper-main': (resolve) => {require(['./pc/PaperList.vue'], resolve)},
|
7
|
-
}
|
8
|
-
exports.specialComp = specialComp
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
// 分公司特殊组件页面注册
|
2
|
+
import Vue from "vue";
|
3
|
+
|
4
|
+
//手机特殊目录注册到该文件中
|
5
|
+
let specialComp = {
|
6
|
+
'paper-main': (resolve) => {require(['./pc/PaperList.vue'], resolve)},
|
7
|
+
}
|
8
|
+
exports.specialComp = specialComp
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
@@ -65,14 +65,14 @@
|
|
65
65
|
<!--<input type="text" class="input_search" v-model="model.f_device_type"-->
|
66
66
|
<!--style="width: 60%" placeholder="检 查 项" condition="f_device_type like '%{}%'">-->
|
67
67
|
</div>
|
68
|
-
<div class="form-group col-sm-2"
|
69
|
-
<label class="font_normal_body"
|
68
|
+
<div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
|
69
|
+
<label class="font_normal_body">隐患原因</label>
|
70
70
|
<v-select :value.sync="model.f_item_name"
|
71
71
|
v-model='model.f_item_name'
|
72
72
|
style="width: 60%"
|
73
73
|
class="select_list select"
|
74
74
|
:options='$parent.$parent.DefectConfigs'
|
75
|
-
placeholder='
|
75
|
+
placeholder='隐患原因'
|
76
76
|
:multiple="true"
|
77
77
|
condition="f_item_name in {}"></v-select>
|
78
78
|
</div>
|
@@ -409,7 +409,7 @@
|
|
409
409
|
try {
|
410
410
|
let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
411
411
|
Vue.config = res.data
|
412
|
-
self.
|
412
|
+
self.getDeviceTypes(res.data)
|
413
413
|
} catch (error) {
|
414
414
|
// 忽略704,文件找不到异常R
|
415
415
|
if (error.status !== 704) {
|
@@ -509,6 +509,33 @@
|
|
509
509
|
}
|
510
510
|
},
|
511
511
|
methods: {
|
512
|
+
getDeviceTypes(val) {
|
513
|
+
try {
|
514
|
+
if (val.safecheck.DevicesSetConfig != undefined) {
|
515
|
+
this.DefectConfig = val.safecheck.DevicesConfig
|
516
|
+
for (var Key1 in this.DefectConfig) {
|
517
|
+
this.device_types.push({label: Key1, value: Key1})
|
518
|
+
}
|
519
|
+
}
|
520
|
+
} catch (e) {
|
521
|
+
}
|
522
|
+
},
|
523
|
+
async getDefectInfoConfig() {
|
524
|
+
var resData = await new HttpResetClass().load('POST', '/rs/sql/tel_singleTable_GroupBy', {data: {
|
525
|
+
items: 'f_item_name',
|
526
|
+
tablename: 't_devices_items',
|
527
|
+
condition: 'f_is_defect = true',
|
528
|
+
groupitem: 'f_item_name',
|
529
|
+
}}, {
|
530
|
+
warnMsg: null,
|
531
|
+
resolveMsg: null
|
532
|
+
})
|
533
|
+
if (resData.data) {
|
534
|
+
for (let i = 0; i < resData.data.length; i++) {
|
535
|
+
this.DefectConfigs.push({label: resData.data[i].f_item_name, value: resData.data[i].f_item_name})
|
536
|
+
}
|
537
|
+
}
|
538
|
+
},
|
512
539
|
isChecked(row) {
|
513
540
|
return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
|
514
541
|
},
|
@@ -686,23 +713,6 @@
|
|
686
713
|
this.cancel1()
|
687
714
|
this.$showMessage('本次转维修成功'+successCount+'单')
|
688
715
|
},
|
689
|
-
getDefectInfoConfig(val){
|
690
|
-
try {
|
691
|
-
if (val.safecheck.DevicesSetConfig != undefined) {
|
692
|
-
this.DefectConfig = val.safecheck.DevicesConfig
|
693
|
-
// 获取到配置项,进行遍历,获取每个隐患项
|
694
|
-
for (var Key1 in this.DefectConfig){
|
695
|
-
this.device_types.push({label:Key1,value:Key1})
|
696
|
-
for(var Key2 in this.DefectConfig[Key1].items){
|
697
|
-
this.DefectConfigs.push({label:Key2,value:Key2})
|
698
|
-
}
|
699
|
-
}
|
700
|
-
// 非民用或其他配置项加入,在进行遍历
|
701
|
-
}
|
702
|
-
}catch (e) {
|
703
|
-
//tag
|
704
|
-
}
|
705
|
-
},
|
706
716
|
showaudio(){
|
707
717
|
//tag
|
708
718
|
this.audioshow=!this.audioshow
|
@@ -885,6 +895,7 @@
|
|
885
895
|
//this.pianqu()
|
886
896
|
this.Mreadibook(`('${this.$login.f.orgid}')`)
|
887
897
|
co(gen)
|
898
|
+
this.getDefectInfoConfig()
|
888
899
|
}
|
889
900
|
}
|
890
901
|
</script>
|
@@ -49,9 +49,9 @@
|
|
49
49
|
</div>
|
50
50
|
<div class="row" v-show="!$parent.$parent.$parent.showItem">
|
51
51
|
<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
|
52
|
-
<label class="font_normal_body"
|
52
|
+
<label class="font_normal_body">用气类型</label>
|
53
53
|
<v-select id="f_usertype"
|
54
|
-
placeholder='
|
54
|
+
placeholder='用气类型'
|
55
55
|
class="select select_list"
|
56
56
|
:value.sync="model.f_usertype"
|
57
57
|
:value-single="true"
|
package/src/main.js
CHANGED