Forráskód Böngészése

fix:财务管理新增入账-归属公司查询地址修改

lazy 6 hónapja%!(EXTRA string=óta)
szülő
commit
d2e9994278

+ 9 - 0
src/api/financialManagement/financialManagement.js

@@ -44,6 +44,15 @@ export const getCompanyOwnership = (params) => (
   })
 )
 
+// 财务管理新增出入帐--归属公司字典查询
+export const getCompanyOwnershipTemp = (params) => (
+  request({
+    url: '/cashFlow/dict/getByCode',
+    method: 'get',
+    params: params
+  })
+)
+
 // 获取资方公司归属
 export const getInstitutionName = (params) => (
   request({

+ 7 - 5
src/views/financialManagement/components/AddAccountsContent.vue

@@ -178,9 +178,9 @@
 </template>
 <script>
 import { mapGetters } from 'vuex'
-import { getEnterprises, getAttributionOfAccount, getCompanyOwnership, getInstitutionName, getNocapitalBankName, getBankCardNo, getBusinessType, getCpitalBankName, cashFlowGetEntryDetail } from '@/api/financialManagement/financialManagement'
+import { getEnterprises, getAttributionOfAccount, getCompanyOwnershipTemp, getInstitutionName, getNocapitalBankName, getBankCardNo, getBusinessType, getCpitalBankName, cashFlowGetEntryDetail } from '@/api/financialManagement/financialManagement'
 // cashFlowGetExitDetail
-import { codeChangeName, filterListData } from '@/utils/index'
+import { codeChangeName } from '@/utils/index'
 export default {
   components: {
     UnifiedEditor: () => import('@/components/UnifiedEditor/index.vue')
@@ -266,9 +266,11 @@ export default {
         const attributionOfAccountCode = codeChangeName(this.attributionOfAccountList, attributionOfAccountId, 'id', 'code')
         let list = []
         if (attributionOfAccountCode === 'longSilver') {
-          list = filterListData(this.companyOwnershipList, ['shang_hai_ao_hong', 'xi_an_ao_hong', 'shan_xi_ka_fubao', 'shen_zhen_chang_yin_bao', 'shang_hai_ke_fubao'])
+          list = this.companyOwnershipList.filter(el => el.value === '1181')
+          // list = filterListData(this.companyOwnershipList, ['shang_hai_ao_hong', 'xi_an_ao_hong', 'shan_xi_ka_fubao', 'shen_zhen_chang_yin_bao', 'shang_hai_ke_fubao'])
         } else if (attributionOfAccountCode === 'noLongSilver') {
-          list = filterListData(this.companyOwnershipList, ['zi_guan', 'factoring', 'investment', 'shen_zhen_chang_yin', 'shang_hai_yin_guo'])
+          // list = filterListData(this.companyOwnershipList, ['zi_guan', 'factoring', 'investment', 'shen_zhen_chang_yin', 'shang_hai_yin_guo'])
+          list = this.companyOwnershipList.filter(el => el.value === '1182')
         }
         return list
       }
@@ -399,7 +401,7 @@ export default {
       })
     },
     getCompanyOwnership() {
-      getCompanyOwnership({ parentCode: 'companyOwnership' }).then(response => {
+      getCompanyOwnershipTemp({ code: 'companyOwnership' }).then(response => {
         this.companyOwnershipList = response.data
       })
     },