credit.vue 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383
  1. <template>
  2. <el-tabs type="border-card">
  3. <!-- 全部-->
  4. <el-tab-pane label="全部">
  5. <el-card class="fiche">
  6. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
  7. <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
  8. <div style="float: right;margin-right:1%">
  9. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  10. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" style="float: ;">重置</el-button>
  11. </div>
  12. <hr style="margin-top: 16px;">
  13. <el-form :model="queryParams" ref="queryForm" :inline="true" v-if="showSearch" label-width="68px">
  14. <el-form-item label="融信编码" prop="zfiNumber">
  15. <el-input
  16. v-model.trim="queryParams.zfiNumber"
  17. placeholder="请输入融信编码"
  18. clearable
  19. size="small"
  20. maxlength="25"
  21. @keyup.enter.native="handleQuery"
  22. />
  23. </el-form-item>
  24. <el-form-item label="开立企业" prop="openCompany">
  25. <el-input
  26. v-model.trim="queryParams.openCompany"
  27. placeholder="请输入开立企业"
  28. clearable
  29. size="small"
  30. maxlength="25"
  31. @keyup.enter.native="handleQuery"
  32. />
  33. </el-form-item>
  34. <el-form-item label="接收企业" prop="receiveCompany">
  35. <el-input
  36. v-model.trim="queryParams.receiveCompany"
  37. placeholder="请输入接收企业"
  38. clearable
  39. size="small"
  40. maxlength="25"
  41. @keyup.enter.native="handleQuery"
  42. />
  43. </el-form-item>
  44. <el-form-item label="融信产品" prop="zfpName">
  45. <el-input
  46. v-model.trim="queryParams.zfpName"
  47. placeholder="请输入融信产品"
  48. clearable
  49. size="small"
  50. maxlength="25"
  51. @keyup.enter.native="handleQuery"
  52. />
  53. </el-form-item>
  54. <el-form-item label="融信金额">
  55. <el-input
  56. v-model="queryParams.startAmt"
  57. placeholder="请输入融信金额"
  58. clearable
  59. size="small"
  60. maxlength="20"
  61. />
  62. </el-form-item>
  63. <el-form-item>
  64. ~
  65. </el-form-item>
  66. <el-form-item>
  67. <el-input
  68. v-model="queryParams.endAmt"
  69. placeholder="请输入融信金额"
  70. clearable
  71. size="small"
  72. @keyup.enter.native="handleQuery"
  73. maxlength="20"
  74. />
  75. </el-form-item>
  76. <el-form-item label="签收日期" prop="zfiSignDate">
  77. <el-date-picker size="small"
  78. v-model="queryParams.zfiSignDate"
  79. style="width: 240px"
  80. unlink-panels
  81. value-format="yyyy-MM-dd"
  82. type="daterange"
  83. range-separator="-"
  84. start-placeholder="开始日期"
  85. end-placeholder="结束日期">
  86. </el-date-picker>
  87. </el-form-item>
  88. <el-form-item label="承诺日期" prop="zfiExpireDate">
  89. <el-date-picker size="small"
  90. v-model="queryParams.zfiExpireDate"
  91. style="width: 240px"
  92. unlink-panels
  93. value-format="yyyy-MM-dd"
  94. type="daterange"
  95. range-separator="-"
  96. start-placeholder="开始日期"
  97. end-placeholder="结束日期">
  98. </el-date-picker>
  99. </el-form-item>
  100. <el-form-item label="融信利率" prop="zfiRate">
  101. <el-input
  102. v-model.trim="queryParams.zfiRate"
  103. placeholder="请输入融信利率"
  104. clearable
  105. size="small"
  106. maxlength="25"
  107. @keyup.enter.native="handleQuery"
  108. />
  109. </el-form-item>
  110. <!-- <el-form-item label="状态" prop="zfiStatus">
  111. <el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
  112. <el-option
  113. v-for="dict in stateOptions"
  114. :key="dict.dictValue"
  115. :label="dict.dictLabel"
  116. :value="dict.dictValue"
  117. />
  118. </el-select>
  119. </el-form-item> -->
  120. </el-form>
  121. </el-card>
  122. <el-row :gutter="10" class="mb8">
  123. <el-col :span="1.5">
  124. <el-button
  125. type="primary"
  126. icon="el-icon-plus"
  127. size="mini"
  128. @click="handleAdd"
  129. v-hasPermi="['credit:credit:add']"
  130. >开立融信</el-button>
  131. <el-button
  132. type="primary"
  133. icon="el-icon-plus"
  134. size="mini"
  135. @click="finanOpening"
  136. v-hasPermi="['finanOpening:finanOpening:add']"
  137. >融资开立</el-button>
  138. <el-button
  139. type="primary"
  140. icon="el-icon-plus"
  141. size="mini"
  142. @click="apply"
  143. v-hasPermi="['finanOpening:finanOpening:apply']"
  144. >融资申请</el-button>
  145. </el-col>
  146. </el-row>
  147. <el-table v-loading="loading" :data="infList" @selection-change="handleSelectionChange" border>
  148. <el-table-column label="序号" type="index" width="50" align="center">
  149. <template slot-scope="scope">
  150. <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
  151. </template>
  152. </el-table-column>
  153. <el-table-column label="融信编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  154. <el-table-column label="开立方" align="center" prop="openName" :show-overflow-tooltip="true"/>
  155. <el-table-column label="接收方" align="center" prop="receiveName" :show-overflow-tooltip="true"/>
  156. <el-table-column label="融信类型" :formatter="typeFormat" align="center" prop="zfiCreateType" :show-overflow-tooltip="true"/>
  157. <el-table-column label="融信产品" align="center" prop="zfpName" :show-overflow-tooltip="true"/>
  158. <el-table-column label="融信金额" align="center" :formatter="moneyFormat" prop="zfiAmount" :show-overflow-tooltip="true" />
  159. <el-table-column label="融信利率(%)" align="center" width="100px;" prop="zfiRate" :show-overflow-tooltip="true"/>
  160. <el-table-column label="签发有效期" align="center" width="100px;" prop="zfiEffectiveDate" :show-overflow-tooltip="true" />
  161. <el-table-column label="承诺还款日" align="center" width="100px;" prop="zfiExpireDate" :show-overflow-tooltip="true" />
  162. <el-table-column label="签收日期" align="center" prop="zfiSignDate" :show-overflow-tooltip="true" />
  163. <el-table-column label="承诺函编号" align="center" width="100px;" prop="zfiPaymentNumber" :show-overflow-tooltip="true"/>
  164. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true" v-if="this.companyType == '02' || this.companyType == '00'"/>
  165. <el-table-column label="平台审批状态" :formatter="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true" v-if="this.companyType == '00'"/>
  166. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true" v-if="this.companyType == '01' || this.companyType == '00'"/>
  167. <el-table-column label="状态" :formatter="stateFormat" align="center" prop="zfiStatus" :show-overflow-tooltip="true" />
  168. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  169. <template slot-scope="scope">
  170. <el-button
  171. size="mini"
  172. type="text"
  173. icon="el-icon-view"
  174. @click="handleDetail(scope.row)"
  175. v-hasPermi="['credit:credit:query']"
  176. >详情</el-button>
  177. <!--
  178. (融资方)融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
  179. (融资方)融资状态审批通过+核心状态为空+平台状态审批不通过+融信平台退回||
  180. (核心方)融资审批通过+核心审批拒绝+平台审批通过+融信待确权
  181. (核心方)融资审批状态空+核心审批拒绝+平台空+融信空||
  182. (融资方)融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
  183. (融资方)融资审批审批通过+核心审批通过+平台拒绝+融信待签收
  184. -->
  185. <el-button
  186. size="mini"
  187. type="text"
  188. icon="el-icon-edit"
  189. @click="handleUpdate(scope.row)"
  190. v-hasPermi="['credit:credit:update']"
  191. v-show="(scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  192. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  193. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  194. (scope.row.companyType == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' || scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  195. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  196. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
  197. >修改</el-button>
  198. <!--融资申请/开立+融信状态待确权+核心审批状态为空-->
  199. <el-button
  200. size="mini"
  201. type="text"
  202. icon="el-icon-edit"
  203. @click="handleApprove(scope.row)"
  204. v-hasPermi="['credit:credit:approve']"
  205. v-show="(scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2' ) && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null' ||scope.row.zfiCoreStatus =='02' )"
  206. >确权</el-button>
  207. <!--原补充资料-->
  208. <!--核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过)-->
  209. <el-button
  210. size="mini"
  211. type="text"
  212. icon="el-icon-edit"
  213. @click="handleAddInformation(scope.row)"
  214. v-hasPermi="['credit:credit:addInfor']"
  215. v-show="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01'))"
  216. >签收</el-button>
  217. <!--融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过-->
  218. <el-button
  219. size="mini"
  220. type="text"
  221. icon="el-icon-edit"
  222. @click="handleSignFor(scope.row)"
  223. v-hasPermi="['credit:credit:signFor']"
  224. v-show="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01')"
  225. >签收</el-button>
  226. <!--(融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过)||
  227. (核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过))
  228. -->
  229. <el-button
  230. size="mini"
  231. type="text"
  232. icon="el-icon-edit"
  233. @click="handleRefuse(scope.row)"
  234. v-hasPermi="['credit:credit:refuse']"
  235. v-show="(scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01'))||
  236. (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01')))"
  237. >拒签</el-button>
  238. <!--生效-->
  239. <el-button
  240. size="mini"
  241. type="text"
  242. icon="el-icon-edit"
  243. @click="handleGoFinance(scope.row)"
  244. v-hasPermi="['finance:record:add']"
  245. v-show="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
  246. >去融资</el-button>
  247. <!--(核心)核心开立:核心审批通过+其他状态为空||
  248. (融资方)补充资料:融资方通过+核心通过+平台通过+待签收||
  249. (融资方)融资开立:融资方通过+平台通过+其他为空||
  250. (核心)确权:融资方通过+核心通过+平台通过+待确权
  251. -->
  252. <el-button
  253. size="mini"
  254. type="text"
  255. icon="el-icon-edit"
  256. @click="seal(scope.row)"
  257. v-hasPermi="['credit:credit:seal']"
  258. v-show="(scope.row.companyType == '01' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  259. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  260. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  261. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')"
  262. >盖章</el-button>
  263. <el-button
  264. size="mini"
  265. type="text"
  266. icon="el-icon-delete"
  267. @click="handleDelete(scope.row)"
  268. v-hasPermi="['credit:credit:del']"
  269. v-show="scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null || scope.row.zfiStatus == '06'"
  270. >删除</el-button>
  271. </template>
  272. </el-table-column>
  273. </el-table>
  274. <pagination
  275. v-show="total>0"
  276. :total="total"
  277. :page.sync="queryParams.pageNum"
  278. :limit.sync="queryParams.pageSize"
  279. @pagination="getList"
  280. />
  281. <!--开立中-->
  282. </el-tab-pane>
  283. <el-tab-pane label="开立中">
  284. <el-card class="fiche">
  285. <right-toolbar :showSearch.sync="showSearch" @queryTable="getListOpening">收起</right-toolbar>
  286. <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
  287. <div style="float: right;margin-right:1%">
  288. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryOpening">搜索</el-button>
  289. <el-button icon="el-icon-refresh" size="mini" @click="resetQueryOpening" style="float: ;">重置</el-button>
  290. </div>
  291. <hr style="margin-top: 16px;">
  292. <el-form :model="queryParamsOpening" ref="queryFormOpening" :inline="true" v-if="showSearch" label-width="68px">
  293. <el-form-item label="融信编码" prop="zfiNumber">
  294. <el-input
  295. v-model.trim="queryParamsOpening.zfiNumber"
  296. placeholder="请输入融信编码"
  297. clearable
  298. size="small"
  299. maxlength="25"
  300. @keyup.enter.native="handleQueryOpening"
  301. />
  302. </el-form-item>
  303. <el-form-item label="开立企业" prop="openCompany">
  304. <el-input
  305. v-model.trim="queryParamsOpening.openCompany"
  306. placeholder="请输入开立企业"
  307. clearable
  308. size="small"
  309. maxlength="25"
  310. @keyup.enter.native="handleQueryOpening"
  311. />
  312. </el-form-item>
  313. <el-form-item label="接收企业" prop="receiveCompany">
  314. <el-input
  315. v-model.trim="queryParamsOpening.receiveCompany"
  316. placeholder="请输入接收企业"
  317. clearable
  318. size="small"
  319. maxlength="25"
  320. @keyup.enter.native="handleQueryOpening"
  321. />
  322. </el-form-item>
  323. <el-form-item label="融信产品" prop="zfpName">
  324. <el-input
  325. v-model.trim="queryParamsOpening.zfpName"
  326. placeholder="请输入融信产品"
  327. clearable
  328. size="small"
  329. maxlength="25"
  330. @keyup.enter.native="handleQueryOpening"
  331. />
  332. </el-form-item>
  333. <el-form-item label="融信金额">
  334. <el-input
  335. v-model="queryParamsOpening.startAmt"
  336. placeholder="请输入融信金额"
  337. clearable
  338. size="small"
  339. maxlength="20"
  340. />
  341. </el-form-item>
  342. <el-form-item>
  343. ~
  344. </el-form-item>
  345. <el-form-item>
  346. <el-input
  347. v-model="queryParamsOpening.endAmt"
  348. placeholder="请输入融信金额"
  349. clearable
  350. size="small"
  351. @keyup.enter.native="handleQueryOpening"
  352. maxlength="20"
  353. />
  354. </el-form-item>
  355. <el-form-item label="签收日期" prop="zfiSignDate">
  356. <el-date-picker size="small"
  357. v-model="queryParamsOpening.zfiSignDate"
  358. style="width: 240px"
  359. unlink-panels
  360. value-format="yyyy-MM-dd"
  361. type="daterange"
  362. range-separator="-"
  363. start-placeholder="开始日期"
  364. end-placeholder="结束日期">
  365. </el-date-picker>
  366. </el-form-item>
  367. <el-form-item label="承诺日期" prop="zfiExpireDate">
  368. <el-date-picker size="small"
  369. v-model="queryParamsOpening.zfiExpireDate"
  370. style="width: 240px"
  371. unlink-panels
  372. value-format="yyyy-MM-dd"
  373. type="daterange"
  374. range-separator="-"
  375. start-placeholder="开始日期"
  376. end-placeholder="结束日期">
  377. </el-date-picker>
  378. </el-form-item>
  379. <el-form-item label="融信利率" prop="zfiRate">
  380. <el-input
  381. v-model.trim="queryParamsOpening.zfiRate"
  382. placeholder="请输入融信利率"
  383. clearable
  384. size="small"
  385. maxlength="25"
  386. @keyup.enter.native="handleQueryOpening"
  387. />
  388. </el-form-item>
  389. <!-- <el-form-item label="状态" prop="zfiStatus">
  390. <el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
  391. <el-option
  392. v-for="dict in stateOptions"
  393. :key="dict.dictValue"
  394. :label="dict.dictLabel"
  395. :value="dict.dictValue"
  396. />
  397. </el-select>
  398. </el-form-item> -->
  399. </el-form>
  400. </el-card>
  401. <el-row :gutter="10" class="mb8">
  402. <el-col :span="1.5">
  403. <el-button
  404. type="primary"
  405. icon="el-icon-plus"
  406. size="mini"
  407. @click="handleAdd"
  408. v-hasPermi="['credit:credit:add']"
  409. >开立融信</el-button>
  410. <el-button
  411. type="primary"
  412. icon="el-icon-plus"
  413. size="mini"
  414. @click="finanOpening"
  415. v-hasPermi="['finanOpening:finanOpening:add']"
  416. >融资开立</el-button>
  417. <el-button
  418. type="primary"
  419. icon="el-icon-plus"
  420. size="mini"
  421. @click="apply"
  422. v-hasPermi="['finanOpening:finanOpening:apply']"
  423. >融资申请</el-button>
  424. </el-col>
  425. </el-row>
  426. <el-table v-loading="loading" :data="infOpeningList" @selection-change="handleSelectionChange" border>
  427. <el-table-column label="序号" type="index" width="50" align="center">
  428. <template slot-scope="scope">
  429. <span>{{(queryParamsOpening.pageNum - 1) * queryParamsOpening.pageSize + scope.$index + 1}}</span>
  430. </template>
  431. </el-table-column>
  432. <el-table-column label="融信编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  433. <el-table-column label="开立方" align="center" prop="openName" :show-overflow-tooltip="true"/>
  434. <el-table-column label="接收方" align="center" prop="receiveName" :show-overflow-tooltip="true"/>
  435. <el-table-column label="融信类型" :formatter="typeFormat" align="center" prop="zfiCreateType" :show-overflow-tooltip="true"/>
  436. <el-table-column label="融信产品" align="center" prop="zfpName" :show-overflow-tooltip="true"/>
  437. <el-table-column label="融信金额" align="center" :formatter="moneyFormat" prop="zfiAmount" :show-overflow-tooltip="true" />
  438. <el-table-column label="融信利率(%)" align="center" width="100px;" prop="zfiRate" :show-overflow-tooltip="true"/>
  439. <el-table-column label="签发有效期" align="center" width="100px;" prop="zfiEffectiveDate" :show-overflow-tooltip="true" />
  440. <el-table-column label="承诺还款日" align="center" width="100px;" prop="zfiExpireDate" :show-overflow-tooltip="true" />
  441. <el-table-column label="签收日期" align="center" prop="zfiSignDate" :show-overflow-tooltip="true" />
  442. <el-table-column label="承诺函编号" align="center" width="100px;" prop="zfiPaymentNumber" :show-overflow-tooltip="true"/>
  443. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true" v-if="this.companyType == '02' || this.companyType == '00'"/>
  444. <el-table-column label="平台审批状态" :formatter="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true" v-if="this.companyType == '00'"/>
  445. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true" v-if="this.companyType == '01' || this.companyType == '00'"/>
  446. <el-table-column label="状态" :formatter="stateFormat" align="center" prop="zfiStatus" :show-overflow-tooltip="true" />
  447. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  448. <template slot-scope="scope">
  449. <el-button
  450. size="mini"
  451. type="text"
  452. icon="el-icon-view"
  453. @click="handleDetail(scope.row)"
  454. v-hasPermi="['credit:credit:query']"
  455. >详情</el-button>
  456. <!--
  457. (融资方)融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
  458. (融资方)融资状态审批通过+核心状态为空+平台状态审批不通过+融信平台退回||
  459. (核心方)融资审批通过+核心审批拒绝+平台审批通过+融信待确权
  460. (核心方)融资审批状态空+核心审批拒绝+平台空+融信空||
  461. (融资方)融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
  462. (融资方)融资审批审批通过+核心审批通过+平台拒绝+融信待签收
  463. -->
  464. <el-button
  465. size="mini"
  466. type="text"
  467. icon="el-icon-edit"
  468. @click="handleUpdate(scope.row)"
  469. v-hasPermi="['credit:credit:update']"
  470. v-show="(scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  471. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  472. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  473. (scope.row.companyType == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' || scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  474. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  475. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
  476. >修改</el-button>
  477. <!--融资申请/开立+融信状态待确权+核心审批状态为空-->
  478. <el-button
  479. size="mini"
  480. type="text"
  481. icon="el-icon-edit"
  482. @click="handleApprove(scope.row)"
  483. v-hasPermi="['credit:credit:approve']"
  484. v-show="(scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2' ) && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null' ||scope.row.zfiCoreStatus =='02' )"
  485. >确权</el-button>
  486. <!--原补充资料-->
  487. <!--核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过)-->
  488. <el-button
  489. size="mini"
  490. type="text"
  491. icon="el-icon-edit"
  492. @click="handleAddInformation(scope.row)"
  493. v-hasPermi="['credit:credit:addInfor']"
  494. v-show="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01'))"
  495. >签收</el-button>
  496. <!--融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过-->
  497. <el-button
  498. size="mini"
  499. type="text"
  500. icon="el-icon-edit"
  501. @click="handleSignFor(scope.row)"
  502. v-hasPermi="['credit:credit:signFor']"
  503. v-show="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01')"
  504. >签收</el-button>
  505. <!--(融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过)||
  506. (核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过))
  507. -->
  508. <el-button
  509. size="mini"
  510. type="text"
  511. icon="el-icon-edit"
  512. @click="handleRefuse(scope.row)"
  513. v-hasPermi="['credit:credit:refuse']"
  514. v-show="(scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01'))||
  515. (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01')))"
  516. >拒签</el-button>
  517. <el-button
  518. size="mini"
  519. type="text"
  520. icon="el-icon-edit"
  521. @click="handleGoFinance(scope.row)"
  522. v-hasPermi="['credit:credit:goFinance']"
  523. v-show="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
  524. >去融资</el-button>
  525. <!--(核心)核心开立:核心审批通过+其他状态为空||
  526. (融资方)补充资料:融资方通过+核心通过+平台通过+待签收||
  527. (融资方)融资开立:融资方通过+平台通过+其他为空||
  528. (核心)确权:融资方通过+核心通过+平台通过+待确权
  529. -->
  530. <el-button
  531. size="mini"
  532. type="text"
  533. icon="el-icon-edit"
  534. @click="seal(scope.row)"
  535. v-hasPermi="['credit:credit:seal']"
  536. v-show="(scope.row.companyType == '01' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  537. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  538. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  539. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')"
  540. >盖章</el-button>
  541. <el-button
  542. size="mini"
  543. type="text"
  544. icon="el-icon-delete"
  545. @click="handleDelete(scope.row)"
  546. v-hasPermi="['credit:credit:del']"
  547. v-show="scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null || scope.row.zfiStatus == '06'"
  548. >删除</el-button>
  549. </template>
  550. </el-table-column>
  551. </el-table>
  552. <pagination
  553. v-show="totalOpening>0"
  554. :total="totalOpening"
  555. :page.sync="queryParamsOpening.pageNum"
  556. :limit.sync="queryParamsOpening.pageSize"
  557. @pagination="getListOpening"
  558. />
  559. </el-tab-pane>
  560. <!--已签收-->
  561. <el-tab-pane label="已签收">
  562. <el-card class="fiche">
  563. <right-toolbar :showSearch.sync="showSearch" @queryTable="getListSign">收起</right-toolbar>
  564. <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
  565. <div style="float: right;margin-right:1%">
  566. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuerySign">搜索</el-button>
  567. <el-button icon="el-icon-refresh" size="mini" @click="resetQuerySign" style="float: ;">重置</el-button>
  568. </div>
  569. <hr style="margin-top: 16px;">
  570. <el-form :model="queryParamsSign" ref="queryFormSign" :inline="true" v-if="showSearch" label-width="68px">
  571. <el-form-item label="融信编码" prop="zfiNumber">
  572. <el-input
  573. v-model.trim="queryParamsSign.zfiNumber"
  574. placeholder="请输入融信编码"
  575. clearable
  576. size="small"
  577. maxlength="25"
  578. @keyup.enter.native="handleQuerySign"
  579. />
  580. </el-form-item>
  581. <el-form-item label="开立企业" prop="openCompany">
  582. <el-input
  583. v-model.trim="queryParamsSign.openCompany"
  584. placeholder="请输入开立企业"
  585. clearable
  586. size="small"
  587. maxlength="25"
  588. @keyup.enter.native="handleQuerySign"
  589. />
  590. </el-form-item>
  591. <el-form-item label="接收企业" prop="receiveCompany">
  592. <el-input
  593. v-model.trim="queryParamsSign.receiveCompany"
  594. placeholder="请输入接收企业"
  595. clearable
  596. size="small"
  597. maxlength="25"
  598. @keyup.enter.native="handleQuerySign"
  599. />
  600. </el-form-item>
  601. <el-form-item label="融信产品" prop="zfpName">
  602. <el-input
  603. v-model.trim="queryParamsSign.zfpName"
  604. placeholder="请输入融信产品"
  605. clearable
  606. size="small"
  607. maxlength="25"
  608. @keyup.enter.native="handleQuerySign"
  609. />
  610. </el-form-item>
  611. <el-form-item label="融信金额">
  612. <el-input
  613. v-model="queryParamsSign.startAmt"
  614. placeholder="请输入融信金额"
  615. clearable
  616. size="small"
  617. maxlength="20"
  618. />
  619. </el-form-item>
  620. <el-form-item>
  621. ~
  622. </el-form-item>
  623. <el-form-item>
  624. <el-input
  625. v-model="queryParamsSign.endAmt"
  626. placeholder="请输入融信金额"
  627. clearable
  628. size="small"
  629. @keyup.enter.native="handleQuerySign"
  630. maxlength="20"
  631. />
  632. </el-form-item>
  633. <el-form-item label="签收日期" prop="zfiSignDate">
  634. <el-date-picker size="small"
  635. v-model="queryParamsSign.zfiSignDate"
  636. style="width: 240px"
  637. unlink-panels
  638. value-format="yyyy-MM-dd"
  639. type="daterange"
  640. range-separator="-"
  641. start-placeholder="开始日期"
  642. end-placeholder="结束日期">
  643. </el-date-picker>
  644. </el-form-item>
  645. <el-form-item label="承诺日期" prop="zfiExpireDate">
  646. <el-date-picker size="small"
  647. v-model="queryParamsSign.zfiExpireDate"
  648. style="width: 240px"
  649. unlink-panels
  650. value-format="yyyy-MM-dd"
  651. type="daterange"
  652. range-separator="-"
  653. start-placeholder="开始日期"
  654. end-placeholder="结束日期">
  655. </el-date-picker>
  656. </el-form-item>
  657. <el-form-item label="融信利率" prop="zfiRate">
  658. <el-input
  659. v-model.trim="queryParamsSign.zfiRate"
  660. placeholder="请输入融信利率"
  661. clearable
  662. size="small"
  663. maxlength="25"
  664. @keyup.enter.native="handleQuerySign"
  665. />
  666. </el-form-item>
  667. <!-- <el-form-item label="状态" prop="zfiStatus">
  668. <el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
  669. <el-option
  670. v-for="dict in stateOptions"
  671. :key="dict.dictValue"
  672. :label="dict.dictLabel"
  673. :value="dict.dictValue"
  674. />
  675. </el-select>
  676. </el-form-item> -->
  677. </el-form>
  678. </el-card>
  679. <el-row :gutter="10" class="mb8">
  680. <el-col :span="1.5">
  681. <el-button
  682. type="primary"
  683. icon="el-icon-plus"
  684. size="mini"
  685. @click="handleAdd"
  686. v-hasPermi="['credit:credit:add']"
  687. >开立融信</el-button>
  688. <el-button
  689. type="primary"
  690. icon="el-icon-plus"
  691. size="mini"
  692. @click="finanOpening"
  693. v-hasPermi="['finanOpening:finanOpening:add']"
  694. >融资开立</el-button>
  695. <el-button
  696. type="primary"
  697. icon="el-icon-plus"
  698. size="mini"
  699. @click="apply"
  700. v-hasPermi="['finanOpening:finanOpening:apply']"
  701. >融资申请</el-button>
  702. </el-col>
  703. </el-row>
  704. <el-table v-loading="loading" :data="infSignList" @selection-change="handleSelectionChange" border>
  705. <el-table-column label="序号" type="index" width="50" align="center">
  706. <template slot-scope="scope">
  707. <span>{{(queryParamsSign.pageNum - 1) * queryParamsSign.pageSize + scope.$index + 1}}</span>
  708. </template>
  709. </el-table-column>
  710. <el-table-column label="融信编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  711. <el-table-column label="开立方" align="center" prop="openName" :show-overflow-tooltip="true"/>
  712. <el-table-column label="接收方" align="center" prop="receiveName" :show-overflow-tooltip="true"/>
  713. <el-table-column label="融信类型" :formatter="typeFormat" align="center" prop="zfiCreateType" :show-overflow-tooltip="true"/>
  714. <el-table-column label="融信产品" align="center" prop="zfpName" :show-overflow-tooltip="true"/>
  715. <el-table-column label="融信金额" align="center" :formatter="moneyFormat" prop="zfiAmount" :show-overflow-tooltip="true" />
  716. <el-table-column label="融信利率(%)" align="center" width="100px;" prop="zfiRate" :show-overflow-tooltip="true" />
  717. <el-table-column label="签发有效期" align="center" width="100px;" prop="zfiEffectiveDate" :show-overflow-tooltip="true" />
  718. <el-table-column label="承诺还款日" align="center" width="100px;" prop="zfiExpireDate" :show-overflow-tooltip="true"/>
  719. <el-table-column label="签收日期" align="center" prop="zfiSignDate" :show-overflow-tooltip="true" />
  720. <el-table-column label="承诺函编号" align="center" width="100px;" prop="zfiPaymentNumber" :show-overflow-tooltip="true" />
  721. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true" v-if="this.companyType == '02' || this.companyType == '00'"/>
  722. <el-table-column label="平台审批状态" :formatter="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true" v-if="this.companyType == '00'"/>
  723. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true" v-if="this.companyType == '01' || this.companyType == '00'"/>
  724. <el-table-column label="状态" :formatter="stateFormat" align="center" prop="zfiStatus" :show-overflow-tooltip="true"/>
  725. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  726. <template slot-scope="scope">
  727. <el-button
  728. size="mini"
  729. type="text"
  730. icon="el-icon-view"
  731. @click="handleDetail(scope.row)"
  732. v-hasPermi="['credit:credit:query']"
  733. >详情</el-button>
  734. <!--
  735. (融资方)融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
  736. (融资方)融资状态审批通过+核心状态为空+平台状态审批不通过+融信平台退回||
  737. (核心方)融资审批通过+核心审批拒绝+平台审批通过+融信待确权
  738. (核心方)融资审批状态空+核心审批拒绝+平台空+融信空||
  739. (融资方)融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
  740. (融资方)融资审批审批通过+核心审批通过+平台拒绝+融信待签收
  741. -->
  742. <el-button
  743. size="mini"
  744. type="text"
  745. icon="el-icon-edit"
  746. @click="handleUpdate(scope.row)"
  747. v-hasPermi="['credit:credit:update']"
  748. v-show="(scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  749. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  750. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  751. (scope.row.companyType == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' || scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  752. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  753. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
  754. >修改</el-button>
  755. <!--融资申请/开立+融信状态待确权+核心审批状态为空-->
  756. <el-button
  757. size="mini"
  758. type="text"
  759. icon="el-icon-edit"
  760. @click="handleApprove(scope.row)"
  761. v-hasPermi="['credit:credit:approve']"
  762. v-show="(scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2' ) && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null' ||scope.row.zfiCoreStatus =='02' )"
  763. >确权</el-button>
  764. <!--原补充资料-->
  765. <!--核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过)-->
  766. <el-button
  767. size="mini"
  768. type="text"
  769. icon="el-icon-edit"
  770. @click="handleAddInformation(scope.row)"
  771. v-hasPermi="['credit:credit:addInfor']"
  772. v-show="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01'))"
  773. >签收</el-button>
  774. <!--融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过-->
  775. <el-button
  776. size="mini"
  777. type="text"
  778. icon="el-icon-edit"
  779. @click="handleSignFor(scope.row)"
  780. v-hasPermi="['credit:credit:signFor']"
  781. v-show="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01')"
  782. >签收</el-button>
  783. <!--(融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过)||
  784. (核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过))
  785. -->
  786. <el-button
  787. size="mini"
  788. type="text"
  789. icon="el-icon-edit"
  790. @click="handleRefuse(scope.row)"
  791. v-hasPermi="['credit:credit:refuse']"
  792. v-show="(scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01'))||
  793. (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01')))"
  794. >拒签</el-button>
  795. <el-button
  796. size="mini"
  797. type="text"
  798. icon="el-icon-edit"
  799. @click="handleGoFinance(scope.row)"
  800. v-hasPermi="['credit:credit:goFinance']"
  801. v-show="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
  802. >去融资</el-button>
  803. <!--(核心)核心开立:核心审批通过+其他状态为空||
  804. (融资方)补充资料:融资方通过+核心通过+平台通过+待签收||
  805. (融资方)融资开立:融资方通过+平台通过+其他为空||
  806. (核心)确权:融资方通过+核心通过+平台通过+待确权
  807. -->
  808. <el-button
  809. size="mini"
  810. type="text"
  811. icon="el-icon-edit"
  812. @click="seal(scope.row)"
  813. v-hasPermi="['credit:credit:seal']"
  814. v-show="(scope.row.companyType == '01' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  815. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  816. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  817. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')"
  818. >盖章</el-button>
  819. <el-button
  820. size="mini"
  821. type="text"
  822. icon="el-icon-delete"
  823. @click="handleDelete(scope.row)"
  824. v-hasPermi="['credit:credit:del']"
  825. v-show="scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null || scope.row.zfiStatus == '06'"
  826. >删除</el-button>
  827. </template>
  828. </el-table-column>
  829. </el-table>
  830. <pagination
  831. v-show="totalSign>0"
  832. :total="totalSign"
  833. :page.sync="handleQuerySign.pageNum"
  834. :limit.sync="handleQuerySign.pageSize"
  835. @pagination="getListSign"
  836. />
  837. </el-tab-pane>
  838. <!--融资中-->
  839. <el-tab-pane label="融资中">
  840. <el-card class="fiche">
  841. <right-toolbar :showSearch.sync="showSearch" @queryTable="getListFinancing">收起</right-toolbar>
  842. <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
  843. <div style="float: right;margin-right:1%">
  844. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryFinancing">搜索</el-button>
  845. <el-button icon="el-icon-refresh" size="mini" @click="resetQueryFinancing" style="float: ;">重置</el-button>
  846. </div>
  847. <hr style="margin-top: 16px;">
  848. <el-form :model="queryParamsFinancing" ref="queryFormFinancing" :inline="true" v-if="showSearch" label-width="68px">
  849. <el-form-item label="融信编码" prop="zfiNumber">
  850. <el-input
  851. v-model.trim="queryParamsFinancing.zfiNumber"
  852. placeholder="请输入融信编码"
  853. clearable
  854. size="small"
  855. maxlength="25"
  856. @keyup.enter.native="handleQueryFinancing"
  857. />
  858. </el-form-item>
  859. <el-form-item label="开立企业" prop="openCompany">
  860. <el-input
  861. v-model.trim="queryParamsFinancing.openCompany"
  862. placeholder="请输入开立企业"
  863. clearable
  864. size="small"
  865. maxlength="25"
  866. @keyup.enter.native="handleQueryFinancing"
  867. />
  868. </el-form-item>
  869. <el-form-item label="接收企业" prop="receiveCompany">
  870. <el-input
  871. v-model.trim="queryParamsFinancing.receiveCompany"
  872. placeholder="请输入接收企业"
  873. clearable
  874. size="small"
  875. maxlength="25"
  876. @keyup.enter.native="handleQueryFinancing"
  877. />
  878. </el-form-item>
  879. <el-form-item label="融信产品" prop="zfpName">
  880. <el-input
  881. v-model.trim="queryParamsFinancing.zfpName"
  882. placeholder="请输入融信产品"
  883. clearable
  884. size="small"
  885. maxlength="25"
  886. @keyup.enter.native="handleQueryFinancing"
  887. />
  888. </el-form-item>
  889. <el-form-item label="融信金额">
  890. <el-input
  891. v-model="queryParamsFinancing.startAmt"
  892. placeholder="请输入融信金额"
  893. clearable
  894. size="small"
  895. maxlength="20"
  896. />
  897. </el-form-item>
  898. <el-form-item>
  899. ~
  900. </el-form-item>
  901. <el-form-item>
  902. <el-input
  903. v-model="queryParamsFinancing.endAmt"
  904. placeholder="请输入融信金额"
  905. clearable
  906. size="small"
  907. @keyup.enter.native="handleQueryFinancing"
  908. maxlength="20"
  909. />
  910. </el-form-item>
  911. <el-form-item label="签收日期" prop="zfiSignDate">
  912. <el-date-picker size="small"
  913. v-model="queryParamsFinancing.zfiSignDate"
  914. style="width: 240px"
  915. unlink-panels
  916. value-format="yyyy-MM-dd"
  917. type="daterange"
  918. range-separator="-"
  919. start-placeholder="开始日期"
  920. end-placeholder="结束日期">
  921. </el-date-picker>
  922. </el-form-item>
  923. <el-form-item label="承诺日期" prop="zfiExpireDate">
  924. <el-date-picker size="small"
  925. v-model="queryParamsFinancing.zfiExpireDate"
  926. style="width: 240px"
  927. unlink-panels
  928. value-format="yyyy-MM-dd"
  929. type="daterange"
  930. range-separator="-"
  931. start-placeholder="开始日期"
  932. end-placeholder="结束日期">
  933. </el-date-picker>
  934. </el-form-item>
  935. <el-form-item label="融信利率" prop="zfiRate">
  936. <el-input
  937. v-model.trim="queryParamsFinancing.zfiRate"
  938. placeholder="请输入融信利率"
  939. clearable
  940. size="small"
  941. maxlength="25"
  942. @keyup.enter.native="handleQueryFinancing"
  943. />
  944. </el-form-item>
  945. <!-- <el-form-item label="状态" prop="zfiStatus">
  946. <el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
  947. <el-option
  948. v-for="dict in stateOptions"
  949. :key="dict.dictValue"
  950. :label="dict.dictLabel"
  951. :value="dict.dictValue"
  952. />
  953. </el-select>
  954. </el-form-item> -->
  955. </el-form>
  956. </el-card>
  957. <el-row :gutter="10" class="mb8">
  958. <el-col :span="1.5">
  959. <el-button
  960. type="primary"
  961. icon="el-icon-plus"
  962. size="mini"
  963. @click="handleAdd"
  964. v-hasPermi="['credit:credit:add']"
  965. >开立融信</el-button>
  966. <el-button
  967. type="primary"
  968. icon="el-icon-plus"
  969. size="mini"
  970. @click="finanOpening"
  971. v-hasPermi="['finanOpening:finanOpening:add']"
  972. >融资开立</el-button>
  973. <el-button
  974. type="primary"
  975. icon="el-icon-plus"
  976. size="mini"
  977. @click="apply"
  978. v-hasPermi="['finanOpening:finanOpening:apply']"
  979. >融资申请</el-button>
  980. </el-col>
  981. </el-row>
  982. <el-table v-loading="loading" :data="infFinancingList" @selection-change="handleSelectionChange" border>
  983. <el-table-column label="序号" type="index" width="50" align="center">
  984. <template slot-scope="scope">
  985. <span>{{(queryParamsFinancing.pageNum - 1) * queryParamsFinancing.pageSize + scope.$index + 1}}</span>
  986. </template>
  987. </el-table-column>
  988. <el-table-column label="融信编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  989. <el-table-column label="开立方" align="center" prop="openName" :show-overflow-tooltip="true"/>
  990. <el-table-column label="接收方" align="center" prop="receiveName" :show-overflow-tooltip="true"/>
  991. <el-table-column label="融信类型" :formatter="typeFormat" align="center" prop="zfiCreateType" :show-overflow-tooltip="true"/>
  992. <el-table-column label="融信产品" align="center" prop="zfpName" :show-overflow-tooltip="true"/>
  993. <el-table-column label="融信金额" align="center" :formatter="moneyFormat" prop="zfiAmount" :show-overflow-tooltip="true" />
  994. <el-table-column label="融信利率(%)" align="center" width="100px;" prop="zfiRate" :show-overflow-tooltip="true" />
  995. <el-table-column label="签发有效期" align="center" width="100px;" prop="zfiEffectiveDate" :show-overflow-tooltip="true" />
  996. <el-table-column label="承诺还款日" align="center" width="100px;" prop="zfiExpireDate" :show-overflow-tooltip="true"/>
  997. <el-table-column label="签收日期" align="center" prop="zfiSignDate" :show-overflow-tooltip="true" />
  998. <el-table-column label="承诺函编号" align="center" width="100px;" prop="zfiPaymentNumber" :show-overflow-tooltip="true" />
  999. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true" v-if="this.companyType == '02' || this.companyType == '00'"/>
  1000. <el-table-column label="平台审批状态" :formatter="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true" v-if="this.companyType == '00'"/>
  1001. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true" v-if="this.companyType == '01' || this.companyType == '00'"/>
  1002. <el-table-column label="状态" :formatter="stateFormat" align="center" prop="zfiStatus" :show-overflow-tooltip="true"/>
  1003. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  1004. <template slot-scope="scope">
  1005. <el-button
  1006. size="mini"
  1007. type="text"
  1008. icon="el-icon-view"
  1009. @click="handleDetail(scope.row)"
  1010. v-hasPermi="['credit:credit:query']"
  1011. >详情</el-button>
  1012. <!--
  1013. (融资方)融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
  1014. (融资方)融资状态审批通过+核心状态为空+平台状态审批不通过+融信平台退回||
  1015. (核心方)融资审批通过+核心审批拒绝+平台审批通过+融信待确权
  1016. (核心方)融资审批状态空+核心审批拒绝+平台空+融信空||
  1017. (融资方)融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
  1018. (融资方)融资审批审批通过+核心审批通过+平台拒绝+融信待签收
  1019. -->
  1020. <el-button
  1021. size="mini"
  1022. type="text"
  1023. icon="el-icon-edit"
  1024. @click="handleUpdate(scope.row)"
  1025. v-hasPermi="['credit:credit:update']"
  1026. v-show="(scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1027. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  1028. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  1029. (scope.row.companyType == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' || scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1030. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  1031. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
  1032. >修改</el-button>
  1033. <!--融资申请/开立+融信状态待确权+核心审批状态为空-->
  1034. <el-button
  1035. size="mini"
  1036. type="text"
  1037. icon="el-icon-edit"
  1038. @click="handleApprove(scope.row)"
  1039. v-hasPermi="['credit:credit:approve']"
  1040. v-show="(scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2' ) && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null' ||scope.row.zfiCoreStatus =='02' )"
  1041. >确权</el-button>
  1042. <!--原补充资料-->
  1043. <!--核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过)-->
  1044. <el-button
  1045. size="mini"
  1046. type="text"
  1047. icon="el-icon-edit"
  1048. @click="handleAddInformation(scope.row)"
  1049. v-hasPermi="['credit:credit:addInfor']"
  1050. v-show="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01'))"
  1051. >签收</el-button>
  1052. <!--融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过-->
  1053. <el-button
  1054. size="mini"
  1055. type="text"
  1056. icon="el-icon-edit"
  1057. @click="handleSignFor(scope.row)"
  1058. v-hasPermi="['credit:credit:signFor']"
  1059. v-show="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01')"
  1060. >签收</el-button>
  1061. <!--(融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过)||
  1062. (核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过))
  1063. -->
  1064. <el-button
  1065. size="mini"
  1066. type="text"
  1067. icon="el-icon-edit"
  1068. @click="handleRefuse(scope.row)"
  1069. v-hasPermi="['credit:credit:refuse']"
  1070. v-show="(scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01'))||
  1071. (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01')))"
  1072. >拒签</el-button>
  1073. <el-button
  1074. size="mini"
  1075. type="text"
  1076. icon="el-icon-edit"
  1077. @click="handleGoFinance(scope.row)"
  1078. v-hasPermi="['credit:credit:goFinance']"
  1079. v-show="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
  1080. >去融资</el-button>
  1081. <!--(核心)核心开立:核心审批通过+其他状态为空||
  1082. (融资方)补充资料:融资方通过+核心通过+平台通过+待签收||
  1083. (融资方)融资开立:融资方通过+平台通过+其他为空||
  1084. (核心)确权:融资方通过+核心通过+平台通过+待确权
  1085. -->
  1086. <el-button
  1087. size="mini"
  1088. type="text"
  1089. icon="el-icon-edit"
  1090. @click="seal(scope.row)"
  1091. v-hasPermi="['credit:credit:seal']"
  1092. v-show="(scope.row.companyType == '01' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1093. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  1094. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1095. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')"
  1096. >盖章</el-button>
  1097. <el-button
  1098. size="mini"
  1099. type="text"
  1100. icon="el-icon-delete"
  1101. @click="handleDelete(scope.row)"
  1102. v-hasPermi="['credit:credit:del']"
  1103. v-show="scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null || scope.row.zfiStatus == '06'"
  1104. >删除</el-button>
  1105. </template>
  1106. </el-table-column>
  1107. </el-table>
  1108. <pagination
  1109. v-show="totalFinancing>0"
  1110. :total="totalFinancing"
  1111. :page.sync="handleQueryFinancing.pageNum"
  1112. :limit.sync="handleQueryFinancing.pageSize"
  1113. @pagination="getListFinancing"
  1114. />
  1115. </el-tab-pane>
  1116. <!--已融资-->
  1117. <el-tab-pane label="已融资">
  1118. <el-card class="fiche">
  1119. <right-toolbar :showSearch.sync="showSearch" @queryTable="getListFinanced">收起</right-toolbar>
  1120. <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
  1121. <div style="float: right;margin-right:1%">
  1122. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryFinanced">搜索</el-button>
  1123. <el-button icon="el-icon-refresh" size="mini" @click="resetQueryFinanced" style="float: ;">重置</el-button>
  1124. </div>
  1125. <hr style="margin-top: 16px;">
  1126. <el-form :model="queryParamsFinanced" ref="queryFormFinanced" :inline="true" v-if="showSearch" label-width="68px">
  1127. <el-form-item label="融信编码" prop="zfiNumber">
  1128. <el-input
  1129. v-model.trim="queryParamsFinanced.zfiNumber"
  1130. placeholder="请输入融信编码"
  1131. clearable
  1132. size="small"
  1133. maxlength="25"
  1134. @keyup.enter.native="handleQueryFinanced"
  1135. />
  1136. </el-form-item>
  1137. <el-form-item label="开立企业" prop="openCompany">
  1138. <el-input
  1139. v-model.trim="queryParamsFinanced.openCompany"
  1140. placeholder="请输入开立企业"
  1141. clearable
  1142. size="small"
  1143. maxlength="25"
  1144. @keyup.enter.native="handleQueryFinanced"
  1145. />
  1146. </el-form-item>
  1147. <el-form-item label="接收企业" prop="receiveCompany">
  1148. <el-input
  1149. v-model.trim="queryParamsFinanced.receiveCompany"
  1150. placeholder="请输入接收企业"
  1151. clearable
  1152. size="small"
  1153. maxlength="25"
  1154. @keyup.enter.native="handleQueryFinanced"
  1155. />
  1156. </el-form-item>
  1157. <el-form-item label="融信产品" prop="zfpName">
  1158. <el-input
  1159. v-model.trim="queryParamsFinanced.zfpName"
  1160. placeholder="请输入融信产品"
  1161. clearable
  1162. size="small"
  1163. maxlength="25"
  1164. @keyup.enter.native="handleQueryFinanced"
  1165. />
  1166. </el-form-item>
  1167. <el-form-item label="融信金额">
  1168. <el-input
  1169. v-model="queryParamsFinanced.startAmt"
  1170. placeholder="请输入融信金额"
  1171. clearable
  1172. size="small"
  1173. maxlength="20"
  1174. />
  1175. </el-form-item>
  1176. <el-form-item>
  1177. ~
  1178. </el-form-item>
  1179. <el-form-item>
  1180. <el-input
  1181. v-model="queryParamsFinanced.endAmt"
  1182. placeholder="请输入融信金额"
  1183. clearable
  1184. size="small"
  1185. @keyup.enter.native="handleQueryFinanced"
  1186. maxlength="20"
  1187. />
  1188. </el-form-item>
  1189. <el-form-item label="签收日期" prop="zfiSignDate">
  1190. <el-date-picker size="small"
  1191. v-model="queryParamsFinanced.zfiSignDate"
  1192. style="width: 240px"
  1193. unlink-panels
  1194. value-format="yyyy-MM-dd"
  1195. type="daterange"
  1196. range-separator="-"
  1197. start-placeholder="开始日期"
  1198. end-placeholder="结束日期">
  1199. </el-date-picker>
  1200. </el-form-item>
  1201. <el-form-item label="承诺日期" prop="zfiExpireDate">
  1202. <el-date-picker size="small"
  1203. v-model="queryParamsFinanced.zfiExpireDate"
  1204. style="width: 240px"
  1205. unlink-panels
  1206. value-format="yyyy-MM-dd"
  1207. type="daterange"
  1208. range-separator="-"
  1209. start-placeholder="开始日期"
  1210. end-placeholder="结束日期">
  1211. </el-date-picker>
  1212. </el-form-item>
  1213. <el-form-item label="融信利率" prop="zfiRate">
  1214. <el-input
  1215. v-model.trim="queryParamsFinanced.zfiRate"
  1216. placeholder="请输入融信利率"
  1217. clearable
  1218. size="small"
  1219. maxlength="25"
  1220. @keyup.enter.native="handleQueryFinanced"
  1221. />
  1222. </el-form-item>
  1223. <!-- <el-form-item label="状态" prop="zfiStatus">
  1224. <el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
  1225. <el-option
  1226. v-for="dict in stateOptions"
  1227. :key="dict.dictValue"
  1228. :label="dict.dictLabel"
  1229. :value="dict.dictValue"
  1230. />
  1231. </el-select>
  1232. </el-form-item> -->
  1233. </el-form>
  1234. </el-card>
  1235. <el-row :gutter="10" class="mb8">
  1236. <el-col :span="1.5">
  1237. <el-button
  1238. type="primary"
  1239. icon="el-icon-plus"
  1240. size="mini"
  1241. @click="handleAdd"
  1242. v-hasPermi="['credit:credit:add']"
  1243. >开立融信</el-button>
  1244. <el-button
  1245. type="primary"
  1246. icon="el-icon-plus"
  1247. size="mini"
  1248. @click="finanOpening"
  1249. v-hasPermi="['finanOpening:finanOpening:add']"
  1250. >融资开立</el-button>
  1251. <el-button
  1252. type="primary"
  1253. icon="el-icon-plus"
  1254. size="mini"
  1255. @click="apply"
  1256. v-hasPermi="['finanOpening:finanOpening:apply']"
  1257. >融资申请</el-button>
  1258. </el-col>
  1259. </el-row>
  1260. <el-table v-loading="loading" :data="infFinancedList" @selection-change="handleSelectionChange" border>
  1261. <el-table-column label="序号" type="index" width="50" align="center">
  1262. <template slot-scope="scope">
  1263. <span>{{(queryParamsFinanced.pageNum - 1) * queryParamsFinanced.pageSize + scope.$index + 1}}</span>
  1264. </template>
  1265. </el-table-column>
  1266. <el-table-column label="融信编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  1267. <el-table-column label="开立方" align="center" prop="openName" :show-overflow-tooltip="true"/>
  1268. <el-table-column label="接收方" align="center" prop="receiveName" :show-overflow-tooltip="true"/>
  1269. <el-table-column label="融信类型" :formatter="typeFormat" align="center" prop="zfiCreateType" :show-overflow-tooltip="true"/>
  1270. <el-table-column label="融信产品" align="center" prop="zfpName" :show-overflow-tooltip="true"/>
  1271. <el-table-column label="融信金额" align="center" :formatter="moneyFormat" prop="zfiAmount" :show-overflow-tooltip="true" />
  1272. <el-table-column label="融信利率(%)" align="center" width="100px;" prop="zfiRate" :show-overflow-tooltip="true" />
  1273. <el-table-column label="签发有效期" align="center" width="100px;" prop="zfiEffectiveDate" :show-overflow-tooltip="true" />
  1274. <el-table-column label="承诺还款日" align="center" width="100px;" prop="zfiExpireDate" :show-overflow-tooltip="true"/>
  1275. <el-table-column label="签收日期" align="center" prop="zfiSignDate" :show-overflow-tooltip="true" />
  1276. <el-table-column label="承诺函编号" align="center" width="100px;" prop="zfiPaymentNumber" :show-overflow-tooltip="true" />
  1277. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true" v-if="this.companyType == '02' || this.companyType == '00'"/>
  1278. <el-table-column label="平台审批状态" :formatter="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true" v-if="this.companyType == '00'"/>
  1279. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true" v-if="this.companyType == '01' || this.companyType == '00'"/>
  1280. <el-table-column label="状态" :formatter="stateFormat" align="center" prop="zfiStatus" :show-overflow-tooltip="true"/>
  1281. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  1282. <template slot-scope="scope">
  1283. <el-button
  1284. size="mini"
  1285. type="text"
  1286. icon="el-icon-view"
  1287. @click="handleDetail(scope.row)"
  1288. v-hasPermi="['credit:credit:query']"
  1289. >详情</el-button>
  1290. <!--
  1291. (融资方)融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
  1292. (融资方)融资状态审批通过+核心状态为空+平台状态审批不通过+融信平台退回||
  1293. (核心方)融资审批通过+核心审批拒绝+平台审批通过+融信待确权
  1294. (核心方)融资审批状态空+核心审批拒绝+平台空+融信空||
  1295. (融资方)融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
  1296. (融资方)融资审批审批通过+核心审批通过+平台拒绝+融信待签收
  1297. -->
  1298. <el-button
  1299. size="mini"
  1300. type="text"
  1301. icon="el-icon-edit"
  1302. @click="handleUpdate(scope.row)"
  1303. v-hasPermi="['credit:credit:update']"
  1304. v-show="(scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1305. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  1306. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  1307. (scope.row.companyType == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' || scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1308. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  1309. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
  1310. >修改</el-button>
  1311. <!--融资申请/开立+融信状态待确权+核心审批状态为空-->
  1312. <el-button
  1313. size="mini"
  1314. type="text"
  1315. icon="el-icon-edit"
  1316. @click="handleApprove(scope.row)"
  1317. v-hasPermi="['credit:credit:approve']"
  1318. v-show="(scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2' ) && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null' ||scope.row.zfiCoreStatus =='02' )"
  1319. >确权</el-button>
  1320. <!--原补充资料-->
  1321. <!--核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过)-->
  1322. <el-button
  1323. size="mini"
  1324. type="text"
  1325. icon="el-icon-edit"
  1326. @click="handleAddInformation(scope.row)"
  1327. v-hasPermi="['credit:credit:addInfor']"
  1328. v-show="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01'))"
  1329. >签收</el-button>
  1330. <!--融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过-->
  1331. <el-button
  1332. size="mini"
  1333. type="text"
  1334. icon="el-icon-edit"
  1335. @click="handleSignFor(scope.row)"
  1336. v-hasPermi="['credit:credit:signFor']"
  1337. v-show="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01')"
  1338. >签收</el-button>
  1339. <!--(融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过)||
  1340. (核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过))
  1341. -->
  1342. <el-button
  1343. size="mini"
  1344. type="text"
  1345. icon="el-icon-edit"
  1346. @click="handleRefuse(scope.row)"
  1347. v-hasPermi="['credit:credit:refuse']"
  1348. v-show="(scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01'))||
  1349. (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01')))"
  1350. >拒签</el-button>
  1351. <el-button
  1352. size="mini"
  1353. type="text"
  1354. icon="el-icon-edit"
  1355. @click="handleGoFinance(scope.row)"
  1356. v-hasPermi="['credit:credit:goFinance']"
  1357. v-show="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
  1358. >去融资</el-button>
  1359. <!--(核心)核心开立:核心审批通过+其他状态为空||
  1360. (融资方)补充资料:融资方通过+核心通过+平台通过+待签收||
  1361. (融资方)融资开立:融资方通过+平台通过+其他为空||
  1362. (核心)确权:融资方通过+核心通过+平台通过+待确权
  1363. -->
  1364. <el-button
  1365. size="mini"
  1366. type="text"
  1367. icon="el-icon-edit"
  1368. @click="seal(scope.row)"
  1369. v-hasPermi="['credit:credit:seal']"
  1370. v-show="(scope.row.companyType == '01' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1371. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  1372. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1373. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')"
  1374. >盖章</el-button>
  1375. <el-button
  1376. size="mini"
  1377. type="text"
  1378. icon="el-icon-delete"
  1379. @click="handleDelete(scope.row)"
  1380. v-hasPermi="['credit:credit:del']"
  1381. v-show="scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null || scope.row.zfiStatus == '06'"
  1382. >删除</el-button>
  1383. </template>
  1384. </el-table-column>
  1385. </el-table>
  1386. <pagination
  1387. v-show="totalFinanced>0"
  1388. :total="totalFinanced"
  1389. :page.sync="handleQueryFinanced.pageNum"
  1390. :limit.sync="handleQueryFinanced.pageSize"
  1391. @pagination="getListFinanced"
  1392. />
  1393. </el-tab-pane>
  1394. <!--已失效-->
  1395. <el-tab-pane label="已失效">
  1396. <el-card class="fiche">
  1397. <right-toolbar :showSearch.sync="showSearch" @queryTable="getListInvalid">收起</right-toolbar>
  1398. <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
  1399. <div style="float: right;margin-right:1%">
  1400. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQueryInvalid">搜索</el-button>
  1401. <el-button icon="el-icon-refresh" size="mini" @click="resetQueryInvalid" style="float: ;">重置</el-button>
  1402. </div>
  1403. <hr style="margin-top: 16px;">
  1404. <el-form :model="queryParamsInvalid" ref="queryFormInvalid" :inline="true" v-if="showSearch" label-width="68px">
  1405. <el-form-item label="融信编码" prop="zfiNumber">
  1406. <el-input
  1407. v-model.trim="queryParamsInvalid.zfiNumber"
  1408. placeholder="请输入融信编码"
  1409. clearable
  1410. size="small"
  1411. maxlength="25"
  1412. @keyup.enter.native="handleQueryInvalid"
  1413. />
  1414. </el-form-item>
  1415. <el-form-item label="开立企业" prop="openCompany">
  1416. <el-input
  1417. v-model.trim="queryParamsInvalid.openCompany"
  1418. placeholder="请输入开立企业"
  1419. clearable
  1420. size="small"
  1421. maxlength="25"
  1422. @keyup.enter.native="handleQueryInvalid"
  1423. />
  1424. </el-form-item>
  1425. <el-form-item label="接收企业" prop="receiveCompany">
  1426. <el-input
  1427. v-model.trim="queryParamsInvalid.receiveCompany"
  1428. placeholder="请输入接收企业"
  1429. clearable
  1430. size="small"
  1431. maxlength="25"
  1432. @keyup.enter.native="handleQueryInvalid"
  1433. />
  1434. </el-form-item>
  1435. <el-form-item label="融信产品" prop="zfpName">
  1436. <el-input
  1437. v-model.trim="queryParamsInvalid.zfpName"
  1438. placeholder="请输入融信产品"
  1439. clearable
  1440. size="small"
  1441. maxlength="25"
  1442. @keyup.enter.native="handleQueryInvalid"
  1443. />
  1444. </el-form-item>
  1445. <el-form-item label="融信金额">
  1446. <el-input
  1447. v-model="queryParamsInvalid.startAmt"
  1448. placeholder="请输入融信金额"
  1449. clearable
  1450. size="small"
  1451. maxlength="20"
  1452. />
  1453. </el-form-item>
  1454. <el-form-item>
  1455. ~
  1456. </el-form-item>
  1457. <el-form-item>
  1458. <el-input
  1459. v-model="queryParamsInvalid.endAmt"
  1460. placeholder="请输入融信金额"
  1461. clearable
  1462. size="small"
  1463. @keyup.enter.native="handleQueryInvalid"
  1464. maxlength="20"
  1465. />
  1466. </el-form-item>
  1467. <el-form-item label="签收日期" prop="zfiSignDate">
  1468. <el-date-picker size="small"
  1469. v-model="queryParamsInvalid.zfiSignDate"
  1470. style="width: 240px"
  1471. unlink-panels
  1472. value-format="yyyy-MM-dd"
  1473. type="daterange"
  1474. range-separator="-"
  1475. start-placeholder="开始日期"
  1476. end-placeholder="结束日期">
  1477. </el-date-picker>
  1478. </el-form-item>
  1479. <el-form-item label="承诺日期" prop="zfiExpireDate">
  1480. <el-date-picker size="small"
  1481. v-model="queryParamsInvalid.zfiExpireDate"
  1482. style="width: 240px"
  1483. unlink-panels
  1484. value-format="yyyy-MM-dd"
  1485. type="daterange"
  1486. range-separator="-"
  1487. start-placeholder="开始日期"
  1488. end-placeholder="结束日期">
  1489. </el-date-picker>
  1490. </el-form-item>
  1491. <el-form-item label="融信利率" prop="zfiRate">
  1492. <el-input
  1493. v-model.trim="queryParamsInvalid.zfiRate"
  1494. placeholder="请输入融信利率"
  1495. clearable
  1496. size="small"
  1497. maxlength="25"
  1498. @keyup.enter.native="handleQueryInvalid"
  1499. />
  1500. </el-form-item>
  1501. <!-- <el-form-item label="状态" prop="zfiStatus">
  1502. <el-select v-model="queryParams.zfiStatus" placeholder="请选择状态" clearable size="small">
  1503. <el-option
  1504. v-for="dict in stateOptions"
  1505. :key="dict.dictValue"
  1506. :label="dict.dictLabel"
  1507. :value="dict.dictValue"
  1508. />
  1509. </el-select>
  1510. </el-form-item> -->
  1511. </el-form>
  1512. </el-card>
  1513. <el-row :gutter="10" class="mb8">
  1514. <el-col :span="1.5">
  1515. <el-button
  1516. type="primary"
  1517. icon="el-icon-plus"
  1518. size="mini"
  1519. @click="handleAdd"
  1520. v-hasPermi="['credit:credit:add']"
  1521. >开立融信</el-button>
  1522. <el-button
  1523. type="primary"
  1524. icon="el-icon-plus"
  1525. size="mini"
  1526. @click="finanOpening"
  1527. v-hasPermi="['finanOpening:finanOpening:add']"
  1528. >融资开立</el-button>
  1529. <el-button
  1530. type="primary"
  1531. icon="el-icon-plus"
  1532. size="mini"
  1533. @click="apply"
  1534. v-hasPermi="['finanOpening:finanOpening:apply']"
  1535. >融资申请</el-button>
  1536. </el-col>
  1537. </el-row>
  1538. <el-table v-loading="loading" :data="infInvalidList" @selection-change="handleSelectionChange" border>
  1539. <el-table-column label="序号" type="index" width="50" align="center">
  1540. <template slot-scope="scope">
  1541. <span>{{(queryParamsInvalid.pageNum - 1) * queryParamsInvalid.pageSize + scope.$index + 1}}</span>
  1542. </template>
  1543. </el-table-column>
  1544. <el-table-column label="融信编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  1545. <el-table-column label="开立方" align="center" prop="openName" :show-overflow-tooltip="true"/>
  1546. <el-table-column label="接收方" align="center" prop="receiveName" :show-overflow-tooltip="true"/>
  1547. <el-table-column label="融信类型" :formatter="typeFormat" align="center" prop="zfiCreateType" :show-overflow-tooltip="true"/>
  1548. <el-table-column label="融信产品" align="center" prop="zfpName" :show-overflow-tooltip="true"/>
  1549. <el-table-column label="融信金额" align="center" :formatter="moneyFormat" prop="zfiAmount" :show-overflow-tooltip="true" />
  1550. <el-table-column label="融信利率(%)" align="center" width="100px;" prop="zfiRate" :show-overflow-tooltip="true" />
  1551. <el-table-column label="签发有效期" align="center" width="100px;" prop="zfiEffectiveDate" :show-overflow-tooltip="true" />
  1552. <el-table-column label="承诺还款日" align="center" width="100px;" prop="zfiExpireDate" :show-overflow-tooltip="true"/>
  1553. <el-table-column label="签收日期" align="center" prop="zfiSignDate" :show-overflow-tooltip="true" />
  1554. <el-table-column label="承诺函编号" align="center" width="100px;" prop="zfiPaymentNumber" :show-overflow-tooltip="true" />
  1555. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true" v-if="this.companyType == '02' || this.companyType == '00'"/>
  1556. <el-table-column label="平台审批状态" :formatter="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true" v-if="this.companyType == '00'"/>
  1557. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true" v-if="this.companyType == '01' || this.companyType == '00'"/>
  1558. <el-table-column label="状态" :formatter="stateFormat" align="center" prop="zfiStatus" :show-overflow-tooltip="true"/>
  1559. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  1560. <template slot-scope="scope">
  1561. <el-button
  1562. size="mini"
  1563. type="text"
  1564. icon="el-icon-view"
  1565. @click="handleDetail(scope.row)"
  1566. v-hasPermi="['credit:credit:query']"
  1567. >详情</el-button>
  1568. <!--
  1569. (融资方)融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
  1570. (融资方)融资状态审批通过+核心状态为空+平台状态审批不通过+融信平台退回||
  1571. (核心方)融资审批通过+核心审批拒绝+平台审批通过+融信待确权
  1572. (核心方)融资审批状态空+核心审批拒绝+平台空+融信空||
  1573. (融资方)融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
  1574. (融资方)融资审批审批通过+核心审批通过+平台拒绝+融信待签收
  1575. -->
  1576. <el-button
  1577. size="mini"
  1578. type="text"
  1579. icon="el-icon-edit"
  1580. @click="handleUpdate(scope.row)"
  1581. v-hasPermi="['credit:credit:update']"
  1582. v-show="(scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1583. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  1584. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  1585. (scope.row.companyType == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' || scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1586. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  1587. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
  1588. >修改</el-button>
  1589. <!--融资申请/开立+融信状态待确权+核心审批状态为空-->
  1590. <el-button
  1591. size="mini"
  1592. type="text"
  1593. icon="el-icon-edit"
  1594. @click="handleApprove(scope.row)"
  1595. v-hasPermi="['credit:credit:approve']"
  1596. v-show="(scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2' ) && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null' ||scope.row.zfiCoreStatus =='02' )"
  1597. >确权</el-button>
  1598. <!--原补充资料-->
  1599. <!--核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过)-->
  1600. <el-button
  1601. size="mini"
  1602. type="text"
  1603. icon="el-icon-edit"
  1604. @click="handleAddInformation(scope.row)"
  1605. v-hasPermi="['credit:credit:addInfor']"
  1606. v-show="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01'))"
  1607. >签收</el-button>
  1608. <!--融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过-->
  1609. <el-button
  1610. size="mini"
  1611. type="text"
  1612. icon="el-icon-edit"
  1613. @click="handleSignFor(scope.row)"
  1614. v-hasPermi="['credit:credit:signFor']"
  1615. v-show="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01')"
  1616. >签收</el-button>
  1617. <!--(融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过)||
  1618. (核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过))
  1619. -->
  1620. <el-button
  1621. size="mini"
  1622. type="text"
  1623. icon="el-icon-edit"
  1624. @click="handleRefuse(scope.row)"
  1625. v-hasPermi="['credit:credit:refuse']"
  1626. v-show="(scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' &&(scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01'))||
  1627. (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' &&((scope.row.zfiSupplierStatus != '00' && scope.row.zfiSupplierStatus != '01') || (scope.row.zfiPlatformStatus != '00' && scope.row.zfiPlatformStatus != '01')))"
  1628. >拒签</el-button>
  1629. <el-button
  1630. size="mini"
  1631. type="text"
  1632. icon="el-icon-edit"
  1633. @click="handleGoFinance(scope.row)"
  1634. v-hasPermi="['credit:credit:goFinance']"
  1635. v-show="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
  1636. >去融资</el-button>
  1637. <!--(核心)核心开立:核心审批通过+其他状态为空||
  1638. (融资方)补充资料:融资方通过+核心通过+平台通过+待签收||
  1639. (融资方)融资开立:融资方通过+平台通过+其他为空||
  1640. (核心)确权:融资方通过+核心通过+平台通过+待确权
  1641. -->
  1642. <el-button
  1643. size="mini"
  1644. type="text"
  1645. icon="el-icon-edit"
  1646. @click="seal(scope.row)"
  1647. v-hasPermi="['credit:credit:seal']"
  1648. v-show="(scope.row.companyType == '01' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1649. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  1650. (scope.row.companyType == '02' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null))||
  1651. (scope.row.companyType == '01' && scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')"
  1652. >盖章</el-button>
  1653. <el-button
  1654. size="mini"
  1655. type="text"
  1656. icon="el-icon-delete"
  1657. @click="handleDelete(scope.row)"
  1658. v-hasPermi="['credit:credit:del']"
  1659. v-show="scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null || scope.row.zfiStatus == '06'"
  1660. >删除</el-button>
  1661. </template>
  1662. </el-table-column>
  1663. </el-table>
  1664. <pagination
  1665. v-show="totalInvalid>0"
  1666. :total="totalInvalid"
  1667. :page.sync="handleQueryInvalid.pageNum"
  1668. :limit.sync="handleQueryInvalid.pageSize"
  1669. @pagination="getListInvalid"
  1670. />
  1671. </el-tab-pane>
  1672. </el-tabs>
  1673. </template>
  1674. <script>
  1675. import { listCredit, coreApproval, confirmationApproval, informationApproval,approval,openApproval, getUser } from "@/api/service/credit/credit";
  1676. import {creditRefuse,creditDel} from "@/api/service/credit/creditHandle";
  1677. import Editor from '@/components/Editor';
  1678. import Cookies from 'js-cookie'
  1679. export default {
  1680. name: "invoice",
  1681. components: {
  1682. Editor
  1683. },
  1684. data() {
  1685. return {
  1686. //当前登录企业Id
  1687. companyId:'',
  1688. // 遮罩层
  1689. loading: true,
  1690. // 选中数组
  1691. ids: [],
  1692. // 非单个禁用
  1693. single: true,
  1694. // 非多个禁用
  1695. multiple: true,
  1696. // 显示搜索条件
  1697. showSearch: true,
  1698. // 总条数
  1699. total: 0,
  1700. //待签收总条数
  1701. totalSign:0,
  1702. //融资中
  1703. totalFinancing:0,
  1704. //开立中
  1705. totalOpening:0,
  1706. //已融资
  1707. totalFinanced:0,
  1708. //已失效
  1709. totalInvalid:0,
  1710. // 弹出层标题
  1711. title: "",
  1712. // 是否显示弹出层
  1713. open: false,
  1714. //融信类型
  1715. typeOptions: [],
  1716. //状态
  1717. stateOptions:[],
  1718. //平台审批状态
  1719. platformOptions:[],
  1720. //核心审批状态
  1721. coreOptions:[],
  1722. //供应商审批状态
  1723. supplierOptions:[],
  1724. //开始金额
  1725. startAmt:undefined,
  1726. //结束金额
  1727. endAmt:undefined,
  1728. //当前企业类型
  1729. companyType:'',
  1730. // 查询参数
  1731. queryParams:{
  1732. pageNum: 1,
  1733. pageSize: 10,
  1734. zfiNumber: null,
  1735. zfiStatus:null,
  1736. openCompany:null,
  1737. receiveCompany:null,
  1738. startAmt:null,
  1739. endAmt:null,
  1740. zfpName:null,
  1741. zfiRate:null,
  1742. zfiSignDate:[],
  1743. zfiExpireDate:[]
  1744. },
  1745. // 待签收查询参数
  1746. queryParamsSign:{
  1747. pageNum: 1,
  1748. pageSize: 10,
  1749. zfiNumber: null,
  1750. zfiStatus:"02",
  1751. openCompany:null,
  1752. receiveCompany:null,
  1753. startAmt:null,
  1754. endAmt:null,
  1755. zfpName:null,
  1756. zfiRate:null,
  1757. zfiSignDate:[],
  1758. zfiExpireDate:[]
  1759. },
  1760. //融资中查询参数
  1761. queryParamsFinancing:{
  1762. pageNum: 1,
  1763. pageSize: 10,
  1764. zfiNumber: null,
  1765. zfiStatus:"04",
  1766. openCompany:null,
  1767. receiveCompany:null,
  1768. startAmt:null,
  1769. endAmt:null,
  1770. zfpName:null,
  1771. zfiRate:null,
  1772. zfiSignDate:[],
  1773. zfiExpireDate:[]
  1774. },
  1775. //开立中查询参数
  1776. queryParamsOpening:{
  1777. pageNum: 1,
  1778. pageSize: 10,
  1779. zfiNumber: null,
  1780. zfiStatus:"00,01,06",
  1781. openCompany:null,
  1782. receiveCompany:null,
  1783. startAmt:null,
  1784. endAmt:null,
  1785. zfpName:null,
  1786. zfiRate:null,
  1787. zfiSignDate:[],
  1788. zfiExpireDate:[]
  1789. },
  1790. //已融资搜索
  1791. queryParamsFinanced:{
  1792. pageNum: 1,
  1793. pageSize: 10,
  1794. zfiNumber: null,
  1795. zfiStatus:"05",
  1796. openCompany:null,
  1797. receiveCompany:null,
  1798. startAmt:null,
  1799. endAmt:null,
  1800. zfpName:null,
  1801. zfiRate:null,
  1802. zfiSignDate:[],
  1803. zfiExpireDate:[]
  1804. },
  1805. //已失效
  1806. queryParamsInvalid:{
  1807. pageNum: 1,
  1808. pageSize: 10,
  1809. zfiNumber: null,
  1810. zfiStatus:"03,07",
  1811. openCompany:null,
  1812. receiveCompany:null,
  1813. startAmt:null,
  1814. endAmt:null,
  1815. zfpName:null,
  1816. zfiRate:null,
  1817. zfiSignDate:[],
  1818. zfiExpireDate:[]
  1819. },
  1820. //全部数据
  1821. infList:[],
  1822. //待签收
  1823. infSignList:[],
  1824. //融资中
  1825. infFinancingList:[],
  1826. //开立中
  1827. infOpeningList:[],
  1828. //已融资
  1829. infFinancedList:[],
  1830. //已失效
  1831. infInvalidList:[],
  1832. // 表单参数
  1833. form: {
  1834. }
  1835. };
  1836. },
  1837. created() {
  1838. this.getDicts("zfi_create_type").then(response => {
  1839. this.typeOptions = response.data;
  1840. });
  1841. this.getDicts("zc_finance_state").then(response => {
  1842. this.stateOptions = response.data;
  1843. });
  1844. this.getDicts("finance_platform_status").then(response => {
  1845. this.platformOptions = response.data;
  1846. });
  1847. this.getDicts("finance_core_status").then(response => {
  1848. this.coreOptions = response.data;
  1849. });
  1850. this.getDicts("finance_supplier_status").then(response => {
  1851. this.supplierOptions = response.data;
  1852. });
  1853. this.getUser();
  1854. this.getList();
  1855. this.getListSign();
  1856. this.getListFinancing();
  1857. this.getListOpening();
  1858. this.getListFinanced();
  1859. this.getListInvalid();
  1860. },
  1861. activated () {
  1862. this.getDicts("zfi_create_type").then(response => {
  1863. this.typeOptions = response.data;
  1864. });
  1865. this.getDicts("zc_finance_state").then(response => {
  1866. this.stateOptions = response.data;
  1867. });
  1868. this.getDicts("finance_platform_status").then(response => {
  1869. this.platformOptions = response.data;
  1870. });
  1871. this.getDicts("finance_core_status").then(response => {
  1872. this.coreOptions = response.data;
  1873. });
  1874. this.getDicts("finance_supplier_status").then(response => {
  1875. this.supplierOptions = response.data;
  1876. });
  1877. this.getUser();
  1878. this.getList();
  1879. this.getListSign();
  1880. this.getListFinancing();
  1881. this.getListOpening();
  1882. this.getListFinanced();
  1883. this.getListInvalid();
  1884. },
  1885. methods: {
  1886. //获取操作员Id
  1887. getUser(){
  1888. getUser().then(response => {
  1889. debugger
  1890. this.companyId = response.data;
  1891. })
  1892. },
  1893. /** 查询全部列表 */
  1894. getList() {
  1895. this.loading = true;
  1896. listCredit(this.queryParams).then(response => {
  1897. this.infList = response.data.records;
  1898. if(this.infList){
  1899. if(this.infList.length > 0){
  1900. //企业类型
  1901. this.companyType = this.infList[0].companyType;
  1902. }
  1903. }
  1904. this.total = response.data.total;
  1905. this.loading = false;
  1906. });
  1907. },
  1908. //查询待签收
  1909. getListSign() {
  1910. this.loading = true;
  1911. listCredit(this.queryParamsSign).then(response => {
  1912. this.infSignList = response.data.records;
  1913. this.totalSign = response.data.total;
  1914. this.loading = false;
  1915. });
  1916. },
  1917. //融资中
  1918. getListFinancing() {
  1919. this.loading = true;
  1920. listCredit(this.queryParamsFinancing).then(response => {
  1921. this.infFinancingList = response.data.records;
  1922. this.totalFinancing = response.data.total;
  1923. this.loading = false;
  1924. });
  1925. },
  1926. //开立中
  1927. getListOpening(){
  1928. this.loading = true;
  1929. listCredit(this.queryParamsOpening).then(response => {
  1930. this.infOpeningList = response.data.records;
  1931. this.totalOpening = response.data.total;
  1932. this.loading = false;
  1933. });
  1934. },
  1935. //已融资
  1936. getListFinanced() {
  1937. this.loading = true;
  1938. listCredit(this.queryParamsFinanced).then(response => {
  1939. this.infFinancedList = response.data.records;
  1940. this.totalFinanced = response.data.total;
  1941. this.loading = false;
  1942. });
  1943. },
  1944. //已失效
  1945. getListInvalid(){
  1946. this.loading = true;
  1947. listCredit(this.queryParamsInvalid).then(response => {
  1948. this.infInvalidList = response.data.records;
  1949. this.totalInvalid = response.data.total;
  1950. this.loading = false;
  1951. });
  1952. },
  1953. // 表单重置
  1954. reset() {
  1955. this.form = {
  1956. zfiNumber: null,
  1957. zfiStatus:null,
  1958. openCompany:null,
  1959. receiveCompany:null,
  1960. zfpName:null,
  1961. zfiRate:null,
  1962. zfiSignDate:[],
  1963. zfiExpireDate:[],
  1964. zfiCollectionAccount:null,
  1965. zfiAmount:''
  1966. };
  1967. this.queryParams.startAmt = '';
  1968. this.queryParams.endAmt = '';
  1969. this.queryParamsSign.startAmt = '';
  1970. this.queryParamsSign.endAmt = '';
  1971. this.queryParamsFinancing.startAmt = '';
  1972. this.queryParamsFinancing.endAmt = '';
  1973. this.queryParamsOpening.startAmt = '';
  1974. this.queryParamsOpening.endAmt = '';
  1975. this.queryParamsFinanced.startAmt = '';
  1976. this.queryParamsFinanced.endAmt = '';
  1977. this.queryParamsInvalid.startAmt = '';
  1978. this.queryParamsInvalid.endAmt = '';
  1979. this.resetForm("form");
  1980. },
  1981. // 多选框选中数据
  1982. handleSelectionChange(selection) {
  1983. this.ids = selection.map(item => item.cifId)
  1984. this.single = selection.length!==1
  1985. this.multiple = !selection.length
  1986. },
  1987. /** 全部搜索按钮操作 */
  1988. handleQuery() {
  1989. this.queryParams.pageNum = 1;
  1990. this.getList();
  1991. },
  1992. //待签收搜索
  1993. handleQuerySign() {
  1994. this.queryParamsSign.pageNum = 1;
  1995. this.getListSign();
  1996. },
  1997. //融资中搜索
  1998. handleQueryFinancing() {
  1999. this.queryParamsFinancing.pageNum = 1;
  2000. this.getListFinancing();
  2001. },
  2002. //开立中搜索
  2003. handleQueryOpening() {
  2004. this.queryParamsOpening.pageNum = 1;
  2005. this.getListOpening();
  2006. },
  2007. //已融资搜索
  2008. handleQueryFinanced() {
  2009. this.queryParamsFinanced.pageNum = 1;
  2010. this.getListFinanced();
  2011. },
  2012. //已失效搜索
  2013. handleQueryInvalid() {
  2014. this.queryParamsInvalid.pageNum = 1;
  2015. this.getListInvalid();
  2016. },
  2017. /** 全部重置按钮操作 */
  2018. resetQuery() {
  2019. this.queryParams.startAmt = '';
  2020. this.queryParams.endAmt = '';
  2021. this.resetForm("queryForm");
  2022. this.handleQuery();
  2023. },
  2024. //待签收重置
  2025. resetQuerySign() {
  2026. this.queryParamsSign.startAmt = '';
  2027. this.queryParamsSign.endAmt = '';
  2028. this.resetForm("queryFormSign");
  2029. this.handleQuerySign();
  2030. },
  2031. //融资中重置
  2032. resetQueryFinancing() {
  2033. this.queryParamsFinancing.startAmt = '';
  2034. this.queryParamsFinancing.endAmt = '';
  2035. this.resetForm("queryFormFinancing");
  2036. this.handleQueryFinancing();
  2037. },
  2038. //开立中重置
  2039. resetQueryOpening() {
  2040. this.queryParamsOpening.startAmt = '';
  2041. this.queryParamsOpening.endAmt = '';
  2042. this.resetForm("queryFormOpening");
  2043. this.handleQueryOpening();
  2044. },
  2045. //已融资重置
  2046. resetQueryFinanced() {
  2047. this.queryParamsFinanced.startAmt = '';
  2048. this.queryParamsFinanced.endAmt = '';
  2049. this.resetForm("queryFormFinanced");
  2050. this.handleQueryFinanced();
  2051. },
  2052. //已失效重置
  2053. resetQueryInvalid() {
  2054. this.queryParamsInvalid.startAmt = '';
  2055. this.queryParamsInvalid.endAmt = '';
  2056. this.resetForm("queryFormInvalid");
  2057. this.handleQueryInvalid();
  2058. },
  2059. /** 新增按钮操作 */
  2060. handleAdd() {
  2061. this.reset();
  2062. Cookies.set("/credit/addCredit/", this.$route.fullPath);
  2063. this.$router.push({ path: "/credit/addCredit/" });
  2064. },
  2065. //详情
  2066. handleDetail(row){
  2067. const zfiId = row.zfiId || this.ids
  2068. Cookies.set("/credit/creditDetail/"+zfiId + "/", this.$route.fullPath)
  2069. this.$router.push({ path: "/credit/creditDetail/"+zfiId + "/" });
  2070. },
  2071. //修改
  2072. handleUpdate(row){
  2073. const zfiId = row.zfiId || this.ids;
  2074. //获取融信类型
  2075. const zfiCreateType = row.zfiCreateType;
  2076. //核心开立
  2077. if(zfiCreateType == '1'){
  2078. Cookies.set("/credit/creditUpdate/"+zfiId + "/", this.$route.fullPath)
  2079. this.$router.push({ path: "/credit/creditUpdate/"+zfiId + "/" });
  2080. }else if(zfiCreateType == '2'){
  2081. Cookies.set("/credit/financeOpenUpdate/"+zfiId + "/", this.$route.fullPath)
  2082. this.$router.push({ path: "/credit/financeOpenUpdate/"+zfiId + "/" });
  2083. }else if(zfiCreateType == '0'){
  2084. Cookies.set("/credit/applyCreditEdit/"+zfiId + "/", this.$route.fullPath)
  2085. this.$router.push({ path: "/credit/applyCreditEdit/"+zfiId + "/" });
  2086. }
  2087. },
  2088. //审核
  2089. handleApprove(row){
  2090. const zfiId = row.zfiId || this.ids
  2091. Cookies.set("/credit/confirmationAudit/"+zfiId + "/", this.$route.fullPath)
  2092. this.$router.push({ path: "/credit/confirmationAudit/"+zfiId + "/" });
  2093. },
  2094. //补充资料
  2095. handleAddInformation(row){
  2096. const zfiId = row.zfiId || this.ids
  2097. Cookies.set("/credit/addInformation/"+zfiId + "/", this.$route.fullPath)
  2098. this.$router.push({ path: "/credit/addInformation/"+zfiId + "/" });
  2099. },
  2100. //签收
  2101. handleSignFor(row){
  2102. const zfiId = row.zfiId || this.ids
  2103. Cookies.set("/credit/signFor/"+zfiId + "/", this.$route.fullPath)
  2104. this.$router.push({ path: "/credit/signFor/"+zfiId + "/" });
  2105. },
  2106. //去融资
  2107. handleGoFinance(row){
  2108. const zfiId = row.zfiId || this.ids
  2109. Cookies.set("/credit/goFinance/"+zfiId + "/", this.$route.fullPath)
  2110. this.$router.push({ path: "/credit/goFinance/"+zfiId + "/" });
  2111. },
  2112. //盖章
  2113. seal(row){
  2114. const zfiId = row.zfiId || this.ids
  2115. Cookies.set("/credit/creditSeal/"+zfiId + "/", this.$route.fullPath)
  2116. this.$router.push({ path: "/credit/creditSeal/"+zfiId + "/" });
  2117. },
  2118. /**核心开立审批按钮操作*/
  2119. handleExam(row){
  2120. this.$confirm("是否确认提交开立审批?", "警告", {
  2121. confirmButtonText: "确定",
  2122. cancelButtonText: "取消",
  2123. type: "warning"
  2124. }).then(function() {
  2125. return coreApproval(row);
  2126. }).then(() => {
  2127. this.getList();
  2128. this.getListSign();
  2129. this.getListFinancing();
  2130. this.getListOpening();
  2131. this.getListFinanced();
  2132. this.getListInvalid();
  2133. this.msgSuccess("提交审批成功");
  2134. }).catch(() => {
  2135. this.$message({
  2136. type: "warning",
  2137. message: "已取消提交审批",
  2138. });
  2139. });
  2140. },
  2141. //确权审批
  2142. handleConfirmationExam(row){
  2143. this.$confirm("是否确认提交确权审批?", "警告", {
  2144. confirmButtonText: "确定",
  2145. cancelButtonText: "取消",
  2146. type: "warning"
  2147. }).then(function() {
  2148. return confirmationApproval(row);
  2149. }).then(() => {
  2150. this.getList();
  2151. this.getListSign();
  2152. this.getListFinancing();
  2153. this.getListOpening();
  2154. this.getListFinanced();
  2155. this.getListInvalid();
  2156. this.msgSuccess("提交审批成功");
  2157. }).catch(() => {
  2158. this.$message({
  2159. type: "warning",
  2160. message: "已取消提交审批",
  2161. });
  2162. });
  2163. },
  2164. //融资申请提交审批按钮
  2165.     handleApproval(row) {
  2166.       const zfiNumber = row.zfiNumber;
  2167.       this.$confirm(
  2168.         '是否确认提交审批融信编号为"' + zfiNumber + '"的数据项?',
  2169.         "警告",
  2170.         {
  2171.           confirmButtonText: "确定",
  2172.           cancelButtonText: "取消",
  2173.           type: "warning"
  2174.         }
  2175.       )
  2176.         .then(function() {
  2177.           //提交审批
  2178.           return approval(row);
  2179.         })
  2180.         .then(() => {
  2181.           this.getList();
  2182. this.getListSign();
  2183. this.getListFinancing();
  2184. this.getListOpening();
  2185. this.getListFinanced();
  2186. this.getListInvalid();
  2187.           this.msgSuccess("提交审批成功");
  2188.         })
  2189.         .catch(() => {
  2190.           this.$message({
  2191.             type: "warning",
  2192.             message: "已取消提交审批"
  2193.           });
  2194.         });
  2195.     },
  2196. //融资开立提交审批按钮
  2197.     openApproval(row) {
  2198.       const zfiNumber = row.zfiNumber;
  2199.       this.$confirm(
  2200.         '是否确认提交审批融信编号为"' + zfiNumber + '"的数据项?',
  2201.         "警告",
  2202.         {
  2203.           confirmButtonText: "确定",
  2204.           cancelButtonText: "取消",
  2205.           type: "warning"
  2206.         }
  2207.       )
  2208.         .then(function() {
  2209.           //提交审批
  2210.           return openApproval(row);
  2211.         })
  2212.         .then(() => {
  2213.           this.getList();
  2214. this.getListSign();
  2215. this.getListFinancing();
  2216. this.getListOpening();
  2217. this.getListFinanced();
  2218. this.getListInvalid();
  2219.           this.msgSuccess("提交审批成功");
  2220.         })
  2221.         .catch(() => {
  2222.           this.$message({
  2223.             type: "warning",
  2224.             message: "已取消提交审批"
  2225.           });
  2226.         });
  2227.     },
  2228. //补充资料提交审批
  2229. handleApprovals(row){
  2230. const zfiNumber = row.zfiNumber;
  2231. this.$confirm('是否确认提交审批融信编号为"' + zfiNumber + '"的数据项?', "警告",{
  2232. confirmButtonText: "确定",
  2233. cancelButtonText: "取消",
  2234. type: "warning"
  2235. }).then(function() {
  2236. return informationApproval(row);
  2237. }).then(() => {
  2238. this.getList();
  2239. this.getListSign();
  2240. this.getListFinancing();
  2241. this.getListOpening();
  2242. this.getListFinanced();
  2243. this.getListInvalid();
  2244. this.msgSuccess("提交审批成功");
  2245. })
  2246. .catch(() => {
  2247. this.$message({
  2248. type: "warning",
  2249. message: "已取消提交审批",
  2250. });
  2251. });
  2252. },
  2253. //格式化类型
  2254. typeFormat(row, column) {
  2255. return this.selectDictLabel(this.typeOptions, row.zfiCreateType);
  2256. },
  2257. //格式化状态
  2258. stateFormat(row, column) {
  2259. return this.selectDictLabel(this.stateOptions, row.zfiStatus);
  2260. },
  2261. //格式化平台审批状态
  2262. platformStatusFormat(row, column) {
  2263. return this.selectDictLabel(this.platformOptions, row.zfiPlatformStatus);
  2264. },
  2265. //格式化核心审批
  2266. coreStatusFormat(row, column) {
  2267. return this.selectDictLabel(this.coreOptions, row.zfiCoreStatus);
  2268. },
  2269. //格式化融资方审批
  2270. supplierStatusFormat(row, column) {
  2271. return this.selectDictLabel(this.supplierOptions, row.zfiSupplierStatus);
  2272. },
  2273. //融资开立
  2274. finanOpening(){
  2275. this.reset();
  2276. Cookies.set("/credit/financeOpen/", this.$route.fullPath);
  2277. this.$router.push({ path: "/credit/financeOpen/" });
  2278. },
  2279. //融资申请
  2280. apply(){
  2281. this.reset();
  2282. Cookies.set("/credit/creditApply/", this.$route.fullPath);
  2283. this.$router.push({ path: "/credit/creditApply/" });
  2284. },
  2285. //拒签
  2286. handleRefuse(row){
  2287. const zfiNumber = row.zfiNumber ;
  2288. this.$confirm('是否拒签融信编号为"' + zfiNumber + '"的数据项?', "警告",{
  2289. confirmButtonText: "确定",
  2290. cancelButtonText: "取消",
  2291. type: "warning"
  2292. }).then(function() {
  2293. //拒签
  2294. return creditRefuse(row);
  2295. }).then(() => {
  2296. this.getList();
  2297. this.getListSign();
  2298. this.getListFinancing();
  2299. this.getListOpening();
  2300. this.getListFinanced();
  2301. this.getListInvalid();
  2302. this.msgSuccess("拒签成功");
  2303. })
  2304. .catch(() => {
  2305. this.$message({
  2306. type: "warning",
  2307. message: "已取消",
  2308. });
  2309. });
  2310. },
  2311. //删除
  2312. handleDelete(row){
  2313. const zfiNumber = row.zfiNumber ;
  2314. this.$confirm('是否删除融信编号为"' + zfiNumber + '"的数据项?', "警告",{
  2315. confirmButtonText: "确定",
  2316. cancelButtonText: "取消",
  2317. type: "warning"
  2318. }).then(function() {
  2319. //删除
  2320. return creditDel(row);
  2321. }).then(() => {
  2322. this.getList();
  2323. this.getListSign();
  2324. this.getListFinancing();
  2325. this.getListOpening();
  2326. this.getListFinanced();
  2327. this.getListInvalid();
  2328. this.msgSuccess("删除成功");
  2329. })
  2330. .catch(() => {
  2331. this.$message({
  2332. type: "warning",
  2333. message: "已取消",
  2334. });
  2335. });
  2336. },
  2337. //列表格式化金额
  2338. moneyFormat(row, column, cellValue) {
  2339. if(cellValue == null || cellValue== undefined || cellValue == ''){
  2340. cellValue = '0.00'
  2341. }
  2342. cellValue += '';
  2343. if (!cellValue.includes('.')) {
  2344. cellValue += '.00';
  2345. }
  2346.     return cellValue.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
  2347.         return $1 + ',';
  2348.       }).replace(/\.$/, '');
  2349. },
  2350. //input格式化金额
  2351. amtFormat(cellValue) {
  2352. if(cellValue == null || cellValue== undefined || cellValue == ''){
  2353. cellValue = '0.00'
  2354. }
  2355. cellValue += '';
  2356.       if (!cellValue.includes('.')) {
  2357. cellValue += '.00';
  2358. }
  2359. console.log(cellValue);
  2360.       return cellValue.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
  2361.         return $1 + ',';
  2362.       }).replace(/\.$/, '');
  2363. },
  2364. }
  2365. };
  2366. </script>