|
@@ -3,12 +3,12 @@
|
|
|
<el-form ref="ruleForm" :key="key" :model="ruleForm" :rules="rules" label-width="150px" label-position="top" class="rule-form-orange">
|
|
|
<cy-info-title>基础信息</cy-info-title>
|
|
|
<el-form-item label="出入账类型" prop="billType">
|
|
|
- <el-radio-group v-model="ruleForm.billType">
|
|
|
+ <el-radio-group v-model="ruleForm.billType" :disabled="disabled">
|
|
|
<el-radio :label="0">入账</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="企业名称" prop="companyId">
|
|
|
- <el-select v-model="ruleForm.companyId" filterable placeholder="请选择企业名称">
|
|
|
+ <el-select v-model="ruleForm.companyId" filterable placeholder="请选择企业名称" :disabled="disabled">
|
|
|
<el-option
|
|
|
v-for="item in corporateNameList"
|
|
|
:key="item.id"
|
|
@@ -19,7 +19,7 @@
|
|
|
</el-form-item>
|
|
|
<cy-info-title style="margin-top: 10px">出入账信息</cy-info-title>
|
|
|
<el-form-item label="账户归属" prop="attributionOfAccountId">
|
|
|
- <el-radio-group v-model="ruleForm.attributionOfAccountId" @change="attributionOfAccountChange(ruleForm.companyOwnershipId)">
|
|
|
+ <el-radio-group v-model="ruleForm.attributionOfAccountId" :disabled="disabled" @change="attributionOfAccountChange(ruleForm.companyOwnershipId)">
|
|
|
<el-radio v-for="item in attributionOfAccountList" :key="item.id" :label="item.id">{{ item.name }}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
@@ -29,6 +29,7 @@
|
|
|
v-model="ruleForm.companyOwnershipId"
|
|
|
filterable
|
|
|
placeholder="请选择公司归属"
|
|
|
+ :disabled="disabled"
|
|
|
@change="companyOwnershipChange(ruleForm.companyOwnershipId)"
|
|
|
>
|
|
|
<el-option
|
|
@@ -43,6 +44,7 @@
|
|
|
v-model="ruleForm.refinancingManagementId"
|
|
|
filterable
|
|
|
placeholder="请选择公司归属"
|
|
|
+ :disabled="disabled"
|
|
|
@change="refinancingManagementChange(ruleForm.refinancingManagementId)"
|
|
|
>
|
|
|
<el-option
|
|
@@ -58,6 +60,7 @@
|
|
|
v-model="ruleForm.businessTypeId"
|
|
|
filterable
|
|
|
placeholder="请选择业务类型"
|
|
|
+ :disabled="disabled"
|
|
|
@change="businessTypeChange"
|
|
|
>
|
|
|
<el-option
|
|
@@ -74,6 +77,7 @@
|
|
|
v-model="ruleForm.bankName"
|
|
|
filterable
|
|
|
placeholder="请选择开户银行名称"
|
|
|
+ :disabled="disabled"
|
|
|
@change="bankChange"
|
|
|
>
|
|
|
<el-option
|
|
@@ -88,6 +92,7 @@
|
|
|
v-model="ruleForm.bankName"
|
|
|
filterable
|
|
|
placeholder="请选择开户银行名称"
|
|
|
+ :disabled="disabled"
|
|
|
@change="bankChange"
|
|
|
>
|
|
|
<el-option
|
|
@@ -102,12 +107,12 @@
|
|
|
<el-input
|
|
|
v-model="ruleForm.bankCardNo"
|
|
|
placeholder="请输入账号"
|
|
|
- disabled
|
|
|
+ :disabled="disabled"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="类型" prop="type">
|
|
|
- <el-radio-group v-model="ruleForm.type">
|
|
|
+ <el-radio-group v-model="ruleForm.type" :disabled="disabled">
|
|
|
<el-radio
|
|
|
v-for="item in constant.cashFlowEntryType"
|
|
|
:key="item.code"
|
|
@@ -123,7 +128,7 @@
|
|
|
prop="incomeAmount"
|
|
|
class="form-required"
|
|
|
>
|
|
|
- <cy-amount-input v-model="ruleForm.incomeAmount" class="one-form-item" />
|
|
|
+ <cy-amount-input v-model="ruleForm.incomeAmount" class="one-form-item" :disabled="disabled" />
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
v-if="ruleForm.type === 'entryType_bills_discounted'"
|
|
@@ -131,7 +136,7 @@
|
|
|
prop="invoiceAmount"
|
|
|
class="one-form-item form-required"
|
|
|
>
|
|
|
- <cy-amount-input v-model="ruleForm.invoiceAmount" class="one-form-item" />
|
|
|
+ <cy-amount-input v-model="ruleForm.invoiceAmount" class="one-form-item" :disabled="disabled" />
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
v-if="ruleForm.type === 'entryType_bills_discounted'"
|
|
@@ -139,7 +144,7 @@
|
|
|
prop="realAmount"
|
|
|
class="one-form-item form-required"
|
|
|
>
|
|
|
- <cy-amount-input v-model="ruleForm.realAmount" class="one-form-item" />
|
|
|
+ <cy-amount-input v-model="ruleForm.realAmount" class="one-form-item" :disabled="disabled" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="入账日期" prop="incomeDate" :class="{'one-form-item':ruleForm.type === 0}" style="width: 100%">
|
|
|
<el-date-picker
|
|
@@ -150,6 +155,7 @@
|
|
|
style="width: 100%"
|
|
|
:picker-options="pickerOptions"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
+ :disabled="disabled"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -157,20 +163,14 @@
|
|
|
label="附件:"
|
|
|
style="width:100%"
|
|
|
>
|
|
|
- <unified-editor :content.sync="ruleForm.lifeFeedback" />
|
|
|
- <cy-upload
|
|
|
- ref="fileStorage"
|
|
|
- :upload-params="{}"
|
|
|
- :file-data="lifeFile"
|
|
|
- :upload-from-orange-status="true"
|
|
|
- placeholder="请上传附件"
|
|
|
- />
|
|
|
+ <unified-editor :content.sync="ruleForm.content" :disabled="disabled" />
|
|
|
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注" style="width: 100%">
|
|
|
<el-input
|
|
|
v-model="ruleForm.remark"
|
|
|
placeholder="请输入备注"
|
|
|
+ :disabled="disabled"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -186,10 +186,10 @@ export default {
|
|
|
UnifiedEditor: () => import('@/components/UnifiedEditor/index.vue')
|
|
|
},
|
|
|
props: {
|
|
|
- // disabled: {
|
|
|
- // type: Boolean,
|
|
|
- // default: false
|
|
|
- // },
|
|
|
+ disabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ }
|
|
|
// deatailsInfo: {
|
|
|
// type: Object,
|
|
|
// default: () => {}
|
|
@@ -220,6 +220,7 @@ export default {
|
|
|
incomeAmount: '',
|
|
|
invoiceAmount: '',
|
|
|
realAmount: '',
|
|
|
+ content: '',
|
|
|
remark: ''
|
|
|
},
|
|
|
rules: {
|
|
@@ -325,7 +326,8 @@ export default {
|
|
|
incomeAmount: cashFlowManageEntryInfo.incomeAmount,
|
|
|
invoiceAmount: cashFlowManageEntryInfo.invoiceAmount,
|
|
|
realAmount: cashFlowManageEntryInfo.realAmount,
|
|
|
- remark: cashFlowManageEntryInfo.remark
|
|
|
+ remark: cashFlowManageEntryInfo.remark,
|
|
|
+ content: cashFlowManageEntryInfo.content
|
|
|
}
|
|
|
const attributionOfAccountCode = codeChangeName(this.attributionOfAccountList, this.ruleForm.attributionOfAccountId, 'id', 'code')
|
|
|
if (attributionOfAccountCode === 'capital') {
|
|
@@ -390,6 +392,7 @@ export default {
|
|
|
this.corporateNameList = response.data
|
|
|
})
|
|
|
},
|
|
|
+ // 获取账户归属 longSilver--长银系 noLongSilver--非长银系 capital--资方
|
|
|
getAttributionOfAccount() {
|
|
|
getAttributionOfAccount({ parentCode: 'attributionOfAccount' }).then(response => {
|
|
|
this.attributionOfAccountList = response.data
|
|
@@ -483,7 +486,7 @@ export default {
|
|
|
},
|
|
|
getParams() {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- const { companyId, attributionOfAccountId, companyOwnershipId, refinancingManagementId, bankCardNoId, businessTypeId, businessNumberId, type, incomeDate, incomeAmount, invoiceAmount, realAmount, remark, bankName, bankCardNo, id } = this.ruleForm
|
|
|
+ const { companyId, attributionOfAccountId, companyOwnershipId, refinancingManagementId, bankCardNoId, businessTypeId, businessNumberId, type, incomeDate, incomeAmount, invoiceAmount, realAmount, remark, bankName, bankCardNo, id, content } = this.ruleForm
|
|
|
|
|
|
// 账户归属选择为资方的时候校验公司归属和业务类型
|
|
|
if (this.isCapital(attributionOfAccountId)) {
|
|
@@ -534,6 +537,7 @@ export default {
|
|
|
incomeDate,
|
|
|
remark,
|
|
|
bankName,
|
|
|
+ content,
|
|
|
bankAccount: bankCardNo
|
|
|
}
|
|
|
if (type === 'entryType_cash') {
|