From 80ef3a1fb42f37cde2e9753317e118c50379b095 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 10 九月 2026 16:35:44 +0800
Subject: [PATCH] 天津-潜宇塑胶 1.设备、生产、BOM、质量、产品、仓储物流模块需求更改
---
src/views/productionManagement/productionReporting/index.vue | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/src/views/productionManagement/productionReporting/index.vue b/src/views/productionManagement/productionReporting/index.vue
index 28edda2..64e6355 100644
--- a/src/views/productionManagement/productionReporting/index.vue
+++ b/src/views/productionManagement/productionReporting/index.vue
@@ -19,6 +19,19 @@
style="width: 200px;"
@change="handleQuery" />
</el-form-item>
+ <el-form-item label="浣跨敤璁惧:">
+ <el-select v-model="searchForm.deviceId"
+ placeholder="璇烽�夋嫨"
+ clearable
+ filterable
+ style="width: 200px;"
+ @change="handleQuery">
+ <el-option v-for="item in deviceOptions"
+ :key="item.id"
+ :label="item.deviceName"
+ :value="item.id" />
+ </el-select>
+ </el-form-item>
<el-form-item>
<el-button type="primary"
@click="handleQuery">鎼滅储</el-button>
@@ -162,6 +175,7 @@
} from "@/api/productionManagement/productionReporting.js";
import { productionProductMainListPage } from "@/api/productionManagement/productionProductMain.js";
import { userListNoPageByTenantId } from "@/api/system/user.js";
+ import { getDeviceLedger } from "@/api/equipmentManagement/ledger.js";
import InputModal from "@/views/productionManagement/productionReporting/Input.vue";
const data = reactive({
@@ -169,12 +183,14 @@
nickName: "",
workOrderNo: "",
workOrderStatus: "",
+ deviceId: "",
},
});
const { searchForm } = toRefs(data);
const expandedRowKeys = ref([]);
const expandData = ref([]);
const userList = ref([]);
+ const deviceOptions = ref([]);
const tableColumn = ref([
{
label: "鎶ュ伐鍗曞彿",
@@ -195,6 +211,11 @@
label: "宸ュ簭",
prop: "process",
width: 120,
+ },
+ {
+ label: "浣跨敤璁惧",
+ prop: "deviceName",
+ width: 140,
},
{
label: "宸ュ崟缂栧彿",
@@ -459,6 +480,14 @@
};
onMounted(() => {
getList();
+ getDeviceLedger()
+ .then(res => {
+ deviceOptions.value = res.data || [];
+ })
+ .catch(err => {
+ console.error("鑾峰彇璁惧鍒楄〃澶辫触", err);
+ deviceOptions.value = [];
+ });
});
</script>
--
Gitblit v1.9.3