diff --git a/.env.test b/.env.integration similarity index 100% rename from .env.test rename to .env.integration diff --git a/package.json b/package.json index c3994975..553ee5dc 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "serve": "npm run dev", "dev": "vite", "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", - "build:test": "cross-env vite build --mode test && esno ./build/script/postBuild.ts", + "build:test": "cross-env vite build --mode integration && esno ./build/script/postBuild.ts", "build:no-cache": "pnpm clean:cache && npm run build", "report": "cross-env REPORT=true npm run build", "type:check": "vue-tsc --noEmit --skipLibCheck", diff --git a/src/components/ApproveBtns/index.vue b/src/components/ApproveBtns/index.vue index bbf26bfc..22e9f6c0 100644 --- a/src/components/ApproveBtns/index.vue +++ b/src/components/ApproveBtns/index.vue @@ -8,6 +8,7 @@
- + 保存 @@ -142,21 +142,22 @@ - -
- - - - - -
+ + + + + +
0) { return createMessage.warning('勾选存在已开票的费用,无法申请删除!') } + if (arr[i].settlementAmount) { + return createMessage.warning('勾选存在已结算的费用,无法申请删除!') + } } visible.value = true return ids - // ApplyDeletion({ ids }).then(res => { - // if (res.success) { - // return createMessage.warning('申请成功!') - // refresh() - // } - // }) } + const loading = ref(false) const handleOk = async () => { const ids = deleteApply() + loading.value = true const res = await ApplyDeletion({ ids, remark: remark.value }) + loading.value = false refresh() visible.value = false remark.value = '' diff --git a/src/components/CostEntry/feeStatistic.vue b/src/components/CostEntry/feeStatistic.vue index a03a03b6..b997b0ae 100644 --- a/src/components/CostEntry/feeStatistic.vue +++ b/src/components/CostEntry/feeStatistic.vue @@ -4,7 +4,7 @@ * @Date: 2024-05-07 15:19:07 -->