From dc27f047f34a249c8ab7d446ccc975875aa52f1d Mon Sep 17 00:00:00 2001
From: ycy <2861518472@qq.com>
Date: Tue, 9 Apr 2024 09:50:38 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor:=20=E7=A5=A8=E6=8D=AE?=
=?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E9=87=8D?=
=?UTF-8?q?=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/finance-bill-manage/billDestroy.vue | 20 +++++++++----------
src/stores/billDestroy.js | 4 ++++
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/src/pages/finance-bill-manage/billDestroy.vue b/src/pages/finance-bill-manage/billDestroy.vue
index fc4a6a6..499baed 100644
--- a/src/pages/finance-bill-manage/billDestroy.vue
+++ b/src/pages/finance-bill-manage/billDestroy.vue
@@ -122,12 +122,8 @@
style="margin-bottom: 0.5rem"
>
- 审核通过
- 审核拒绝
+ 审核通过
+ 审核拒绝
@@ -172,6 +168,7 @@ const destroyList = useDestroy();
const tableData = ref([]);
const data = ref([]);
const headerTitle = ref("");
+const rowItem = ref({});
// 表格表头
const columns = ref([
{
@@ -254,7 +251,7 @@ const refresh = () => {
// 弹出框表单
const dialogData = ref({
refuseInfo: "",
- status: "",
+ Status: "",
});
// 查询表单
@@ -322,7 +319,7 @@ const breakageAdd = () => {
visiblePost.value = true;
dialogData.value = {
refuseInfo: "",
- status: "",
+ Status: "",
};
};
@@ -339,8 +336,10 @@ const FORM_RULES = {
// 新增
const breakSub = async ({ validateResult, firstError }) => {
if (validateResult === true) {
- dialogData.value.breakStatus = 0;
- await breakageList.addBreakageList(dialogData.value);
+ dialogData.value = {
+ ...rowItem.row.value,
+ };
+ await destroyList.auditDestroyList(dialogData.value);
getNewTable();
MessagePlugin.success("提交成功");
visiblePost.value = false;
@@ -352,6 +351,7 @@ const breakSub = async ({ validateResult, firstError }) => {
// 审核
const breakEdit = (item) => {
visiblePost.value = true;
+ rowItem.value = item;
};
// 弹出框表单重置
diff --git a/src/stores/billDestroy.js b/src/stores/billDestroy.js
index 6aeac69..d4a463e 100644
--- a/src/stores/billDestroy.js
+++ b/src/stores/billDestroy.js
@@ -14,6 +14,10 @@ export const useDestroy = defineStore("destroyList", {
console.log(this.destroyList);
return this.destroyList;
},
+ auditDestroyList(item) {
+ console.log(item);
+ // let arr = thisz
+ },
},
persist: true,
});