添加必填校验
This commit is contained in:
parent
9c67e950f9
commit
f293dc9931
|
|
@ -145,7 +145,14 @@ export function getNum(data) {
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 依据供应商id 和工程id 查询 必填资料
|
||||||
|
export function getProRequest(data) {
|
||||||
|
return request({
|
||||||
|
url: '/project/pro/getProRequest',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 获取业主首页表格数据
|
* 获取业主首页表格数据
|
||||||
* @param data
|
* @param data
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<bns-cons-info-tabs :items="consUnitInformationItems"></bns-cons-info-tabs>
|
<bns-cons-info-tabs :items="consUnitInformationItems"></bns-cons-info-tabs>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="" name="second">
|
<el-tab-pane label="" name="second">
|
||||||
<span slot="label"><i style="color:red">*</i> 企业资质</span>
|
<span slot="label"><i v-if="isRequest.includes(1)" style="color:red">*</i> 企业资质</span>
|
||||||
<bns-file-list-tabs
|
<bns-file-list-tabs
|
||||||
:items="enterpriseQualificationItems"
|
:items="enterpriseQualificationItems"
|
||||||
:isShowOptions="paramsData.isExamine"
|
:isShowOptions="paramsData.isExamine"
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="安全协议书" name="third">
|
<el-tab-pane label="安全协议书" name="third">
|
||||||
|
<span slot="label"><i v-if="isRequest.includes(2)" style="color:red">*</i> 安全协议书</span>
|
||||||
<bns-file-list-tabs
|
<bns-file-list-tabs
|
||||||
:items="securityAgreementFileItems"
|
:items="securityAgreementFileItems"
|
||||||
:isShowOptions="paramsData.isExamine"
|
:isShowOptions="paramsData.isExamine"
|
||||||
|
|
@ -38,6 +39,7 @@
|
||||||
/>
|
/>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="四措两案" name="fourth">
|
<el-tab-pane label="四措两案" name="fourth">
|
||||||
|
<span slot="label"><i v-if="isRequest.includes(3)" style="color:red">*</i> 四措两案</span>
|
||||||
<bns-file-list-tabs
|
<bns-file-list-tabs
|
||||||
:items="fourMeasuresAndTwoMeasuresFileItems"
|
:items="fourMeasuresAndTwoMeasuresFileItems"
|
||||||
:isShowOptions="paramsData.isExamine"
|
:isShowOptions="paramsData.isExamine"
|
||||||
|
|
@ -448,7 +450,7 @@ import {
|
||||||
getConsEquipList,
|
getConsEquipList,
|
||||||
getConsMaterialsList,
|
getConsMaterialsList,
|
||||||
getConstructionPersonnelDetails,
|
getConstructionPersonnelDetails,
|
||||||
getEquipDetails,
|
getEquipDetails, getProRequest,
|
||||||
} from '@/api/pro/outsourcingPro'
|
} from '@/api/pro/outsourcingPro'
|
||||||
import { selectFile, downloadFile, dictTableOption } from '@/api/tool/select'
|
import { selectFile, downloadFile, dictTableOption } from '@/api/tool/select'
|
||||||
import BnsTimelineTabs from '@/components/pro-tabs/bns-timeline-tabs.vue'
|
import BnsTimelineTabs from '@/components/pro-tabs/bns-timeline-tabs.vue'
|
||||||
|
|
@ -456,6 +458,7 @@ import BnsTimelineTabs from '@/components/pro-tabs/bns-timeline-tabs.vue'
|
||||||
import { approvalHistory } from '@/api/terminalEquipment/deviceInformation'
|
import { approvalHistory } from '@/api/terminalEquipment/deviceInformation'
|
||||||
import { submitPersonApproval } from '@/api/pro/subManagement/subList'
|
import { submitPersonApproval } from '@/api/pro/subManagement/subList'
|
||||||
import { decryptCBC } from '@/utils/aescbc'
|
import { decryptCBC } from '@/utils/aescbc'
|
||||||
|
import { getProOptions } from '@/api/pro/subManagement/approval/personApproval'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -533,6 +536,7 @@ export default {
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
personTotal: 0,
|
personTotal: 0,
|
||||||
|
isRequest:'1',
|
||||||
equipTotal: 0,
|
equipTotal: 0,
|
||||||
materialsTotal: 0,
|
materialsTotal: 0,
|
||||||
//承包商单位信息
|
//承包商单位信息
|
||||||
|
|
@ -670,6 +674,7 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getReason(e) {
|
getReason(e) {
|
||||||
const index = this.reasonObj.findIndex(item => item.auditType === e.auditType)
|
const index = this.reasonObj.findIndex(item => item.auditType === e.auditType)
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
|
|
@ -693,6 +698,7 @@ export default {
|
||||||
},
|
},
|
||||||
/**初始化数据*/
|
/**初始化数据*/
|
||||||
init() {
|
init() {
|
||||||
|
this.getProRequests();
|
||||||
this.approvalHistory()
|
this.approvalHistory()
|
||||||
this.getConsDetailsInfo()
|
this.getConsDetailsInfo()
|
||||||
this.getEnterpriseQualification()
|
this.getEnterpriseQualification()
|
||||||
|
|
@ -769,6 +775,19 @@ export default {
|
||||||
this.enterpriseQualificationItems = response.data
|
this.enterpriseQualificationItems = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
/** 获取工程下拉选 */
|
||||||
|
getProRequests() {
|
||||||
|
console.log('this.paramsData.consUuid:' + this.paramsData.consUuid)
|
||||||
|
console.log('this.paramsData.proId:' + this.paramsData.proId)
|
||||||
|
let dataParam={
|
||||||
|
supId:this.paramsData.consUuid,
|
||||||
|
proId: this.paramsData.proId
|
||||||
|
}
|
||||||
|
getProRequest(dataParam).then(res => {
|
||||||
|
this.isRequest=res.msg;
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
/**获取安全协议书*/
|
/**获取安全协议书*/
|
||||||
getSecurityAgreement() {
|
getSecurityAgreement() {
|
||||||
const params = {
|
const params = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue