|
@@ -265,20 +265,22 @@
|
|
//通过微信扫一扫进入
|
|
//通过微信扫一扫进入
|
|
if (option.q) {
|
|
if (option.q) {
|
|
console.log('外部扫一扫')
|
|
console.log('外部扫一扫')
|
|
|
|
+
|
|
let text = decodeURIComponent(option.q)
|
|
let text = decodeURIComponent(option.q)
|
|
- let codeId = "";
|
|
|
|
- let newList = text.split("?")[1].split("&")
|
|
|
|
- let list = newList[0].split("=")[1].split("-")
|
|
|
|
- codeId = list[0];
|
|
|
|
|
|
+ let list = text.split("?")[1].split("&");
|
|
|
|
+ let codeData = {};
|
|
|
|
+ list.forEach((item) => {
|
|
|
|
+ codeData[item.split("=")[0]] = item.split("=")[1];
|
|
|
|
+ })
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: codeId,
|
|
|
|
|
|
+ title: codeData.subId,
|
|
icon: "none",
|
|
icon: "none",
|
|
mask: true,
|
|
mask: true,
|
|
duration: 2000
|
|
duration: 2000
|
|
});
|
|
});
|
|
- this.form.subIds = codeId
|
|
|
|
- this.getCheckPlanBySubId(codeId)
|
|
|
|
- this.getByIdLaboratoryList();
|
|
|
|
|
|
+ this.form.subIds = codeData.subId
|
|
|
|
+ this.getCheckPlanBySubId(codeData.subId)
|
|
|
|
+ this.getByIdLaboratoryList(codeData.code);
|
|
}
|
|
}
|
|
if (option.id) {
|
|
if (option.id) {
|
|
console.log('开始/编辑')
|
|
console.log('开始/编辑')
|
|
@@ -297,7 +299,7 @@
|
|
console.log('内部扫一扫')
|
|
console.log('内部扫一扫')
|
|
this.form.subIds = option.subId
|
|
this.form.subIds = option.subId
|
|
this.getCheckPlanBySubId(option.subId)
|
|
this.getCheckPlanBySubId(option.subId)
|
|
- this.getByIdLaboratoryList();
|
|
|
|
|
|
+ this.getByIdLaboratoryList(option.infoId);
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -739,22 +741,22 @@
|
|
this.popupType = false;
|
|
this.popupType = false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //扫一扫进入通过id查询实验室列表
|
|
|
|
- async getByIdLaboratoryList() {
|
|
|
|
|
|
+ //扫一扫进入通过id查询实验室
|
|
|
|
+ async getByIdLaboratoryList(infoId) {
|
|
let self = this;
|
|
let self = this;
|
|
const {
|
|
const {
|
|
data
|
|
data
|
|
- } = await subjectFindSubjectInfo({
|
|
|
|
- subIds: this.form.subIds
|
|
|
|
|
|
+ } = await laboratoryAppletGetSubDetailInfo({
|
|
|
|
+ infoId: infoId
|
|
});
|
|
});
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
if (data.data) {
|
|
if (data.data) {
|
|
- self.form.subjectName = data.data.subjectName;
|
|
|
|
|
|
+ self.form.subjectName = data.data.subName;
|
|
self.form.deptId = data.data.deptId;
|
|
self.form.deptId = data.data.deptId;
|
|
- self.form.collegeName = data.data.collegeName;
|
|
|
|
|
|
+ self.form.collegeName = data.data.deptName;
|
|
self.form.buildId = data.data.buildId;
|
|
self.form.buildId = data.data.buildId;
|
|
self.form.buildName = data.data.buildName;
|
|
self.form.buildName = data.data.buildName;
|
|
- self.form.roomNumber = data.data.roomNumber;
|
|
|
|
|
|
+ self.form.roomNumber = data.data.roomNum;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -862,15 +864,15 @@
|
|
infoId: infoId
|
|
infoId: infoId
|
|
});
|
|
});
|
|
if (data.code == 200) {
|
|
if (data.code == 200) {
|
|
-
|
|
|
|
- this.$set(this.form, "subIds", data.data.subId)
|
|
|
|
- this.$set(this.form, "subjectName", data.data.subName)
|
|
|
|
- this.$set(this.form, "deptId", data.data.deptId)
|
|
|
|
|
|
+
|
|
|
|
+ this.$set(this.form, "subIds", data.data.subId)
|
|
|
|
+ this.$set(this.form, "subjectName", data.data.subName)
|
|
|
|
+ this.$set(this.form, "deptId", data.data.deptId)
|
|
this.$set(this.form, "deptName", data.data.deptName)
|
|
this.$set(this.form, "deptName", data.data.deptName)
|
|
this.$set(this.form, "collegeName", data.data.deptName)
|
|
this.$set(this.form, "collegeName", data.data.deptName)
|
|
- this.$set(this.form, "buildId", data.data.buildId)
|
|
|
|
- this.$set(this.form, "buildName", data.data.buildName)
|
|
|
|
- this.$set(this.form, "roomNumber", data.data.roomNum)
|
|
|
|
|
|
+ this.$set(this.form, "buildId", data.data.buildId)
|
|
|
|
+ this.$set(this.form, "buildName", data.data.buildName)
|
|
|
|
+ this.$set(this.form, "roomNumber", data.data.roomNum)
|
|
this.$set(this.form, 'title', '');
|
|
this.$set(this.form, 'title', '');
|
|
this.$set(this.form, 'id', '');
|
|
this.$set(this.form, 'id', '');
|
|
this.$set(this.form, 'checkType', 2);
|
|
this.$set(this.form, 'checkType', 2);
|
|
@@ -890,7 +892,7 @@
|
|
hazardDescribe: '', //隐患描述
|
|
hazardDescribe: '', //隐患描述
|
|
uploadDtoList: [], //隐患照片
|
|
uploadDtoList: [], //隐患照片
|
|
}]);
|
|
}]);
|
|
- this.getCheckPlanBySubId( data.data.subId)
|
|
|
|
|
|
+ this.getCheckPlanBySubId(data.data.subId)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//附件查看
|
|
//附件查看
|