|
@@ -324,7 +324,7 @@
|
|
|
</parentTable>
|
|
|
</y-page-list-layout>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="我的个贷订单" name="second">
|
|
|
+ <el-tab-pane label="我的个贷订单" name="PERSONAL_BUSINESS">
|
|
|
<y-page-list-layout :page-list="myPersonalPageData" :page-para="orderListQuery" :get-page-list="getMyPersonalOrder">
|
|
|
<template slot="left">
|
|
|
<el-input v-model="listQuery.name" placeholder="坐落" clearable
|
|
@@ -340,35 +340,40 @@
|
|
|
</el-button>
|
|
|
<el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch()">重置
|
|
|
</el-button>
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="info" @click="downloadTemp()">下载模板
|
|
|
+ </el-button>
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="danger" @click="uploadTemp()">模板认领
|
|
|
+ </el-button>
|
|
|
+ <input type="file" ref="fileInput" style="display: none" @change="handleFileChange" />
|
|
|
</template>
|
|
|
- <parentTable :data="myMajorPageData.records" slot="table" style="width: 100%;" :selectionChange="handleSelectionChange">
|
|
|
+ <parentTable :data="myPersonalPageData.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 >
|
|
|
+ <el-table-column label="坐落" align="center">
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.location }}</span>
|
|
|
+ <span>{{ row.orderName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="订单号" align="center" show-overflow-tooltip >
|
|
|
+ <el-table-column label="项目编号" align="center">
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{row.orderId }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="委托人" align="center" show-overflow-tooltip width='100'>
|
|
|
+ <el-table-column label="委托人" align="center" width='100'>
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.bailorA}} {{ row.bailorB}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="客户名称" align="center" width='200' show-overflow-tooltip>
|
|
|
+ <el-table-column label="客户名称" align="center" width='200' >
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.clientName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="业务来源" align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column label="业务来源" align="center" >
|
|
|
<template slot-scope="{row}">
|
|
|
<span>{{ row.clientSubName }}</span>
|
|
|
</template>
|
|
@@ -383,9 +388,9 @@
|
|
|
<span>{{ row.contactName}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="实收款(元)" align="center" >
|
|
|
+ <el-table-column label="已认领(元)" align="center" >
|
|
|
<template slot-scope="{row}">
|
|
|
- <span>{{ row.realAmount }}</span>
|
|
|
+ <span style="color:red;font-weight: bold;">{{ row.realAmount?row.realAmount:0 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -399,7 +404,7 @@
|
|
|
</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-button style="display:flex; position:absolute;right:50px;top:50px" round 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">
|
|
@@ -417,12 +422,12 @@
|
|
|
<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-form-item :label="labelName" 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-form-item :label="labelNum" 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>
|
|
@@ -452,15 +457,16 @@
|
|
|
</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">
|
|
|
+ <div v-if="activeName==='MAJOR_BUSINESS'">
|
|
|
+ <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">
|
|
@@ -483,6 +489,7 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<span v-else style="margin-left:140px;color:RGB(153,153,153)">暂无产品</span>
|
|
|
+ </div>
|
|
|
</el-card>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
@@ -500,6 +507,18 @@ export default {
|
|
|
YPageListLayout
|
|
|
},
|
|
|
|
|
|
+ watch:{
|
|
|
+ activeName:function(){
|
|
|
+ if (this.activeName==='MAJOR_BUSINESS'){
|
|
|
+ this.labelName='订单名称:';
|
|
|
+ this.labelNum='订单号:';
|
|
|
+ }
|
|
|
+ if (this.activeName==='PERSONAL_BUSINESS'){
|
|
|
+ this.labelName='坐落:';
|
|
|
+ this.labelNum='项目编号:';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
pageData: { records: [] },
|
|
@@ -546,6 +565,35 @@ export default {
|
|
|
orderDate:'',
|
|
|
payDate:'',
|
|
|
myPersonalPageData:{ records: [] },
|
|
|
+ labelName:'订单名称:',
|
|
|
+ labelNum:'项目编号:',
|
|
|
+ pickerOptions: {
|
|
|
+ shortcuts: [{
|
|
|
+ text: '最近一周',
|
|
|
+ onClick(picker) {
|
|
|
+ const end = new Date();
|
|
|
+ const start = new Date();
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '最近一个月',
|
|
|
+ onClick(picker) {
|
|
|
+ const end = new Date();
|
|
|
+ const start = new Date();
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '最近三个月',
|
|
|
+ onClick(picker) {
|
|
|
+ const end = new Date();
|
|
|
+ const start = new Date();
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -686,6 +734,9 @@ export default {
|
|
|
if (tab.name === 'MAJOR_BUSINESS'){
|
|
|
this.getMyMajorOrder();
|
|
|
}
|
|
|
+ if (tab.name === 'PERSONAL_BUSINESS'){
|
|
|
+ this.getMyPersonalOrder();
|
|
|
+ }
|
|
|
},
|
|
|
openMyOrderDialog(row){
|
|
|
this.myOrderDialog = true;
|
|
@@ -834,11 +885,34 @@ export default {
|
|
|
},
|
|
|
|
|
|
getMyPersonalOrder(){
|
|
|
- this.$api.personal.list(this.listQuery).then(res=>{
|
|
|
+ this.$api.personal.waitingClamOrder(this.listQuery).then(res=>{
|
|
|
if (res.code ===200){
|
|
|
this.myPersonalPageData = res.data;
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ downloadTemp(){
|
|
|
+ window.location.href = "/api/financeClaim/personal/claim/template"
|
|
|
+ },
|
|
|
+ uploadTemp(){
|
|
|
+ this.$refs.fileInput.click();
|
|
|
+ },
|
|
|
+ handleFileChange(event){
|
|
|
+ const file = event.target.files[0]; // 获取选中的文件
|
|
|
+ if (file) {
|
|
|
+ // 处理文件
|
|
|
+ this.$api.financeClaim.uploadPersonalTemp(file).then(res => {
|
|
|
+ if (res.code ===200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '模板认领成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getMyPersonalOrder();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|