From 9d114c1082b674b56d532f153f14231dd996def5 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期一, 12 一月 2026 09:29:44 +0800
Subject: [PATCH] BI大屏优化
---
src/views/productionManagement/productionReporting/index.vue | 37 ++++++++++++++++++++++++++++++++++---
1 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index 0200ba1..a08326a 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -137,9 +137,11 @@
<form-dia ref="formDia"
@close="handleQuery"></form-dia>
<input-modal v-if="isShowInput"
- v-model:visible="isShowInput" />
+ v-model:visible="isShowInput"
+ :production-product-main-id="isShowingId" />
<output-modal v-if="isShowOutput"
- v-model:visible="isShowOutput" />
+ v-model:visible="isShowOutput"
+ :production-product-main-id="isShowingId" />
</div>
</template>
@@ -150,8 +152,9 @@
import {
productionReportUpdate,
workListPageById,
+ productionReportDelete,
} from "@/api/productionManagement/productionReporting.js";
- import { productionProductMainListPage } from "@/api/productionManagement/production_product_main.js";
+ import { productionProductMainListPage } from "@/api/productionManagement/productionProductMain.js";
import { userListNoPageByTenantId } from "@/api/system/user.js";
import InputModal from "@/views/productionManagement/productionReporting/Input.vue";
import OutputModal from "@/views/productionManagement/productionReporting/Output.vue";
@@ -260,6 +263,13 @@
showOutput(row);
},
},
+ {
+ name: "鍒犻櫎",
+ type: "danger",
+ clickFun: row => {
+ deleteReport(row);
+ },
+ },
],
},
]);
@@ -290,6 +300,24 @@
searchForm.value.entryDateEnd = undefined;
}
handleQuery();
+ };
+ const deleteReport = row => {
+ ElMessageBox.confirm("纭畾鍒犻櫎璇ユ姤宸ュ悧锛�", "鎻愮ず", {
+ confirmButtonText: "纭畾",
+ cancelButtonText: "鍙栨秷",
+ type: "warning",
+ }).then(() => {
+ productionReportDelete({ id: row.id }).then(res => {
+ if (res.code === 200) {
+ proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+ getList();
+ } else {
+ ElMessageBox.alert(res.msg || "鍒犻櫎澶辫触", "鎻愮ず", {
+ confirmButtonText: "纭畾",
+ });
+ }
+ });
+ });
};
const pagination = obj => {
page.current = obj.page;
@@ -406,14 +434,17 @@
// 鎵撳紑鎶曞叆妯℃�佹
const isShowInput = ref(false);
+ const isShowingId = ref(0);
const showInput = row => {
isShowInput.value = true;
+ isShowingId.value = row.id;
};
// 鎵撳紑浜у嚭妯℃�佹
const isShowOutput = ref(false);
const showOutput = row => {
isShowOutput.value = true;
+ isShowingId.value = row.id;
};
// 瀵煎嚭
--
Gitblit v1.9.3