Browse Source

生产管理

liuhairui 1 year ago
parent
commit
e56e00e9af
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/view/yunyin/shengchanguanli/components/addGongYi.vue

+ 5 - 3
src/view/yunyin/shengchanguanli/components/addGongYi.vue

@@ -242,9 +242,11 @@ const getGxshList = async ()=>{
 }
 //点击工序损耗列表数据
 const gxshselectHandle = async (node)=>{
-  form['shdh'] = node.value
-  form['工序损耗名称'] = node.label2
-  gxshdisplay.value = false
+  if(node.label2){
+    form['shdh'] = node.value
+    form['工序损耗名称'] = node.label2
+    gxshdisplay.value = false
+  }
 }
 const selectHandle = async (node)=>{
   if (node.children && node.children.length> 0) return