完善了重点工程隐患评审功能

pull/2/head^2
water_xu 2024-04-28 18:31:09 +08:00
parent d2b5dddac1
commit 848987aad3
3 changed files with 19 additions and 1 deletions

View File

@ -52,6 +52,7 @@ export default {
data() { data() {
return { return {
KEYWORDS: '', KEYWORDS: '',
CORPINFO_ID: '',
OUTSOURCED_ID: '', OUTSOURCED_ID: '',
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
@ -71,7 +72,8 @@ export default {
} }
}, },
onLoad(e) { onLoad(e) {
this.OUTSOURCED_ID = e.OUTSOURCED_ID this.OUTSOURCED_ID = e.OUTSOURCED_ID,
this.CORPINFO_ID = this.$route.query.CORPINFO_ID
}, },
onShow(){ onShow(){
this.resetList() this.resetList()
@ -81,6 +83,7 @@ export default {
let resData = await getKeyProjectsCheckList({ let resData = await getKeyProjectsCheckList({
KEYWORDS: this.KEYWORDS, KEYWORDS: this.KEYWORDS,
OUTSOURCED_ID: this.OUTSOURCED_ID, OUTSOURCED_ID: this.OUTSOURCED_ID,
CORPINFO_ID: this.CORPINFO_ID,
showCount: this.pageSize, showCount: this.pageSize,
currentPage: this.currentPage, currentPage: this.currentPage,
}); });
@ -99,6 +102,7 @@ export default {
params: { params: {
KEYPROJECTCHECK_ID, KEYPROJECTCHECK_ID,
type, type,
CORPINFO_ID:this.CORPINFO_ID,
OUTSOURCED_ID:this.OUTSOURCED_ID OUTSOURCED_ID:this.OUTSOURCED_ID
} }
}) })

View File

@ -356,6 +356,8 @@ export default {
HIDDENLEVEL: '', HIDDENLEVEL: '',
HIDDENTYPE_NAME: '', HIDDENTYPE_NAME: '',
HIDDENTYPE: '', HIDDENTYPE: '',
HIDDENTYPE2_NAME: '',
HIDDENTYPE2: '',
SOURCE: '4', SOURCE: '4',
CORPINFO_ID: '', CORPINFO_ID: '',
HIDDENFINDDEPT: '', HIDDENFINDDEPT: '',
@ -396,6 +398,7 @@ export default {
async onLoad(event) { async onLoad(event) {
this.KEYPROJECTCHECK_ID = event.KEYPROJECTCHECK_ID this.KEYPROJECTCHECK_ID = event.KEYPROJECTCHECK_ID
this.OUTSOURCED_ID = event.OUTSOURCED_ID this.OUTSOURCED_ID = event.OUTSOURCED_ID
this.disabled = !(event.type === 'add' || event.type === 'edit'); this.disabled = !(event.type === 'add' || event.type === 'edit');
if (this.KEYPROJECTCHECK_ID) { if (this.KEYPROJECTCHECK_ID) {
await this.fnGetKeyProjectsCheckView() await this.fnGetKeyProjectsCheckView()
@ -492,6 +495,14 @@ export default {
if (list === 'hiddenTypeTreeList') { if (list === 'hiddenTypeTreeList') {
this.hiddenForm.HIDDENTYPE = e[0].id this.hiddenForm.HIDDENTYPE = e[0].id
this.hiddenForm.HIDDENTYPE_NAME = e[0].name this.hiddenForm.HIDDENTYPE_NAME = e[0].name
//
this.hiddenTypeTreeList.forEach((enode) => {
if (JSON.stringify(enode).includes(e[0].id) && JSON.stringify(enode).includes(e[0].name)){
// CORPINFO_ID = this.$route.query.CORPINFO_ID,
this.hiddenForm.HIDDENTYPE2 = enode.id
this.hiddenForm.HIDDENTYPE2_NAME = enode.name
}
})
} }
if (list === 'rectificationSiteuserColumns') { if (list === 'rectificationSiteuserColumns') {
this.hiddenForm.RECTIFICATIONDEPT = e[0].UNITS_ID this.hiddenForm.RECTIFICATIONDEPT = e[0].UNITS_ID
@ -636,6 +647,8 @@ export default {
FOREIGN_KEY, FOREIGN_KEY,
TYPE: 102, TYPE: 102,
CORPINFO_ID: this.userInfo.CORPINFO_ID, CORPINFO_ID: this.userInfo.CORPINFO_ID,
// CORPINFO_ID: this.CORPINFO_ID,
}, },
loading:false loading:false
}) })

View File

@ -101,6 +101,7 @@ export default {
url: '/pages/key-project-management/safety-environmental-inspection/detail-list', url: '/pages/key-project-management/safety-environmental-inspection/detail-list',
params: { params: {
OUTSOURCED_ID, OUTSOURCED_ID,
CORPINFO_ID: this.CORPINFO_ID
} }
}) })
}, },