123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350 |
- <template>
- <div class="app-container zap-main">
- <el-row v-if="activeIndex === '0'" class="zap-table-search">
- <div class="zap-padding-end">
- <right-toolbar
- class="zap-right-toolbar"
- :showSearch.sync="showSearch"
- @queryTable="getList"
- >收起</right-toolbar>
- <span class="zap-padding-start zap-font-title">所选条件:</span>
- <div style="float: right;margin-right:1%">
- <el-button type="cyan" icon="el-icon-search" @click="handleQuery">搜索</el-button>
- <el-button icon="el-icon-refresh" @click="resetQuery" style="margin-right: 20px;">重置</el-button>
- <column-setting
- class="zap-column-setting"
- :checkList="checkList"
- :tableList="tableList"
- :selfDom="selfDom"
- :tableId="tableId"
- ></column-setting>
- </div>
- <hr style="margin-top: 16px;" />
- <el-form
- :model="queryParams"
- ref="queryForm"
- :inline="true"
- v-show="showSearch"
- label-width="auto"
- >
- <el-form-item prop="type" size="large">
- <el-select v-model="queryParams.type" placeholder="请选择查询字段" clearable>
- <el-option
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- <el-form-item prop="value" size="large">
- <el-input
- v-model="queryParams.value"
- placeholder="请输入关键字模糊查询"
- clearable
- maxlength="30"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="承诺还款日期" prop="repaymentDate" size="large">
- <el-date-picker
- clearable
- unlink-panels
- v-model="queryParams.repaymentDate"
- value-format="yyyy-MM-dd"
- format="yyyy-MM-dd"
- type="daterange"
- range-separator="-"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </el-form-item>
- </el-form>
- </div>
- </el-row>
- <el-row v-if="activeIndex === '1'" class="zap-table-search">
- <div class="zap-padding-end">
- <right-toolbar
- class="zap-right-toolbar"
- :showSearch.sync="showSearch"
- @queryTable="getUnpayList"
- >收起</right-toolbar>
- <span class="zap-padding-start zap-font-title">所选条件:</span>
- <div style="float: right;margin-right:1%">
- <el-button type="cyan" icon="el-icon-search" @click="secondQuery">搜索</el-button>
- <el-button icon="el-icon-refresh" @click="resetSecondQuery" style="margin-right: 20px;">重置</el-button>
- <column-setting
- class="zap-column-setting"
- :checkList="checkList"
- :tableList="tableList"
- :selfDom="selfDom"
- :tableId="tableId"
- ></column-setting>
- </div>
- <hr style="margin-top: 16px;" />
- <el-form
- :model="unRepayment"
- ref="queryForm1"
- :inline="true"
- v-show="showSearch"
- label-width="auto"
- >
- <el-form-item prop="type" size="large">
- <el-select v-model="unRepayment.type" placeholder="请选择查询字段" clearable>
- <el-option
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- <el-form-item prop="value" size="large">
- <el-input
- v-model="unRepayment.value"
- placeholder="请输入关键字模糊查询"
- clearable
- maxlength="30"
- @keyup.enter.native="secondQuery"
- />
- </el-form-item>
- <el-form-item label="承诺还款日期" prop="repaymentDate" size="large">
- <el-date-picker
- clearable
- unlink-panels
- v-model="unRepayment.repaymentDate"
- value-format="yyyy-MM-dd"
- format="yyyy-MM-dd"
- type="daterange"
- range-separator="-"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </el-form-item>
- </el-form>
- </div>
- </el-row>
- <el-row v-if="activeIndex === '2'" class="zap-table-search">
- <div class="zap-padding-end">
- <right-toolbar
- class="zap-right-toolbar"
- :showSearch.sync="showSearch"
- @queryTable="getRepayList"
- >收起</right-toolbar>
- <span class="zap-padding-start zap-font-title">所选条件:</span>
- <div style="float: right;margin-right:1%">
- <el-button type="cyan" icon="el-icon-search" @click="thirdQuery">搜索</el-button>
- <el-button icon="el-icon-refresh" @click="resetThirdQuery" style="margin-right: 20px;">重置</el-button>
- <column-setting
- class="zap-column-setting"
- :checkList="checkList"
- :tableList="tableList"
- :selfDom="selfDom"
- :tableId="tableId"
- ></column-setting>
- </div>
- <hr style="margin-top: 16px;" />
- <el-form
- :model="repayment"
- ref="queryForm2"
- :inline="true"
- v-show="showSearch"
- label-width="auto"
- >
- <el-form-item prop="type" size="large">
- <el-select v-model="repayment.type" placeholder="请选择查询字段" clearable prop="type">
- <el-option
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- <el-form-item prop="value" size="large">
- <el-input
- v-model="repayment.value"
- prop="value"
- placeholder="请输入关键字模糊查询"
- clearable
- maxlength="30"
- @keyup.enter.native="thirdQuery"
- />
- </el-form-item>
- <el-form-item label="承诺还款日期" prop="repaymentDate" size="large">
- <el-date-picker
- clearable
- unlink-panels
- v-model="repayment.repaymentDate"
- value-format="yyyy-MM-dd"
- format="yyyy-MM-dd"
- type="daterange"
- range-separator="-"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </el-form-item>
- </el-form>
- </div>
- </el-row>
- <el-row v-if="activeIndex === '3'" class="zap-table-search">
- <div class="zap-padding-end">
- <right-toolbar
- class="zap-right-toolbar"
- :showSearch.sync="showSearch"
- @queryTable="getOverdueList"
- >收起</right-toolbar>
- <span class="zap-padding-start zap-font-title">所选条件:</span>
- <div style="float: right;margin-right:1%">
- <el-button type="cyan" icon="el-icon-search" @click="fouthQuery">搜索</el-button>
- <el-button icon="el-icon-refresh" @click="resetFouthQuery" style="margin-right: 20px;">重置</el-button>
- <column-setting
- class="zap-column-setting"
- :checkList="checkList"
- :tableList="tableList"
- :selfDom="selfDom"
- :tableId="tableId"
- ></column-setting>
- </div>
- <hr style="margin-top: 16px;" />
- <el-form
- :model="overdue"
- ref="queryForm3"
- :inline="true"
- v-show="showSearch"
- label-width="auto"
- >
- <el-form-item prop="type" size="large">
- <el-select v-model=" overdue.type" placeholder="请选择查询字段" clearable prop="type">
- <el-option
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- <el-form-item prop="value" size="large">
- <el-input
- v-model=" overdue.value"
- prop="value"
- placeholder="请输入关键字模糊查询"
- clearable
- maxlength="30"
- @keyup.enter.native="fouthQuery"
- />
- </el-form-item>
- <el-form-item label="承诺还款日期" prop="repaymentDate" size="large">
- <el-date-picker
- clearable
- unlink-panels
- v-model=" overdue.repaymentDate"
- value-format="yyyy-MM-dd"
- format="yyyy-MM-dd"
- type="daterange"
- range-separator="-"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </el-form-item>
- </el-form>
- </div>
- </el-row>
- <el-tabs class="zap-bg zap-margin-top" v-model="activeIndex">
- <el-tab-pane label="全部">
- <div class="zap-form">
- <el-form
- :model="amountQueryParams"
- ref="amountQueryForm"
- :inline="true"
- v-show="showSearch"
- label-width="auto"
- >
- <div style="width:20%;height:135px;background:#f2f2f2;float:left;border-radius: 5%; ">
- <span>总待还款金额:</span>
- <span>{{sumAmount}}</span>
- </div>
- <div
- style="width:20%;height:135px;background:#f2f2f2;float:left;margin-left:10px;border-radius: 5%;"
- >
- <el-form-item prop="day">
- <el-select
- v-model="amountQueryParams.day"
- size="small"
- @change="change(amountQueryParams.day)"
- >
- <el-option
- v-for="dict in dayOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- <span>待还款金额:</span>
- <span>{{amount}}</span>
- </div>
- </el-form>
- <div>
- <el-button
- type="primary"
- icon="el-icon-export"
- @click="handleExport"
- v-hasPermi="['service:repayment:export']"
- >导出待还款数据</el-button>
- </div>
- <el-table
- v-loading="loading"
- :data="allRepaymentList"
- @selection-change="handleSelectionChange"
- stripe
- >
- <el-table-column label="序号" type="index" width="50" align="center">
- <template slot-scope="scope">
- <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="融资编号"
- align="center"
- prop="zfrNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrNumber"
- />
- <el-table-column
- label="融信编号"
- align="center"
- prop="zfiNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfiNumber"
- />
- <el-table-column
- label="最终还款方"
- align="center"
- prop="core"
- :show-overflow-tooltip="true"
- v-if="uncheckList.core"
- />
- <el-table-column
- label="融资方"
- align="center"
- prop="supplier"
- :show-overflow-tooltip="true"
- v-if="uncheckList.supplier"
- />
- <el-table-column
- label="资金方"
- align="center"
- prop="scyName"
- :show-overflow-tooltip="true"
- v-if="uncheckList.scyName"
- />
- <el-table-column
- label="还款金额(元)"
- align="center"
- prop="zfrLoanAmount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrLoanAmount"
- />
- <el-table-column
- label="还款银行账户"
- align="center"
- prop="zfpcrAccount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfpcrAccount"
- />
- <el-table-column
- label="实际还款日期"
- align="center"
- prop="zfrPayDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrPayDate"
- />
- <el-table-column
- label="承诺付款日期"
- align="center"
- prop="zfrRepaymentDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrRepaymentDate"
- />
- <el-table-column
- label="还款状态"
- align="center"
- prop="zfrApplyStatus"
- :formatter="applyStatusFormat"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrApplyStatus"
- />
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-view"
- @click="handleInfo(scope.row)"
- v-hasPermi="['service:repayment:query']"
- >详情</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDown(scope.row)"
- v-hasPermi="['service:repayment:down']"
- >下载</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleUp(scope.row)"
- v-hasPermi="['service:repayment:edit']"
- v-if="scope.row.zfrApplyStatus != '01'"
- >还款登记</el-button>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- </div>
- </el-tab-pane>
- <el-tab-pane label="待还款">
- <div class="zap-content">
- <el-button
- type="primary"
- icon="el-icon-export"
- @click="handleExport"
- v-hasPermi="['service:repayment:export']"
- >导出待还款数据</el-button>
- </div>
- <el-table
- v-loading="loading"
- :data="unRepaymentList"
- @selection-change="handleSelectionChange"
- border
- >
- <el-table-column label="序号" type="index" width="50" align="center">
- <template slot-scope="scope">
- <span>{{(unRepayment.pageNum - 1) * unRepayment.pageSize + scope.$index + 1}}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="融资编号"
- align="center"
- prop="zfrNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrNumber"
- />
- <el-table-column
- label="融信编号"
- align="center"
- prop="zfiNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfiNumber"
- />
- <el-table-column
- label="最终还款方"
- align="center"
- prop="core"
- :show-overflow-tooltip="true"
- v-if="uncheckList.core"
- />
- <el-table-column
- label="融资方"
- align="center"
- prop="supplier"
- :show-overflow-tooltip="true"
- v-if="uncheckList.supplier"
- />
- <el-table-column
- label="资金方"
- align="center"
- prop="scyName"
- :show-overflow-tooltip="true"
- v-if="uncheckList.scyName"
- />
- <el-table-column
- label="还款金额(元)"
- align="center"
- prop="zfrLoanAmount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrLoanAmount"
- />
- <el-table-column
- label="还款银行账户"
- align="center"
- prop="zfpcrAccount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfpcrAccount"
- />
- <el-table-column
- label="实际还款日期"
- align="center"
- prop="zfrPayDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrPayDate"
- />
- <el-table-column
- label="承诺付款日期"
- align="center"
- prop="zfrRepaymentDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrRepaymentDate"
- />
- <el-table-column
- label="还款状态"
- align="center"
- prop="zfrApplyStatus"
- :formatter="applyStatusFormat"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrApplyStatus"
- />
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-view"
- @click="handleInfo(scope.row)"
- v-hasPermi="['service:repayment:query']"
- >详情</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDown(scope.row)"
- v-hasPermi="['service:repayment:down']"
- >下载</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleUp(scope.row)"
- v-hasPermi="['service:repayment:up']"
- v-if="scope.row.zfrApplyStatus != '01'"
- >还款登记</el-button>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total>0"
- :total="total1"
- :page.sync="unRepayment.pageNum"
- :limit.sync="unRepayment.pageSize"
- @pagination="getList"
- />
- </el-tab-pane>
- <el-tab-pane label="已还款">
- <div class="zap-content">
- <el-button
- type="primary"
- icon="el-icon-export"
- @click="handleExport"
- v-hasPermi="['service:repayment:export']"
- >导出待还款数据</el-button>
- </div>
- <el-table
- v-loading="loading"
- :data="repaymentList"
- @selection-change="handleSelectionChange"
- border
- >
- <el-table-column label="序号" type="index" width="50" align="center">
- <template slot-scope="scope">
- <span>{{(repayment.pageNum - 1) * repayment.pageSize + scope.$index + 1}}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="融资编号"
- align="center"
- prop="zfrNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrNumber"
- />
- <el-table-column
- label="融信编号"
- align="center"
- prop="zfiNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfiNumber"
- />
- <el-table-column
- label="最终还款方"
- align="center"
- prop="core"
- :show-overflow-tooltip="true"
- v-if="uncheckList.core"
- />
- <el-table-column
- label="融资方"
- align="center"
- prop="supplier"
- :show-overflow-tooltip="true"
- v-if="uncheckList.supplier"
- />
- <el-table-column
- label="资金方"
- align="center"
- prop="scyName"
- :show-overflow-tooltip="true"
- v-if="uncheckList.scyName"
- />
- <el-table-column
- label="还款金额(元)"
- align="center"
- prop="zfrLoanAmount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrLoanAmount"
- />
- <el-table-column
- label="还款银行账户"
- align="center"
- prop="zfpcrAccount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfpcrAccount"
- />
- <el-table-column
- label="实际还款日期"
- align="center"
- prop="zfrPayDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrPayDate"
- />
- <el-table-column
- label="承诺付款日期"
- align="center"
- prop="zfrRepaymentDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrRepaymentDate"
- />
- <el-table-column
- label="还款状态"
- align="center"
- prop="zfrApplyStatus"
- :formatter="applyStatusFormat"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrApplyStatus"
- />
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-view"
- @click="handleInfo(scope.row)"
- v-hasPermi="['service:repayment:query']"
- >详情</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDown(scope.row)"
- v-hasPermi="['service:repayment:down']"
- >下载</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleUp(scope.row)"
- v-hasPermi="['service:repayment:up']"
- v-if="scope.row.zfrApplyStatus != '01'"
- >还款登记</el-button>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total>0"
- :total="total2"
- :page.sync="repayment.pageNum"
- :limit.sync="repayment.pageSize"
- @pagination="getList"
- />
- </el-tab-pane>
- <el-tab-pane label="逾期">
- <div class="zap-content">
- <el-button
- type="primary"
- icon="el-icon-export"
- @click="handleExport"
- v-hasPermi="['service:repayment:export']"
- >导出待还款数据</el-button>
- </div>
- <el-table
- v-loading="loading"
- :data="overdueList"
- @selection-change="handleSelectionChange"
- border
- >
- <el-table-column label="序号" type="index" width="50" align="center">
- <template slot-scope="scope">
- <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="融资编号"
- align="center"
- prop="zfrNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrNumber"
- />
- <el-table-column
- label="融信编号"
- align="center"
- prop="zfiNumber"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfiNumber"
- />
- <el-table-column
- label="最终还款方"
- align="center"
- prop="core"
- :show-overflow-tooltip="true"
- v-if="uncheckList.core"
- />
- <el-table-column
- label="融资方"
- align="center"
- prop="supplier"
- :show-overflow-tooltip="true"
- v-if="uncheckList.supplier"
- />
- <el-table-column
- label="资金方"
- align="center"
- prop="scyName"
- :show-overflow-tooltip="true"
- v-if="uncheckList.scyName"
- />
- <el-table-column
- label="还款金额(元)"
- align="center"
- prop="zfrLoanAmount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrLoanAmount"
- />
- <el-table-column
- label="还款银行账户"
- align="center"
- prop="zfpcrAccount"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfpcrAccount"
- />
- <el-table-column
- label="实际还款日期"
- align="center"
- prop="zfrPayDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrPayDate"
- />
- <el-table-column
- label="承诺付款日期"
- align="center"
- prop="zfrRepaymentDate"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrRepaymentDate"
- />
- <el-table-column
- label="还款状态"
- align="center"
- prop="zfrApplyStatus"
- :formatter="applyStatusFormat"
- :show-overflow-tooltip="true"
- v-if="uncheckList.zfrApplyStatus"
- />
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="text"
- icon="el-icon-view"
- @click="handleInfo(scope.row)"
- v-hasPermi="['service:repayment:query']"
- >详情</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleDown(scope.row)"
- v-hasPermi="['service:repayment:down']"
- >下载</el-button>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-delete"
- @click="handleUp(scope.row)"
- v-hasPermi="['service:repayment:up']"
- v-if="scope.row.zfrApplyStatus != '01'"
- >还款登记</el-button>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total>0"
- :total="total3"
- :page.sync="overdue.pageNum"
- :limit.sync="overdue.pageSize"
- @pagination="getList"
- />
- </el-tab-pane>
- <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
- <el-form-item label="上传附件">
- <el-upload
- ref="upload"
- class="upload-demo"
- action
- :class="{showUoload:showBtnImg,uoloadSty:noneBtnImg}"
- :on-change="dealImgChange"
- accept=".jpg, .jpeg, .png, .JPG, .JPEG, .PNG"
- :http-request="httpRequest"
- :on-preview="handlePictureCardPreview"
- :on-remove="handleRemove"
- :before-upload="beforeAvatarUpload"
- multiple
- :limit="1"
- :on-exceed="handleExceed"
- list-type="picture-card"
- :file-list="fileList"
- :auto-upload="true"
- >
- <div slot="trigger" class="zap-contract-add__upload">
- <i class="el-icon-upload"></i>
- <div class="zap-upload__text">上传文件</div>
- </div>
- </el-upload>
- </el-form-item>
- <el-form-item label="融资id" prop="zfrId" label-width="90px" v-if="false">
- <el-input v-model="form.zfrId" style="width:284px" />
- </el-form-item>
- <!-- <el-form-item label="融信id" prop="zfrFinanceId" label-width="90px" v-if="false">
- <el-input v-model="form.zfrFinanceId" style="width:284px"/>
- </el-form-item>-->
- </el-form>
- <el-row style="height: 109px;" type="flex" align="middle" justify="center">
- <el-button type="primary" plain @click="cancel">取 消</el-button>
- <el-button type="primary" @click="submitForm">确 定</el-button>
- </el-row>
- </el-dialog>
- <el-dialog :visible.sync="dialogVisible">
- <img width="100%" :src="dialogImageUrl" alt />
- </el-dialog>
- </el-tabs>
- </div>
- </template>
- <script>
- import {
- listRepayment,
- RepaymentRegistration,
- repaymentAmount
- } from "@/api/service/repayment/repayment";
- import ColumnSetting from "../../../components/Table/columnSetting.vue";
- import { columnQuery, columnfilter } from "@/api/common/columnSetting";
- import Cookies from "js-cookie";
- import { uploadFileNew } from "@/api/common/file";
- import { getToken } from "@/utils/auth";
- export default {
- name: "repayment",
- components: {
- ColumnSetting
- },
- data() {
- return {
- activeIndex: "",
- //总代还款金额
- sumAmount: 0.0,
- //带还款金额
- amount: 0.0,
- dayOptions: [],
- // 遮罩层
- loading: true,
- // 选中数组
- ids: [],
- // 非单个禁用
- single: true,
- // 非多个禁用
- multiple: true,
- // 显示搜索条件
- showSearch: true,
- // 总条数
- total: 0,
- total1: 0,
- total2: 0,
- total3: 0,
- //附件按钮
- showBtnImg: true,
- noneBtnImg: false,
- limitCountImg: 1,
- //上传使用
- dialogImageUrl: "",
- dialogVisible: false,
- //附件地址
- fileList: [],
- // 弹出层标题
- title: "",
- // 全部还款列表
- allRepaymentList: [],
- //待还款列表
- unRepaymentList: [],
- //已还款列表
- repaymentList: [],
- //逾期列表
- overdueList: [],
- typeOptions: [],
- // 是否显示弹出层
- open: false,
- // 查询参数
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- type: null,
- value: null,
- repaymentDate: [],
- status: null
- },
- unRepayment: {
- pageNum: 1,
- pageSize: 10,
- type: null,
- value: null,
- repaymentDate: [],
- status: null
- },
- repayment: {
- pageNum: 1,
- pageSize: 10,
- type: null,
- value: null,
- repaymentDate: [],
- status: null
- },
- overdue: {
- pageNum: 1,
- pageSize: 10,
- type: null,
- value: null,
- repaymentDate: [],
- status: null
- },
- amountQueryParams: {
- day: "00"
- },
- // 表单参数
- form: {},
- amountQueryForm: {
- day: "00"
- },
- // 表单校验
- rules: {
- // pptName:[
- // { required: true, message: "项目类型不能为空", trigger: "blur" },
- // ]
- },
- tableList: [
- {
- label: "zfrNumber",
- value: "融资编号"
- },
- {
- label: "zfiNumber",
- value: "融信编号"
- },
- {
- label: "core",
- value: "最终还款方"
- },
- {
- label: "supplier",
- value: "融资方"
- },
- {
- label: "scyName",
- value: "资金方"
- },
- {
- label: "zfrLoanAmount",
- value: "还款金额(元)"
- },
- {
- label: "zfpcrAccount",
- value: "还款银行账户"
- },
- {
- label: "zfrPayDate",
- value: "实际还款日期"
- },
- {
- label: "zfrRepaymentDate",
- value: "承诺付款日期"
- },
- {
- label: "zfrApplyStatus",
- value: "还款状态"
- }
- ],
- checkList: [], //筛选列选中的数据列表--显示隐藏列用
- uncheckList: {}, //控制筛选列显示隐藏--显示隐藏列用
- selfDom: this,
- tableId: "/service/repayment/list"
- };
- },
- created() {
- this.getList();
- this.getUnpayList();
- this.getRepayList();
- this.getOverdueList();
- this.getRepaymentAmount();
- this.getDicts("zc_zfr_apply_status").then(response => {
- this.applyStatusOptions = response.data;
- });
- this.getDicts("zc_zfr_type").then(response => {
- this.typeOptions = response.data;
- });
- this.getDicts("zc_repanyment_day").then(response => {
- this.dayOptions = response.data;
- });
- this.amountQueryParams.day = null;
- repaymentAmount(this.amountQueryParams).then(response => {
- this.sumAmount = response.data;
- });
- },
- activated() {
- this.getList();
- },
- mounted() {
- this.columnQuery();
- },
- methods: {
- /** 查询所有还款列表 */
- getList() {
- this.loading = true;
- listRepayment(this.queryParams).then(response => {
- this.allRepaymentList = response.data.records;
- this.total = response.data.total;
- this.loading = false;
- });
- },
- /** 查询未还款列表 */
- getUnpayList() {
- this.loading = true;
- this.unRepayment.status = "00";
- listRepayment(this.unRepayment).then(response => {
- this.unRepaymentList = response.data.records;
- this.total1 = response.data.total;
- this.loading = false;
- });
- },
- /** 查询已还款列表 */
- getRepayList() {
- this.loading = true;
- this.repayment.status = "01";
- listRepayment(this.repayment).then(response => {
- this.repaymentList = response.data.records;
- this.total2 = response.data.total;
- this.loading = false;
- });
- },
- /** 查询逾期列表 */
- getOverdueList() {
- this.loading = true;
- this.overdue.status = "02";
- listRepayment(this.overdue).then(response => {
- this.overdueList = response.data.records;
- this.total3 = response.data.total;
- this.loading = false;
- });
- },
- /** 查询带还款金额 */
- getRepaymentAmount() {
- repaymentAmount(this.amountQueryParams).then(response => {
- this.amount = response.data;
- });
- },
- // 取消按钮
- cancel() {
- this.open = false;
- this.reset();
- },
- // 表单重置
- reset() {
- this.form = {};
- this.fileList = [];
- this.resetForm("form");
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- secondQuery() {
- this.unRepayment.pageNum = 1;
- this.getUnpayList();
- },
- thirdQuery() {
- this.repayment.pageNum = 1;
- this.getRepayList();
- },
- fouthQuery() {
- this.overdue.pageNum = 1;
- this.getOverdueList();
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- resetSecondQuery() {
- this.resetForm("queryForm1");
- this.secondQuery();
- },
- resetThirdQuery() {
- this.resetForm("queryForm2");
- this.thirdQuery();
- },
- resetFouthQuery() {
- this.resetForm("queryForm3");
- this.fouthQuery();
- },
- change(val) {
- this.amountQueryParams.day = val;
- repaymentAmount(this.amountQueryParams).then(response => {
- this.amount = response.data;
- });
- },
- // 多选框选中数据
- handleSelectionChange(selection) {
- /* this.ids = selection.map(item => item.ptcId)
- this.single = selection.length!==1
- this.multiple = !selection.length */
- },
- /** 详情按钮操作 */
- handleInfo(row) {
- const zfrId = row.zfrId;
- this.resetForm("queryForm");
- this.resetForm("queryForm1");
- this.resetForm("queryForm2");
- this.resetForm("queryForm3");
- Cookies.set(
- "/repayment/detailRepayment/" + zfrId + "/",
- this.$route.fullPath
- );
- this.$router.push({ path: "/repayment/detailRepayment/" + zfrId + "/" });
- },
- /** 下载按钮操作 */
- handleDown(row) {
- var zfrId = row.zfrId;
- const loading = this.$loading({
- lock: true,
- text: "Loading",
- spinner: "el-icon-loading",
- background: "rgba(0, 0, 0, 0.7)"
- });
- this.download("sc-service/repayment/export/" + zfrId, {}, `还款明细.doc`);
- setTimeout(() => {
- loading.close();
- this.create = false;
- this.end = true;
- this.active = 1;
- }, 3000);
- },
- //上传附件
- handleUp(row) {
- this.reset();
- this.form.zfrId = row.zfrId || this.ids;
- this.showBtnImg = true;
- this.noneBtnImg = this.fileList.length >= this.limitCountImg;
- this.open = true;
- this.title = "还款登记";
- },
- //上传前校验
- beforeAvatarUpload(file) {
- const isJPG = file.type === "image/jpeg" || file.type === "image/png";
- const isLt2M = file.size / 1024 / 1024 < 2;
- if (!isJPG) {
- this.$message.error("上传图片只能是 JPG/PNG 格式");
- }
- if (!isLt2M) {
- this.$message.error("上传图片大小不能超过 2MB");
- }
- return isJPG && isLt2M;
- },
- //还款状态字典反显
- applyStatusFormat(row, column) {
- return this.selectDictLabel(this.applyStatusOptions, row.zfrApplyStatus);
- },
- //获取当前客户是否之前设置过列展示隐藏
- columnQuery() {
- //获取页面路径
- var psfPagePath = window.location.pathname; //用请求后台的url作为唯一标识
- var psfTableName = this.tableId;
- var columnForm = {};
- columnForm.psfPagePath = psfPagePath;
- columnForm.psfTableName = psfTableName;
- columnQuery(columnForm).then(response => {
- if (response.data && response.data.psfShowData) {
- this.checkList = response.data.psfShowData;
- }
- this.filter();
- });
- }, //控制隐藏显示的函数
- filter(checkList) {
- if (!!checkList) {
- this.checkList = checkList;
- }
- columnfilter(this.selfDom);
- },
- /** 上传图片 */
- submitUpload() {
- this.$refs.upload.submit();
- },
- //文件移除提示
- handleRemove(file, fileList) {
- console.log(file);
- for (let i = 0; i < this.fileList.length; i++) {
- if (file.uid == this.fileList[i].uid) {
- this.fileList.splice(i, 1);
- break;
- }
- }
- this.noneBtnImg = fileList.length >= this.limitCountImg;
- //return this.$confirm(`确定移除 ${ file.name }?`);
- },
- dealImgChange(file, fileList) {
- this.noneBtnImg = fileList.length >= this.limitCountImg;
- },
- handleExceed(files, fileList) {
- this.$message.warning(`当前限制选择 1 个文件`);
- },
- handlePictureCardPreview(file) {
- this.dialogImageUrl = file.url;
- this.dialogVisible = true;
- },
- //手动上传文件触发
- httpRequest(param) {
- let fileObj = param.file; // 相当于input里取得的files
- let fd = new FormData(); // FormData 对象
- fd.append("file", fileObj); // 文件对象
- fd.append("fileType", "00"); //文件类型
- const loading = this.$loading({
- lock: true,
- text: "Loading",
- spinner: "el-icon-loading",
- background: "rgba(0, 0, 0, 0.7)"
- });
- uploadFileNew(fd)
- .then(response => {
- if (response) {
- // this.form.eeiImgUrl = response.url
- this.fileList.push({
- uid: response.fileId,
- url: response.url + "/" + getToken()
- });
- console.log(response.url);
- setTimeout(() => {
- loading.close();
- }, 2000);
- }
- })
- .catch(response => {
- loading.close();
- });
- },
- /** 提交按钮 */
- submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if (this.form.zfrId != null) {
- this.form.zfrApplyFile = this.fileList;
- RepaymentRegistration(this.form).then(response => {
- this.msgSuccess("登记成功");
- this.open = false;
- this.getList();
- });
- }
- }
- });
- },
- /** 导出按钮操作 */
- handleExport() {
- const loading = this.$loading({
- lock: true,
- text: "Loading",
- spinner: "el-icon-loading",
- background: "rgba(0, 0, 0, 0.7)"
- });
- this.download(
- "sc-service/repayment/export",
- {
- ...this.queryParams
- },
- `待还款列表.xls`
- );
- setTimeout(() => {
- loading.close();
- this.create = false;
- this.end = true;
- this.active = 1;
- }, 3000);
- }
- }
- };
- </script>
- <style>
- .uoloadSty .el-upload--picture-card {
- display: none;
- }
- </style>
- <style lang="scss" scoped>
- ::v-deep .el-tabs__item {
- width: 105px;
- height: 55px;
- padding: 0;
- line-height: 55px;
- text-align: center;
- font-size: 16px;
- }
- ::v-deep .el-textarea__inner {
- width: 100%;
- height: 106px;
- background-image: linear-gradient(#f4f5f6, #f4f5f6),
- linear-gradient(#71befe, #71befe);
- background-blend-mode: normal, normal;
- border: solid 1px #ebebeb;
- }
- ::v-deep .el-textarea .el-input__count {
- background-color: transparent;
- }
- ::v-deep .el-upload--picture-card{
- border: none;
- }
- .zap-contract-add__upload {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 148px;
- height: 148px;
- border: dashed 1px #e0e0e0;
- background-color: #f4f5f6;
- }
- .el-icon-upload {
- font-size: 32px;
- color: #02c464;
- }
- .zap-upload__text {
- line-height: 1;
- margin-top: 12px;
- font-size: 12px;
- color: #333333;
- }
- </style>
|