verce-vue-test 0.0.94 → 0.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verce-vue-test",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -444,6 +444,10 @@ async function handleReview(
444
444
  const response = await reviewForeignCurrencyFundAllocation(row.refNo, type, approveRjctReason)
445
445
  ElMessage.success(response.head.retMsg || `${actionText}成功`)
446
446
  await loadRows()
447
+ const refreshedRecord = records.value.find((item) => item.refNo === row.refNo)
448
+ if (detailRecord.value?.refNo === row.refNo && refreshedRecord) {
449
+ detailRecord.value = refreshedRecord
450
+ }
447
451
  } catch (error) {
448
452
  ElMessage.error(error instanceof Error ? error.message : `外币资金调拨${actionText}失败`)
449
453
  } finally {
@@ -971,6 +975,30 @@ onBeforeUnmount(() => {
971
975
  </el-descriptions>
972
976
  </section>
973
977
  </template>
978
+
979
+ <template v-if="detailRecord && isPendingStatus(detailRecord.status)" #footer>
980
+ <div class="drawer-review-actions">
981
+ <el-button
982
+ type="primary"
983
+ :icon="CircleCheck"
984
+ :loading="isActionLoading(detailRecord, 'approve')"
985
+ :disabled="activeRowAction !== null && !isActionLoading(detailRecord, 'approve')"
986
+ @click="handleReview(detailRecord, 'Y')"
987
+ >
988
+ 确认
989
+ </el-button>
990
+ <el-button
991
+ type="danger"
992
+ plain
993
+ :icon="CircleClose"
994
+ :loading="isActionLoading(detailRecord, 'reject')"
995
+ :disabled="activeRowAction !== null && !isActionLoading(detailRecord, 'reject')"
996
+ @click="handleReview(detailRecord, 'N')"
997
+ >
998
+ 拒绝
999
+ </el-button>
1000
+ </div>
1001
+ </template>
974
1002
  </el-drawer>
975
1003
  </main>
976
1004
  </template>
@@ -1075,6 +1103,12 @@ onBeforeUnmount(() => {
1075
1103
  font-weight: 700;
1076
1104
  }
1077
1105
  :deep(.allocation-detail-drawer .el-drawer__body) { padding: 18px 20px 28px; }
1106
+ :deep(.allocation-detail-drawer .el-drawer__footer) {
1107
+ padding: 12px 20px 16px;
1108
+ border-top: 1px solid #e4eaf1;
1109
+ }
1110
+ .drawer-review-actions { display: flex; justify-content: flex-end; gap: 8px; }
1111
+ .drawer-review-actions .el-button { min-width: 88px; }
1078
1112
  .drawer-summary {
1079
1113
  display: flex;
1080
1114
  align-items: center;