浏览代码

修改综合事务部借款审批流程

lamphua 1 个月前
父节点
当前提交
e87334aaaf

+ 40
- 20
oa-ui/src/views/flowable/form/finance/borrowForm.vue 查看文件

@@ -82,8 +82,8 @@
82 82
               <td>
83 83
                 <el-select v-model="detail.borrowItem" placeholder="请选择开支项" clearable @change="handleExpenseChange"
84 84
                   style="width: 100%;" :disabled="taskName != '借款申请'" v-if="form.borrowUsage == 0">
85
-                  <el-option v-for="dict in dict.type.cmc_borrow_expense" clearable :key="dict.value"
86
-                    :label="dict.label" :value="dict.value" />
85
+                  <el-option v-for="dict in dict.type.cmc_borrow_expense" clearable :key="dict.value" :label="dict.label"
86
+                    :value="dict.value" />
87 87
                   <!-- <el-option label="+新增更多开支项..." value="new_expense" /> -->
88 88
                 </el-select>
89 89
                 <el-autocomplete v-model="detail.borrowItem" :fetch-suggestions="querySearchAsync" placeholder="请输入内容"
@@ -181,8 +181,8 @@
181 181
           <!-- 非党工团审核 -->
182 182
           <div v-if="form.borrowUsage == 0 || form.borrowUsage == 1">
183 183
             <el-form-item label="部门负责人意见" prop="deptComment" label-width="150px">
184
-              <el-input type="textarea" v-model="form.deptComment" placeholder="请输入部门负责人意见"
185
-                :disabled="taskName != '部门审核'" :autosize="{ minRows: 4 }" />
184
+              <el-input type="textarea" v-model="form.deptComment" placeholder="请输入部门负责人意见" :disabled="taskName != '部门审核'"
185
+                :autosize="{ minRows: 4 }" />
186 186
             </el-form-item>
187 187
             <el-row>
188 188
               <el-col :span="6" :xs="24" :offset="12">
@@ -213,8 +213,8 @@
213 213
               </el-col>
214 214
             </el-row>
215 215
             <el-form-item label="总经理审批意见" prop="zjlComment" label-width="150px">
216
-              <el-input type="textarea" v-model="form.zjlComment" placeholder="请输入总经理审批意见"
217
-                :disabled="taskName != '总经理审核'" :autosize="{ minRows: 4 }" />
216
+              <el-input type="textarea" v-model="form.zjlComment" placeholder="请输入总经理审批意见" :disabled="taskName != '总经理审核'"
217
+                :autosize="{ minRows: 4 }" />
218 218
             </el-form-item>
219 219
             <el-row>
220 220
               <el-col :span="6" :xs="24" :offset="12">
@@ -229,8 +229,8 @@
229 229
               </el-col>
230 230
             </el-row>
231 231
             <el-form-item label="董事长批准意见" prop="dszComment" label-width="150px" v-if="exceed && !form.cwUser">
232
-              <el-input type="textarea" v-model="form.dszComment" placeholder="请输入董事长批准意见"
233
-                :disabled="taskName != '董事长批准'" :autosize="{ minRows: 4 }" />
232
+              <el-input type="textarea" v-model="form.dszComment" placeholder="请输入董事长批准意见" :disabled="taskName != '董事长批准'"
233
+                :autosize="{ minRows: 4 }" />
234 234
             </el-form-item>
235 235
             <el-row v-if="exceed && !form.cwUser">
236 236
               <el-col :span="6" :xs="24" :offset="12">
@@ -455,6 +455,7 @@ export default {
455 455
       flowData: {},
456 456
       isProject: true,
457 457
       exceed: false, //是否超预算
458
+      need: true, //是否需要分管审批
458 459
       deptId: undefined,
459 460
       dgtLabel: '工会审核意见',
460 461
       siteExpenses: 0,
@@ -600,7 +601,8 @@ export default {
600 601
         else {
601 602
           this.formTotal = 1;
602 603
           this.form = res.data;
603
-
604
+          if (this.form.applyDept == 104) //董事长分管的综合事务部,跳过分管审批
605
+            this.need = false;
604 606
           this.hanldeChangeType();
605 607
           this.handleSelectProject(res.data.projectId)
606 608
           this.getBudgetSettle()
@@ -730,9 +732,9 @@ export default {
730 732
         await this.VerificationAmount();
731 733
       }
732 734
       let msg;
733
-      if(this.taskName == '财务处理'){
735
+      if (this.taskName == '财务处理') {
734 736
         msg = '最后一个节点,提交将结束流程,是否提交?'
735
-      }else{
737
+      } else {
736 738
         msg = '是否提交到下一个流程?'
737 739
       }
738 740
       this.$confirm(msg, '提示', {
@@ -784,16 +786,34 @@ export default {
784 786
                 if (this.taskName == '借款申请') {
785 787
                   this.borrowAprrovalFun();
786 788
                 } else if (this.taskName == '部门审核') {
787
-                  getUsersManageLeaderByDept({ deptId: this.form.applyDept }).then(res => {
788
-                    let userIds = [];
789
-                    if (res.data) {
790
-                      res.data.forEach(item => {
791
-                        userIds.push(item.userId)
789
+                  this.$set(this.taskForm.variables, "need", this.need);
790
+                  if (this.need) {
791
+                    getUsersManageLeaderByDept({ deptId: this.form.applyDept }).then(res => {
792
+                      let userIds = [];
793
+                      if (res.data) {
794
+                        res.data.forEach(item => {
795
+                          userIds.push(item.userId)
796
+                        })
797
+                      }
798
+                      this.$set(this.taskForm.variables, "approvalList", userIds);
799
+                      this.handleComplete(this.taskForm);
800
+                    })
801
+                  }
802
+                  else {
803
+                    getUsersManageLeaderByDept({ deptId: this.form.applyDept }).then(res => {
804
+                      let userIds = [];
805
+                      if (res.data) {
806
+                        res.data.forEach(item => {
807
+                          userIds.push(item.userId)
808
+                        })
809
+                      }
810
+                      this.$set(this.taskForm.variables, "approvalList", userIds);
811
+                      getUserByPost({ postName: '总经理' }).then(res => {
812
+                        this.$set(this.taskForm.variables, "approval", res.data[0].userId);
813
+                        this.handleComplete(this.taskForm);
792 814
                       })
793
-                    }
794
-                    this.$set(this.taskForm.variables, "approvalList", userIds);
795
-                    this.handleComplete(this.taskForm);
796
-                  })
815
+                    })
816
+                  }
797 817
                 }
798 818
                 else if (this.taskName == '分管审核') {
799 819
                   getUserByPost({ postName: '总经理' }).then(res => {

+ 6
- 3
oa-ui/src/views/flowable/task/myProcess/progressTree.vue 查看文件

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-04-18 15:14:45
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-06-16 09:59:01
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2025-11-12 10:24:23
6 6
 -->
7 7
 <template>
8 8
   <div>
@@ -132,7 +132,10 @@ export default {
132 132
             }
133 133
           }
134 134
         } else if (i.category == "finance") {
135
-          this.treeData[2].children.push(i);
135
+          if (i.name != "借款审批")
136
+            this.treeData[2].children.push(i);
137
+          if (i.name == "借款审批" && i.version == 2)
138
+            this.treeData[2].children.push(i);
136 139
         } else if (i.category == "oa") {
137 140
           this.treeData[3].children.push(i);
138 141
         } else if (i.category == "assess") {

正在加载...
取消
保存