Browse Source

fix: 发起审批时说明当前用户还没有收款账户

两端选择器都只展示 options 接口返回的本人账户,空列表不再像是系统没有账户。

Co-authored-by: Cursor <cursoragent@cursor.com>
zlwu 1 tuần trước cách đây
mục cha
commit
0506fe7e8a

+ 1 - 1
mobile-oa-h5/src/oa/components/OaReceiveAccountSelect.vue

@@ -54,7 +54,7 @@
               </div>
             </div>
           </van-checkbox-group>
-          <van-empty v-if="!loading && !filtered.length" description="暂无收款账户" />
+          <van-empty v-if="!loading && !filtered.length" description="暂无本人的收款账户" />
         </div>
         <button type="button" class="oa-recv__add" @click="openCreate">
           <van-icon name="plus" />

+ 4 - 1
web-admin/src/components/oa-approval/OaReceiveAccountSelect.vue

@@ -52,7 +52,7 @@
               <span class="oa-receive-account-select__row-label">{{ a.label }}</span>
             </label>
             <div v-if="!filteredOptions.length" class="oa-receive-account-select__empty">
-              暂无收款账户
+              暂无本人的收款账户
             </div>
             <button
               type="button"
@@ -93,6 +93,9 @@
           :label="a.label"
           :value="a.id"
         />
+        <template #empty>
+          <div class="oa-receive-account-select__empty">暂无本人的收款账户</div>
+        </template>
         <template #footer>
           <div class="oa-receive-account-select__add-footer" @mousedown.prevent>
             <el-button class="oa-receive-account-select__add-btn" @click="openCreateDialog">