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