From a04635bb4b97756e39e4535a60003d3974884689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 23 Feb 2024 11:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E6=96=99=E8=AE=A1=E5=88=92=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparetoissueMain.data.ts | 2 +- .../productionplan/productionMain/index.vue | 31 +++---------------- 2 files changed, 6 insertions(+), 27 deletions(-) diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts index 128eeb46e..2337788fe 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts @@ -409,7 +409,7 @@ export const PreparetoissueMain = useCrudSchemas(reactive([ isDetail: false, isForm: false, table: { - width: 300, + width: 220, fixed: 'right' }, } diff --git a/src/views/wms/productionManage/productionplan/productionMain/index.vue b/src/views/wms/productionManage/productionplan/productionMain/index.vue index d6d03d5c7..088faf7b7 100644 --- a/src/views/wms/productionManage/productionplan/productionMain/index.vue +++ b/src/views/wms/productionManage/productionplan/productionMain/index.vue @@ -232,11 +232,7 @@ const butttondata = (row) => { const buttonTableClick = async (val, row) => { if (val == 'mainPlanOpe') { // 打开 tableObject.loading = true - await ProductionMainApi.open(row.id).then(async () => { - await ProductionMainApi.generateRequest(row.number).then(() => { - }).catch(err => { - console.log(err) - }) + await ProductionMainApi.open(row.id).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -259,11 +255,7 @@ const buttonTableClick = async (val, row) => { if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') await message.confirm('确认要提交审批吗?') tableObject.loading = true - await ProductionMainApi.submit(row.id).then(async () => { - await ProductionMainApi.generateRequest(row.number).then(() => { - }).catch(err => { - console.log(err) - }) + await ProductionMainApi.submit(row.id).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -286,11 +278,7 @@ const buttonTableClick = async (val, row) => { if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') await message.confirm('确认要审批通过吗?') tableObject.loading = true - await ProductionMainApi.agree(row.id).then(async () => { - await ProductionMainApi.generateRequest(row.number).then(() => { - }).catch(err => { - console.log(err) - }) + await ProductionMainApi.agree(row.id).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -318,11 +306,7 @@ const buttonTableClick = async (val, row) => { return } tableObject.loading = true - await ProductionMainApi.publish(row.id).then(async () => { - await ProductionMainApi.generateRequest(row.number).then(() => { - }).catch(err => { - console.log(err) - }) + await ProductionMainApi.publish(row.id).then(() => { message.success(t('common.updateSuccess')) tableObject.loading = false getList() @@ -460,12 +444,7 @@ const submitForm = async (formType, data) => { try { if (formType === 'create') { data.subList = tableData.value // 拼接子表数据参数 - await ProductionMainApi.createProductionMain(data).then(async res => { - await ProductionMainApi.generateRequest(res).catch(err => { - formRef.value.formLoading = false - console.log(err) - }) - }) + await ProductionMainApi.createProductionMain(data) message.success(t('common.createSuccess')) } else { await ProductionMainApi.updateProductionMain(data)