index.vue 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="68px"
  9. >
  10. <!-- <el-form-item label="受检单位_id" prop="inspectedUnitId">
  11. <el-input
  12. v-model="queryParams.inspectedUnitId"
  13. placeholder="请输入受检单位_id"
  14. clearable
  15. size="small"
  16. @keyup.enter.native="handleQuery"
  17. />
  18. </el-form-item>
  19. <el-form-item label="受检单位" prop="inspectedUnit">
  20. <el-input
  21. v-model="queryParams.inspectedUnit"
  22. placeholder="请输入受检单位"
  23. clearable
  24. size="small"
  25. @keyup.enter.native="handleQuery"
  26. />
  27. </el-form-item>
  28. <el-form-item label="类型" prop="inspectionType">
  29. <el-select v-model="queryParams.inspectionType" placeholder="请选择类型" clearable size="small">
  30. <el-option label="请选择字典生成" value="" />
  31. </el-select>
  32. </el-form-item>
  33. <el-form-item label="单位检查_id" prop="unitCheckId">
  34. <el-input
  35. v-model="queryParams.unitCheckId"
  36. placeholder="请输入单位检查_id"
  37. clearable
  38. size="small"
  39. @keyup.enter.native="handleQuery"
  40. />
  41. </el-form-item>
  42. <el-form-item label="检查单位" prop="unitCheck">
  43. <el-input
  44. v-model="queryParams.unitCheck"
  45. placeholder="请输入检查单位"
  46. clearable
  47. size="small"
  48. @keyup.enter.native="handleQuery"
  49. />
  50. </el-form-item>
  51. <el-form-item label="检查时间" prop="inspectionTime">
  52. <el-input
  53. v-model="queryParams.inspectionTime"
  54. placeholder="请输入检查时间"
  55. clearable
  56. size="small"
  57. @keyup.enter.native="handleQuery"
  58. />
  59. </el-form-item>
  60. <el-form-item label="检查地点" prop="inspectionSite">
  61. <el-input
  62. v-model="queryParams.inspectionSite"
  63. placeholder="请输入检查地点"
  64. clearable
  65. size="small"
  66. @keyup.enter.native="handleQuery"
  67. />
  68. </el-form-item>
  69. <el-form-item label="分值" prop="score">
  70. <el-input
  71. v-model="queryParams.score"
  72. placeholder="请输入分值"
  73. clearable
  74. size="small"
  75. @keyup.enter.native="handleQuery"
  76. />
  77. </el-form-item>
  78. <el-form-item label="整改时间" prop="rectificationTime">
  79. <el-input
  80. v-model="queryParams.rectificationTime"
  81. placeholder="请输入整改时间"
  82. clearable
  83. size="small"
  84. @keyup.enter.native="handleQuery"
  85. />
  86. </el-form-item>
  87. <el-form-item label="当前状态" prop="currentState">
  88. <el-input
  89. v-model="queryParams.currentState"
  90. placeholder="请输入当前状态"
  91. clearable
  92. size="small"
  93. @keyup.enter.native="handleQuery"
  94. />
  95. </el-form-item>
  96. <el-form-item label="是由" prop="question">
  97. <el-input
  98. v-model="queryParams.question"
  99. placeholder="请输入是由"
  100. clearable
  101. size="small"
  102. @keyup.enter.native="handleQuery"
  103. />
  104. </el-form-item>
  105. <el-form-item label="创建人ID" prop="createUserId">
  106. <el-input
  107. v-model="queryParams.createUserId"
  108. placeholder="请输入创建人ID"
  109. clearable
  110. size="small"
  111. @keyup.enter.native="handleQuery"
  112. />
  113. </el-form-item>
  114. <el-form-item label="创建人" prop="createUser">
  115. <el-input
  116. v-model="queryParams.createUser"
  117. placeholder="请输入创建人"
  118. clearable
  119. size="small"
  120. @keyup.enter.native="handleQuery"
  121. />
  122. </el-form-item>
  123. <el-form-item label="负责人ID" prop="chargePeopleId">
  124. <el-input
  125. v-model="queryParams.chargePeopleId"
  126. placeholder="请输入负责人ID"
  127. clearable
  128. size="small"
  129. @keyup.enter.native="handleQuery"
  130. />
  131. </el-form-item>
  132. <el-form-item label="负责人" prop="chargePeople">
  133. <el-input
  134. v-model="queryParams.chargePeople"
  135. placeholder="请输入负责人"
  136. clearable
  137. size="small"
  138. @keyup.enter.native="handleQuery"
  139. />
  140. </el-form-item>
  141. <el-form-item label="图片举证" prop="pictureProof">
  142. <el-input
  143. v-model="queryParams.pictureProof"
  144. placeholder="请输入图片举证"
  145. clearable
  146. size="small"
  147. @keyup.enter.native="handleQuery"
  148. />
  149. </el-form-item>
  150. <el-form-item label="文件举证" prop="documentProof">
  151. <el-input
  152. v-model="queryParams.documentProof"
  153. placeholder="请输入文件举证"
  154. clearable
  155. size="small"
  156. @keyup.enter.native="handleQuery"
  157. />
  158. </el-form-item>-->
  159. <!-- <el-form-item>
  160. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  161. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  162. </el-form-item>-->
  163. </el-form>
  164. <el-row :gutter="10" class="mb8">
  165. <el-col :span="1.5" class="isSubmit">
  166. <el-radio-group
  167. v-model="queryParams.caoZuoType"
  168. @change="caoZuoTypefun"
  169. >
  170. <el-radio-button label="1">加分</el-radio-button>
  171. <el-radio-button label="0">减分</el-radio-button>
  172. </el-radio-group>
  173. </el-col>
  174. </el-row>
  175. <hr />
  176. <el-row :gutter="10" class="mb8">
  177. <el-col :span="1.5">
  178. <el-button
  179. type="success"
  180. v-if="queryParams.caoZuoType == 0"
  181. style="background: #1d96ff"
  182. @click="handleAdd"
  183. v-hasPermi="['bdglregular:regularinfo:jian']"
  184. >减分录入</el-button
  185. >
  186. </el-col>
  187. <el-col :span="1.5">
  188. <el-button
  189. type="success"
  190. v-if="queryParams.caoZuoType == 1"
  191. style="background: #1d96ff"
  192. v-hasPermi="['bdglregular:regularinfo:jia']"
  193. @click="handleAdd"
  194. >加分录入</el-button
  195. >
  196. </el-col>
  197. <el-col :span="1.5">
  198. <el-button
  199. type="danger"
  200. plain
  201. icon="el-icon-delete"
  202. size="mini"
  203. :disabled="multiple"
  204. @click="handleDelete"
  205. v-hasPermi="['bdglregular:regularinfo:remove']"
  206. >删除</el-button
  207. >
  208. </el-col>
  209. <!-- <el-col :span="1.5">
  210. <el-button
  211. type="success"
  212. plain
  213. icon="el-icon-edit"
  214. size="mini"
  215. :disabled="single"
  216. @click="handleUpdate"
  217. v-hasPermi="['bdglregular:regularinfo:edit']"
  218. >修改</el-button>
  219. </el-col>
  220. <el-col :span="1.5">
  221. <el-button
  222. type="danger"
  223. plain
  224. icon="el-icon-delete"
  225. size="mini"
  226. :disabled="multiple"
  227. @click="handleDelete"
  228. v-hasPermi="['bdglregular:regularinfo:remove']"
  229. >删除</el-button>
  230. </el-col>
  231. <el-col :span="1.5">
  232. <el-button
  233. type="warning"
  234. plain
  235. icon="el-icon-download"
  236. size="mini"
  237. :loading="exportLoading"
  238. @click="handleExport"
  239. v-hasPermi="['bdglregular:regularinfo:export']"
  240. >导出</el-button>
  241. </el-col>-->
  242. <!-- <right-toolbar
  243. :showSearch.sync="showSearch"
  244. @queryTable="getList"
  245. ></right-toolbar> -->
  246. <el-form
  247. :model="queryParams"
  248. ref="queryForm"
  249. :inline="true"
  250. v-show="showSearch"
  251. label-width="68px"
  252. >
  253. <el-form-item prop="inspectedUnitId">
  254. <treeselect
  255. v-model="queryParams.inspectedUnitId"
  256. :options="deptOptions"
  257. placeholder="请选择受检单位"
  258. @select="selectPeos"
  259. />
  260. </el-form-item>
  261. <el-form-item prop="currentState">
  262. <el-select
  263. v-model="queryParams.currentState"
  264. placeholder="请选择状态"
  265. clearable
  266. size="small"
  267. @change="handleQuery"
  268. class="states"
  269. >
  270. <el-option
  271. v-for="item in statelist"
  272. :key="item"
  273. :label="item"
  274. :value="item"
  275. ></el-option>
  276. </el-select>
  277. </el-form-item>
  278. <el-form-item>
  279. <el-button size="btr" @click="resetQuery">重置</el-button>
  280. </el-form-item>
  281. </el-form>
  282. </el-row>
  283. <el-table
  284. v-loading="loading"
  285. :data="regularinfoList"
  286. :header-cell-style="{ background: '#003C69', color: 'white' }"
  287. @selection-change="handleSelectionChange"
  288. >
  289. <el-table-column type="selection" width="55" align="center" />
  290. <el-table-column label="序号" align="center" type="index" />
  291. <el-table-column
  292. :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
  293. align="center"
  294. key="inspectedUnit"
  295. prop="inspectedUnit"
  296. />
  297. <el-table-column
  298. label="类型"
  299. align="center"
  300. key="inspectionType"
  301. prop="inspectionType"
  302. >
  303. <template slot-scope="scope">
  304. <dict-tag
  305. :options="dict.type.inspectionType"
  306. :value="scope.row.inspectionType"
  307. />
  308. </template>
  309. </el-table-column>
  310. <el-table-column
  311. label="检查单位"
  312. align="center"
  313. prop="unitCheck"
  314. width="150"
  315. key="unitCheck"
  316. v-if="queryParams.caoZuoType == 0"
  317. />
  318. <el-table-column
  319. label="检查时间"
  320. align="center"
  321. prop="inspectionTime"
  322. width="150px"
  323. key="inspectionTime"
  324. />
  325. <el-table-column
  326. width="250"
  327. show-overflow-tooltip
  328. label="检查地点"
  329. align="center"
  330. prop="inspectionSite"
  331. key="inspectionSite"
  332. />
  333. <el-table-column label="分值" align="center" key="score" prop="score">
  334. <template slot-scope="scope">
  335. <div style="color: rgb(255 106 0)" v-if="queryParams.caoZuoType == 0">
  336. {{ scope.row.score }}
  337. </div>
  338. <div style="color: rgb(2 255 2)" v-if="queryParams.caoZuoType == 1">
  339. {{ scope.row.score }}
  340. </div>
  341. </template>
  342. </el-table-column>
  343. <el-table-column
  344. label="当前状态"
  345. align="center"
  346. prop="currentState"
  347. v-if="queryParams.caoZuoType == 0"
  348. key="currentState"
  349. >
  350. <template slot-scope="scope">
  351. <div
  352. style="color: rgb(255 106 0)"
  353. v-if="scope.row.currentState == '未通过'"
  354. >
  355. {{ scope.row.currentState }}
  356. </div>
  357. <div style="color: #ffa500" v-if="scope.row.currentState == '待处理'">
  358. {{ scope.row.currentState }}
  359. </div>
  360. <div style="color: #3498db" v-if="scope.row.currentState == '待验收'">
  361. {{ scope.row.currentState }}
  362. </div>
  363. <div
  364. style="color: rgb(2 255 2)"
  365. v-if="scope.row.currentState == '已通过'"
  366. >
  367. {{ scope.row.currentState }}
  368. </div>
  369. <div style="color: #909399" v-if="scope.row.currentState == '已逾期'">
  370. {{ scope.row.currentState }}
  371. </div>
  372. </template>
  373. </el-table-column>
  374. <el-table-column
  375. label="事由"
  376. show-overflow-tooltip
  377. align="center"
  378. prop="question"
  379. key="question"
  380. />
  381. <el-table-column
  382. label="整改时间"
  383. align="center"
  384. prop="rectificationTime"
  385. v-if="queryParams.caoZuoType == 0"
  386. width="150px"
  387. key="rectificationTime"
  388. />
  389. <el-table-column
  390. label="操作"
  391. align="center"
  392. class-name="small-padding fixed-width"
  393. width="250"
  394. fixed="right"
  395. >
  396. <template slot-scope="scope">
  397. <el-button
  398. size="btk"
  399. type="text"
  400. v-if="
  401. scope.row.caoZuoType == '0' &&
  402. scope.row.isCaoZuoDept == 0 &&
  403. (scope.row.currentState == '未通过' ||
  404. scope.row.currentState == '待处理')
  405. "
  406. @click="handleUpdate(scope.row)"
  407. >整改</el-button
  408. >
  409. <el-button
  410. size="btu"
  411. type="text"
  412. @click="shenpifun(scope.row)"
  413. v-if="
  414. queryParams.caoZuoType == 0 &&
  415. scope.row.isShenPi == 0 &&
  416. scope.row.currentState == '待验收'
  417. "
  418. >审批</el-button
  419. >
  420. <!-- v-if="scope.row.unitCheckId==this.danWies" -->
  421. <!-- bdglregular:regularinfo:query -->
  422. <el-button
  423. v-if="scope.row.currentState == '待处理' && scope.row.isShenPi == 0"
  424. size="btu"
  425. type="text"
  426. @click="handleAdds(scope.row)"
  427. >修改</el-button
  428. >
  429. <el-button
  430. size="btd"
  431. type="text"
  432. @click="handleDelete(scope.row)"
  433. v-if="scope.row.isShenPi == 0"
  434. >删除</el-button
  435. >
  436. </template>
  437. </el-table-column>
  438. </el-table>
  439. <pagination
  440. v-show="total > 0"
  441. :total="total"
  442. :page.sync="queryParams.pageNum"
  443. :limit.sync="queryParams.pageSize"
  444. @pagination="getList"
  445. />
  446. <!-- 添加或修改经常性检查对话框 -->
  447. <el-dialog
  448. :title="title"
  449. :visible.sync="open"
  450. width="500px"
  451. append-to-body
  452. :close-on-click-modal="false"
  453. >
  454. <el-form
  455. ref="form"
  456. :model="form"
  457. :rules="rules"
  458. :inline="true"
  459. label-width="120px"
  460. >
  461. <div class="jiben">基本信息</div>
  462. <el-form-item
  463. label="检查单位"
  464. prop="unitCheck"
  465. v-if="queryParams.caoZuoType == 0"
  466. >
  467. <el-select
  468. v-model="form.unitCheck"
  469. @change="unitCheckIdfun"
  470. clearable
  471. placeholder="请选择检查单位"
  472. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
  473. >
  474. <el-option
  475. v-for="dict in unitId"
  476. :key="dict.deptId"
  477. :label="dict.deptName"
  478. :value="dict"
  479. ></el-option>
  480. </el-select>
  481. </el-form-item>
  482. <el-form-item
  483. :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
  484. prop="inspectedUnit"
  485. >
  486. <el-select
  487. v-model="form.inspectedUnit"
  488. @change="inspectedUnitfun"
  489. clearable
  490. :placeholder="
  491. queryParams.caoZuoType == 0 ? '请选择受检单位' : '请选择单位'
  492. "
  493. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
  494. >
  495. <el-option
  496. v-for="dict in unitId"
  497. :key="dict.deptId"
  498. :label="dict.deptName"
  499. :value="dict"
  500. ></el-option>
  501. </el-select>
  502. </el-form-item>
  503. <el-form-item label="类型" prop="inspectionType">
  504. <el-select
  505. v-model="form.inspectionType"
  506. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
  507. clearable
  508. placeholder="请选择类型"
  509. >
  510. <el-option
  511. v-for="dict in inspectionType"
  512. :key="dict.dictValue"
  513. :label="dict.dictLabel"
  514. :value="dict.dictValue"
  515. ></el-option>
  516. </el-select>
  517. </el-form-item>
  518. <el-form-item label="检查时间" prop="inspectionTime">
  519. <el-date-picker
  520. clearable
  521. size="small"
  522. v-model="form.inspectionTime"
  523. type="datetime"
  524. default-time="00:00:00"
  525. value-format="yyyy-MM-dd HH:mm:ss"
  526. placeholder="选择检查时间"
  527. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
  528. ></el-date-picker>
  529. </el-form-item>
  530. <el-form-item label="检查地点" prop="inspectionSite">
  531. <el-input
  532. v-model="form.inspectionSite"
  533. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
  534. placeholder="请输入检查地点"
  535. />
  536. </el-form-item>
  537. <el-form-item label="分值" prop="score" v-if="jiannum == 0">
  538. <!-- <el-input v-model="form.score" type="number" @blur="scoreblur" :disabled="disabled" placeholder="请输入分值" /> -->
  539. <el-input-number
  540. v-model="form.score"
  541. controls-position="right"
  542. :min="0"
  543. ></el-input-number>
  544. </el-form-item>
  545. <el-form-item
  546. label="整改时间"
  547. prop="rectificationTime"
  548. v-if="queryParams.caoZuoType == 0"
  549. >
  550. <el-date-picker
  551. clearable
  552. size="small"
  553. v-model="form.rectificationTime"
  554. type="datetime"
  555. default-time="00:00:00"
  556. value-format="yyyy-MM-dd HH:mm:ss"
  557. placeholder="选择整改时间"
  558. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
  559. ></el-date-picker>
  560. </el-form-item>
  561. <el-form-item
  562. label="受检负责人"
  563. prop="chargePeople"
  564. v-if="jiannum != 0"
  565. >
  566. <el-select
  567. v-model="form.chargePeople"
  568. clearable
  569. @change="chargePeoplefun"
  570. placeholder="请选择受检负责人"
  571. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg != 3"
  572. >
  573. <el-option
  574. v-for="dict in peopleIds"
  575. :key="dict.id"
  576. :label="dict.name"
  577. :value="dict"
  578. ></el-option>
  579. </el-select>
  580. </el-form-item>
  581. <div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
  582. <div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
  583. <el-form-item label prop="question">
  584. <el-input
  585. v-model="form.question"
  586. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
  587. type="textarea"
  588. placeholder="请输入内容"
  589. />
  590. </el-form-item>
  591. <div class="jiben" v-if="jiannum != 0">整改措施</div>
  592. <el-form-item label prop="correctiveAction" v-if="jiannum != 0">
  593. <el-input
  594. v-model="form.correctiveAction"
  595. :disabled="disabled && btnnum != 0 && btnnum != 1 && zg != 3"
  596. type="textarea"
  597. placeholder="请输入内容"
  598. />
  599. </el-form-item>
  600. <div class="jiben" v-if="jiannum != 0">图片举证</div>
  601. <el-form-item label prop="pictureProof" v-if="jiannum != 0">
  602. <imageUpload v-model="form.pictureProof" :limit="1" />
  603. </el-form-item>
  604. <div class="jiben" v-if="jiannum != 0">文件举证</div>
  605. <el-form-item label prop="documentProof" v-if="jiannum != 0">
  606. <fileUpload
  607. v-model="form.documentProof"
  608. :limit="1"
  609. :class="{ active: isActive }"
  610. />
  611. </el-form-item>
  612. <div class="jiben" v-if="currentState == 1">未通过原因</div>
  613. <el-form-item label prop="score" v-if="currentState == 1">
  614. <el-input
  615. v-model="form.reasonReturn"
  616. :disabled="disabled || curr"
  617. type="textarea"
  618. placeholder="请输入未通过原因"
  619. />
  620. </el-form-item>
  621. </el-form>
  622. <div slot="footer" class="dialog-footer">
  623. <el-button
  624. type="primary"
  625. @click="submitForm"
  626. v-if="btnnum != 0 && btnnum != 1 && zg != 3"
  627. >确 定</el-button
  628. >
  629. <el-button
  630. type="primary"
  631. @click="submitForm2"
  632. v-if="btnnum != 0 && btnnum != 1 && zg == 3"
  633. >确 定</el-button
  634. >
  635. <el-button type="primary" @click="tongguofun" v-if="btnnum == 0"
  636. >通 过</el-button
  637. >
  638. <el-button type="primary" @click="zhenggaifun" v-if="btnnum == 0"
  639. >重新整改</el-button
  640. >
  641. <el-button type="primary" @click="weitongguofun" v-if="btnnum == 1"
  642. >确 定</el-button
  643. >
  644. <el-button @click="cancel" size="btn">取 消</el-button>
  645. </div>
  646. </el-dialog>
  647. <el-dialog
  648. :title="title"
  649. :visible.sync="open1"
  650. width="500px"
  651. append-to-body
  652. :close-on-click-modal="false"
  653. >
  654. <el-form
  655. ref="form"
  656. :model="form"
  657. :rules="rules"
  658. :inline="true"
  659. label-width="120px"
  660. >
  661. <div class="jiben">基本信息</div>
  662. <el-form-item
  663. label="检查单位"
  664. prop="unitCheck"
  665. v-if="queryParams.caoZuoType == 0"
  666. >
  667. <el-select
  668. v-model="form.unitCheck"
  669. @change="unitCheckIdfun"
  670. clearable
  671. placeholder="请选择检查单位"
  672. :disabled="disabled"
  673. >
  674. <el-option
  675. v-for="dict in unitId"
  676. :key="dict.deptId"
  677. :label="dict.deptName"
  678. :value="dict"
  679. ></el-option>
  680. </el-select>
  681. </el-form-item>
  682. <el-form-item
  683. :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
  684. prop="inspectedUnit"
  685. >
  686. <el-select
  687. v-model="form.inspectedUnit"
  688. @change="inspectedUnitfun"
  689. clearable
  690. :placeholder="
  691. queryParams.caoZuoType == 0 ? '请选择受检单位' : '请选择单位'
  692. "
  693. :disabled="disabled"
  694. >
  695. <el-option
  696. v-for="dict in unitId"
  697. :key="dict.deptId"
  698. :label="dict.deptName"
  699. :value="dict"
  700. ></el-option>
  701. </el-select>
  702. </el-form-item>
  703. <el-form-item label="类型" prop="inspectionType">
  704. <el-select
  705. v-model="form.inspectionType"
  706. :disabled="disabled"
  707. clearable
  708. placeholder="请选择类型"
  709. >
  710. <el-option
  711. v-for="dict in inspectionType"
  712. :key="dict.dictValue"
  713. :label="dict.dictLabel"
  714. :value="dict.dictValue"
  715. ></el-option>
  716. </el-select>
  717. </el-form-item>
  718. <el-form-item label="检查时间" prop="inspectionTime">
  719. <el-date-picker
  720. clearable
  721. size="small"
  722. v-model="form.inspectionTime"
  723. type="datetime"
  724. default-time="00:00:00"
  725. value-format="yyyy-MM-dd HH:mm:ss"
  726. placeholder="选择检查时间"
  727. ></el-date-picker>
  728. </el-form-item>
  729. <el-form-item label="检查地点" prop="inspectionSite">
  730. <el-input
  731. v-model="form.inspectionSite"
  732. :disabled="disabled"
  733. placeholder="请输入检查地点"
  734. />
  735. </el-form-item>
  736. <el-form-item label="分值" prop="score">
  737. <!-- <el-input v-model="form.score" type="number" @blur="scoreblur" :disabled="disabled" placeholder="请输入分值" /> -->
  738. <el-input-number
  739. v-model="form.score"
  740. controls-position="right"
  741. :min="0"
  742. ></el-input-number>
  743. </el-form-item>
  744. <el-form-item
  745. label="整改时间"
  746. prop="rectificationTime"
  747. v-if="queryParams.caoZuoType == 0"
  748. >
  749. <el-date-picker
  750. clearable
  751. size="small"
  752. v-model="form.rectificationTime"
  753. type="datetime"
  754. default-time="00:00:00"
  755. value-format="yyyy-MM-dd HH:mm:ss"
  756. placeholder="选择整改时间"
  757. :disabled="disabled"
  758. ></el-date-picker>
  759. </el-form-item>
  760. <div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
  761. <div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
  762. <el-form-item label prop="question">
  763. <el-input
  764. v-model="form.question"
  765. :disabled="disabled"
  766. type="textarea"
  767. placeholder="请输入内容"
  768. />
  769. </el-form-item>
  770. </el-form>
  771. <div slot="footer" class="dialog-footer">
  772. <el-button type="primary" @click="submitForm">确 定</el-button>
  773. <el-button @click="open1 = false" size="btn">取 消</el-button>
  774. </div>
  775. </el-dialog>
  776. <el-dialog
  777. :title="title"
  778. :visible.sync="open3"
  779. width="500px"
  780. append-to-body
  781. :close-on-click-modal="false"
  782. >
  783. <el-form
  784. ref="form"
  785. :model="form"
  786. :rules="rules"
  787. :inline="true"
  788. label-width="120px"
  789. >
  790. <div class="jiben">基本信息</div>
  791. <el-form-item
  792. label="检查单位"
  793. prop="unitCheck"
  794. v-if="queryParams.caoZuoType == 0"
  795. >
  796. <el-select
  797. v-model="form.unitCheck"
  798. @change="unitCheckIdfun"
  799. clearable
  800. placeholder="请选择检查单位"
  801. :disabled="disabled"
  802. >
  803. <el-option
  804. v-for="dict in unitId"
  805. :key="dict.deptId"
  806. :label="dict.deptName"
  807. :value="dict"
  808. ></el-option>
  809. </el-select>
  810. </el-form-item>
  811. <el-form-item
  812. :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
  813. prop="inspectedUnit"
  814. >
  815. <el-select
  816. v-model="form.inspectedUnit"
  817. @change="inspectedUnitfun"
  818. clearable
  819. :placeholder="
  820. queryParams.caoZuoType == 0 ? '请选择受检单位' : '请选择单位'
  821. "
  822. :disabled="disabled"
  823. >
  824. <el-option
  825. v-for="dict in unitId"
  826. :key="dict.deptId"
  827. :label="dict.deptName"
  828. :value="dict"
  829. ></el-option>
  830. </el-select>
  831. </el-form-item>
  832. <el-form-item label="类型" prop="inspectionType">
  833. <el-select
  834. v-model="form.inspectionType"
  835. :disabled="disabled"
  836. clearable
  837. placeholder="请选择类型"
  838. >
  839. <el-option
  840. v-for="dict in inspectionType"
  841. :key="dict.dictValue"
  842. :label="dict.dictLabel"
  843. :value="dict.dictValue"
  844. ></el-option>
  845. </el-select>
  846. </el-form-item>
  847. <el-form-item label="检查时间" prop="inspectionTime">
  848. <el-date-picker
  849. clearable
  850. size="small"
  851. v-model="form.inspectionTime"
  852. type="datetime"
  853. default-time="00:00:00"
  854. value-format="yyyy-MM-dd HH:mm:ss"
  855. placeholder="选择检查时间"
  856. :disabled="disabled"
  857. ></el-date-picker>
  858. </el-form-item>
  859. <el-form-item label="检查地点" prop="inspectionSite">
  860. <el-input
  861. v-model="form.inspectionSite"
  862. :disabled="disabled"
  863. placeholder="请输入检查地点"
  864. />
  865. </el-form-item>
  866. <el-form-item label="分值" prop="score" v-if="jiannum == 0">
  867. <!-- <el-input v-model="form.score" type="number" @blur="scoreblur" :disabled="disabled" placeholder="请输入分值" /> -->
  868. <el-input-number
  869. v-model="form.score"
  870. controls-position="right"
  871. :min="0"
  872. ></el-input-number>
  873. </el-form-item>
  874. <el-form-item
  875. label="整改时间"
  876. prop="rectificationTime"
  877. v-if="queryParams.caoZuoType == 0"
  878. >
  879. <el-date-picker
  880. clearable
  881. size="small"
  882. v-model="form.rectificationTime"
  883. type="datetime"
  884. default-time="00:00:00"
  885. value-format="yyyy-MM-dd HH:mm:ss"
  886. placeholder="选择整改时间"
  887. :disabled="disabled"
  888. ></el-date-picker>
  889. </el-form-item>
  890. <el-form-item
  891. label="受检负责人"
  892. prop="chargePeople"
  893. v-if="jiannum != 0"
  894. >
  895. <el-select
  896. v-model="form.chargePeople"
  897. clearable
  898. @change="chargePeoplefun"
  899. placeholder="请选择受检负责人"
  900. :disabled="disabled"
  901. >
  902. <el-option
  903. v-for="dict in peopleIds"
  904. :key="dict.id"
  905. :label="dict.name"
  906. :value="dict"
  907. ></el-option>
  908. </el-select>
  909. </el-form-item>
  910. <div class="jiben" v-if="queryParams.caoZuoType == 0">存在问题</div>
  911. <div class="jiben" v-if="queryParams.caoZuoType == 1">加分事由</div>
  912. <el-form-item label prop="question">
  913. <el-input
  914. v-model="form.question"
  915. :disabled="disabled"
  916. type="textarea"
  917. placeholder="请输入内容"
  918. />
  919. </el-form-item>
  920. <div class="jiben" v-if="jiannum != 0">整改措施</div>
  921. <el-form-item label prop="correctiveAction" v-if="jiannum != 0">
  922. <el-input
  923. v-model="form.correctiveAction"
  924. :disabled="disabled"
  925. type="textarea"
  926. placeholder="请输入内容"
  927. />
  928. </el-form-item>
  929. <div class="jiben" v-if="jiannum != 0">图片举证</div>
  930. <el-form-item label prop="pictureProof" v-if="jiannum != 0">
  931. <imageUpload v-model="form.pictureProof" :limit="1" />
  932. </el-form-item>
  933. <div class="jiben" v-if="jiannum != 0">文件举证</div>
  934. <el-form-item label prop="documentProof" v-if="jiannum != 0">
  935. <!-- <fileUpload
  936. v-model="form.documentProof"
  937. :limit="1"
  938. :class="{ active: isActive }"
  939. /> -->
  940. <input
  941. label="附件名称"
  942. v-model="form.wenjianname"
  943. style="width: 600px"
  944. class="wenjian"
  945. />
  946. <a
  947. :href="url + form.documentProof"
  948. :download="form.wenjianname"
  949. title="下载"
  950. style="color: white; margin-left: 10px"
  951. class="downloadfile"
  952. >下载附件</a
  953. >
  954. </el-form-item>
  955. <div class="jiben" v-if="currentState == 1">未通过原因</div>
  956. <el-form-item label prop="score" v-if="currentState == 1">
  957. <el-input
  958. v-model="form.reasonReturn"
  959. :disabled="disabled || curr"
  960. type="textarea"
  961. placeholder="请输入未通过原因"
  962. />
  963. </el-form-item>
  964. </el-form>
  965. <div slot="footer" class="dialog-footer">
  966. <el-button
  967. type="primary"
  968. @click="submitForm"
  969. v-if="btnnum != 0 && btnnum != 1 && zg != 3"
  970. >确 定</el-button
  971. >
  972. <el-button
  973. type="primary"
  974. @click="submitForm2"
  975. v-if="btnnum != 0 && btnnum != 1 && zg == 3"
  976. >确 定</el-button
  977. >
  978. <el-button type="primary" @click="tongguofun" v-if="btnnum == 0"
  979. >通 过</el-button
  980. >
  981. <el-button type="primary" @click="zhenggaifun" v-if="btnnum == 0"
  982. >重新整改</el-button
  983. >
  984. <el-button type="primary" @click="weitongguofun" v-if="btnnum == 1"
  985. >确 定</el-button
  986. >
  987. <el-button @click="cancel" size="btn">取 消</el-button>
  988. </div>
  989. </el-dialog>
  990. </div>
  991. </template>
  992. <script>
  993. import {
  994. listRegularinfo,
  995. getRegularinfo,
  996. delRegularinfo,
  997. addRegularinfo,
  998. updateRegularinfo,
  999. exportRegularinfo,
  1000. getDept,
  1001. listPeople,
  1002. editquestion,
  1003. editissuccess,
  1004. editisfalse,
  1005. bumenlist,
  1006. getDeptss,
  1007. listRegularinfos,
  1008. } from "@/api/bdglregular/regularinfo";
  1009. import { getUserProfile } from "@/api/system/user";
  1010. // 查询字典
  1011. import { getDicts } from "@/api/system/dict/data";
  1012. // import {
  1013. // getDept
  1014. // } from "@/api/grassrootsregistration/bdglmeeting";
  1015. // 导入树形结构
  1016. import Treeselect from "@riophae/vue-treeselect";
  1017. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  1018. export default {
  1019. name: "Regularinfo",
  1020. dicts: ["inspectionType"],
  1021. components: {
  1022. Treeselect,
  1023. },
  1024. data() {
  1025. return {
  1026. // 遮罩层
  1027. loading: true,
  1028. // 导出遮罩层
  1029. exportLoading: false,
  1030. // 选中数组
  1031. ids: [],
  1032. // 非单个禁用
  1033. single: true,
  1034. // 非多个禁用
  1035. multiple: true,
  1036. // 显示搜索条件
  1037. showSearch: true,
  1038. // 总条数
  1039. total: 0,
  1040. // 经常性检查表格数据
  1041. regularinfoList: [],
  1042. // 弹出层标题
  1043. title: "",
  1044. // 是否显示弹出层
  1045. open: false,
  1046. // 查询参数
  1047. queryParams: {
  1048. pageNum: 1,
  1049. pageSize: 10,
  1050. inspectedUnitId: null,
  1051. inspectedUnit: null,
  1052. inspectionType: null,
  1053. unitCheckId: null,
  1054. unitCheck: null,
  1055. inspectionTime: null,
  1056. inspectionSite: null,
  1057. score: null,
  1058. rectificationTime: null,
  1059. currentState: null,
  1060. question: null,
  1061. createUserId: null,
  1062. createUser: null,
  1063. chargePeopleId: null,
  1064. chargePeople: null,
  1065. correctiveAction: null,
  1066. pictureProof: null,
  1067. documentProof: null,
  1068. caoZuoType: 0,
  1069. },
  1070. // 用户
  1071. user: {},
  1072. // danWies:0,
  1073. yongHu: "",
  1074. // 表单参数
  1075. form: {},
  1076. // 表单校验
  1077. rules: {
  1078. unitCheck: [
  1079. { required: true, message: "检查单位不能为空", trigger: "change" },
  1080. ],
  1081. inspectedUnit: [
  1082. { required: true, message: "受检单位不能为空", trigger: "change" },
  1083. ],
  1084. inspectionType: [
  1085. { required: true, message: "类型不能为空", trigger: "change" },
  1086. ],
  1087. inspectionTime: [
  1088. { required: true, message: "检查时间不能为空", trigger: "change" },
  1089. ],
  1090. inspectionSite: [
  1091. { required: true, message: "检查地点不能为空", trigger: "blur" },
  1092. ],
  1093. score: [{ required: true, message: "分值不能为空", trigger: "blur" }],
  1094. rectificationTime: [
  1095. { required: true, message: "整改时间不能为空", trigger: "change" },
  1096. ],
  1097. chargePeople: [
  1098. { required: true, message: "负责人不能为空", trigger: "change" },
  1099. ],
  1100. },
  1101. //单位
  1102. unitId: [],
  1103. // 树形结构列表
  1104. deptOptions: [],
  1105. //检查类型
  1106. inspectionType: [],
  1107. //调动人员对象
  1108. peopleIds: [],
  1109. //区分减分、增改
  1110. jiannum: null,
  1111. btnnum: null,
  1112. disabled: false,
  1113. currentState: null,
  1114. curr: null,
  1115. isdisabled: false,
  1116. open1: false,
  1117. zg: null,
  1118. isActive: null,
  1119. sp: null,
  1120. open3: false,
  1121. url: process.env.VUE_APP_BASE_API,
  1122. statelist: ["未通过", "待处理", "待验收", "已通过", "已逾期"],
  1123. };
  1124. },
  1125. created() {
  1126. // this.danWiess()
  1127. this.queryParams = {
  1128. pageNum: 1,
  1129. pageSize: 10,
  1130. inspectedUnitId: null,
  1131. inspectedUnit: null,
  1132. inspectionType: null,
  1133. unitCheckId: null,
  1134. unitCheck: null,
  1135. inspectionTime: null,
  1136. inspectionSite: null,
  1137. score: null,
  1138. rectificationTime: null,
  1139. currentState: null,
  1140. question: null,
  1141. createUserId: null,
  1142. createUser: null,
  1143. chargePeopleId: null,
  1144. chargePeople: null,
  1145. correctiveAction: null,
  1146. pictureProof: null,
  1147. documentProof: null,
  1148. caoZuoType: 0,
  1149. };
  1150. // this.danWiess()
  1151. //部门数据
  1152. getDept().then((res) => {
  1153. if (res.code == 200) {
  1154. this.unitId = res.data;
  1155. }
  1156. });
  1157. //调动人员对象
  1158. listPeople().then((res) => {
  1159. if (res.code == 200) {
  1160. this.peopleIds = res.rows;
  1161. }
  1162. });
  1163. //检查类型
  1164. this.getDicts("inspectionType").then((response) => {
  1165. this.inspectionType = response.data;
  1166. });
  1167. if (this.$route.query.obj) {
  1168. this.queryParams.inspectedUnitId = this.$route.query.obj.id;
  1169. this.queryParams.currentState = this.$route.query.obj.name;
  1170. listRegularinfos(this.queryParams).then((res) => {
  1171. this.regularinfoList = res.rows;
  1172. this.total = res.total;
  1173. this.loading = false;
  1174. });
  1175. } else {
  1176. this.getList();
  1177. }
  1178. // 获取单位树形
  1179. this.getBuMeng();
  1180. },
  1181. watch: {
  1182. $route(to, from) {
  1183. this.queryParams = {
  1184. pageNum: 1,
  1185. pageSize: 10,
  1186. inspectedUnitId: null,
  1187. inspectedUnit: null,
  1188. inspectionType: null,
  1189. unitCheckId: null,
  1190. unitCheck: null,
  1191. inspectionTime: null,
  1192. inspectionSite: null,
  1193. score: null,
  1194. rectificationTime: null,
  1195. currentState: null,
  1196. question: null,
  1197. createUserId: null,
  1198. createUser: null,
  1199. chargePeopleId: null,
  1200. chargePeople: null,
  1201. correctiveAction: null,
  1202. pictureProof: null,
  1203. documentProof: null,
  1204. caoZuoType: 0,
  1205. };
  1206. if (to.query.obj) {
  1207. this.queryParams.inspectedUnitId = to.query.obj.id;
  1208. this.queryParams.currentState = to.query.obj.name;
  1209. listRegularinfos(this.queryParams).then((res) => {
  1210. this.regularinfoList = res.rows;
  1211. this.total = res.total;
  1212. this.loading = false;
  1213. });
  1214. } else {
  1215. this.getList();
  1216. }
  1217. // listRegularinfos
  1218. },
  1219. },
  1220. mounted() {
  1221. // this.danWiess()
  1222. },
  1223. methods: {
  1224. selectPeos(data) {
  1225. this.queryParams.inspectedUnitId = data.id;
  1226. this.getList();
  1227. },
  1228. // 获取单位列表
  1229. getBuMeng() {
  1230. getDeptss().then((res) => {
  1231. this.deptOptions = res.data;
  1232. });
  1233. },
  1234. danWiess() {
  1235. // 获取当前用户接口
  1236. getUserProfile().then((response) => {
  1237. this.user = response.data;
  1238. // if(response)
  1239. this.danWies = response.data.dept.deptId;
  1240. });
  1241. },
  1242. /** 查询经常性检查列表 */
  1243. getList() {
  1244. this.loading = true;
  1245. listRegularinfo(this.queryParams).then((response) => {
  1246. this.regularinfoList = response.rows;
  1247. this.total = response.total;
  1248. this.loading = false;
  1249. });
  1250. },
  1251. // 取消按钮
  1252. cancel() {
  1253. this.open = false;
  1254. this.open3 = false;
  1255. this.reset();
  1256. this.jiannum = null;
  1257. },
  1258. // 表单重置
  1259. reset() {
  1260. this.form = {
  1261. id: null,
  1262. inspectedUnitId: null,
  1263. inspectedUnit: null,
  1264. inspectionType: null,
  1265. unitCheckId: null,
  1266. unitCheck: null,
  1267. inspectionTime: null,
  1268. inspectionSite: null,
  1269. score: null,
  1270. rectificationTime: null,
  1271. currentState: null,
  1272. question: null,
  1273. createTime: null,
  1274. createUserId: null,
  1275. createUser: null,
  1276. updateTime: null,
  1277. chargePeopleId: null,
  1278. chargePeople: null,
  1279. correctiveAction: null,
  1280. pictureProof: null,
  1281. documentProof: null,
  1282. reasonReturn: null,
  1283. };
  1284. this.resetForm("form");
  1285. },
  1286. /** 搜索按钮操作 */
  1287. handleQuery() {
  1288. this.queryParams.pageNum = 1;
  1289. this.getList();
  1290. },
  1291. /** 重置按钮操作 */
  1292. resetQuery() {
  1293. this.resetForm("queryForm");
  1294. this.handleQuery();
  1295. },
  1296. // 多选框选中数据
  1297. handleSelectionChange(selection) {
  1298. this.ids = selection.map((item) => item.id);
  1299. this.single = selection.length !== 1;
  1300. this.multiple = !selection.length;
  1301. },
  1302. /** 新增按钮操作 */
  1303. handleAdd() {
  1304. this.reset();
  1305. this.open = true;
  1306. this.title = "经常性检查";
  1307. this.jiannum = 0;
  1308. this.btnnum = null;
  1309. this.isdisabled = false;
  1310. var today = new Date();
  1311. var y = today.getFullYear();
  1312. var M = today.getMonth() + 1;
  1313. var d = today.getDate();
  1314. var h = today.getHours();
  1315. var m = today.getMinutes();
  1316. var s = today.getSeconds();
  1317. var w = today.getDay();
  1318. if (M < 10) {
  1319. M = "0" + M;
  1320. }
  1321. if (d < 10) {
  1322. d = "0" + d;
  1323. }
  1324. if (h < 10) {
  1325. h = "0" + h;
  1326. }
  1327. if (m < 10) {
  1328. m = "0" + m;
  1329. }
  1330. if (s < 10) {
  1331. s = "0" + s;
  1332. }
  1333. this.form.inspectionTime =
  1334. y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
  1335. },
  1336. // // 修改按钮操作
  1337. // handleAdds(row){
  1338. // this.open = true;
  1339. // this.title = "经常性检查";
  1340. // const id = row.id || this.ids;
  1341. // getRegularinfo(id).then((response)=>{
  1342. // this.form = response.data;
  1343. // this.open = true;
  1344. // })
  1345. // },
  1346. /** 整改按钮操作 */
  1347. handleUpdate(row) {
  1348. this.reset();
  1349. const id = row.id || this.ids;
  1350. getRegularinfo(id).then((response) => {
  1351. this.form = response.data;
  1352. this.disabled = true;
  1353. this.open = true;
  1354. this.title = "修改经常性检查";
  1355. this.jiannum = 1;
  1356. this.btnnum = null;
  1357. this.zg = 3;
  1358. this.isActive = null;
  1359. if (this.form.currentState == "未通过") {
  1360. this.currentState = 1;
  1361. this.curr = true;
  1362. }
  1363. });
  1364. },
  1365. // 修改按钮
  1366. handleAdds(row) {
  1367. this.isdisabled = true;
  1368. this.reset();
  1369. const id = row.id || this.ids;
  1370. getRegularinfo(id).then((response) => {
  1371. this.form = response.data;
  1372. this.open1 = true;
  1373. this.title = "修改经常性检查";
  1374. // this.jiannum = 1;
  1375. // this.btnnum = null;
  1376. // if (this.form.currentState == "未通过") {
  1377. // this.currentState = 1;
  1378. // this.curr = true;
  1379. // }
  1380. });
  1381. },
  1382. /** 审批按钮操作 */
  1383. shenpifun(row) {
  1384. this.reset();
  1385. const id = row.id || this.ids;
  1386. getRegularinfo(id).then((response) => {
  1387. this.disabled = true;
  1388. this.form = response.data;
  1389. this.open3 = true;
  1390. this.title = "修改经常性检查";
  1391. this.jiannum = 1;
  1392. this.btnnum = 0;
  1393. this.isActive = 1;
  1394. this.sp = 0;
  1395. });
  1396. },
  1397. //通过
  1398. tongguofun() {
  1399. editissuccess(this.form).then((res) => {
  1400. if (res.code == 200) {
  1401. this.$modal.msgSuccess("审批成功");
  1402. this.open = false;
  1403. this.open3 = false;
  1404. this.getList();
  1405. }
  1406. });
  1407. },
  1408. //重新整改
  1409. zhenggaifun() {
  1410. this.jiannum = 0;
  1411. this.btnnum = 1;
  1412. this.disabled = false;
  1413. this.currentState = 1;
  1414. this.curr = false;
  1415. this.open3 = false;
  1416. this.open = true;
  1417. // this.reset();
  1418. // editissuccess().then(res => {
  1419. // if (res.code == 200) {
  1420. // this.$modal.msgSuccess("审批成功");
  1421. // }
  1422. // });
  1423. },
  1424. //未通过提交
  1425. weitongguofun() {
  1426. editisfalse(this.form).then((res) => {
  1427. this.$modal.msgSuccess("操作成功");
  1428. this.open = false;
  1429. this.getList();
  1430. });
  1431. },
  1432. submitForm2() {
  1433. if (this.form.documentProof) {
  1434. if (typeof this.form.documentProof != "string") {
  1435. let documentProofs = this.form.documentProof;
  1436. this.form.documentProof = documentProofs[0].url;
  1437. this.form.wenjianname = documentProofs[0].name;
  1438. }
  1439. }
  1440. this.form.caoZuoType = this.queryParams.caoZuoType;
  1441. editquestion(this.form).then((response) => {
  1442. this.$modal.msgSuccess("整改成功");
  1443. this.open = false;
  1444. this.open1 = false;
  1445. // this.open3=false;
  1446. this.getList();
  1447. });
  1448. },
  1449. /** 提交按钮 */
  1450. submitForm() {
  1451. this.$refs["form"].validate((valid) => {
  1452. if (valid) {
  1453. if (this.form.documentProof) {
  1454. if (typeof this.form.documentProof != "string") {
  1455. let documentProofs = this.form.documentProof;
  1456. this.form.documentProof = documentProofs[0].url;
  1457. this.form.wenjianname = documentProofs[0].name;
  1458. }
  1459. }
  1460. if (this.form.id != null) {
  1461. this.form.caoZuoType = this.queryParams.caoZuoType;
  1462. updateRegularinfo(this.form).then((response) => {
  1463. this.$modal.msgSuccess("修改成功");
  1464. this.open = false;
  1465. this.open1 = false;
  1466. // this.open3=false;
  1467. this.getList();
  1468. });
  1469. } else {
  1470. this.form.caoZuoType = this.queryParams.caoZuoType;
  1471. addRegularinfo(this.form).then((response) => {
  1472. this.$modal.msgSuccess("新增成功");
  1473. this.open = false;
  1474. this.open1 = false;
  1475. // this.open3=false;
  1476. this.getList();
  1477. });
  1478. }
  1479. }
  1480. });
  1481. },
  1482. /** 删除按钮操作 */
  1483. handleDelete(row) {
  1484. const ids = row.id || this.ids;
  1485. this.$modal
  1486. .confirm("是否确认删除经常性检查的数据项?")
  1487. .then(function () {
  1488. return delRegularinfo(ids);
  1489. })
  1490. .then(() => {
  1491. this.getList();
  1492. this.$modal.msgSuccess("删除成功");
  1493. })
  1494. .catch(() => {});
  1495. },
  1496. /** 导出按钮操作 */
  1497. handleExport() {
  1498. const queryParams = this.queryParams;
  1499. this.$modal
  1500. .confirm("是否确认导出所有经常性检查数据项?")
  1501. .then(() => {
  1502. this.exportLoading = true;
  1503. return exportRegularinfo(queryParams);
  1504. })
  1505. .then((response) => {
  1506. this.$download.name(response.msg);
  1507. this.exportLoading = false;
  1508. })
  1509. .catch(() => {});
  1510. },
  1511. //检查单位
  1512. unitCheckIdfun(val) {
  1513. this.form.unitCheckId = val.deptId;
  1514. this.form.unitCheck = val.deptName;
  1515. },
  1516. //受检单位
  1517. inspectedUnitfun(val) {
  1518. this.form.inspectedUnitId = val.deptId;
  1519. this.form.inspectedUnit = val.deptName;
  1520. },
  1521. //负责人
  1522. chargePeoplefun(val) {
  1523. this.form.chargePeopleId = val.id;
  1524. this.form.chargePeople = val.name;
  1525. },
  1526. caoZuoTypefun() {
  1527. this.getList();
  1528. },
  1529. scoreblur() {
  1530. if (this.form.score < 0) {
  1531. this.form.score = null;
  1532. }
  1533. },
  1534. },
  1535. };
  1536. </script>
  1537. <style scoped>
  1538. /* 选择状态样式 */
  1539. ::v-deep .states .el-input .el-input__inner{
  1540. background-color: transparent !important;
  1541. }
  1542. /* 树形样式 */
  1543. ::v-deep .vue-treeselect {
  1544. width: 220px;
  1545. }
  1546. ::v-deep .vue-treeselect__control {
  1547. background-color: transparent;
  1548. }
  1549. ::v-deep .vue-treeselect__single-value {
  1550. color: #fff;
  1551. }
  1552. ::v-deep .el-dialog {
  1553. width: 1030px !important;
  1554. background-color: #004d86;
  1555. }
  1556. ::v-deep .el-dialog__header {
  1557. border-bottom: 1px solid #718a9d;
  1558. }
  1559. ::v-deep .el-dialog__title {
  1560. color: #fff;
  1561. font: 18px;
  1562. }
  1563. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  1564. color: #fff;
  1565. }
  1566. .el-form-item ::v-deep .el-input__inner {
  1567. width: 200px;
  1568. height: 36px;
  1569. background: #004d86;
  1570. color: #fff;
  1571. border: 1px solid #fff !important;
  1572. }
  1573. ::v-deep .el-date-editor.el-input {
  1574. width: 200px;
  1575. height: 36px;
  1576. }
  1577. ::v-deep .el-upload--picture-card {
  1578. height: 210px;
  1579. width: 170px;
  1580. line-height: 210px;
  1581. }
  1582. .el-upload--picture-card /deep/ .el-upload--picture-card i {
  1583. font-size: 48px;
  1584. }
  1585. ::v-deep .el-upload__tip {
  1586. display: none;
  1587. }
  1588. ::v-deep .el-textarea__inner {
  1589. width: 980px;
  1590. height: 104px;
  1591. }
  1592. .div-box-title span {
  1593. width: 25px;
  1594. height: 25px;
  1595. display: inline-block;
  1596. background-color: #1c86e1;
  1597. line-height: 25px;
  1598. text-align: center;
  1599. font-size: 16px;
  1600. cursor: pointer;
  1601. margin-left: 865px;
  1602. }
  1603. .el-select-dropdown__item:hover {
  1604. color: #1c86e1;
  1605. }
  1606. .el-select-dropdown__item {
  1607. color: #000;
  1608. }
  1609. .el-tree {
  1610. background-color: #00365f;
  1611. color: #fff;
  1612. }
  1613. ::v-deep .el-tree-node__content:hover {
  1614. color: #1c86e1;
  1615. }
  1616. ::v-deep .el-upload-list--picture-card .el-upload-list__item {
  1617. height: 210px;
  1618. width: 170px;
  1619. }
  1620. ::v-deep .radiogroup {
  1621. height: 36px;
  1622. }
  1623. ::v-deep .radiogroup .el-radio-button {
  1624. height: 36px;
  1625. }
  1626. ::v-deep .el-input-number__increase {
  1627. background-color: transparent !important;
  1628. border: none;
  1629. color: #cccccc;
  1630. border-bottom: none !important;
  1631. }
  1632. ::v-deep .el-input-number__decrease {
  1633. background-color: transparent !important;
  1634. border: none !important;
  1635. color: #cccccc;
  1636. }
  1637. ::v-deep .el-dialog__body {
  1638. padding: 30px 0px 30px 25px;
  1639. }
  1640. ::v-deep .el-dialog__footer {
  1641. margin-right: 5px;
  1642. }
  1643. .isSubmit {
  1644. margin-left: 42% !important;
  1645. }
  1646. .el-radio-button {
  1647. width: 122px !important;
  1648. height: 30px !important;
  1649. line-height: 30px !important;
  1650. border: none !important;
  1651. }
  1652. ::v-deep .el-radio-button__inner {
  1653. width: 120px !important;
  1654. height: 30px !important;
  1655. line-height: 8px !important;
  1656. background: #196299;
  1657. border: none;
  1658. color: #fff;
  1659. }
  1660. ::v-deep .el-radio-button:first-child .el-radio-button__inner {
  1661. border-left: none !important;
  1662. }
  1663. ::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  1664. color: #ffffff;
  1665. background-color: #006cff !important;
  1666. border-color: #006cff !important;
  1667. -webkit-box-shadow: -1px 0 0 0 #006cff !important;
  1668. box-shadow: -1px 0 0 0 #006cff !important;
  1669. }
  1670. /* 将水平线设为红色: */
  1671. hr {
  1672. border: none;
  1673. height: 1px;
  1674. background-color: rgba(204, 204, 204, 0.5);
  1675. }
  1676. ::v-deep img {
  1677. object-fit: cover;
  1678. }
  1679. ::v-deep .active .upload-file-uploader .el-upload .el-button {
  1680. display: none;
  1681. }
  1682. /* 下载按钮 */
  1683. .downloadfile {
  1684. border: 1px solid white;
  1685. display: inline-block;
  1686. width: 100px;
  1687. height: 33px;
  1688. border-radius: 5px;
  1689. line-height: 33px;
  1690. text-align: center;
  1691. }
  1692. .wenjian {
  1693. width: 600px !important;
  1694. height: 33px;
  1695. }
  1696. </style>