| | |
| | | const s_url = sessionObj.url; // 请求地址 |
| | | const s_data = sessionObj.data; // 请求数据 |
| | | const s_time = sessionObj.time; // 请求时间 |
| | | const interval = 10; // 间隔时间(ms),小于此时间视为重复提交 |
| | | const interval = 1; // 间隔时间(ms),小于此时间视为重复提交 |
| | | if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url && s_url!=='/system/common/uploadFile') { |
| | | const message = '数据正在处理,请勿重复提交'; |
| | | console.warn(`[${s_url}]: ` + message) |
| | |
| | | </el-row> |
| | | <el-table :data="state.planPersons" :border="true" style="margin: 20px 0"> |
| | | <el-table-column label="序号" width="60" align="center" type="index"></el-table-column> |
| | | <el-table-column label="评价组成员" prop="person.name" header-align="center" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="专业能力/资格证书" prop="person.certificateNo" header-align="center" :show-overflow-tooltip="true"> |
| | | <el-table-column label="评价组成员" prop="person.name" align="center" :show-overflow-tooltip="true"/> |
| | | <el-table-column label="专业能力/资格证书" prop="person.certificateNo" align="center" :show-overflow-tooltip="true"> |
| | | <template #default="scope"> |
| | | {{ getCertNo(scope.row) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="承担工作" prop="work" header-align="center" class-name="small-padding fixed-width"></el-table-column> |
| | | <el-table-column label="承诺后期前往现场勘验" prop="laterPromise" header-align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="承担工作" prop="work" align="center" class-name="small-padding fixed-width"></el-table-column> |
| | | <el-table-column label="承诺后期前往现场勘验" prop="laterPromise" align="center" class-name="small-padding fixed-width"> |
| | | <template #default="scope"> |
| | | {{(scope.row.laterPromise==1 || scope.row.laterPromise==true)?'是':'否'}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="未到现场勘验原因" prop="reason" header-align="center" class-name="small-padding fixed-width"></el-table-column> |
| | | <el-table-column label="是否已告知" header-align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="未到现场勘验原因" prop="reason" align="center" class-name="small-padding fixed-width"></el-table-column> |
| | | <el-table-column label="是否已告知" align="center" class-name="small-padding fixed-width"> |
| | | <template #default="scope"> |
| | | <el-radio-group v-model="scope.row.informed" size="large" @change="(value)=>changePerson(value,scope.row)"> |
| | | <el-radio :label="1" size="large">是</el-radio> |
| | |
| | | if(userInfo.identity === 0){ |
| | | isAmin.value = true; |
| | | } |
| | | // getWorksList(props.projectId) |
| | | }); |
| | | if(props.projectId){ |
| | | getWorksList(props.projectId) |
| | | } |
| | | |
| | | }); |
| | | |
| | | const riskOpen = async (type,val) => { |
| | | state.formData.projectId = val |
| | | state.projectId = val |
| | | await getWorksList(val) |
| | | // await getWorksList(val) |
| | | if(type === 'detail' || type === 'edit' ){ |
| | | const res = await getWorkDetail({projectId: val}) |
| | | if(res.code == 200){ |
| | |
| | | if (res.code == 200) { |
| | | ElMessage.success('保存成功') |
| | | formRef.value.clearValidate(); |
| | | emit('getNextStatus', res.data); |
| | | emit('getNextStatus', state.projectId); |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | | } |
| | |
| | | auserId: null, |
| | | estimateSchedules: [ |
| | | { |
| | | id: 1, |
| | | id: null, |
| | | sort: 1, |
| | | name: '勘验准备', |
| | | startDate: '', |
| | |
| | | projectId: null |
| | | }, |
| | | { |
| | | id: 2, |
| | | id: null, |
| | | sort: 2, |
| | | name: '现场勘验', |
| | | startDate: '', |
| | |
| | | projectId: null |
| | | }, |
| | | { |
| | | id: 3, |
| | | id: null, |
| | | sort: 3, |
| | | name: '材料分析整理', |
| | | startDate: '', |
| | |
| | | projectId: null |
| | | }, |
| | | { |
| | | id: 4, |
| | | id: null, |
| | | sort: 4, |
| | | name: '评价报告编写', |
| | | startDate: '', |
| | |
| | | projectId: null |
| | | }, |
| | | { |
| | | id: 5, |
| | | id: null, |
| | | sort: 5, |
| | | name: '整改情况现场确认', |
| | | startDate: '', |
| | |
| | | projectId: null |
| | | }, |
| | | { |
| | | id: 6, |
| | | id: null, |
| | | sort: 6, |
| | | name: '整理评价报告', |
| | | startDate: '', |
| | |
| | | projectId: null |
| | | }, |
| | | { |
| | | id: 7, |
| | | id: null, |
| | | sort: 7, |
| | | name: '报告审核', |
| | | startDate: '', |
| | |
| | | projectId: null |
| | | }, |
| | | { |
| | | id: 8, |
| | | id: null, |
| | | sort: 8, |
| | | name: '报告修改', |
| | | startDate: '', |
| | |
| | | for(let i of state.formData.estimateSchedules){ |
| | | i.projectId = val |
| | | } |
| | | await getWorksList(val) |
| | | await getDeviceList(val) |
| | | // await getWorksList(val) |
| | | // await getDeviceList(val) |
| | | if(type === 'detail' || type === 'edit' ){ |
| | | const res = await getDetail({projectId: val}) |
| | | if(res.code == 200){ |
| | |
| | | if (res.code == 200) { |
| | | ElMessage.success('保存成功') |
| | | formRef.value.clearValidate(); |
| | | emit('getNextStatus', res.data); |
| | | emit('getNextStatus', state.formData.projectId); |
| | | |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | |
| | | if (res.code == 200) { |
| | | ElMessage.success('保存成功') |
| | | formRef.value.clearValidate(); |
| | | emit('getNextStatus', res.data); |
| | | emit('getNextStatus', val); |
| | | |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | |
| | | <el-form ref="formRef" :model="state.formData" :rules="state.rules" class="register-form" label-position="top"> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="10"> |
| | | <el-button type="primary" :disabled="projectType === 'edit'" @click="addUpload">新增附件列表</el-button> |
| | | <!-- <el-button type="primary" :disabled="projectType === 'edit'" @click="addUpload">新增附件列表</el-button>--> |
| | | <span style="font-size: 20px;font-weight: 600">附件列表</span> |
| | | <span style="font-size: 13px;color: rgb(232, 78, 79);font-weight: 400;margin-left: 10px">项目列表仅支持pdf、jpg、jpeg 等格式上传</span> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | if (res.code == 200) { |
| | | ElMessage.success('保存成功') |
| | | formRef.value.clearValidate(); |
| | | emit('getNextStatus', res.data); |
| | | emit('getNextStatus', val); |
| | | |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | |
| | | if(userInfo.identity === 0){ |
| | | isAmin.value = true; |
| | | } |
| | | if(props.projectId){ |
| | | getDetail(props.projectId) |
| | | } |
| | | |
| | | }); |
| | | |
| | | const riskOpen = async (type,val) => { |
| | | state.formData.projectId = val |
| | | state.projectId = val |
| | | if(type === 'detail' || type === 'edit' ){ |
| | | const getDetail = async (val) => { |
| | | const res = await getSiteCheckDetail({projectId: val}); |
| | | if(res.code == 200){ |
| | | state.formData = res.data; |
| | |
| | | ElMessage.warning(res.message) |
| | | } |
| | | } |
| | | |
| | | |
| | | const riskOpen = async (type,val) => { |
| | | state.formData.projectId = val |
| | | state.projectId = val |
| | | if(type === 'detail' || type === 'edit' ){ |
| | | // await getDetail(val) |
| | | } |
| | | if(type === 'add' || type === 'clickEdit') { |
| | | const valid = await formRef.value.validate(); |
| | | if(valid){ |
| | |
| | | } |
| | | } |
| | | formRef.value.clearValidate(); |
| | | emit('getNextStatus', res.data); |
| | | emit('getNextStatus', state.projectId); |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | | } |
| | |
| | | if (res.code == 200) { |
| | | ElMessage.success('保存成功') |
| | | formRef.value.clearValidate(); |
| | | emit('getNextStatus', res.data); |
| | | emit('getNextStatus', val); |
| | | |
| | | } else { |
| | | ElMessage.warning(res.message) |