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 @@