From 0ac076bd5d4b37a63e250eb461c2cb6e9ea73eb6 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 13 十月 2023 11:22:31 +0800
Subject: [PATCH] 1.模具清单100% 2.模具点检项100%
---
src/views/basicSettings/storageList.vue | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/views/basicSettings/storageList.vue b/src/views/basicSettings/storageList.vue
index ba1f5e2..7b68a54 100644
--- a/src/views/basicSettings/storageList.vue
+++ b/src/views/basicSettings/storageList.vue
@@ -61,8 +61,15 @@
<div
style=" width:calc(100% - 300px);"
>
- <div class="bodyTopButtonGroup">
+ <div class="bodyTopButtonGroup" style="justify-content: space-between">
<el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>
+ <el-button
+ v-waves
+ type="success"
+ icon="el-icon-download"
+ @click="$router.push('./../systemSetting/dataImport?fileCode=7')"
+ >瀵煎叆
+ </el-button>
</div>
<div class="bodyTopFormGroup">
@@ -511,6 +518,9 @@
async getTSecLocaTree() {
const res = await TSecLocaTree()
this.treeLeftArr = res.data
+ this.treeLeftArr.forEach(e => {
+ e.name = e.code + ' ' + e.name
+ })
this.stckcodeArr = res.data.filter(i => i.idparent === '-1')
this.treeLeft = [
{
@@ -654,7 +664,18 @@
stckcodeChange(val) {
this.dialogForm.parentlocacode = ''
- this.parentlocacodeArr = this.treeLeftArr.filter(i => i.idparent === val)
+ const res = this.recursiveLookupArray([], val)// 閫掑綊鏌ユ壘鏁扮粍
+ this.parentlocacodeArr = res
+ },
+ recursiveLookupArray(newArr, val) {
+ const temp = this.treeLeftArr.filter(i => i.idparent === val)
+ if (temp.length > 0 && temp) {
+ temp.forEach(i => {
+ newArr.push(i)
+ this.recursiveLookupArray(newArr, i.code)
+ })
+ }
+ return newArr
},
// 閫掑綊鍙栧瓙闆嗙殑鎵�鏈塩ode
--
Gitblit v1.9.3