From ee42bf1badae06026efa79dc17d2a541297ab49b Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期三, 03 九月 2025 17:43:31 +0800 Subject: [PATCH] 采购管理整体样式优化,搜索条件修改 --- src/pages/cooperativeOffice/collaborativeApproval/index.vue | 52 +++++++++++++++++++++++++--------------------------- 1 files changed, 25 insertions(+), 27 deletions(-) diff --git a/src/pages/cooperativeOffice/collaborativeApproval/index.vue b/src/pages/cooperativeOffice/collaborativeApproval/index.vue index 180b802..a3e3293 100644 --- a/src/pages/cooperativeOffice/collaborativeApproval/index.vue +++ b/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 鏍峰紡鏉ヨ嚜缁勪欢锛岃繖閲屼繚鐣欓挬瀛愪互渚垮悗缁渶瑕佹墿灞� */ } + /* 宸茬Щ闄ant缁勪欢鐨勬牱寮忓紩鐢� */ </style> \ No newline at end of file -- Gitblit v1.9.3