qgb-process 0.2.3 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/.env +2 -2
  2. package/.env.development +70 -70
  3. package/.env.pre +60 -60
  4. package/.env.production +48 -48
  5. package/.env.test +48 -48
  6. package/.eslintignore +4 -4
  7. package/.eslintrc.js +302 -302
  8. package/README.md +66 -66
  9. package/babel.config.js +5 -5
  10. package/commitlint.config.js +30 -30
  11. package/config/dev.env.js +7 -7
  12. package/config/index.js +82 -82
  13. package/config/prod.env.js +4 -4
  14. package/debug.log +4 -4
  15. package/index.js +6 -6
  16. package/jsconfig.json +9 -9
  17. package/lib/qgb-process.common.js +7666 -5069
  18. package/lib/qgb-process.umd.js +7666 -5069
  19. package/lib/qgb-process.umd.min.js +108 -108
  20. package/package.json +148 -148
  21. package/packages/index.js +26 -26
  22. package/public/index.html +47 -47
  23. package/public/js/qykf.js +21 -21
  24. package/src/App.vue +37 -37
  25. package/src/api/ApiExAndapp.js +24 -24
  26. package/src/api/EnterpriseAssociation.js +8 -8
  27. package/src/api/Notice.js +31 -31
  28. package/src/api/apiAcceptance/apiAcceptance.js +37 -37
  29. package/src/api/apiAddress.js +9 -9
  30. package/src/api/apiApprovalConfig.js +13 -13
  31. package/src/api/apiApprove.js +18 -18
  32. package/src/api/apiArrears/apiArrears.js +41 -41
  33. package/src/api/apiArrears/apiProjectArrears.js +16 -16
  34. package/src/api/apiArrears/index.js +15 -15
  35. package/src/api/apiAssets.js +19 -19
  36. package/src/api/apiAssociate.js +42 -42
  37. package/src/api/apiAudit/apiAudit.js +32 -32
  38. package/src/api/apiAuth.js +25 -25
  39. package/src/api/apiAuthentication.js +35 -35
  40. package/src/api/apiBankAccount/index.js +12 -12
  41. package/src/api/apiBudget/apiBudget.js +30 -30
  42. package/src/api/apiBudget/apiBudgets.js +105 -105
  43. package/src/api/apiCarRecord.js +48 -48
  44. package/src/api/apiCart.js +202 -202
  45. package/src/api/apiChangeTel.js +13 -13
  46. package/src/api/apiCheckingIn.js +95 -95
  47. package/src/api/apiCollection/index.js +13 -13
  48. package/src/api/apiContract/apiContract.js +21 -21
  49. package/src/api/apiContract/index.js +3 -3
  50. package/src/api/apiContract/quill-config.js +122 -122
  51. package/src/api/apiContractManage/apiContractManage.js +57 -57
  52. package/src/api/apiContractManage/index.js +2 -2
  53. package/src/api/apiContractManage/quill-config.js +121 -121
  54. package/src/api/apiCoping.js +22 -22
  55. package/src/api/apiCost/index.js +31 -31
  56. package/src/api/apiCreditManagement.js +16 -16
  57. package/src/api/apiCustomer/apiCustomer.js +12 -12
  58. package/src/api/apiDivisional.js +9 -9
  59. package/src/api/apiDivisionalManagementList.js +17 -17
  60. package/src/api/apiEmployeeRegularization.js +73 -73
  61. package/src/api/apiEquipmentRental.js +50 -50
  62. package/src/api/apiFormBuilder/menu.js +65 -65
  63. package/src/api/apiFormBuilder/reissueRule.js +15 -15
  64. package/src/api/apiFund/index.js +16 -16
  65. package/src/api/apiHelp.js +43 -43
  66. package/src/api/apiHome.js +24 -24
  67. package/src/api/apiIminfo.js +39 -39
  68. package/src/api/apiInventory.js +52 -52
  69. package/src/api/apiInventorySetting.js +9 -9
  70. package/src/api/apiInvoice.js +29 -29
  71. package/src/api/apiJobManage.js +15 -15
  72. package/src/api/apiLease/apiLease.js +12 -12
  73. package/src/api/apiLogisticsTransportation/apiLogisticsTransportation.js +34 -34
  74. package/src/api/apiLostPassword.js +9 -9
  75. package/src/api/apiMachine/api.js +3 -3
  76. package/src/api/apiMachine/apiCategory.js +18 -18
  77. package/src/api/apiMachine/apiHire.js +19 -19
  78. package/src/api/apiMachine/apiLease.js +27 -27
  79. package/src/api/apiMachine/apiLocation.js +4 -4
  80. package/src/api/apiMachine/apiRentInfo.js +107 -107
  81. package/src/api/apiMachine/apiRentPublish.js +14 -14
  82. package/src/api/apiMachine/apiStore.js +15 -15
  83. package/src/api/apiMachine/index.js +3 -3
  84. package/src/api/apiManagementStore/api.js +3 -3
  85. package/src/api/apiManagementStore/apiManagementStore.js +25 -25
  86. package/src/api/apiMaterCheckAndAccept/apiMaterCheckAndAccept.js +47 -47
  87. package/src/api/apiMaterCheckAndAccept/apiMechanicalSourcing.js +16 -16
  88. package/src/api/apiMaterCheckAndAccept/index.js +3 -3
  89. package/src/api/apiMaterials/aaaaaaaaaaaaaa.js +9 -9
  90. package/src/api/apiMaterials/api.js +3 -3
  91. package/src/api/apiMaterials/apiAddress.js +116 -116
  92. package/src/api/apiMaterials/apiBalanceData.js +188 -188
  93. package/src/api/apiMaterials/apiCommercialConcrete.js +36 -36
  94. package/src/api/apiMaterials/apiCommodity.js +70 -70
  95. package/src/api/apiMaterials/apiDownload.js +26 -26
  96. package/src/api/apiMaterials/apiHome.js +44 -44
  97. package/src/api/apiMaterials/apiItemBrand.js +9 -9
  98. package/src/api/apiMaterials/apiLogistics.js +72 -72
  99. package/src/api/apiMaterials/apiLogisticsReceipt.js +94 -94
  100. package/src/api/apiMaterials/apiMaterials.js +8 -8
  101. package/src/api/apiMaterials/apiMySalesOrder.js +21 -21
  102. package/src/api/apiMaterials/apiOfflineOrder.js +18 -18
  103. package/src/api/apiMaterials/apiOrder.js +183 -183
  104. package/src/api/apiMaterials/apiReceipt.js +45 -45
  105. package/src/api/apiMaterials/quill-config.js +122 -122
  106. package/src/api/apiMemberSelection.js +39 -39
  107. package/src/api/apiMessage.js +10 -10
  108. package/src/api/apiMock/mockOrder.js +98 -98
  109. package/src/api/apiMonthPlan/apiMonthPlan.js +47 -47
  110. package/src/api/apiMyBidding.js +8 -8
  111. package/src/api/apiMyMember/apiComInfo.js +17 -17
  112. package/src/api/apiMyMember/apiInviteJoin.js +24 -24
  113. package/src/api/apiMyMember/apiMember.js +24 -24
  114. package/src/api/apiMyMember/apiMemberApply.js +36 -36
  115. package/src/api/apiMyMember/apiMemberChance.js +40 -40
  116. package/src/api/apiOffer.js +40 -40
  117. package/src/api/apiOffice.js +19 -19
  118. package/src/api/apiPact.js +26 -26
  119. package/src/api/apiPassword.js +7 -7
  120. package/src/api/apiPay/apiPay.js +25 -25
  121. package/src/api/apiPaying.js +21 -21
  122. package/src/api/apiPayment/apiPayment.js +13 -13
  123. package/src/api/apiPayment/apiProjectPayment.js +13 -13
  124. package/src/api/apiPrint.js +23 -0
  125. package/src/api/apiProcess.js +65 -65
  126. package/src/api/apiProject/apiBaseList.js +29 -29
  127. package/src/api/apiProject/apiGoodsOffer.js +11 -11
  128. package/src/api/apiProject/apiInventory.js +116 -116
  129. package/src/api/apiProject/apiOfferOrder.js +12 -12
  130. package/src/api/apiProject/apiOfferQuery.js +18 -18
  131. package/src/api/apiProject/apiPlan.js +21 -21
  132. package/src/api/apiProject/apiProject.js +158 -158
  133. package/src/api/apiProjectProcurement/apiProjectProcurement.js +88 -88
  134. package/src/api/apiPurchase/apiPurchase.js +67 -67
  135. package/src/api/apiPurchaseApply.js +15 -15
  136. package/src/api/apiPurchasePay.js +16 -16
  137. package/src/api/apiRankManagement.js +24 -24
  138. package/src/api/apiRecruit.js +37 -37
  139. package/src/api/apiReimbursement/apiReimbursement.js +15 -15
  140. package/src/api/apiRisk/index.js +11 -11
  141. package/src/api/apiRoleManagement.js +15 -15
  142. package/src/api/apiRules/apiRules.js +11 -11
  143. package/src/api/apiSchedule/apiSchedule.js +17 -17
  144. package/src/api/apiSealRecord.js +52 -52
  145. package/src/api/apiSign.js +8 -8
  146. package/src/api/apiSolution/apiSolution.js +9 -9
  147. package/src/api/apiSubcontract.js +35 -35
  148. package/src/api/apiSystem/index.js +40 -40
  149. package/src/api/apiTask.js +76 -76
  150. package/src/api/apiTeam/api.js +3 -3
  151. package/src/api/apiTeam/apiUtils.js +11 -11
  152. package/src/api/apiTender.js +127 -127
  153. package/src/api/apiUser.js +24 -24
  154. package/src/api/apiUserEnterprise/api.js +3 -3
  155. package/src/api/apiUserEnterprise/apiUserEn.js +15 -15
  156. package/src/api/apiVolunteerTeam.js +11 -11
  157. package/src/api/apiWorkarea.js +33 -33
  158. package/src/api/apiXzqh.js +8 -8
  159. package/src/api/common/api.js +3 -3
  160. package/src/api/common/apiUtils.js +9 -9
  161. package/src/api/customer.js +21 -21
  162. package/src/api/evection.js +19 -19
  163. package/src/api/guide.js +9 -9
  164. package/src/api/sociaManageApi.js +30 -30
  165. package/src/assets/Area.json +1773 -1773
  166. package/src/assets/css/quill.bubble.css +952 -952
  167. package/src/assets/css/quill.core.css +397 -397
  168. package/src/assets/css/quill.snow.css +945 -945
  169. package/src/assets/data.js +284 -284
  170. package/src/assets/fonts/Read Me.txt +7 -7
  171. package/src/assets/fonts/demo-files/demo.css +155 -155
  172. package/src/assets/fonts/demo-files/demo.js +30 -30
  173. package/src/assets/fonts/demo.html +951 -951
  174. package/src/assets/fonts/fonts/icomoon.svg +130 -130
  175. package/src/assets/fonts/style.css +563 -563
  176. package/src/assets/icons/checkbox.svg +12 -12
  177. package/src/assets/icons/columns-3.svg +12 -12
  178. package/src/assets/icons/columns.svg +12 -12
  179. package/src/assets/icons/custom-table.svg +12 -12
  180. package/src/assets/icons/date.svg +19 -19
  181. package/src/assets/icons/daterange.svg +12 -12
  182. package/src/assets/icons/fuzhi.svg +11 -11
  183. package/src/assets/icons/fuzhi_03.svg +5 -5
  184. package/src/assets/icons/gaojizujian.svg +12 -12
  185. package/src/assets/icons/groupSummary.svg +12 -12
  186. package/src/assets/icons/groupTitle.svg +12 -12
  187. package/src/assets/icons/image-uploader.svg +12 -12
  188. package/src/assets/icons/input-number.svg +12 -12
  189. package/src/assets/icons/input.svg +12 -12
  190. package/src/assets/icons/quill-editor.svg +12 -12
  191. package/src/assets/icons/radio.svg +12 -12
  192. package/src/assets/icons/select.svg +12 -12
  193. package/src/assets/icons/switch.svg +12 -12
  194. package/src/assets/icons/textarea.svg +12 -12
  195. package/src/assets/icons/upload-file.svg +12 -12
  196. package/src/assets/marketplace.js +289 -289
  197. package/src/components/ComAduitNew.vue +477 -477
  198. package/src/components/CommonAduit.vue +512 -512
  199. package/src/components/CommonAduitNew.vue +906 -906
  200. package/src/components/CommonAduitNews.vue +753 -753
  201. package/src/components/CommonUEditer.vue +63 -63
  202. package/src/components/PersonCenter/Mess.vue +59 -59
  203. package/src/components/PersonCenter/Title.vue +80 -80
  204. package/src/components/SvgIcon.vue +57 -57
  205. package/src/components/XmCommonAduit.vue +761 -761
  206. package/src/components/feiyCommon.vue +713 -713
  207. package/src/components/form/card.js +5 -5
  208. package/src/components/form/chinese.js +6 -6
  209. package/src/components/form/chinessstring.js +5 -5
  210. package/src/components/form/hunhe.js +8 -8
  211. package/src/components/form/hunhecq.js +8 -8
  212. package/src/components/form/hunheh.js +8 -8
  213. package/src/components/form/num.js +12 -12
  214. package/src/components/form/numstring.js +5 -5
  215. package/src/components/form/user.js +7 -7
  216. package/src/components/form/validate.js +42 -42
  217. package/src/components/form/validcredit.js +5 -5
  218. package/src/components/fundCommonAduit.vue +661 -661
  219. package/src/components/public/BaseCustomTable.vue +71 -71
  220. package/src/components/public/BaseDialog.vue +144 -144
  221. package/src/components/public/BaseEmptyData.vue +73 -73
  222. package/src/components/public/BaseFormTitle.vue +39 -39
  223. package/src/components/public/BasePagination.vue +55 -55
  224. package/src/components/public/BaseRouter.vue +14 -14
  225. package/src/components/public/BaseUpload.vue +185 -185
  226. package/src/components/public/Bottom.vue +62 -62
  227. package/src/components/public/Footer.vue +412 -412
  228. package/src/components/public/Header.vue +30 -30
  229. package/src/components/public/LeftMenu.vue +170 -170
  230. package/src/components/public/MemberSelection coby.vue +444 -444
  231. package/src/components/public/MemberSelection.vue +487 -487
  232. package/src/components/public/NewLeftMenu.vue +418 -418
  233. package/src/components/public/PicturesPreview.vue +62 -62
  234. package/src/components/public/Popout.vue +147 -147
  235. package/src/components/public/TagLine.vue +353 -353
  236. package/src/components/public/components/BaseImageUploadDrag.vue +320 -320
  237. package/src/components/public/components/HeadBar.vue +315 -315
  238. package/src/components/public/components/MenuList.vue +110 -110
  239. package/src/components/public/components/NewHeadBar.vue +936 -936
  240. package/src/components/public/components/QuickGoods.vue +273 -273
  241. package/src/components/public/components/Search.vue +164 -164
  242. package/src/components/public/components/Userinfo.vue +383 -383
  243. package/src/components/utils/pdf.js +254 -254
  244. package/src/components/xmfyCommonAduit.vue +752 -752
  245. package/src/filters/index.js +619 -619
  246. package/src/fnc/arr.js +102 -102
  247. package/src/fnc/quill-config.js +121 -121
  248. package/src/fnc/unit.js +102 -102
  249. package/src/fnc/verify.js +187 -187
  250. package/src/fnc/verifyStatus.js +24 -24
  251. package/src/formBuilder/apiBusiness.js +67 -67
  252. package/src/formBuilder/business.js +1039 -1039
  253. package/src/formBuilder/component/components/data.js +719 -719
  254. package/src/formBuilder/component/components/purchaseIndex.vue +1109 -1109
  255. package/src/formBuilder/component/purchase.vue +35 -35
  256. package/src/formBuilder/components/app-main/components/components/GroupSummary.vue +33 -33
  257. package/src/formBuilder/components/app-main/components/components/GroupTitle.vue +33 -33
  258. package/src/formBuilder/components/app-main/components/components/bank.vue +226 -226
  259. package/src/formBuilder/components/app-main/components/components/bankFormHeard.vue +298 -298
  260. package/src/formBuilder/components/app-main/components/components/builder.vue +718 -718
  261. package/src/formBuilder/components/app-main/components/components/columns.vue +393 -393
  262. package/src/formBuilder/components/app-main/components/components/customTable.vue +1758 -1758
  263. package/src/formBuilder/components/app-main/components/components/formDep.vue +105 -105
  264. package/src/formBuilder/components/app-main/components/components/handleCode.vue +39 -39
  265. package/src/formBuilder/components/app-main/components/components/itemOption.vue +116 -116
  266. package/src/formBuilder/components/app-main/components/components/linkForm.vue +116 -116
  267. package/src/formBuilder/components/app-main/components/components/listDesign.vue +772 -772
  268. package/src/formBuilder/components/app-main/components/components/optionSolt.js +78 -78
  269. package/src/formBuilder/components/app-main/components/components/person.vue +104 -104
  270. package/src/formBuilder/components/app-main/components/components/postman.vue +40 -40
  271. package/src/formBuilder/components/app-main/components/components/previewDialog.vue +391 -391
  272. package/src/formBuilder/components/app-main/components/components/tableIndex.vue +51 -51
  273. package/src/formBuilder/components/app-main/components/components/tableList.vue +561 -561
  274. package/src/formBuilder/components/app-main/components/components/twoColumns.vue +52 -52
  275. package/src/formBuilder/components/app-main/components/main-center.vue +187 -187
  276. package/src/formBuilder/components/app-main/components/main-header.vue +351 -351
  277. package/src/formBuilder/components/app-main/components/main-left.vue +179 -179
  278. package/src/formBuilder/components/app-main/components/main-right/components/components/calculateDialog.vue +914 -914
  279. package/src/formBuilder/components/app-main/components/main-right/components/components/curTextArea.vue +338 -338
  280. package/src/formBuilder/components/app-main/components/main-right/components/components/form-item-rules.vue +190 -190
  281. package/src/formBuilder/components/app-main/components/main-right/components/components/linkageDialog.vue +25 -25
  282. package/src/formBuilder/components/app-main/components/main-right/components/components/searchMixin.js +26 -26
  283. package/src/formBuilder/components/app-main/components/main-right/components/form-config.vue +284 -284
  284. package/src/formBuilder/components/app-main/components/main-right/components/form-item-attrs.vue +407 -407
  285. package/src/formBuilder/components/app-main/components/main-right/components/form-item-config.vue +478 -478
  286. package/src/formBuilder/components/app-main/components/main-right/index.vue +203 -203
  287. package/src/formBuilder/components/app-main/index.vue +329 -329
  288. package/src/formBuilder/comps.js +283 -283
  289. package/src/formBuilder/config/button.js +63 -63
  290. package/src/formBuilder/config/cascader-panel.js +224 -224
  291. package/src/formBuilder/config/cascader.js +306 -306
  292. package/src/formBuilder/config/checkbox.js +67 -67
  293. package/src/formBuilder/config/color.js +42 -42
  294. package/src/formBuilder/config/columns.js +30 -30
  295. package/src/formBuilder/config/custom-table.js +49 -49
  296. package/src/formBuilder/config/date.js +107 -107
  297. package/src/formBuilder/config/daterange.js +47 -47
  298. package/src/formBuilder/config/datetime.js +78 -78
  299. package/src/formBuilder/config/datetimerange.js +111 -111
  300. package/src/formBuilder/config/formDep.js +37 -37
  301. package/src/formBuilder/config/groupSummary.js +23 -23
  302. package/src/formBuilder/config/groupTitle.js +23 -23
  303. package/src/formBuilder/config/handleCode.js +23 -23
  304. package/src/formBuilder/config/image-uploader.js +113 -113
  305. package/src/formBuilder/config/input.js +162 -162
  306. package/src/formBuilder/config/json-editor.js +31 -31
  307. package/src/formBuilder/config/linkForm.js +69 -69
  308. package/src/formBuilder/config/number.js +49 -49
  309. package/src/formBuilder/config/password.js +82 -82
  310. package/src/formBuilder/config/person.js +37 -37
  311. package/src/formBuilder/config/postman.js +23 -23
  312. package/src/formBuilder/config/purchase.js +19 -19
  313. package/src/formBuilder/config/quill-editor.js +66 -66
  314. package/src/formBuilder/config/radio-button.js +44 -44
  315. package/src/formBuilder/config/radio.js +69 -69
  316. package/src/formBuilder/config/rate.js +93 -93
  317. package/src/formBuilder/config/select.js +105 -105
  318. package/src/formBuilder/config/slider.js +92 -92
  319. package/src/formBuilder/config/switch.js +35 -35
  320. package/src/formBuilder/config/tag.js +79 -79
  321. package/src/formBuilder/config/text.js +18 -18
  322. package/src/formBuilder/config/textarea.js +129 -129
  323. package/src/formBuilder/config/time.js +60 -60
  324. package/src/formBuilder/config/timerange.js +94 -94
  325. package/src/formBuilder/config/tree-select.js +100 -100
  326. package/src/formBuilder/config/upload-file.js +100 -100
  327. package/src/formBuilder/config/yesno.js +39 -39
  328. package/src/formBuilder/config.js +16 -16
  329. package/src/formBuilder/extend/index.js +20 -20
  330. package/src/formBuilder/index.js +39 -39
  331. package/src/formBuilder/menuConfig.js +36 -36
  332. package/src/formBuilder/mixins/index.js +215 -215
  333. package/src/formBuilder/tool.js +101 -101
  334. package/src/function/base.js +13 -13
  335. package/src/function/findCompanyTree.js +94 -94
  336. package/src/function/formulaAnalysis.js +44 -44
  337. package/src/function/verify.js +23 -23
  338. package/src/http/index.js +219 -219
  339. package/src/http/type.js +82 -82
  340. package/src/library/AddType/Index.js +17 -17
  341. package/src/library/AddType/Index.vue +201 -201
  342. package/src/library/AreaChange/regionCascader/regionCascader.vue +155 -155
  343. package/src/library/BigImg/BigImage1/Index.js +17 -17
  344. package/src/library/BigImg/BigImage1/Index.vue +125 -125
  345. package/src/library/Button/Button1/Index.js +17 -17
  346. package/src/library/Button/Button1/Index.vue +60 -60
  347. package/src/library/Button/Button2/Index.js +17 -17
  348. package/src/library/Button/Button2/Index.vue +52 -52
  349. package/src/library/Button/Button3/Index.js +17 -17
  350. package/src/library/Button/Button3/Index.vue +56 -56
  351. package/src/library/Button/Button4/Index.js +17 -17
  352. package/src/library/Button/Button4/Index.vue +56 -56
  353. package/src/library/Button/Button5/Index.js +17 -17
  354. package/src/library/Button/Button5/Index.vue +55 -55
  355. package/src/library/Button/Button6/Index.js +17 -17
  356. package/src/library/Button/Button6/Index.vue +74 -74
  357. package/src/library/Button/Button7/Index.js +17 -17
  358. package/src/library/Button/Button7/Index.vue +56 -56
  359. package/src/library/ConfirmPlaugin/ConfirmPlaugin1/Index.js +17 -17
  360. package/src/library/ConfirmPlaugin/ConfirmPlaugin1/Index.vue +147 -147
  361. package/src/library/ConfirmPlaugin/ConfirmPlaugin2/Index.js +17 -17
  362. package/src/library/ConfirmPlaugin/ConfirmPlaugin2/Index.vue +137 -137
  363. package/src/library/ConfirmPlaugin/ConfirmPlaugin3/Index.vue +142 -142
  364. package/src/library/ConfirmPlaugin/ConfirmPlaugin4/Index.vue +141 -141
  365. package/src/library/ConfirmPlaugin/ConfirmPlaugin5/Index.vue +121 -121
  366. package/src/library/ConfirmPlaugin/ConfirmPlaugin6/Index.vue +142 -142
  367. package/src/library/Input/Input1/Index.js +17 -17
  368. package/src/library/Input/Input1/Index.vue +66 -66
  369. package/src/library/NoMessage/NoMessage0/Index.js +17 -17
  370. package/src/library/NoMessage/NoMessage0/Index.vue +60 -60
  371. package/src/library/NoMessage/NoMessage1/Index.js +17 -17
  372. package/src/library/NoMessage/NoMessage1/Index.vue +66 -66
  373. package/src/library/NoMessage/NoMessage2/Index.js +17 -17
  374. package/src/library/NoMessage/NoMessage2/Index.vue +66 -66
  375. package/src/library/Tab/Tab1/TabBox1/Index.vue +36 -36
  376. package/src/library/Tab/Tab1/TabInner1/Index.vue +70 -70
  377. package/src/library/Tab/Tab2/TabBox2/Index.vue +36 -36
  378. package/src/library/Tab/Tab2/TabInner2/Index.vue +66 -66
  379. package/src/library/Table/Table1/Td1/Index.js +17 -17
  380. package/src/library/Table/Table1/Td1/Index.vue +110 -110
  381. package/src/library/Table/Table1/Tr1/Index.js +17 -17
  382. package/src/library/Table/Table1/Tr1/Index.vue +53 -53
  383. package/src/library/Table/Table2/Td2/Index.js +17 -17
  384. package/src/library/Table/Table2/Td2/Index.vue +90 -90
  385. package/src/library/Table/Table2/Tr2/Index.js +17 -17
  386. package/src/library/Table/Table2/Tr2/Index.vue +66 -66
  387. package/src/library/Table/Table3/Td3/Index.js +17 -17
  388. package/src/library/Table/Table3/Td3/Index.vue +109 -109
  389. package/src/library/Table/Table3/Tr3/Index.js +17 -17
  390. package/src/library/Table/Table3/Tr3/Index.vue +128 -128
  391. package/src/library/Table/Table4/Td4/Index.js +17 -17
  392. package/src/library/Table/Table4/Td4/Index.vue +114 -114
  393. package/src/library/Table/Table4/Tr4/Index.js +17 -17
  394. package/src/library/Table/Table4/Tr4/Index.vue +53 -53
  395. package/src/library/Title/Title1/Index.js +17 -17
  396. package/src/library/Title/Title1/Index.vue +80 -80
  397. package/src/library/toast/Index.js +17 -17
  398. package/src/library/toast/Index.vue +86 -86
  399. package/src/main.js +161 -161
  400. package/src/mixins/Export2Excel.js +207 -207
  401. package/src/mixins/chartOption.js +110 -110
  402. package/src/mixins/companyMixins.js +84 -84
  403. package/src/mixins/quillOptions.js +15 -15
  404. package/src/mixins/validate/deviceManage.js +211 -211
  405. package/src/mixins/validate/systemConfig.js +117 -117
  406. package/src/mixins/validate/validate.js +25 -25
  407. package/src/public/apiUser/apiUser.js +10 -10
  408. package/src/public/areaFunction.js +26 -26
  409. package/src/public/link.js +91 -91
  410. package/src/public/stageData.js +495 -495
  411. package/src/public/topmenu.js +68 -68
  412. package/src/router/index.js +225 -225
  413. package/src/router/setting/BaseRoutes.js +1639 -1639
  414. package/src/router/setting/MenuDevMock.js +1570 -1570
  415. package/src/router/setting/modules/login.js +45 -45
  416. package/src/router/setting/noAuthRouter.js +109 -109
  417. package/src/router/setting/routes.js +55 -55
  418. package/src/static/css/flex.css +75 -75
  419. package/src/static/css/switch.scss +31 -31
  420. package/src/storage/cookies.js +37 -37
  421. package/src/storage/localStorage.js +36 -36
  422. package/src/storage/sessionStorage.js +25 -25
  423. package/src/store/formBuilder/formAttrDefault.js +28 -28
  424. package/src/store/formBuilder/index.js +40 -40
  425. package/src/store/index.js +553 -553
  426. package/src/styles/color.scss +24 -24
  427. package/src/styles/offer.scss +39 -39
  428. package/src/styles/s-reset.scss +52 -52
  429. package/src/styles/static-style.scss +797 -797
  430. package/src/styles/talent.scss +26 -26
  431. package/src/styles/variable.scss +69 -69
  432. package/src/styles/workflow/workflow.css +1308 -1308
  433. package/src/utils/TableFormTypeList.js +26 -26
  434. package/src/utils/allRouter.js +5579 -5579
  435. package/src/utils/auditUtil.js +535 -535
  436. package/src/utils/commonComponents.js +34 -34
  437. package/src/utils/commonFunc.js +213 -213
  438. package/src/utils/deepCopyArray.js +9 -9
  439. package/src/utils/dict.js +49 -49
  440. package/src/utils/directive.js +26 -26
  441. package/src/utils/emoji.js +16 -16
  442. package/src/utils/flator.js +18 -18
  443. package/src/utils/imMeeting.js +1180 -1180
  444. package/src/utils/index.js +105 -105
  445. package/src/utils/initRouter.js +94 -94
  446. package/src/utils/map.js +23 -23
  447. package/src/utils/passwordStrength.js +177 -177
  448. package/src/utils/style.js +30 -30
  449. package/src/utils/validate.js +30 -30
  450. package/src/views/404.vue +53 -53
  451. package/src/views/Login/Login.vue +50 -50
  452. package/src/views/Login/Passfind.vue +347 -347
  453. package/src/views/Login/Passfindnext.vue +146 -146
  454. package/src/views/Login/Sign.vue +55 -55
  455. package/src/views/Login/SignSuccessfully.vue +132 -132
  456. package/src/views/Login/appDownload.vue +224 -224
  457. package/src/views/Login/clientDownload.vue +201 -201
  458. package/src/views/Login/components/Background.vue +153 -153
  459. package/src/views/Login/components/FormLogin.vue +1001 -1001
  460. package/src/views/Login/components/FormPassFind.vue +395 -395
  461. package/src/views/Login/components/FormSign.vue +493 -493
  462. package/src/views/Login/components/Title.vue +301 -301
  463. package/src/views/Login/components/agreeMent.vue +111 -111
  464. package/src/views/Login/components/companysign.vue +1296 -1296
  465. package/src/views/Login/components/guideLogin.vue +984 -984
  466. package/src/views/formBuilder/components/addNode.vue +119 -119
  467. package/src/views/formBuilder/components/approverSelector.vue +493 -493
  468. package/src/views/formBuilder/components/baseRoute.vue +315 -315
  469. package/src/views/formBuilder/components/builderHeader.vue +106 -106
  470. package/src/views/formBuilder/components/conditionConfig.js +588 -588
  471. package/src/views/formBuilder/components/conditionNode.vue +191 -191
  472. package/src/views/formBuilder/components/dataDefault.js +147 -147
  473. package/src/views/formBuilder/components/depFormNode.vue +583 -583
  474. package/src/views/formBuilder/components/linkForm.vue +566 -566
  475. package/src/views/formBuilder/components/linkFormList.vue +821 -821
  476. package/src/views/formBuilder/components/menuConfig.vue +1752 -1752
  477. package/src/views/formBuilder/components/newNodeForm.vue +426 -426
  478. package/src/views/formBuilder/components/newsection.vue +424 -424
  479. package/src/views/formBuilder/components/nodeConditionConfig cody.vue +376 -376
  480. package/src/views/formBuilder/components/nodeConditionConfig.vue +603 -603
  481. package/src/views/formBuilder/components/nodeForm.vue +355 -355
  482. package/src/views/formBuilder/components/nodeMenu.vue +147 -147
  483. package/src/views/formBuilder/components/personNode.vue +566 -566
  484. package/src/views/formBuilder/components/planNode.vue +269 -269
  485. package/src/views/formBuilder/designListPage.vue +457 -457
  486. package/src/views/formBuilder/formDataDetail.vue +565 -565
  487. package/src/views/formBuilder/formGeneration.vue +904 -904
  488. package/src/views/formBuilder/index.vue +242 -242
  489. package/src/views/formBuilder/process-1.vue +976 -976
  490. package/src/views/formBuilder/process-2.vue +1323 -1323
  491. package/src/views/formBuilder/process.vue +662 -431
  492. package/src/views/formBuilder/processList.vue +877 -877
  493. package/src/views/formBuilder/service/ProcessBuilder.js +136 -136
  494. package/src/views/formBuilder/service/RsxzFieldCollection.js +199 -0
  495. package/src/views/formBuilder/workflow/addNode.vue +95 -95
  496. package/src/views/formBuilder/workflow/initData.js +205 -205
  497. package/src/views/formBuilder/workflow/nodeWrap.vue +731 -731
  498. package/src/views/guide.vue +227 -227
  499. package/src/views/guideIndex.vue +284 -284
  500. package/tests/unit/.eslintrc.js +5 -5
  501. package/tests/unit/example.spec.js +13 -13
  502. package/vue.config.js +287 -287
@@ -1,752 +1,752 @@
1
- <template>
2
- <div class="exam-add-edit">
3
- <div class="exam-detail">
4
- <div class="detail-left">
5
- <!-- 审批流程 -->
6
- <div class="exmAndapproInfo">
7
- <p class="title">审批流程</p>
8
- <div class="box">
9
- <div class="dw">
10
- <ul>
11
- <li
12
- v-for="(item,index) in processList"
13
- :key="index+'process'"
14
- :class="!item.isComplete ? 'no-approva' : ''"
15
- >
16
- <div v-if="index != 0" class="line"></div>
17
- <div class="node">
18
- <div class="node-info">
19
- <div>
20
- <!-- <p v-if="item.nodeType == 'START'">发起流程</p>
21
- <p v-else-if="item.nodeType == 'END'">完成</p>
22
- <p v-else>审批</p>-->
23
- <p>{{item.nodeName}}</p>
24
- </div>
25
- <div>
26
- <p
27
- v-if="item.nodeType == 'START' || (item.nodeType == 'END' && item.nodeName == '开始')"
28
- >{{optData[0] && optData[0].approverName ? optData[0].approverName : '发起人'}}</p>
29
- <p v-else-if="item.nodeType == 'USER_EVENT'">
30
- <!-- {{(item.approvers.map(item=>(item.userName))).join(',')}} -->
31
- {{getUserName(item)}}
32
- </p>
33
- <p v-else></p>
34
- </div>
35
- <!-- <p>2020-03-01 12:00</p> -->
36
- </div>
37
- </div>
38
- </li>
39
- </ul>
40
- </div>
41
- </div>
42
- </div>
43
- <div class="exmAndapproInfo">
44
- <p class="title">审批日志</p>
45
- <div class="audit-log">
46
- <el-table
47
- :data="optData"
48
- border
49
- :header-cell-style="$TableCell.setHeaderCellStyle"
50
- :cell-style="$TableCell.setCellStyle"
51
- tooltip-effect="dark"
52
- style="width: 100%;"
53
- >
54
- <el-table-column
55
- show-overflow-tooltip
56
- :resizable="false"
57
- prop="approverName"
58
- label="操作人员"
59
- align="left"
60
- ></el-table-column>
61
- <el-table-column
62
- show-overflow-tooltip
63
- :resizable="false"
64
- prop="result"
65
- label="操作结果"
66
- align="left"
67
- >
68
- <template slot-scope="scope">
69
- <span class="unpass" v-if="scope.row.status == 0">审批不通过</span>
70
- <span class="pass" v-if="(scope.row.status == 1 || scope.row.status == 3)">审批通过</span>
71
- <span v-if="scope.row.status == -1">发起流程</span>
72
- <span v-if="scope.row.status == 2">流程转交</span>
73
- </template>
74
- </el-table-column>
75
- <el-table-column
76
- show-overflow-tooltip
77
- :resizable="false"
78
- prop="audit_time"
79
- label="操作时间"
80
- align="left"
81
- >
82
- <template slot-scope="scope">
83
- <span>{{scope.row.create_time}}</span>
84
- </template>
85
- </el-table-column>
86
- <el-table-column
87
- show-overflow-tooltip
88
- :resizable="false"
89
- prop="useTime"
90
- label="共计用时"
91
- align="left"
92
- >
93
- <template slot-scope="scope">
94
- <span>{{scope.row.take_time}}</span>
95
- </template>
96
- </el-table-column>
97
- <el-table-column
98
- show-overflow-tooltip
99
- :resizable="false"
100
- prop="reason"
101
- label="操作备注"
102
- align="left"
103
- >
104
- <template slot-scope="scope">
105
- <span>{{scope.row.reason | formatReason}}</span>
106
- </template>
107
- </el-table-column>
108
- </el-table>
109
- </div>
110
- </div>
111
- <div class="exmAndapproInfo" v-if="false">
112
- <p class="title">询问详情</p>
113
- <div class="inquiry">
114
- <div>
115
- <span>部门负责人:张三</span>
116
- <!-- <span>2020-03-07 13:00</span> -->
117
- </div>
118
- <div>
119
- <span>同意</span>
120
- </div>
121
- </div>
122
- </div>
123
- </div>
124
- </div>
125
- <div class="exmAndapproInfo" style="padding: 20px 0" v-if="complete && $route.query.approve">
126
- <el-form ref="form" :rules="rules" :model="form" label-width="80px">
127
- <el-form-item
128
- label="审批操作"
129
- prop="result"
130
- :rules="[{ required: true, message: '请选择审批操作', trigger: 'blur' }]"
131
- >
132
- <el-radio-group v-model="form.result" @change="changeHarld">
133
- <el-radio :label="1">通过</el-radio>
134
- <el-radio :label="2">不通过</el-radio>
135
- </el-radio-group>
136
- </el-form-item>
137
- <el-form-item
138
- style="width: 50%"
139
- label="审批意见"
140
- prop="reason"
141
- :rules="form.result == '2' ? [{ required: true, message: '请输入审批意见', trigger: 'blur' }] : []"
142
- >
143
- <el-input
144
- type="textarea"
145
- :rows="4"
146
- maxlength="300"
147
- show-word-limit
148
- v-model="form.reason"
149
- placeholder="请填写300字以内的审批意见"
150
- ></el-input>
151
- </el-form-item>
152
- </el-form>
153
- <div class="save">
154
- <el-button @click="showSection = true; optType=1">转交</el-button>
155
- <el-button type="primary" @click="marking">批阅</el-button>
156
- <!-- <el-button type="primary" @click="showSection = true; optType=2">询问</el-button> -->
157
- </div>
158
- </div>
159
- <!-- 督办 -->
160
- <div class="exmAndapproInfo" v-if="false">
161
- <div class="supervise">
162
- <span>督办说明:</span>
163
- <el-input
164
- type="textarea"
165
- :rows="4"
166
- maxlength="300"
167
- show-word-limit
168
- v-model="supervise"
169
- placeholder="请输入督办说明,最多可输入300字"
170
- ></el-input>
171
- </div>
172
- <div class="supervise-btn">
173
- <el-button type="primary" @click="toUrge">督办</el-button>
174
- </div>
175
- </div>
176
- <!-- 撤销 -->
177
- <div class="supervise-btn" v-if="!$route.query.approve && false">
178
- <el-button @click="revoke">撤销</el-button>
179
- </div>
180
- <MemberSelection
181
- ref="selection"
182
- v-if="showSection"
183
- title="选择转交人"
184
- isRadio
185
- :directClose="false"
186
- @close="showSection = false; deliverForm.deliverRemark = ''"
187
- :formData="selectData"
188
- @save="checkMenber"
189
- >
190
- <div class="remark">
191
- <el-form :model="deliverForm" ref="deliver" inline>
192
- <el-form-item
193
- label="转交理由:"
194
- prop="deliverRemark"
195
- :rules="[{ required: true, message: '请输入转交理由', trigger: 'change' }]"
196
- >
197
- <el-input
198
- style="width:440px"
199
- type="textarea"
200
- :autosize="{ minRows: 2, maxRows: 4}"
201
- v-model="deliverForm.deliverRemark"
202
- placeholder="请输入转交理由"
203
- ></el-input>
204
- </el-form-item>
205
- </el-form>
206
- </div>
207
- </MemberSelection>
208
- </div>
209
- </template>
210
-
211
- <script>
212
- import apiApprove from "@/api/ApiExAndapp";
213
- import { approvalAudit } from "@/api/apiAudit/apiAudit";
214
- import apiBudget from "@/api/apiBudget/apiBudget.js"; // 预算
215
- import { leaseRentInfoApprove } from "@/api/apiMachine/apiLease"; // 机械
216
- import apiEquipmentRental from "@/api/apiEquipmentRental"; // 设备
217
- import apiEmployeeRegularization from "@/api/apiEmployeeRegularization"; // 员工
218
- import { sealApprove } from "@/api/apiSealRecord"; // 印章
219
- import { carApplyApprove } from "@/api/apiCarRecord"; // 车辆
220
- import apiCheckingIn from "@/api/apiCheckingIn";
221
- import {
222
- queryProcessList,
223
- approverMakerAsPass,
224
- approverMakerAsRefuse,
225
- queryOptLog,
226
- deliverProcess
227
- } from "@/api/apiProcess";
228
- import cookie from "@/storage/cookies";
229
- import MemberSelection from "./public/MemberSelection";
230
- import api from "@/api/apiProjectProcurement/apiProjectProcurement";
231
- export default {
232
- name: "AuditDetail",
233
- components: {
234
- MemberSelection
235
- },
236
- data() {
237
- return {
238
- total: null,
239
- activeName: "first",
240
- form: {
241
- no: "",
242
- result: 1,
243
- reason: ""
244
- },
245
- rules: {
246
- resource: [
247
- { required: true, message: "请选择审批操作", trigger: "change" }
248
- ]
249
- },
250
- dataInfo: { no: "" },
251
- dataContent: {},
252
- flowData: [],
253
- logData: [],
254
- log: {
255
- id: this.$route.params.id,
256
- limit: 20,
257
- page: 1
258
- },
259
- logoData: [],
260
- auditType: 0,
261
- processList: [],
262
- supervise: "",
263
- showSection: false,
264
- selectData: {
265
- roleList: [],
266
- userList: []
267
- },
268
- optType: "1",
269
- id: "",
270
- applyId: "",
271
- optData: [],
272
- complete: true,
273
- deliverForm: {
274
- deliverRemark: ""
275
- },
276
- deliver: {}
277
- };
278
- },
279
- props: {
280
- auditData: {
281
- type: Object
282
- }
283
- },
284
- computed: {
285
- user() {
286
- return this.$store.state.user;
287
- }
288
- },
289
- filters: {
290
- leaseDataFn(val) {
291
- console.log(val);
292
- return val;
293
- },
294
- telEllipsis(val) {
295
- return val;
296
- },
297
- formatReason(val) {
298
- if (!val) return "";
299
- const isHas = val.indexOf("|");
300
- if (isHas > -1) {
301
- const str = val.substring(isHas + 1)
302
- ? " 转交原因:" + val.substring(isHas + 1)
303
- : "";
304
- return "转交给" + val.substring(0, isHas) + str;
305
- } else {
306
- return val;
307
- }
308
- }
309
- },
310
- watch: {
311
- auditData(val) {
312
- this.initData(val);
313
- }
314
- },
315
- mounted() {
316
- this.id = this.$route.query.auditId
317
- ? this.$route.query.auditId
318
- : this.$route.query._id;
319
- this.applyId = this.$route.query.applyId || "";
320
- // this.initData(this.auditData)
321
- this.getProcessList();
322
- this.getApprovalOpt();
323
- },
324
- methods: {
325
- initData(val) {
326
- if (val.auditRecord) {
327
- this.dataInfo = val.auditDetail;
328
- this.flowData = val.auditRecord;
329
-
330
- /* 流程目前进行到哪一步日志显示到那一条 */
331
- let ind = 0;
332
- val.auditRecord.forEach((v, i) => {
333
- if (ind < 1 && !v.audit_time) {
334
- ind = i;
335
- }
336
- });
337
- if (ind) {
338
- this.logData = val.auditRecord.slice(0, ind);
339
- } else {
340
- this.logData = val.auditRecord;
341
- }
342
- this.form.no = val.auditDetail.no;
343
- this.form.billNo = val.auditDetail.bill_no;
344
-
345
- this.auditType = val.auditDetail.type;
346
- }
347
- },
348
- // 分页
349
- operationPageChange(page) {
350
- this.log.page = page;
351
- this.handleClick();
352
- },
353
- async handleClick() {
354
- if (this.activeName == "second") {
355
- const res = await apiApprove.postExAndapplog(this.log);
356
- if (res.data.code == 200) {
357
- this.logoData = res.data.data.records;
358
- this.total = Number(res.data.data.total);
359
- }
360
- console.log(res);
361
- }
362
- },
363
- save() {
364
- this.$refs["form"].validate(async valid => {
365
- if (valid) {
366
- if (this.auditType === 2) {
367
- var { data } = await apiEmployeeRegularization.employeeApprove(
368
- this.form
369
- );
370
- } else if (this.auditType === 5) {
371
- var { data } = await apiBudget.budgetApprove(this.form);
372
- } else if (this.auditType === 6) {
373
- var { data } = await leaseRentInfoApprove(this.form);
374
- } else if (this.auditType === 7) {
375
- var { data } = await apiEquipmentRental.rentInfoApprove(this.form);
376
- } else if (this.auditType === "subcontract") {
377
- alert(1);
378
- } else {
379
- // var {data} = await approvalAudit(this.form)
380
- var token = cookie.cookieRead("token");
381
- const params = {
382
- resourceToken: token,
383
- userNo: this.$store.state.user.no,
384
- reason: this.form.reason,
385
- result: this.form.result,
386
- applyNo: this.form.billNo
387
- };
388
- var { data } = await apiCheckingIn.approvalAudit(params);
389
- }
390
- if (data.code === 200 || data.code === 0) {
391
- const msg = data.msg || "操作成功";
392
- this.$message({
393
- showClose: true,
394
- message: msg,
395
- type: "success"
396
- });
397
- this.$removeTag("/");
398
- } else if (data.state == "ok") {
399
- const msg = data.data || "操作成功";
400
- this.$message({
401
- showClose: true,
402
- message: msg,
403
- type: "success"
404
- });
405
- this.$removeTag("/");
406
- } else {
407
- const msg = data.msg || "操作失败";
408
- this.$message.error(data.msg);
409
- }
410
- }
411
- });
412
- },
413
- changeHarld() {
414
- this.$refs.form.clearValidate();
415
- },
416
- time(val) {
417
- if (!val) {
418
- return "";
419
- }
420
- var date = new Date(val);
421
- var year = date.getFullYear();
422
- var month = date.getMonth() + 1; // js从0开始取
423
- var date1 = date.getDate();
424
- var hour = date.getHours();
425
- var minutes = date.getMinutes();
426
- var second = date.getSeconds();
427
-
428
- if ((month + "").length === 1) {
429
- month = "0" + month;
430
- }
431
- if ((date1 + "").length === 1) {
432
- date1 = "0" + date1;
433
- }
434
- if ((hour + "").length === 1) {
435
- hour = "0" + hour;
436
- }
437
- if ((minutes + "").length === 1) {
438
- minutes = "0" + minutes;
439
- }
440
- if ((second + "").length === 1) {
441
- second = "0" + second;
442
- }
443
- return year + "-" + month + "-" + date1 + " " + hour + ":" + minutes;
444
- // return year + '年' + month + '月' + date1 + '日' + hour + '时' + minutes + '分' + second + '秒'
445
- },
446
- async getProcessList() {
447
- const res = await queryProcessList({ id: this.id });
448
- let flg = true;
449
- res.data.data.processList.forEach(item => {
450
- item.isComplete = flg;
451
- if (item.nodeId == res.data.data.nextNode) {
452
- flg = false;
453
- }
454
- });
455
- this.processList = res.data.data.processList;
456
- this.deliver = res.data.data.deliver ? res.data.data.deliver : {};
457
- },
458
- // 审批转交
459
- checkMenber(data) {
460
- if (data.userList.length < 1) {
461
- this.$message.error("请选择角色或成员");
462
- return;
463
- }
464
- this.selectData.userList = data.userList;
465
- if (this.optType == 1) {
466
- this.$refs.deliver.validate(async valid => {
467
- if (valid) {
468
- const parse = {
469
- deliverTo: this.selectData.userList[0].memberNo,
470
- companyNo: this.user.cno,
471
- source: this.user.no,
472
- deliverName: this.selectData.userList[0].name,
473
- id: this.id,
474
- reason: this.deliverForm.deliverRemark
475
- };
476
- const res = await deliverProcess(parse);
477
- if (res.data.state == "ok") {
478
- this.$refs.selection.handleClose();
479
- this.showSection = false;
480
- this.$message.success(res.data.msg ? res.data.msg : "操作成功");
481
- this.$router.go(-1);
482
- } else {
483
- this.$message.error(
484
- res.data.msg ? res.data.msg : "转交失败,请重试"
485
- );
486
- }
487
- }
488
- });
489
- } else {
490
- }
491
- },
492
- // 督办
493
- toUrge() {},
494
- // 撤销
495
- revoke() {
496
- this.$confirm(`撤销审批需审批人统计,确定要撤销吗?`, "撤销审批", {
497
- confirmButtonText: "确定",
498
- cancelButtonText: "取消",
499
- type: "warning"
500
- })
501
- .then(function() {
502
- // 撤销接口
503
- })
504
- .catch(() => {});
505
- },
506
- // 批阅
507
- async marking() {
508
- this.$refs["form"].validate(async valid => {
509
- if (valid) {
510
- let res;
511
- if (this.form.result == 1) {
512
- res = await approverMakerAsPass({
513
- id: this.id,
514
- reason: this.form.reason,
515
- userId: this.$store.state.user.no,
516
- companyId: this.$store.state.user.cno
517
- });
518
- } else if (this.form.result == 2) {
519
- res = await approverMakerAsRefuse({
520
- id: this.id,
521
- reason: this.form.reason,
522
- userId: this.$store.state.user.no,
523
- companyId: this.$store.state.user.cno
524
- });
525
- }
526
- console.log(res);
527
- if (res.data.state == "ok") {
528
- let reslove;
529
- if (this.$route.query.approve == "projectFeePlan") {
530
- reslove = await api.proupdateApproveStateById(this.id);
531
- } else if (this.$route.query.approve == "projectFeeApplication") {
532
- reslove = await api.prosqupdateApproveStateById(this.id);
533
- } else if (this.$route.query.approve == "projectFeeCredit") {
534
- reslove = await api.progzupdateApproveStateById(this.id);
535
- } else if (this.$route.query.approve == "projectFeePay") {
536
- reslove = await api.prozfupdateApproveStateById(this.id);
537
- }
538
- console.log(reslove)
539
- if (reslove.data.code == 200) {
540
- this.$message.success(res.data.msg);
541
- this.$removeTag("/");
542
- this.complete = false;
543
- } else {
544
- this.$message.error(res.data.msg);
545
- }
546
- } else {
547
- this.$message.error(res.data.msg);
548
- }
549
- }
550
- });
551
- },
552
- // 获取审批日志
553
- async getApprovalOpt() {
554
- const res = await queryOptLog({ id: this.id });
555
- if (res.data.state == "ok") {
556
- this.optData = res.data.data;
557
- }
558
- },
559
- // 获取节点用户名称
560
- getUserName(obj) {
561
- const approvers = obj.approvers;
562
- const deliver = this.deliver[obj.nodeId];
563
- const user = approvers.map(item => item.userName).join(",");
564
- const str =
565
- deliver && deliver[0]
566
- ? `${user}(已转交给${deliver[0].deliverName})`
567
- : user;
568
- return str;
569
- }
570
- }
571
- };
572
- </script>
573
- <style lang="scss">
574
- .exam-add-edit .el-tabs__header {
575
- margin: 0;
576
- }
577
- </style>
578
- <style scoped lang="scss" rel="stylesheet/scss">
579
- .box {
580
- margin: 20px 0 0 20px;
581
- .dw {
582
- ul {
583
- padding: 0 60px;
584
- display: flex;
585
- li {
586
- flex: 1;
587
- display: flex;
588
- height: 100px;
589
- min-width: 160px;
590
- &:first-child {
591
- flex: none;
592
- width: 10px;
593
- min-width: 10px;
594
- }
595
- .node {
596
- width: 10px;
597
- height: 10px;
598
- border-radius: 50%;
599
- position: relative;
600
- background-color: #0286df;
601
- .node-info {
602
- position: absolute;
603
- top: 14px;
604
- left: -70px;
605
- width: 150px;
606
- p {
607
- margin: 4px 0;
608
- text-align: center;
609
- color: #666;
610
- white-space: nowrap;
611
- text-overflow: ellipsis;
612
- &:nth-of-type(1) {
613
- color: #333;
614
- }
615
- }
616
- }
617
- }
618
- .line {
619
- flex: 1;
620
- height: 4px;
621
- margin: 3px 0;
622
- background-color: #0286df;
623
- }
624
- }
625
- .no-approva {
626
- .node {
627
- background-color: #ccc;
628
- }
629
- .line {
630
- background-color: #ccc;
631
- }
632
- }
633
- }
634
- }
635
- }
636
- .save {
637
- text-align: center;
638
- }
639
- .exam-detail {
640
- display: flex;
641
- // border: 1px solid #e4e7ed;
642
- border-top: 0;
643
-
644
- .exmAndapproInfo {
645
- .audit-log {
646
- padding: 15px 20px 0 0;
647
- }
648
- .title {
649
- margin: 0;
650
- /*padding: 20px 0 20px 20px;*/
651
- /*border-bottom: 1px solid #E4E7ED;*/
652
- font-size: 16px;
653
- color: #333333;
654
- color: #0286df;
655
- font-size: 18px;
656
- border-bottom: 1px dashed #e4e7ed;
657
- padding: 0 0 12px 10px;
658
- position: relative;
659
- &::before {
660
- position: absolute;
661
- left: 0;
662
- top: 2px;
663
- content: "";
664
- width: 3px;
665
- height: 20px;
666
- background-color: #409ee9;
667
- }
668
- }
669
- .inquiry {
670
- margin: 10px 0 10px 10px;
671
- span {
672
- font-size: 14px;
673
- color: #666666;
674
- }
675
- div {
676
- margin-top: 8px;
677
- }
678
- }
679
- margin: 0;
680
- font-size: 14px;
681
- color: #666666;
682
- padding: 20px 0 0 0;
683
- span {
684
- color: #333333;
685
- }
686
- .linbP {
687
- font-size: 14px;
688
- color: #666666;
689
- span {
690
- margin-left: 10px;
691
- color: #333333;
692
- }
693
- }
694
- .unpass {
695
- color: #ff6600;
696
- }
697
- .pass {
698
- color: #78c06e;
699
- }
700
- }
701
- .detail-left {
702
- flex: 1;
703
- .exmAndapproInfo {
704
- &:last-child {
705
- border-bottom: 0;
706
- }
707
- }
708
- }
709
- }
710
- .supervise {
711
- display: flex;
712
- width: 50%;
713
- margin-top: 26px;
714
- & > span {
715
- font-size: 14px;
716
- color: #666;
717
- display: block;
718
- width: 80px;
719
- margin-right: 10px;
720
- }
721
- /deep/ .el-input__count {
722
- bottom: 5px !important;
723
- }
724
- }
725
- .supervise-btn {
726
- text-align: center;
727
- margin-top: 20px;
728
- }
729
- .headTitle {
730
- color: #000000;
731
- padding-bottom: 20px;
732
- /*padding: 20px 20px 0 20px;*/
733
- div {
734
- /*border-bottom: 1px solid #0286df;*/
735
- /*padding-bottom: 30px;*/
736
- span {
737
- font-size: 16px;
738
- }
739
- }
740
- }
741
- .pad_10 {
742
- padding: 0 10px;
743
- }
744
- .remark {
745
- display: flex;
746
- margin-top: 20px;
747
- & > span {
748
- padding-top: 6px;
749
- width: 80px;
750
- }
751
- }
752
- </style>
1
+ <template>
2
+ <div class="exam-add-edit">
3
+ <div class="exam-detail">
4
+ <div class="detail-left">
5
+ <!-- 审批流程 -->
6
+ <div class="exmAndapproInfo">
7
+ <p class="title">审批流程</p>
8
+ <div class="box">
9
+ <div class="dw">
10
+ <ul>
11
+ <li
12
+ v-for="(item,index) in processList"
13
+ :key="index+'process'"
14
+ :class="!item.isComplete ? 'no-approva' : ''"
15
+ >
16
+ <div v-if="index != 0" class="line"></div>
17
+ <div class="node">
18
+ <div class="node-info">
19
+ <div>
20
+ <!-- <p v-if="item.nodeType == 'START'">发起流程</p>
21
+ <p v-else-if="item.nodeType == 'END'">完成</p>
22
+ <p v-else>审批</p>-->
23
+ <p>{{item.nodeName}}</p>
24
+ </div>
25
+ <div>
26
+ <p
27
+ v-if="item.nodeType == 'START' || (item.nodeType == 'END' && item.nodeName == '开始')"
28
+ >{{optData[0] && optData[0].approverName ? optData[0].approverName : '发起人'}}</p>
29
+ <p v-else-if="item.nodeType == 'USER_EVENT'">
30
+ <!-- {{(item.approvers.map(item=>(item.userName))).join(',')}} -->
31
+ {{getUserName(item)}}
32
+ </p>
33
+ <p v-else></p>
34
+ </div>
35
+ <!-- <p>2020-03-01 12:00</p> -->
36
+ </div>
37
+ </div>
38
+ </li>
39
+ </ul>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ <div class="exmAndapproInfo">
44
+ <p class="title">审批日志</p>
45
+ <div class="audit-log">
46
+ <el-table
47
+ :data="optData"
48
+ border
49
+ :header-cell-style="$TableCell.setHeaderCellStyle"
50
+ :cell-style="$TableCell.setCellStyle"
51
+ tooltip-effect="dark"
52
+ style="width: 100%;"
53
+ >
54
+ <el-table-column
55
+ show-overflow-tooltip
56
+ :resizable="false"
57
+ prop="approverName"
58
+ label="操作人员"
59
+ align="left"
60
+ ></el-table-column>
61
+ <el-table-column
62
+ show-overflow-tooltip
63
+ :resizable="false"
64
+ prop="result"
65
+ label="操作结果"
66
+ align="left"
67
+ >
68
+ <template slot-scope="scope">
69
+ <span class="unpass" v-if="scope.row.status == 0">审批不通过</span>
70
+ <span class="pass" v-if="(scope.row.status == 1 || scope.row.status == 3)">审批通过</span>
71
+ <span v-if="scope.row.status == -1">发起流程</span>
72
+ <span v-if="scope.row.status == 2">流程转交</span>
73
+ </template>
74
+ </el-table-column>
75
+ <el-table-column
76
+ show-overflow-tooltip
77
+ :resizable="false"
78
+ prop="audit_time"
79
+ label="操作时间"
80
+ align="left"
81
+ >
82
+ <template slot-scope="scope">
83
+ <span>{{scope.row.create_time}}</span>
84
+ </template>
85
+ </el-table-column>
86
+ <el-table-column
87
+ show-overflow-tooltip
88
+ :resizable="false"
89
+ prop="useTime"
90
+ label="共计用时"
91
+ align="left"
92
+ >
93
+ <template slot-scope="scope">
94
+ <span>{{scope.row.take_time}}</span>
95
+ </template>
96
+ </el-table-column>
97
+ <el-table-column
98
+ show-overflow-tooltip
99
+ :resizable="false"
100
+ prop="reason"
101
+ label="操作备注"
102
+ align="left"
103
+ >
104
+ <template slot-scope="scope">
105
+ <span>{{scope.row.reason | formatReason}}</span>
106
+ </template>
107
+ </el-table-column>
108
+ </el-table>
109
+ </div>
110
+ </div>
111
+ <div class="exmAndapproInfo" v-if="false">
112
+ <p class="title">询问详情</p>
113
+ <div class="inquiry">
114
+ <div>
115
+ <span>部门负责人:张三</span>
116
+ <!-- <span>2020-03-07 13:00</span> -->
117
+ </div>
118
+ <div>
119
+ <span>同意</span>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ <div class="exmAndapproInfo" style="padding: 20px 0" v-if="complete && $route.query.approve">
126
+ <el-form ref="form" :rules="rules" :model="form" label-width="80px">
127
+ <el-form-item
128
+ label="审批操作"
129
+ prop="result"
130
+ :rules="[{ required: true, message: '请选择审批操作', trigger: 'blur' }]"
131
+ >
132
+ <el-radio-group v-model="form.result" @change="changeHarld">
133
+ <el-radio :label="1">通过</el-radio>
134
+ <el-radio :label="2">不通过</el-radio>
135
+ </el-radio-group>
136
+ </el-form-item>
137
+ <el-form-item
138
+ style="width: 50%"
139
+ label="审批意见"
140
+ prop="reason"
141
+ :rules="form.result == '2' ? [{ required: true, message: '请输入审批意见', trigger: 'blur' }] : []"
142
+ >
143
+ <el-input
144
+ type="textarea"
145
+ :rows="4"
146
+ maxlength="300"
147
+ show-word-limit
148
+ v-model="form.reason"
149
+ placeholder="请填写300字以内的审批意见"
150
+ ></el-input>
151
+ </el-form-item>
152
+ </el-form>
153
+ <div class="save">
154
+ <el-button @click="showSection = true; optType=1">转交</el-button>
155
+ <el-button type="primary" @click="marking">批阅</el-button>
156
+ <!-- <el-button type="primary" @click="showSection = true; optType=2">询问</el-button> -->
157
+ </div>
158
+ </div>
159
+ <!-- 督办 -->
160
+ <div class="exmAndapproInfo" v-if="false">
161
+ <div class="supervise">
162
+ <span>督办说明:</span>
163
+ <el-input
164
+ type="textarea"
165
+ :rows="4"
166
+ maxlength="300"
167
+ show-word-limit
168
+ v-model="supervise"
169
+ placeholder="请输入督办说明,最多可输入300字"
170
+ ></el-input>
171
+ </div>
172
+ <div class="supervise-btn">
173
+ <el-button type="primary" @click="toUrge">督办</el-button>
174
+ </div>
175
+ </div>
176
+ <!-- 撤销 -->
177
+ <div class="supervise-btn" v-if="!$route.query.approve && false">
178
+ <el-button @click="revoke">撤销</el-button>
179
+ </div>
180
+ <MemberSelection
181
+ ref="selection"
182
+ v-if="showSection"
183
+ title="选择转交人"
184
+ isRadio
185
+ :directClose="false"
186
+ @close="showSection = false; deliverForm.deliverRemark = ''"
187
+ :formData="selectData"
188
+ @save="checkMenber"
189
+ >
190
+ <div class="remark">
191
+ <el-form :model="deliverForm" ref="deliver" inline>
192
+ <el-form-item
193
+ label="转交理由:"
194
+ prop="deliverRemark"
195
+ :rules="[{ required: true, message: '请输入转交理由', trigger: 'change' }]"
196
+ >
197
+ <el-input
198
+ style="width:440px"
199
+ type="textarea"
200
+ :autosize="{ minRows: 2, maxRows: 4}"
201
+ v-model="deliverForm.deliverRemark"
202
+ placeholder="请输入转交理由"
203
+ ></el-input>
204
+ </el-form-item>
205
+ </el-form>
206
+ </div>
207
+ </MemberSelection>
208
+ </div>
209
+ </template>
210
+
211
+ <script>
212
+ import apiApprove from "@/api/ApiExAndapp";
213
+ import { approvalAudit } from "@/api/apiAudit/apiAudit";
214
+ import apiBudget from "@/api/apiBudget/apiBudget.js"; // 预算
215
+ import { leaseRentInfoApprove } from "@/api/apiMachine/apiLease"; // 机械
216
+ import apiEquipmentRental from "@/api/apiEquipmentRental"; // 设备
217
+ import apiEmployeeRegularization from "@/api/apiEmployeeRegularization"; // 员工
218
+ import { sealApprove } from "@/api/apiSealRecord"; // 印章
219
+ import { carApplyApprove } from "@/api/apiCarRecord"; // 车辆
220
+ import apiCheckingIn from "@/api/apiCheckingIn";
221
+ import {
222
+ queryProcessList,
223
+ approverMakerAsPass,
224
+ approverMakerAsRefuse,
225
+ queryOptLog,
226
+ deliverProcess
227
+ } from "@/api/apiProcess";
228
+ import cookie from "@/storage/cookies";
229
+ import MemberSelection from "./public/MemberSelection";
230
+ import api from "@/api/apiProjectProcurement/apiProjectProcurement";
231
+ export default {
232
+ name: "AuditDetail",
233
+ components: {
234
+ MemberSelection
235
+ },
236
+ data() {
237
+ return {
238
+ total: null,
239
+ activeName: "first",
240
+ form: {
241
+ no: "",
242
+ result: 1,
243
+ reason: ""
244
+ },
245
+ rules: {
246
+ resource: [
247
+ { required: true, message: "请选择审批操作", trigger: "change" }
248
+ ]
249
+ },
250
+ dataInfo: { no: "" },
251
+ dataContent: {},
252
+ flowData: [],
253
+ logData: [],
254
+ log: {
255
+ id: this.$route.params.id,
256
+ limit: 20,
257
+ page: 1
258
+ },
259
+ logoData: [],
260
+ auditType: 0,
261
+ processList: [],
262
+ supervise: "",
263
+ showSection: false,
264
+ selectData: {
265
+ roleList: [],
266
+ userList: []
267
+ },
268
+ optType: "1",
269
+ id: "",
270
+ applyId: "",
271
+ optData: [],
272
+ complete: true,
273
+ deliverForm: {
274
+ deliverRemark: ""
275
+ },
276
+ deliver: {}
277
+ };
278
+ },
279
+ props: {
280
+ auditData: {
281
+ type: Object
282
+ }
283
+ },
284
+ computed: {
285
+ user() {
286
+ return this.$store.state.user;
287
+ }
288
+ },
289
+ filters: {
290
+ leaseDataFn(val) {
291
+ console.log(val);
292
+ return val;
293
+ },
294
+ telEllipsis(val) {
295
+ return val;
296
+ },
297
+ formatReason(val) {
298
+ if (!val) return "";
299
+ const isHas = val.indexOf("|");
300
+ if (isHas > -1) {
301
+ const str = val.substring(isHas + 1)
302
+ ? " 转交原因:" + val.substring(isHas + 1)
303
+ : "";
304
+ return "转交给" + val.substring(0, isHas) + str;
305
+ } else {
306
+ return val;
307
+ }
308
+ }
309
+ },
310
+ watch: {
311
+ auditData(val) {
312
+ this.initData(val);
313
+ }
314
+ },
315
+ mounted() {
316
+ this.id = this.$route.query.auditId
317
+ ? this.$route.query.auditId
318
+ : this.$route.query._id;
319
+ this.applyId = this.$route.query.applyId || "";
320
+ // this.initData(this.auditData)
321
+ this.getProcessList();
322
+ this.getApprovalOpt();
323
+ },
324
+ methods: {
325
+ initData(val) {
326
+ if (val.auditRecord) {
327
+ this.dataInfo = val.auditDetail;
328
+ this.flowData = val.auditRecord;
329
+
330
+ /* 流程目前进行到哪一步日志显示到那一条 */
331
+ let ind = 0;
332
+ val.auditRecord.forEach((v, i) => {
333
+ if (ind < 1 && !v.audit_time) {
334
+ ind = i;
335
+ }
336
+ });
337
+ if (ind) {
338
+ this.logData = val.auditRecord.slice(0, ind);
339
+ } else {
340
+ this.logData = val.auditRecord;
341
+ }
342
+ this.form.no = val.auditDetail.no;
343
+ this.form.billNo = val.auditDetail.bill_no;
344
+
345
+ this.auditType = val.auditDetail.type;
346
+ }
347
+ },
348
+ // 分页
349
+ operationPageChange(page) {
350
+ this.log.page = page;
351
+ this.handleClick();
352
+ },
353
+ async handleClick() {
354
+ if (this.activeName == "second") {
355
+ const res = await apiApprove.postExAndapplog(this.log);
356
+ if (res.data.code == 200) {
357
+ this.logoData = res.data.data.records;
358
+ this.total = Number(res.data.data.total);
359
+ }
360
+ console.log(res);
361
+ }
362
+ },
363
+ save() {
364
+ this.$refs["form"].validate(async valid => {
365
+ if (valid) {
366
+ if (this.auditType === 2) {
367
+ var { data } = await apiEmployeeRegularization.employeeApprove(
368
+ this.form
369
+ );
370
+ } else if (this.auditType === 5) {
371
+ var { data } = await apiBudget.budgetApprove(this.form);
372
+ } else if (this.auditType === 6) {
373
+ var { data } = await leaseRentInfoApprove(this.form);
374
+ } else if (this.auditType === 7) {
375
+ var { data } = await apiEquipmentRental.rentInfoApprove(this.form);
376
+ } else if (this.auditType === "subcontract") {
377
+ alert(1);
378
+ } else {
379
+ // var {data} = await approvalAudit(this.form)
380
+ var token = cookie.cookieRead("token");
381
+ const params = {
382
+ resourceToken: token,
383
+ userNo: this.$store.state.user.no,
384
+ reason: this.form.reason,
385
+ result: this.form.result,
386
+ applyNo: this.form.billNo
387
+ };
388
+ var { data } = await apiCheckingIn.approvalAudit(params);
389
+ }
390
+ if (data.code === 200 || data.code === 0) {
391
+ const msg = data.msg || "操作成功";
392
+ this.$message({
393
+ showClose: true,
394
+ message: msg,
395
+ type: "success"
396
+ });
397
+ this.$removeTag("/");
398
+ } else if (data.state == "ok") {
399
+ const msg = data.data || "操作成功";
400
+ this.$message({
401
+ showClose: true,
402
+ message: msg,
403
+ type: "success"
404
+ });
405
+ this.$removeTag("/");
406
+ } else {
407
+ const msg = data.msg || "操作失败";
408
+ this.$message.error(data.msg);
409
+ }
410
+ }
411
+ });
412
+ },
413
+ changeHarld() {
414
+ this.$refs.form.clearValidate();
415
+ },
416
+ time(val) {
417
+ if (!val) {
418
+ return "";
419
+ }
420
+ var date = new Date(val);
421
+ var year = date.getFullYear();
422
+ var month = date.getMonth() + 1; // js从0开始取
423
+ var date1 = date.getDate();
424
+ var hour = date.getHours();
425
+ var minutes = date.getMinutes();
426
+ var second = date.getSeconds();
427
+
428
+ if ((month + "").length === 1) {
429
+ month = "0" + month;
430
+ }
431
+ if ((date1 + "").length === 1) {
432
+ date1 = "0" + date1;
433
+ }
434
+ if ((hour + "").length === 1) {
435
+ hour = "0" + hour;
436
+ }
437
+ if ((minutes + "").length === 1) {
438
+ minutes = "0" + minutes;
439
+ }
440
+ if ((second + "").length === 1) {
441
+ second = "0" + second;
442
+ }
443
+ return year + "-" + month + "-" + date1 + " " + hour + ":" + minutes;
444
+ // return year + '年' + month + '月' + date1 + '日' + hour + '时' + minutes + '分' + second + '秒'
445
+ },
446
+ async getProcessList() {
447
+ const res = await queryProcessList({ id: this.id });
448
+ let flg = true;
449
+ res.data.data.processList.forEach(item => {
450
+ item.isComplete = flg;
451
+ if (item.nodeId == res.data.data.nextNode) {
452
+ flg = false;
453
+ }
454
+ });
455
+ this.processList = res.data.data.processList;
456
+ this.deliver = res.data.data.deliver ? res.data.data.deliver : {};
457
+ },
458
+ // 审批转交
459
+ checkMenber(data) {
460
+ if (data.userList.length < 1) {
461
+ this.$message.error("请选择角色或成员");
462
+ return;
463
+ }
464
+ this.selectData.userList = data.userList;
465
+ if (this.optType == 1) {
466
+ this.$refs.deliver.validate(async valid => {
467
+ if (valid) {
468
+ const parse = {
469
+ deliverTo: this.selectData.userList[0].memberNo,
470
+ companyNo: this.user.cno,
471
+ source: this.user.no,
472
+ deliverName: this.selectData.userList[0].name,
473
+ id: this.id,
474
+ reason: this.deliverForm.deliverRemark
475
+ };
476
+ const res = await deliverProcess(parse);
477
+ if (res.data.state == "ok") {
478
+ this.$refs.selection.handleClose();
479
+ this.showSection = false;
480
+ this.$message.success(res.data.msg ? res.data.msg : "操作成功");
481
+ this.$router.go(-1);
482
+ } else {
483
+ this.$message.error(
484
+ res.data.msg ? res.data.msg : "转交失败,请重试"
485
+ );
486
+ }
487
+ }
488
+ });
489
+ } else {
490
+ }
491
+ },
492
+ // 督办
493
+ toUrge() {},
494
+ // 撤销
495
+ revoke() {
496
+ this.$confirm(`撤销审批需审批人统计,确定要撤销吗?`, "撤销审批", {
497
+ confirmButtonText: "确定",
498
+ cancelButtonText: "取消",
499
+ type: "warning"
500
+ })
501
+ .then(function() {
502
+ // 撤销接口
503
+ })
504
+ .catch(() => {});
505
+ },
506
+ // 批阅
507
+ async marking() {
508
+ this.$refs["form"].validate(async valid => {
509
+ if (valid) {
510
+ let res;
511
+ if (this.form.result == 1) {
512
+ res = await approverMakerAsPass({
513
+ id: this.id,
514
+ reason: this.form.reason,
515
+ userId: this.$store.state.user.no,
516
+ companyId: this.$store.state.user.cno
517
+ });
518
+ } else if (this.form.result == 2) {
519
+ res = await approverMakerAsRefuse({
520
+ id: this.id,
521
+ reason: this.form.reason,
522
+ userId: this.$store.state.user.no,
523
+ companyId: this.$store.state.user.cno
524
+ });
525
+ }
526
+ console.log(res);
527
+ if (res.data.state == "ok") {
528
+ let reslove;
529
+ if (this.$route.query.approve == "projectFeePlan") {
530
+ reslove = await api.proupdateApproveStateById(this.id);
531
+ } else if (this.$route.query.approve == "projectFeeApplication") {
532
+ reslove = await api.prosqupdateApproveStateById(this.id);
533
+ } else if (this.$route.query.approve == "projectFeeCredit") {
534
+ reslove = await api.progzupdateApproveStateById(this.id);
535
+ } else if (this.$route.query.approve == "projectFeePay") {
536
+ reslove = await api.prozfupdateApproveStateById(this.id);
537
+ }
538
+ console.log(reslove)
539
+ if (reslove.data.code == 200) {
540
+ this.$message.success(res.data.msg);
541
+ this.$removeTag("/");
542
+ this.complete = false;
543
+ } else {
544
+ this.$message.error(res.data.msg);
545
+ }
546
+ } else {
547
+ this.$message.error(res.data.msg);
548
+ }
549
+ }
550
+ });
551
+ },
552
+ // 获取审批日志
553
+ async getApprovalOpt() {
554
+ const res = await queryOptLog({ id: this.id });
555
+ if (res.data.state == "ok") {
556
+ this.optData = res.data.data;
557
+ }
558
+ },
559
+ // 获取节点用户名称
560
+ getUserName(obj) {
561
+ const approvers = obj.approvers;
562
+ const deliver = this.deliver[obj.nodeId];
563
+ const user = approvers.map(item => item.userName).join(",");
564
+ const str =
565
+ deliver && deliver[0]
566
+ ? `${user}(已转交给${deliver[0].deliverName})`
567
+ : user;
568
+ return str;
569
+ }
570
+ }
571
+ };
572
+ </script>
573
+ <style lang="scss">
574
+ .exam-add-edit .el-tabs__header {
575
+ margin: 0;
576
+ }
577
+ </style>
578
+ <style scoped lang="scss" rel="stylesheet/scss">
579
+ .box {
580
+ margin: 20px 0 0 20px;
581
+ .dw {
582
+ ul {
583
+ padding: 0 60px;
584
+ display: flex;
585
+ li {
586
+ flex: 1;
587
+ display: flex;
588
+ height: 100px;
589
+ min-width: 160px;
590
+ &:first-child {
591
+ flex: none;
592
+ width: 10px;
593
+ min-width: 10px;
594
+ }
595
+ .node {
596
+ width: 10px;
597
+ height: 10px;
598
+ border-radius: 50%;
599
+ position: relative;
600
+ background-color: #0286df;
601
+ .node-info {
602
+ position: absolute;
603
+ top: 14px;
604
+ left: -70px;
605
+ width: 150px;
606
+ p {
607
+ margin: 4px 0;
608
+ text-align: center;
609
+ color: #666;
610
+ white-space: nowrap;
611
+ text-overflow: ellipsis;
612
+ &:nth-of-type(1) {
613
+ color: #333;
614
+ }
615
+ }
616
+ }
617
+ }
618
+ .line {
619
+ flex: 1;
620
+ height: 4px;
621
+ margin: 3px 0;
622
+ background-color: #0286df;
623
+ }
624
+ }
625
+ .no-approva {
626
+ .node {
627
+ background-color: #ccc;
628
+ }
629
+ .line {
630
+ background-color: #ccc;
631
+ }
632
+ }
633
+ }
634
+ }
635
+ }
636
+ .save {
637
+ text-align: center;
638
+ }
639
+ .exam-detail {
640
+ display: flex;
641
+ // border: 1px solid #e4e7ed;
642
+ border-top: 0;
643
+
644
+ .exmAndapproInfo {
645
+ .audit-log {
646
+ padding: 15px 20px 0 0;
647
+ }
648
+ .title {
649
+ margin: 0;
650
+ /*padding: 20px 0 20px 20px;*/
651
+ /*border-bottom: 1px solid #E4E7ED;*/
652
+ font-size: 16px;
653
+ color: #333333;
654
+ color: #0286df;
655
+ font-size: 18px;
656
+ border-bottom: 1px dashed #e4e7ed;
657
+ padding: 0 0 12px 10px;
658
+ position: relative;
659
+ &::before {
660
+ position: absolute;
661
+ left: 0;
662
+ top: 2px;
663
+ content: "";
664
+ width: 3px;
665
+ height: 20px;
666
+ background-color: #409ee9;
667
+ }
668
+ }
669
+ .inquiry {
670
+ margin: 10px 0 10px 10px;
671
+ span {
672
+ font-size: 14px;
673
+ color: #666666;
674
+ }
675
+ div {
676
+ margin-top: 8px;
677
+ }
678
+ }
679
+ margin: 0;
680
+ font-size: 14px;
681
+ color: #666666;
682
+ padding: 20px 0 0 0;
683
+ span {
684
+ color: #333333;
685
+ }
686
+ .linbP {
687
+ font-size: 14px;
688
+ color: #666666;
689
+ span {
690
+ margin-left: 10px;
691
+ color: #333333;
692
+ }
693
+ }
694
+ .unpass {
695
+ color: #ff6600;
696
+ }
697
+ .pass {
698
+ color: #78c06e;
699
+ }
700
+ }
701
+ .detail-left {
702
+ flex: 1;
703
+ .exmAndapproInfo {
704
+ &:last-child {
705
+ border-bottom: 0;
706
+ }
707
+ }
708
+ }
709
+ }
710
+ .supervise {
711
+ display: flex;
712
+ width: 50%;
713
+ margin-top: 26px;
714
+ & > span {
715
+ font-size: 14px;
716
+ color: #666;
717
+ display: block;
718
+ width: 80px;
719
+ margin-right: 10px;
720
+ }
721
+ /deep/ .el-input__count {
722
+ bottom: 5px !important;
723
+ }
724
+ }
725
+ .supervise-btn {
726
+ text-align: center;
727
+ margin-top: 20px;
728
+ }
729
+ .headTitle {
730
+ color: #000000;
731
+ padding-bottom: 20px;
732
+ /*padding: 20px 20px 0 20px;*/
733
+ div {
734
+ /*border-bottom: 1px solid #0286df;*/
735
+ /*padding-bottom: 30px;*/
736
+ span {
737
+ font-size: 16px;
738
+ }
739
+ }
740
+ }
741
+ .pad_10 {
742
+ padding: 0 10px;
743
+ }
744
+ .remark {
745
+ display: flex;
746
+ margin-top: 20px;
747
+ & > span {
748
+ padding-top: 6px;
749
+ width: 80px;
750
+ }
751
+ }
752
+ </style>