diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index 163060777..80dbd8b06 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -247,13 +247,14 @@ const buttonTableClick = async (val, row) => { } else if (val == 'mainJobAba') { // 放弃 console.log('列表-操作按钮事件-放弃') await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(row.masterId) - getList() + buttonBaseClick('refresh',null) } else if (val == 'mainJobClo') { // 拒收 handleClose(row.masterId) + buttonBaseClick('refresh',null) } else if (val == 'mainJobAcc') { // 承接 console.log('列表-操作按钮事件-承接') await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(row.masterId) - getList() + buttonBaseClick('refresh',null) } else if(val == 'mainPlanCheckQualityReport'){ // 查看质检报告 checkQualityReport(row) @@ -277,7 +278,7 @@ const handleClose = async (id: number) => { await message.confirm(t('common.confirmColse')) await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id) message.success(t('common.closeSuccess')) - await getList() + buttonBaseClick('refresh',null) } catch {} } const resonSubmit = async (row)=>{ @@ -308,7 +309,7 @@ const handleRefusal = async (id: number,refuseReason:string) => { try { await PurchasereceiptJobMainApi.refusalPurchasereceiptJobMain({id,refuseReason}) message.success(t('common.refusalSuccess')) - await getList() + buttonBaseClick('refresh',null) } catch {} } diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue index 5cc9df20b..b51dbbefd 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue @@ -215,7 +215,7 @@ const handleCreatePutawayRequest = async (number:string) => { tableObject.loading = true await PurchasereceiptRecordMainApi.createPutawayRequest(number) message.success(t('ts.上架申请生成成功')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -228,7 +228,7 @@ const handleCreateInspectRequest = async (number:string) => { tableObject.loading = true await PurchasereceiptRecordMainApi.createInspectRequest(number) message.success(t('ts.到货检验申请生成成功')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue index da3542515..6ca6e1ef0 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordRefuseMain/index.vue @@ -204,7 +204,7 @@ const handleCreatePutawayRequest = async (number:string) => { tableObject.loading = true await PurchasereceiptRecordMainApi.createPutawayRequest(number) message.success(t('ts.上架申请生成成功')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -217,7 +217,7 @@ const handleCreateInspectRequest = async (number:string) => { tableObject.loading = true await PurchasereceiptRecordMainApi.createInspectRequest(number) message.success(t('ts.到货检验申请生成成功')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 2fe873942..d7dd91517 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -678,7 +678,7 @@ const handleClose = async (id: number) => { tableObject.loading = true await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id) message.success(t('common.closeSuccess')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -691,7 +691,7 @@ const handleReAdd = async (id: number) => { tableObject.loading = true await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id) message.success(t('common.reAddSuccess')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -705,7 +705,7 @@ const handleAgree = async (id: number) => { await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id) message.success(t('common.agreeSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -719,7 +719,7 @@ const handleRefused = async (id: number) => { await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id) message.success(t('common.refusedSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -733,7 +733,7 @@ const handleHandle = async (id: number) => { await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id) message.success(t('common.handleSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -747,7 +747,7 @@ const handleSubmit = async (id: number) => { await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id) message.success(t('common.submitSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -819,7 +819,11 @@ const submitForm = async (formType, submitData) => { } formRef.value.dialogVisible = false // 刷新当前列表 - getList() + if (formType === 'create') { + getList() + }else{ + buttonBaseClick('refresh',null) + } } finally { formRef.value.formLoading = false } diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue index 558faf3a5..d472bab8e 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue @@ -607,7 +607,7 @@ const handleClose = async (id: number) => { tableObject.loading = true await PurchasereceiptRequestMainApi.closePurchasereceiptRequestMain(id) message.success(t('common.closeSuccess')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -620,7 +620,7 @@ const handleReAdd = async (id: number) => { tableObject.loading = true await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id) message.success(t('common.reAddSuccess')) - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -634,7 +634,7 @@ const handleAgree = async (id: number) => { await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id) message.success(t('common.agreeSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -648,7 +648,7 @@ const handleRefused = async (id: number) => { await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id) message.success(t('common.refusedSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -662,7 +662,7 @@ const handleHandle = async (id: number) => { await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id) message.success(t('common.handleSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -676,7 +676,7 @@ const handleSubmit = async (id: number) => { await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id) message.success(t('common.submitSuccess')) tableObject.loading = false - await getList() + buttonBaseClick('refresh',null) }catch{}finally{ tableObject.loading = false } @@ -747,7 +747,11 @@ const submitForm = async (formType, submitData) => { } formRef.value.dialogVisible = false // 刷新当前列表 - getList() + if (formType === 'create') { + getList() + }else{ + buttonBaseClick('refresh',null) + } } finally { formRef.value.formLoading = false } diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue index 2c527f4ad..76e6d66a4 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue @@ -207,7 +207,7 @@ const handleExecuteSpare = async (id: number) => { await message.confirm("是否确认执行任务!") await PurchasereceiptJobMainApi.executePurchasereceiptJobMainSpare(id) message.success("执行成功") - await getList() + buttonBaseClick('refresh',null) } catch {} } @@ -217,7 +217,7 @@ const handleAbandon = async (id: number) => { await message.confirm("是否确认取消承接!") await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(id) message.success("放弃成功") - await getList() + buttonBaseClick('refresh',null) } catch {} } @@ -227,7 +227,7 @@ const handleClose = async (id: number) => { await message.confirm(t('common.confirmColse')) await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id) message.success(t('common.closeSuccess')) - await getList() + buttonBaseClick('refresh',null) } catch {} } @@ -237,7 +237,7 @@ const handleAccept = async (id: number) => { await message.confirm("是否承接任务!") await PurchasereceiptJobMainApi.acceptPurchasereceiptJobMain(id) message.success("承接成功") - await getList() + buttonBaseClick('refresh',null) } catch {} } // 获取部门 用于详情 部门回显