|
@@ -32,13 +32,18 @@
|
|
<el-input v-model="ruleForm.remark" placeholder="请输入说明" :disabled="disabled" />
|
|
<el-input v-model="ruleForm.remark" placeholder="请输入说明" :disabled="disabled" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+ <el-form-item label="是否苏商资方分账">
|
|
|
|
+ <el-radio-group v-model="ruleForm.smbFinancing" :disabled="disabled">
|
|
|
|
+ <el-radio :label="true">是</el-radio>
|
|
|
|
+ <el-radio :label="false">否</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
<cy-info-title>
|
|
<cy-info-title>
|
|
货款分配
|
|
货款分配
|
|
<div v-if="!disabled" slot="right">
|
|
<div v-if="!disabled" slot="right">
|
|
<el-button type="text" @click="oneCalc('click')">一键计算</el-button>
|
|
<el-button type="text" @click="oneCalc('click')">一键计算</el-button>
|
|
<el-button type="primary" @click="financingGoods">选择已融资货物</el-button>
|
|
<el-button type="primary" @click="financingGoods">选择已融资货物</el-button>
|
|
- <el-button type="primary" @click="acceptanceGoods">选择已验收货物</el-button>
|
|
|
|
|
|
+ <el-button v-if="!ruleForm.smbFinancing" type="primary" @click="acceptanceGoods">选择已验收货物</el-button>
|
|
</div>
|
|
</div>
|
|
</cy-info-title>
|
|
</cy-info-title>
|
|
<el-form-item label="货款金额" prop="name" style="width: 100%">
|
|
<el-form-item label="货款金额" prop="name" style="width: 100%">
|
|
@@ -143,7 +148,8 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
ruleForm: {
|
|
ruleForm: {
|
|
- remark: ''
|
|
|
|
|
|
+ remark: '',
|
|
|
|
+ smbFinancing: ''
|
|
},
|
|
},
|
|
rules: {},
|
|
rules: {},
|
|
key: 0,
|
|
key: 0,
|
|
@@ -330,11 +336,13 @@ export default {
|
|
return <span> { this.handlerMoneyEmpty(row.financingOverdueInterest) }</span>
|
|
return <span> { this.handlerMoneyEmpty(row.financingOverdueInterest) }</span>
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 原来逻辑 --- 开始 --- 苏商不展示
|
|
{
|
|
{
|
|
label: '是否分配融资利息和管理费',
|
|
label: '是否分配融资利息和管理费',
|
|
prop: 'hasAssignInterest',
|
|
prop: 'hasAssignInterest',
|
|
showTooltip: true,
|
|
showTooltip: true,
|
|
width: '110',
|
|
width: '110',
|
|
|
|
+ show: !this.ruleForm.smbFinancing,
|
|
render: (h, row) => {
|
|
render: (h, row) => {
|
|
return <el-select disabled={this.disabled} v-model={ row.hasAssignInterest } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否'>
|
|
return <el-select disabled={this.disabled} v-model={ row.hasAssignInterest } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否'>
|
|
<el-option label='是' value={true}></el-option>
|
|
<el-option label='是' value={true}></el-option>
|
|
@@ -346,7 +354,7 @@ export default {
|
|
label: '融资利息',
|
|
label: '融资利息',
|
|
prop: 'financingInterest',
|
|
prop: 'financingInterest',
|
|
showTooltip: true,
|
|
showTooltip: true,
|
|
- show: this.oneCalcStatus,
|
|
|
|
|
|
+ show: this.oneCalcStatus && !this.ruleForm.smbFinancing,
|
|
width: '120',
|
|
width: '120',
|
|
render: (h, row) => {
|
|
render: (h, row) => {
|
|
return <span> { this.handlerMoneyEmpty(row.financingInterest) }</span>
|
|
return <span> { this.handlerMoneyEmpty(row.financingInterest) }</span>
|
|
@@ -369,22 +377,100 @@ export default {
|
|
prop: 'financingManagementFee',
|
|
prop: 'financingManagementFee',
|
|
width: '120',
|
|
width: '120',
|
|
showTooltip: true,
|
|
showTooltip: true,
|
|
- show: this.oneCalcStatus,
|
|
|
|
|
|
+ show: this.oneCalcStatus && !this.ruleForm.smbFinancing,
|
|
render: (h, row) => {
|
|
render: (h, row) => {
|
|
return <span> { this.handlerMoneyEmpty(row.financingManagementFee) }</span>
|
|
return <span> { this.handlerMoneyEmpty(row.financingManagementFee) }</span>
|
|
}
|
|
}
|
|
-
|
|
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '融资本金',
|
|
label: '融资本金',
|
|
prop: 'financingPrincipal',
|
|
prop: 'financingPrincipal',
|
|
showTooltip: true,
|
|
showTooltip: true,
|
|
- show: this.oneCalcStatus,
|
|
|
|
|
|
+ show: this.oneCalcStatus && !this.ruleForm.smbFinancing,
|
|
width: '120',
|
|
width: '120',
|
|
render: (h, row) => {
|
|
render: (h, row) => {
|
|
return <span> { this.handlerMoneyEmpty(row.financingPrincipal) }</span>
|
|
return <span> { this.handlerMoneyEmpty(row.financingPrincipal) }</span>
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 原来逻辑 --- 结束 --- 苏商不展示
|
|
|
|
+ // 苏商逻辑 --- 开始 --- 原来不展示
|
|
|
|
+ {
|
|
|
|
+ label: '是否分配长银融资利息/管理费/本金',
|
|
|
|
+ prop: 'hasAssignInkasso',
|
|
|
|
+ showTooltip: true,
|
|
|
|
+ show: this.ruleForm.smbFinancing,
|
|
|
|
+ width: '150',
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ return <el-select disabled={this.disabled} v-model={ row.hasAssignInkasso } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否'>
|
|
|
|
+ <el-option label='是' value={true}></el-option>
|
|
|
|
+ <el-option label='否' value={false}></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '长银利息',
|
|
|
|
+ prop: 'inkassoInterest',
|
|
|
|
+ showTooltip: true,
|
|
|
|
+ show: this.oneCalcStatus && this.ruleForm.smbFinancing,
|
|
|
|
+ width: '120',
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ return <span> { this.handlerMoneyEmpty(row.inkassoInterest) }</span>
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '长银管理费',
|
|
|
|
+ prop: 'inkassoManagementFee',
|
|
|
|
+ showTooltip: true,
|
|
|
|
+ show: this.oneCalcStatus && this.ruleForm.smbFinancing,
|
|
|
|
+ width: '120',
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ return <span> { this.handlerMoneyEmpty(row.inkassoManagementFee) }</span>
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '长银本金',
|
|
|
|
+ prop: 'inkassoPrincipal',
|
|
|
|
+ showTooltip: true,
|
|
|
|
+ show: this.oneCalcStatus && this.ruleForm.smbFinancing,
|
|
|
|
+ width: '120',
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ return <span> { this.handlerMoneyEmpty(row.inkassoPrincipal) }</span>
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '是否分配资方融资利息/本金',
|
|
|
|
+ prop: 'hasAssignManagement',
|
|
|
|
+ showTooltip: true,
|
|
|
|
+ width: '130',
|
|
|
|
+ show: this.ruleForm.smbFinancing,
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ return <el-select disabled={this.disabled} v-model={ row.hasAssignManagement } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否'>
|
|
|
|
+ <el-option label='是' value={true}></el-option>
|
|
|
|
+ <el-option label='否' value={false}></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '资方融资利息',
|
|
|
|
+ prop: 'managementInterest',
|
|
|
|
+ showTooltip: true,
|
|
|
|
+ show: this.oneCalcStatus && this.ruleForm.smbFinancing,
|
|
|
|
+ width: '120',
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ return <span> { this.handlerMoneyEmpty(row.managementInterest) }</span>
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label: '资方融资本金',
|
|
|
|
+ prop: 'managementPrincipal',
|
|
|
|
+ showTooltip: true,
|
|
|
|
+ show: this.oneCalcStatus && this.ruleForm.smbFinancing,
|
|
|
|
+ width: '120',
|
|
|
|
+ render: (h, row) => {
|
|
|
|
+ return <span> { this.handlerMoneyEmpty(row.managementPrincipal) }</span>
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 苏商逻辑 --- 结束 --- 原来不展示
|
|
{
|
|
{
|
|
label: '履约保证金',
|
|
label: '履约保证金',
|
|
prop: 'accrualAmount',
|
|
prop: 'accrualAmount',
|
|
@@ -496,6 +582,7 @@ export default {
|
|
getDetailsData(data) {
|
|
getDetailsData(data) {
|
|
const { ledgerAccountBasicInfo, goodsAssignList, supplierBankCardInfoList } = data
|
|
const { ledgerAccountBasicInfo, goodsAssignList, supplierBankCardInfoList } = data
|
|
this.ledgerAccountBasicInfo = ledgerAccountBasicInfo
|
|
this.ledgerAccountBasicInfo = ledgerAccountBasicInfo
|
|
|
|
+ this.ruleForm.smbFinancing = ledgerAccountBasicInfo.smbFinancing
|
|
this.loanTableData = goodsAssignList
|
|
this.loanTableData = goodsAssignList
|
|
this.accountTableData = supplierBankCardInfoList
|
|
this.accountTableData = supplierBankCardInfoList
|
|
if (goodsAssignList.length) {
|
|
if (goodsAssignList.length) {
|
|
@@ -509,7 +596,7 @@ export default {
|
|
enterpriseId
|
|
enterpriseId
|
|
}
|
|
}
|
|
getFinancingGoods(params).then((data) => {
|
|
getFinancingGoods(params).then((data) => {
|
|
- this.financingGoodsList = data.data
|
|
|
|
|
|
+ this.financingGoodsList = data.data.filter(item => item.smbFinancing === this.ruleForm.smbFinancing)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getAcceptanceGoodsList() {
|
|
getAcceptanceGoodsList() {
|
|
@@ -565,6 +652,8 @@ export default {
|
|
if (!item.hasAssignInterest) item.hasAssignInterest = true
|
|
if (!item.hasAssignInterest) item.hasAssignInterest = true
|
|
if (!item.hasAssignManagementFee) item.hasAssignManagementFee = true
|
|
if (!item.hasAssignManagementFee) item.hasAssignManagementFee = true
|
|
if (!item.hasAssignOverdueInterest) item.hasAssignOverdueInterest = true
|
|
if (!item.hasAssignOverdueInterest) item.hasAssignOverdueInterest = true
|
|
|
|
+ if (!item.hasAssignInkasso) item.hasAssignInkasso = false
|
|
|
|
+ if (!item.hasAssignManagement) item.hasAssignManagement = false
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
this.paymentAccountClick()
|
|
this.paymentAccountClick()
|
|
@@ -587,7 +676,10 @@ export default {
|
|
}
|
|
}
|
|
const params = {
|
|
const params = {
|
|
Loading: true,
|
|
Loading: true,
|
|
- ledgerAccountBasicInfo: this.ledgerAccountBasicInfo,
|
|
|
|
|
|
+ ledgerAccountBasicInfo: {
|
|
|
|
+ ...this.ledgerAccountBasicInfo,
|
|
|
|
+ smbFinancing: this.ruleForm.smbFinancing
|
|
|
|
+ },
|
|
goodsAssignList: this.loanTableData
|
|
goodsAssignList: this.loanTableData
|
|
// this.loanTableData.map(item => {
|
|
// this.loanTableData.map(item => {
|
|
// delete item.financingOverdueInterestList
|
|
// delete item.financingOverdueInterestList
|