index.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <template>
  2. <div class="audit-project-manage">
  3. <!-- 页面标题 -->
  4. <h2>成本监审任务</h2>
  5. <!-- 搜索区域 -->
  6. <div class="search-container">
  7. <el-form :inline="true" :model="searchForm" class="demo-form-inline">
  8. <el-form-item label="年度:">
  9. <el-date-picker
  10. v-model="searchForm.projectYear"
  11. type="year"
  12. placeholder="选择年"
  13. format="yyyy"
  14. value-format="yyyy"
  15. ></el-date-picker>
  16. </el-form-item>
  17. <el-form-item label="监审项目名称:">
  18. <el-input
  19. v-model="searchForm.projectName"
  20. placeholder="请输入监审项目名称"
  21. clearable
  22. />
  23. </el-form-item>
  24. <!-- <el-form-item label="立项来源:">
  25. <el-select v-model="searchForm.projectSource" placeholder="请选择立项来源">
  26. <el-option label="年度计划内" value="1"></el-option>
  27. <el-option label="年度计划外" value="2"></el-option>
  28. </el-select>
  29. </el-form-item> -->
  30. <!-- <el-form-item label="监审形式:">
  31. <el-select
  32. v-model="searchForm.auditType"
  33. placeholder="请选择监审形式"
  34. style="width: 100%"
  35. clearable
  36. >
  37. <el-option
  38. v-for="item in dictData['auditType']"
  39. :key="item.key"
  40. :label="item.name"
  41. :value="item.key"
  42. ></el-option>
  43. </el-select> -->
  44. <!-- <el-input v-model="searchForm.auditType" placeholder="请输入监审形式" clearable /> -->
  45. <!-- </el-form-item> -->
  46. <!-- <el-form-item label="立项地区:">
  47. <el-input v-model="searchForm.areaName" placeholder="请输入立项地区" clearable />
  48. </el-form-item> -->
  49. <!-- <el-form-item label="监审主体:">
  50. <el-input v-model="searchForm.auditBody" placeholder="请输入监审主体" clearable />
  51. </el-form-item> -->
  52. <!-- <el-form-item label="状态:">
  53. <el-select v-model="searchForm.currentNode" placeholder="请选择状态">
  54. <el-option label="提交材料" value="tjcl"></el-option>
  55. <el-option label="材料初审" value="ccls"></el-option>
  56. <el-option label="实地审核" value="sdsh"></el-option>
  57. <el-option label="意见告知" value="yigz"></el-option>
  58. <el-option label="意见反馈" value="yjfk"></el-option>
  59. <el-option label="集体审议" value="jtsy"></el-option>
  60. <el-option label="出具报告" value="cjbg"></el-option>
  61. <el-option label="归档" value="gd"></el-option>
  62. </el-select>
  63. </el-form-item> -->
  64. <el-form-item>
  65. <el-button type="primary" @click="handleSearch">查询</el-button>
  66. </el-form-item>
  67. </el-form>
  68. </div>
  69. <!-- 数据表格 -->
  70. <el-table
  71. v-loading="loading"
  72. :data="projectList"
  73. border
  74. style="width: 100%"
  75. >
  76. <el-table-column
  77. prop="serialNumber"
  78. label="序号"
  79. width="60"
  80. align="center"
  81. >
  82. <template slot-scope="scope">
  83. <span>
  84. {{ scope.$index + 1 }}
  85. </span>
  86. </template>
  87. </el-table-column>
  88. <el-table-column
  89. prop="projectYear"
  90. label="立项年度"
  91. width="100"
  92. align="center"
  93. >
  94. <template slot-scope="scope">
  95. <span>{{ scope.row.projectYear }}年</span>
  96. </template>
  97. </el-table-column>
  98. <el-table-column
  99. prop="areaName"
  100. label="立项地区"
  101. width="100"
  102. align="center"
  103. />
  104. <el-table-column
  105. prop="projectName"
  106. label="成本监审项目名称"
  107. align="center"
  108. show-overflow-tooltip
  109. >
  110. <template slot-scope="scope">
  111. <a
  112. href="#"
  113. class="link-text"
  114. @click.prevent="handleMessage(scope.row)"
  115. >
  116. {{ scope.row.projectName }}
  117. </a>
  118. </template>
  119. </el-table-column>
  120. <el-table-column
  121. prop="auditPeriod"
  122. label="监审期间"
  123. align="center"
  124. show-overflow-tooltip
  125. />
  126. <el-table-column
  127. prop="sourceType"
  128. label="立项来源"
  129. align="center"
  130. show-overflow-tooltip
  131. >
  132. <template slot-scope="scope">
  133. {{ getDictName('projectProposal', scope.row.sourceType) }}
  134. </template>
  135. </el-table-column>
  136. <el-table-column
  137. prop="auditType"
  138. label="监审形式"
  139. width="120"
  140. align="center"
  141. >
  142. <template slot-scope="scope">
  143. {{ getDictName('auditType', scope.row.auditType) }}
  144. </template>
  145. </el-table-column>
  146. <el-table-column
  147. prop="orgName"
  148. label="监审主体"
  149. align="center"
  150. show-overflow-tooltip
  151. />
  152. <el-table-column
  153. prop="currentNodeName"
  154. label="状态"
  155. align="center"
  156. show-overflow-tooltip
  157. >
  158. <!-- <template slot-scope="scope">
  159. <div v-if="scope.row.currentNode === null && scope.row.currentNode === undefined && scope.row.currentNode === ''">
  160. <div v-if="scope.row.currentNode === 'tjcl'">提交材料</div>
  161. <div v-if="scope.row.currentNode === 'ccls'">材料初审</div>
  162. <div v-if="scope.row.currentNode === 'sdsh'">实地审核</div>
  163. <div v-if="scope.row.currentNode === 'yigz'">意见告知</div>
  164. <div v-if="scope.row.currentNode === 'yjfk'">意见反馈</div>
  165. <div v-if="scope.row.currentNode === 'jtsy'">集体审议</div>
  166. <div v-if="scope.row.currentNode === 'cjbg'">出具报告</div>
  167. <div v-if="scope.row.currentNode === 'gd'">归档</div>
  168. </div>
  169. <div v-else>
  170. <div>{{scope.row.currentNodeName}}</div>
  171. </div>
  172. </template> -->
  173. </el-table-column>
  174. <el-table-column label="操作" width="250" align="center">
  175. <template slot-scope="scope">
  176. <!-- 文字按钮样式 -->
  177. <el-button
  178. v-if="
  179. (scope.row.currentNode === 'clcs' ||
  180. scope.row.currentNode === 'tjcl') &&
  181. (scope.row.status === '100' || scope.row.status === '500')
  182. "
  183. size="mini"
  184. type="text"
  185. @click="handleEdit(scope.row)"
  186. >
  187. 填报任务
  188. </el-button>
  189. <el-button
  190. v-if="
  191. scope.row.currentNode === 'yjfk' && scope.row.status === '250'
  192. "
  193. size="mini"
  194. type="text"
  195. @click="handleEdit(scope.row)"
  196. >
  197. 意见反馈
  198. </el-button>
  199. <el-button
  200. v-if="
  201. (scope.row.status === 600 || scope.row.status === '600') &&
  202. (scope.row.currentNode !== 'jtsy' ||
  203. scope.row.currentNode !== 'cjbg' ||
  204. scope.row.currentNode !== 'gd')
  205. "
  206. size="mini"
  207. type="text"
  208. @click="handleMaterials(scope.row)"
  209. >
  210. 补充材料
  211. </el-button>
  212. <el-button size="mini" type="text" @click="handleMessage(scope.row)">
  213. 查看
  214. </el-button>
  215. <!-- <el-button
  216. size="mini"
  217. type="text"
  218. @click="handleEstablish(scope.row)"
  219. >
  220. 立项
  221. </el-button> -->
  222. </template>
  223. </el-table-column>
  224. </el-table>
  225. <!-- 分页 -->
  226. <div class="pagination-container">
  227. <el-pagination
  228. :current-page="currentPage"
  229. :page-sizes="[10, 20, 50, 100]"
  230. :page-size="pageSize"
  231. layout="total, sizes, prev, pager, next, jumper"
  232. :total="total"
  233. @size-change="handleSizeChange"
  234. @current-change="handleCurrentChange"
  235. ></el-pagination>
  236. </div>
  237. <taskInfo ref="taskInfo" />
  238. <!-- 填报任务侧边弹窗 -->
  239. <task-fill-in
  240. ref="taskFillIn"
  241. :visible.sync="taskFillInVisible"
  242. :task-info="currentTaskInfo"
  243. :view-mode="taskViewMode"
  244. @close="handleTaskFillInClose"
  245. @refresh="handleTaskFillInRefresh"
  246. />
  247. </div>
  248. </template>
  249. <script>
  250. import { Message, MessageBox } from 'element-ui'
  251. import { getTaskHandlingList } from '@/api/auditTaskProcessing'
  252. import { dictMixin } from '@/mixins/useDict'
  253. import taskInfo from '@/components/task/taskInfo.vue'
  254. import TaskFillIn from '@/views/EntDeclaration/auditTaskManagement/taskFillIn.vue'
  255. export default {
  256. name: 'AuditTaskProcessingView',
  257. components: {
  258. taskInfo,
  259. TaskFillIn,
  260. },
  261. mixins: [dictMixin],
  262. data() {
  263. return {
  264. dictData: {
  265. auditType: [], //监审形式
  266. projectProposal: [], //立项来源
  267. },
  268. loading: false,
  269. // 搜索表单
  270. searchForm: {
  271. pageNum: 1,
  272. pageSize: 10,
  273. projectYear: '2025',
  274. projectName: '',
  275. projectSource: '',
  276. auditForm: '',
  277. auditType: '',
  278. areaName: '',
  279. auditBody: '',
  280. currentNode: '',
  281. },
  282. // 项目列表
  283. projectList: [],
  284. // 分页信息
  285. currentPage: 1,
  286. pageSize: 10,
  287. total: 3,
  288. // 填报任务弹窗相关
  289. taskFillInVisible: false,
  290. currentTaskInfo: {},
  291. taskViewMode: false,
  292. }
  293. },
  294. mounted() {
  295. this.handleSearch()
  296. },
  297. methods: {
  298. // 处理搜索
  299. handleSearch() {
  300. this.currentPage = 1
  301. this.searchForm.pageNum = 1
  302. this.getTaskHandlingPage()
  303. },
  304. // 处理查看
  305. handleView(row) {
  306. // this.dialogTitle = '查看项目'
  307. // this.isView = true
  308. // this.currentProject = { ...row }
  309. // this.dialogVisible = true
  310. this.$router.push({
  311. path: '/dataManagement/EntDeclaration/auditTaskManagementProjectInfo',
  312. })
  313. },
  314. handleEstablishDialogClose() {},
  315. // 处理分页大小变化
  316. handleSizeChange(val) {
  317. this.pageSize = val
  318. this.searchForm.pageSize = val
  319. this.searchForm.pageNum = 1
  320. this.currentPage = 1
  321. this.getTaskHandlingPage()
  322. },
  323. // 处理当前页变化
  324. handleCurrentChange(val) {
  325. this.currentPage = val
  326. this.searchForm.pageNum = val
  327. this.getTaskHandlingPage()
  328. },
  329. // 填报任务
  330. handleEdit(row) {
  331. console.log('填报任务', row)
  332. this.currentTaskInfo = row || {}
  333. this.taskViewMode = false
  334. // 使用ref调用组件的open方法
  335. this.$nextTick(() => {
  336. if (this.$refs.taskFillIn) {
  337. this.$refs.taskFillIn.open(row, false)
  338. }
  339. })
  340. },
  341. // 补充材料:打开 TaskFillIn,默认切到“报送资料”并打开补充材料弹窗
  342. handleMaterials(row) {
  343. this.currentTaskInfo = row || {}
  344. this.taskViewMode = false
  345. this.$nextTick(() => {
  346. if (this.$refs.taskFillIn) {
  347. this.$refs.taskFillIn.open(row, false, {
  348. activeTab: 'dataRequirements',
  349. openMaterialDialog: true,
  350. })
  351. }
  352. })
  353. },
  354. // 填报任务弹窗关闭
  355. handleTaskFillInClose() {
  356. this.taskFillInVisible = false
  357. this.currentTaskInfo = {}
  358. },
  359. // 填报任务提交成功后刷新列表
  360. handleTaskFillInRefresh() {
  361. // 刷新列表数据
  362. this.getTaskHandlingPage()
  363. },
  364. // 查看
  365. handleMessage(row) {
  366. this.$refs.taskInfo.open(row)
  367. // console.log(row)
  368. // this.$router.push({
  369. // path: '/dataManagement/EntDeclaration/auditTaskManagementProjectInfo',
  370. // query: {
  371. // info: row,
  372. // viewMode: true, // 标识为查看模式
  373. // },
  374. // })
  375. },
  376. // 任务办理列表
  377. getTaskHandlingPage() {
  378. this.loading = true
  379. getTaskHandlingList(this.searchForm)
  380. .then((res) => {
  381. console.log('任务办理列表', res)
  382. this.projectList = res.value.records
  383. this.total = res.value.total
  384. this.loading = false
  385. })
  386. .catch((err) => {
  387. console.log(err)
  388. this.loading = false
  389. })
  390. },
  391. },
  392. }
  393. </script>
  394. <style scoped>
  395. .audit-project-manage {
  396. padding: 20px;
  397. }
  398. h2 {
  399. margin-bottom: 20px;
  400. font-size: 18px;
  401. color: #303133;
  402. }
  403. .search-container {
  404. margin-bottom: 20px;
  405. padding: 10px;
  406. background-color: #f5f7fa;
  407. border-radius: 4px;
  408. }
  409. .demo-form-inline {
  410. display: flex;
  411. align-items: center;
  412. flex-wrap: wrap;
  413. }
  414. .link-text {
  415. color: #409eff;
  416. cursor: pointer;
  417. }
  418. .pagination-container {
  419. margin-top: 20px;
  420. text-align: right;
  421. }
  422. /* 对话框样式 */
  423. .dialog-content h3 {
  424. margin-bottom: 20px;
  425. font-size: 16px;
  426. color: #303133;
  427. }
  428. </style>