Browse Source

完善付款申请 -- 融资平仓付款管理

master
yunuo970428 3 months ago
parent
commit
5d453328b0
  1. 9
      anrui-buscenter/anrui-finmanage-ui/src/api/anruifinmanagement/payment.js
  2. 181
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue
  3. 58
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentInfo.vue
  4. 181
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/relation/closingPayment.vue
  5. 57
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanDaiBanInfo.vue
  6. 179
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue
  7. 57
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanYiBanInfo.vue
  8. 181
      anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/relation/closingPayment.vue

9
anrui-buscenter/anrui-finmanage-ui/src/api/anruifinmanagement/payment.js

@ -19,6 +19,15 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
// 查询分页列表 -- 选择融资平仓付款
chooseEve: function(data) {
return request({
url: '/fin/v1/finpaymentapplydetailsbeloweve/chooseEve',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 查询分页列表 -- 选择挂车
trailerApply: function(data) {
return request({

181
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentAdd.vue

@ -88,59 +88,91 @@
</div>
</el-col>
</el-row>
<div class="title titleOne">
<div>付款明细</div>
<el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleAdd()">添加</el-button>
<div v-if="formobj.costTypeValue === '融资付款'">
<div class="title titleOne">
<div>融资平仓付款明细</div>
<el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleSelect()">选择</el-button>
</div>
<el-table :key="eveKey" :data="formobj.eveList" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed label="操作" width="100" align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="deleteEve(scope.$index)">删除</el-button>
</template>
</el-table-column>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
<el-table-column prop="period" label="期数" align="center" width="100" />
<el-table-column label="付款方式" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.payWayValue" placeholder="请选择" filterable @change="changePayWay($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
<el-table-column prop="bank" label="开户行" align="center" width="130" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="140" />
<el-table-column prop="exePayPrice" label="付款金额(元)" align="center" width="140" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
</el-table>
</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed label="操作" width="180" align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="handleDelete(scope.$index)">删除</el-button>
<el-button size="mini" type="primary" @click="handleAddPayment(scope.row, scope.$index)">新增关联付款</el-button>
</template>
</el-table-column>
<el-table-column label="款项名称" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.costTitleValue" clearable filterable @change="changeCostTitle($event, scope.row)" placeholder="请选择">
<el-option v-for="item in costTitle_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="付款方式" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.paymentType" placeholder="请选择" filterable @change="changePaymentType($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="厂家回款通路" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.actualPay" placeholder="请选择" filterable @change="changeActualPay($event, scope.row)">
<el-option v-for="item in actualPay_list" :key="item.actualPaySid" :label="item.actualPay" :value="item.actualPay"/>
</el-select>
</template>
</el-table-column>
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.payAccount" placeholder="" clearable @keyup.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)" @keydown.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)"></el-input>
</template>
</el-table-column>
<el-table-column label="付款备注" align="center" min-width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" placeholder="" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
<div v-else>
<div class="title titleOne">
<div>付款明细</div>
<el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleAdd()">添加</el-button>
</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed label="操作" width="180" align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="handleDelete(scope.$index)">删除</el-button>
<el-button size="mini" type="primary" @click="handleAddPayment(scope.row, scope.$index)">新增关联付款</el-button>
</template>
</el-table-column>
<el-table-column label="款项名称" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.costTitleValue" clearable filterable @change="changeCostTitle($event, scope.row)" placeholder="请选择">
<el-option v-for="item in costTitle_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="付款方式" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.paymentType" placeholder="请选择" filterable @change="changePaymentType($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="厂家回款通路" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.actualPay" placeholder="请选择" filterable @change="changeActualPay($event, scope.row)">
<el-option v-for="item in actualPay_list" :key="item.actualPaySid" :label="item.actualPay" :value="item.actualPay"/>
</el-select>
</template>
</el-table-column>
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.payAccount" placeholder="" clearable @keyup.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)" @keydown.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)"></el-input>
</template>
</el-table-column>
<el-table-column label="付款备注" align="center" min-width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" placeholder="" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
</div>
<div v-show="formobj.costTypeKey == '001' && formobj.isVeh == '1'"><!-- 款项类别为主车厂家采购且是否涉及车辆为是时显示 -->
<div class="title titleOne">
<div>车辆列表</div>
@ -311,6 +343,8 @@
<paymentInformationInfo v-show="viewState == 4" ref="divPaymentInformationInfo" @doback="resetStateByInformation" />
<!-- 查看上装配置信息 -->
<tops v-show="viewState == 5" ref="divTops" @doback="resetState" />
<!-- 选择融资平仓付款 -->
<closingPayment v-show="viewState == 8" ref="divClosingPayment" @backData="backClosingPayment" @doback="resetState" />
</div>
</template>
@ -322,6 +356,7 @@ import trailerCar from './relation/trailerCar'
import top from './relation/top'
import paymentInformationAdd from './relation/paymentInformationAdd'
import paymentInformationInfo from './relation/paymentInformationInfo'
import closingPayment from './relation/closingPayment'
import tops from '@/components/publicPage/tops'
export default {
@ -332,7 +367,8 @@ export default {
top,
paymentInformationAdd,
paymentInformationInfo,
tops
tops,
closingPayment
},
data() {
return {
@ -344,6 +380,7 @@ export default {
paymentKey: 2,
trailerKey: 3,
topKey: 4,
eveKey: 5,
index: 0,
carBrand_list: [],
costRange_list: [],
@ -379,6 +416,7 @@ export default {
carBrandSid: '', // sid
carBrandName: '', //
orgSidPath: '',
eveList: [], //
detailsList: [], //
vehicleList: [], //
trailerList: [], //
@ -537,6 +575,42 @@ export default {
this.formobj.payCompanySid = ''
}
},
handleSelect() {
this.viewState = 8
this.$refs['divClosingPayment'].showData(this.formobj.eveList, this.formobj.useOrgSid)
},
deleteEve(index) {
this.formobj.eveList.splice(index, 1)
},
backClosingPayment(value) {
this.viewState = 1
value = JSON.parse(JSON.stringify(value))
console.log(value, 77)
value.forEach((e) => {
this.formobj.eveList.push({
sid: '', // sid
applySid: '', // sid
costTitleValue: e.costTitleValue, //
openDate: e.openDate, //
period: e.period, //
payWayKey: '', // Key
payWayValue: '', // Value
receiveCompany: e.receiveCompany, //
receivingAccount: e.receivingAccount, //
bank: e.bank, //
exePayPrice: e.exePayPrice, //
remarks: e.remarks
})
})
},
changePayWay(value, row) {
const choose = this.payment_list.filter((item) => item.dictValue === value)
if (choose.length > 0 && choose !== null) {
row.payWayKey = choose[0].dictKey
} else {
row.payWayKey = ''
}
},
handleAdd() {
if (this.formobj.carBrandName === '') {
this.$message({ showClose: true, type: 'error', message: '请先选择品牌' })
@ -924,6 +998,7 @@ export default {
carBrandSid: '', // sid
carBrandName: '', //
orgSidPath: '',
eveList: [], //
detailsList: [], //
vehicleList: [], //
trailerList: [], //

58
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/paymentInfo.vue

@ -58,24 +58,43 @@
</div>
</el-col>
</el-row>
<div class="title">付款明细</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="paymentType" label="付款方式" align="center" width="200" />
<el-table-column prop="actualPay" label="厂家回款通路" align="center" width="200" />
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
<div v-if="formobj.costTypeValue === '融资付款'">
<div class="title">
<div>融资平仓付款明细</div>
</div>
<el-table :key="eveKey" :data="formobj.eveList" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
<el-table-column prop="period" label="期数" align="center" width="100" />
<el-table-column prop="payWayValue" label="付款方式" align="center" width="150" />
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
<el-table-column prop="bank" label="开户行" align="center" width="130" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="140" />
<el-table-column prop="exePayPrice" label="付款金额(元)" align="center" width="140" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
</el-table>
</div>
<div v-else>
<div class="title">付款明细</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="paymentType" label="付款方式" align="center" width="200" />
<el-table-column prop="actualPay" label="厂家回款通路" align="center" width="200" />
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
</div>
<div v-show="formobj.costTypeKey == '001' && formobj.isVeh == '1'"><!-- 款项类别为主车厂家采购且是否涉及车辆为是时显示 -->
<div class="title" style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;">
<div>车辆列表</div>
@ -222,6 +241,7 @@ export default {
paymentKey: 2,
trailerKey: 3,
topKey: 4,
eveKey: 5,
index: 0,
formobj: {
billNo: '', //
@ -250,6 +270,7 @@ export default {
carBrandSid: '', // sid
carBrandName: '', //
orgSidPath: '',
eveList: [], //
detailsList: [], //
vehicleList: [], //
trailerList: [], //
@ -390,6 +411,7 @@ export default {
carBrandSid: '', // sid
carBrandName: '', //
orgSidPath: '',
eveList: [], //
detailsList: [], //
vehicleList: [], //
trailerList: [], //

181
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/fukuanshenqing/relation/closingPayment.vue

@ -0,0 +1,181 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div>
<button-bar view-title="选择融资平仓款" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" align="center" width="50px"/>
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
<el-table-column prop="period" label="期数" align="center" width="100" />
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
<el-table-column prop="bank" label="开户行" align="center" width="130" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="140" />
<el-table-column prop="receivingAccount" label="平仓付款日期" align="center" width="140" />
<el-table-column prop="exePayPrice" label="平仓付款金额" align="center" width="140" />
<el-table-column prop="remarks" label="备注" align="center" min-width="200" />
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/anruifinmanagement/payment'
import Pagination from '@/components/pagination'
import ButtonBar from '@/components/ButtonBar'
export default {
name: 'ClosingPayment',
components: {
Pagination,
ButtonBar
},
data() {
return {
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'doConfirm',
btnLabel: '确定'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
multipleSelection: [],
FormLoading: false,
listLoading: false,
listQuery: {
params: {
useOrgSid: '',
sidList: []
},
current: 1,
size: 5,
total: 0
},
rules: {}
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doConfirm':
this.doConfirm()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
handleSelectionChange(row) {
this.multipleSelection = row
},
//
getList() {
this.listLoading = true
req.chooseEve(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
showData(value, createOrgSid) {
this.listQuery.params.useOrgSid = createOrgSid
const aa = []
// if (value.length > 0) {
// for (var i = 0; i < value.length; i++) {
// for (var j = 0; j < value[i].vehRebateSids.length; j++) {
// aa.push(value[i].vehRebateSids[j])
// }
// }
// }
this.listQuery.params.sidList = aa
this.listQuery.current = 1
this.getList()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
createBySid: '',
createEndTime: '',
createStartTime: ''
},
current: 1,
size: 5,
total: 0
}
this.getList()
},
doConfirm() {
if (this.multipleSelection.length > 0) {
this.$emit('backData', this.multipleSelection)
} else {
this.$notify({ title: '提示', message: '请选择至少一条记录!', type: 'error', duration: 2000 })
}
},
doClose() {
this.$emit('doback')
}
}
}
</script>
<style scoped>
</style>

57
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanDaiBanInfo.vue

@ -60,24 +60,43 @@
</div>
</el-col>
</el-row>
<div class="title">付款明细</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="paymentType" label="付款方式" align="center" width="200" />
<el-table-column prop="actualPay" label="厂家回款通路" align="center" width="200" />
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
<div v-if="formobj.costTypeValue === '融资付款'">
<div class="title">
<div>融资平仓付款明细</div>
</div>
<el-table :key="eveKey" :data="formobj.eveList" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
<el-table-column prop="period" label="期数" align="center" width="100" />
<el-table-column prop="payWayValue" label="付款方式" align="center" width="150" />
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
<el-table-column prop="bank" label="开户行" align="center" width="130" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="140" />
<el-table-column prop="exePayPrice" label="付款金额(元)" align="center" width="140" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
</el-table>
</div>
<div v-else>
<div class="title">付款明细</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="paymentType" label="付款方式" align="center" width="200" />
<el-table-column prop="actualPay" label="厂家回款通路" align="center" width="200" />
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
</div>
<div v-show="formobj.costTypeKey == '001' && formobj.isVeh == '1'"><!-- 款项类别为主车厂家采购且是否涉及车辆为是时显示 -->
<div class="title" style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;">
<div>车辆列表</div>
@ -246,6 +265,7 @@ export default {
paymentKey: 2,
trailerKey: 3,
topKey: 4,
eveKey: 5,
index: 0,
formobj: {
billNo: '', //
@ -274,6 +294,7 @@ export default {
carBrandSid: '', // sid
carBrandName: '', //
orgSidPath: '',
eveList: [], //
detailsList: [], //
vehicleList: [], //
trailerList: [], //

179
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanEdit.vue

@ -87,59 +87,90 @@
</div>
</el-col>
</el-row>
<div class="title titleOne">
<div>付款明细</div>
<el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleAdd()">添加</el-button>
<div v-if="formobj.costTypeValue === '融资付款'">
<div class="title titleOne">
<div>融资平仓付款明细</div>
<el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleSelect()">选择</el-button>
</div>
<el-table :key="eveKey" :data="formobj.eveList" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed label="操作" width="100" align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="deleteEve(scope.$index)">删除</el-button>
</template>
</el-table-column>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
<el-table-column prop="period" label="期数" align="center" width="100" />
<el-table-column label="付款方式" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.payWayValue" placeholder="请选择" filterable @change="changePayWay($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
<el-table-column prop="bank" label="开户行" align="center" width="130" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="140" />
<el-table-column prop="exePayPrice" label="付款金额(元)" align="center" width="140" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
</el-table>
</div>
<div v-else>
<div class="title titleOne">
<div>付款明细</div>
<el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="handleAdd()">添加</el-button>
</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed label="操作" width="180" align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="handleDelete(scope.$index)">删除</el-button>
<el-button size="mini" type="primary" @click="handleAddPayment(scope.row, scope.$index)">新增关联付款</el-button>
</template>
</el-table-column>
<el-table-column label="款项名称" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.costTitleValue" clearable filterable @change="changeCostTitle($event, scope.row)" placeholder="请选择">
<el-option v-for="item in costTitle_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="付款方式" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.paymentType" placeholder="请选择" filterable @change="changePaymentType($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="厂家回款通路" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.actualPay" placeholder="请选择" filterable @change="changeActualPay($event, scope.row)">
<el-option v-for="item in actualPay_list" :key="item.actualPaySid" :label="item.actualPay" :value="item.actualPay"/>
</el-select>
</template>
</el-table-column>
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.payAccount" placeholder="" clearable @keyup.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)" @keydown.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)"></el-input>
</template>
</el-table-column>
<el-table-column label="付款备注" align="center" min-width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" placeholder="" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed label="操作" width="180" align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger" @click="handleDelete(scope.$index)">删除</el-button>
<el-button size="mini" type="primary" @click="handleAddPayment(scope.row, scope.$index)">新增关联付款</el-button>
</template>
</el-table-column>
<el-table-column label="款项名称" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.costTitleValue" clearable filterable @change="changeCostTitle($event, scope.row)" placeholder="请选择">
<el-option v-for="item in costTitle_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="付款方式" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.paymentType" placeholder="请选择" filterable @change="changePaymentType($event, scope.row)">
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
<el-table-column label="厂家回款通路" align="center" width="200">
<template slot-scope="scope">
<el-select v-model="scope.row.actualPay" placeholder="请选择" filterable @change="changeActualPay($event, scope.row)">
<el-option v-for="item in actualPay_list" :key="item.actualPaySid" :label="item.actualPay" :value="item.actualPay"/>
</el-select>
</template>
</el-table-column>
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.payAccount" placeholder="" clearable @keyup.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)" @keydown.native="scope.row.payAccount = getNumber(scope.row.payAccount, 2)"></el-input>
</template>
</el-table-column>
<el-table-column label="付款备注" align="center" min-width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" placeholder="" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
<div v-show="formobj.costTypeKey == '001' && formobj.isVeh == '1'"><!-- 款项类别为主车厂家采购且是否涉及车辆为是时显示 -->
<div class="title titleOne">
<div>车辆列表</div>
@ -310,6 +341,8 @@
<paymentInformationInfo v-show="viewState == 4" ref="divPaymentInformationInfo" @doback="resetStateByInformation" />
<!-- 查看上装配置信息 -->
<tops v-show="viewState == 5" ref="divTops" @doback="resetState" />
<!-- 选择融资平仓付款 -->
<closingPayment v-show="viewState == 8" ref="divClosingPayment" @backData="backClosingPayment" @doback="resetState" />
</div>
</template>
@ -321,6 +354,7 @@ import trailerCar from './relation/trailerCar'
import top from './relation/top'
import paymentInformationAdd from './relation/paymentInformationAdd'
import paymentInformationInfo from './relation/paymentInformationInfo'
import closingPayment from './relation/closingPayment'
import tops from '@/views/workFlow/publicPage/tops'
export default {
@ -331,7 +365,8 @@ export default {
top,
paymentInformationAdd,
paymentInformationInfo,
tops
tops,
closingPayment
},
data() {
return {
@ -343,6 +378,7 @@ export default {
paymentKey: 2,
trailerKey: 3,
topKey: 4,
eveKey: 5,
index: 0,
carBrand_list: [],
costRange_list: [],
@ -378,6 +414,7 @@ export default {
carBrandSid: '', // sid
carBrandName: '', //
orgSidPath: '',
eveList: [], //
detailsList: [], //
vehicleList: [], //
trailerList: [], //
@ -528,6 +565,42 @@ export default {
this.formobj.payCompanySid = ''
}
},
handleSelect() {
this.viewState = 8
this.$refs['divClosingPayment'].showData(this.formobj.eveList, this.formobj.useOrgSid)
},
deleteEve(index) {
this.formobj.eveList.splice(index, 1)
},
backClosingPayment(value) {
this.viewState = 1
value = JSON.parse(JSON.stringify(value))
console.log(value, 77)
value.forEach((e) => {
this.formobj.eveList.push({
sid: '', // sid
applySid: '', // sid
costTitleValue: e.costTitleValue, //
openDate: e.openDate, //
period: e.period, //
payWayKey: '', // Key
payWayValue: '', // Value
receiveCompany: e.receiveCompany, //
receivingAccount: e.receivingAccount, //
bank: e.bank, //
exePayPrice: e.exePayPrice, //
remarks: e.remarks
})
})
},
changePayWay(value, row) {
const choose = this.payment_list.filter((item) => item.dictValue === value)
if (choose.length > 0 && choose !== null) {
row.payWayKey = choose[0].dictKey
} else {
row.payWayKey = ''
}
},
handleAdd() {
if (this.formobj.carBrandName === '') {
this.$message({ showClose: true, type: 'error', message: '请先选择品牌' })

57
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/fukuanYiBanInfo.vue

@ -58,24 +58,43 @@
</div>
</el-col>
</el-row>
<div class="title">付款明细</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="paymentType" label="付款方式" align="center" width="200" />
<el-table-column prop="actualPay" label="厂家回款通路" align="center" width="200" />
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
<div v-if="formobj.costTypeValue === '融资付款'">
<div class="title">
<div>融资平仓付款明细</div>
</div>
<el-table :key="eveKey" :data="formobj.eveList" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
<el-table-column prop="period" label="期数" align="center" width="100" />
<el-table-column prop="payWayValue" label="付款方式" align="center" width="150" />
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
<el-table-column prop="bank" label="开户行" align="center" width="130" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="140" />
<el-table-column prop="exePayPrice" label="付款金额(元)" align="center" width="140" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
</el-table>
</div>
<div v-else>
<div class="title">付款明细</div>
<el-table :key="tableKey" :data="formobj.detailsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="paymentType" label="付款方式" align="center" width="200" />
<el-table-column prop="actualPay" label="厂家回款通路" align="center" width="200" />
<el-table-column prop="receiveCompany" label="收款单位" align="center" width="150" />
<el-table-column prop="bank" label="开户行" align="center" width="140" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="160" />
<el-table-column prop="payAccount" label="付款金额(元)" align="center" width="150" />
<el-table-column prop="remarks" label="付款备注" align="center" min-width="200" />
<el-table-column label="关联付款详情" align="center" width="120">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-show="scope.row.finPaymentapplyDetailsBelowList.length > 0" @click="handleLookPayment(scope.row, scope.$index)">查看</el-button>
</template>
</el-table-column>
<el-table-column prop="payAccountTotal" label="关联付款金额" align="center" width="140"/>
</el-table>
</div>
<div v-show="formobj.costTypeKey == '001' && formobj.isVeh == '1'"><!-- 款项类别为主车厂家采购且是否涉及车辆为是时显示 -->
<div class="title" style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;">
<div>车辆列表</div>
@ -221,6 +240,7 @@ export default {
paymentKey: 2,
trailerKey: 3,
topKey: 4,
eveKey: 5,
index: 0,
formobj: {
billNo: '', //
@ -249,6 +269,7 @@ export default {
carBrandSid: '', // sid
carBrandName: '', //
orgSidPath: '',
eveList: [], //
detailsList: [], //
vehicleList: [], //
trailerList: [], //

181
anrui-buscenter/anrui-finmanage-ui/src/views/workFlow/fukuanguanliFlow/fukuanguanli/relation/closingPayment.vue

@ -0,0 +1,181 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div>
<button-bar view-title="选择融资平仓款" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="">
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" align="center" width="50px"/>
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/>
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="200" />
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
<el-table-column prop="period" label="期数" align="center" width="100" />
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
<el-table-column prop="bank" label="开户行" align="center" width="130" />
<el-table-column prop="receivingAccount" label="收款银行账号" align="center" width="140" />
<el-table-column prop="receivingAccount" label="平仓付款日期" align="center" width="140" />
<el-table-column prop="exePayPrice" label="平仓付款金额" align="center" width="140" />
<el-table-column prop="remarks" label="备注" align="center" min-width="200" />
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
</div>
</template>
<script>
import req from '@/api/anruifinmanagement/payment'
import Pagination from '@/components/pagination'
import ButtonBar from '@/components/ButtonBar'
export default {
name: 'ClosingPayment',
components: {
Pagination,
ButtonBar
},
data() {
return {
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'doConfirm',
btnLabel: '确定'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
multipleSelection: [],
FormLoading: false,
listLoading: false,
listQuery: {
params: {
useOrgSid: '',
sidList: []
},
current: 1,
size: 5,
total: 0
},
rules: {}
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doConfirm':
this.doConfirm()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
handleSelectionChange(row) {
this.multipleSelection = row
},
//
getList() {
this.listLoading = true
req.chooseEve(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
showData(value, createOrgSid) {
this.listQuery.params.useOrgSid = createOrgSid
const aa = []
// if (value.length > 0) {
// for (var i = 0; i < value.length; i++) {
// for (var j = 0; j < value[i].vehRebateSids.length; j++) {
// aa.push(value[i].vehRebateSids[j])
// }
// }
// }
this.listQuery.params.sidList = aa
this.listQuery.current = 1
this.getList()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
createBySid: '',
createEndTime: '',
createStartTime: ''
},
current: 1,
size: 5,
total: 0
}
this.getList()
},
doConfirm() {
if (this.multipleSelection.length > 0) {
this.$emit('backData', this.multipleSelection)
} else {
this.$notify({ title: '提示', message: '请选择至少一条记录!', type: 'error', duration: 2000 })
}
},
doClose() {
this.$emit('doback')
}
}
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save