| | |
| | | <div v-if="ifNormal"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="异常通知部门" prop="execDepartment"> |
| | | <el-select v-model="inspectionRecordDetailForm.noticeDepId" filterable clearable class="analyseUnit_input" @change="changeExec"> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.department" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="异常通知人员" prop="noticeUid"> |
| | | <el-select v-model="inspectionRecordDetailForm.noticeUid" clearable filterable :disabled="ifShow" class="input"> |
| | | <el-option |
| | |
| | | <el-col :span="24"> |
| | | <el-form-item label="整改时间" prop="fixTime"> |
| | | <el-date-picker placeholder="选择时间" v-model="inspectionRecordDetailForm.fixTime" class="input" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" :disabled="ifShow"></el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="异常整改部门" prop="execDepartment"> |
| | | <el-select v-model="inspectionRecordDetailForm.fixDepId" filterable clearable class="analyseUnit_input" @change="changeExec"> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.department" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | :headers="header" |
| | | :data="uploadForm" |
| | | list-type="picture-card" |
| | | :file-list="fileList" |
| | | v-model="inspectionRecordDetailForm.img" |
| | | :file-list="inspectionRecordDetailForm.imgInfoList" |
| | | v-model="inspectionRecordDetailForm.imgInfoList" |
| | | :on-change="handleChangeFile" |
| | | :on-success="onFileSuccess" |
| | | :multiple="false" |
| | |
| | | execUid: null, |
| | | fixTime: null, |
| | | fixUid: null, |
| | | img: null, |
| | | imgInfoList: [], |
| | | info: null, |
| | | noticeUid: null, |
| | | result: 1, |
| | | taskId: null, |
| | | unitId: null |
| | | unitId: null, |
| | | fixDepId:null, |
| | | noticeDepId:null, |
| | | }, |
| | | inspectionRecordDetailFormRules:{ |
| | | img: [{ required: true, validator: validateImg, trigger: 'blur' }], |
| | |
| | | this.inspectionRecordDetailForm.fixTime = null |
| | | this.inspectionRecordDetailForm.fixUid = null |
| | | this.inspectionRecordDetailForm.info = null |
| | | this.inspectionRecordDetailForm.img = null |
| | | this.inspectionRecordDetailForm.img = [] |
| | | } |
| | | this.$refs["inspectionRecordDetailForm"].validate((valid) =>{ |
| | | if(valid){ |
| | |
| | | }, |
| | | onFileSuccess(response){ |
| | | if(response.code === '200'){ |
| | | this.inspectionRecordDetailForm.img = response.result.path |
| | | this.fileList.push({url:process.env.IMG_API + response.result.path}) |
| | | this.inspectionRecordDetailForm.img.push({url:process.env.IMG_API + response.result.path}) |
| | | this.$notify({ |
| | | type:'success', |
| | | duration:2000, |
| | |
| | | cancelButtonText:'取消', |
| | | type:'warning', |
| | | }).then(()=> { |
| | | this.inspectionRecordDetailForm.img = null |
| | | this.fileList = [] |
| | | |
| | | }) |
| | | }, |
| | | } |