From d43899492c6a4bea0d18af33992a844aeb035bc4 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期三, 13 九月 2023 13:15:32 +0800
Subject: [PATCH] 销售订单bug修复
---
src/components/view/self-inspection.vue | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/components/view/self-inspection.vue b/src/components/view/self-inspection.vue
index b994152..a10d40f 100644
--- a/src/components/view/self-inspection.vue
+++ b/src/components/view/self-inspection.vue
@@ -382,7 +382,7 @@
product: [],
list: [],
checkTreeNode: {
- id:1,
+ id:'',
},
tableData: [],
upIndex: 0,
@@ -506,10 +506,29 @@
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.list[0].children[0].name) // 榛樿閫変腑鑺傜偣绗竴涓�
})
+ console.log("===========");
+ console.log(this.list);
+ let one=this.list.filter(item=>{
+ return item.children.length>0
+ })[0]
+ console.log(one);
+ let id =one.children[0].id
+ console.log(id);
+ this.selectAllSelfStart(id)
+ this.selectDataList();
+ console.log("===========");
})
},
-
- //selectAllSelf checkTreeNode
+ //榛樿
+ selectAllSelfStart(id) {
+ this.$axios.get(this.$api.url.selectAllSelf,{
+ params:{id:id}
+ }).then(res => {
+ this.tableData = res.data;
+ console.log(this.tableData);
+ })
+ },
+ //鍙�
selectAllSelf() {
this.$axios.get(this.$api.url.selectAllSelf,{
params:{id:this.checkTreeNode.id}
--
Gitblit v1.9.3