342dee4782c5eba382f787c45164abed73fa48bf.svn-base 21 KB

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