|
@@ -179,6 +179,7 @@
|
|
|
<script>
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { getEnterprises, getAttributionOfAccount, getCompanyOwnership, getInstitutionName, getNocapitalBankName, getBankCardNo, getBusinessType, getCpitalBankName, cashFlowGetEntryDetail } from '@/api/financialManagement/financialManagement'
|
|
|
+// cashFlowGetExitDetail
|
|
|
import { codeChangeName, filterListData } from '@/utils/index'
|
|
|
export default {
|
|
|
components: {
|
|
@@ -292,7 +293,14 @@ export default {
|
|
|
this.getAttributionOfAccount()
|
|
|
this.getCompanyOwnership()
|
|
|
this.getInstitutionName()
|
|
|
- this.cashFlowGetEntryDetail()
|
|
|
+
|
|
|
+ // 这里增加一个判断,根据出入帐类型,来查看不同的详情
|
|
|
+ if (this.$route.query && this.$route.query.entryOutType === '1') {
|
|
|
+ this.cashFlowGetEntryDetail()
|
|
|
+ }
|
|
|
+ if (this.$route.query && this.$route.query.entryOutType === '2') {
|
|
|
+ this.getCashFlowGetExitDetail()
|
|
|
+ }
|
|
|
// const { id } = this.$route.query
|
|
|
// if (id) {
|
|
|
// }
|
|
@@ -337,6 +345,46 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ // 获取出账详情
|
|
|
+ getCashFlowGetExitDetail() {
|
|
|
+ // const { id } = this.$route.query
|
|
|
+ // if (id) {
|
|
|
+ // cashFlowGetExitDetail(id).then(data => {
|
|
|
+ // const { cashFlowManageBaseVo } = data.data
|
|
|
+ // this.ruleForm = {
|
|
|
+ // id: cashFlowManageEntryInfo.id,
|
|
|
+ // billType: 1,
|
|
|
+ // companyId: cashFlowManageEntryInfo.companyId,
|
|
|
+ // attributionOfAccountId: cashFlowManageEntryInfo.accountBelong,
|
|
|
+ // companyOwnershipId: cashFlowManageEntryInfo.companyBelong,
|
|
|
+ // refinancingManagementId: cashFlowManageEntryInfo.companyBelong,
|
|
|
+ // bankCardNo: cashFlowManageEntryInfo.companyBelong,
|
|
|
+ // bankCardNoId: cashFlowManageEntryInfo.companyBelong,
|
|
|
+ // type: cashFlowManageEntryInfo.type,
|
|
|
+ // incomeDate: cashFlowManageEntryInfo.incomeDate,
|
|
|
+ // incomeAmount: cashFlowManageEntryInfo.incomeAmount,
|
|
|
+ // invoiceAmount: cashFlowManageEntryInfo.invoiceAmount,
|
|
|
+ // realAmount: cashFlowManageEntryInfo.realAmount,
|
|
|
+ // remark: cashFlowManageEntryInfo.remark
|
|
|
+ // }
|
|
|
+ // const attributionOfAccountCode = codeChangeName(this.attributionOfAccountList, this.ruleForm.attributionOfAccountId, 'id', 'code')
|
|
|
+ // if (attributionOfAccountCode === 'capital') {
|
|
|
+ // this.refinancingManagementChange(this.ruleForm.companyOwnershipId)
|
|
|
+ // this.ruleForm.businessTypeId = cashFlowManageEntryInfo.businessType
|
|
|
+ // this.ruleForm.businessNumberId = cashFlowManageEntryInfo.businessTypeNumber
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.businessTypeChange()
|
|
|
+ // this.ruleForm.bankName = cashFlowManageEntryInfo.bankName
|
|
|
+ // this.bankChange()
|
|
|
+ // }, 200)
|
|
|
+ // } else {
|
|
|
+ // this.companyOwnershipChange(this.ruleForm.companyOwnershipId)
|
|
|
+ // this.ruleForm.bankName = cashFlowManageEntryInfo.bankName
|
|
|
+ // this.bankChange()
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ },
|
|
|
getEnterprises() {
|
|
|
getEnterprises().then(response => {
|
|
|
this.corporateNameList = response.data
|
|
@@ -457,7 +505,7 @@ export default {
|
|
|
// 当类型为现金时校验入账金额
|
|
|
if (type === 'entryType_cash') {
|
|
|
if (!incomeAmount) {
|
|
|
- this.$message.warning('请输入账金额据金额')
|
|
|
+ this.$message.warning('请输入账金额')
|
|
|
return
|
|
|
}
|
|
|
}
|