From 9fd5c98eb80c80775d43c581cc7155cf0168d26c Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期五, 26 十二月 2025 13:43:16 +0800
Subject: [PATCH] 1.存货绑定工艺路线绑定显示优化2.生成工单修改优化
---
src/views/materialManager/inventoryList.vue | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/views/materialManager/inventoryList.vue b/src/views/materialManager/inventoryList.vue
index 3b285ad..047291d 100644
--- a/src/views/materialManager/inventoryList.vue
+++ b/src/views/materialManager/inventoryList.vue
@@ -676,8 +676,10 @@
}}
</div>
<el-divider />
- <div style="margin-bottom: 10px">
+ <div style="margin-bottom: 10px;display: flex;align-items: center">
<i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 宸ヨ壓璺嚎闆嗗悎
+ <el-input v-model="filterRoute" style="width: 200px;margin-left: 10px;" placeholder="璇疯緭鍏ュ伐鑹鸿矾绾胯繘琛岃繃婊�" @input="filterRouteChange" />
+
</div>
<div class="myCheckboxGroup">
@@ -956,6 +958,7 @@
<div style="width:calc(100% - 460px)">
<div style="margin-bottom: 10px">
<i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 宸ヨ壓璺嚎闆嗗悎
+ <el-input v-model="filterRoute" style="width: 200px;margin-left: 10px;" placeholder="璇疯緭鍏ュ伐鑹鸿矾绾胯繘琛岃繃婊�" @input="filterRouteChange2" />
</div>
<div class="myCheckboxGroup">
@@ -1361,7 +1364,10 @@
batchRouteDataSelectedIndex: 0, // 宸︿晶浜у搧閫変腑鍊� 甯﹀嚭鍙充晶宸ヨ壓璺嚎
dialogVisibleBatchStep: false,
- batchStepSelectedValue: []
+ batchStepSelectedValue: [],
+
+ filterRoute: '',
+ routeOperationArrTemp: []
}
},
watch: {
@@ -1397,6 +1403,13 @@
this.getSelectApi()
},
methods: {
+ filterRouteChange(val) {
+ this.dialogFormRoute.routeOperationArr = this.routeOperationArrTemp.filter(i => i.name.includes(val))
+ },
+ filterRouteChange2(val) {
+ this.batchRouteDataSelected = this.routeOperationArrTemp.filter(i => i.routename.includes(val))
+ },
+
// 宸ヨ壓鐐瑰嚮 ,鎸夊伐搴忚蛋
async routeClick2(row) {
this.dialogVisibleStep = true
@@ -1571,6 +1584,7 @@
if (this.mesSetting.route) { // 鎸夊伐鑹鸿矾绾�
this.batchRouteData = res.data
this.batchRouteDataSelected = this.batchRouteData[0].children
+ this.routeOperationArrTemp = this.batchRouteData[0].children
this.batchRouteDataSelectedIndex = 0
this.batchRouteData[this.batchRouteDataSelectedIndex].children.forEach((item, index) => {
item.isSelected1 = false
@@ -1642,9 +1656,10 @@
this.defaultroute_code = ''
this.defaultroute_codeArr = []
this.batchRouteData = []
+ this.filterRoute = ''
},
partcodeSelected(val, index) {
- this.batchRouteDataSelected = val.children
+ this.batchRouteDataSelected = val.children.filter(i => i.routename.includes(this.filterRoute))
this.batchRouteDataSelectedIndex = index
this.batchRouteData[this.batchRouteDataSelectedIndex].children.forEach((item, index) => {
item.isSelected1 = false
@@ -1698,6 +1713,7 @@
loading.close()
this.dialogVisibleRoute = true
this.dialogFormRoute.routeOperationArr = res.data
+ this.routeOperationArrTemp = res.data
// let waitFlag = false// 鍥炴樉绛夊緟鏄惁鏀捐
this.dialogFormRoute.routeOperationArr.forEach((item, index) => {
@@ -1738,6 +1754,7 @@
handleCloseRoute() {
this.dialogFormRoute.routeOperationArr = []
this.defaultroute_codeArr = []
+ this.filterRoute = ''
},
// 鍙栨秷
routeDialogVisibleCancel() {
@@ -2220,6 +2237,8 @@
.myCheckboxGroup {
display: flex;
flex-wrap: wrap;
+ max-height: 200px;
+ overflow: auto;
.myCheckbox {
//border: 1px solid $main_color;
--
Gitblit v1.9.3