zck 1 год назад
Родитель
Сommit
35e9df2979
2 измененных файлов с 51 добавлено и 41 удалено
  1. 20 11
      src/api/yunyin/yunying.js
  2. 31 30
      src/view/yunyin/shengchanguanli/shebeiyunxing.vue

+ 20 - 11
src/api/yunyin/yunying.js

@@ -800,7 +800,7 @@ export const getCouplet = (params) => {
         method: 'get',
         params
     })
-}
+}
 //获取开数联数
 export const ProductgetCouplet = (params) => {
     return service({
@@ -975,8 +975,8 @@ export const WorkOrderDel= (params) => {
         method: 'get',
         params
     })
-}
-
+}
+
 //产品管理->工艺资料修改
 export const ProcessEdit = (data) => {
     return service({
@@ -984,26 +984,26 @@ export const ProcessEdit = (data) => {
         method: 'post',
         data
     })
-}
-
-
-// 工单生产进程
+}
+
+
+// 工单生产进程
 export const jcgetTab = (params) => {
     return service({
         url: '/mes_server/course/getTab',
         method: 'get',
         params
     })
-}
-
+}
+
 export const workOrderDetail = (params) => {
     return service({
         url: '/mes_server/course/workOrderDetail',
         method: 'get',
         params
     })
-}
-// 每日上报产量废品率系数修改
+}
+// 每日上报产量废品率系数修改
 export const RejectionEdit = (data) => {
     return service({
         url: '/mes_server/facility/RejectionEdit',
@@ -1011,3 +1011,12 @@ export const RejectionEdit = (data) => {
         data
     })
 }
+
+// 检品每日上报产量修改显示接口
+export const JPchanliangDetailList = (params) => {
+    return service({
+        url: '/mes_server/facility/JPchanliangDetailList',
+        method: 'get',
+        params
+    })
+}

+ 31 - 30
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -1060,7 +1060,6 @@
 				<el-table-column type="selection" width="55" />
 				<!-- <el-table-column align="left" label="选择" prop="工单编号"  width="100"/> -->
 				<el-table-column fixed align="left" label="产品名称" prop="产品名称"  width="300"/>
-				<el-table-column fixed align="left" label="产品名称" prop="产品名称"  width="300"/>
 				<el-table-column fixed align="left" label="工序" prop="工序"  width="170"/>
 				<el-table-column fixed align="left" label="产量" prop="产量"  width="100"/>
 				<el-table-column align="left" label="千件工价" prop="千件工价"  width="85"/>
@@ -1113,9 +1112,9 @@
 					<el-table-column type="selection" width="55" />
 					<!-- <el-table-column fixed align="left" label="工单编号" prop="工单编号"  width="130"/> -->
 					<el-table-column  align="left" fixed label="产品名称" prop="产品名称"  width="300"/>
-					  <!-- <el-table-column  align="left" fixed label="工序" prop="工序"  width="150"/> -->
-					<el-table-column  align="left" label="印件号" prop="yjno"  width="115"/>
-					<el-table-column  align="left" label="工序名称" prop="gxmc"  width="200"/>
+					  <el-table-column  align="left" fixed label="工序" prop="工序"  width="150"/>
+					<!-- <el-table-column  align="left" label="印件号" prop="yjno"  width="115"/>
+					<el-table-column  align="left" label="工序名称" prop="gxmc"  width="200"/> -->
 					<el-table-column  align="left" fixed label="班组" prop="bzdh"  width="70"/>
 					<el-table-column  align="left" label="计件箱数" prop="计件箱数"  width="90"/>
 					<el-table-column  align="left" label="每箱数量" prop="每箱数量"  width="90"/>
@@ -2473,7 +2472,8 @@ import{
 	AccountingParameterEdit,
 	gdzl_MachineList,
 	getOrderProcessCount,
-	RejectionEdit
+	RejectionEdit,
+	JPchanliangDetailList
   }  from "@/api/yunyin/yunying";
 import {
 MachineTeamAdd,
@@ -3280,38 +3280,39 @@ const JPformdataedit = reactive({
 // 双击JP当日上报产量
 const JPgytableDatadoubleClick = async (row) => {
 	console.log(row)
-	console.log(12)
-	JPformdataedit['工单编号'] = row['工单编号'];
-	JPformdataedit['产品名称'] = row['产品名称'];
-	JPformdataedit['印件号'] = row['yjno'];
-	JPformdataedit['印件名称'] = row['cpmc'];
-	JPformdataedit['工序号'] = row['gxh'];
-	JPformdataedit['工序名称'] = row['工序'];
-	JPformdataedit['检验类别'] = row['检验类型'];
-	JPformdataedit['废品率系数'] = row['废品率系数'];
-	JPformdataedit['日期'] = row['sczl_rq'];
+	const response = await JPchanliangDetailList({UniqId:row.UniqId})
+	console.log(response)
+	JPformdataedit['工单编号'] = response.data['工单编号'];
+	JPformdataedit['产品名称'] = response.data['成品名称'];
+	JPformdataedit['印件号'] = response.data['yjno'];
+	JPformdataedit['印件名称'] = response.data['产品名称'];
+	JPformdataedit['工序号'] = response.data['gxh'];
+	JPformdataedit['工序名称'] = response.data['gxmc'];
+	JPformdataedit['检验类别'] = response.data['检验类型'];
+	JPformdataedit['废品率系数'] = response.data['废品率系数'];
+	JPformdataedit['日期'] = response.data['sczl_rq'];
 	JPformdataedit['机器'] = JTMC;
-	JPformdataedit['流程标牌'] = row['num'];
-	JPformdataedit['计件箱数'] = row['计件箱数'];
-	JPformdataedit['每箱数量'] = row['每箱数量'];
-	JPformdataedit['换膜总工时'] = row['换膜总工时'];
-	JPformdataedit['换膜补产工时'] = row['换膜补时'];
-	JPformdataedit['保养工时'] = row['保养工时'];
-	JPformdataedit['异常总工时'] = row['异常总工时'];
-	JPformdataedit['异常类型'] = row['异常类型'];
-	JPformdataedit['异常补贴工时'] = row['异常补时'];
-	JPformdataedit['通电工时'] = row['通电工时'];
-	JPformdataedit['定额代号'] = row['定额代号'];
-	JPformdataedit['bzdh'] = row['bzdh'];
+	JPformdataedit['流程标牌'] = response.data['num'];
+	JPformdataedit['计件箱数'] = response.data['计件箱数'];
+	JPformdataedit['每箱数量'] = response.data['每箱数量'];
+	JPformdataedit['换膜总工时'] = response.data['换膜总工时'];
+	JPformdataedit['换膜补产工时'] = response.data['换膜补时'];
+	JPformdataedit['保养工时'] = response.data['保养工时'];
+	JPformdataedit['异常总工时'] = response.data['异常总工时'];
+	JPformdataedit['异常类型'] = response.data['异常类型'];
+	JPformdataedit['异常补贴工时'] = response.data['异常补时'];
+	JPformdataedit['通电工时'] = response.data['通电工时'];
+	JPformdataedit['定额代号'] = response.data['定额代号'];
+	JPformdataedit['bzdh'] = response.data['bzdh'];
 	
 	for (let i = 1; i <= 10; i++) {
-	  JPformdataedit[`组员${i}`]['编号'] = row[`sczl_bh${i}`];
+	  JPformdataedit[`组员${i}`]['编号'] = response.data[`sczl_bh${i}`];
 	}
 	for (let i = 1; i <= 10; i++) {
-	  JPformdataedit[`组员${i}`]['姓名'] = row[`sczl_name${i}`];
+	  JPformdataedit[`组员${i}`]['姓名'] = response.data[`sczl_name${i}`];
 	}
 	for (let i = 1; i <= 10; i++) {
-	  JPformdataedit[`组员${i}`]['比例'] = row[`sczl_rate${i}`];
+	  JPformdataedit[`组员${i}`]['比例'] = response.data[`sczl_rate${i}`];
 	}
    //自动聚焦光标
    setTimeout(() => {