zck пре 14 часа
родитељ
комит
2266c96fd3

+ 8 - 0
src/api/mes_api_gty/orderAccounting.js

@@ -108,6 +108,14 @@ export const EmployeeDataCollect = (data) => {
     data
   })
 }
+// 员工月度超节损工序明细
+export const EmployeeMonthDetail = (params) => {
+  return service({
+    url: '/mes_server/order_super_loss/EmployeeMonthDetail',
+    method: 'get',
+    params
+  })
+}
 // 7核检废品分布(工单核检单维护3.1)
 // 8流程单查询(工单核检单维护5.1,5.2)
 // 9工单质检废品统计(工单核检单维护8)

+ 1 - 0
src/view/fake/gongdanshengchanfake.vue

@@ -1134,6 +1134,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({

+ 2 - 1
src/view/fake/gongdanziliaofake.vue

@@ -1964,6 +1964,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({
@@ -2578,7 +2579,7 @@ const add_gdyjenterDialog =  async  () => {
     yj_ks: add_yjzlformdata['ks'],
     yj_ls: add_yjzlformdata['ls'],
     yj_desc: add_yjzlformdata['desc'],
-    Sys_id  : _username.value,
+    sys_id: userStore.userInfo.nickName,
   };
   const PrintDetailAdd_add = await PrintDetailAdd(formattedData);
   if(PrintDetailAdd_add.code === 0) {

+ 19 - 17
src/view/fake/shebeiyunxingfake.vue

@@ -3169,7 +3169,7 @@
 	if (dbclSelection.value !== '') {
 	  try {
 		//产量上报数据删除
-		const res1 = await ChanliangDel({UniqId: dbclSelection.value})
+		const res1 = await ChanliangDel({UniqId: dbclSelection.value, sys_id: userStore.userInfo.nickName})
 		if(res1.code === 0){
 		  ElMessage.success('当班产量明细删除成功')
 		  //当班产量明细
@@ -3467,7 +3467,7 @@
 		
 	  };
 	  console.log(JPformattedData)
-	  const JpChanliangEdit_edit = await JpChanliangEdit(JPformattedData);
+	  const JpChanliangEdit_edit = await JpChanliangEdit({...JPformattedData, sys_id: userStore.userInfo.nickName});
 	  console.log(JpChanliangEdit_edit)
 	  if (JpChanliangEdit_edit.code === 0) {
 		  JPchanliangVisibleedit.value = false
@@ -4900,7 +4900,7 @@
 		  })
 		  return
 	  }
-	  const res = await ChanliangDel({ UniqId:Selection_ids.value})
+	  const res = await ChanliangDel({ UniqId:Selection_ids.value, sys_id: userStore.userInfo.nickName})
 	  if (res.code === 0) {
 	  ElMessage({
 		type: 'success',
@@ -5064,12 +5064,12 @@
 	  })
 	  // return
 	  if(fujiastatus==1){
-		  const responses = await AdditionalInspectionRecordAdd(arrs);
+		  const responses = await AdditionalInspectionRecordAdd(arrs.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 		  fujiastatus=0
 	  }
 	  // 使用filter方法过滤掉所有result为"不检测"的对象
 	  const filteredData = zhibiaoselectData.value.filter(item => item.selected !== "不检测");
-	  const response = await ProcessInspectionRecordsItemAdd(filteredData);
+	  const response = await ProcessInspectionRecordsItemAdd(filteredData.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 	  if (response.code === 0) {
 			ElMessage({
 			  type: 'success',
@@ -5367,7 +5367,7 @@
 	  }
   
 	  console.log("提交数据:", requestData);
-	  const response = await PrintDetailAdd(requestData);
+	  const response = await PrintDetailAdd(requestData.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 	  
 	  if (response?.code === 0) {  
 		  ElMessage.success("领出成功!");
@@ -5413,7 +5413,7 @@
 	  const uniqIds = currentSelection.value.map(item => item.UniqId).join(',');
 	  console.log(uniqIds); 
 	  // 调用收回API,假设是批量删除接口
-	  const res = await PrintDetailEdit({ id: uniqIds,number:Plate.value.印数})
+	  const res = await PrintDetailEdit({ id: uniqIds,number:Plate.value.印数, sys_id: userStore.userInfo.nickName})
 	  
 	  if (res.code === 0) {
 		ElMessage.success('收回成功')
@@ -5623,7 +5623,7 @@
   
 	// 调用接口提交数据
 	try {
-	  const res = await InspectionItemAdd(formattedData); // 替换成你的 API 方法
+	  const res = await InspectionItemAdd(formattedData.map(item => ({...item, sys_id: userStore.userInfo.nickName}))); // 替换成你的 API 方法
 	  if (res.code === 0) {
 		ElMessage.success("提交成功!");
 		dianjianVisible.value = false;
@@ -5776,7 +5776,7 @@
 		  })
 		  return
 	  }
-	  YieldTeamEdit({'Uniqid': Selection_ids.value, 'teamID': currentBz_rcl.value.ID}).then( res => {
+	  YieldTeamEdit({'Uniqid': Selection_ids.value, 'teamID': currentBz_rcl.value.ID, sys_id: userStore.userInfo.nickName}).then( res => {
 		  if(res.code==0){
 			  ElMessage({
 				type: 'success',
@@ -6310,7 +6310,7 @@
 		  sczl_rate8: formDatas.value.percentage10,
 		  sczl_rate9: formDatas.value.percentage9,
 		  sczl_rate10: formDatas.value.percentage8,
-		  sys_id: sys_id
+		  sys_id: userStore.userInfo.nickName
 	  })
 	  
 	  if (response.code === 0) {
@@ -6415,7 +6415,8 @@
 			  status:'生产',
 			  production_now:0,
 			  production_all:0,
-			  team_id:currentBz.value.ID
+			  team_id:currentBz.value.ID,
+			  sys_id: userStore.userInfo.nickName
 			  })
 		  if(response.code===0){
 			  ElMessage({
@@ -6438,7 +6439,7 @@
 			  cancelButtonText: '取消',
 			  type: 'warning'
 		  }).then(() => {
-		const response = teamDel({UniqId:UniqId})
+		const response = teamDel({UniqId:UniqId, sys_id: userStore.userInfo.nickName})
 		response.then(result => {
 		  if(result.code===0){
 		  let messageType = 'success';
@@ -7893,7 +7894,7 @@
 	  主电表:formdata3.value.主电表,
 	  UniqId:uid.value
 	 }
-	 const response = await MachineChanliangDetailEdit(restoredData);
+	 const response = await MachineChanliangDetailEdit({...restoredData, sys_id: userStore.userInfo.nickName});
 	 if (response.code === 0) {
 		 ElMessage({
 		   type: 'success',
@@ -7951,7 +7952,7 @@
    //核算调整弹窗确定
    const hesuanenterDialog = async () => {
    if(selected.value==='难度调整系数'){
-	  const res = await CoefficientEdit({id:Selection_ids.value,工价系数:hesuanValue.缩放系数 })
+	  const res = await CoefficientEdit({id:Selection_ids.value,工价系数:hesuanValue.缩放系数, sys_id: userStore.userInfo.nickName })
 	  if(res.code===0){
 		  ElMessage({
 			type: 'success',
@@ -7966,7 +7967,7 @@
 		  })
 	  }
    }else if(selected.value=== '凹印版距'){
-			 const res = await PrintingModeDataEdit({id:Selection_ids.value,plate:hesuanValue.产品板距,mode:hesuanValue.印刷方式 })
+			 const res = await PrintingModeDataEdit({id:Selection_ids.value,plate:hesuanValue.产品板距,mode:hesuanValue.印刷方式, sys_id: userStore.userInfo.nickName })
 			 if(res.code===0){
 				 ElMessage({
 				   type: 'success',
@@ -7981,7 +7982,7 @@
 				 })
 	   }
    }else if(selected.value=== '色度数'){
-		const res = await ChromaDataEdit({id:Selection_ids.value,ms:hesuanValue.色度数 })
+		const res = await ChromaDataEdit({id:Selection_ids.value,ms:hesuanValue.色度数, sys_id: userStore.userInfo.nickName })
 		if(res.code===0){
 			ElMessage({
 			  type: 'success',
@@ -7996,7 +7997,7 @@
 			})
 		}
    }else if(selected.value=== '废品率系数'){
-		const res = await RejectionEdit({id:Selection_ids.value,rejection:hesuanValue.废品率系数 })
+		const res = await RejectionEdit({id:Selection_ids.value,rejection:hesuanValue.废品率系数, sys_id: userStore.userInfo.nickName })
 		if(res.code===0){
 			ElMessage({
 			  type: 'success',
@@ -8293,6 +8294,7 @@
 		{ label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
 		{ label: '工序状态', prop: 'PD_WG', width: '90'},
 		{ label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+		{ label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
 	  ]
   )
   const gxclhcformData = reactive({

+ 1 - 0
src/view/managements/anodizedaluminum.vue

@@ -876,6 +876,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({

+ 6 - 1
src/view/performance/12-orderAccounting/componets/gxclhc.vue

@@ -87,9 +87,14 @@
         />
         <el-table-column
           label="首板生产日期"
-          width="120"
+          width="160"
           prop="sczl_rq"
         />
+        <el-table-column
+          label="末版生产日期"
+          width="160"
+          prop="sczl_sj2"
+        />
 
       </el-table>
 

Разлика између датотеке није приказан због своје велике величине
+ 342 - 47
src/view/performance/12-orderAccounting/index.vue


+ 1 - 0
src/view/performance/Dayreports.vue

@@ -2585,6 +2585,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({

+ 22 - 15
src/view/performance/chejianbaogong.vue

@@ -2855,7 +2855,8 @@ const warningres = (arr) => {
 	  辅电表:dbformData.value.辅电表,
 	  // sczl_bh98:dbformData.value.sczl_bh11,
 	  sczl_bh98:dbformData.value.sczl_bh11 === '自备' ? '' : dbformData.value.sczl_bh11,
-	  UniqId:dbformData.value.UniqId
+	  UniqId:dbformData.value.UniqId,
+	  sys_id: userStore.userInfo.nickName
 	})
 	if (response.code === 0) {
 	  bzchanliangVisible.value=false
@@ -2908,7 +2909,8 @@ const warningres = (arr) => {
 		  status:'生产',
 		  production_now:0,
 		  production_all:0,
-		  team_id:row.ID
+		  team_id:row.ID,
+		  sys_id: userStore.userInfo.nickName
 	  })
 		console.log(res)
 	  if (res.code === 0) {
@@ -3394,7 +3396,8 @@ const warningres = (arr) => {
   
   const remodelDataDels = async() => {
 	const response = await remodelDataDel({
-	  UniqId:formData.value.huanxingId
+	  UniqId:formData.value.huanxingId,
+	  sys_id: userStore.userInfo.nickName
 	})
 	if (response.code === 0) {
 	  successres('删除成功!')
@@ -3463,7 +3466,8 @@ const warningres = (arr) => {
 	  清场项目E:huanxingData.value.项目5,
 	  机长:huanxingData.value.机长,
 	  班长:huanxingData.value.班长,
-	  质量巡查员:huanxingData.value.质量巡查员
+	  质量巡查员:huanxingData.value.质量巡查员,
+	  sys_id: userStore.userInfo.nickName
 	})
 	if (response.code === 0) {
 	successres('新增成功!')
@@ -3491,7 +3495,8 @@ const warningres = (arr) => {
 	  机长:huanxingData.value.机长,
 	  班长:huanxingData.value.班长,
 	  质量巡查员:huanxingData.value.质量巡查员,
-	  UniqId:formData.value.huanxingId
+	  UniqId:formData.value.huanxingId,
+	  sys_id: userStore.userInfo.nickName
 	})
 	if (response.code === 0) {
 	successres('修改成功!')
@@ -3743,7 +3748,7 @@ const ybhandleSizeChange = (val) => {
 	if(yinbanSelection.value.length<1){
 		errorres('暂无印版数据 请确认!')
 	}else{
-		const response = await PrintDetailAdd(yinbanSelection.value)
+		const response = await PrintDetailAdd(yinbanSelection.value.map(item => ({...item, sys_id: userStore.userInfo.nickName})))
 		if(response.code===0){
 		  facilityPrintDetailItem(formData.value.code)
 		  successres('成功!')
@@ -3799,7 +3804,7 @@ const Plate = ref({ 印数: '' });
 	const uniqIds = yinbanSelection.value.map(item => item.UniqId).join(',');
 	console.log(uniqIds); 
     // 调用收回API,假设是批量删除接口
-    const res = await PrintDetailEdit({ id: uniqIds,number:Plate.value.印数})
+    const res = await PrintDetailEdit({ id: uniqIds,number:Plate.value.印数, sys_id: userStore.userInfo.nickName})
     
     if (res.code === 0) {
       ElMessage.success('收回成功')
@@ -4524,7 +4529,7 @@ const yinbaninvertSelection = () => {
 	if (dbclSelection.value !== '') {
 	  try {
 		//产量上报数据删除
-		const res1 = await ChanliangDel({UniqId: dbclSelection.value})
+		const res1 = await ChanliangDel({UniqId: dbclSelection.value, sys_id: userStore.userInfo.nickName})
 		if(res1.code === 0){
 		  successres('当班产量明细删除成功')
 		  dbclSelection.value = ''; // 清空当前选择记录
@@ -4782,7 +4787,7 @@ const yinbaninvertSelection = () => {
 	  }))
 	  console.log(dianjianselectData)
 	//   return;
-	  const response = await InspectionItemAdd(dianjianselectData);
+	  const response = await InspectionItemAdd(dianjianselectData.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 	  if (response.code === 0) {
 			successres('点检记录添加成功')
 			closedianjianDialog();
@@ -4858,14 +4863,14 @@ const yinbaninvertSelection = () => {
 	  })
 	  console.log(arrs)
 	  if(fujiastatus==1){
-		  const responses = await AdditionalInspectionRecordAdd(arrs);
+		  const responses = await AdditionalInspectionRecordAdd(arrs.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 		  fujiastatus=0
 	  }
 	  
 	  // 使用filter方法过滤掉所有result为"不检测"的对象
 	  const filteredData = zhibiaoselectData.value.filter(item => item.selected !== "不检测");
 	  console.log(filteredData);
-	  const response = await ProcessInspectionRecordsItemAdd(filteredData);
+	  const response = await ProcessInspectionRecordsItemAdd(filteredData.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 	  if (response.code === 0) {
 			successres('制程检验记录添加成功')
 			InspectionRecord()
@@ -5676,7 +5681,7 @@ onMounted(() => {
         sczl_rate8: formDatas.value.percentage10,
         sczl_rate9: formDatas.value.percentage9,
         sczl_rate10: formDatas.value.percentage8,
-        sys_id: '【'+MAC.value+'/'+JTMC+'】'
+        sys_id: userStore.userInfo.nickName
     })
     
     if (response.code === 0) {
@@ -5775,7 +5780,8 @@ onMounted(() => {
 			  status:'生产',
 			  production_now:0,
 			  production_all:0,
-			  team_id:currentBz.value.ID
+			  team_id:currentBz.value.ID,
+			  sys_id: userStore.userInfo.nickName
 			  })
 		  if(response.code===0){
 		detailShow.value = false
@@ -5793,7 +5799,7 @@ onMounted(() => {
 			  type: 'warning'
 		  }).then(() => {
 		console.log(UniqId)
-		const response = teamDel({UniqId:UniqId})
+		const response = teamDel({UniqId:UniqId, sys_id: userStore.userInfo.nickName})
 		response.then(result => {
 		  console.log(result)
 		  if(result.code===0){
@@ -5931,7 +5937,8 @@ onMounted(() => {
 			  status:'生产',
 			  production_now:0,
 			  production_all:0,
-			  team_id:formData.value.班组Id
+			  team_id:formData.value.班组Id,
+			  sys_id: userStore.userInfo.nickName
 			  })
 	  MachineWorkOrderEdits(row)
 	  if (res.code === 0) {

+ 2 - 1
src/view/yunyin/chanpinziliao/hhbiaozhungongdan.vue

@@ -2024,6 +2024,7 @@
         { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
         { label: '工序状态', prop: 'PD_WG', width: '90'},
         { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+        { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
       ]
   )
   const gxclhcformData = reactive({
@@ -2638,7 +2639,7 @@
       yj_ks: add_yjzlformdata['ks'],
       yj_ls: add_yjzlformdata['ls'],
       yj_desc: add_yjzlformdata['desc'],
-      Sys_id  : _username.value,
+      sys_id: userStore.userInfo.nickName,
     };
     const PrintDetailAdd_add = await PrintDetailAdd(formattedData);
     if(PrintDetailAdd_add.code === 0) {

+ 5 - 3
src/view/yunyin/huheguanli/huhebaogong.vue

@@ -1999,7 +1999,8 @@ const bzupdateCompanyFunc = (row) => {
 		  gy_name:formData.value.工序名称,
 		  sczl_bzdh:row.bz,
 		  status:'生产',
-		  team_id:formData.value.班组Id
+		  team_id:formData.value.班组Id,
+		  sys_id: userStore.userInfo.nickName
 	  })
 		console.log(res)
 	  if (res.code === 0) {
@@ -2026,8 +2027,9 @@ const sbupdateCompanyFunc = (row) => {
 			gy_name:row['工序名称'],
 			sczl_bzdh:BZMC.value,
 			status:'生产',
-			team_id:formData.value.班组ID
-	  })
+			team_id:formData.value.班组ID,
+			sys_id: userStore.userInfo.nickName
+		})
 		console.log(res)
 	  if (res.code === 0) {
 		  FacilityProduction()

+ 1 - 0
src/view/yunyin/huheguanli/huhechengpinrucang.vue

@@ -880,6 +880,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({

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

@@ -516,7 +516,7 @@ const rawenterDialog = async () => {
     const gduidArray = yblyselectedvalue.value.GDUID || [];
     const selectedIds = gduidArray.join(',');
     // 调用收回API,假设是批量删除接口
-    const res = await PrintDetailEdit({ id: selectedIds,number:Plate.印数})
+    const res = await PrintDetailEdit({ id: selectedIds,number:Plate.印数, sys_id: userStore.userInfo.nickName })
     
     if (res.code === 0) {
       ElMessage.success('收回成功')

+ 1 - 0
src/view/yunyin/shengchanguanli/chengpinrucang.vue

@@ -764,6 +764,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({

+ 1 - 0
src/view/yunyin/shengchanguanli/gongdanshengchan.vue

@@ -1149,6 +1149,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({

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

@@ -2047,6 +2047,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({
@@ -2661,7 +2662,7 @@ const add_gdyjenterDialog =  async  () => {
     yj_ks: add_yjzlformdata['ks'],
     yj_ls: add_yjzlformdata['ls'],
     yj_desc: add_yjzlformdata['desc'],
-    Sys_id  : _username.value,
+    Sys_id: userStore.userInfo.nickName,
   };
   const PrintDetailAdd_add = await PrintDetailAdd(formattedData);
   if(PrintDetailAdd_add.code === 0) {

+ 22 - 20
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -2831,7 +2831,7 @@ const handleBatchFixCoef = async () => {
 	}
 	let fail = 0
 	for (const target of targets) {
-		const res = await CoefficientEdit({ id: groups[target].join(','), 工价系数: target })
+		const res = await CoefficientEdit({ id: groups[target].join(','), 工价系数: target, sys_id: userStore.userInfo.nickName })
 		if (res.code !== 0) fail++
 	}
 	if (fail > 0) {
@@ -3012,7 +3012,7 @@ const coefBatchFix = async () => {
 	let fail = 0
 	for (const target of targets) {
 		const ids = [...new Set(groups[target])]
-		const res = await CoefficientEdit({ id: ids.join(','), 工价系数: target })
+		const res = await CoefficientEdit({ id: ids.join(','), 工价系数: target, sys_id: userStore.userInfo.nickName })
 		if (res.code !== 0) fail++
 	}
 
@@ -3616,7 +3616,7 @@ const deldbcl_onclick = async () => {
   if (dbclSelection.value !== '') {
     try {
       //产量上报数据删除
-      const res1 = await ChanliangDel({UniqId: dbclSelection.value})
+      const res1 = await ChanliangDel({UniqId: dbclSelection.value, sys_id: userStore.userInfo.nickName})
       if(res1.code === 0){
         ElMessage.success('当班产量明细删除成功')
         //当班产量明细
@@ -3914,7 +3914,7 @@ const JPenterDialogedit = async () => {
 	  
 	};
 	console.log(JPformattedData)
-	const JpChanliangEdit_edit = await JpChanliangEdit(JPformattedData);
+	const JpChanliangEdit_edit = await JpChanliangEdit({...JPformattedData, sys_id: userStore.userInfo.nickName});
 	console.log(JpChanliangEdit_edit)
 	if (JpChanliangEdit_edit.code === 0) {
 		JPchanliangVisibleedit.value = false
@@ -5377,7 +5377,7 @@ const Chanliangdel = async() => {
 		})
 		return
 	}
-    const res = await ChanliangDel({ UniqId:Selection_ids.value})
+    const res = await ChanliangDel({ UniqId:Selection_ids.value, sys_id: userStore.userInfo.nickName})
     if (res.code === 0) {
     ElMessage({
       type: 'success',
@@ -5551,12 +5551,12 @@ const zhichengDialog = async () => {
 	})
 	// return
 	if(fujiastatus==1){
-		const responses = await AdditionalInspectionRecordAdd(arrs);
+		const responses = await AdditionalInspectionRecordAdd(arrs.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 		fujiastatus=0
 	}
 	// 使用filter方法过滤掉所有result为"不检测"的对象
 	const filteredData = zhibiaoselectData.value.filter(item => item.selected !== "不检测");
-	const response = await ProcessInspectionRecordsItemAdd(filteredData);
+	const response = await ProcessInspectionRecordsItemAdd(filteredData.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 	if (response.code === 0) {
 	  ElMessage({
 	    type: 'success',
@@ -5883,7 +5883,7 @@ const onout = async () => {
     }
 
     console.log("提交数据:", requestData);
-    const response = await PrintDetailAdd(requestData);
+    const response = await PrintDetailAdd(requestData.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
     
 	if (response?.code === 0) {  
 		ElMessage.success("领出成功!");
@@ -5929,7 +5929,7 @@ const rawenterDialog = async () => {
 	const uniqIds = currentSelection.value.map(item => item.UniqId).join(',');
 	console.log(uniqIds); 
     // 调用收回API,假设是批量删除接口
-    const res = await PrintDetailEdit({ id: uniqIds,number:Plate.value.印数})
+    const res = await PrintDetailEdit({ id: uniqIds,number:Plate.value.印数, sys_id: userStore.userInfo.nickName })
     
     if (res.code === 0) {
       ElMessage.success('收回成功')
@@ -6137,7 +6137,7 @@ const dianjianenterDialog = async () => {
 
   // 调用接口提交数据
   try {
-    const res = await InspectionItemAdd(formattedData); // 替换成你的 API 方法
+    const res = await InspectionItemAdd(formattedData.map(item => ({...item, sys_id: userStore.userInfo.nickName}))); // 替换成你的 API 方法
     if (res.code === 0) {
       ElMessage.success("提交成功!");
       dianjiancloseDialog();
@@ -6292,7 +6292,7 @@ const selectBz_rcl = () => {
 		})
 		return
 	}
-	YieldTeamEdit({'Uniqid': Selection_ids.value, 'teamID': currentBz_rcl.value.ID}).then( res => {
+	YieldTeamEdit({'Uniqid': Selection_ids.value, 'teamID': currentBz_rcl.value.ID, sys_id: userStore.userInfo.nickName}).then( res => {
 		if(res.code==0){
 			ElMessage({
 			  type: 'success',
@@ -6690,7 +6690,7 @@ const addBz = async() => {
         sczl_rate8: formDatas.value.percentage10,
         sczl_rate9: formDatas.value.percentage9,
         sczl_rate10: formDatas.value.percentage8,
-        sys_id: sys_id
+        sys_id: userStore.userInfo.nickName
     })
     
     if (response.code === 0) {
@@ -6795,7 +6795,8 @@ const selectBz = async() => {
 			status:'生产',
 			production_now:0,
 			production_all:0,
-			team_id:currentBz.value.ID
+			team_id:currentBz.value.ID,
+			sys_id: userStore.userInfo.nickName
 			})
 		if(response.code===0){
 			ElMessage({
@@ -6818,7 +6819,7 @@ const delBz = async() => {
 		    cancelButtonText: '取消',
 		    type: 'warning'
 		}).then(() => {
-      const response = teamDel({UniqId:UniqId})
+      const response = teamDel({UniqId:UniqId, sys_id: userStore.userInfo.nickName})
 	  response.then(result => {
 	    if(result.code===0){
 		let messageType = 'success';
@@ -8410,7 +8411,7 @@ const handleFplbClickedit = (nodeData, node, component) => {
 	换版类型:formdata3.value.换版类型,
 	sczl_换版联拼数:formdata3.value.换版联拼数,
    }
-   const response = await MachineChanliangDetailEdit(restoredData);
+   const response = await MachineChanliangDetailEdit({...restoredData, sys_id: userStore.userInfo.nickName});
    if (response.code === 0) {
  	  ElMessage({
  	    type: 'success',
@@ -8468,7 +8469,7 @@ if(selected.value==='难度调整系数'){
  //核算调整弹窗确定
  const hesuanenterDialog = async () => {
  if(selected.value==='难度调整系数'){
-	const res = await CoefficientEdit({id:Selection_ids.value,工价系数:hesuanValue.缩放系数 })
+	const res = await CoefficientEdit({id:Selection_ids.value,工价系数:hesuanValue.缩放系数, sys_id: userStore.userInfo.nickName })
 	if(res.code===0){
 		ElMessage({
 		  type: 'success',
@@ -8483,7 +8484,7 @@ if(selected.value==='难度调整系数'){
 		})
 	}
  }else if(selected.value=== '凹印版距'){
-	 	  const res = await PrintingModeDataEdit({id:Selection_ids.value,plate:hesuanValue.产品板距,mode:hesuanValue.印刷方式 })
+	 	  const res = await PrintingModeDataEdit({id:Selection_ids.value,plate:hesuanValue.产品板距,mode:hesuanValue.印刷方式, sys_id: userStore.userInfo.nickName })
 	 	  if(res.code===0){
 	 	  	ElMessage({
 	 	  	  type: 'success',
@@ -8498,7 +8499,7 @@ if(selected.value==='难度调整系数'){
 	 	  	})
 	 }
  }else if(selected.value=== '色度数'){
-	  const res = await ChromaDataEdit({id:Selection_ids.value,ms:hesuanValue.色度数 })
+	  const res = await ChromaDataEdit({id:Selection_ids.value,ms:hesuanValue.色度数, sys_id: userStore.userInfo.nickName })
 	  if(res.code===0){
 	  	ElMessage({
 	  	  type: 'success',
@@ -8513,7 +8514,7 @@ if(selected.value==='难度调整系数'){
 	  	})
 	  }
  }else if(selected.value=== '废品率系数'){
-	  const res = await RejectionEdit({id:Selection_ids.value,rejection:hesuanValue.废品率系数 })
+	  const res = await RejectionEdit({id:Selection_ids.value,rejection:hesuanValue.废品率系数, sys_id: userStore.userInfo.nickName })
 	  if(res.code===0){
 	  	ElMessage({
 	  	  type: 'success',
@@ -8872,6 +8873,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({
@@ -9094,7 +9096,7 @@ const record_outRow = async (row, index) => {
 
     console.log('领出请求参数:', requestData);
 
-			  const Bomdel_del = await PrintDetailAdd(requestData);
+			  const Bomdel_del = await PrintDetailAdd(requestData.map(item => ({...item, sys_id: userStore.userInfo.nickName})));
 			  if (Bomdel_del.code === 0) {
 				  ElMessage({
 					  type: 'success',

+ 1 - 0
src/view/yunyin/shengchanguanli/shengchanjincheng.vue

@@ -293,6 +293,7 @@ const gxclhc_Columns = ref(
       { label: '当前设备', prop: 'Gy0_sbbh', width: '120' },
       { label: '工序状态', prop: 'PD_WG', width: '90'},
       { label: '首板生产日期', prop: 'sczl_rq', width: '160' },
+      { label: '末版生产日期', prop: 'sczl_sj2', width: '160' },
     ]
 )
 const gxclhcformData = reactive({

Неке датотеке нису приказане због велике количине промена