From 186c563fa492893412ba74f728e0dc373c940535 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 26 Dec 2024 09:25:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=93=E9=A1=B9?= =?UTF-8?q?=E8=BF=94=E5=88=A9=E9=A2=84=E6=8F=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../specialrebatewithholding.vue | 14 ++-------- .../specialrebatewithholdingAdd.vue | 27 ++++++++++--------- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholding.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholding.vue index ff42f6624e..65791cdc7a 100644 --- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholding.vue +++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholding.vue @@ -94,7 +94,6 @@ import req from '@/api/specialrebate/specialrebatewithholding' import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' -import { getOrgSidByPath } from '@/api/cheliang/dictcommons' import specialrebatewithholdingAdd from './specialrebatewithholdingAdd' import specialrebatewithholdingInfo from './specialrebatewithholdingInfo' import { getStorage } from '@/utils/auth' @@ -170,7 +169,7 @@ export default { }, created() { // 加载列表 - this.init() + this.getList() }, mounted() { // 在外部vue的window上添加postMessage的监听,而且绑定处理函数handleMessage @@ -184,7 +183,6 @@ export default { code = event.data.params.code } if (code === 1) { - this.init() this.centerDialogVisible = false } else if (code === 2) { this.dialogHeight = event.data.params.data @@ -207,14 +205,6 @@ export default { } this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params))) }, - init() { - getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { - if (resp.success) { - this.listQuery.params.createOrgSid = resp.data - this.getList() - } - }) - }, // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow @@ -301,7 +291,7 @@ export default { }, toAdd() { this.viewState = 2 - this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) + this.$refs['divAdd'].showAdd() }, toEdit(row) { this.viewState = 3 diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholdingAdd.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholdingAdd.vue index d94bb7cb6d..740b2c1d30 100644 --- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholdingAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatewithholding/specialrebatewithholdingAdd.vue @@ -81,7 +81,7 @@