From bc79e1fae76dffb3cbc3ddfa9ba23e66e150d098 Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期五, 28 八月 2026 23:18:27 +0800
Subject: [PATCH] fix: 调整多个业务模块的页面展示与字段
---
src/views/productionManagement/productionReporting/index.vue | 63 ++++++++++++++++++++++++++++---
1 files changed, 56 insertions(+), 7 deletions(-)
diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index aff050f..6c28ef6 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -1,5 +1,6 @@
<template>
<div class="app-container">
+ <PageHeader content="鎶ュ伐鍙拌处" />
<div class="search_form">
<el-form :model="searchForm"
:inline="true">
@@ -19,6 +20,18 @@
style="width: 200px;"
@change="handleQuery" />
</el-form-item>
+ <el-form-item label="鎶ュ伐绫诲瀷:">
+ <el-select v-model="searchForm.reportType"
+ placeholder="璇烽�夋嫨"
+ clearable
+ style="width: 200px;"
+ @change="handleQuery">
+ <el-option label="鍚堟牸" :value="0" />
+ <el-option label="杞诲井杩斿伐" :value="1" />
+ <el-option label="涓ラ噸杩斿伐" :value="2" />
+ <el-option label="鎶ュ簾" :value="3" />
+ </el-select>
+ </el-form-item>
<el-form-item>
<el-button type="primary"
@click="handleQuery">鎼滅储</el-button>
@@ -28,8 +41,6 @@
<div class="table_list">
<div style="text-align: right"
class="mb10">
- <!-- <el-button type="primary"
- @click="openForm('add')">鐢熶骇鎶ュ伐</el-button> -->
<el-button @click="handleOut">瀵煎嚭</el-button>
</div>
<PIMTable rowKey="id"
@@ -169,6 +180,7 @@
nickName: "",
workOrderNo: "",
workOrderStatus: "",
+ reportType: "",
},
});
const { searchForm } = toRefs(data);
@@ -185,6 +197,21 @@
label: "鎶ュ伐浜哄憳",
prop: "nickName",
width: 120,
+ },
+ {
+ label: "鎶ュ伐绫诲瀷",
+ prop: "reportTypeName",
+ width: 100,
+ },
+ {
+ label: "瀹℃牳鐘舵��",
+ prop: "auditStatusName",
+ width: 100,
+ },
+ {
+ label: "宸ユ椂锛坔锛�",
+ width: 100,
+ prop: "workHour",
},
{
label: "宸ュ簭",
@@ -231,6 +258,7 @@
label: "鍒涘缓鏃堕棿",
prop: "createTime",
width: 120,
+ dataType: "date"
},
{
dataType: "action",
@@ -316,6 +344,10 @@
});
});
};
+ const showInput = row => {
+ isShowInput.value = true;
+ isShowingId.value = row.id;
+ };
const pagination = obj => {
page.current = obj.page;
page.size = obj.limit;
@@ -331,6 +363,8 @@
tableLoading.value = false;
tableData.value = res.data.records.map(item => ({
...item,
+ reportTypeName: item.reportTypeName || resolveReportTypeName(item.reportType),
+ auditStatusName: item.auditStatusName || resolveAuditStatusName(item.auditStatus),
pendingFinishNum:
(Number(item.schedulingNum) || 0) - (Number(item.finishedNum) || 0),
}));
@@ -413,6 +447,23 @@
const summarizeMainTable = param => {
return proxy.summarizeTable(param, ["finishedNum"]);
};
+ const resolveReportTypeName = value => {
+ const map = {
+ 0: "鍚堟牸",
+ 1: "杞诲井杩斿伐",
+ 2: "涓ラ噸杩斿伐",
+ 3: "鎶ュ簾",
+ };
+ return map[Number(value)] || "鈥�";
+ };
+ const resolveAuditStatusName = value => {
+ const map = {
+ 0: "寰呭鏍�",
+ 1: "瀹℃牳閫氳繃",
+ 2: "瀹℃牳涓嶉�氳繃",
+ };
+ return map[Number(value)] || "鈥�";
+ };
// 鎵撳紑寮规
const openForm = (type, row) => {
if (selectedRows.value.length !== 1) {
@@ -432,10 +483,6 @@
// 鎵撳紑鎶曞叆妯℃�佹
const isShowInput = ref(false);
const isShowingId = ref(0);
- const showInput = row => {
- isShowInput.value = true;
- isShowingId.value = row.id;
- };
// 瀵煎嚭
const handleOut = () => {
@@ -445,7 +492,9 @@
type: "warning",
})
.then(() => {
- proxy.download("/productionProductMain/export", {}, "鐢熶骇鎶ュ伐.xlsx");
+ const params = { ...searchForm.value };
+ params.entryDate = undefined;
+ proxy.download("/productionProductMain/export", params, "鐢熶骇鎶ュ伐.xlsx");
})
.catch(() => {
proxy.$modal.msg("宸插彇娑�");
--
Gitblit v1.9.3