iam-audit-external-project-find-form.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <template>
  2. <span>
  3. <audit-form-top-banner
  4. :handel-save-form="saveForm"
  5. :form-data="mode"
  6. @handelSaveForm="saveForm"
  7. >
  8. <sd-detail-form
  9. ref="docform"
  10. page-id="audit/externalProject/iamExternalFind"
  11. :record-id="this.$route.query.record ? parseInt(this.$route.query.record) : null"
  12. :class="$style.form"
  13. @close="close(true)"
  14. @saved="saved"
  15. @sdFormReady="
  16. () => {
  17. this.sdFormReady()
  18. }
  19. "
  20. >
  21. <template v-slot="{ model, fields }">
  22. <table
  23. ><tr
  24. ><td style="border: none">
  25. <audit-advanced-group
  26. :expand="basicExpand"
  27. :expand-str="'basicExpand'"
  28. :group-label="'基本信息'"
  29. tablestyle="''"
  30. @changedClick="changedClick"
  31. ></audit-advanced-group> </td></tr
  32. ></table>
  33. <table>
  34. <colgroup>
  35. <col style="width: 15%"/>
  36. <col style="width: 35%"/>
  37. <col style="width: 15%"/>
  38. <col style="width: 35%"
  39. /></colgroup>
  40. <tr v-show="false">
  41. <!-- <tr v-show="initParam(model)"> -->
  42. <!-- 项目id -->
  43. <sd-form-item-td :hidden="true" name="projectId" :colspan="3" />
  44. </tr>
  45. <tr v-show="basicExpand">
  46. <!-- 审计发现标题 -->
  47. <sd-form-item-td name="findTitle" :colspan="3">
  48. <a-input v-model="model.findTitle" />
  49. <!-- <a-input v-model="model.findTitle" style="width: calc(100% - 80px)" /> -->
  50. <!-- <span style="padding: 5px">
  51. <a-button @click="showfind">选择</a-button>
  52. </span> -->
  53. </sd-form-item-td>
  54. </tr>
  55. <tr v-show="basicExpand">
  56. <!-- 审计发现编号 -->
  57. <sd-form-item-td name="findCode" />
  58. <!-- 被审计单位 -->
  59. <sd-form-item-td name="auditedUnit" />
  60. </tr>
  61. <tr v-show="false">
  62. <!-- 被审计单位id -->
  63. <sd-form-item-td :hidden="true" name="auditedUnitIds"> </sd-form-item-td>
  64. <sd-form-item-td :hidden="true" name="auditedUnitNames"> </sd-form-item-td>
  65. </tr>
  66. <tr v-show="basicExpand">
  67. <!-- 审计发现描述 -->
  68. <sd-form-item-td name="findDesc" :colspan="3">
  69. <a-textarea
  70. v-model="model.findDesc"
  71. :auto-size="{ minRows: 3, maxRows: 3 }"
  72. ></a-textarea>
  73. </sd-form-item-td>
  74. </tr>
  75. <tr v-show="basicExpand">
  76. <!-- 是否下达审计意见书 -->
  77. <sd-form-item-td name="giveOpinion" :label="'是否属于审计意见书问题'" />
  78. <!-- 问题性质 -->
  79. <sd-form-item-td name="problemNature">
  80. <a-select v-model="model.problemNature" :allow-clear="true">
  81. <a-select-option
  82. v-for="item in fields.problemNature.attr.selectListItem.filter((itc) =>
  83. ['wt'].includes(itc.value)
  84. )"
  85. :key="item.value"
  86. :value="item.value"
  87. >
  88. {{ item.label }}
  89. </a-select-option>
  90. </a-select>
  91. </sd-form-item-td>
  92. </tr>
  93. <tr v-show="basicExpand">
  94. <!-- 审计发现类别 -->
  95. <!-- <sd-form-item-td name="findType">
  96. <template v-slot:read-and-edit="{ editable }">
  97. <a-input v-if="editable" v-model="findType" read-only @click="showfindcat" />
  98. <span v-else>{{ JSON.parse(model.findType).text }}</span>
  99. <a-input v-model="model.findType" :hidden="true" />
  100. </template>
  101. </sd-form-item-td> -->
  102. <!-- 审计建议类型 -->
  103. <!-- <sd-form-item-td name="suggestionType" /> -->
  104. <!-- 问题类别分类(管理职能) || this.$root.$route.query.mode="EDIT"-->
  105. <sd-form-item-td name="problemCategoryFunction">
  106. <template v-slot>
  107. <a-input v-model="problemCategoryFunction" read-only @click="showfindcat" />
  108. <a-input v-model="model.problemCategoryFunction" :hidden="true" />
  109. </template>
  110. <template v-slot:read>
  111. {{ JSON.parse(model.problemCategoryFunction).text }}
  112. </template></sd-form-item-td
  113. >
  114. <!-- 是否属于零容忍事项 -->
  115. <sd-form-item-td name="zeroTolerate"> </sd-form-item-td>
  116. </tr>
  117. <tr v-show="basicExpand" class="iamAuditExternalProjectFindForm">
  118. <!-- 是否移送纪检监察线索(单移送) -->
  119. <sd-form-item-td name="transferClueSingle"> </sd-form-item-td>
  120. <!-- 是否移送纪检监察线索(双移送) -->
  121. <sd-form-item-td name="transferClueDouble"> </sd-form-item-td>
  122. </tr>
  123. <tr>
  124. <!-- 审计依据 -->
  125. <sd-form-item-td name="iamBasis" :colspan="3">
  126. <a-textarea v-model="model.iamBasis" :rows="3" />
  127. </sd-form-item-td>
  128. </tr>
  129. <tr>
  130. <!-- 审计处理意见 -->
  131. <!-- <sd-form-item-td name="handleSuggestion"> </sd-form-item-td> -->
  132. <!-- 审计处理意见 -->
  133. <sd-form-item-td name="handleSuggestion" :colspan="3" :label="'审计处理意见'">
  134. <a-textarea v-model="model.handleSuggestion" :rows="3" />
  135. </sd-form-item-td>
  136. </tr>
  137. <!-- <tr v-show="basicExpand"> -->
  138. <!-- 问题来源 -->
  139. <!-- <sd-form-item-td name="problemSource"> </sd-form-item-td> -->
  140. <!-- 问题类别分类(按部门分类) -->
  141. <!-- <sd-form-item-td name="problemCategoryDept"> </sd-form-item-td> -->
  142. <!-- </tr> -->
  143. <!-- <tr v-show="basicExpand"> -->
  144. <!-- 审计建议描述 -->
  145. <!-- <sd-form-item-td name="suggestion" :colspan="3">
  146. <a-textarea
  147. v-model="model.suggestion"
  148. :auto-size="{ minRows: 3, maxRows: 3 }"
  149. ></a-textarea>
  150. </sd-form-item-td>
  151. </tr> -->
  152. <!-- <tr v-show="basicExpand"> -->
  153. <!-- 对应审计步骤 -->
  154. <!-- <sd-form-item-td name="stepName">
  155. <a-input v-model="model.stepName" type="text" read-only @click="showstep(model)" />
  156. </sd-form-item-td> -->
  157. <!-- </tr> -->
  158. <!-- <tr v-show="basicExpand"> -->
  159. <!-- 是否金额类问题 -->
  160. <!-- <sd-form-item-td name="amountProblem"> </sd-form-item-td> -->
  161. <!-- </tr> -->
  162. <!-- <tr v-show="basicExpand"> -->
  163. <!-- 审计意见书下发时间 -->
  164. <!-- <sd-form-item-td name="opinionGiveTime"> </sd-form-item-td> -->
  165. <!-- 问题类别 -->
  166. <!-- <sd-form-item-td name="problemType" /> -->
  167. <!-- </tr> -->
  168. <!-- <tr v-show="basicExpand"> -->
  169. <!-- 是否属于重大违规问题 -->
  170. <!-- <sd-form-item-td name="greatProblem"> </sd-form-item-td> -->
  171. <!-- 重大违规问题类别 -->
  172. <!-- <sd-form-item-td name="greatProblemCategory"> </sd-form-item-td> -->
  173. <!-- </tr> -->
  174. <!-- <tr v-show="basicExpand"> -->
  175. <!-- 零容忍事项确认依据 -->
  176. <!-- <sd-form-item-td name="zeroTolerateBasis"> </sd-form-item-td> -->
  177. <!-- </tr> -->
  178. <!-- <tr v-show="basicExpand"> -->
  179. <!-- 审计依据 -->
  180. <!-- <sd-form-item-td name="iamBasis"> </sd-form-item-td> -->
  181. <!-- </tr> -->
  182. <!-- <tr v-show="basicExpand"> -->
  183. <!-- 问题责任部门 -->
  184. <!-- <sd-form-item-td name="responsibleDept" /> -->
  185. <!-- 风险评级 -->
  186. <!-- <sd-form-item-td name="riskLevel" /> -->
  187. <!-- </tr> -->
  188. <!-- <tr v-show="basicExpand"> -->
  189. <!-- 所属业务域 -->
  190. <!-- <sd-form-item-td name="businessProcess" /> -->
  191. <!-- 是否问责 -->
  192. <!-- <sd-form-item-td name="whetherOrderDuty" /> -->
  193. <!-- </tr> -->
  194. <!-- <tr v-show="basicExpand"> -->
  195. <!-- 问责要求 -->
  196. <!-- <sd-form-item-td name="orderDutyAsk" :colspan="3">
  197. <a-textarea v-model="model.orderDutyAsk" :auto-size="{ minRows: 3, maxRows: 3 }" />
  198. </sd-form-item-td> -->
  199. <!-- </tr> -->
  200. <tr>
  201. <!-- 整改责任主体-->
  202. <sd-form-item-td name="respUnitName" />
  203. <!-- 发送整改状态 -->
  204. <sd-form-item-td name="sendStatus" />
  205. </tr>
  206. <tr v-show="basicExpand">
  207. <!-- 备注 -->
  208. <!-- <sd-form-item-td v-if="initParam(model)" name="findRemark" :colspan="3">
  209. <a-textarea v-model="model.findRemark" :auto-size="{ minRows: 3, maxRows: 3 }" />
  210. </sd-form-item-td> -->
  211. <sd-form-item-td v-if="initParam(model)" name="findRemark" :colspan="3">
  212. <template v-slot>
  213. <a-textarea
  214. v-model="model.findRemark"
  215. :auto-size="{ minRows: 3, maxRows: 3 }"
  216. ></a-textarea>
  217. </template>
  218. </sd-form-item-td>
  219. </tr>
  220. <tr>
  221. <!-- 非金额类问题类别-->
  222. <sd-form-item-td name="notAmountType" />
  223. </tr>
  224. <tr
  225. ><td :colspan="4">
  226. <sd-form-item :label="null" name="iamExternalFindMoneyEntitys">
  227. <template v-slot:read-and-edit="{ editable }">
  228. <audit-advanced-group
  229. :expand="moneyExpand"
  230. :expand-str="'moneyExpand'"
  231. :group-label="'问题涉及金额列表'"
  232. tablestyle="''"
  233. @changedClick="changedClick"
  234. >
  235. <xm-child-table
  236. v-model="model.iamExternalFindMoneyEntitys"
  237. :read-only="!editable"
  238. label=""
  239. :class="$style.deptPlanChild"
  240. :colspan="4"
  241. :fields="
  242. [
  243. {
  244. caption: '序号',
  245. name: 'sortNum',
  246. dataType: 'number',
  247. attr: {},
  248. },
  249. ].concat(Array.from(fields.iamExternalFindMoneyEntitys.attr.dync))
  250. "
  251. :columns="moneycolumns"
  252. :width="1000"
  253. @change="changetablemoney"
  254. @saved="changetablemoney"
  255. >
  256. </xm-child-table
  257. ></audit-advanced-group>
  258. </template> </sd-form-item
  259. ></td>
  260. </tr>
  261. <tr v-show="moneyExpand">
  262. <sd-form-item-td :label="null" name="reservestring1" :colspan="4">
  263. <template v-slot:read-and-edit="{ editable }">
  264. <table style="width: 100%">
  265. <tr
  266. ><td
  267. v-if="editable"
  268. style="width: 60px; border: none"
  269. class="ant-form-item-label ant-form-item-label"
  270. ></td
  271. ><td
  272. style="width: 80px; border: none"
  273. class="ant-form-item-label ant-form-item-label"
  274. ></td>
  275. <td
  276. style="width: 50%; border: none"
  277. class="ant-form-item-label ant-form-item-label"
  278. ><label title="合计" class=""> 合计 </label></td
  279. ><td style="border: none; border-left: 1px solid #e8e8e8"
  280. ><span>{{ model.reservestring1 }}</span></td
  281. ></tr
  282. >
  283. </table>
  284. </template>
  285. </sd-form-item-td>
  286. </tr>
  287. </table>
  288. <!-- 发现分类树 -->
  289. <a-modal
  290. :visible="findcatvisible"
  291. title="请选择"
  292. width="700px"
  293. :body-style="{
  294. height: '392px',
  295. }"
  296. :destroy-on-close="true"
  297. @ok="handlefindcatOk"
  298. @cancel="handlefindcatCancel"
  299. >
  300. <AuditFindCatTree :default-expand-all="true" @treeSelect="treeSelect" />
  301. </a-modal>
  302. <a-modal
  303. :visible="stepnamevisible"
  304. title="请选择"
  305. width="1200px"
  306. :body-style="{
  307. minHeight: '700px',
  308. }"
  309. :destroy-on-close="true"
  310. @ok="handlestepOk"
  311. @cancel="handlestepCancel"
  312. ><sd-data-table
  313. ref="stepTable"
  314. :class="$style.levelTable"
  315. :columns="stepmodalcolumns"
  316. data-url="api/xcoa-mobile/v1/audit-report-find/find-step"
  317. check-type="radio"
  318. show-selection
  319. :row-key="'ID'"
  320. />
  321. </a-modal>
  322. <a-modal
  323. :visible="findvisible"
  324. title="请选择"
  325. width="1200px"
  326. :body-style="{
  327. minHeight: '780px',
  328. }"
  329. :destroy-on-close="true"
  330. @ok="handlefindOk"
  331. @cancel="handlefindCancel"
  332. >
  333. <sd-data-table-ex
  334. ref="findTable"
  335. class="modalTable"
  336. check-type="radio"
  337. :filter-expressions="expressions"
  338. :columns="findcolumns"
  339. form-id="iamProblem"
  340. page-id="audit/auditsource/problem/iamProblem"
  341. :search-fields="['docTitle', 'problemNumber']"
  342. show-selection
  343. >
  344. </sd-data-table-ex>
  345. </a-modal>
  346. </template>
  347. </sd-detail-form>
  348. </audit-form-top-banner>
  349. <audit-matters-select-modal
  350. :visible="visible"
  351. :org-id="null"
  352. :show-selection="showSelectionlaw"
  353. @listSelected="listSelected"
  354. ></audit-matters-select-modal>
  355. </span>
  356. </template>
  357. <script>
  358. import { Message, Modal } from 'ant-design-vue'
  359. import crossWindowWatcher from '@/common/services/cross-window-watcher'
  360. import auditFormTopBanner from '../../../components/audit-form-top-banner'
  361. import auditAdvancedGroup from '../../../components/audit-advanced-group.vue'
  362. import AuditFindCatTree from '../../../components/audit-find-cat-tree.vue'
  363. import auditAdvancedGroupMixins from '../../../components/audit-advanced-group-mixins'
  364. import auditMattersSelectModal from '../../matters/audit-matters-select-modal.vue'
  365. import components from './_import-components/iam-audit-external-project-find-form-import'
  366. const moneycolumns = [
  367. {
  368. title: '序号',
  369. dataIndex: 'sortNum',
  370. customRender: (text, record, index) => `${index + 1}`,
  371. width: '80px',
  372. },
  373. {
  374. title: '问题金额性质',
  375. dataIndex: 'assetType',
  376. sdHidden: true,
  377. width: '25%',
  378. },
  379. {
  380. title: '问题分类',
  381. dataIndex: 'problemClass',
  382. },
  383. {
  384. title: '合规性问题分类',
  385. dataIndex: 'complianceProblem',
  386. },
  387. {
  388. title: '问题金额(万元)',
  389. dataIndex: 'amount',
  390. },
  391. ]
  392. const ruleclumns = [
  393. {
  394. title: '序号',
  395. dataIndex: 'sortNum',
  396. customRender: (text, record, index) => `${index + 1}`,
  397. width: '80px',
  398. },
  399. {
  400. title: '标题',
  401. dataIndex: 'ruleName',
  402. },
  403. {
  404. title: '发文字号',
  405. dataIndex: 'ruleNumber',
  406. },
  407. {
  408. title: '条文',
  409. dataIndex: 'ruleContent',
  410. },
  411. ]
  412. const stepmodalcolumns = [
  413. // {
  414. // title: '序号',
  415. // dataIndex: 'sortNum',
  416. // customRender: (text, record, index) => `${index + 1}`,
  417. // width: '50px',
  418. // },
  419. {
  420. title: '步骤',
  421. dataIndex: 'STEP_NAME',
  422. },
  423. {
  424. title: '重要性',
  425. dataIndex: 'IMPORTANCE',
  426. },
  427. {
  428. title: '是否执行',
  429. dataIndex: 'IS_EXECITED',
  430. },
  431. ]
  432. const findcolumns = [
  433. {
  434. title: '序号',
  435. dataIndex: 'sortNum',
  436. customRender: (text, record, index) => `${index + 1}`,
  437. width: '80px',
  438. },
  439. {
  440. title: '问题标题',
  441. dataIndex: 'docTitle',
  442. },
  443. {
  444. title: '问题编号',
  445. dataIndex: 'problemNumber',
  446. },
  447. {
  448. title: '问题描述',
  449. dataIndex: 'problemDesc',
  450. },
  451. ]
  452. export default {
  453. name: 'IamAuditExternalProjectFindForm',
  454. metaInfo: {
  455. title: '审计发现',
  456. },
  457. components: {
  458. ...components,
  459. auditFormTopBanner,
  460. auditAdvancedGroup,
  461. AuditFindCatTree,
  462. auditMattersSelectModal,
  463. },
  464. mixins: [auditAdvancedGroupMixins],
  465. data() {
  466. return {
  467. moneyExpand: true,
  468. basicExpand: true,
  469. ruleExpand: true,
  470. moneycolumns,
  471. ruleclumns,
  472. findcolumns,
  473. expressions: [],
  474. stepnamevisible: false,
  475. stepmodalcolumns,
  476. projectId: '',
  477. findcat: '',
  478. findcatvisible: false,
  479. visible: false,
  480. mode: null,
  481. findvisible: false,
  482. findType: '',
  483. problemCategoryFunction: '',
  484. }
  485. },
  486. mounted() {},
  487. created() {
  488. let projectId = ''
  489. if (this.$route.query.projectId) {
  490. projectId = this.$route.query.projectId
  491. if (projectId !== '' && projectId !== undefined) {
  492. this.projectId = projectId
  493. }
  494. }
  495. this.mode = this.$route.query.mode
  496. // this.changetablemoney()
  497. },
  498. methods: {
  499. showSelectionlaw(record) {
  500. this.selectlist = this.$refs.ruleData.value
  501. if (this.selectlist.length === 0) {
  502. return true
  503. } else if (
  504. this.selectlist.findIndex(
  505. (i) => i.ruleName + '-' + i.ruleNumber === record.docTitle + '-' + record.dispatchWord
  506. ) > -1
  507. ) {
  508. return false
  509. } else {
  510. return true
  511. }
  512. },
  513. initParam(model) {
  514. debugger
  515. const findcatstr = model.problemCategoryFunction
  516. if (findcatstr !== '' && findcatstr !== undefined) {
  517. const findcatobj = JSON.parse(findcatstr)
  518. this.problemCategoryFunction = findcatobj.text
  519. }
  520. return true
  521. },
  522. sdFormReady() {
  523. this.mode = this.$refs.docform.formData.mode
  524. },
  525. // 保存
  526. saveForm() {
  527. if (this.projectId !== '' && this.projectId !== undefined) {
  528. this.$refs.docform.setFieldValue('projectId', this.projectId)
  529. }
  530. // 处理部门
  531. var auditedUnits = this.$refs.docform.getFieldValue('auditedUnit')
  532. if (auditedUnits) {
  533. this.$refs.docform.setFieldValue(
  534. 'auditedUnitIds',
  535. auditedUnits
  536. .map((item) => {
  537. return item.code
  538. })
  539. .toString()
  540. )
  541. this.$refs.docform.setFieldValue(
  542. 'auditedUnitNames',
  543. auditedUnits
  544. .map((item) => {
  545. return item.name
  546. })
  547. .toString()
  548. )
  549. }
  550. let toSubmit = true // 默认可以提交
  551. let iamAuditMoneys = []
  552. if (this.$refs.docform.getFieldValue('iamExternalFindMoneyEntitys')) {
  553. iamAuditMoneys = this.$refs.docform.getFieldValue('iamExternalFindMoneyEntitys')
  554. }
  555. const newMoneysList = []
  556. iamAuditMoneys.forEach((item, index) => {
  557. if (
  558. item.problemClass === '01' &&
  559. (item.complianceProblem === '' ||
  560. item.complianceProblem === null ||
  561. item.complianceProblem === undefined)
  562. ) {
  563. toSubmit = false
  564. // newMoneysList.push(item)
  565. } else if (
  566. item.problemClass === '02' &&
  567. (item.complianceProblem === '' ||
  568. item.complianceProblem === 'null' ||
  569. item.complianceProblem === undefined)
  570. ) {
  571. item.complianceProblem = null
  572. newMoneysList.push(item)
  573. } else {
  574. newMoneysList.push(item)
  575. }
  576. })
  577. if (toSubmit) {
  578. this.$refs.docform.setFieldValue('iamExternalFindMoneyEntitys', newMoneysList)
  579. this.$refs.docform.saveBtnClick()
  580. } else {
  581. Modal.warning({
  582. title: '提示',
  583. content: '问题分类选择“合规性问题”时,合规性问题分类字段必填!',
  584. })
  585. }
  586. // this.$refs.docform.saveBtnClick()
  587. },
  588. saved() {
  589. Message.success('保存成功', 1).then((res) => {
  590. crossWindowWatcher.notifyChange(this.$route.fullPath, true)
  591. window.close()
  592. })
  593. },
  594. close(flag) {
  595. crossWindowWatcher.notifyChange(this.$route.fullPath, false)
  596. window.close()
  597. },
  598. treeSelect(select, info) {
  599. if (info.node) {
  600. this.findcat = info.node.dataRef
  601. } else {
  602. this.findcat = info
  603. }
  604. // this.$refs.docform.setFieldValue('paperId', this.findcat)
  605. },
  606. showfindcat() {
  607. this.findcatvisible = !this.findcatvisible
  608. },
  609. showstep(model) {
  610. this.stepnamevisible = !this.stepnamevisible
  611. },
  612. showfind(model) {
  613. this.findvisible = !this.findvisible
  614. },
  615. handlefindOk() {
  616. const selectInfo = this.$refs.findTable.getSelectedRows()
  617. if (selectInfo.length === 1) {
  618. this.$refs.docform.setFieldValue('findTitle', selectInfo[0].docTitle)
  619. // this.$refs.docform.setFieldValue('findCode', selectInfo[0].problemNumber)
  620. this.$refs.docform.setFieldValue('suggestion', selectInfo[0].problemDesc)
  621. this.showfind()
  622. } else {
  623. Modal.warning({
  624. title: '提示',
  625. content: '请选择一个发现问题!',
  626. })
  627. return false
  628. }
  629. },
  630. handlefindCancel() {
  631. this.showfind()
  632. },
  633. handlestepOk() {
  634. const selectInfo = this.$refs.stepTable.getSelectedRows()
  635. if (selectInfo.length) {
  636. this.$refs.docform.setFieldValue('stepName', selectInfo[0].STEP_NAME)
  637. this.showstep()
  638. }
  639. },
  640. handlestepCancel() {
  641. this.showstep()
  642. },
  643. changetablemoney(data) {
  644. let money = 0
  645. if (data && data.length > 0) {
  646. data.forEach((item, index) => {
  647. // item.sortNum = index + 1
  648. if (item.amount !== undefined) {
  649. money = money + parseFloat(item.amount)
  650. }
  651. })
  652. this.$refs.docform.setFieldValue('reservestring1', this.getTotal(data).toString())
  653. } else {
  654. this.$refs.docform.setFieldValue('reservestring1', '')
  655. }
  656. },
  657. handlefindcatOk() {
  658. if (this.findcat !== '') {
  659. if (this.findcat.isLeaf || !this.findcat.expandable) {
  660. this.$refs.docform.setFieldValue(
  661. 'problemCategoryFunction',
  662. JSON.stringify({
  663. id: this.findcat.id,
  664. text: this.findcat.text,
  665. })
  666. )
  667. this.showfindcat()
  668. this.problemCategoryFunction = this.findcat.text
  669. this.findcat = ''
  670. } else {
  671. Modal.warning({
  672. title: '提示',
  673. content: '请选择末级分类!',
  674. })
  675. return false
  676. }
  677. } else {
  678. Modal.warning({
  679. title: '提示',
  680. content: '请选择末级分类!',
  681. })
  682. return false
  683. }
  684. },
  685. handlefindcatCancel() {
  686. this.showfindcat()
  687. },
  688. listSelected(keys, keyinfos) {
  689. let iamAuditLaws = []
  690. if (this.$refs.docform.getFieldValue('iamExternalFindRuleEntitys')) {
  691. iamAuditLaws = this.$refs.docform.getFieldValue('iamExternalFindRuleEntitys')
  692. }
  693. keyinfos.forEach((element) => {
  694. const mmc = {}
  695. mmc.ruleName = element.docTitle
  696. mmc.ruleNumber = element.dispatchWord ? element.dispatchWord : ''
  697. mmc.ruleContent = ''
  698. iamAuditLaws.push(mmc)
  699. })
  700. this.visible = false
  701. this.$refs.docform.setFieldValue('iamExternalFindRuleEntitys', iamAuditLaws)
  702. },
  703. // 选择法律制度
  704. lawsRelSelect() {
  705. // 选择事项分类
  706. this.visible = true
  707. },
  708. changetable(data) {
  709. data.forEach((item, index) => {
  710. item.sortNum = index + 1
  711. })
  712. },
  713. deletefind(ids) {},
  714. },
  715. }
  716. </script>
  717. <style module lang="scss">
  718. @import '@/webflow/sd-flow-form.scss';
  719. .first-tr {
  720. td {
  721. background: #fff !important;
  722. border: none !important;
  723. }
  724. }
  725. .btnselect {
  726. position: relative;
  727. left: 20px;
  728. float: right;
  729. .batchselect {
  730. top: 4px;
  731. z-index: 100;
  732. margin-right: 120px;
  733. }
  734. // position: relative;
  735. // float: right;
  736. // .batchselect {
  737. // top: 4px;
  738. // z-index: 100;
  739. // margin-right: 190px;
  740. // }
  741. }
  742. .form {
  743. :global .iamAuditExternalProjectFindForm > td.ant-form-item-label > label {
  744. width: 220px;
  745. white-space: break-spaces !important;
  746. }
  747. }
  748. </style>