0267226e2b770ff8acb7c4a4071fb0d4e67f80f7.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <template>
  2. <el-container>
  3. <el-main v-if="!shenHePages">
  4. <el-row :gutter="20" type="flex" justify="start">
  5. <el-col :span="20">
  6. <el-form :inline="true" size="mini" class="demo-form-inline" label-width="100px">
  7. <el-form-item label="年度">
  8. <el-select
  9. v-model="zhengGaiFanKuiForm.year"
  10. clearable
  11. collapse-tags
  12. @change="changeYear">
  13. <el-option
  14. v-for="item in yearList"
  15. :key="item.id"
  16. :label="item.year"
  17. :value="item.year">
  18. </el-option>
  19. </el-select>
  20. </el-form-item>
  21. <el-form-item label="批次">
  22. <el-select
  23. v-model="zhengGaiFanKuiForm.batch"
  24. clearable
  25. collapse-tags>
  26. <el-option
  27. v-for="item in pcList"
  28. :key="item.id"
  29. :label="item.batch"
  30. :value="item.batch">
  31. </el-option>
  32. </el-select>
  33. </el-form-item>
  34. <el-form-item label="接收单位">
  35. <el-select
  36. v-model="zhengGaiFanKuiForm.rectOrgId"
  37. clearable
  38. collapse-tags>
  39. <el-option
  40. v-for="item in provincesList"
  41. :key="item.orgId"
  42. :label="item.orgNm"
  43. :value="item.orgId">
  44. </el-option>
  45. </el-select>
  46. </el-form-item>
  47. </el-form>
  48. </el-col>
  49. <el-col :span="2" :offset=2 style="text-align: end;">
  50. <el-button type="primary" @click="searchClick">查询</el-button>
  51. </el-col>
  52. </el-row>
  53. <div class="table">
  54. <el-table
  55. v-loading="loading"
  56. border
  57. ref="multipleTable"
  58. :height="tableHeight"
  59. :data="tableData"
  60. tooltip-effect="dark"
  61. style="width: 100%"
  62. >
  63. <el-table-column align="center" type="index" label="序号" min-width="25">
  64. <template
  65. slot-scope="scope"
  66. >{{ (zhengGaiFanKuiForm.pageNum - 1) * zhengGaiFanKuiForm.pageSize + (scope.$index + 1) }}</template>
  67. </el-table-column>
  68. <el-table-column
  69. header-align="center"
  70. align="center"
  71. min-width="100"
  72. prop="year"
  73. label="年度"
  74. show-overflow-tooltip
  75. ></el-table-column>
  76. <el-table-column
  77. header-align="center"
  78. align="center"
  79. min-width="120"
  80. prop="batch"
  81. label="批次"
  82. show-overflow-tooltip
  83. ></el-table-column>
  84. <el-table-column
  85. header-align="center"
  86. align="center"
  87. min-width="80"
  88. show-overflow-tooltip
  89. prop="rectOrgNm"
  90. label="接收单位名称"
  91. ></el-table-column>
  92. <el-table-column
  93. header-align="center"
  94. align="center"
  95. min-width="100"
  96. show-overflow-tooltip
  97. prop="rectTm"
  98. label="反馈时间"
  99. :formatter="formatDate"
  100. ></el-table-column>
  101. <el-table-column
  102. header-align="center"
  103. align="center"
  104. min-width="100"
  105. label="反馈文号"
  106. show-overflow-tooltip
  107. prop="rectNub"
  108. ></el-table-column>
  109. <el-table-column
  110. header-align="center"
  111. align="center"
  112. min-width="200"
  113. label="反馈文件"
  114. show-overflow-tooltip
  115. prop="rectFileName">
  116. <template slot-scope="scope">
  117. <a href="javascript:;" @click="viewRectfile(scope.row.rectFilePath)">{{scope.row.rectFileName}}</a>
  118. </template>
  119. </el-table-column>
  120. <el-table-column
  121. header-align="center"
  122. align="center"
  123. min-width="100"
  124. prop="chkPersInfo"
  125. label="被稽察单位联系人"
  126. show-overflow-tooltip
  127. >
  128. </el-table-column>
  129. <el-table-column
  130. header-align="center"
  131. align="center"
  132. min-width="100"
  133. prop="placeDuty"
  134. label="地方问责情况"
  135. ></el-table-column>
  136. <el-table-column
  137. header-align="center"
  138. align="center"
  139. min-width="100"
  140. prop="chkState"
  141. label="审核状态"
  142. >
  143. <template slot-scope="scope">
  144. <span v-if="scope.row.chkState== '1'">归档</span>
  145. <span v-if="!scope.row.chkState || scope.row.chkState == '0'">未审核</span>
  146. </template>
  147. </el-table-column>
  148. <!--<el-table-column-->
  149. <!--header-align="center"-->
  150. <!--align="center"-->
  151. <!--min-width="100"-->
  152. <!--label="整改状态"-->
  153. <!--show-overflow-tooltip-->
  154. <!--&gt;-->
  155. <!--<template slot-scope="scope">-->
  156. <!--<span v-if="scope.row.state">{{scope.row.state == '1' ? '未整改' : scope.row.state == '2' ? '整改中' : scope.row.state == '3' ? '已整改' : scope.row.state == '4' ? '不具备整改条件': ''}}</span>-->
  157. <!--</template>-->
  158. <!--</el-table-column>-->
  159. <el-table-column align="center" min-width="180" label="操作" fixed="right">
  160. <template slot-scope="scope">
  161. <span>
  162. <el-button
  163. type="primary"
  164. size="mini"
  165. @click.stop="audit(scope.row,1)"
  166. v-if="!scope.row.chkState"
  167. >审核</el-button>
  168. <el-button
  169. type="success"
  170. size="mini"
  171. @click.stop="toView(scope.row,0)"
  172. v-if="scope.row.chkState== '1'"
  173. >查看</el-button>
  174. </span>
  175. </template>
  176. </el-table-column>
  177. </el-table>
  178. <!--<el-row :gutter="20" type="flex" justify="space-between" align="middle">-->
  179. <!--<el-pagination-->
  180. <!--style="margin-top: 10px;"-->
  181. <!--background-->
  182. <!--:current-page="zhengGaiFanKuiForm.pageNum"-->
  183. <!--:page-size="zhengGaiFanKuiForm.pageSize"-->
  184. <!--:page-sizes="[10, 20, 30, 40, 50, 100]"-->
  185. <!--layout="sizes, total, prev, pager, next"-->
  186. <!--:total="total"-->
  187. <!--@current-change="pageIndexChange"-->
  188. <!--@size-change="handleSizeChange"-->
  189. <!--&gt;</el-pagination>-->
  190. <!--</el-row>-->
  191. </div>
  192. </el-main>
  193. <el-main v-if="shenHePages">
  194. <provinceAudit :rectOrgId="rowId" @goBack="goBackClick" :ifShenHeShow="ifShenHeShow" :submitRowId="rowId" :ifCaoZuo="ifCaoZuo"></provinceAudit>
  195. </el-main>
  196. </el-container>
  197. </template>
  198. <script>
  199. import request from'@util/gw_ajax_request'
  200. import {dateFormat} from '@util/gw_date';
  201. import provinceAudit from './provinceAudit'
  202. import {hostUrl} from '@util/global_variable.js'
  203. export default {
  204. components: {
  205. provinceAudit
  206. },
  207. data(){
  208. return {
  209. zhengGaiFanKuiForm: {
  210. year: '',
  211. batch: '',
  212. rectOrgId: '',
  213. pageSize: 20,
  214. pageNum: 1
  215. },
  216. yearList: [],
  217. pcList: [],
  218. provincesList:[],
  219. tableData: [],
  220. tableHeight: window.innerHeight * .75,
  221. loading: false,
  222. total: null,
  223. shenHePages: false,
  224. rectOrgId: null,
  225. ifShenHeShow: true,
  226. rowId: null,
  227. ifCaoZuo: null
  228. }
  229. },
  230. computed: {
  231. persId() {
  232. return localStorage.getItem("userid")
  233. ? localStorage.getItem("userid")
  234. : "1098101939614724096";
  235. }
  236. },
  237. mounted(){
  238. this.$nextTick(()=>{
  239. this.getYear();
  240. this.getByPid();
  241. this.getZhengGaiFanKuiData();
  242. })
  243. },
  244. methods:{
  245. getByPid(){
  246. request.get(`/dc/bis/insp/org/getByPid?pid=${localStorage.getItem('currentOrgId')}`)
  247. .then(res =>{
  248. if(res.success){
  249. this.provincesList = res.data;
  250. }
  251. })
  252. .catch(err =>{
  253. console.log(err);
  254. })
  255. },
  256. getYear(){
  257. request.get(`/tac/pblm/rect/getYear/${this.persId}`)
  258. .then(res =>{
  259. if(res.success){
  260. this.yearList = res.data;
  261. }
  262. })
  263. .catch(err =>{
  264. console.log(err);
  265. })
  266. },
  267. changeYear(item) {
  268. let _self = this;
  269. request.get(`tac/pblm/rect/getBatchByYearPersId/${_self.persId}/${item}`)
  270. .then(res =>{
  271. _self.pcList = res.data;
  272. })
  273. .catch(err =>{
  274. console.log(err);
  275. })
  276. if (item == "" || item == undefined) {
  277. _self.pcList = null;
  278. _self.addForm.batch = "";
  279. }
  280. },
  281. searchClick(){
  282. this.getZhengGaiFanKuiData();
  283. },
  284. getZhengGaiFanKuiData(){
  285. request.post(`/tac/pblm/rect/org/findList`,this.zhengGaiFanKuiForm)
  286. .then(res =>{
  287. if(res.success){
  288. this.$nextTick(()=>{
  289. this.tableData = res.data;
  290. // this.provincesList = res.data;
  291. })
  292. }
  293. })
  294. .catch(error =>{
  295. console.log(error);
  296. })
  297. },
  298. formatDate(row) {
  299. return row.rectTm ? dateFormat(row.rectTm, 'yyyy-MM-dd') : "";
  300. },
  301. // 分页
  302. pageIndexChange(val) {
  303. this.$nextTick(() => {
  304. this.zhengGaiFanKuiForm.pageNum = val;
  305. this.getZhengGaiFanKuiData();
  306. });
  307. },
  308. handleSizeChange(val) {
  309. this.$nextTick(() => {
  310. this.zhengGaiFanKuiForm.pageSize = val;
  311. this.getZhengGaiFanKuiData();
  312. });
  313. },
  314. //审核
  315. audit(row,val){
  316. this.$nextTick(()=>{
  317. this.ifCaoZuo = val;
  318. this.rowId = row.id;
  319. this.shenHePages = true;
  320. })
  321. },
  322. goBackClick(){
  323. this.$nextTick(()=>{
  324. this.shenHePages = false;
  325. this.ifShenHeShow = true;
  326. })
  327. },
  328. //查看
  329. toView(row,val){
  330. this.$nextTick(()=>{
  331. this.rowId = row.id;
  332. this.ifCaoZuo = val;
  333. this.shenHePages = true;
  334. this.ifShenHeShow = false;
  335. })
  336. },
  337. viewRectfile(filepath){
  338. window.open(hostUrl + filepath)
  339. }
  340. }
  341. }
  342. </script>
  343. <style lang="scss" scope>
  344. </style>