From 53c9c33d41dbfde6e17535ce5fdb5ebf140bbdbb Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期五, 15 九月 2023 11:23:12 +0800
Subject: [PATCH] modified: src/components/view/finishedProductInspectionAdd.vue modified: src/components/view/finishedProductInspectionUp.vue modified: src/components/view/processInspection.vue modified: src/components/view/processInspectionUpdate.vue
---
src/components/view/standard.vue | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/src/components/view/standard.vue b/src/components/view/standard.vue
index 6fa6e73..abef430 100644
--- a/src/components/view/standard.vue
+++ b/src/components/view/standard.vue
@@ -13,15 +13,16 @@
</div>
<div class="thing">
<div class="left">
- <el-row :gutter="5">
+ <el-row :gutter="5" style="position: fixed;top: 148px;z-index: 1;">
<el-col :span="21">
<el-input v-model="search" suffix-icon="el-icon-search" placeholder="璇疯緭鍏ユ悳绱㈠唴瀹�" size="small" clearable></el-input>
</el-col>
<el-col :span="2">
- <el-button size="small" icon="el-icon-plus" @click="bomLeftAdd=true"></el-button>
+ <el-button size="mini" icon="el-icon-plus" @click="bomLeftAdd=true"></el-button>
</el-col>
</el-row>
- <el-tree :data="list" ref="tree" default-expand-all :props="{ children: 'children', label: 'name' }"
+ <el-row style="margin-top: 16px;">
+ <el-tree :data="list" ref="tree" default-expand-all :props="{ children: 'children', label: 'name' }"
node-key="id" :filter-node-method="filterNode" @node-click="handleNodeClick" highlight-current>
<div class="custom-tree-node" slot-scope="{ node, data }">
<span><i :class="`node_i ${data.code != '[5]' ? 'el-icon-folder-opened' : 'el-icon-tickets'}`"></i>
@@ -31,6 +32,7 @@
</el-button>
</div>
</el-tree>
+ </el-row>
</div>
<div class="right">
<div class="choose">
@@ -56,7 +58,7 @@
</div>
<div class="contentTable" v-if="this.typeselect == 0">
- <technology @childData="getChildData" :tableType="tableType" :tableData="tableData"></technology>
+ <technology @childData="getChildData" @updateDevice="updateDevice" :tableType="tableType" :tableData="tableData"></technology>
</div>
<div class="contentTable" v-if="this.typeselect == 1">
<target @childData="getChildData" :tableType="tableType" :tableData="tableData"></target>
@@ -391,6 +393,7 @@
return {
//瀛愮粍浠朵紶鐨刬d鍒楄〃
childIds:[],
+ isUpdateDevice:false,
//宸ュ簭鍒楄〃
fatherList:[],
deviceList:[],
@@ -505,6 +508,9 @@
this.selectVersion()
},
methods: {
+ updateDevice(val){
+ this.isUpdateDevice = val;
+ },
changeLeftAdd(){
if(this.leftAdd.type.length===2){
this.leftAdd.father=null
@@ -776,6 +782,7 @@
this.materialVisible = false;
this.productVisible = false;
},
+ //娓呯┖鏂板bom琛ㄥ崟
clearBomAddModel(){
if(this.typeselect == 0){
this.deviceList=[];
@@ -786,6 +793,7 @@
this.$refs["targetForm"].resetFields();
}else if(this.typeselect == 2){
this.mIdList = [];
+ this.materialForm.tableList = [];
this.$refs["materialForm"].resetFields();
}else{
this.productDeviceList=[];
@@ -1045,7 +1053,6 @@
let arr = res.data;
this.formatData(arr)
this.tableData = arr;
- console.log("arr--",arr);
})
},
formatData(data){
@@ -1188,6 +1195,11 @@
}
},
watch:{
+ isUpdateDevice(val){
+ if(val){
+ this.selectAll();
+ }
+ },
search(val) {
this.$refs.tree.filter(val);
},
--
Gitblit v1.9.3