|
@@ -1275,7 +1275,7 @@ import {
|
|
|
ProductInformation, TestCoefficient, capacityList,getOrderProcessRight,
|
|
ProductInformation, TestCoefficient, capacityList,getOrderProcessRight,
|
|
|
DataCorrection, U8Trial, ProcessFlow, AccountingParameter,setProductStatus,
|
|
DataCorrection, U8Trial, ProcessFlow, AccountingParameter,setProductStatus,
|
|
|
getProduct, getProductGy, ProductInformationEdit, workOrderListDetail, editProduct, getOrderProcessCount, StatusEdit,
|
|
getProduct, getProductGy, ProductInformationEdit, workOrderListDetail, editProduct, getOrderProcessCount, StatusEdit,
|
|
|
- PrintDetailDel, ProcessDetailDel,
|
|
|
|
|
|
|
+ PrintDetailDel, ProcessDetailDel,WorkOrderDetailCope,
|
|
|
getGdAnnexTable,
|
|
getGdAnnexTable,
|
|
|
gdAnnexAdd,
|
|
gdAnnexAdd,
|
|
|
gdAnnexDel,
|
|
gdAnnexDel,
|
|
@@ -2693,32 +2693,39 @@ const onyycpzlclick = () => {
|
|
|
ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
|
|
ElMessage({type: 'warning',message: '请选择具体的工单后,再操作此功能'})
|
|
|
}else{
|
|
}else{
|
|
|
yycpzlformData['gdbh'] = _Gd_gdbh.value;
|
|
yycpzlformData['gdbh'] = _Gd_gdbh.value;
|
|
|
- _ProductInformations();
|
|
|
|
|
|
|
+ _WorkOrderDetailCopedata();
|
|
|
onyycpzllist.value = true;
|
|
onyycpzllist.value = true;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
//引用产品资料【回车】
|
|
//引用产品资料【回车】
|
|
|
const yycpzlProductValue = async () => {
|
|
const yycpzlProductValue = async () => {
|
|
|
- _ProductInformations();
|
|
|
|
|
-};
|
|
|
|
|
-//引用产品资料->获取产品资料
|
|
|
|
|
-const _ProductInformations = async ()=>{
|
|
|
|
|
- let workOrder = yycpzlformData['gdbh'];
|
|
|
|
|
- const ProductInformations = await ProductInformation({workOrder:workOrder});
|
|
|
|
|
- if(ProductInformations.msg === '未找到工单信息'){
|
|
|
|
|
- yycpzlformData['khdh'] = '';
|
|
|
|
|
- yycpzlformData['khmc'] = '';
|
|
|
|
|
- yycpzlformData['cpdh'] = '';
|
|
|
|
|
- yycpzlformData['cpmc'] = '';
|
|
|
|
|
- ElMessage({type: 'warning',message: '未找到工单信息'})
|
|
|
|
|
|
|
+ if(yycpzlformData['gdbh'] == null || yycpzlformData['gdbh'] == ''){
|
|
|
|
|
+ ElMessage({type: 'warning',message: '工单那不能为空'})
|
|
|
return false;
|
|
return false;
|
|
|
- }else{
|
|
|
|
|
- yycpzlformData['gdbh'] = ProductInformations.data['工单编号'];
|
|
|
|
|
- yycpzlformData['khdh'] = ProductInformations.data['客户代号'];
|
|
|
|
|
- yycpzlformData['khmc'] = ProductInformations.data['客户名称'];
|
|
|
|
|
- yycpzlformData['cpdh'] = ProductInformations.data['产品代号'];
|
|
|
|
|
- yycpzlformData['cpmc'] = ProductInformations.data['产品名称'];
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ _WorkOrderDetailCopedata();
|
|
|
|
|
+};
|
|
|
|
|
+//引用产品资料->获取产品资料
|
|
|
|
|
+const _WorkOrderDetailCopedata = async ()=>{
|
|
|
|
|
+ let search = yycpzlformData['gdbh'];
|
|
|
|
|
+ console.log(search)
|
|
|
|
|
+ // const ProductInformations = await ProductInformation({workOrder:search});
|
|
|
|
|
+ const WorkOrderDetailCopes = await WorkOrderDetailCope({search:search});
|
|
|
|
|
+ console.log(WorkOrderDetailCopes);
|
|
|
|
|
+ // if(ProductInformations.msg === '未找到工单信息'){
|
|
|
|
|
+ // yycpzlformData['khdh'] = '';
|
|
|
|
|
+ // yycpzlformData['khmc'] = '';
|
|
|
|
|
+ // yycpzlformData['cpdh'] = '';
|
|
|
|
|
+ // yycpzlformData['cpmc'] = '';
|
|
|
|
|
+ // ElMessage({type: 'warning',message: '未找到工单信息'})
|
|
|
|
|
+ // return false;
|
|
|
|
|
+ // }else{
|
|
|
|
|
+ // yycpzlformData['gdbh'] = ProductInformations.data['工单编号'];
|
|
|
|
|
+ // yycpzlformData['khdh'] = ProductInformations.data['客户代号'];
|
|
|
|
|
+ // yycpzlformData['khmc'] = ProductInformations.data['客户名称'];
|
|
|
|
|
+ // yycpzlformData['cpdh'] = ProductInformations.data['产品代号'];
|
|
|
|
|
+ // yycpzlformData['cpmc'] = ProductInformations.data['产品名称'];
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
//引用产品资料【执行】
|
|
//引用产品资料【执行】
|
|
|
const yycpzlhandleConfirm = async () => {
|
|
const yycpzlhandleConfirm = async () => {
|