From 57e98ac3f59e9ca12d3fdbc6f89c9c0b1f86be4d Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期四, 05 二月 2026 00:49:10 +0800
Subject: [PATCH] feat:增加发票申请

---
 ruoyi-ui/src/views/task/general/index.vue |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/ruoyi-ui/src/views/task/general/index.vue b/ruoyi-ui/src/views/task/general/index.vue
index 382cc4a..3c41b95 100644
--- a/ruoyi-ui/src/views/task/general/index.vue
+++ b/ruoyi-ui/src/views/task/general/index.vue
@@ -29,6 +29,22 @@
           />
         </el-select>
       </el-form-item>
+      <el-form-item label="鍒嗗叕鍙�" prop="deptId">
+        <el-select
+          v-model="queryParams.deptId"
+          placeholder="璇烽�夋嫨鍒嗗叕鍙�"
+          clearable
+          filterable
+          style="width: 200px"
+        >
+          <el-option
+            v-for="dept in branchList"
+            :key="dept.deptId"
+            :label="dept.deptName"
+            :value="dept.deptId"
+          />
+        </el-select>
+      </el-form-item>
       <el-form-item label="杞︾墝鍙�" prop="vehicleNo">
         <el-input
           v-model="queryParams.vehicleNo"
@@ -386,6 +402,7 @@
 <script>
 import { listTask, getTask, delTask, addTask, updateTask, assignTask, changeTaskStatus } from "@/api/task";
 import { listUser } from "@/api/system/user";
+import { listBranchByOa } from "@/api/system/dept";
 
 export default {
   name: "Task",
@@ -425,6 +442,7 @@
         taskCode: null,
         taskType: null,
         taskStatus: null,
+        deptId: null,
         vehicleNo: null,
         plannedStartTimeBegin: null,
         plannedStartTimeEnd: null,
@@ -437,6 +455,8 @@
       statusForm: {},
       // 鐢ㄦ埛鍒楄〃
       userList: [],
+      // 鍒嗗叕鍙稿垪琛�
+      branchList: [],
       // 琛ㄥ崟鏍¢獙
       rules: {
         taskType: [
@@ -469,6 +489,7 @@
   created() {
     this.getList();
     this.getUserList();
+    this.getBranchList();
   },
   methods: {
     /** 鏌ヨ浠诲姟绠$悊鍒楄〃 */
@@ -492,6 +513,14 @@
         this.userList = response.rows;
       });
     },
+    /** 鏌ヨ鍒嗗叕鍙稿垪琛� */
+    getBranchList() {
+      listBranchByOa().then(response => {
+        this.branchList = response.data || [];
+      }).catch(() => {
+        this.branchList = [];
+      });
+    },
     // 鍙栨秷鎸夐挳
     cancel() {
       this.open = false;

--
Gitblit v1.9.1