ExtendSet.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <script setup name="ExtendSet">
  2. import useFlowStore from '@/store/modules/flow'
  3. const flowInfo = useFlowStore()
  4. const validate = () => {
  5. // 根据后续的业务需求 调整 validate 的功能
  6. return new Promise((resolve, reject) => {
  7. resolve()
  8. })
  9. }
  10. defineExpose({
  11. validate
  12. })
  13. </script>
  14. <template>
  15. <div class="other-settings-wrapper">
  16. <div class="other-settings-panel">
  17. <div class="other-settings-setting-item">
  18. <div class="_1zQ9x381ImhBju8yBmxOez">提交人权限</div>
  19. <div class="_2j8sMpwI4XNYcuEeV6f56-">
  20. <div class="other-setting-checkbox-item">
  21. <el-checkbox v-model="flowInfo.processSetting.allowRevocation" label="允许撤销审批中的申请" />
  22. <p class="revoke-setting-sub-text mtb10">第一个审批节点通过后,提交人仍可撤销申请(配置前已发起的申请不生效)</p>
  23. </div>
  24. <template v-if="false">
  25. <div class="other-setting-checkbox-item">
  26. <el-checkbox label="允许撤销31天内通过的审批" />
  27. <p class="revoke-setting-sub-text mtb10">员工可申请撤销已通过的审批(配置前已通过的审批不可撤销)</p>
  28. </div>
  29. <div class="other-setting-checkbox-item">
  30. <el-checkbox label="允许修改31天内通过的审批" />
  31. <p class="revoke-setting-sub-text mtb10">提交人可申请修改已通过的审批,用于销假等场景(仅可修改一次,配置前已发起的审批不可修改)</p>
  32. </div>
  33. <div class="other-setting-checkbox-item">
  34. <el-checkbox label="允许代他人提交" />
  35. <p class="revoke-setting-sub-text mtb10">代提人和实际提交人都需在该审批的发起范围内,提交后将共享审批单后续状态</p>
  36. </div>
  37. </template>
  38. </div>
  39. </div>
  40. <div v-if="false" class="other-settings-setting-item">
  41. <div class="_1zQ9x381ImhBju8yBmxOez">审批人设置</div>
  42. <div class="_2j8sMpwI4XNYcuEeV6f56-">
  43. <div class="other-setting-checkbox-item">
  44. <el-checkbox label="允许审批人批量处理" />
  45. <p class="revoke-setting-sub-text mtb10">勾选后,审批人在处理此流程的任务时,可一次批量处理多个任务</p>
  46. </div>
  47. <div class="other-setting-checkbox-item">
  48. <el-checkbox label="开启秒批提示" />
  49. <p class="revoke-setting-sub-text mtb10">若审批人浏览单据小于3秒或通过快捷审批处理,系统会在审批记录中进行标记</p>
  50. </div>
  51. <div class="other-setting-checkbox-item">
  52. <el-checkbox label="可在审批卡片上进行快捷审批" />
  53. <p class="revoke-setting-sub-text mtb10">可在审批bot的消息卡片、移动端列表卡片上进行快捷操作,无需进入具体详情页操作</p>
  54. </div>
  55. </div>
  56. </div>
  57. <div v-if="false" class="other-settings-setting-item">
  58. <div class="_1zQ9x381ImhBju8yBmxOez">转发设置</div>
  59. <div class="_2j8sMpwI4XNYcuEeV6f56-">
  60. <div class="other-setting-checkbox-item">
  61. <el-checkbox label="仅可转发给审批相关人员" />
  62. <p class="revoke-setting-sub-text mtb10">审批单仅可被转发给申请人、审批人、抄送人,不能被转发给其他人</p>
  63. </div>
  64. </div>
  65. </div>
  66. <div v-if="false" class="other-settings-setting-item">
  67. <div class="_1zQ9x381ImhBju8yBmxOez">效率统计</div>
  68. <div class="_2j8sMpwI4XNYcuEeV6f56-">
  69. <div class="other-setting-checkbox-item">
  70. <el-checkbox label="该流程数据不纳入效率统计" />
  71. <p class="revoke-setting-sub-text mtb10">在效率诊断(包括团队、个人、管理员看板)中排除该流程的审批耗时数据</p>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </template>
  78. <style scoped lang="scss">
  79. .other-settings-wrapper {
  80. margin: 0 auto;
  81. padding: 12px;
  82. text-align: center;
  83. overflow-y: auto;
  84. height: 100%;
  85. background-color: var(--el-color-info-light-9);
  86. }
  87. .other-settings-panel {
  88. //width: 1128px;
  89. //max-width: 1128px;
  90. background-color: var(--el-bg-color);
  91. padding: 24px;
  92. text-align: left;
  93. }
  94. .other-settings-setting-item ._2j8sMpwI4XNYcuEeV6f56- {
  95. width: calc(100% - 110px);
  96. flex-shrink: 0;
  97. flex-grow: 0;
  98. margin-left: 16px;
  99. }
  100. .other-settings-setting-item {
  101. display: flex;
  102. //width: 823px;
  103. ._1zQ9x381ImhBju8yBmxOez {
  104. width: 94px;
  105. //color: rgb(31, 35, 41);
  106. font-size: 14px;
  107. font-weight: 550;
  108. line-height: 22px;
  109. flex-shrink: 0;
  110. flex-grow: 0;
  111. }
  112. }
  113. .other-settings-wrapper,
  114. .other-settings-panel {
  115. display: flex;
  116. flex-direction: column;
  117. //align-items: center;
  118. }
  119. .revoke-setting-sub-text {
  120. //color: #646a73;
  121. font-size: 14px;
  122. margin-top: 4px;
  123. line-height: 22px;
  124. margin-left: 24px;
  125. &.mtb10 {
  126. margin-bottom: 10px;
  127. }
  128. }
  129. :deep(.other-setting-checkbox-item) {
  130. .el-checkbox {
  131. height: var(--el-checkbox-height, 20px);
  132. &.is-checked {
  133. .el-checkbox__label {
  134. color: var(--el-color-info-light);
  135. }
  136. }
  137. }
  138. }
  139. </style>