|
@@ -80,7 +80,7 @@
|
|
|
<template slot-scope="{row}">
|
|
|
<el-button type="text" @click="claimMajor(row)">大中型</el-button>
|
|
|
<el-button type="text" @click="claimPersonal()">个贷</el-button>
|
|
|
- <el-button type="text" @click="claimAssets()">资产</el-button>
|
|
|
+ <el-button type="text" @click="claimAssets(row)">资产</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</parentTable>
|
|
@@ -447,8 +447,9 @@
|
|
|
</parentTable>
|
|
|
</y-page-list-layout>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :visible.sync="myAssetsOrderDialog" width="95%" center custom-class="doWarehouseClass" @closed="getList">
|
|
|
- <y-page-list-layout :page-list="myAssetsPageData" :page-para="assetsListQuery" :get-page-list="getMyAssetsOrderOrProd">
|
|
|
+ <el-dialog :visible.sync="myAssetsOrderDialog" width="97%" center custom-class="doWarehouseClass" @closed="getList">
|
|
|
+ <y-page-list-layout :page-list="myAssetsPageData" :page-para="assetsListQuery"
|
|
|
+ :get-page-list="getMyAssetsOrderOrProd">
|
|
|
<template slot="left">
|
|
|
<el-switch style="width: 270px;float: left;margin-top: 5px;" v-model="toAssetsProd" active-color="#13ce66"
|
|
|
inactive-color="#ff4949" active-text="认领到产品" inactive-text="认领到订单">
|
|
@@ -481,14 +482,16 @@
|
|
|
<el-button v-show="!toAssetsProd" class="filter-item" style="margin-left: 10px;float: left;" type="primary"
|
|
|
@click="getMyAssetsOrder()" round>搜索
|
|
|
</el-button>
|
|
|
- <el-button v-show="toAssetsProd" class="filter-item" style="float: left;" round type="success" @click="getMyAssetsProdResetSearch()">重置
|
|
|
+ <el-button v-show="toAssetsProd" class="filter-item" style="float: left;" round type="success"
|
|
|
+ @click="getMyAssetsProdResetSearch()">重置
|
|
|
</el-button>
|
|
|
- <el-button v-show="!toAssetsProd" class="filter-item" style="float: left;" round type="success" @click="getMyAssetsOrderResetSearch()">重置
|
|
|
+ <el-button v-show="!toAssetsProd" class="filter-item" style="float: left;" round type="success"
|
|
|
+ @click="getMyAssetsOrderResetSearch()">重置
|
|
|
</el-button>
|
|
|
- <el-button style="float: left;" round type="danger" @click="openClaimDialog()">选择认领</el-button>
|
|
|
+ <el-button style="float: left;" round type="danger" @click="openAssetsClaimDialog()">选择认领</el-button>
|
|
|
</template>
|
|
|
<parentTable v-show="toAssetsProd" ref="prod" :clickRowToPick="false" :data="myAssetsPageData.records"
|
|
|
- slot="table" style="width: 100%;" :selectionChange="handleSelectionChange">
|
|
|
+ slot="table" style="width: 100%;" :selectionChange="assetsHandleSelectionChange">
|
|
|
<el-table-column align="center" type="selection" claimOrders width="100" border="true"
|
|
|
:selectable="checkSelectable">
|
|
|
</el-table-column>
|
|
@@ -569,52 +572,52 @@
|
|
|
</el-table-column>
|
|
|
</parentTable>
|
|
|
<parentTable v-show="!toAssetsProd" ref="order" :clickRowToPick="false" :data="myAssetsPageData.records"
|
|
|
- slot="table" style="width: 100%;" :selectionChange="handleSelectionChange">
|
|
|
+ slot="table" style="width: 100%;" :selectionChange="assetsHandleSelectionChange">
|
|
|
<el-table-column align="center" type="selection" claimOrders width="100" border="true"
|
|
|
:selectable="checkSelectable">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="订单名称" align="center" width='400'>
|
|
|
+ <el-table-column label="订单名称" align="center" width='600'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.name }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="订单号" align="center" width='160'>
|
|
|
+ <el-table-column label="订单号" align="center" width='250'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.orderId }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="客户名称" align="center">
|
|
|
+ <el-table-column label="客户名称" align="center" width='200'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.clienteleName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="订单应收款(元)" align="center" width='120'>
|
|
|
+ <el-table-column label="订单应收款(元)" align="center" width='200'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.orderShouldAmount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="订单实收款(元)" align="center" width='120'>
|
|
|
+ <el-table-column label="订单实收款(元)" align="center" width='200'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.orderRealAmount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="市场人员" align="center" width='120'>
|
|
|
+ <el-table-column label="市场人员" align="center" width='200'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.marketUser }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" width='140' label="市场人员申报提成">
|
|
|
+ <el-table-column align="center" width='215' label="市场人员申报提成">
|
|
|
<template slot-scope="{row}">
|
|
|
<el-tag :type="row.mdeclareResult ? (row.mdeclareResult === '审核通过' ? 'success' : 'info') : 'danger'">{{
|
|
|
row.mdeclareResult ? row.mdeclareResult : '未申报' }}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="评估人员" align="center" width='120'>
|
|
|
+ <el-table-column label="评估人员" align="center" width='200'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.evaluateUser }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" width='140' label="评估人员申报提成">
|
|
|
+ <el-table-column align="center" width='215' label="评估人员申报提成">
|
|
|
<template slot-scope="{row}">
|
|
|
<el-tag :type="row.edeclareResult ? (row.edeclareResult === '审核通过' ? 'success' : 'info') : 'danger'">{{
|
|
|
row.edeclareResult ? row.edeclareResult : '未申报' }}</el-tag>
|
|
@@ -623,6 +626,118 @@
|
|
|
</parentTable>
|
|
|
</y-page-list-layout>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog :visible.sync="allotAssetsAmountDialog" width="45%" center custom-class="doWarehouseClass"
|
|
|
+ @closed="cleanClaimDTO">
|
|
|
+ <el-form v-model="claimOrders" ref="claimOrdersForm">
|
|
|
+ <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="assetsDoAllotRealAmountToOrder()">确认认领</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="24" :span="6">
|
|
|
+ <el-form-item label="订单名称" prop="orderName" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input :value="p.name" 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">
|
|
|
+ <span class="redPoint">*</span>
|
|
|
+ <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"
|
|
|
+ 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="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="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-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>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog :visible.sync="allotAssetsProdDialog" width="45%" center custom-class="doWarehouseClass"
|
|
|
+ @closed="cleanClaimDTO">
|
|
|
+ <el-form v-model="claimOrders" ref="claimOrdersForm">
|
|
|
+ <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="assetsDoAllotRealAmountToProd()">确认认领</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="24" :span="6">
|
|
|
+ <el-form-item label="订单名称:" prop="name" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input :value="p.name" 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">
|
|
|
+ <span class="redPoint">*</span>
|
|
|
+ <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"
|
|
|
+ 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="reportNo" label-width="140px" class="postInfo-container-item">
|
|
|
+ <el-input :value="p.reportNo" 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="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-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>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -684,6 +799,8 @@ export default {
|
|
|
myAssetsOrderDialog: false,
|
|
|
allotAmountDialog: false,
|
|
|
allotProdDialog: false,
|
|
|
+ allotAssetsAmountDialog: false,
|
|
|
+ allotAssetsProdDialog: false,
|
|
|
realFund: {
|
|
|
id: null,
|
|
|
payer: null,
|
|
@@ -843,6 +960,29 @@ export default {
|
|
|
}
|
|
|
this.claimOrders = pickeds;
|
|
|
},
|
|
|
+ assetsHandleSelectionChange(val) {
|
|
|
+ let pickeds = [];
|
|
|
+ for (let i in val) {
|
|
|
+ let picked = new Object();
|
|
|
+ picked.id = val[i].id;
|
|
|
+ picked.orderName = val[i].name;
|
|
|
+ picked.name = val[i].name;
|
|
|
+ picked.reportNo = val[i].productionNo;
|
|
|
+ picked.orderId = val[i].orderId;
|
|
|
+ if (this.toAssetsProd) {
|
|
|
+ picked.shouldAmount = val[i].productionShouldAmount;
|
|
|
+ picked.realAmount = val[i].productionRealAmount;
|
|
|
+ } else {
|
|
|
+ picked.shouldAmount = val[i].orderShouldAmount;
|
|
|
+ picked.realAmount = val[i].orderRealAmount;
|
|
|
+ }
|
|
|
+ picked.orderFundId = val[i].orderFundId;
|
|
|
+ picked.financeFundId = this.financeFundId;
|
|
|
+ picked.productionFundId = val[i].productionFundId;
|
|
|
+ pickeds.push(picked);
|
|
|
+ }
|
|
|
+ this.claimOrders = pickeds;
|
|
|
+ },
|
|
|
openClaimDialog() {
|
|
|
if (this.claimOrders.length === 0) {
|
|
|
this.$notify({
|
|
@@ -861,7 +1001,24 @@ export default {
|
|
|
|
|
|
this.notInfo = this.notInfo + this.notClaimAmount + '¥'
|
|
|
},
|
|
|
+ openAssetsClaimDialog() {
|
|
|
+ if (this.claimOrders.length === 0) {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请先选择订单,然后认领。',
|
|
|
+ type: 'info',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.toAssetsProd) {
|
|
|
+ this.allotAssetsProdDialog = true;
|
|
|
+ } else {
|
|
|
+ this.allotAssetsAmountDialog = true;
|
|
|
+ }
|
|
|
|
|
|
+ this.notInfo = this.notInfo + this.notClaimAmount + '¥'
|
|
|
+ },
|
|
|
getMyPersonalOrder() {
|
|
|
this.$api.personal.waitingClamOrder(this.listQuery).then(res => {
|
|
|
if (res.code === 200) {
|
|
@@ -981,8 +1138,10 @@ export default {
|
|
|
this.getMyMajorOrderResetSearch();
|
|
|
}
|
|
|
},
|
|
|
- claimAssets() {
|
|
|
+ claimAssets(row) {
|
|
|
this.myAssetsOrderDialog = true;
|
|
|
+ this.notClaimAmount = row.notClaimAmount;
|
|
|
+ this.financeFundId = row.id;
|
|
|
},
|
|
|
resetAssetsListQuery() {
|
|
|
this.assetsListQuery = {
|
|
@@ -1023,12 +1182,72 @@ export default {
|
|
|
}
|
|
|
this.getMyAssetsOrder()
|
|
|
},
|
|
|
- getMyAssetsOrderOrProd(){
|
|
|
+ getMyAssetsOrderOrProd() {
|
|
|
if (this.toAssetsProd) {
|
|
|
this.getMyAssetsOrderProd();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.getMyAssetsOrder();
|
|
|
}
|
|
|
+ },
|
|
|
+ // 资产认领实收款到 订单
|
|
|
+ assetsDoAllotRealAmountToOrder() {
|
|
|
+ const orders = this.claimOrders;
|
|
|
+ for (let i in orders) {
|
|
|
+ if (!orders[i].thisTimeAmount) {
|
|
|
+ this.$message.error("订单号:[" + orders[i].orderId + "],本次认领金额不能为空。");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$api.businessProduction.assetsDoAllotRealAmountToOrder(this.claimOrders).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '实收款认领成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getMyAssetsOrder();
|
|
|
+ this.allotAssetsAmountDialog = false;
|
|
|
+ this.allotAssetsProdDialog = false;
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '实收款认领失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 资产认领实收款到 产品
|
|
|
+ assetsDoAllotRealAmountToProd() {
|
|
|
+ const orders = this.claimOrders;
|
|
|
+ for (let i in orders) {
|
|
|
+ if (!orders[i].thisTimeAmount) {
|
|
|
+ this.$message.error("报告号:[" + orders[i].reportNo + "],本次认领金额不能为空。");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$api.businessProduction.assetsDoAllotRealAmountToProd(this.claimOrders).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '实收款认领成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getMyAssetsOrderProd();
|
|
|
+ this.allotAssetsAmountDialog = false;
|
|
|
+ this.allotAssetsProdDialog = false;
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: '失败',
|
|
|
+ message: '实收款认领失败',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
|