2ec33abb4f50632803ac002709d177e5b44e9cad.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <template>
  2. <div :style="{'height': tableHeight1 + 'px'}" class="pblmRectifyReviewSituation">
  3. <div class="registerNoData" v-if="!registerNo">注册登记号无数据,请在基础信息纠错完善</div>
  4. <el-table
  5. v-if="registerNo"
  6. v-loading="loading"
  7. border
  8. ref="multipleTable"
  9. :data="problemList"
  10. :height="tableHeight"
  11. tooltip-effect="dark"
  12. style="width: 100%">
  13. <el-table-column align="center" type="index" label="序号" width="80">
  14. <template slot-scope="scope">
  15. {{(scope.$index + 1) }}
  16. </template>
  17. </el-table-column>
  18. <el-table-column
  19. header-align="center"
  20. align="center"
  21. min-width="140"
  22. prop="damRegCode"
  23. label="注册登记号"
  24. show-overflow-tooltip>
  25. </el-table-column>
  26. <el-table-column
  27. header-align="center"
  28. align="center"
  29. min-width="140"
  30. prop="pblmNameBz"
  31. label="问题类别"
  32. show-overflow-tooltip>
  33. </el-table-column>
  34. <el-table-column
  35. header-align="center"
  36. align="center"
  37. min-width="140"
  38. prop="checkPointBz"
  39. label="检查项目"
  40. show-overflow-tooltip>
  41. </el-table-column>
  42. <el-table-column
  43. header-align="center"
  44. align="center"
  45. min-width="140"
  46. prop="pblmDescBz"
  47. label="问题描述"
  48. show-overflow-tooltip>
  49. </el-table-column>
  50. <el-table-column
  51. header-align="center"
  52. align="center"
  53. min-width="80"
  54. prop="inspPblmCate"
  55. label="严重程度"
  56. show-overflow-tooltip>
  57. <template slot-scope="scope">
  58. <span v-if="scope.row.inspPblmCate=='0'" class="info">一般</span>
  59. <span v-if="scope.row.inspPblmCate=='1'" class="warning">较重</span>
  60. <span v-if="scope.row.inspPblmCate=='2'" class="fatal">严重</span>
  61. <span v-if="scope.row.inspPblmCate=='3'" class="error">特别严重</span>
  62. </template>
  63. </el-table-column>
  64. <el-table-column
  65. header-align="center"
  66. align="center"
  67. min-width="150"
  68. prop="crtState"
  69. label="市县反馈整改状态"
  70. show-overflow-tooltip>
  71. <template slot-scope="scope">
  72. <span v-if="!scope.row.crtState || scope.row.crtState=='0'">未整改</span>
  73. <span v-if="scope.row.crtState=='1'">整改中</span>
  74. <span v-if="scope.row.crtState=='2'">整改完成</span>
  75. <span v-if="scope.row.crtState=='3'">不具备整改条件</span>
  76. </template>
  77. </el-table-column>
  78. <el-table-column
  79. header-align="center"
  80. align="center"
  81. min-width="150"
  82. prop="crtNote"
  83. label="市县反馈整改备注"
  84. show-overflow-tooltip
  85. ></el-table-column>
  86. <el-table-column
  87. header-align="center"
  88. align="center"
  89. min-width="80"
  90. prop="reviewStat"
  91. label="复核状态"
  92. show-overflow-tooltip>
  93. <template slot-scope="scope">
  94. <span v-if="scope.row.reviewStat=='1'" style="color:#1cff6e">已复核</span>
  95. <span v-if="scope.row.reviewStat=='0' || !scope.row.reviewStat" style="color:#ff6412">未复核</span>
  96. </template>
  97. </el-table-column>
  98. <el-table-column
  99. header-align="center"
  100. align="center"
  101. min-width="140"
  102. prop="reviewResult"
  103. label="复核结果"
  104. show-overflow-tooltip>
  105. <template slot-scope="scope">
  106. {{scope.row.reviewResult == "1"?"未整改":scope.row.reviewResult == "2"?"正在整改":scope.row.reviewResult == "3"?"整改完成":scope.row.reviewResult == "4"?"整改不到位":scope.row.reviewResult == "5"?"上报整改情况与实际不符":""}}
  107. </template>
  108. </el-table-column>
  109. <el-table-column
  110. header-align="center"
  111. align="center"
  112. min-width="140"
  113. prop="reviewNote"
  114. label="复核说明"
  115. show-overflow-tooltip>
  116. </el-table-column>
  117. <el-table-column
  118. align="center"
  119. min-width="230"
  120. label="操作"
  121. show-overflow-tooltip
  122. fixed="right">
  123. <template slot-scope="scope">
  124. <el-button type="success" plain @click="showDetails(scope.row,false)">查看</el-button>
  125. <el-button type="success" @click="submitCheck(scope.row)" v-if="ownPriv('manage') && (scope.row.reviewStat=='0' || !scope.row.reviewStat) && !ifView">复核</el-button>
  126. <el-button type="primary" @click="showDetails(scope.row,true)" v-if="ownPriv('manage') && scope.row.reviewStat=='1' && !ifView">编辑</el-button>
  127. </template>
  128. </el-table-column>
  129. </el-table>
  130. <!-- 详情组件-->
  131. <el-dialog
  132. class="custom_dialog"
  133. :title="isEdit?'问题整改复查情况编辑':'问题整改复查情况查看'"
  134. append-to-body
  135. width="700px"
  136. :close-on-click-modal="false"
  137. :visible.sync="supervisionDetailsVisible"
  138. @close="cancelHandler">
  139. <editDetail ref="xianqing" :rowData="rowData" :isEdit="isEdit" title="问题整改复核情况编辑" v-if="supervisionDetailsVisible" :ifView="ifView" @cancelHandler="cancelHandler"></editDetail>
  140. </el-dialog>
  141. <el-dialog class="custom_dialog"
  142. append-to-body
  143. width="700px"
  144. :close-on-click-modal="false"
  145. :title="currentObjectName +'问题复核'"
  146. :visible.sync="showAddProblemDialog"
  147. @close="closePlDialog">
  148. <addRecheck @closeDialog="closePlDialog" v-if="showAddProblemDialog" :problData="rowData" :objName="currentObjectName"></addRecheck>
  149. </el-dialog>
  150. <!-- 添加问题组件 -->
  151. </div>
  152. </template>
  153. <script>
  154. import addRecheck from "../../xsk2021/addRecheck.vue";
  155. import request from '@util/gw_ajax_request.js'
  156. import {getRsvrRgstr} from "@api/duChaTianBao.js"
  157. export default {
  158. props: ['currentObjectId', 'currentObjectName', 'currentObjectRgstrId', 'activeLabel', 'ifReadyOnly', 'currentResCode', 'currentAdCode', 'currentRsvrNm','ifView'],
  159. data() {
  160. return {
  161. tableHeight: window.innerHeight * .50,
  162. tableHeight1: window.innerHeight * .55,
  163. problemList: [],
  164. loading: false,
  165. currentPage: 1,
  166. pageSize: 10,
  167. pageNum: 1,
  168. total: 0,
  169. supervisionDetailsVisible: false,
  170. currentProblemId: '',
  171. problemDeleteVisible: false,
  172. deleteId: '',
  173. editId: '',
  174. changeSupervisionVisible: false,
  175. showAddProblemDialog: false,
  176. rsvrRules: null,
  177. probId: '',
  178. registerNo:"",
  179. rowData:{},
  180. isEdit:false
  181. }
  182. },
  183. components: {
  184. //详情页
  185. supervisionDetails: resolve => {
  186. require(["../../xsk2021/problemDetail.vue"], resolve);
  187. },
  188. editDetail: resolve => {
  189. require(["../../xsk2021/editDetail.vue"], resolve);
  190. },
  191. addRecheck
  192. },
  193. computed: {
  194. persId() {
  195. return localStorage.getItem("userid") ? localStorage.getItem("userid") : "1098101939614724096";
  196. }
  197. },
  198. created() {
  199. },
  200. mounted() {
  201. this.getRegisterNo()
  202. },
  203. methods: {
  204. submitCheck(row){
  205. this.rowData = row;
  206. this.showAddProblemDialog = true;
  207. },
  208. getRegisterNo(){
  209. this.registerNo = "";
  210. var _self = this;
  211. getRsvrRgstr(_self.currentObjectRgstrId).then(
  212. (res) => {
  213. if (res.data && res.data.damRegCode) {
  214. _self.registerNo = res.data.damRegCode;
  215. _self.getProblemList();
  216. }else{
  217. _self.$message.warning("请在基础信息纠错完善注册登记号信息");
  218. }
  219. }
  220. );
  221. },
  222. removeSuperviseOne(row) {
  223. var _self = this;
  224. this.$confirm('确定要删除该问题吗?', '提示', {
  225. confirmButtonText: '确定',
  226. cancelButtonText: '取消',
  227. type: 'warning'
  228. }).then(() => {
  229. request.get(`/bis/insp/rsvr/pblm/mend/del/`+row.id).then((res) => {
  230. if (res.success) {
  231. _self.getProblemList();
  232. _self.$message.success('删除成功')
  233. } else {
  234. _self.$message.error(res.message)
  235. }
  236. });
  237. }).catch(() => {
  238. });
  239. },
  240. //通知List
  241. getProblemList() {
  242. let obj = {
  243. damRegCode:this.registerNo
  244. };
  245. this.loading = true;
  246. request.post(`/bis/insp/pblm/plist/getPblmPlistByDamRegCode`, obj).then(res => {
  247. if (res.success) {
  248. this.problemList = res.data;
  249. this.loading = false;
  250. }
  251. }).catch(err => {
  252. console.log(err);
  253. })
  254. },
  255. showDetails(row,flag) {
  256. this.isEdit = flag;
  257. this.rowData = row;
  258. this.supervisionDetailsVisible = true
  259. },
  260. timestampToTime(row, column) {
  261. var date = new Date(row);
  262. var Y = date.getFullYear() + "-";
  263. var M =
  264. (date.getMonth() + 1 < 10
  265. ? "0" + (date.getMonth() + 1)
  266. : date.getMonth() + 1) + "-";
  267. var D =
  268. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  269. var h =
  270. (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
  271. var m =
  272. date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  273. return Y + M + D + h + m;
  274. },
  275. closePlDialog() {
  276. this.showAddProblemDialog = false;
  277. this.getRegisterNo();
  278. },
  279. cancelHandler(val) {
  280. if (val) this.getRegisterNo();
  281. this.supervisionDetailsVisible = false;
  282. },
  283. }
  284. }
  285. </script>
  286. <style scoped lang="scss">
  287. .pblmRectifyReviewSituation {
  288. .inspPblmCate {
  289. padding: 2px 10px;
  290. color: #fff;
  291. -webkit-border-radius: 10px;
  292. -moz-border-radius: 10px;
  293. border-radius: 10px;
  294. }
  295. }
  296. .registerNoData{
  297. width: 100%;
  298. height:100%;
  299. display: flex;
  300. justify-content: center;
  301. align-items: center;
  302. font-size: 15px;
  303. font-weight: bold;
  304. color:red;
  305. }
  306. </style>