From 001b025ff84dec3c614f0b0346e9a50491034f04 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 06 十一月 2025 11:09:16 +0800
Subject: [PATCH] 应收台账-查询修改
---
src/views/production/index.vue | 26 +++++++++++++++++++++++---
1 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/src/views/production/index.vue b/src/views/production/index.vue
index 79c305b..e9198ea 100644
--- a/src/views/production/index.vue
+++ b/src/views/production/index.vue
@@ -1,5 +1,5 @@
<template>
- <div>
+ <div class="app-container">
<!-- 鎼滅储琛ㄥ崟 -->
<el-form :inline="true" :model="queryParams" class="search-form">
<el-form-item label="鎼滅储">
@@ -29,6 +29,9 @@
@click="() => deleteSelected(delPM)"
>
鍒犻櫎
+ </el-button>
+ <el-button type="primary" @click="handleRandomScheduling">
+ 闅忔満鎺掍骇
</el-button>
</div>
<!-- 鏁版嵁琛ㄦ牸 -->
@@ -95,7 +98,7 @@
import ProductionDialog from "./components/ProductionDialog.vue";
import ETable from "@/components/Table/ETable.vue";
import Pagination from "@/components/Pagination/index.vue";
-import { getProductionMasterList, delPM } from "@/api/production";
+import { getProductionMasterList, delPM, randomScheduling } from "@/api/production";
import { parseCoalArray } from "@/utils/production";
import { useTableData } from "./components/useTableData.js";
import { useDialog } from "./components/useDialog.js";
@@ -173,6 +176,23 @@
});
};
+// 闅忔満鎺掍骇澶勭悊鍑芥暟
+const handleRandomScheduling = async () => {
+ try {
+ const { ElMessage } = await import('element-plus');
+ const res = await randomScheduling();
+ if (res.code === 200) {
+ ElMessage.success('闅忔満鎺掍骇鎴愬姛');
+ getList(); // 鍒锋柊鍒楄〃
+ } else {
+ ElMessage.error(res.msg || '闅忔満鎺掍骇澶辫触');
+ }
+ } catch (error) {
+ const { ElMessage } = await import('element-plus');
+ ElMessage.error('璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯');
+ }
+};
+
// 缁勪欢鎸傝浇鏃跺姞杞芥暟鎹�
onMounted(async () => {
try {
@@ -216,7 +236,7 @@
.search-form {
display: flex;
- justify-content: space-between;
+ justify-content: flex-start;
align-items: center;
margin-bottom: 20px;
--
Gitblit v1.9.3