From c9da71e7ab62578ab91ac42dccbdaab871f24d01 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Thu, 6 Jun 2024 11:39:10 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en-US.ts | 3 +- src/locales/zh-CN.ts | 3 +- src/utils/disposition/defaultButtons.ts | 2 +- .../supplierdeliver/purchaseMain/index.vue | 50 +++++++++++++++++-- 4 files changed, 51 insertions(+), 7 deletions(-) diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 9b78379e3..3c66794e2 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1124,7 +1124,8 @@ export default { 邮箱:'Mail', 今日:'Today', 请输入驳回原因:'Please enter the reason for rejection', - '驳回原因不能为空,且不超过60字':'The reason for rejection cannot be empty and cannot exceed 60 words' + '驳回原因不能为空,且不超过60字':'The reason for rejection cannot be empty and cannot exceed 60 words', + 批量发布:'Batch release' }, diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index d0efaf74e..d31022a59 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1124,7 +1124,8 @@ export default { 邮箱:'邮箱', 今日:'今日', 请输入驳回原因:'请输入驳回原因', - '驳回原因不能为空,且不超过60字':'驳回原因不能为空,且不超过60字' + '驳回原因不能为空,且不超过60字':'驳回原因不能为空,且不超过60字', + 批量发布:'批量发布' }, diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 1bf11445b..25cb20558 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -559,7 +559,7 @@ export function mainListOrderPubBtn(option:any) { // 主列表-订单流程-批量发布按钮 export function mainListSelectionOrderPubBtn(option:any) { return __defaultBtnOption(option,{ - label: t(`ts.发布`).replace('ts.', ''), + label: t(`ts.批量发布`).replace('ts.', ''), name: 'mainOrderSelectionPub', hide: false, type: 'primary', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue index 5664f6f56..780e58776 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue @@ -1,7 +1,7 @@ + + + diff --git a/src/views/eam/equipmentRepairJobMain/index.vue b/src/views/eam/equipmentRepairJobMain/index.vue index 2d5d60699..dbfbfb27e 100644 --- a/src/views/eam/equipmentRepairJobMain/index.vue +++ b/src/views/eam/equipmentRepairJobMain/index.vue @@ -50,6 +50,8 @@ :isBusiness="false" /> + + { handleReceive(row.id) } else if (val == 'execute') { // 执行 handleExecute(row.id) + } else if (val == 'finish') { // 完成 + handleFinish(row) } @@ -220,6 +230,16 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue, 'basicEquipmentRepairJobMain') } +/** 完成按钮操作 */ +const finishForm2Ref = ref() +const handleFinish = async (row) => { + // 二次确认 + await message.delConfirm('是否完成所选中工单?'); + + //打开提交表单 + finishForm2Ref.value.open('update', row); +} + /** 接单按钮操作 */ const handleReceive = async (id: number) => { try { @@ -271,6 +291,32 @@ const handleDelete = async (id: number) => { } catch {} } + + +//finishForm2 关闭按钮回传 +const getClosed2=(val)=> { + nextTick?.(() => { + getList() + }) +} + +//finishForm2 提交按钮回传 +const getData2=(val)=> { + nextTick?.(async () => { + const params = ref({ + id: '', + status: '', + }) + params.value.id = val + params.value.status = '5' + // 发起 + await EquipmentRepairJobMainApi.executeEquipmentRepairJobMain(params.value) + message.success(t('工单已完成')) + // 刷新列表 + await getList() + }) +} + /** 导出按钮操作 */ const exportLoading = ref(false) // 导出的加载中 const handleExport = async () => {