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,
});