浏览代码

获取废品率系数优化

zck 1 年之前
父节点
当前提交
18fc2854ab

+ 8 - 0
src/api/jixiaoguanli/jitairibaobiao.js

@@ -1137,6 +1137,14 @@ export const JpUploade = (data) => {
   })
 }
 
+// 检品机日产量上报-->获取废品率系数
+export const getRejectRate = (params) => {
+  return service({
+    url: '/mes_server/reporting_work/getRejectRate',
+    method: 'get',
+    params
+  })
+}
 
 export const JPmachineDetail = (params) => {
   return service({

+ 6 - 1
src/view/performance/chejianbaogong.vue

@@ -2414,7 +2414,8 @@ import {
   ChanliangPrintDetail,
   ChanliangProcessDetail,
   JpUploade,
-  getTimelist
+  getTimelist,
+  getRejectRate
 } from '@/api/jixiaoguanli/jitairibaobiao'
 
 import {
@@ -3711,6 +3712,10 @@ const JPtableData = ref([
 const JPhandleRowClick = async (row) => {
 	JPformdata['检验类别'] = row['name']
 	JPdialogSelectVisible_LX.value = false
+	const fplxs = await getRejectRate({order:JPformdata['工单编号'],yjno:JPformdata['印件号'],gxh:JPformdata['工序号'],type:JPformdata['检验类别']})
+	if (fplxs.code === 0) {
+		JPformdata['废品率系数'] = fplxs.data
+	}
 }
 
 

+ 12 - 1
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -2317,7 +2317,8 @@ import {
    getTimelist,
    JPmachineDetail,
    JpChanliangEdit,
-   JpUploade
+   JpUploade,
+   getRejectRate
 } from '@/api/jixiaoguanli/jitairibaobiao'
 import{ 
 	AccountingParameter,
@@ -3302,11 +3303,16 @@ const JPdialogSelectVisible_LXedit = ref(false)
 const JPtableDataedit = ref([
 	{ name: '废品版', type: '废品版' },
 	{ name: '正品版', type: '正品版' },
+	{ name: '次品版', type: '次品版' },
 ])
 
 const JPhandleRowClickedit = async (row) => {
 	JPformdataedit['检验类别'] = row['name']
 	JPdialogSelectVisible_LXedit.value = false
+	const fplxs = await getRejectRate({order:JPformdataedit['工单编号'],yjno:JPformdataedit['印件号'],gxh:JPformdataedit['工序号'],type:JPformdataedit['检验类别']})
+	if (fplxs.code === 0) {
+		JPformdataedit['废品率系数'] = fplxs.data
+	}
 }
 //工单编号回车事件
  const JPgetCPMCsubmitedit = () => {
@@ -3724,11 +3730,16 @@ const JPdialogSelectVisible_LX = ref(false)
 const JPtableData = ref([
 	{ name: '废品版', type: '废品版' },
 	{ name: '正品版', type: '正品版' },
+	{ name: '次品版', type: '次品版' },
 ])
 
 const JPhandleRowClick = async (row) => {
 	JPformdata['检验类别'] = row['name']
 	JPdialogSelectVisible_LX.value = false
+	const fplxs = await getRejectRate({order:JPformdata['工单编号'],yjno:JPformdata['印件号'],gxh:JPformdata['工序号'],type:JPformdata['检验类别']})
+	if (fplxs.code === 0) {
+		JPformdata['废品率系数'] = fplxs.data
+	}
 }