| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20"> |
| | | <el-form-item label="风险研判报告记录附件"> |
| | | <el-form-item label="风险研判报告记录附件" prop="judgePicturePath"> |
| | | <el-upload accept="image/*" :auto-upload="true" :on-exceed="showTip" :on-preview="handlePictureCardPreview" :limit='imgLimit' v-model:file-list="fileList" :http-request="upload" :action="uploadUrl" list-type="picture-card" :before-remove="beforeRemove" :before-upload="getUploadUrl"> |
| | | <el-icon><Plus /></el-icon> |
| | | <template #tip> |
| | |
| | | <div class="d-row"> |
| | | <div class="d-tit">jsa风险研判结论</div><div class="d-cont">{{detail.judgeRecord}}</div> |
| | | </div> |
| | | <div class="d-row"> |
| | | <div class="d-row" v-if="detail.judgeJsaCode && detail.judgeJsaCode !== ''"> |
| | | <div class="d-tit">报告编号</div><div class="d-cont">{{detail.judgeJsaCode}}</div> |
| | | </div> |
| | | <div class="d-row"> |
| | |
| | | setup(props: any, context: any) { |
| | | const jsaFormRef = ref(); |
| | | const approveLevelDialogRef = ref(); |
| | | const checkFile = (rule: any, value: any, callback: any) => { |
| | | if(state.fileList.length == 0){ |
| | | callback(new Error("请上传附件")) |
| | | } else { |
| | | callback(); |
| | | } |
| | | } |
| | | const state = reactive<dataState>({ |
| | | title: '', |
| | | disabled: true, |
| | |
| | | judgePicturePath: [] |
| | | }, |
| | | jsaFormRules: { |
| | | judgeRecord: [{ required: true, message: '请填写jsa风险研判结论', trigger: 'blur' }] |
| | | judgeRecord: [{ required: true, message: '请填写jsa风险研判结论', trigger: 'blur' }], |
| | | judgePicturePath: [{ required: true,validator: checkFile, trigger: 'blur' }] |
| | | }, |
| | | fileList: [], |
| | | imgLimit: 3, |
| | |
| | | getReport, |
| | | submitApproveRule, |
| | | showReportDialog, |
| | | checkFile, |
| | | handlePreview, |
| | | getUploadUrl, |
| | | upload, |