|
@@ -0,0 +1,742 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="title-container">
|
|
|
+ <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
|
|
|
+ </div>
|
|
|
+ <y-page-list-layout :page-list="pageData" :page-para="listQuery" :get-page-list="getList">
|
|
|
+ <template slot="left">
|
|
|
+ <PermissionButton menu-code="_views_finance_real_fund_create" class-name="filter-item" type="success" icon="el-icon-circle-plus-outline"
|
|
|
+ :page-jump="false" round style="float: left" @click="createdRealFundDialog = true" />
|
|
|
+ <el-input v-model="listQuery.name" placeholder="项目名称" clearable
|
|
|
+ style="margin-left: 20px;width: 270px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-input v-model="listQuery.orderId" placeholder="项目编号" clearable
|
|
|
+ style="margin-left: 20px;width: 200px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-input v-model="listQuery.clientManager" placeholder="客户经理" clearable
|
|
|
+ style="margin-left: 20px;width: 100px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-input v-model="listQuery.principal" placeholder="项目负责人" clearable
|
|
|
+ style="margin-left: 20px;width: 150px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList" round>搜索
|
|
|
+ </el-button>
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ <parentTable :data="pageData.records" slot="table" style="width: 100%;">
|
|
|
+ <el-table-column label="付款方" align="center" width='200' >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.payer }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="付款银行" align="center" width='130' >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.payerBank }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="付款账号" align="center" width='200'>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.payerAccount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="付款金额(元)" align="center" >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.amount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="到账时日" align="center">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.payDatetime }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="已认领(元)" align="center">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span style="color:green">{{ row.claimAmount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="未认领(元)" align="center">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span style="color:red">{{ row.notClaimAmount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="录入人" align="center">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.creator}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="录入时间" align="center" width='160'>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.created}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="全部认领" align="center" show-overflow-tooltip>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <i v-if="row.notClaimAmount<=0" style="font-size:20px; color:green" class="el-icon-success"></i>
|
|
|
+ <i v-else style="font-size:20px; color:RGB(255,106,106)" class="el-icon-warning"></i>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" width="300" fixed="right">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <PermissionButton :disabled="row.notClaimAmount<=0" menu-code="_views_claim_real_fund" class-name="filter-item" type="success"
|
|
|
+ :page-jump="false" round size="mini" @click="openMyOrderDialog(row)" />
|
|
|
+ <PermissionButton menu-code="_views_claim_list" class-name="filter-item" type="primary"
|
|
|
+ :page-jump="false" round size="mini" @click="clamiList(row.id,row.notClaimAmount,row.payer,row.amount)" />
|
|
|
+ <PermissionButton menu-code="_views_real_fund_edit" class-name="filter-item" type="warning"
|
|
|
+ :page-jump="false" round size="mini" @click="detail(row.id)" />
|
|
|
+ <PermissionButton menu-code="_views_real_fund_remove" class-name="filter-item" type="danger"
|
|
|
+ :page-jump="false" round size="mini" @click="remove(row.id)" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </parentTable>
|
|
|
+ </y-page-list-layout>
|
|
|
+ <el-dialog :visible.sync="createdRealFundDialog" width="45%" center custom-class="doWarehouseClass" @closed="cleanFund">
|
|
|
+ <el-form ref="realFund" :model="realFund" >
|
|
|
+ <el-divider content-position="left">实收款信息</el-divider>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="付款方名称:"
|
|
|
+ prop="payer"
|
|
|
+ :rules="{required: true, message: '付款方名称不能为空', trigger: 'blur'}"
|
|
|
+ label-width="140px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input v-model.trim="realFund.payer" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="付款金额(元):"
|
|
|
+ prop="amount"
|
|
|
+ :rules="{required: true, message: '付款金额不能为空', trigger: 'blur'}"
|
|
|
+ label-width="140px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input-number :precision="2" :min="0" :value-on-clear="0" v-model.number="realFund.amount" type="number"
|
|
|
+ style="width:100%" class="filter-item" :disabled="realFund.amount>0" :readonly="realFund.amount>0"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="到账时间:"
|
|
|
+ prop="payDatetime"
|
|
|
+ :rules="{required: true, message: '到账时间不能为空', trigger: 'blur'}"
|
|
|
+ label-width="140px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-date-picker
|
|
|
+ v-model="realFund.payDatetime" type="date" placeholder="选择日期" style="width:100%">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="付款银行:"
|
|
|
+ prop="payerBank"
|
|
|
+ label-width="140px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input v-model.trim="realFund.payerBank" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="付款银行账号:"
|
|
|
+ prop="payerAccount"
|
|
|
+ label-width="140px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input v-model.trim="realFund.payerAccount" class="filter-item" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
+ <el-form-item
|
|
|
+ label="备注:"
|
|
|
+ prop="remark"
|
|
|
+ label-width="140px"
|
|
|
+ class="postInfo-container-item"
|
|
|
+ >
|
|
|
+ <el-input v-model.trim="realFund.remark" class="filter-item" type="textarea" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="createdRealFundDialog = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="saveRealFund()">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog :visible.sync="claimListDialog" width="80%" center custom-class="doWarehouseClass">
|
|
|
+ <div style="margin-bottom:20px;font-size:20px;">
|
|
|
+ <span>付款方:</span><span style="color:red;font-weight:bold">{{payer}}</span><span style="margin-left:20px">付款金额:</span><span style="color:red;font-weight:bold">{{amount}}¥</span><span style="margin-left:20px">的认领记录:</span>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
+ :data="claimListData"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-table-column
|
|
|
+ align = "center"
|
|
|
+ prop="businessType"
|
|
|
+ label="业务类型"
|
|
|
+ width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column show-overflow-tooltip
|
|
|
+ align = "center"
|
|
|
+ prop="orderName"
|
|
|
+ label="订单名称"
|
|
|
+ width="300">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column show-overflow-tooltip
|
|
|
+ align = "center"
|
|
|
+ prop="orderId"
|
|
|
+ label="订单号"
|
|
|
+ width="250">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align = "center"
|
|
|
+ prop="shouldAmount"
|
|
|
+ label="应收金额(元)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align = "center"
|
|
|
+ prop="claimAmount"
|
|
|
+ label="认领金额(元)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align = "center"
|
|
|
+ prop="claimName"
|
|
|
+ label="认领人">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align = "center"
|
|
|
+ prop="created" width="180"
|
|
|
+ label="认领时间">
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column
|
|
|
+ align = "center"
|
|
|
+ label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="updateClaim(scope.row)" type="text" size="small">修改</el-button>
|
|
|
+ <el-button @click="removeClaim(scope.row.id)" type="text" size="small">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog :visible.sync="myOrderDialog" width="80%" center custom-class="doWarehouseClass" @closed="getList">
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
+ <el-tab-pane label="我的大中型订单" name="MAJOR_BUSINESS">
|
|
|
+ <y-page-list-layout :page-list="myMajorPageData" :page-para="orderListQuery" :get-page-list="getMyMajorOrder">
|
|
|
+ <template slot="left">
|
|
|
+ <el-input v-model="listQuery.name" placeholder="项目名称" clearable
|
|
|
+ style="margin-left: 20px;width: 270px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-input v-model="listQuery.orderId" placeholder="项目编号" clearable
|
|
|
+ style="margin-left: 20px;width: 200px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-input v-model="listQuery.clientManager" placeholder="客户经理" clearable
|
|
|
+ style="margin-left: 20px;width: 100px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-input v-model="listQuery.principal" placeholder="项目负责人" clearable
|
|
|
+ style="margin-left: 20px;width: 150px;float: left;">
|
|
|
+ </el-input>
|
|
|
+ <el-button class="filter-item" style="margin-left: 10px;float: left;" type="primary" @click="searchList" round>搜索
|
|
|
+ </el-button>
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ <parentTable :data="myMajorPageData.records" slot="table" style="width: 100%;" :selectionChange="handleSelectionChange">
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ type="selection"
|
|
|
+ claimOrders
|
|
|
+ width="100" border="true">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="订单名称" align="center" show-overflow-tooltip >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.orderName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="订单号" align="center" show-overflow-tooltip width='200' >
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{row.orderId }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="委托人" align="center" show-overflow-tooltip width='100'>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.bailor }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="产权人" align="center" show-overflow-tooltip width='100'>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.owner }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="客户名称" align="center" width='120' show-overflow-tooltip>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.clienteleName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="业务来源" align="center" width='120' show-overflow-tooltip>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.clienteleSubName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="客户联系人" align="center" width='120' show-overflow-tooltip>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.clienteleContactName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="应收款(元)" align="center" width='120'>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.shouldAmount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="实收款(元)" align="center" width='120'>
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.realAmount }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align = "center" show-overflow-tooltip width='120' label="备注">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.remark }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </parentTable>
|
|
|
+ </y-page-list-layout>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="我的个贷订单" name="second">个贷业务</el-tab-pane>
|
|
|
+ <el-tab-pane label="我的资产订单" name="third">资产业务</el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ <el-button style="display:flex; position:absolute;right:50px;top:50px" type="danger" @click="openClaimDialog()">认领</el-button>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog :visible.sync="allotAmountDialog" width="55%" center custom-class="doWarehouseClass" @closed="cleanClaimDTO">
|
|
|
+ <el-form v-model="claimOrders" ref="claimOrders">
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="21" :span="6">
|
|
|
+ <div style="font-size:20px;">
|
|
|
+ <span>此笔实收款剩余:</span><span style="color:red;font-weight:bold">{{notClaimAmount}}¥</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="3" :span="6">
|
|
|
+ <el-button style="float:right" type="success" @click="claim()">确认认领</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-card style="margin-top:20px" v-for="(p,id) in claimOrders" shadow="hover">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="订单名称:" prop="orderName" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input :value="p.orderName" type="text" class="filter-item" disabled readonly />
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="订单号:" prop="orderId" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input :value="p.orderId" type="text" class="filter-item" disabled readonly />
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="本次认领金额:" prop="thisTimeAmount" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input-number :precision="2" :min="0" :value-on-clear="0" v-model.number="p.thisTimeAmount" type="number"
|
|
|
+ style="width:100%" class="filter-item" />
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="订单应收金额:" prop="shouldAmount" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input :value="p.shouldAmount" type="text" class="filter-item" disabled readonly>
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="已认领金额:" prop="realAmount" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input :value="p.realAmount" type="text" class="filter-item" disabled readonly>
|
|
|
+ <template slot="append">元</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <el-row>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="12" :span="6">
|
|
|
+ <el-form-item label="产品列表:" prop="orderName" label-width="140px" class="postInfo-container-item" />
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :xs="24" :sm="12" :lg="6" :span="6">
|
|
|
+ <el-button v-if="p.reports.length>0" type="primary" style="width:100%" class="filter-item" >自动分配到报告</el-button>
|
|
|
+ </el-col> -->
|
|
|
+ </el-row>
|
|
|
+ <div v-if="p.reports!=null && p.reports.length>0">
|
|
|
+ <el-row v-for="(r,index) in p.reports">
|
|
|
+ <div style="margin-left:75px">
|
|
|
+ <el-col :xs="24" :sm="12" :lg="8" :span="6">
|
|
|
+ <el-form-item :label="productionLabel+(index+1)+':'" prop="productionType" label-width="120px" class="postInfo-container-item">
|
|
|
+ <el-input :value="r.productionType" type="text" class="filter-item" disabled readonly style="width:130px"/>
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="8" :span="6">
|
|
|
+ <el-form-item label="报告号:" prop="businessSubId" label-width="80px" class="postInfo-container-item">
|
|
|
+ <el-input :value="r.businessSubId" type="text" class="filter-item" disabled readonly style="width:220px" />
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="12" :lg="8" :span="6">
|
|
|
+ <el-form-item label="分配金额:" prop="productionRealAmount" label-width="120px" class="postInfo-container-item">
|
|
|
+ <el-input-number :precision="2" :min="0" :value-on-clear="0" v-model.number="r.realAmount" type="number"
|
|
|
+ style="width:100%" class="filter-item" />
|
|
|
+ </el-form-item >
|
|
|
+ </el-col>
|
|
|
+ </div>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <span v-else style="margin-left:140px;color:RGB(153,153,153)">暂无产品</span>
|
|
|
+ </el-card>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import YPageListLayout from '@/components/YPageListLayout'
|
|
|
+import Breadcrumb from '@/components/Breadcrumb'
|
|
|
+
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'financeRealFund',
|
|
|
+ components: {
|
|
|
+ Breadcrumb,
|
|
|
+ YPageListLayout
|
|
|
+ },
|
|
|
+
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ pageData: { records: [] },
|
|
|
+ listQuery: {
|
|
|
+ page: 1,
|
|
|
+ size: 10,
|
|
|
+ descs: 'id',
|
|
|
+ },
|
|
|
+ createdRealFundDialog: false,
|
|
|
+ claimListDialog:false,
|
|
|
+ myOrderDialog:false,
|
|
|
+ allotAmountDialog:false,
|
|
|
+ realFund:{
|
|
|
+ id:null,
|
|
|
+ payer:null,
|
|
|
+ payerBank:null,
|
|
|
+ payerAccount:null,
|
|
|
+ amount:null,
|
|
|
+ claimAmount:null,
|
|
|
+ notClaimAmount:null,
|
|
|
+ payDatetime:null,
|
|
|
+ remark:null,
|
|
|
+ created:null,
|
|
|
+ creator:null
|
|
|
+ },
|
|
|
+ claimListData:[],
|
|
|
+ activeName:"MAJOR_BUSINESS",
|
|
|
+ orderListQuery: {
|
|
|
+ page: 1,
|
|
|
+ size: 10,
|
|
|
+ descs: 'id',
|
|
|
+ },
|
|
|
+ myMajorPageData: { records: [] },
|
|
|
+ notClaimAmount:0,
|
|
|
+ notInfo:"此笔实收款剩余:",
|
|
|
+ claimOrders:[],
|
|
|
+ financeFundId:null,
|
|
|
+ payer:null,
|
|
|
+ amount:null,
|
|
|
+ productionLabel:"产品"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ resetSearch() {
|
|
|
+ this.$router.push({ query: {} });
|
|
|
+ this.listQuery = {
|
|
|
+ current: 1,
|
|
|
+ size: 10,
|
|
|
+ descs: 'id',
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+
|
|
|
+ searchList() {
|
|
|
+ // 重置分页
|
|
|
+ this.listQuery.page = 1
|
|
|
+ this.listQuery.size = 10
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ this.$api.financeRealFund.list(Object.assign({}, this.listQuery)).then(res=>{
|
|
|
+ if (res.code ===200){
|
|
|
+ this.pageData = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ openCreatedRealFund(){
|
|
|
+
|
|
|
+ },
|
|
|
+ saveRealFund(){
|
|
|
+ this.$refs.realFund.validate(valid=>{
|
|
|
+ if (valid){
|
|
|
+ if (this.realFund.id){
|
|
|
+ this.$api.financeRealFund.edit(this.realFund).then(res=>{
|
|
|
+ if (res.code ===200 && res.data){
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '修改实收款信息成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ this.createdRealFundDialog = false;
|
|
|
+ }else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '修改实收款信息失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$api.financeRealFund.add(this.realFund).then(res=>{
|
|
|
+ if (res.code ===200 && res.data){
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '录入实收款信息成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ this.createdRealFundDialog = false;
|
|
|
+ }else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '录入实收款信息失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ clamiList(id,notClaimAmount,payer,amount){
|
|
|
+ this.claimListDialog = true;
|
|
|
+ this.notClaimAmount = notClaimAmount;
|
|
|
+ this.payer=payer;
|
|
|
+ this.amount = amount;
|
|
|
+ this.$api.financeClaim.getList(id).then(res=>{
|
|
|
+ if (res.code ===200){
|
|
|
+ this.claimListData = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ detail(id){
|
|
|
+ this.createdRealFundDialog = true;
|
|
|
+ this.$api.financeRealFund.detail(id).then(res=>{
|
|
|
+ if (res.code === 200 ){
|
|
|
+ this.realFund = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ remove(id){
|
|
|
+ this.$confirm('请确认是否删除此回款记录?','提示',{
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ center: true
|
|
|
+ }).then(()=>{
|
|
|
+ this.$api.financeRealFund.delete(id).then(res=>{
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '实收款信息已删除',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ }else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '实收款信息删除失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleClick(tab, event) {
|
|
|
+ if (tab.name === 'MAJOR_BUSINESS'){
|
|
|
+ this.getMyMajorOrder();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ openMyOrderDialog(row){
|
|
|
+ this.myOrderDialog = true;
|
|
|
+ this.notClaimAmount = row.notClaimAmount;
|
|
|
+ this.financeFundId = row.id;
|
|
|
+ this.getMyMajorOrder();
|
|
|
+ },
|
|
|
+ getMyMajorOrder(){
|
|
|
+ this.$api.majorProduction.waitingClaim(Object.assign({}, this.orderListQuery)).then(res=>{
|
|
|
+ if (res.code ===200){
|
|
|
+ this.myMajorPageData = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ cleanClaimDTO(){
|
|
|
+ this.notInfo = "此笔实收款剩余:";
|
|
|
+ },
|
|
|
+ claim(){
|
|
|
+ this.$api.businessProduction.allotRealAmount(this.claimOrders).then(res=>{
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '实收款认领成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getMyMajorOrder();
|
|
|
+ this.allotAmountDialog = false;
|
|
|
+ }else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '实收款认领失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ updateClaim(row){
|
|
|
+ this.doClaimDialog = true;
|
|
|
+ this.claimDTO = row;
|
|
|
+ this.notInfo = this.notInfo + this.notClaimAmount + '¥'
|
|
|
+ },
|
|
|
+ // doUpdateClaim(){
|
|
|
+ // if (this.claimDTO.id){
|
|
|
+ // this.$api.financeClaim.edit(this.claimDTO).then(res=>{
|
|
|
+ // if (res.code === 200 && res.data){
|
|
|
+ // this.$notify({
|
|
|
+ // title: '成功',
|
|
|
+ // message: '修改认领金额成功',
|
|
|
+ // type: 'success',
|
|
|
+ // duration: 2000
|
|
|
+ // });
|
|
|
+ // this.clamiList(this.claimDTO.realFundId);
|
|
|
+ // this.getList();
|
|
|
+ // this.allotAmountDialog = false;
|
|
|
+ // }else {
|
|
|
+ // this.$notify({
|
|
|
+ // title: '失败',
|
|
|
+ // message: '修改认领金额失败',
|
|
|
+ // type: 'error',
|
|
|
+ // duration: 2000
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // removeClaim(id){
|
|
|
+ // this.$confirm('请确认是否删除此条认领记录?','提示',{
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning',
|
|
|
+ // center: true
|
|
|
+ // }).then(()=>{
|
|
|
+ // if (id){
|
|
|
+ // this.$api.financeClaim.delete(id).then(res=>{
|
|
|
+ // if (res.code ===200 && res.data){
|
|
|
+ // this.$notify({
|
|
|
+ // title: '成功',
|
|
|
+ // message: '删除认领记录成功',
|
|
|
+ // type: 'success',
|
|
|
+ // duration: 2000
|
|
|
+ // });
|
|
|
+ // this.clamiList(this.claimDTO.realFundId);
|
|
|
+ // this.getList();
|
|
|
+ // }else {
|
|
|
+ // this.$notify({
|
|
|
+ // title: '失败',
|
|
|
+ // message: '删除认领记录失败',
|
|
|
+ // type: 'error',
|
|
|
+ // duration: 2000
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+
|
|
|
+ // },
|
|
|
+ handleSelectionChange(val){
|
|
|
+ let pickeds = [];
|
|
|
+ console.log(val)
|
|
|
+ for (let i in val){
|
|
|
+ let picked = new Object();
|
|
|
+ picked.id = val[i].id;
|
|
|
+ picked.orderName = val[i].orderName;
|
|
|
+ picked.orderId = val[i].orderId;
|
|
|
+ picked.shouldAmount = val[i].shouldAmount;
|
|
|
+ picked.orderFundId = val[i].orderFundId;
|
|
|
+ picked.realAmount = val[i].realAmount;
|
|
|
+ picked.financeFundId = this.financeFundId;
|
|
|
+ pickeds.push(picked);
|
|
|
+ }
|
|
|
+ this.claimOrders = pickeds;
|
|
|
+ },
|
|
|
+ openClaimDialog(){
|
|
|
+ if (this.claimOrders.length===0){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请先选择订单,然后认领。',
|
|
|
+ type: 'info',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ this.allotAmountDialog = true;
|
|
|
+ this.notInfo = this.notInfo + this.notClaimAmount + '¥'
|
|
|
+ if (this.activeName === 'MAJOR_BUSINESS'){
|
|
|
+ this.$api.businessProduction.orderReports(this.claimOrders).then(res=>{
|
|
|
+ if (res.code ===200){
|
|
|
+ this.claimOrders = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ cleanFund(){
|
|
|
+ this.realFund.id=null;
|
|
|
+ this.realFund.payer=null;
|
|
|
+ this.realFund.payerBank=null;
|
|
|
+ this.realFund.payerAccount=null;
|
|
|
+ this.realFund.amount=null;
|
|
|
+ this.realFund.claimAmount=null;
|
|
|
+ this.realFund.payDatetime=null;
|
|
|
+ this.realFund.remark=null;
|
|
|
+ this.realFund.created=null;
|
|
|
+ this.realFund.creator=null;
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+ /deep/.doWarehouseClass {
|
|
|
+ border-radius: 10px;
|
|
|
+ }
|
|
|
+</style>
|