3b48d70fe1787bd6875d6c2677fa89543754abc7.svn-base 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. <template>
  2. <div class="add_pblm">
  3. <el-dialog :visible.sync="dialogFormEditorVisible" :close-on-click-modal="false" width="70%" @close="closeDialog">
  4. <h3>问题清单</h3>
  5. <div>
  6. <el-row :gutter="20" type="flex" style="margin-bottom: 10px;">
  7. <el-col :span="22">
  8. <el-form :inline="true" size="mini" class="demo-form-inline">
  9. <el-form-item label="接收单位">
  10. <receiver
  11. v-model="editorForm.rectOrgName"
  12. :maxHeight='300'
  13. :maxWidth='250'
  14. :rootAddCode="orgId"
  15. @provTreeSelectChange="selectJigouCodeSinglecx"
  16. @inputClear="inputEmptycx"
  17. ></receiver>
  18. </el-form-item>
  19. <el-form-item label="工程">
  20. <el-input v-model="editorForm.name" clearable placeholder="请输入工程" style="width: 6vw"></el-input>
  21. </el-form-item>
  22. <el-form-item label="问题描述">
  23. <el-input v-model="editorForm.inspPblmDesc" clearable placeholder="请输入问题描述" style="width: 6vw"></el-input>
  24. </el-form-item>
  25. <el-form-item label="严重程度">
  26. <el-select v-model="editorForm.inspPblmCate" clearable placeholder="请选择" style="width: 6vw">
  27. <el-option
  28. v-for="item in supervisionState"
  29. :key="item.value"
  30. :label="item.label"
  31. :value="item.value"
  32. ></el-option>
  33. </el-select>
  34. </el-form-item>
  35. <el-form-item label="整改状态">
  36. <el-select v-model="editorForm.rectConc" clearable placeholder="请选择" style="width: 6vw">
  37. <el-option label="未反馈" value="0"></el-option>
  38. <el-option label="已整改" value="1"></el-option>
  39. <el-option label="整改中" value="2"></el-option>
  40. <el-option label="不具备整改条件" value="3"></el-option>
  41. </el-select>
  42. </el-form-item>
  43. <el-form-item label="审核状态">
  44. <el-select v-model="editorForm.chkState" clearable placeholder="请选择" style="width: 6vw">
  45. <el-option label="未审核" value="0"></el-option>
  46. <el-option label="(市)通过" value="1"></el-option>
  47. <el-option label="(市)驳回" value="2"></el-option>
  48. <el-option label="(省)销号" value="3"></el-option>
  49. <el-option label="(省)待复查" value="4"></el-option>
  50. <el-option label="(省)驳回" value="5"></el-option>
  51. </el-select>
  52. </el-form-item>
  53. <el-form-item label="处置状态">
  54. <el-select v-model="editorForm.jchkState" clearable placeholder="请选择" style="width: 6vw">
  55. <el-option label="未处置" value="2"></el-option>
  56. <el-option label="销号" value="0"></el-option>
  57. <el-option label="待复查" value="1"></el-option>
  58. </el-select>
  59. </el-form-item>
  60. </el-form>
  61. </el-col>
  62. <el-col :span="2" style="text-align: end;">
  63. <el-button @click="search" type="success">查询</el-button>
  64. </el-col>
  65. </el-row>
  66. <div>
  67. <el-table
  68. :data="pblmList"
  69. :height="tableHeight1"
  70. style="width: 100%"
  71. border
  72. tooltip-effect="dark"
  73. @selection-change="handleSelectionChange"
  74. ref="multipleTable">
  75. <el-table-column
  76. type="selection"
  77. width="55">
  78. </el-table-column>
  79. <el-table-column
  80. prop="name"
  81. label="工程名称"
  82. min-width="100"
  83. show-overflow-tooltip>
  84. </el-table-column>
  85. <el-table-column
  86. prop="satOrgName"
  87. label="接收单位"
  88. min-width="100"
  89. show-overflow-tooltip>
  90. </el-table-column>
  91. <el-table-column
  92. prop="inspPblmName"
  93. label="问题类别"
  94. min-width="100"
  95. show-overflow-tooltip>
  96. </el-table-column>
  97. <el-table-column
  98. prop="inspPblmDesc"
  99. label="问题描述"
  100. min-width="100"
  101. show-overflow-tooltip>
  102. </el-table-column>
  103. <el-table-column
  104. prop="inspPblmCate"
  105. label="严重程度"
  106. min-width="100">
  107. <template slot-scope="scope">
  108. <p v-if="scope.row.inspPblmCate == 0"><span class="inspPblmCate" style="background: #27C19F;">一般</span></p>
  109. <p v-if="scope.row.inspPblmCate == 1"><span class="inspPblmCate" style="background: #E6A23C;" >较重</span></p>
  110. <p v-if="scope.row.inspPblmCate == 2"><span class="inspPblmCate" style="background: #F56C6C;" >严重</span></p>
  111. <p v-if="scope.row.inspPblmCate == 3"><span class="inspPblmCate" style="background: #795548;">特别严重</span></p>
  112. </template>
  113. </el-table-column>
  114. <el-table-column
  115. prop="crrtTm"
  116. label="整改时限"
  117. min-width="100">
  118. <template slot-scope="scope">
  119. <span v-if="scope.row.crrtTm">{{formatDate(scope.row.crrtTm)}}</span>
  120. </template>
  121. </el-table-column>
  122. <el-table-column
  123. prop="inspPblmTm"
  124. label="上报时间"
  125. min-width="100">
  126. <template slot-scope="scope">
  127. <span v-if="scope.row.inspPblmTm">{{formatDate(scope.row.inspPblmTm)}}</span>
  128. </template>
  129. </el-table-column>
  130. <el-table-column
  131. prop="rectConc"
  132. label="整改状态"
  133. min-width="150">
  134. <template slot-scope="scope">
  135. <span v-if="scope.row.rectConc == '0'">未反馈</span>
  136. <span v-if="scope.row.rectConc == '1'">已整改</span>
  137. <span v-if="scope.row.rectConc == '2'">整改中</span>
  138. <span v-if="scope.row.rectConc == '3'">不具备整改条件</span>
  139. </template>
  140. </el-table-column>
  141. <el-table-column
  142. prop="chkState"
  143. label="审核状态"
  144. min-width="150">
  145. <template slot-scope="scope">
  146. <span v-if="scope.row.chkState == '0'">未审核</span>
  147. <span v-if="scope.row.chkState == '1'">(市)通过</span>
  148. <span v-if="scope.row.chkState == '2'">(市)驳回</span>
  149. <span v-if="scope.row.chkState == '3'">(省)销号</span>
  150. <span v-if="scope.row.chkState == '4'">(省)待复查</span>
  151. <span v-if="scope.row.chkState == '5'">(省)驳回</span>
  152. </template>
  153. </el-table-column>
  154. <el-table-column
  155. prop="chkStateNote"
  156. label="审核备注"
  157. min-width="150"
  158. show-overflow-tooltip>
  159. </el-table-column>
  160. <el-table-column
  161. prop="jchkState"
  162. label="处置状态"
  163. min-width="150">
  164. <template slot-scope="scope">
  165. <span v-if="scope.row.jchkState == '2'">未处置</span>
  166. <span v-if="scope.row.jchkState == '0'">销号</span>
  167. <span v-if="scope.row.jchkState == '1'">待复查</span>
  168. </template>
  169. </el-table-column>
  170. <el-table-column
  171. label="操作"
  172. min-width="150"
  173. fixed="right"
  174. >
  175. <template slot-scope="scope">
  176. <el-button @click="toView(scope.row)" type="text" size="small" >查看</el-button>
  177. <el-button @click="zgtbClick(scope.row)" type="text" size="small" >整改填报</el-button>
  178. <!--<el-button @click="toDelete(scope.row)" type="text" size="small" >删除</el-button>-->
  179. </template>
  180. </el-table-column>
  181. </el-table>
  182. <el-row style="margin-top: 10px;">
  183. <!-- 分页 -->
  184. <el-col :span="20" class="paginationWarpper">
  185. <el-pagination
  186. class="paginationCenter"
  187. background
  188. @size-change="handleSizeChangeEditor"
  189. @current-change="pageIndexChangeEditor"
  190. :current-page.sync="editorForm.pageNum"
  191. :page-sizes="[10, 20, 50, 100]"
  192. :page-size="editorForm.pageSize"
  193. layout="total, sizes, prev, pager, next, jumper"
  194. :total="totalEditor"
  195. ></el-pagination>
  196. </el-col>
  197. <el-col :span="4" style="text-align: end;"></el-col>
  198. </el-row>
  199. </div>
  200. </div>
  201. </el-dialog>
  202. <!-- 详情弹框 -->
  203. <el-dialog
  204. class="outerDialog custom_dialog"
  205. title="问题详情"
  206. width="60%"
  207. :visible.sync="supervisionDetailsVisible"
  208. v-if="supervisionDetailsVisible"
  209. >
  210. <supervision-details ref="xianqing" :problemId="currentProblemId" :objType="objType"></supervision-details>
  211. <span slot="footer">
  212. <el-button style="margin-top:5px;" @click="supervisionDetailsVisible = false">返回</el-button>
  213. </span>
  214. </el-dialog>
  215. <!--整改填报-->
  216. <pblmEditor v-if="editorDialog" :listId="rowPblId" :rowId="rowId" @dialogClose="dialogClose"></pblmEditor>
  217. </div>
  218. </template>
  219. <script>
  220. import request from '@util/gw_ajax_request'
  221. import {dateFormat} from '@util/gw_date';
  222. import receiver from "./receiver"
  223. import pblmEditor from './pblmEditor'
  224. export default {
  225. name: "addPblm",
  226. props:['RowId','supervisionState','objType','rectId','ifShiJi'],
  227. data (){
  228. return {
  229. dialogFormEditorVisible: true,
  230. formLabelWidth: '120px',
  231. pblmList: [],
  232. pblmListAll: [],
  233. tableHeight1: window.innerHeight * .4,
  234. editorForm:
  235. {
  236. "rectId":"", //通知ID
  237. "isTranc":"", //是否转发 0 不转发 1 转发
  238. "name":"", //工程名
  239. "inspPblmDesc":"", //问题描述
  240. "inspPblmCate":"", //问题严重程度
  241. "satOrgId":"", //转发单位ID
  242. "rectConc":"",//整改状态 (0:未反馈 1:已整改;2:整改中;3:不具备整改条件)
  243. "chkState": "",//审核状态 审核状态 0未审核 1(市)通过 2(市)驳回 3(省)销号 4(省)待复查 5(省)驳回
  244. "jchkState": "",// 监督处处置状态 0 销号 1 待复查
  245. "pageNum": 1,
  246. "pageSize": 20,
  247. },
  248. editorFormAll: {
  249. // "inspPblmType": null,//问题类别
  250. "inspPblmCate": "",//严重程度
  251. ifCasePblm: "",//是否典型
  252. inspPblmName: "",//问题类别名称
  253. objType: "",//类型
  254. pageNum: "",
  255. pageSize: "",
  256. name: "",//工程名称
  257. orgId: ""
  258. },
  259. pageNum: 1,
  260. pageSize: 20,
  261. total: null,
  262. totalEditor: null,
  263. multipleSelection: [],
  264. supervisionDetailsVisible: false,
  265. currentProblemId: null,
  266. qixiandanweiVisible: false,
  267. qixianForm: {
  268. "rectOrgId": "",
  269. "rectOrgName": "",
  270. "crrtTm": ""
  271. },
  272. editorDialog: false,
  273. rowPblId: null,
  274. rowId: null
  275. }
  276. },
  277. components:{
  278. //详情页
  279. supervisionDetails: resolve => {
  280. require(["./supervisionDetails.vue"], resolve);
  281. },
  282. receiver,
  283. pblmEditor
  284. },
  285. computed: {
  286. persId() {
  287. return localStorage.getItem("userid")
  288. ? localStorage.getItem("userid")
  289. : "1098101939614724096";
  290. },
  291. orgId() {
  292. return localStorage.getItem('currentOrgId') ? localStorage.getItem("currentOrgId") : "";
  293. }
  294. },
  295. mounted(){
  296. this.$nextTick(()=>{
  297. this.getPblmList();
  298. })
  299. },
  300. methods:{
  301. closeDialog(){
  302. this.$emit('closeDialog');
  303. },
  304. //所有问题查看
  305. toView(row){
  306. // this.objType = row.sndType;
  307. this.currentProblemId = row.pblmId;
  308. this.supervisionDetailsVisible = true;
  309. },
  310. //删除问题
  311. toDelete(row){
  312. this.$confirm('确定要删除该问题, 是否继续?', '提示', {
  313. confirmButtonText: '确定',
  314. cancelButtonText: '取消',
  315. type: 'warning'
  316. }).then(() => {
  317. request.post(`/bis/insp/rect/pblm/province/delete/${row.id}`)
  318. .then(res => {
  319. if (res.success) {
  320. this.$message.success("删除成功");
  321. this.getPblmList();
  322. } else {
  323. this.$message.warning(res.message);
  324. }
  325. })
  326. .catch(err => {
  327. console.log(err);
  328. })
  329. }).catch(() => {
  330. this.$message({
  331. type: 'info',
  332. message: '已取消删除'
  333. });
  334. });
  335. },
  336. //获取当前通知下督查对象下问题List
  337. getPblmList() {
  338. this.editorForm.rectId = this.RowId;
  339. request.post(`/bis/insp/rect/pblm/province/getPageInfo`, this.editorForm)
  340. .then(res => {
  341. if (res.success) {
  342. this.$nextTick(() => {
  343. this.pblmList = res.data.list;
  344. this.totalEditor = res.data.total;
  345. })
  346. } else {
  347. this.$message.warning(res.message);
  348. }
  349. })
  350. .catch(err => {
  351. console.log(err);
  352. })
  353. },
  354. handleSizeChangeEditor(pageSize) {
  355. this.editorForm.pageSize = pageSize;
  356. this.getPblmList();
  357. },
  358. pageIndexChangeEditor(val) {
  359. this.editorForm.pageNum = val;
  360. this.getPblmList();
  361. },
  362. formatDate(timestamp) {
  363. return timestamp ? dateFormat(timestamp, 'yyyy-MM-dd') : "";
  364. },
  365. // 选中table数据
  366. handleSelectionChange(val) {
  367. this.multipleSelection = [];
  368. val.forEach((item,index)=>{
  369. this.multipleSelection.push(
  370. Object.assign({},item, {'rectId':this.RowId,'persId': this.persId})
  371. )
  372. })
  373. },
  374. // 新增加问题搜索
  375. search(){
  376. this.getPblmList();
  377. },
  378. selectJigouCodeSinglecx(params){
  379. this.$nextTick(()=>{
  380. this.editorForm.rectOrgId = params.code;
  381. this.editorForm.rectOrgName = params.name;
  382. })
  383. },
  384. inputEmptycx(val){
  385. if(!val){
  386. this.editorForm.rectOrgId = "";
  387. this.editorForm.rectOrgName = "";
  388. }
  389. },
  390. //整改填报
  391. zgtbClick(row){
  392. this.rowId = row.id;
  393. this.rowPblId = row.pblmId;
  394. this.editorDialog = true;
  395. },
  396. //整改填报关闭
  397. dialogClose(){
  398. this.editorDialog = false;
  399. this.getPblmList();
  400. }
  401. }
  402. }
  403. </script>
  404. <style lang="scss" scoped>
  405. .add_pblm {
  406. h3{
  407. margin-bottom: 20px;
  408. font-size: 20px;
  409. }
  410. .inspPblmCate{
  411. padding: 2px 10px;
  412. color: #fff;
  413. -webkit-border-radius: 10px;
  414. -moz-border-radius: 10px;
  415. border-radius: 10px;
  416. }
  417. }
  418. </style>