From f68d3c71819feb59e7a227a5d992b059b900916c Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期五, 28 三月 2025 08:28:26 +0800 Subject: [PATCH] 修改报表,界面添加查询流程卡个数,调整推送数据到前端的间隔 --- UI-Project/src/views/PurchaseReturn/purchaseReturn.vue | 135 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 135 insertions(+), 0 deletions(-) diff --git a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue index dd073d0..c3cef19 100644 --- a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue +++ b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue @@ -949,6 +949,26 @@ console.error(error); } } +// 閽㈠寲鐐� +const handleal11 = async () => { + try { + const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { + temperingLayoutId: currenttemperingLayoutId.value, + engineerId: currentengineerId.value, + state: 2, + }) + if (response.code == 200) { + ElMessage.success('鎴愬姛锛�'); + blinda.value = false; + } else { + ElMessage.error(response.message); + } +} +catch (error) { + // 澶勭悊閿欒 + console.error(error); + } +} // 杩涚倝鍓嶄汉宸ユ嬁璧� const takeouta = async () => { try { @@ -1014,12 +1034,50 @@ console.error(error); } } +const handleall1 = async () => { + try { + const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { + temperingLayoutId: currenttemperingLayoutId.value, + engineerId: currentengineerId.value, + state: 3, + }) + if (response.code == 200) { + ElMessage.success('鎴愬姛锛�'); + blind1.value = false; + } else { + ElMessage.error(response.message); + } +} +catch (error) { + // 澶勭悊閿欒 + console.error(error); + } +} const handletakeall33 = async () => { try { const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { temperingLayoutId: currenttemperingLayoutId.value, engineerId: currentengineerId.value, state: 9, + }) + if (response.code == 200) { + ElMessage.success('鎴愬姛锛�'); + blind3.value = false; + } else { + ElMessage.error(response.message); + } +} +catch (error) { + // 澶勭悊閿欒 + console.error(error); + } +} +const handleall3 = async () => { + try { + const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { + temperingLayoutId: currenttemperingLayoutId.value, + engineerId: currentengineerId.value, + state: 3, }) if (response.code == 200) { ElMessage.success('鎴愬姛锛�'); @@ -1052,6 +1110,25 @@ console.error(error); } } +const handleall2 = async () => { + try { + const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { + temperingLayoutId: currenttemperingLayoutId.value, + engineerId: currentengineerId.value, + state: 3, + }) + if (response.code == 200) { + ElMessage.success('鎴愬姛锛�'); + blind2.value = false; + } else { + ElMessage.error(response.message); + } +} +catch (error) { + // 澶勭悊閿欒 + console.error(error); + } +} const handletakeall44 = async () => { try { const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { @@ -1071,12 +1148,51 @@ console.error(error); } } +const handleall4 = async () => { + try { + const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { + temperingLayoutId: currenttemperingLayoutId.value, + engineerId: currentengineerId.value, + state: 3, + }) + if (response.code == 200) { + ElMessage.success('鎴愬姛锛�'); + blind4.value = false; + } else { + ElMessage.error(response.message); + } +} +catch (error) { + // 澶勭悊閿欒 + console.error(error); + } +} const handletakeall4 = async () => { try { const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { temperingLayoutId: currenttemperingLayoutId.value, engineerId: currentengineerId.value, state: 9, + }) + if (response.code == 200) { + ElMessage.success('鎴愬姛锛�'); + blind4.value = false; + } else { + ElMessage.error(response.message); + } +} +catch (error) { + // 澶勭悊閿欒 + console.error(error); + } +} +// 鍑虹墖 +const handleall14 = async () => { + try { + const response = await request.post('/temperingGlass/temperingGlassInfo/updateTemperingStateAll', { + temperingLayoutId: currenttemperingLayoutId.value, + engineerId: currentengineerId.value, + state: 4, }) if (response.code == 200) { ElMessage.success('鎴愬姛锛�'); @@ -1484,6 +1600,9 @@ <el-button type="info" plain @click="handletakeall1" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> {{ $t('order.takeall') }} </el-button> + <el-button type="info" plain @click="handleall1" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> + {{ $t('processCard.outfurnace') }} + </el-button> </el-dialog> <el-dialog v-model="blind2" top="30vh" width="15%" style="text-align: center;" @close="handleDialogClose2"> <el-button :disabled="!canSelectProject2" type="warning" plain :icon="Delete" @click="handleDamage2" style="width: 150px;margin-left: 10px;"> @@ -1495,6 +1614,9 @@ </el-button> <el-button type="info" plain @click="handletakeall2" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> {{ $t('order.takeall') }} + </el-button> + <el-button type="info" plain @click="handleall2" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> + {{ $t('processCard.outfurnace') }} </el-button> </el-dialog> <el-dialog v-model="blind3" top="30vh" width="15%" style="text-align: center;" @close="handleDialogClose3"> @@ -1508,6 +1630,9 @@ <el-button type="info" plain @click="handletakeall33" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> {{ $t('order.takeall') }} </el-button> + <el-button type="info" plain @click="handleall3" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> + {{ $t('processCard.outfurnace') }} + </el-button> </el-dialog> <el-dialog v-model="blind4" top="30vh" width="15%" style="text-align: center;" @close="handleDialogClose4"> <el-button :disabled="!canSelectProject4" type="warning" plain :icon="Delete" @click="handleDamage4" style="width: 150px;margin-left: 10px;"> @@ -1519,6 +1644,9 @@ </el-button> <el-button type="info" plain @click="handletakeall44" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> {{ $t('order.takeall') }} + </el-button> + <el-button type="info" plain @click="handleall4" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> + {{ $t('processCard.outfurnace') }} </el-button> </el-dialog> <!-- 杩涚倝鍓� --> @@ -1536,6 +1664,9 @@ <el-button type="info" plain @click="handletakeall3" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> {{ $t('order.takeall') }} </el-button> + <el-button type="info" plain @click="handleal11" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> + {{ $t('processCard.intofurnace') }} + </el-button> </el-dialog> <!-- 宸插嚭鐐� --> <el-dialog v-model="blindb" top="30vh" width="15%" style="text-align: center;" @close="handleDialogCloseb"> @@ -1549,6 +1680,10 @@ <el-button type="info" plain @click="handletakeall4" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> {{ $t('order.takeall') }} </el-button> + + <el-button type="info" plain @click="handleall14" :disabled="!cantakeall" style="width: 150px;margin-left: 10px;margin-top: 10px;"> + {{ $t('searchOrder.outfilm') }} + </el-button> <!-- <el-button type="success" plain :icon="Edit" @click="takeonb" :disabled="!canonb" style="width: 150px;margin-left: 10px;margin-top: 10px;"> {{ $t('order.takeon') }} </el-button> --> -- Gitblit v1.8.0