12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610 |
- <template>
- <div class="app-container">
- <el-form
- :model="queryParams"
- ref="queryForm"
- :inline="true"
- v-show="showSearch"
- label-width="68px"
- >
- <!-- <el-form-item label="受检单位_id" prop="inspectedUnitId">
- <el-input
- v-model="queryParams.inspectedUnitId"
- placeholder="请输入受检单位_id"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="受检单位" prop="inspectedUnit">
- <el-input
- v-model="queryParams.inspectedUnit"
- placeholder="请输入受检单位"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="类型" prop="inspectionType">
- <el-select v-model="queryParams.inspectionType" placeholder="请选择类型" clearable size="small">
- <el-option label="请选择字典生成" value="" />
- </el-select>
- </el-form-item>
- <el-form-item label="单位检查_id" prop="unitCheckId">
- <el-input
- v-model="queryParams.unitCheckId"
- placeholder="请输入单位检查_id"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="检查单位" prop="unitCheck">
- <el-input
- v-model="queryParams.unitCheck"
- placeholder="请输入检查单位"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="检查时间" prop="inspectionTime">
- <el-input
- v-model="queryParams.inspectionTime"
- placeholder="请输入检查时间"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="检查地点" prop="inspectionSite">
- <el-input
- v-model="queryParams.inspectionSite"
- placeholder="请输入检查地点"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="分值" prop="score">
- <el-input
- v-model="queryParams.score"
- placeholder="请输入分值"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="整改时间" prop="rectificationTime">
- <el-input
- v-model="queryParams.rectificationTime"
- placeholder="请输入整改时间"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="当前状态" prop="currentState">
- <el-input
- v-model="queryParams.currentState"
- placeholder="请输入当前状态"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="是由" prop="question">
- <el-input
- v-model="queryParams.question"
- placeholder="请输入是由"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="创建人ID" prop="createUserId">
- <el-input
- v-model="queryParams.createUserId"
- placeholder="请输入创建人ID"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="创建人" prop="createUser">
- <el-input
- v-model="queryParams.createUser"
- placeholder="请输入创建人"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="负责人ID" prop="chargePeopleId">
- <el-input
- v-model="queryParams.chargePeopleId"
- placeholder="请输入负责人ID"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="负责人" prop="chargePeople">
- <el-input
- v-model="queryParams.chargePeople"
- placeholder="请输入负责人"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="图片举证" prop="pictureProof">
- <el-input
- v-model="queryParams.pictureProof"
- placeholder="请输入图片举证"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="文件举证" prop="documentProof">
- <el-input
- v-model="queryParams.documentProof"
- placeholder="请输入文件举证"
- clearable
- size="small"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>-->
- <!-- <el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
- </el-form-item>-->
- </el-form>
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5" class="isSubmit">
- <el-radio-group
- v-model="queryParams.caoZuoType"
- @change="caoZuoTypefun"
- >
- <el-radio-button label="1">加分</el-radio-button>
- <el-radio-button label="0">减分</el-radio-button>
- </el-radio-group>
- </el-col>
- </el-row>
- <hr />
- <el-row :gutter="10" class="mb8">
- <el-col :span="1.5">
- <el-button
- type="success"
- v-if="queryParams.caoZuoType == 0"
- style="background: #1d96ff"
- @click="handleAdd"
- v-hasPermi="['bdglregular:regularinfo:jian']"
- >减分录入</el-button
- >
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="success"
- v-if="queryParams.caoZuoType == 1"
- style="background: #1d96ff"
- v-hasPermi="['bdglregular:regularinfo:jia']"
- @click="handleAdd"
- >加分录入</el-button
- >
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- v-hasPermi="['bdglregular:regularinfo:remove']"
- >删除</el-button
- >
- </el-col>
- <!-- <el-col :span="1.5">
- <el-button
- type="success"
- plain
- icon="el-icon-edit"
- size="mini"
- :disabled="single"
- @click="handleUpdate"
- v-hasPermi="['bdglregular:regularinfo:edit']"
- >修改</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="danger"
- plain
- icon="el-icon-delete"
- size="mini"
- :disabled="multiple"
- @click="handleDelete"
- v-hasPermi="['bdglregular:regularinfo:remove']"
- >删除</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="warning"
- plain
- icon="el-icon-download"
- size="mini"
- :loading="exportLoading"
- @click="handleExport"
- v-hasPermi="['bdglregular:regularinfo:export']"
- >导出</el-button>
- </el-col>-->
- <!-- <right-toolbar
- :showSearch.sync="showSearch"
- @queryTable="getList"
- ></right-toolbar> -->
- </el-row>
- <el-table
- v-loading="loading"
- :data="regularinfoList"
- :header-cell-style="{ background: '#003C69', color: 'white' }"
- @selection-change="handleSelectionChange"
- >
- <el-table-column type="selection" width="55" align="center" />
- <el-table-column label="序号" align="center" type="index" />
- <el-table-column
- :label="queryParams.caoZuoType == 0?'受检单位':'单位'"
- align="center"
- key="inspectedUnit"
- prop="inspectedUnit"
- />
- <el-table-column
- label="类型"
- align="center"
- key="inspectionType"
- prop="inspectionType"
- >
- <template slot-scope="scope">
- <dict-tag
- :options="dict.type.inspectionType"
- :value="scope.row.inspectionType"
- />
- </template>
- </el-table-column>
- <el-table-column
- label="检查单位"
- align="center"
- prop="unitCheck"
- width="150"
- key="unitCheck"
- v-if="queryParams.caoZuoType == 0"
- />
- <el-table-column
- label="检查时间"
- align="center"
- prop="inspectionTime"
- width="150px"
- key="inspectionTime"
- />
- <el-table-column
- width="250"
- show-overflow-tooltip
- label="检查地点"
- align="center"
- prop="inspectionSite"
- key="inspectionSite"
- />
- <el-table-column label="分值" align="center" key="score" prop="score">
- <template slot-scope="scope">
- <div style="color: rgb(255 106 0)" v-if="queryParams.caoZuoType == 0">
- {{ scope.row.score }}
- </div>
- <div style="color: rgb(2 255 2)" v-if="queryParams.caoZuoType == 1">
- {{ scope.row.score }}
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="当前状态"
- align="center"
- prop="currentState"
- v-if="queryParams.caoZuoType == 0"
- key="currentState"
- >
- <template slot-scope="scope">
- <div
- style="color: rgb(255 106 0)"
- v-if="scope.row.currentState == '未通过'"
- >
- {{ scope.row.currentState }}
- </div>
- <div style="color: #ffa500" v-if="scope.row.currentState == '待处理'">
- {{ scope.row.currentState }}
- </div>
- <div style="color: #3498db" v-if="scope.row.currentState == '待验收'">
- {{ scope.row.currentState }}
- </div>
- <div
- style="color: rgb(2 255 2)"
- v-if="scope.row.currentState == '已通过'"
- >
- {{ scope.row.currentState }}
- </div>
- <div style="color: #909399" v-if="scope.row.currentState == '已逾期'">
- {{ scope.row.currentState }}
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="事由"
- show-overflow-tooltip
- align="center"
- prop="question"
- key="question"
- />
- <el-table-column
- label="整改时间"
- align="center"
- prop="rectificationTime"
- v-if="queryParams.caoZuoType == 0"
- width="150px"
- key="rectificationTime"
- />
- <el-table-column
- label="操作"
- align="center"
- class-name="small-padding fixed-width"
- width="250"
- fixed="right"
- >
- <template slot-scope="scope">
- <el-button
- size="btk"
- type="text"
- v-if="
- scope.row.caoZuoType == '0' &&
- scope.row.isCaoZuoDept == 0 &&
- (scope.row.currentState == '未通过' ||
- scope.row.currentState == '待处理')
- "
- @click="handleUpdate(scope.row)"
- >整改</el-button
- >
- <el-button
- size="btu"
- type="text"
- @click="shenpifun(scope.row)"
- v-if="
- queryParams.caoZuoType == 0 &&
- scope.row.isShenPi == 0 &&
- scope.row.currentState == '待验收'
- "
- >审批</el-button
- >
- <!-- v-if="scope.row.unitCheckId==this.danWies" -->
- <!-- bdglregular:regularinfo:query -->
- <el-button
- v-if="scope.row.currentState == '待处理' && scope.row.isShenPi == 0"
- size="btu"
- type="text"
- @click="handleAdds(scope.row)"
- >修改</el-button
- >
- <el-button
- size="btd"
- type="text"
- @click="handleDelete(scope.row)"
- v-if="scope.row.isShenPi == 0"
- >删除</el-button
- >
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total > 0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- <!-- 添加或修改经常性检查对话框 -->
- <el-dialog
- :title="title"
- :visible.sync="open"
- width="500px"
- append-to-body
- :close-on-click-modal="false"
- >
- <el-form
- ref="form"
- :model="form"
- :rules="rules"
- :inline="true"
- label-width="120px"
- >
- <div class="jiben">基本信息</div>
- <el-form-item label="检查单位" prop="unitCheck" v-if="queryParams.caoZuoType == 0">
- <el-select
- v-model="form.unitCheck"
- @change="unitCheckIdfun"
- clearable
- placeholder="请选择检查单位"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
- >
- <el-option
- v-for="dict in unitId"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item :label="queryParams.caoZuoType == 0?'受检单位':'单位'" prop="inspectedUnit">
- <el-select
- v-model="form.inspectedUnit"
- @change="inspectedUnitfun"
- clearable
- :placeholder="queryParams.caoZuoType == 0?'请选择受检单位':'请选择单位'"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
- >
- <el-option
- v-for="dict in unitId"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="类型" prop="inspectionType">
- <el-select
- v-model="form.inspectionType"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
- clearable
- placeholder="请选择类型"
- >
- <el-option
- v-for="dict in inspectionType"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="检查时间" prop="inspectionTime" >
- <el-date-picker
- clearable
- size="small"
- v-model="form.inspectionTime"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择检查时间"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="检查地点" prop="inspectionSite">
- <el-input
- v-model="form.inspectionSite"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
- placeholder="请输入检查地点"
- />
- </el-form-item>
- <el-form-item label="分值" prop="score" v-if="jiannum == 0">
- <!-- <el-input v-model="form.score" type="number" @blur="scoreblur" :disabled="disabled" placeholder="请输入分值" /> -->
- <el-input-number
- v-model="form.score"
- controls-position="right"
- :min="0"
- ></el-input-number>
- </el-form-item>
- <el-form-item
- label="整改时间"
- prop="rectificationTime"
- v-if="queryParams.caoZuoType == 0"
- >
- <el-date-picker
- clearable
- size="small"
- v-model="form.rectificationTime"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择整改时间"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
- ></el-date-picker>
- </el-form-item>
- <el-form-item
- label="受检负责人"
- prop="chargePeople"
- v-if="jiannum != 0"
- >
- <el-select
- v-model="form.chargePeople"
- clearable
- @change="chargePeoplefun"
- placeholder="请选择受检负责人"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg != 3"
- >
- <el-option
- v-for="dict in peopleIds"
- :key="dict.id"
- :label="dict.name"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
- <div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
- <el-form-item label prop="question">
- <el-input
- v-model="form.question"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
- type="textarea"
- placeholder="请输入内容"
- />
- </el-form-item>
- <div class="jiben" v-if="jiannum != 0">整改措施</div>
- <el-form-item label prop="correctiveAction" v-if="jiannum != 0">
- <el-input
- v-model="form.correctiveAction"
- :disabled="disabled && btnnum != 0 && btnnum != 1 && zg != 3"
- type="textarea"
- placeholder="请输入内容"
- />
- </el-form-item>
- <div class="jiben" v-if="jiannum != 0">图片举证</div>
- <el-form-item label prop="pictureProof" v-if="jiannum != 0">
- <imageUpload v-model="form.pictureProof" :limit="1" />
- </el-form-item>
- <div class="jiben" v-if="jiannum != 0">文件举证</div>
- <el-form-item label prop="documentProof" v-if="jiannum != 0">
- <fileUpload
- v-model="form.documentProof"
- :limit="1"
- :class="{ active: isActive }"
- />
- </el-form-item>
- <div class="jiben" v-if="currentState == 1">未通过原因</div>
- <el-form-item label prop="score" v-if="currentState == 1">
- <el-input
- v-model="form.reasonReturn"
- :disabled="disabled || curr"
- type="textarea"
- placeholder="请输入未通过原因"
- />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button
- type="primary"
- @click="submitForm"
- v-if="btnnum != 0 && btnnum != 1 && zg != 3"
- >确 定</el-button
- >
- <el-button
- type="primary"
- @click="submitForm2"
- v-if="btnnum != 0 && btnnum != 1 && zg == 3"
- >确 定</el-button
- >
- <el-button type="primary" @click="tongguofun" v-if="btnnum == 0"
- >通 过</el-button
- >
- <el-button type="primary" @click="zhenggaifun" v-if="btnnum == 0"
- >重新整改</el-button
- >
- <el-button type="primary" @click="weitongguofun" v-if="btnnum == 1"
- >确 定</el-button
- >
- <el-button @click="cancel" size="btn">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- :title="title"
- :visible.sync="open1"
- width="500px"
- append-to-body
- :close-on-click-modal="false"
- >
- <el-form
- ref="form"
- :model="form"
- :rules="rules"
- :inline="true"
- label-width="120px"
- >
- <div class="jiben">基本信息</div>
- <el-form-item label="检查单位" prop="unitCheck" v-if="queryParams.caoZuoType == 0">
- <el-select
- v-model="form.unitCheck"
- @change="unitCheckIdfun"
- clearable
- placeholder="请选择检查单位"
- :disabled="disabled"
- >
- <el-option
- v-for="dict in unitId"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item :label="queryParams.caoZuoType == 0?'受检单位':'单位'" prop="inspectedUnit">
- <el-select
- v-model="form.inspectedUnit"
- @change="inspectedUnitfun"
- clearable
- :placeholder="queryParams.caoZuoType == 0?'请选择受检单位':'请选择单位'"
- :disabled="disabled"
- >
- <el-option
- v-for="dict in unitId"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="类型" prop="inspectionType">
- <el-select
- v-model="form.inspectionType"
- :disabled="disabled"
- clearable
- placeholder="请选择类型"
- >
- <el-option
- v-for="dict in inspectionType"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="检查时间" prop="inspectionTime" >
- <el-date-picker
- clearable
- size="small"
- v-model="form.inspectionTime"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择检查时间"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="检查地点" prop="inspectionSite">
- <el-input
- v-model="form.inspectionSite"
- :disabled="disabled"
- placeholder="请输入检查地点"
- />
- </el-form-item>
- <el-form-item label="分值" prop="score">
- <!-- <el-input v-model="form.score" type="number" @blur="scoreblur" :disabled="disabled" placeholder="请输入分值" /> -->
- <el-input-number
- v-model="form.score"
- controls-position="right"
- :min="0"
- ></el-input-number>
- </el-form-item>
- <el-form-item
- label="整改时间"
- prop="rectificationTime"
- v-if="queryParams.caoZuoType == 0"
- >
- <el-date-picker
- clearable
- size="small"
- v-model="form.rectificationTime"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择整改时间"
- :disabled="disabled"
- ></el-date-picker>
- </el-form-item>
- <div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
- <div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
- <el-form-item label prop="question">
- <el-input
- v-model="form.question"
- :disabled="disabled"
- type="textarea"
- placeholder="请输入内容"
- />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">确 定</el-button>
- <el-button @click="open1 = false" size="btn">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog
- :title="title"
- :visible.sync="open3"
- width="500px"
- append-to-body
- :close-on-click-modal="false"
- >
- <el-form
- ref="form"
- :model="form"
- :rules="rules"
- :inline="true"
- label-width="120px"
- >
- <div class="jiben">基本信息</div>
- <el-form-item label="检查单位" prop="unitCheck" v-if="queryParams.caoZuoType == 0">
- <el-select
- v-model="form.unitCheck"
- @change="unitCheckIdfun"
- clearable
- placeholder="请选择检查单位"
- :disabled="disabled"
- >
- <el-option
- v-for="dict in unitId"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item :label="queryParams.caoZuoType == 0?'受检单位':'单位'" prop="inspectedUnit">
- <el-select
- v-model="form.inspectedUnit"
- @change="inspectedUnitfun"
- clearable
- :placeholder="queryParams.caoZuoType == 0?'请选择受检单位':'请选择单位'"
- :disabled="disabled"
- >
- <el-option
- v-for="dict in unitId"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="类型" prop="inspectionType">
- <el-select
- v-model="form.inspectionType"
- :disabled="disabled"
- clearable
- placeholder="请选择类型"
- >
- <el-option
- v-for="dict in inspectionType"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="检查时间" prop="inspectionTime" >
- <el-date-picker
- clearable
- size="small"
- v-model="form.inspectionTime"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择检查时间"
- :disabled="disabled"
- ></el-date-picker>
- </el-form-item>
- <el-form-item label="检查地点" prop="inspectionSite">
- <el-input
- v-model="form.inspectionSite"
- :disabled="disabled"
- placeholder="请输入检查地点"
- />
- </el-form-item>
- <el-form-item label="分值" prop="score" v-if="jiannum == 0">
- <!-- <el-input v-model="form.score" type="number" @blur="scoreblur" :disabled="disabled" placeholder="请输入分值" /> -->
- <el-input-number
- v-model="form.score"
- controls-position="right"
- :min="0"
- ></el-input-number>
- </el-form-item>
- <el-form-item
- label="整改时间"
- prop="rectificationTime"
- v-if="queryParams.caoZuoType == 0"
- >
- <el-date-picker
- clearable
- size="small"
- v-model="form.rectificationTime"
- type="datetime"
- default-time="00:00:00"
- value-format="yyyy-MM-dd HH:mm:ss"
- placeholder="选择整改时间"
- :disabled="disabled"
- ></el-date-picker>
- </el-form-item>
- <el-form-item
- label="受检负责人"
- prop="chargePeople"
- v-if="jiannum != 0"
- >
- <el-select
- v-model="form.chargePeople"
- clearable
- @change="chargePeoplefun"
- placeholder="请选择受检负责人"
- :disabled="disabled"
- >
- <el-option
- v-for="dict in peopleIds"
- :key="dict.id"
- :label="dict.name"
- :value="dict"
- ></el-option>
- </el-select>
- </el-form-item>
- <div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
- <div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
- <el-form-item label prop="question">
- <el-input
- v-model="form.question"
- :disabled="disabled"
- type="textarea"
- placeholder="请输入内容"
- />
- </el-form-item>
- <div class="jiben" v-if="jiannum != 0">整改措施</div>
- <el-form-item label prop="correctiveAction" v-if="jiannum != 0">
- <el-input
- v-model="form.correctiveAction"
- :disabled="disabled"
- type="textarea"
- placeholder="请输入内容"
- />
- </el-form-item>
- <div class="jiben" v-if="jiannum != 0">图片举证</div>
- <el-form-item label prop="pictureProof" v-if="jiannum != 0">
- <imageUpload v-model="form.pictureProof" :limit="1" />
- </el-form-item>
- <div class="jiben" v-if="jiannum != 0">文件举证</div>
- <el-form-item label prop="documentProof" v-if="jiannum != 0">
- <!-- <fileUpload
- v-model="form.documentProof"
- :limit="1"
- :class="{ active: isActive }"
- /> -->
- <input
- label="附件名称"
- v-model="form.wenjianname"
- style="width: 600px"
- class="wenjian"
- />
- <a
- :href="url + form.documentProof"
- :download="form.wenjianname"
- title="下载"
- style="color: white; margin-left: 10px"
- class="downloadfile"
- >下载附件</a
- >
- </el-form-item>
- <div class="jiben" v-if="currentState == 1">未通过原因</div>
- <el-form-item label prop="score" v-if="currentState == 1">
- <el-input
- v-model="form.reasonReturn"
- :disabled="disabled || curr"
- type="textarea"
- placeholder="请输入未通过原因"
- />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button
- type="primary"
- @click="submitForm"
- v-if="btnnum != 0 && btnnum != 1 && zg != 3"
- >确 定</el-button
- >
- <el-button
- type="primary"
- @click="submitForm2"
- v-if="btnnum != 0 && btnnum != 1 && zg == 3"
- >确 定</el-button
- >
- <el-button type="primary" @click="tongguofun" v-if="btnnum == 0"
- >通 过</el-button
- >
- <el-button type="primary" @click="zhenggaifun" v-if="btnnum == 0"
- >重新整改</el-button
- >
- <el-button type="primary" @click="weitongguofun" v-if="btnnum == 1"
- >确 定</el-button
- >
- <el-button @click="cancel" size="btn">取 消</el-button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- listRegularinfo,
- getRegularinfo,
- delRegularinfo,
- addRegularinfo,
- updateRegularinfo,
- exportRegularinfo,
- getDept,
- listPeople,
- editquestion,
- editissuccess,
- editisfalse,
- bumenlist,
- listRegularinfos,
- } from "@/api/bdglregular/regularinfo";
- import { getUserProfile } from "@/api/system/user";
- export default {
- name: "Regularinfo",
- dicts: ["inspectionType"],
- data() {
- return {
- // 遮罩层
- loading: true,
- // 导出遮罩层
- exportLoading: false,
- // 选中数组
- ids: [],
- // 非单个禁用
- single: true,
- // 非多个禁用
- multiple: true,
- // 显示搜索条件
- showSearch: true,
- // 总条数
- total: 0,
- // 经常性检查表格数据
- regularinfoList: [],
- // 弹出层标题
- title: "",
- // 是否显示弹出层
- open: false,
- // 查询参数
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- inspectedUnitId: null,
- inspectedUnit: null,
- inspectionType: null,
- unitCheckId: null,
- unitCheck: null,
- inspectionTime: null,
- inspectionSite: null,
- score: null,
- rectificationTime: null,
- currentState: null,
- question: null,
- createUserId: null,
- createUser: null,
- chargePeopleId: null,
- chargePeople: null,
- correctiveAction: null,
- pictureProof: null,
- documentProof: null,
- caoZuoType: 0,
- },
- // 用户
- user: {},
- // danWies:0,
- yongHu: "",
- // 表单参数
- form: {},
- // 表单校验
- rules: {
- unitCheck: [
- { required: true, message: "检查单位不能为空", trigger: "change" },
- ],
- inspectedUnit: [
- { required: true, message: "受检单位不能为空", trigger: "change" },
- ],
- inspectionType: [
- { required: true, message: "类型不能为空", trigger: "change" },
- ],
- inspectionTime: [
- { required: true, message: "检查时间不能为空", trigger: "change" },
- ],
- inspectionSite: [
- { required: true, message: "检查地点不能为空", trigger: "blur" },
- ],
- score: [{ required: true, message: "分值不能为空", trigger: "blur" }],
- rectificationTime: [
- { required: true, message: "整改时间不能为空", trigger: "change" },
- ],
- chargePeople: [
- { required: true, message: "负责人不能为空", trigger: "change" },
- ],
- },
- //单位
- unitId: [],
- //检查类型
- inspectionType: [],
- //调动人员对象
- peopleIds: [],
- //区分减分、增改
- jiannum: null,
- btnnum: null,
- disabled: false,
- currentState: null,
- curr: null,
- isdisabled: false,
- open1: false,
- zg: null,
- isActive: null,
- sp: null,
- open3: false,
- url: process.env.VUE_APP_BASE_API,
- };
- },
- created() {
- // this.danWiess()
- this.queryParams = {
- pageNum: 1,
- pageSize: 10,
- inspectedUnitId: null,
- inspectedUnit: null,
- inspectionType: null,
- unitCheckId: null,
- unitCheck: null,
- inspectionTime: null,
- inspectionSite: null,
- score: null,
- rectificationTime: null,
- currentState: null,
- question: null,
- createUserId: null,
- createUser: null,
- chargePeopleId: null,
- chargePeople: null,
- correctiveAction: null,
- pictureProof: null,
- documentProof: null,
- caoZuoType: 0,
- };
- // this.danWiess()
- //部门数据
- getDept().then((res) => {
- if (res.code == 200) {
- this.unitId = res.data;
- }
- });
- //调动人员对象
- listPeople().then((res) => {
- if (res.code == 200) {
- this.peopleIds = res.rows;
- }
- });
- //检查类型
- this.getDicts("inspectionType").then((response) => {
- this.inspectionType = response.data;
- });
- if (this.$route.query.id) {
- bumenlist(this.$route.query.id).then((res) => {
- this.regularinfoList = res.rows;
- this.total = res.total;
- this.loading = false;
- });
- } else {
- this.getList();
- }
- },
- watch: {
- $route(to, from) {
- this.queryParams = {
- pageNum: 1,
- pageSize: 10,
- inspectedUnitId: null,
- inspectedUnit: null,
- inspectionType: null,
- unitCheckId: null,
- unitCheck: null,
- inspectionTime: null,
- inspectionSite: null,
- score: null,
- rectificationTime: null,
- currentState: null,
- question: null,
- createUserId: null,
- createUser: null,
- chargePeopleId: null,
- chargePeople: null,
- correctiveAction: null,
- pictureProof: null,
- documentProof: null,
- caoZuoType: 0,
- };
- if (to.query.id) {
- bumenlist(to.query.id).then((res) => {
- this.regularinfoList = res.rows;
- this.total = res.total;
- this.loading = false;
- });
- } else if (to.query.obj) {
- this.queryParams.inspectedUnitId = to.query.obj.id + "";
- this.queryParams.currentState = to.query.obj.name + "";
- listRegularinfos(this.queryParams).then((res) => {
- this.regularinfoList = res.rows;
- this.total = res.total;
- this.loading = false;
- });
- } else {
- this.getList();
- }
- // listRegularinfos
- },
- },
- mounted() {
- // this.danWiess()
- },
- methods: {
- danWiess() {
- // 获取当前用户接口
- getUserProfile().then((response) => {
- this.user = response.data;
- // if(response)
- this.danWies = response.data.dept.deptId;
- });
- },
- /** 查询经常性检查列表 */
- getList() {
- this.loading = true;
- listRegularinfo(this.queryParams).then((response) => {
- this.regularinfoList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
- // 取消按钮
- cancel() {
- this.open = false;
- this.open3 = false;
- this.reset();
- this.jiannum = null;
- },
- // 表单重置
- reset() {
- this.form = {
- id: null,
- inspectedUnitId: null,
- inspectedUnit: null,
- inspectionType: null,
- unitCheckId: null,
- unitCheck: null,
- inspectionTime: null,
- inspectionSite: null,
- score: null,
- rectificationTime: null,
- currentState: null,
- question: null,
- createTime: null,
- createUserId: null,
- createUser: null,
- updateTime: null,
- chargePeopleId: null,
- chargePeople: null,
- correctiveAction: null,
- pictureProof: null,
- documentProof: null,
- reasonReturn: null,
- };
- this.resetForm("form");
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 多选框选中数据
- handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
- this.single = selection.length !== 1;
- this.multiple = !selection.length;
- },
- /** 新增按钮操作 */
- handleAdd() {
- console.log(this.queryParams.caoZuoType)
- this.reset();
- this.open = true;
- this.title = "经常性检查";
- this.jiannum = 0;
- this.btnnum = null;
- this.isdisabled = false;
- var today = new Date();
- var y = today.getFullYear();
- var M = today.getMonth() + 1;
- var d = today.getDate();
- var h = today.getHours();
- var m = today.getMinutes();
- var s = today.getSeconds();
- var w = today.getDay();
- if (M < 10) {
- M = "0" + M;
- }
- if (d < 10) {
- d = "0" + d;
- }
- if (h < 10) {
- h = "0" + h;
- }
- if (m < 10) {
- m = "0" + m;
- }
- if (s < 10) {
- s = "0" + s;
- }
- this.form.inspectionTime =
- y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
- },
- // // 修改按钮操作
- // handleAdds(row){
- // this.open = true;
- // this.title = "经常性检查";
- // const id = row.id || this.ids;
- // getRegularinfo(id).then((response)=>{
- // this.form = response.data;
- // this.open = true;
- // })
- // },
- /** 整改按钮操作 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids;
- getRegularinfo(id).then((response) => {
- this.form = response.data;
- this.disabled = true;
- this.open = true;
- this.title = "修改经常性检查";
- this.jiannum = 1;
- this.btnnum = null;
- this.zg = 3;
- this.isActive = null;
- if (this.form.currentState == "未通过") {
- this.currentState = 1;
- this.curr = true;
- }
- });
- },
- // 修改按钮
- handleAdds(row) {
- this.isdisabled = true;
- this.reset();
- const id = row.id || this.ids;
- getRegularinfo(id).then((response) => {
- this.form = response.data;
- this.open1 = true;
- this.title = "修改经常性检查";
- // this.jiannum = 1;
- // this.btnnum = null;
- // if (this.form.currentState == "未通过") {
- // this.currentState = 1;
- // this.curr = true;
- // }
- });
- },
- /** 审批按钮操作 */
- shenpifun(row) {
- this.reset();
- const id = row.id || this.ids;
- getRegularinfo(id).then((response) => {
- this.disabled = true;
- this.form = response.data;
- this.open3 = true;
- this.title = "修改经常性检查";
- this.jiannum = 1;
- this.btnnum = 0;
- this.isActive = 1;
- this.sp = 0;
- });
- },
- //通过
- tongguofun() {
- editissuccess(this.form).then((res) => {
- if (res.code == 200) {
- this.$modal.msgSuccess("审批成功");
- this.open = false;
- this.open3 = false;
- this.getList();
- }
- });
- },
- //重新整改
- zhenggaifun() {
- this.jiannum = 0;
- this.btnnum = 1;
- this.disabled = false;
- this.currentState = 1;
- this.curr = false;
- this.open3 = false;
- this.open = true;
- // this.reset();
- // editissuccess().then(res => {
- // if (res.code == 200) {
- // this.$modal.msgSuccess("审批成功");
- // }
- // });
- },
- //未通过提交
- weitongguofun() {
- editisfalse(this.form).then((res) => {
- this.$modal.msgSuccess("操作成功");
- this.open = false;
- this.getList();
- });
- },
- submitForm2() {
- if (this.form.documentProof) {
- if (typeof this.form.documentProof != "string") {
- let documentProofs = this.form.documentProof;
- this.form.documentProof = documentProofs[0].url;
- this.form.wenjianname = documentProofs[0].name;
- }
- }
- this.form.caoZuoType = this.queryParams.caoZuoType;
- editquestion(this.form).then((response) => {
- this.$modal.msgSuccess("整改成功");
- this.open = false;
- this.open1 = false;
- // this.open3=false;
- this.getList();
- });
- },
- /** 提交按钮 */
- submitForm() {
- this.$refs["form"].validate((valid) => {
- if (valid) {
- if (this.form.documentProof) {
- if (typeof this.form.documentProof != "string") {
- let documentProofs = this.form.documentProof;
- this.form.documentProof = documentProofs[0].url;
- this.form.wenjianname = documentProofs[0].name;
- }
- }
- if (this.form.id != null) {
- this.form.caoZuoType = this.queryParams.caoZuoType;
- updateRegularinfo(this.form).then((response) => {
- this.$modal.msgSuccess("修改成功");
- this.open = false;
- this.open1 = false;
- // this.open3=false;
- this.getList();
- });
- } else {
- this.form.caoZuoType = this.queryParams.caoZuoType;
- addRegularinfo(this.form).then((response) => {
- this.$modal.msgSuccess("新增成功");
- this.open = false;
- this.open1 = false;
- // this.open3=false;
- this.getList();
- });
- }
- }
- });
- },
- /** 删除按钮操作 */
- handleDelete(row) {
- const ids = row.id || this.ids;
- this.$modal
- .confirm("是否确认删除经常性检查的数据项?")
- .then(function () {
- return delRegularinfo(ids);
- })
- .then(() => {
- this.getList();
- this.$modal.msgSuccess("删除成功");
- })
- .catch(() => {});
- },
- /** 导出按钮操作 */
- handleExport() {
- const queryParams = this.queryParams;
- this.$modal
- .confirm("是否确认导出所有经常性检查数据项?")
- .then(() => {
- this.exportLoading = true;
- return exportRegularinfo(queryParams);
- })
- .then((response) => {
- this.$download.name(response.msg);
- this.exportLoading = false;
- })
- .catch(() => {});
- },
- //检查单位
- unitCheckIdfun(val) {
- this.form.unitCheckId = val.deptId;
- this.form.unitCheck = val.deptName;
- },
- //受检单位
- inspectedUnitfun(val) {
- this.form.inspectedUnitId = val.deptId;
- this.form.inspectedUnit = val.deptName;
- },
- //负责人
- chargePeoplefun(val) {
- this.form.chargePeopleId = val.id;
- this.form.chargePeople = val.name;
- },
- caoZuoTypefun() {
- this.getList();
- },
- scoreblur() {
- if (this.form.score < 0) {
- this.form.score = null;
- }
- },
- },
- };
- </script>
- <style scoped>
- ::v-deep .el-dialog {
- width: 1030px !important;
- background-color: #004d86;
- }
- ::v-deep .el-dialog__header {
- border-bottom: 1px solid #718a9d;
- }
- ::v-deep .el-dialog__title {
- color: #fff;
- font: 18px;
- }
- ::v-deep .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- .el-form-item ::v-deep .el-input__inner {
- width: 200px;
- height: 36px;
- background: #004d86;
- color: #fff;
- border: 1px solid #fff !important;
- }
- ::v-deep .el-date-editor.el-input {
- width: 200px;
- height: 36px;
- }
- ::v-deep .el-upload--picture-card {
- height: 210px;
- width: 170px;
- line-height: 210px;
- }
- .el-upload--picture-card /deep/ .el-upload--picture-card i {
- font-size: 48px;
- }
- ::v-deep .el-upload__tip {
- display: none;
- }
- ::v-deep .el-textarea__inner {
- width: 980px;
- height: 104px;
- }
- .div-box-title span {
- width: 25px;
- height: 25px;
- display: inline-block;
- background-color: #1c86e1;
- line-height: 25px;
- text-align: center;
- font-size: 16px;
- cursor: pointer;
- margin-left: 865px;
- }
- .el-select-dropdown__item:hover {
- color: #1c86e1;
- }
- .el-select-dropdown__item {
- color: #000;
- }
- .el-tree {
- background-color: #00365f;
- color: #fff;
- }
- ::v-deep .el-tree-node__content:hover {
- color: #1c86e1;
- }
- ::v-deep .el-upload-list--picture-card .el-upload-list__item {
- height: 210px;
- width: 170px;
- }
- ::v-deep .radiogroup {
- height: 36px;
- }
- ::v-deep .radiogroup .el-radio-button {
- height: 36px;
- }
- ::v-deep .el-input-number__increase {
- background-color: transparent !important;
- border: none;
- color: #cccccc;
- border-bottom: none !important;
- }
- ::v-deep .el-input-number__decrease {
- background-color: transparent !important;
- border: none !important;
- color: #cccccc;
- }
- ::v-deep .el-dialog__body {
- padding: 30px 0px 30px 25px;
- }
- ::v-deep .el-dialog__footer {
- margin-right: 5px;
- }
- .isSubmit {
- margin-left: 42% !important;
- }
- .el-radio-button {
- width: 122px !important;
- height: 30px !important;
- line-height: 30px !important;
- border: none !important;
- }
- ::v-deep .el-radio-button__inner {
- width: 120px !important;
- height: 30px !important;
- line-height: 8px !important;
- background: #196299;
- border: none;
- color: #fff;
- }
- ::v-deep .el-radio-button:first-child .el-radio-button__inner {
- border-left: none !important;
- }
- ::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
- color: #ffffff;
- background-color: #006cff !important;
- border-color: #006cff !important;
- -webkit-box-shadow: -1px 0 0 0 #006cff !important;
- box-shadow: -1px 0 0 0 #006cff !important;
- }
- /* 将水平线设为红色: */
- hr {
- border: none;
- height: 1px;
- background-color: rgba(204, 204, 204, 0.5);
- }
- ::v-deep img {
- object-fit: cover;
- }
- ::v-deep .active .upload-file-uploader .el-upload .el-button {
- display: none;
- }
- /* 下载按钮 */
- .downloadfile {
- border: 1px solid white;
- display: inline-block;
- width: 100px;
- height: 33px;
- border-radius: 5px;
- line-height: 33px;
- text-align: center;
- }
- .wenjian {
- width: 600px !important;
- height: 33px;
- }
- </style>
|