|
@@ -382,7 +382,6 @@
|
|
|
i.name = i.label;
|
|
|
i.id = i.value;
|
|
|
});
|
|
|
- console.log(this.choiceDanger, 'this.choiceDanger');
|
|
|
this.type = option.type ? option.type : ''
|
|
|
that = this;
|
|
|
const eventChannel = this.getOpenerEventChannel();
|
|
@@ -400,7 +399,6 @@
|
|
|
if (that.newtableDatas && that.newtableDatas[0][option.broadId]) { //获取本地缓存的数据
|
|
|
that.tableData = that.newtableDatas[0][option.broadId]
|
|
|
that.tableData.map(i => i.choiceDanger = that.choiceDanger)
|
|
|
- console.log(that.tableData, 'that.tableData');
|
|
|
that.insTypeData = uni.getStorageSync('insTypeData')
|
|
|
|
|
|
} else {
|
|
@@ -488,7 +486,6 @@
|
|
|
//扫码
|
|
|
erWeiMa(checkTableDataIds, index) {
|
|
|
// #ifdef H5
|
|
|
- console.log(this.tableData[index], ' this.tableData[index].');
|
|
|
this.tableData[index].qrcodeShow = true
|
|
|
this.$forceUpdate()
|
|
|
this.onDecodeIndex = index
|
|
@@ -506,9 +503,7 @@
|
|
|
if (that.tableData[index].hisFpdCreateReqVOList.length > 0) {
|
|
|
var temp = that.tableData[index].hisFpdCreateReqVOList
|
|
|
// console.log(temp);
|
|
|
- console.log("result.id: ", result.id);
|
|
|
temp = temp.filter(i => i.id == result.id)
|
|
|
- console.log("temp: ", temp);
|
|
|
if (temp.length > 0) {
|
|
|
this.tableData[this.onDecodeIndex].qrcodeShow = false
|
|
|
return that.$modal.alert('该设备已检查')
|
|
@@ -517,7 +512,6 @@
|
|
|
|
|
|
//调接口,会传过来id标识,失败显示错误信息,比如该设备不存在,成功的花弹出扫码成功
|
|
|
inspTypeList(JSON.parse(res.result)).then(reponse => {
|
|
|
- console.log(reponse, 'reponsesssssssssssssss');
|
|
|
if (reponse.code == 0) {
|
|
|
that.maShow = true
|
|
|
that.insTypeData = reponse.data.records
|
|
@@ -580,7 +574,6 @@
|
|
|
|
|
|
},
|
|
|
closeImage(item, val, k) { //删除图片
|
|
|
- console.log(item, 'ddd');
|
|
|
if (item.inspType == 'fpd') {
|
|
|
this.insTypeData[k].attUrl.splice(val, 1)
|
|
|
}else{
|
|
@@ -671,7 +664,6 @@
|
|
|
let arrs = new Array()
|
|
|
this.saveImplement.inspectList.map((i, index) => {
|
|
|
if (i.inspType != 'fpd') {
|
|
|
- console.log('12222');
|
|
|
arrs[index] = new Array()
|
|
|
i.inspectResultList.map((k, indexs) => {
|
|
|
arrs[index][indexs] = new Array(i.inspectResultList.length)
|
|
@@ -704,7 +696,6 @@
|
|
|
if (!this.show && !this.show3 && !this.show4) { //屏蔽未检查校验2
|
|
|
if (!this.show) {
|
|
|
// 巡查未完成判断
|
|
|
- console.log(this.saveImplement, '1111111111111111');
|
|
|
checkSubmitRelease(JSON.stringify(this.saveImplement)).then(response => {
|
|
|
if (response.data) {
|
|
|
uni.showToast({
|
|
@@ -730,7 +721,6 @@
|
|
|
shuJu() {
|
|
|
this.saveImplement.inspectList = this.tableData
|
|
|
this.saveImplement.taskId = this.formData.id
|
|
|
- console.log(this.saveImplement, 'this.saveImplementthis.saveImplement');
|
|
|
},
|
|
|
// 获取数据
|
|
|
getData(pageNo, value = '') {
|
|
@@ -758,7 +748,6 @@
|
|
|
// ----隐患
|
|
|
})
|
|
|
}
|
|
|
- console.log(this.tableData, 'this.tableData');
|
|
|
});
|
|
|
// this.newInsTypeData.map(i => {
|
|
|
// i.attUrl = []
|
|
@@ -810,7 +799,6 @@
|
|
|
if (NorinspectResultList.includes(1)) { //如果互斥的数组存在true normal!=1的数组
|
|
|
if (tableItem.id == this.nnorNormalValue) { //当点击的是value == this.nnorNormalValue是
|
|
|
this.tableData[index].inspectResultList.map((i, kindex) => {
|
|
|
- console.log(i.id, this.nnorNormalValue, 'llllllllo');
|
|
|
if (i.id != this.nnorNormalValue) {
|
|
|
i.subValue = 0
|
|
|
this.show2 = false
|
|
@@ -949,7 +937,6 @@
|
|
|
this.insTypeData.map(k => {
|
|
|
k.attUrl = []
|
|
|
})
|
|
|
- console.log(this.tableData, '111111');
|
|
|
this.maShow = false
|
|
|
|
|
|
// }
|
|
@@ -1034,9 +1021,6 @@
|
|
|
that.loading = false
|
|
|
let imgUrl = JSON.parse(res
|
|
|
.data)
|
|
|
- console.log(val.inspType,
|
|
|
- 'val.inspTyp', val
|
|
|
- .fpdType);
|
|
|
// that.imageList.push(imgUrl.data)
|
|
|
if (!val.fpdType && val
|
|
|
.inspType != 'fpd') {
|