From 2a146bcbd2c3752d699338bad39a07feabe6890e Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期五, 26 十二月 2025 16:39:52 +0800
Subject: [PATCH] 产品结构
---
src/views/productionManagement/processRoute/index.vue | 57 ++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 38 insertions(+), 19 deletions(-)
diff --git a/src/views/productionManagement/processRoute/index.vue b/src/views/productionManagement/processRoute/index.vue
index 61b34e4..05edce3 100644
--- a/src/views/productionManagement/processRoute/index.vue
+++ b/src/views/productionManagement/processRoute/index.vue
@@ -2,8 +2,8 @@
<div class="app-container">
<div class="search_form">
<el-form :model="searchForm" :inline="true">
- <el-form-item label="闆朵欢鍚嶇О:">
- <el-input v-model="searchForm.speculativeTradingName" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
+ <el-form-item label="瑙勬牸鍚嶇О:">
+ <el-input v-model="searchForm.model" placeholder="璇疯緭鍏�" clearable prefix-icon="Search"
style="width: 200px;"
@change="handleQuery" />
</el-form-item>
@@ -27,7 +27,7 @@
:tableLoading="tableLoading"
@pagination="pagination"
:total="page.total"
- ></PIMTable>
+ />
</div>
<new-process
v-if="isShowNewModal"
@@ -41,6 +41,13 @@
:record="record"
@completed="getList"
/>
+
+ <route-item-form
+ v-if="isShowItemModal"
+ v-model:visible="isShowItemModal"
+ :record="record"
+ @completed="getList"
+ />
</div>
</template>
@@ -48,19 +55,19 @@
import {onMounted, ref} from "vue";
import NewProcess from "@/views/productionManagement/processRoute/New.vue";
import EditProcess from "@/views/productionManagement/processRoute/Edit.vue";
+import RouteItemForm from "@/views/productionManagement/processRoute/ItemsForm.vue";
import {listPage, del} from "@/api/productionManagement/processRoute.js";
const data = reactive({
searchForm: {
- name: "",
- no: "",
+ model: "",
},
});
const { searchForm } = toRefs(data);
const tableColumn = ref([
{
- label: "闆朵欢鍚嶇О",
- prop: "speculativeTradingName",
+ label: "瑙勬牸鍚嶇О",
+ prop: "model",
},
{
label: "鎻忚堪",
@@ -79,6 +86,13 @@
clickFun: (row) => {
showEditModal(row);
}
+ },
+ {
+ name: "璺嚎椤圭洰",
+ type: "text",
+ clickFun: (row) => {
+ showItemModal(row);
+ }
}
]
}
@@ -88,6 +102,7 @@
const tableLoading = ref(false);
const isShowNewModal = ref(false);
const isShowEditModal = ref(false);
+const isShowItemModal = ref(false);
const record = ref({});
const page = reactive({
current: 1,
@@ -137,20 +152,24 @@
record.value = row
};
+const showItemModal = (row) => {
+ isShowItemModal.value = true
+ record.value = row
+};
+
// 鍒犻櫎
function handleDelete() {
- // const no = selectedRows.value.map((item) => item.no);
- // const ids = selectedRows.value.map((item) => item.id);
- // proxy.$modal
- // .confirm('鏄惁纭鍒犻櫎宸ュ簭缂栧彿涓�"' + no + '"鐨勬暟鎹」锛�')
- // .then(function () {
- // return del(ids);
- // })
- // .then(() => {
- // getList();
- // proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
- // })
- // .catch(() => {});
+ const ids = selectedRows.value.map((item) => item.id);
+ proxy.$modal
+ .confirm('鏄惁纭鍒犻櫎宸插嬀閫夌殑鏁版嵁椤癸紵')
+ .then(function () {
+ return del(ids);
+ })
+ .then(() => {
+ getList();
+ proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+ })
+ .catch(() => {});
}
onMounted(() => {
--
Gitblit v1.9.3