|
@@ -332,7 +332,7 @@
|
|
|
screenHeight: this.$screenHeight,
|
|
|
// ----扫码选择隐患
|
|
|
showPopupDanger: false,
|
|
|
- dangerDict:getDictDatas(DICT_TYPE.DANGER_RESULT),
|
|
|
+ dangerDict: getDictDatas(DICT_TYPE.DANGER_RESULT),
|
|
|
choiceDanger: getDictDatas(DICT_TYPE.DANGER_TYPE),
|
|
|
checkedPopupDanger: [], //
|
|
|
// ----扫码选择隐患
|
|
@@ -345,7 +345,9 @@
|
|
|
erWeiMaShu: '', //二维码内容对象
|
|
|
tableData: [],
|
|
|
loading: false,
|
|
|
+ dengerType: 0,
|
|
|
saveImplement: {
|
|
|
+ dengerType: 0,
|
|
|
attUrl: [],
|
|
|
dangerDescribe: "", //隐患描述
|
|
|
fpdId: "",
|
|
@@ -453,9 +455,14 @@
|
|
|
|
|
|
},
|
|
|
checkboxConfirm3(index) {
|
|
|
+ this.choiceDanger.map(i => {
|
|
|
+ if (i.name == this.checkedPopupDanger[this.checkedPopupDanger.length - 1]) {
|
|
|
+ this.dengerType = i.value
|
|
|
+ }
|
|
|
+ });
|
|
|
this.dangerDescribe = this.checkedPopupDanger.toString()
|
|
|
if (this.dangerDescribe.startsWith(',')) {
|
|
|
- this.dangerDescribe =this.dangerDescribe.slice(1);
|
|
|
+ this.dangerDescribe = this.dangerDescribe.slice(1);
|
|
|
}
|
|
|
this.showPopupDanger = false
|
|
|
this.$forceUpdate()
|
|
@@ -577,13 +584,13 @@
|
|
|
}).then(response => {
|
|
|
this.loading = false
|
|
|
this.tableData = [...this.tableData, ...response.data.list]
|
|
|
- this.dangerDict.map(i=>{
|
|
|
- this.tableData.map(k=>{
|
|
|
- if(k?.handleResult==i.value){
|
|
|
- k.handleResult=i.label
|
|
|
+ this.dangerDict.map(i => {
|
|
|
+ this.tableData.map(k => {
|
|
|
+ if (k?.handleResult == i.value) {
|
|
|
+ k.handleResult = i.label
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
// this.tableData = response.data.list
|
|
|
this.total = response.data.total
|
|
@@ -663,14 +670,14 @@
|
|
|
descriptFpd() { //隐患描述点击确认
|
|
|
this.show5 = false
|
|
|
// this.handleResult = this.handleResult
|
|
|
- this.handleMethod=this.handleResult
|
|
|
+ this.handleMethod = this.handleResult
|
|
|
if (this.manualPopup) {
|
|
|
// this.checkManualData[0].handleResult = this.handleResult
|
|
|
- this.checkManualData[0].handleMethod= this.handleResult
|
|
|
- this.checkManualData[0].handleResult=1
|
|
|
-
|
|
|
+ this.checkManualData[0].handleMethod = this.handleResult
|
|
|
+ this.checkManualData[0].handleResult = 1
|
|
|
+
|
|
|
}
|
|
|
- this.handleResult =1
|
|
|
+ this.handleResult = 1
|
|
|
this.checkPopupConfirm()
|
|
|
|
|
|
// this.maShow=false
|
|
@@ -683,6 +690,7 @@
|
|
|
}
|
|
|
},
|
|
|
checkPopupYinHuan() {
|
|
|
+ console.log(this.dengerType, 'this.dengerType');
|
|
|
this.handleMethod = "生成隐患" //生成隐患
|
|
|
// this.handleResult = "不正常"
|
|
|
this.handleResult = 2
|
|
@@ -834,6 +842,8 @@
|
|
|
checkPopupConfirm() { //弹出得到的那一条数据insTypeData的id 弹出保存
|
|
|
if (this.manualPopup) { //手动检查
|
|
|
this.saveImplement = this.checkManualData[0]
|
|
|
+
|
|
|
+ this.saveImplement.dengerType = this.dengerType
|
|
|
this.saveImplement.hisResultCreateReqVOList = this.checkManualData[0].inspectSubDOList
|
|
|
this.saveImplement.dangerDescribe = this.dangerDescribe
|
|
|
this.saveImplement.handleTime = shijianc(new Date().getTime())
|
|
@@ -878,6 +888,7 @@
|
|
|
})
|
|
|
this.saveImplement = this.insTypeData
|
|
|
this.saveImplement.map(i => {
|
|
|
+ i.dengerType = this.dengerType
|
|
|
i.handleTime = shijianc(new Date().getTime())
|
|
|
i.inspectTime = shijianc(new Date().getTime())
|
|
|
i.orgId = this.formData.orgId
|
|
@@ -1095,6 +1106,7 @@
|
|
|
::v-deep .u-icon__icon {
|
|
|
margin-right: 0px !important;
|
|
|
}
|
|
|
+
|
|
|
.child {
|
|
|
margin: 20rpx 0 0 20rpx;
|
|
|
border-radius: 10rpx;
|
|
@@ -1250,11 +1262,13 @@
|
|
|
font-size: 16px;
|
|
|
padding: 25rpx 0;
|
|
|
}
|
|
|
- .manual:last-child{
|
|
|
+
|
|
|
+ .manual:last-child {
|
|
|
font-size: 25px;
|
|
|
padding: 60rpx 0;
|
|
|
background-color: red;
|
|
|
}
|
|
|
+
|
|
|
.manual-hand {
|
|
|
margin-left: 30rpx;
|
|
|
display: flex;
|