|
@@ -1683,7 +1683,7 @@ const handleConfirm = async () => {
|
|
|
} else if (status.value === '停产') {
|
|
} else if (status.value === '停产') {
|
|
|
statusCode = 2;
|
|
statusCode = 2;
|
|
|
}
|
|
}
|
|
|
- const data = await setProductStatus({ code: code, status: statusCode });
|
|
|
|
|
|
|
+ const data = await setProductStatus({ code: code, status: statusCode, sys_id: userStore.userInfo.nickName });
|
|
|
if (data.code === 0) {
|
|
if (data.code === 0) {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -1910,7 +1910,8 @@ const gxdqcpgx = async () => {
|
|
|
Gy0_yjno: item.Gy0_yjno,
|
|
Gy0_yjno: item.Gy0_yjno,
|
|
|
Gy0_gxh: item.Gy0_gxh,
|
|
Gy0_gxh: item.Gy0_gxh,
|
|
|
Gy0_Ks: item.Gy0_Ks,
|
|
Gy0_Ks: item.Gy0_Ks,
|
|
|
- Gy0_ls: item.Gy0_ls
|
|
|
|
|
|
|
+ Gy0_ls: item.Gy0_ls,
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
const editGyNamedata = await editGyNo(formattedData);
|
|
const editGyNamedata = await editGyNo(formattedData);
|
|
@@ -2271,6 +2272,7 @@ const gygmhandleConfirm = async () => {
|
|
|
params.code = gyformData.process;
|
|
params.code = gyformData.process;
|
|
|
params.old_name = gyformData.originalName;
|
|
params.old_name = gyformData.originalName;
|
|
|
params.new_name = gyformData.newName;
|
|
params.new_name = gyformData.newName;
|
|
|
|
|
+ params.sys_id = userStore.userInfo.nickName;
|
|
|
//确定后清空 工艺方案原名 输入框
|
|
//确定后清空 工艺方案原名 输入框
|
|
|
gyformData.originalName = ''
|
|
gyformData.originalName = ''
|
|
|
//确定后清空 工艺方案新名 输入框
|
|
//确定后清空 工艺方案新名 输入框
|
|
@@ -2336,7 +2338,8 @@ const jsssxzConfirm = async () => {
|
|
|
Gy0_Ks: item.Gy0_Ks,
|
|
Gy0_Ks: item.Gy0_Ks,
|
|
|
Gy0_ls:item.Gy0_ls,
|
|
Gy0_ls:item.Gy0_ls,
|
|
|
Add_gxmc: item.Add_gxmc,
|
|
Add_gxmc: item.Add_gxmc,
|
|
|
- remark: item.remark
|
|
|
|
|
|
|
+ remark: item.remark,
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
const editeditGyMs = await editGyMs(formattedData);
|
|
const editeditGyMs = await editGyMs(formattedData);
|
|
@@ -2401,7 +2404,8 @@ const fjfpxsConfirm = async () => {
|
|
|
artificial_fj: parseFloat(item.artificial_fj) || item.artificial_fj === 0 ? parseFloat(item.artificial_fj).toFixed(3) : "0.000",
|
|
artificial_fj: parseFloat(item.artificial_fj) || item.artificial_fj === 0 ? parseFloat(item.artificial_fj).toFixed(3) : "0.000",
|
|
|
machine_zp: parseFloat(item.machine_zp) || item.machine_zp === 0 ? parseFloat(item.machine_zp).toFixed(3) : "0.000",
|
|
machine_zp: parseFloat(item.machine_zp) || item.machine_zp === 0 ? parseFloat(item.machine_zp).toFixed(3) : "0.000",
|
|
|
machine_cp: parseFloat(item.machine_cp) || item.machine_cp === 0 ? parseFloat(item.machine_cp).toFixed(3) : "0.000",
|
|
machine_cp: parseFloat(item.machine_cp) || item.machine_cp === 0 ? parseFloat(item.machine_cp).toFixed(3) : "0.000",
|
|
|
- machine_fj: parseFloat(item.machine_fj) || item.machine_fj === 0 ? parseFloat(item.machine_fj).toFixed(3) : "0.000"
|
|
|
|
|
|
|
+ machine_fj: parseFloat(item.machine_fj) || item.machine_fj === 0 ? parseFloat(item.machine_fj).toFixed(3) : "0.000",
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
const editGyWastes = await editGyWaste(formattedData);
|
|
const editGyWastes = await editGyWaste(formattedData);
|
|
@@ -2495,7 +2499,8 @@ const pccstzConfirm = async () => {
|
|
|
shdh: item.Gy0_shdh,
|
|
shdh: item.Gy0_shdh,
|
|
|
machine: item.Gy0_sbbh,
|
|
machine: item.Gy0_sbbh,
|
|
|
time: item.Gy0_辅助工时,
|
|
time: item.Gy0_辅助工时,
|
|
|
- Gy0_site: item.Gy0_site
|
|
|
|
|
|
|
+ Gy0_site: item.Gy0_site,
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
// 调预览接口,看有多少未开工工单会被影响
|
|
// 调预览接口,看有多少未开工工单会被影响
|
|
@@ -2513,7 +2518,9 @@ const pccstzConfirm = async () => {
|
|
|
const doEditGyAfterPreview = async () => {
|
|
const doEditGyAfterPreview = async () => {
|
|
|
editPreviewSubmitting.value = true;
|
|
editPreviewSubmitting.value = true;
|
|
|
try {
|
|
try {
|
|
|
- const editGy_edit = await editGy(pendingEditGyData.value);
|
|
|
|
|
|
|
+ const editGy_edit = await editGy(
|
|
|
|
|
+ pendingEditGyData.value.map(item => ({ ...item, sys_id: userStore.userInfo.nickName }))
|
|
|
|
|
+ );
|
|
|
if (editGy_edit.code === 0) {
|
|
if (editGy_edit.code === 0) {
|
|
|
ElMessage({ type: 'success', message: '更新成功' })
|
|
ElMessage({ type: 'success', message: '更新成功' })
|
|
|
} else {
|
|
} else {
|
|
@@ -2619,6 +2626,7 @@ const hscstzConfirm = async () => {
|
|
|
loss_coe: item.loss_coe,
|
|
loss_coe: item.loss_coe,
|
|
|
ms_coe: item.ms_coe,
|
|
ms_coe: item.ms_coe,
|
|
|
shdh: item.Gy0_shdh?item.Gy0_shdh:'',
|
|
shdh: item.Gy0_shdh?item.Gy0_shdh:'',
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName,
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
const hscstz_edit = await editGy(formattedData);
|
|
const hscstz_edit = await editGy(formattedData);
|
|
@@ -2820,7 +2828,7 @@ const delgd_delclick = async () => {
|
|
|
|
|
|
|
|
if (yjSelection.value !== '') {
|
|
if (yjSelection.value !== '') {
|
|
|
deletePromises.push(
|
|
deletePromises.push(
|
|
|
- PrintlDel({UniqId: yjSelection.value})
|
|
|
|
|
|
|
+ PrintlDel({UniqId: yjSelection.value, sys_id: userStore.userInfo.nickName})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
ElMessage.success('印件资料删除成功')
|
|
ElMessage.success('印件资料删除成功')
|
|
@@ -3018,6 +3026,7 @@ const enterDialog = async () => {
|
|
|
'计量单位': formDataTest['计量单位'],
|
|
'计量单位': formDataTest['计量单位'],
|
|
|
'成品规格': formDataTest['成品规格'],
|
|
'成品规格': formDataTest['成品规格'],
|
|
|
'产品备注': formDataTest['产品备注'],
|
|
'产品备注': formDataTest['产品备注'],
|
|
|
|
|
+ 'sys_id': userStore.userInfo.nickName,
|
|
|
};
|
|
};
|
|
|
const editProductedit = await editProduct(formattedData);
|
|
const editProductedit = await editProduct(formattedData);
|
|
|
if (editProductedit.code === 0) {
|
|
if (editProductedit.code === 0) {
|
|
@@ -4416,7 +4425,7 @@ const createROLuckyExcel = (files) => {
|
|
|
|
|
|
|
|
//===============工艺排序===================
|
|
//===============工艺排序===================
|
|
|
const Process_sorting = async() => {
|
|
const Process_sorting = async() => {
|
|
|
- const response = await ProductYgSort({cpdh:_Gd_gdbh.value,yjno:currentGy0_yjno.value})
|
|
|
|
|
|
|
+ const response = await ProductYgSort({cpdh:_Gd_gdbh.value,yjno:currentGy0_yjno.value,sys_id:userStore.userInfo.nickName})
|
|
|
if(response.code==0){
|
|
if(response.code==0){
|
|
|
ElMessage({type:'success',message: '排序成功'})
|
|
ElMessage({type:'success',message: '排序成功'})
|
|
|
const res = await getProductData({product_code:_product_code.value});
|
|
const res = await getProductData({product_code:_product_code.value});
|