Browse Source

工单资料

liuhairui 1 year ago
parent
commit
f06b9c75ab

+ 18 - 10
src/view/yunyin/chanpinziliao/chanpinziliao.vue

@@ -2001,7 +2001,7 @@ const cpgyfzclick = async () => {
 };
 };
 //取消
 //取消
 const cpgyfzhandleCancel = async () => {
 const cpgyfzhandleCancel = async () => {
-    cpgyfzlist.value = false;
+  cpgyfzlist.value = false;
 };
 };
 //确定
 //确定
 const is_copy_gy = ref(0);
 const is_copy_gy = ref(0);
@@ -2070,13 +2070,14 @@ const cpgyfzhandleConfirm = async () => {
   };
   };
   console.log(formattedData);
   console.log(formattedData);
   const copyProductGy_add = await copyProductGy(formattedData);
   const copyProductGy_add = await copyProductGy(formattedData);
+  console.log(copyProductGy_add)
   if (copyProductGy_add.code === 0) {
   if (copyProductGy_add.code === 0) {
-    xzhscslist.value = false;
     ElMessage({ type: 'success', message: '更新成功' });
     ElMessage({ type: 'success', message: '更新成功' });
-    cpgyfzlist.value = false;
   } else {
   } else {
     // ElMessage({ type: 'error', message: '更新失败' });
     // ElMessage({ type: 'error', message: '更新失败' });
   }
   }
+  cpgyfzlist.value = false;
+
 };
 };
 
 
 
 
@@ -2569,6 +2570,7 @@ const addyj = ref(false)
 const delall = ref(false)
 const delall = ref(false)
 //点击表格行 下方表格获取数据
 //点击表格行 下方表格获取数据
 const tableRowClick = async (row) => {
 const tableRowClick = async (row) => {
+  console.log(row)
   _UniqID.value = row.UniqID;
   _UniqID.value = row.UniqID;
 	_Gd_gdbh.value = row.产品编号;
 	_Gd_gdbh.value = row.产品编号;
   _product_code.value = row.产品编号;
   _product_code.value = row.产品编号;
@@ -3449,12 +3451,18 @@ const add_ybformDataTest = reactive({
 });
 });
 
 
 const addyb_onclick = async () => {
 const addyb_onclick = async () => {
-  if (ybID.value === '' || ybID.value === undefined || ybID.value === null) {
-    ElMessage({ type: 'warning', message: '请选择具体的工单后,再操作此功能' });
-    return false;
-  } else {
-    const getProductYbInfo_list = await getProductYbInfo({ UniqID: ybID.value });
+  console.log(_UniqID.value)
+  console.log(_Gd_gdbh.value)
+  console.log(ybID.value)
+  // if (ybID.value === '' || ybID.value === undefined || ybID.value === null) {
+    // ElMessage({ type: 'warning', message: '请选择具体的工单后,再操作此功能' });
+    // return false;
+  // } else {
+    addybdialogFormVisible.value = true;
 
 
+    const getProductYbInfo_list = await getProductYbInfo({ UniqID: _UniqID.value });
+    console.log(getProductYbInfo_list)
+  if(getProductYbInfo_list.code == 0){
     add_ybformDataTest.gxmc1 = getProductYbInfo_list.data['印版名称'];
     add_ybformDataTest.gxmc1 = getProductYbInfo_list.data['印版名称'];
     add_ybformDataTest.YB_方案 = getProductYbInfo_list.data['YB_方案'];
     add_ybformDataTest.YB_方案 = getProductYbInfo_list.data['YB_方案'];
     add_ybformDataTest.YB_Yjno = getProductYbInfo_list.data['YB_Yjno'];
     add_ybformDataTest.YB_Yjno = getProductYbInfo_list.data['YB_Yjno'];
@@ -3465,9 +3473,9 @@ const addyb_onclick = async () => {
     add_ybformDataTest.物料名称 = getProductYbInfo_list.data['物料名称'];
     add_ybformDataTest.物料名称 = getProductYbInfo_list.data['物料名称'];
     add_ybformDataTest.ybbz = getProductYbInfo_list.data['印版备注'];
     add_ybformDataTest.ybbz = getProductYbInfo_list.data['印版备注'];
     add_ybformDataTest.gongxuNameOptions = getProductYbInfo_list.data.gy_data.map(item => item.gy);
     add_ybformDataTest.gongxuNameOptions = getProductYbInfo_list.data.gy_data.map(item => item.gy);
-
-    addybdialogFormVisible.value = true;
   }
   }
+
+  // }
 };
 };
 
 
 //点击下拉框获取数据方案、印件、编号、工艺名称、工序名称
 //点击下拉框获取数据方案、印件、编号、工艺名称、工序名称

+ 1 - 1
src/view/yunyin/shengchanguanli/gongdanziliao.vue

@@ -11,7 +11,7 @@
 <!--              <el-button type="primary" icon="edit"   @click="ontlssclick"       class="bt" title="按工序投料反馈,试算某产量的投料">U8投料试算</el-button>-->
 <!--              <el-button type="primary" icon="edit"   @click="ontlssclick"       class="bt" title="按工序投料反馈,试算某产量的投料">U8投料试算</el-button>-->
               <el-button type="primary" class="bt" icon="edit"  @click="jsfjClick">技术附件</el-button>
               <el-button type="primary" class="bt" icon="edit"  @click="jsfjClick">技术附件</el-button>
               <el-button type="primary" icon="edit"   @click="onyycpzlclick"     class="bt" title="重新引用 产品资料!">引用产品资料</el-button>
               <el-button type="primary" icon="edit"   @click="onyycpzlclick"     class="bt" title="重新引用 产品资料!">引用产品资料</el-button>
-              <el-button type="primary" icon="edit"   @click="oneditgxclhsclick" class="bt" title="工序产量核算">工序产量核算</el-button>
+<!--              <el-button type="primary" icon="edit"   @click="oneditgxclhsclick" class="bt" title="工序产量核算">工序产量核算</el-button>-->
               <el-button type="primary" icon="edit"   @click="oneditgylctzclick" class="bt" title="根据实际生产需要,对工艺流程做调整">工艺流程调整</el-button>
               <el-button type="primary" icon="edit"   @click="oneditgylctzclick" class="bt" title="根据实际生产需要,对工艺流程做调整">工艺流程调整</el-button>
               <el-button type="primary" icon="edit"   @click="oneditugdclick"    class="bt" title="删除U8工单异常数据">查改U8工单</el-button>
               <el-button type="primary" icon="edit"   @click="oneditugdclick"    class="bt" title="删除U8工单异常数据">查改U8工单</el-button>
               <!--<el-button type="primary" icon="edit"   @click="oneditztfwclick"   class="bt" title="初始化中间表更新状态,便于数据重新获取">状态复位</el-button>-->
               <!--<el-button type="primary" icon="edit"   @click="oneditztfwclick"   class="bt" title="初始化中间表更新状态,便于数据重新获取">状态复位</el-button>-->