audit-question-form.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. <template>
  2. <div :class="$style.questionForm">
  3. <audit-form-top-banner>
  4. <div :class="$style.titleHide">
  5. <sd-detail-form
  6. ref="docform"
  7. form-id="iamQuestionInventory"
  8. page-id="audit/question/iamQuestionInventory"
  9. :record-id="this.$route.query.record ? parseInt(this.$route.query.record) : null"
  10. :class="$style.form"
  11. :read-only="true"
  12. @close="close(true)"
  13. @saved="saved"
  14. >
  15. <template v-slot="{ model, fields }">
  16. <table>
  17. <tr>
  18. <td style="padding-left:5px;border:none">
  19. <audit-advanced-group
  20. :expand="findExpand"
  21. :expand-str="'findExpand'"
  22. :group-label="'审计发现_基本信息'"
  23. tablestyle="''"
  24. @changedClick="changedClick"
  25. ></audit-advanced-group>
  26. </td>
  27. </tr>
  28. </table>
  29. <table v-show="findExpand">
  30. <colgroup>
  31. <col style="width: 200px;" />
  32. <col />
  33. <col style="width: 200px;" />
  34. <col />
  35. </colgroup>
  36. <tr>
  37. <!-- 审计发现标题 -->
  38. <sd-form-item-td name="findingTitle">{{ model.findingTitle }}</sd-form-item-td>
  39. <!-- 审计发现编号 -->
  40. <sd-form-item-td name="findingCode">{{ model.findingCode }}</sd-form-item-td>
  41. </tr>
  42. <tr>
  43. <!-- 审计发现类别 -->
  44. <sd-form-item-td name="findType" :colspan="3">
  45. <template v-slot:read-and-edit="{ editable }">
  46. {{ JSON.parse(model.findType).text }}
  47. </template>
  48. </sd-form-item-td>
  49. </tr>
  50. <tr>
  51. <!-- 审计发现描述 -->
  52. <sd-form-item-td name="findDesc" :colspan="3">{{ model.findDesc }}</sd-form-item-td>
  53. </tr>
  54. <tr>
  55. <!-- 审计建议描述 -->
  56. <sd-form-item-td name="suggestion" :colspan="3">{{
  57. model.suggestion
  58. }}</sd-form-item-td>
  59. </tr>
  60. <tr>
  61. <!-- 问题责任部门 -->
  62. <sd-form-item-td name="responsibleDeptName">{{
  63. model.responsibleDeptName
  64. }}</sd-form-item-td>
  65. <!-- 所属业务域 -->
  66. <sd-form-item-td name="businessProcess">{{
  67. model.businessProcess
  68. }}</sd-form-item-td>
  69. </tr>
  70. <tr>
  71. <!-- 是否问责 -->
  72. <sd-form-item-td name="whetherOrderDuty">{{
  73. model.whetherOrderDuty
  74. }}</sd-form-item-td>
  75. <!-- 问责要求 -->
  76. <sd-form-item-td name="orderDutyAsk">{{ model.orderDutyAsk }}</sd-form-item-td>
  77. </tr>
  78. </table>
  79. <table>
  80. <tr>
  81. <td style="padding-left:5px;border:none">
  82. <audit-advanced-group
  83. :expand="rectplanExpand"
  84. :expand-str="'rectplanExpand'"
  85. :group-label="'审计发现_整改计划信息'"
  86. tablestyle="''"
  87. @changedClick="changedClick"
  88. ></audit-advanced-group>
  89. </td>
  90. </tr>
  91. </table>
  92. <table v-show="rectplanExpand">
  93. <colgroup>
  94. <col style="width: 200px;" />
  95. <col />
  96. <col style="width: 200px;" />
  97. <col />
  98. </colgroup>
  99. <tr>
  100. <!-- 整改责任部门 -->
  101. <sd-form-item-td name="responsibleDeptName">{{
  102. model.responsibleDeptName
  103. }}</sd-form-item-td>
  104. <!-- 直接责任人 -->
  105. <sd-form-item-td name="directResponsible">{{
  106. model.directResponsible
  107. }}</sd-form-item-td>
  108. </tr>
  109. <tr>
  110. <!-- 领导责任人 -->
  111. <sd-form-item-td name="leaderResponsible">{{
  112. model.leaderResponsible
  113. }}</sd-form-item-td>
  114. <!-- 共同责任部门 -->
  115. <sd-form-item-td name="commonDutyDepart">{{
  116. model.commonDutyDepart
  117. }}</sd-form-item-td>
  118. </tr>
  119. <tr>
  120. <!-- 拟整改完成日期 -->
  121. <sd-form-item-td name="finishDate" :colspan="3">{{
  122. model.finishDate
  123. }}</sd-form-item-td>
  124. </tr>
  125. <tr>
  126. <!-- 拟整改措施 -->
  127. <sd-form-item-td name="measure" :colspan="3">{{ model.measure }}</sd-form-item-td>
  128. </tr>
  129. <tr>
  130. <!-- 说明 -->
  131. <sd-form-item-td name="remark" :colspan="3">{{ model.remark }}</sd-form-item-td>
  132. </tr>
  133. </table>
  134. <table>
  135. <tr>
  136. <td style="padding-left:5px;border:none">
  137. <audit-advanced-group
  138. :expand="lsxxExpand"
  139. :expand-str="'lsxxExpand'"
  140. :group-label="'审计发现_落实信息'"
  141. tablestyle="''"
  142. @changedClick="changedClick"
  143. ></audit-advanced-group>
  144. </td>
  145. </tr>
  146. </table>
  147. <table v-show="lsxxExpand">
  148. <colgroup>
  149. <col style="width: 200px;" />
  150. <col />
  151. <col style="width: 200px;" />
  152. <col />
  153. </colgroup>
  154. <tr>
  155. <!-- 整改状态 -->
  156. <sd-form-item-td name="rectStatus" :colspan="model.rectStatus === '03' ? 1 : 3">{{
  157. model.rectStatus
  158. }}</sd-form-item-td>
  159. <!-- 整改完成日期 -->
  160. <sd-form-item-td v-if="model.rectStatus === '03'" name="rectFinishDate">
  161. <span>{{ model.rectFinishDate | sdDateFormat('YYYY-MM-DD') }}</span>
  162. </sd-form-item-td>
  163. </tr>
  164. <tr v-show="model.rectStatus === '01'">
  165. <!-- 是否超期未整改 -->
  166. <sd-form-item-td name="isTrue" :colspan="3">{{ model.isTrue }}</sd-form-item-td>
  167. </tr>
  168. <tr v-if="model.isTrue === '1' || model.isTrue === 1">
  169. <!-- 超期原因 -->
  170. <sd-form-item-td name="overdueReason" :colspan="3">{{
  171. model.overdueReason
  172. }}</sd-form-item-td>
  173. </tr>
  174. <tr v-if="model.rectStatus !== '04' && model.rectStatus !== '03'">
  175. <!-- 预计整改完成日期 -->
  176. <sd-form-item-td name="expectedCompleteDate" :colspan="3">{{
  177. model.expectedCompleteDate
  178. }}</sd-form-item-td>
  179. </tr>
  180. <tr>
  181. <!-- 整改情况说明 -->
  182. <sd-form-item-td name="description" :colspan="3">{{
  183. model.description
  184. }}</sd-form-item-td>
  185. </tr>
  186. <tr>
  187. <!-- 整改问题金额分类 -->
  188. <sd-form-item-td name="rectMoneyType">{{ model.rectMoneyType }}</sd-form-item-td>
  189. <!-- 整改问题金额 -->
  190. <sd-form-item-td name="rectMoneySum">{{ model.rectMoneySum }}</sd-form-item-td>
  191. </tr>
  192. <tr>
  193. <!-- 成果利用 -->
  194. <sd-form-item-td name="resultUse">{{ model.resultUse }}</sd-form-item-td>
  195. <!-- 成果利用数量 -->
  196. <sd-form-item-td name="resultUseSum">{{ model.resultUseSum }}</sd-form-item-td>
  197. </tr>
  198. <tr>
  199. <!-- 处分信息 -->
  200. <sd-form-item-td name="punishInfo">{{ model.punishInfo }}</sd-form-item-td>
  201. <!-- 处分人数 -->
  202. <sd-form-item-td name="punishSum">{{ model.punishSum }}</sd-form-item-td>
  203. </tr>
  204. <tr>
  205. <!-- 向司法机关移送或报案线索 -->
  206. <sd-form-item-td name="transferToJustice">{{
  207. model.transferToJustice
  208. }}</sd-form-item-td>
  209. <!-- 涉案人员 -->
  210. <sd-form-item-td name="personInvolved">{{ model.personInvolved }}</sd-form-item-td>
  211. </tr>
  212. <tr>
  213. <!-- 附件 -->
  214. <sd-form-item-td name="lsAttachment" :colspan="3">
  215. <template v-slot:read-and-edit="{ editable }">
  216. <sd-attachment
  217. v-model="model.lsAttachment"
  218. :group-id="JSON.parse(fields.lsAttachment.value).value"
  219. :read-only="!editable"
  220. />
  221. </template>
  222. <!-- <template v-slot:read-and-edit="{ editable }">
  223. <sd-attachment-ex
  224. v-model="model.lsAttachment"
  225. :group-id="JSON.parse(fields.lsAttachment.value).value"
  226. :read-only="!editable"
  227. :zw-uploadable="false"
  228. />
  229. </template> -->
  230. </sd-form-item-td>
  231. </tr>
  232. <tr>
  233. <td :colspan="4" style="border:none"
  234. ><a @click="fnopenhistoryrecify">历史反馈记录</a></td
  235. >
  236. </tr>
  237. <tr>
  238. <td :colspan="4" style="border:none">
  239. <table style="width:100%">
  240. <tr>
  241. <td width="5.8%" style="text-align:center">序号</td
  242. ><td style="text-align:center">反馈日期</td
  243. ><td style="text-align:center">反馈状态</td>
  244. </tr>
  245. <tr v-for="(fk, index) in model.iamWorkRectCarryOutHistoryEntity" :key="index">
  246. <td style="text-align:center">{{ index + 1 }}</td
  247. ><td style="text-align:center"
  248. ><a @click="fnopenfk(fngetnr(fk, 'id'))">{{
  249. fngetnr(fk, 'lastModifiedTime') | sdDateFormat('YYYY-MM-DD')
  250. }}</a></td
  251. ><td style="text-align:center">{{
  252. fngetlabel(fields.rectStatus, fngetnr(fk, 'rectStatus'))
  253. }}</td>
  254. </tr>
  255. </table>
  256. </td>
  257. </tr>
  258. </table>
  259. <table>
  260. <tr>
  261. <td style="padding-left:5px;border:none">
  262. <audit-advanced-group
  263. :expand="zgqrExpand"
  264. :expand-str="'zgqrExpand'"
  265. :group-label="'审计发现_整改确认'"
  266. tablestyle="''"
  267. @changedClick="changedClick"
  268. ></audit-advanced-group>
  269. </td>
  270. </tr>
  271. </table>
  272. <!-- <table v-show="zgqrExpand">
  273. {{ model.iamRectifyCancelLogEntities }}
  274. </table> -->
  275. <table v-show="zgqrExpand">
  276. <colgroup>
  277. <col style="width: 200px;" />
  278. <col />
  279. <col style="width: 200px;" />
  280. <col />
  281. </colgroup>
  282. <tr>
  283. <td colspan="4">
  284. <a @click="fnopenhistoryrecify">历史确认记录</a>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td class="ant-form-item-label ant-form-item-label">确认状态</td
  289. ><td colspan="3">{{
  290. fngetlabel(
  291. fields.iamRectifyCancelLogEntities.attr.dync.find(
  292. (i) => i.name === 'confirmStatus'
  293. ),
  294. fngetnr(model.iamRectifyCancelLogEntities, 'confirmStatus')
  295. )
  296. }}</td>
  297. </tr>
  298. <tr>
  299. <td class="ant-form-item-label ant-form-item-label">确认意见</td
  300. ><td colspan="3">{{
  301. fngetnr(model.iamRectifyCancelLogEntities, 'confirmOpinion')
  302. }}</td>
  303. </tr>
  304. <tr>
  305. <td class="ant-form-item-label ant-form-item-label">确认人</td
  306. ><td>{{ fngetnr(model.iamRectifyCancelLogEntities, 'confirmName') }}</td>
  307. <td class="ant-form-item-label ant-form-item-label">确认时间</td
  308. ><td>{{
  309. fngetnr(model.iamRectifyCancelLogEntities, 'confirmTime')
  310. | sdDateFormat('YYYY-MM-DD')
  311. }}</td>
  312. </tr>
  313. </table>
  314. <table>
  315. <tr>
  316. <td style="padding-left:5px;border:none">
  317. <audit-advanced-group
  318. :expand="bgExpand"
  319. :expand-str="'bgExpand'"
  320. :group-label="'审计发现_变更信息'"
  321. tablestyle="''"
  322. @changedClick="changedClick"
  323. ></audit-advanced-group>
  324. </td>
  325. </tr>
  326. </table>
  327. <!-- <table v-show="bgExpand">
  328. {{ model.iamDetailFormModifyLogEntities }}
  329. </table> -->
  330. <table
  331. v-for="(bg, index) in fndeal(model.iamDetailFormModifyLogEntities)"
  332. v-show="bgExpand"
  333. :key="index"
  334. :class="$style.tablexm"
  335. >
  336. <colgroup>
  337. <col style="width: 200px;" />
  338. <col />
  339. <col style="width: 200px;" />
  340. <col />
  341. </colgroup>
  342. <tr>
  343. <td style="width:160px;text-align:right;vertical-align:top">{{ bg.creatorName }}</td
  344. ><td colspan="3"
  345. ><div
  346. style="
  347. width: 18px;margin-left:2px;
  348. font-size: 8px;
  349. color: #fff;
  350. text-align:center;
  351. background-color: lightgreen;
  352. border-radius: 100%;
  353. "
  354. >√</div
  355. ><div style="padding-left:10px;margin-left:9px;border-left:1px solid gray"
  356. >{{ bg.creationTime | sdDateFormat('YYYY-MM-DD HH:mm:ss') }}
  357. <table
  358. ><tr v-for="(x, index) in bg.xx" :key="index">
  359. <td>[{{ x.fieldDesc }}]</td
  360. ><td
  361. >{{ x.oldValue !== '' ? '"' : ''
  362. }}{{
  363. x.oldValue.indexOf('[') !== -1 ||
  364. x.oldValue.indexOf('{') !== -1 ||
  365. x.newValue.indexOf('[') !== -1 ||
  366. x.newValue.indexOf('{') !== -1
  367. ? ''
  368. : x.oldValue === 'null'
  369. ? ''
  370. : x.oldValue
  371. }}{{ x.oldValue !== '' ? '" 改为 ' : ''
  372. }}<span v-if="x.oldValue === ''" style="color:green">
  373. {{
  374. x.newValue.indexOf('[') !== -1 || x.newValue.indexOf('{') !== -1
  375. ? '修改动态表格数据'
  376. : x.newValue
  377. }}</span
  378. >
  379. <span v-else>{{
  380. x.newValue.indexOf('[') !== -1 || x.newValue.indexOf('{') !== -1
  381. ? '修改动态表格数据'
  382. : '"' + x.newValue + '"'
  383. }}</span>
  384. </td></tr
  385. ></table
  386. >
  387. </div></td
  388. >
  389. </tr>
  390. </table>
  391. </template>
  392. </sd-detail-form>
  393. </div>
  394. </audit-form-top-banner>
  395. </div>
  396. </template>
  397. <script>
  398. import crossWindowWatcher from '@/common/services/cross-window-watcher'
  399. import auditFormTopBanner from '../../components/audit-form-top-banner'
  400. import auditAdvancedGroup from '../../components/audit-advanced-group.vue'
  401. import auditAdvancedGroupMixins from '../../components/audit-advanced-group-mixins'
  402. import components from './_import-components/audit-question-form-import'
  403. export default {
  404. name: 'AuditQuestionForm',
  405. metaInfo: {
  406. title: '整改问题清单',
  407. },
  408. components: {
  409. ...components,
  410. auditAdvancedGroup,
  411. auditFormTopBanner,
  412. },
  413. mixins: [auditAdvancedGroupMixins],
  414. data() {
  415. return {
  416. rectplanExpand: true,
  417. findExpand: true,
  418. trackExpand: true,
  419. zgqrExpand: true,
  420. lsxxExpand: true,
  421. bgExpand: true,
  422. }
  423. },
  424. methods: {
  425. close(flag) {
  426. crossWindowWatcher.notifyChange(this.$route.fullPath, flag)
  427. window.close()
  428. },
  429. saved() {
  430. return false
  431. },
  432. fnopenhistoryrecify() {
  433. return false
  434. },
  435. fngetnr(obj, item) {
  436. if (obj === undefined) {
  437. return ''
  438. } else {
  439. if (obj.length === undefined) {
  440. return obj[item]
  441. } else if (obj.length > 0) {
  442. return obj[obj.length - 1][item]
  443. } else {
  444. return ''
  445. }
  446. }
  447. },
  448. fngetlabel(obj, val) {
  449. if (obj.attr.selectListItem) {
  450. const o = obj.attr.selectListItem.find((item) => item.value === val)
  451. if (o) {
  452. return o.label
  453. } else {
  454. return val
  455. }
  456. } else {
  457. return val
  458. }
  459. },
  460. fndeal(obj) {
  461. const newobj = []
  462. if (obj !== undefined) {
  463. obj.forEach((item) => {
  464. item.xt = item.creatorName + '_' + item.creationTime
  465. const i = newobj.find((n) => n.xt === item.xt)
  466. if (i !== undefined) {
  467. i.xx.push({
  468. fieldDesc: item.fieldDesc,
  469. fieldName: item.fieldName,
  470. newValue: item.newValue,
  471. oldValue: item.oldValue,
  472. })
  473. } else {
  474. item.xx = [
  475. {
  476. fieldDesc: item.fieldDesc,
  477. fieldName: item.fieldName,
  478. newValue: item.newValue,
  479. oldValue: item.oldValue,
  480. },
  481. ]
  482. newobj.push(item)
  483. }
  484. })
  485. }
  486. return newobj
  487. },
  488. fnopenfk(id) {
  489. const url = '#/audit-question-feedback-form?record=' + id
  490. window.open(url)
  491. },
  492. },
  493. }
  494. </script>
  495. <style module lang="scss">
  496. @import '@/webflow/sd-flow-form.scss';
  497. .titleHide {
  498. :global(.title_sd-detail-form_common) {
  499. display: none;
  500. }
  501. }
  502. .tablexm tr td {
  503. border: none !important;
  504. }
  505. .questionForm {
  506. width: 100%;
  507. height: 100%;
  508. :global(span.toptitle.toptitle_audit-form-top-banner_product::after) {
  509. content: '整改问题清单';
  510. }
  511. :global(span.toptitle.toptitle_audit-form-top-banner_product span) {
  512. display: none;
  513. }
  514. }
  515. </style>