|
@@ -4,6 +4,24 @@
|
|
<van-nav-bar title="风险评级" left-arrow @click-left="onClickLeft" />
|
|
<van-nav-bar title="风险评级" left-arrow @click-left="onClickLeft" />
|
|
</div> -->
|
|
</div> -->
|
|
<div class="headers">
|
|
<div class="headers">
|
|
|
|
+ <van-field
|
|
|
|
+ v-model="fieldValue_jianChaRen"
|
|
|
|
+ is-link
|
|
|
|
+ readonly
|
|
|
|
+ label="检查人"
|
|
|
|
+ placeholder="请选择检查人"
|
|
|
|
+ @click="show_jianChaRen = true"
|
|
|
|
+ />
|
|
|
|
+ <van-popup v-model="show_jianChaRen" round position="bottom">
|
|
|
|
+ <van-cascader
|
|
|
|
+ v-model="cascaderValue_jianChaRen"
|
|
|
|
+ title="请选择检查人"
|
|
|
|
+ :options="options"
|
|
|
|
+ @close="show_jianChaRen = false"
|
|
|
|
+ @finish="onFinish_jianChaRen"
|
|
|
|
+ />
|
|
|
|
+ </van-popup>
|
|
|
|
+
|
|
<div>
|
|
<div>
|
|
<van-field
|
|
<van-field
|
|
readonly
|
|
readonly
|
|
@@ -496,11 +514,21 @@ export default {
|
|
show_zhengGaiRen: false,
|
|
show_zhengGaiRen: false,
|
|
|
|
|
|
fieldValue_zhengGaiRen: "",
|
|
fieldValue_zhengGaiRen: "",
|
|
|
|
+ cascaderValue_zhengGaiRen: "",
|
|
|
|
|
|
// 筛选督办人
|
|
// 筛选督办人
|
|
show_duBanRen: false,
|
|
show_duBanRen: false,
|
|
|
|
|
|
fieldValue_duBanRen: "",
|
|
fieldValue_duBanRen: "",
|
|
|
|
+ cascaderValue_duBanRen: "",
|
|
|
|
+
|
|
|
|
+ // 选择检查人
|
|
|
|
+ show_jianChaRen: false,
|
|
|
|
+
|
|
|
|
+ fieldValue_jianChaRen: "",
|
|
|
|
+ cascaderValue_jianChaRen: "",
|
|
|
|
+
|
|
|
|
+ jianChaRen_key:"",
|
|
|
|
|
|
options: [],
|
|
options: [],
|
|
};
|
|
};
|
|
@@ -509,124 +537,91 @@ export default {
|
|
//返回按钮
|
|
//返回按钮
|
|
onClickLeft() {
|
|
onClickLeft() {
|
|
window.history.back();
|
|
window.history.back();
|
|
- // console.log("sss");
|
|
|
|
},
|
|
},
|
|
getCurrentRow(row, index) {
|
|
getCurrentRow(row, index) {
|
|
// 获取选中数据
|
|
// 获取选中数据
|
|
- console.log(row, index);
|
|
|
|
this.RiskRating_id = this.RiskRating[index].id;
|
|
this.RiskRating_id = this.RiskRating[index].id;
|
|
},
|
|
},
|
|
handleClickRow(val) {
|
|
handleClickRow(val) {
|
|
- console.log(val);
|
|
|
|
// this.infos = val;
|
|
// this.infos = val;
|
|
},
|
|
},
|
|
sc() {
|
|
sc() {
|
|
- // console.log(this.infos);
|
|
|
|
// this.zhankai1 = false;
|
|
// this.zhankai1 = false;
|
|
this.zhankai2 = true;
|
|
this.zhankai2 = true;
|
|
|
|
|
|
// 获取筛选数据
|
|
// 获取筛选数据
|
|
this.getRiskRating();
|
|
this.getRiskRating();
|
|
},
|
|
},
|
|
- tianjia() {
|
|
|
|
- console.log(this.dates);
|
|
|
|
- },
|
|
|
|
|
|
+ tianjia() {},
|
|
onConfirm1(value, index) {
|
|
onConfirm1(value, index) {
|
|
- console.log(value);
|
|
|
|
-
|
|
|
|
this.inspectionSpecialtyArr_key = this.inspectionSpecialtyArr[index].key;
|
|
this.inspectionSpecialtyArr_key = this.inspectionSpecialtyArr[index].key;
|
|
|
|
|
|
this.value1 = value;
|
|
this.value1 = value;
|
|
this.showPicker1 = false;
|
|
this.showPicker1 = false;
|
|
},
|
|
},
|
|
onConfirm2(value, index) {
|
|
onConfirm2(value, index) {
|
|
- console.log(value);
|
|
|
|
-
|
|
|
|
this.hiddenDanger_levelArr_key = this.hiddenDanger_levelArr[index].key;
|
|
this.hiddenDanger_levelArr_key = this.hiddenDanger_levelArr[index].key;
|
|
|
|
|
|
this.value2 = value;
|
|
this.value2 = value;
|
|
this.showPicker2 = false;
|
|
this.showPicker2 = false;
|
|
},
|
|
},
|
|
onConfirm3(value, index) {
|
|
onConfirm3(value, index) {
|
|
- console.log(value, index);
|
|
|
|
-
|
|
|
|
this.riskPointArr_key = this.riskPointArr[index].key;
|
|
this.riskPointArr_key = this.riskPointArr[index].key;
|
|
|
|
|
|
this.value3 = value;
|
|
this.value3 = value;
|
|
this.showPicker3 = false;
|
|
this.showPicker3 = false;
|
|
},
|
|
},
|
|
onConfirm4(value, index) {
|
|
onConfirm4(value, index) {
|
|
- console.log(value);
|
|
|
|
-
|
|
|
|
this.riskTypeArr_key = this.riskTypeArr[index].key;
|
|
this.riskTypeArr_key = this.riskTypeArr[index].key;
|
|
|
|
|
|
this.value4 = value;
|
|
this.value4 = value;
|
|
this.showPicker4 = false;
|
|
this.showPicker4 = false;
|
|
},
|
|
},
|
|
onConfirm5(value, index) {
|
|
onConfirm5(value, index) {
|
|
- console.log(value);
|
|
|
|
-
|
|
|
|
this.riskLevelArr_key = this.riskLevelArr[index].key;
|
|
this.riskLevelArr_key = this.riskLevelArr[index].key;
|
|
|
|
|
|
this.value5 = value;
|
|
this.value5 = value;
|
|
this.showPicker5 = false;
|
|
this.showPicker5 = false;
|
|
},
|
|
},
|
|
onConfirm6(value, index) {
|
|
onConfirm6(value, index) {
|
|
- console.log(value);
|
|
|
|
-
|
|
|
|
this.accidentTypeArr_key = this.accidentTypeArr[index].key;
|
|
this.accidentTypeArr_key = this.accidentTypeArr[index].key;
|
|
|
|
|
|
this.value6 = value;
|
|
this.value6 = value;
|
|
this.showPicker6 = false;
|
|
this.showPicker6 = false;
|
|
},
|
|
},
|
|
onConfirm7(value, index) {
|
|
onConfirm7(value, index) {
|
|
- console.log(value);
|
|
|
|
-
|
|
|
|
this.sectionArr_id = this.sectionArr[index].id;
|
|
this.sectionArr_id = this.sectionArr[index].id;
|
|
|
|
|
|
this.value7 = value;
|
|
this.value7 = value;
|
|
this.showPicker7 = false;
|
|
this.showPicker7 = false;
|
|
},
|
|
},
|
|
onConfirm8(value, index) {
|
|
onConfirm8(value, index) {
|
|
- console.log(value);
|
|
|
|
-
|
|
|
|
this.staffArr_id = this.staffArr[index].id;
|
|
this.staffArr_id = this.staffArr[index].id;
|
|
|
|
|
|
this.value8 = value;
|
|
this.value8 = value;
|
|
this.showPicker8 = false;
|
|
this.showPicker8 = false;
|
|
},
|
|
},
|
|
onConfirm9(value, index) {
|
|
onConfirm9(value, index) {
|
|
- console.log(value, index);
|
|
|
|
-
|
|
|
|
this.zhengGaiType = index + 1;
|
|
this.zhengGaiType = index + 1;
|
|
- console.log(this.zhengGaiType);
|
|
|
|
|
|
|
|
this.value9 = value;
|
|
this.value9 = value;
|
|
this.showPicker9 = false;
|
|
this.showPicker9 = false;
|
|
},
|
|
},
|
|
|
|
|
|
onConfirm10(value, index) {
|
|
onConfirm10(value, index) {
|
|
- console.log(value, index);
|
|
|
|
-
|
|
|
|
this.zhengGaiDanWei_id = this.sectionArr[index].id;
|
|
this.zhengGaiDanWei_id = this.sectionArr[index].id;
|
|
|
|
|
|
this.value10 = value;
|
|
this.value10 = value;
|
|
this.showPicker10 = false;
|
|
this.showPicker10 = false;
|
|
},
|
|
},
|
|
onConfirm11(value, index) {
|
|
onConfirm11(value, index) {
|
|
- console.log(value, index);
|
|
|
|
-
|
|
|
|
this.zhengGaiRen_id = this.staffArr[index].id;
|
|
this.zhengGaiRen_id = this.staffArr[index].id;
|
|
|
|
|
|
- console.log(this.staffArr[index].id);
|
|
|
|
-
|
|
|
|
this.value11 = value;
|
|
this.value11 = value;
|
|
this.showPicker11 = false;
|
|
this.showPicker11 = false;
|
|
},
|
|
},
|
|
|
|
|
|
onConfirm12(value, index) {
|
|
onConfirm12(value, index) {
|
|
- console.log(value, index);
|
|
|
|
-
|
|
|
|
this.inspected_unit_key = this.sectionArr[index].id;
|
|
this.inspected_unit_key = this.sectionArr[index].id;
|
|
|
|
|
|
this.value12 = value;
|
|
this.value12 = value;
|
|
@@ -639,7 +634,6 @@ export default {
|
|
onConfirm(date) {
|
|
onConfirm(date) {
|
|
this.showtime = false;
|
|
this.showtime = false;
|
|
this.dates = this.formatDate(date);
|
|
this.dates = this.formatDate(date);
|
|
- console.log(this.dates);
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// 获取检查专业等筛选信息
|
|
// 获取检查专业等筛选信息
|
|
@@ -650,17 +644,23 @@ export default {
|
|
{}
|
|
{}
|
|
)
|
|
)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- console.log(res.data.data);
|
|
|
|
-
|
|
|
|
// 初始化筛选数据
|
|
// 初始化筛选数据
|
|
// 风险点
|
|
// 风险点
|
|
this.riskPointArr = res.data.data.riskPointArr;
|
|
this.riskPointArr = res.data.data.riskPointArr;
|
|
|
|
+ this.riskPointArr.unshift({key:"0",value:"请选择"})
|
|
|
|
+ console.log(this.riskPointArr)
|
|
// 风险类型
|
|
// 风险类型
|
|
this.riskTypeArr = res.data.data.riskTypeArr;
|
|
this.riskTypeArr = res.data.data.riskTypeArr;
|
|
|
|
+ this.riskTypeArr.unshift({key:"0",value:"请选择"})
|
|
|
|
+
|
|
// 风险等级
|
|
// 风险等级
|
|
this.riskLevelArr = res.data.data.riskLevelArr;
|
|
this.riskLevelArr = res.data.data.riskLevelArr;
|
|
|
|
+ this.riskLevelArr.unshift({key:"0",value:"请选择"})
|
|
|
|
+
|
|
// 事故类型
|
|
// 事故类型
|
|
this.accidentTypeArr = res.data.data.accidentTypeArr;
|
|
this.accidentTypeArr = res.data.data.accidentTypeArr;
|
|
|
|
+ this.accidentTypeArr.unshift({key:"0",value:"请选择"})
|
|
|
|
+
|
|
|
|
|
|
// 检查专业
|
|
// 检查专业
|
|
this.inspectionSpecialtyArr = res.data.data.inspectionSpecialtyArr;
|
|
this.inspectionSpecialtyArr = res.data.data.inspectionSpecialtyArr;
|
|
@@ -718,7 +718,6 @@ export default {
|
|
this.$toast.clear();
|
|
this.$toast.clear();
|
|
this.tableData = [];
|
|
this.tableData = [];
|
|
|
|
|
|
- console.log(res.data.data);
|
|
|
|
this.RiskRating = res.data.data;
|
|
this.RiskRating = res.data.data;
|
|
|
|
|
|
// 风险描述 risk_description
|
|
// 风险描述 risk_description
|
|
@@ -745,8 +744,6 @@ export default {
|
|
{}
|
|
{}
|
|
)
|
|
)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- console.log(res.data);
|
|
|
|
-
|
|
|
|
this.sectionArr = res.data.data.sectionArr;
|
|
this.sectionArr = res.data.data.sectionArr;
|
|
this.staffArr = res.data.data.staffArr;
|
|
this.staffArr = res.data.data.staffArr;
|
|
|
|
|
|
@@ -790,14 +787,16 @@ export default {
|
|
this.hiddenDanger_levelArr_key == "" ||
|
|
this.hiddenDanger_levelArr_key == "" ||
|
|
this.message1 == "" ||
|
|
this.message1 == "" ||
|
|
this.message2 == "" ||
|
|
this.message2 == "" ||
|
|
- this.RiskRating_id == "" ||
|
|
|
|
|
|
+ // 风险评估选填
|
|
|
|
+ // this.RiskRating_id == "" ||
|
|
this.zhengGaiDanWei_id == "" ||
|
|
this.zhengGaiDanWei_id == "" ||
|
|
this.zhengGaiRen_id == "" ||
|
|
this.zhengGaiRen_id == "" ||
|
|
this.sectionArr_id == "" ||
|
|
this.sectionArr_id == "" ||
|
|
this.staffArr_id == "" ||
|
|
this.staffArr_id == "" ||
|
|
this.inspected_unit_key == "" ||
|
|
this.inspected_unit_key == "" ||
|
|
this.inspection_location == "" ||
|
|
this.inspection_location == "" ||
|
|
- this.zhengGaiType == ""
|
|
|
|
|
|
+ this.zhengGaiType == "" ||
|
|
|
|
+ this.jianChaRen_key == ""
|
|
) {
|
|
) {
|
|
this.$toast("请填写完整后再提交!");
|
|
this.$toast("请填写完整后再提交!");
|
|
return;
|
|
return;
|
|
@@ -839,10 +838,12 @@ export default {
|
|
inspected_unit: this.inspected_unit_key,
|
|
inspected_unit: this.inspected_unit_key,
|
|
// 检查地点
|
|
// 检查地点
|
|
inspection_location: this.inspection_location,
|
|
inspection_location: this.inspection_location,
|
|
|
|
+
|
|
|
|
+ // 检查人id
|
|
|
|
+ inspected_person: this.jianChaRen_key
|
|
}
|
|
}
|
|
)
|
|
)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- console.log(res);
|
|
|
|
if (res.data.code == 1) {
|
|
if (res.data.code == 1) {
|
|
this.$toast("请填写完整后再提交!");
|
|
this.$toast("请填写完整后再提交!");
|
|
} else {
|
|
} else {
|
|
@@ -862,8 +863,6 @@ export default {
|
|
.map((option) => option.text)
|
|
.map((option) => option.text)
|
|
.join("--");
|
|
.join("--");
|
|
|
|
|
|
- console.log(selectedOptions[1].value);
|
|
|
|
-
|
|
|
|
this.zhengGaiRen_id = selectedOptions[1].value;
|
|
this.zhengGaiRen_id = selectedOptions[1].value;
|
|
},
|
|
},
|
|
|
|
|
|
@@ -875,11 +874,20 @@ export default {
|
|
.map((option) => option.text)
|
|
.map((option) => option.text)
|
|
.join("--");
|
|
.join("--");
|
|
|
|
|
|
- console.log(selectedOptions[1].value);
|
|
|
|
-
|
|
|
|
this.staffArr_id = selectedOptions[1].value;
|
|
this.staffArr_id = selectedOptions[1].value;
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ // 选择检查人
|
|
|
|
+
|
|
|
|
+ onFinish_jianChaRen({ selectedOptions }) {
|
|
|
|
+ this.show_jianChaRen = false;
|
|
|
|
+ this.fieldValue_jianChaRen = selectedOptions
|
|
|
|
+ .map((option) => option.text)
|
|
|
|
+ .join("--");
|
|
|
|
+
|
|
|
|
+ this.jianChaRen_key = selectedOptions[1].value;
|
|
|
|
+ },
|
|
|
|
+
|
|
// 获取部门、人
|
|
// 获取部门、人
|
|
getSectionStaff() {
|
|
getSectionStaff() {
|
|
this.$http
|
|
this.$http
|
|
@@ -888,7 +896,6 @@ export default {
|
|
{}
|
|
{}
|
|
)
|
|
)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- console.log(res.data.data);
|
|
|
|
this.options = res.data.data;
|
|
this.options = res.data.data;
|
|
});
|
|
});
|
|
},
|
|
},
|