fix: BUG修改
This commit is contained in:
parent
205868b90c
commit
6827ff9fa6
@ -707,7 +707,7 @@ export default {
|
|||||||
specialConstructionSchemeType: this.addForm.specialConstructionSchemeType ? 2:1,
|
specialConstructionSchemeType: this.addForm.specialConstructionSchemeType ? 2:1,
|
||||||
technicalDisclosureType: this.addForm.technicalDisclosureType ? 2:1,
|
technicalDisclosureType: this.addForm.technicalDisclosureType ? 2:1,
|
||||||
typeDescribeList,
|
typeDescribeList,
|
||||||
controlItemList: this.checkList,
|
controlItemList: this.checkList?this.checkList:null,
|
||||||
technicalDisclosureFile: JSON.stringify(this.fileList),
|
technicalDisclosureFile: JSON.stringify(this.fileList),
|
||||||
securityConstructionSchemeFile: JSON.stringify(this.fileList3),
|
securityConstructionSchemeFile: JSON.stringify(this.fileList3),
|
||||||
specialConstructionSchemeFile: JSON.stringify(this.fileList2)
|
specialConstructionSchemeFile: JSON.stringify(this.fileList2)
|
||||||
|
|||||||
@ -133,15 +133,28 @@
|
|||||||
label="责任分包单位:"
|
label="责任分包单位:"
|
||||||
:label-width="formLabelWidth"
|
:label-width="formLabelWidth"
|
||||||
>
|
>
|
||||||
<el-cascader
|
<!-- <el-cascader
|
||||||
:disabled="isDisabled"
|
:disabled="isDisabled"
|
||||||
v-model="detailData.responsibilityCompany"
|
v-model="detailData.responsibilityCompanyId"
|
||||||
placeholder="请选择责任分包单位"
|
placeholder="请选择责任分包单位"
|
||||||
:options="options"
|
:options="options"
|
||||||
:props="props"
|
:props="props"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
</el-cascader>
|
</el-cascader> -->
|
||||||
|
<el-select
|
||||||
|
v-model="detailData.responsibilityCompanyId"
|
||||||
|
placeholder="请选择责任分包单位"
|
||||||
|
disabled
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
:label="item.enterpriseName"
|
||||||
|
:value="item.id"
|
||||||
|
v-for="(item, index) in responsibilityList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- <div v-if="COMPANY != 'longguang'" class="qr-box">
|
<!-- <div v-if="COMPANY != 'longguang'" class="qr-box">
|
||||||
@ -1166,10 +1179,14 @@ import {
|
|||||||
deletehiddenDangerInspectRecordApi,
|
deletehiddenDangerInspectRecordApi,
|
||||||
} from "@/assets/js/api/dangerousBigProject";
|
} from "@/assets/js/api/dangerousBigProject";
|
||||||
import { getCooperatorListApi } from "@/assets/js/api/cooperationUnit";
|
import { getCooperatorListApi } from "@/assets/js/api/cooperationUnit";
|
||||||
|
import {
|
||||||
|
getEnterpriseInfoList
|
||||||
|
} from "@/assets/js/api/laborPerson";
|
||||||
export default {
|
export default {
|
||||||
props: ["id", "isSuperDanger"],
|
props: ["id", "isSuperDanger"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
responsibilityList: [],
|
||||||
ops: {
|
ops: {
|
||||||
scrollPanel: {
|
scrollPanel: {
|
||||||
scrollingX: false,
|
scrollingX: false,
|
||||||
@ -1245,8 +1262,19 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.bindQRCode();
|
this.bindQRCode();
|
||||||
});
|
});
|
||||||
|
this.getProjectList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//获取企业 || 劳务公司 列表
|
||||||
|
getProjectList() {
|
||||||
|
let data = {
|
||||||
|
projectSn: this.projectSn,
|
||||||
|
// enterpriseTypeId: this.enterpriseTypeId,
|
||||||
|
};
|
||||||
|
getEnterpriseInfoList(data).then((res) => {
|
||||||
|
this.responsibilityList = res.result;
|
||||||
|
});
|
||||||
|
},
|
||||||
// 打印
|
// 打印
|
||||||
printBtn() {
|
printBtn() {
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
|
|||||||
@ -161,7 +161,7 @@
|
|||||||
clearable>
|
clearable>
|
||||||
</el-cascader> -->
|
</el-cascader> -->
|
||||||
<el-select
|
<el-select
|
||||||
v-model="addForm.responsibilityCompany"
|
v-model="addForm.responsibilityCompanyId"
|
||||||
placeholder="请选择责任分包单位"
|
placeholder="请选择责任分包单位"
|
||||||
@change="unitChange"
|
@change="unitChange"
|
||||||
disabled
|
disabled
|
||||||
@ -518,7 +518,7 @@ export default {
|
|||||||
planTime: "",
|
planTime: "",
|
||||||
buildTime: "",
|
buildTime: "",
|
||||||
constructionLocation: "",
|
constructionLocation: "",
|
||||||
responsibilityCompany: "",
|
responsibilityCompanyId: "",
|
||||||
securityConstructionSchemeType: false,
|
securityConstructionSchemeType: false,
|
||||||
specialConstructionSchemeType: false,
|
specialConstructionSchemeType: false,
|
||||||
technicalDisclosureType: false,
|
technicalDisclosureType: false,
|
||||||
@ -626,18 +626,21 @@ export default {
|
|||||||
this.fileList = JSON.parse(this.addForm.technicalDisclosureFile);
|
this.fileList = JSON.parse(this.addForm.technicalDisclosureFile);
|
||||||
this.addForm.technicalDisclosureType =
|
this.addForm.technicalDisclosureType =
|
||||||
this.addForm.technicalDisclosureType == 2 ? true : false;
|
this.addForm.technicalDisclosureType == 2 ? true : false;
|
||||||
this.fileList3 = JSON.parse(
|
|
||||||
this.addForm.securityConstructionSchemeFile
|
|
||||||
);
|
|
||||||
this.addForm.securityConstructionSchemeType =
|
|
||||||
this.addForm.securityConstructionSchemeType == 2 ? true : false;
|
|
||||||
this.fileList2 = JSON.parse(
|
this.fileList2 = JSON.parse(
|
||||||
this.addForm.specialConstructionSchemeFile
|
this.addForm.specialConstructionSchemeFile
|
||||||
);
|
);
|
||||||
this.addForm.specialConstructionSchemeType =
|
this.addForm.specialConstructionSchemeType =
|
||||||
this.addForm.specialConstructionSchemeType == 2 ? true : false;
|
this.addForm.specialConstructionSchemeType == 2 ? true : false;
|
||||||
|
|
||||||
|
this.fileList3 = JSON.parse(
|
||||||
|
this.addForm.securityConstructionSchemeFile
|
||||||
|
);
|
||||||
|
this.addForm.securityConstructionSchemeType =
|
||||||
|
this.addForm.securityConstructionSchemeType == 2 ? true : false;
|
||||||
|
|
||||||
}
|
}
|
||||||
this.checkList = this.addForm.controlItemList;
|
this.checkList = this.addForm.controlItemList?this.addForm.controlItemList:[];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
queryTypeList() {
|
queryTypeList() {
|
||||||
@ -752,6 +755,8 @@ export default {
|
|||||||
console.log(this.checkList);
|
console.log(this.checkList);
|
||||||
},
|
},
|
||||||
checkChidren(val) {
|
checkChidren(val) {
|
||||||
|
console.log(val,789654)
|
||||||
|
console.log(this.checkList,789654)
|
||||||
let arr = [],
|
let arr = [],
|
||||||
arr2 = [],
|
arr2 = [],
|
||||||
allCheck = true;
|
allCheck = true;
|
||||||
@ -962,7 +967,7 @@ export default {
|
|||||||
this.$message.error("请选择施工时间!");
|
this.$message.error("请选择施工时间!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!this.addForm.responsibilityCompany) {
|
if (!this.addForm.responsibilityCompanyId) {
|
||||||
this.$message.error("请选择责任分包单位!");
|
this.$message.error("请选择责任分包单位!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -994,7 +999,7 @@ export default {
|
|||||||
: "",
|
: "",
|
||||||
planEndTime: this.addForm.planTime[1] ? this.addForm.planTime[1] : "",
|
planEndTime: this.addForm.planTime[1] ? this.addForm.planTime[1] : "",
|
||||||
// typeDescribeId: this.addForm.typeDescribeId.join(','),
|
// typeDescribeId: this.addForm.typeDescribeId.join(','),
|
||||||
responsibilityCompany: this.addForm.responsibilityCompany,
|
responsibilityCompanyId: this.addForm.responsibilityCompanyId,
|
||||||
securityConstructionSchemeType: this.addForm
|
securityConstructionSchemeType: this.addForm
|
||||||
.securityConstructionSchemeType
|
.securityConstructionSchemeType
|
||||||
? 2
|
? 2
|
||||||
@ -1003,17 +1008,29 @@ export default {
|
|||||||
.specialConstructionSchemeType
|
.specialConstructionSchemeType
|
||||||
? 2
|
? 2
|
||||||
: 1,
|
: 1,
|
||||||
technicalDisclosureType: this.addForm.specialConstructionSchemeType
|
technicalDisclosureType: this.addForm.technicalDisclosureType
|
||||||
? 2
|
? 2
|
||||||
: 1,
|
: 1,
|
||||||
typeDescribeList,
|
typeDescribeList,
|
||||||
controlItemList: this.checkList,
|
controlItemList: this.checkList?this.checkList:null,
|
||||||
technicalDisclosureFile: JSON.stringify(this.fileList),
|
technicalDisclosureFile: JSON.stringify(this.fileList),
|
||||||
securityConstructionSchemeFile: JSON.stringify(this.fileList3),
|
securityConstructionSchemeFile: JSON.stringify(this.fileList3),
|
||||||
specialConstructionSchemeFile: JSON.stringify(this.fileList2),
|
specialConstructionSchemeFile: JSON.stringify(this.fileList2),
|
||||||
id: this.addForm.id,
|
id: this.addForm.id,
|
||||||
};
|
};
|
||||||
data.projectSn = this.projectSn;
|
data.projectSn = this.projectSn;
|
||||||
|
if(data.responsibilityCompanyId){
|
||||||
|
let find = this.responsibilityList.find(item => {
|
||||||
|
return item.id == data.responsibilityCompanyId
|
||||||
|
})
|
||||||
|
data.responsibilityCompany = find.enterpriseName;
|
||||||
|
}
|
||||||
|
if(data.personLiableId){
|
||||||
|
let find = this.personList.find(item => {
|
||||||
|
return item.userId == data.personLiableId
|
||||||
|
})
|
||||||
|
data.personLiable = find.realName;
|
||||||
|
}
|
||||||
editDangerousEngineeringRecordApi(data).then((res) => {
|
editDangerousEngineeringRecordApi(data).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user