From f9608b880eb17ed232b1dc9c216ae57a7fb5b4a9 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 21 九月 2026 18:06:58 +0800
Subject: [PATCH] 新疆-融邦环保 1.「油品出库就生成出库台账,不用区分出库类别了」+「代储出库也需要出库扣库存,选批号,生成发货台账」 2.车辆管理与出库残油联动

---
 src/views/officeProcessAutomation/ApproveManage/approve-template/useSelectOptionSources.js |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/officeProcessAutomation/ApproveManage/approve-template/useSelectOptionSources.js b/src/views/officeProcessAutomation/ApproveManage/approve-template/useSelectOptionSources.js
index 8397288..5d246e1 100644
--- a/src/views/officeProcessAutomation/ApproveManage/approve-template/useSelectOptionSources.js
+++ b/src/views/officeProcessAutomation/ApproveManage/approve-template/useSelectOptionSources.js
@@ -14,25 +14,26 @@
     deptOptions: [],
   });
 
-  async function ensureForFields(fields) {
-    const sources = collectOptionSourcesFromFields(fields);
+  async function ensureForFields(fields, context = {}) {
+    const sources = collectOptionSourcesFromFields(fields, context);
     if (!sources.length) return;
     loading.value = true;
     try {
       const next = await fetchSelectOptionCaches(sources);
       caches.users = next.users;
       caches.deptOptions = next.deptOptions;
+      caches.employees = next.employees || [];
     } finally {
       loading.value = false;
     }
   }
 
-  function getOptions(field) {
-    return resolveFieldSelectOptions(field, caches);
+  function getOptions(field, context = {}) {
+    return resolveFieldSelectOptions(field, caches, context);
   }
 
-  function getDisplayLabel(field, val) {
-    return resolveSelectDisplayLabel(field, val, caches);
+  function getDisplayLabel(field, val, context = {}) {
+    return resolveSelectDisplayLabel(field, val, caches, context);
   }
 
   return {

--
Gitblit v1.9.3