gaoluyang
3 天以前 ee42bf1badae06026efa79dc17d2a541297ab49b
src/pages/cooperativeOffice/collaborativeApproval/index.vue
@@ -31,27 +31,8 @@
                     </view>
                     <text class="item-id">{{ item.approveId }}</text>
                  </view>
                  <!-- 审批状态标签 -->
                  <u-tag :type="getTagClass(item.approveStatus)" size="medium">{{ formatReceiptType(item.approveStatus) }}</u-tag>
                  <!-- 操作按钮 -->
                  <view class="action-buttons">
                     <u-button
                        type="primary"
                        size="small"
                        class="action-btn"
                        @click="openDetail(item)"
                     >
                        查看详情
                     </u-button>
                     <u-button
                        type="success"
                        size="small"
                        class="action-btn"
                        @click="approve(item)"
                     >
                        审批
                     </u-button>
                  <view class="item-tag">
                     <u-tag :type="getTagClass(item.approveStatus)">{{ formatReceiptType(item.approveStatus) }}</u-tag>
                  </view>
               </view>
               <up-divider></up-divider>
@@ -89,7 +70,7 @@
                     </view>
                     <view class="detail-row">
                        <view class="actions">
                           <van-button
                           <u-button
                              type="primary"
                              size="small"
                              class="action-btn edit"
@@ -97,8 +78,8 @@
                              @click="handleItemClick(item)"
                           >
                              编辑
                           </van-button>
                           <van-button
                           </u-button>
                           <u-button
                              type="success"
                              size="small"
                              class="action-btn approve"
@@ -106,7 +87,7 @@
                              @click="approve(item)"
                           >
                              审核
                           </van-button>
                           </u-button>
                        </view>
                     </view>
                  </view>
@@ -117,6 +98,7 @@
      <view v-else class="no-data">
         <text>暂无审批数据</text>
      </view>
<!--      <van-floating-bubble icon="plus" @click="handleAdd"/>-->
      <!-- 浮动操作按钮 -->
      <view class="fab-button" @click="handleAdd">
         <up-icon name="plus" size="24" color="#ffffff"></up-icon>
@@ -151,6 +133,7 @@
   };
   // 查询列表
   const getList = () => {
      showLoadingToast('加载中...')
      const page = {
         current: -1,
         size: -1,
@@ -160,11 +143,25 @@
         })
         .then((res) => {
            ledgerList.value = res.data.records;
            closeToast()
         })
         .catch(() => {
            // tableLoading.value = false;
            closeToast()
         });
   };
   // 显示加载提示
   const showLoadingToast = (message) => {
      uni.showLoading({
         title: message,
         mask: true
      });
   };
   // 关闭提示
   const closeToast = () => {
      uni.hideLoading();
   };
   // 显示筛选选项
   const showFilterOptions = () => {
      uni.showActionSheet({
@@ -199,7 +196,7 @@
      } else if (type == 4) {
         return "primary";
      } else {
         return "danger";
         return "error";
      }
   };
@@ -479,4 +476,5 @@
   .action-btn.approve {
      /* success 样式来自组件,这里保留钩子以便后续需要扩展 */
   }
   /* 已移除vant组件的样式引用 */
</style>