credit.vue 114 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375
  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="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true"/>
  165. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true"/>
  166. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true"/>
  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-if="(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.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  193. (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  194. ((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.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  196. (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-if="(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-if="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-if="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-if="(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-if="(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-if="(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.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  260. (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.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-if="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="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true"/>
  444. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true"/>
  445. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true"/>
  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-if="(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.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  472. (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  473. ((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.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  475. (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-if="(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-if="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-if="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-if="(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-if="(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-if="(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.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  538. (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.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-if="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="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true"/>
  722. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true"/>
  723. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true"/>
  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-if="(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.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  750. (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  751. ((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.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  753. (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-if="(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-if="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-if="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-if="(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-if="(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-if="(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.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  816. (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.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-if="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="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true"/>
  1000. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true"/>
  1001. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true"/>
  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-if="(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.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  1028. (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  1029. ((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.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  1031. (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-if="(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-if="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-if="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-if="(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-if="(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-if="(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.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  1094. (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.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-if="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="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true"/>
  1278. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true"/>
  1279. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true"/>
  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-if="(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.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  1306. (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  1307. ((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.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  1309. (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-if="(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-if="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-if="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-if="(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-if="(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-if="(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.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  1372. (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.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-if="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="platformStatusFormat" align="center" width="100px;" prop="zfiPlatformStatus" :show-overflow-tooltip="true"/>
  1556. <el-table-column label="融资方审批状态" :formatter="supplierStatusFormat" align="center" width="110px;" prop="zfiSupplierStatus" :show-overflow-tooltip="true"/>
  1557. <el-table-column label="核心审批状态" :formatter="coreStatusFormat" align="center" width="100px;" prop="zfiCoreStatus" :show-overflow-tooltip="true"/>
  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-if="(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.zfiSupplierStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' || scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
  1584. (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
  1585. ((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.zfiSupplierStatus == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' || scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
  1587. (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-if="(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-if="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-if="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-if="(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-if="(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-if="(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.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '01')||
  1650. (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.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-if="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. queryParams:{
  1730. pageNum: 1,
  1731. pageSize: 10,
  1732. zfiNumber: null,
  1733. zfiStatus:null,
  1734. openCompany:null,
  1735. receiveCompany:null,
  1736. startAmt:null,
  1737. endAmt:null,
  1738. zfpName:null,
  1739. zfiRate:null,
  1740. zfiSignDate:[],
  1741. zfiExpireDate:[]
  1742. },
  1743. // 待签收查询参数
  1744. queryParamsSign:{
  1745. pageNum: 1,
  1746. pageSize: 10,
  1747. zfiNumber: null,
  1748. zfiStatus:"02",
  1749. openCompany:null,
  1750. receiveCompany:null,
  1751. startAmt:null,
  1752. endAmt:null,
  1753. zfpName:null,
  1754. zfiRate:null,
  1755. zfiSignDate:[],
  1756. zfiExpireDate:[]
  1757. },
  1758. //融资中查询参数
  1759. queryParamsFinancing:{
  1760. pageNum: 1,
  1761. pageSize: 10,
  1762. zfiNumber: null,
  1763. zfiStatus:"04",
  1764. openCompany:null,
  1765. receiveCompany:null,
  1766. startAmt:null,
  1767. endAmt:null,
  1768. zfpName:null,
  1769. zfiRate:null,
  1770. zfiSignDate:[],
  1771. zfiExpireDate:[]
  1772. },
  1773. //开立中查询参数
  1774. queryParamsOpening:{
  1775. pageNum: 1,
  1776. pageSize: 10,
  1777. zfiNumber: null,
  1778. zfiStatus:"00,01,06",
  1779. openCompany:null,
  1780. receiveCompany:null,
  1781. startAmt:null,
  1782. endAmt:null,
  1783. zfpName:null,
  1784. zfiRate:null,
  1785. zfiSignDate:[],
  1786. zfiExpireDate:[]
  1787. },
  1788. //已融资搜索
  1789. queryParamsFinanced:{
  1790. pageNum: 1,
  1791. pageSize: 10,
  1792. zfiNumber: null,
  1793. zfiStatus:"05",
  1794. openCompany:null,
  1795. receiveCompany:null,
  1796. startAmt:null,
  1797. endAmt:null,
  1798. zfpName:null,
  1799. zfiRate:null,
  1800. zfiSignDate:[],
  1801. zfiExpireDate:[]
  1802. },
  1803. //已失效
  1804. queryParamsInvalid:{
  1805. pageNum: 1,
  1806. pageSize: 10,
  1807. zfiNumber: null,
  1808. zfiStatus:"03,07",
  1809. openCompany:null,
  1810. receiveCompany:null,
  1811. startAmt:null,
  1812. endAmt:null,
  1813. zfpName:null,
  1814. zfiRate:null,
  1815. zfiSignDate:[],
  1816. zfiExpireDate:[]
  1817. },
  1818. //全部数据
  1819. infList:[],
  1820. //待签收
  1821. infSignList:[],
  1822. //融资中
  1823. infFinancingList:[],
  1824. //开立中
  1825. infOpeningList:[],
  1826. //已融资
  1827. infFinancedList:[],
  1828. //已失效
  1829. infInvalidList:[],
  1830. // 表单参数
  1831. form: {
  1832. }
  1833. };
  1834. },
  1835. created() {
  1836. this.getDicts("zfi_create_type").then(response => {
  1837. this.typeOptions = response.data;
  1838. });
  1839. this.getDicts("zc_finance_state").then(response => {
  1840. this.stateOptions = response.data;
  1841. });
  1842. this.getDicts("finance_platform_status").then(response => {
  1843. this.platformOptions = response.data;
  1844. });
  1845. this.getDicts("finance_core_status").then(response => {
  1846. this.coreOptions = response.data;
  1847. });
  1848. this.getDicts("finance_supplier_status").then(response => {
  1849. this.supplierOptions = response.data;
  1850. });
  1851. this.getUser();
  1852. this.getList();
  1853. this.getListSign();
  1854. this.getListFinancing();
  1855. this.getListOpening();
  1856. this.getListFinanced();
  1857. this.getListInvalid();
  1858. },
  1859. activated () {
  1860. this.getDicts("zfi_create_type").then(response => {
  1861. this.typeOptions = response.data;
  1862. });
  1863. this.getDicts("zc_finance_state").then(response => {
  1864. this.stateOptions = response.data;
  1865. });
  1866. this.getDicts("finance_platform_status").then(response => {
  1867. this.platformOptions = response.data;
  1868. });
  1869. this.getDicts("finance_core_status").then(response => {
  1870. this.coreOptions = response.data;
  1871. });
  1872. this.getDicts("finance_supplier_status").then(response => {
  1873. this.supplierOptions = response.data;
  1874. });
  1875. this.getUser();
  1876. this.getList();
  1877. this.getListSign();
  1878. this.getListFinancing();
  1879. this.getListOpening();
  1880. this.getListFinanced();
  1881. this.getListInvalid();
  1882. },
  1883. methods: {
  1884. //获取操作员Id
  1885. getUser(){
  1886. getUser().then(response => {
  1887. debugger
  1888. this.companyId = response.data;
  1889. })
  1890. },
  1891. /** 查询全部列表 */
  1892. getList() {
  1893. this.loading = true;
  1894. listCredit(this.queryParams).then(response => {
  1895. this.infList = response.data.records;
  1896. this.total = response.data.total;
  1897. this.loading = false;
  1898. });
  1899. },
  1900. //查询待签收
  1901. getListSign() {
  1902. this.loading = true;
  1903. listCredit(this.queryParamsSign).then(response => {
  1904. this.infSignList = response.data.records;
  1905. this.totalSign = response.data.total;
  1906. this.loading = false;
  1907. });
  1908. },
  1909. //融资中
  1910. getListFinancing() {
  1911. this.loading = true;
  1912. listCredit(this.queryParamsFinancing).then(response => {
  1913. this.infFinancingList = response.data.records;
  1914. this.totalFinancing = response.data.total;
  1915. this.loading = false;
  1916. });
  1917. },
  1918. //开立中
  1919. getListOpening(){
  1920. this.loading = true;
  1921. listCredit(this.queryParamsOpening).then(response => {
  1922. this.infOpeningList = response.data.records;
  1923. this.totalOpening = response.data.total;
  1924. this.loading = false;
  1925. });
  1926. },
  1927. //已融资
  1928. getListFinanced() {
  1929. this.loading = true;
  1930. listCredit(this.queryParamsFinanced).then(response => {
  1931. this.infFinancedList = response.data.records;
  1932. this.totalFinanced = response.data.total;
  1933. this.loading = false;
  1934. });
  1935. },
  1936. //已失效
  1937. getListInvalid(){
  1938. this.loading = true;
  1939. listCredit(this.queryParamsInvalid).then(response => {
  1940. this.infInvalidList = response.data.records;
  1941. this.totalInvalid = response.data.total;
  1942. this.loading = false;
  1943. });
  1944. },
  1945. // 表单重置
  1946. reset() {
  1947. this.form = {
  1948. zfiNumber: null,
  1949. zfiStatus:null,
  1950. openCompany:null,
  1951. receiveCompany:null,
  1952. zfpName:null,
  1953. zfiRate:null,
  1954. zfiSignDate:[],
  1955. zfiExpireDate:[],
  1956. zfiCollectionAccount:null,
  1957. zfiAmount:''
  1958. };
  1959. this.queryParams.startAmt = '';
  1960. this.queryParams.endAmt = '';
  1961. this.queryParamsSign.startAmt = '';
  1962. this.queryParamsSign.endAmt = '';
  1963. this.queryParamsFinancing.startAmt = '';
  1964. this.queryParamsFinancing.endAmt = '';
  1965. this.queryParamsOpening.startAmt = '';
  1966. this.queryParamsOpening.endAmt = '';
  1967. this.queryParamsFinanced.startAmt = '';
  1968. this.queryParamsFinanced.endAmt = '';
  1969. this.queryParamsInvalid.startAmt = '';
  1970. this.queryParamsInvalid.endAmt = '';
  1971. this.resetForm("form");
  1972. },
  1973. // 多选框选中数据
  1974. handleSelectionChange(selection) {
  1975. this.ids = selection.map(item => item.cifId)
  1976. this.single = selection.length!==1
  1977. this.multiple = !selection.length
  1978. },
  1979. /** 全部搜索按钮操作 */
  1980. handleQuery() {
  1981. this.queryParams.pageNum = 1;
  1982. this.getList();
  1983. },
  1984. //待签收搜索
  1985. handleQuerySign() {
  1986. this.queryParamsSign.pageNum = 1;
  1987. this.getListSign();
  1988. },
  1989. //融资中搜索
  1990. handleQueryFinancing() {
  1991. this.queryParamsFinancing.pageNum = 1;
  1992. this.getListFinancing();
  1993. },
  1994. //开立中搜索
  1995. handleQueryOpening() {
  1996. this.queryParamsOpening.pageNum = 1;
  1997. this.getListOpening();
  1998. },
  1999. //已融资搜索
  2000. handleQueryFinanced() {
  2001. this.queryParamsFinanced.pageNum = 1;
  2002. this.getListFinanced();
  2003. },
  2004. //已失效搜索
  2005. handleQueryInvalid() {
  2006. this.queryParamsInvalid.pageNum = 1;
  2007. this.getListInvalid();
  2008. },
  2009. /** 全部重置按钮操作 */
  2010. resetQuery() {
  2011. this.queryParams.startAmt = '';
  2012. this.queryParams.endAmt = '';
  2013. this.resetForm("queryForm");
  2014. this.handleQuery();
  2015. },
  2016. //待签收重置
  2017. resetQuerySign() {
  2018. this.queryParamsSign.startAmt = '';
  2019. this.queryParamsSign.endAmt = '';
  2020. this.resetForm("queryFormSign");
  2021. this.handleQuerySign();
  2022. },
  2023. //融资中重置
  2024. resetQueryFinancing() {
  2025. this.queryParamsFinancing.startAmt = '';
  2026. this.queryParamsFinancing.endAmt = '';
  2027. this.resetForm("queryFormFinancing");
  2028. this.handleQueryFinancing();
  2029. },
  2030. //开立中重置
  2031. resetQueryOpening() {
  2032. this.queryParamsOpening.startAmt = '';
  2033. this.queryParamsOpening.endAmt = '';
  2034. this.resetForm("queryFormOpening");
  2035. this.handleQueryOpening();
  2036. },
  2037. //已融资重置
  2038. resetQueryFinanced() {
  2039. this.queryParamsFinanced.startAmt = '';
  2040. this.queryParamsFinanced.endAmt = '';
  2041. this.resetForm("queryFormFinanced");
  2042. this.handleQueryFinanced();
  2043. },
  2044. //已失效重置
  2045. resetQueryInvalid() {
  2046. this.queryParamsInvalid.startAmt = '';
  2047. this.queryParamsInvalid.endAmt = '';
  2048. this.resetForm("queryFormInvalid");
  2049. this.handleQueryInvalid();
  2050. },
  2051. /** 新增按钮操作 */
  2052. handleAdd() {
  2053. this.reset();
  2054. Cookies.set("/credit/addCredit/", this.$route.fullPath);
  2055. this.$router.push({ path: "/credit/addCredit/" });
  2056. },
  2057. //详情
  2058. handleDetail(row){
  2059. const zfiId = row.zfiId || this.ids
  2060. Cookies.set("/credit/creditDetail/"+zfiId + "/", this.$route.fullPath)
  2061. this.$router.push({ path: "/credit/creditDetail/"+zfiId + "/" });
  2062. },
  2063. //修改
  2064. handleUpdate(row){
  2065. const zfiId = row.zfiId || this.ids;
  2066. //获取融信类型
  2067. const zfiCreateType = row.zfiCreateType;
  2068. //核心开立
  2069. if(zfiCreateType == '1'){
  2070. Cookies.set("/credit/creditUpdate/"+zfiId + "/", this.$route.fullPath)
  2071. this.$router.push({ path: "/credit/creditUpdate/"+zfiId + "/" });
  2072. }else if(zfiCreateType == '2'){
  2073. Cookies.set("/credit/financeOpenUpdate/"+zfiId + "/", this.$route.fullPath)
  2074. this.$router.push({ path: "/credit/financeOpenUpdate/"+zfiId + "/" });
  2075. }else if(zfiCreateType == '0'){
  2076. Cookies.set("/credit/applyCreditEdit/"+zfiId + "/", this.$route.fullPath)
  2077. this.$router.push({ path: "/credit/applyCreditEdit/"+zfiId + "/" });
  2078. }
  2079. },
  2080. //审核
  2081. handleApprove(row){
  2082. const zfiId = row.zfiId || this.ids
  2083. Cookies.set("/credit/confirmationAudit/"+zfiId + "/", this.$route.fullPath)
  2084. this.$router.push({ path: "/credit/confirmationAudit/"+zfiId + "/" });
  2085. },
  2086. //补充资料
  2087. handleAddInformation(row){
  2088. const zfiId = row.zfiId || this.ids
  2089. Cookies.set("/credit/addInformation/"+zfiId + "/", this.$route.fullPath)
  2090. this.$router.push({ path: "/credit/addInformation/"+zfiId + "/" });
  2091. },
  2092. //签收
  2093. handleSignFor(row){
  2094. const zfiId = row.zfiId || this.ids
  2095. Cookies.set("/credit/signFor/"+zfiId + "/", this.$route.fullPath)
  2096. this.$router.push({ path: "/credit/signFor/"+zfiId + "/" });
  2097. },
  2098. //去融资
  2099. handleGoFinance(row){
  2100. const zfiId = row.zfiId || this.ids
  2101. Cookies.set("/credit/goFinance/"+zfiId + "/", this.$route.fullPath)
  2102. this.$router.push({ path: "/credit/goFinance/"+zfiId + "/" });
  2103. },
  2104. //盖章
  2105. seal(row){
  2106. const zfiId = row.zfiId || this.ids
  2107. Cookies.set("/credit/creditSeal/"+zfiId + "/", this.$route.fullPath)
  2108. this.$router.push({ path: "/credit/creditSeal/"+zfiId + "/" });
  2109. },
  2110. /**核心开立审批按钮操作*/
  2111. handleExam(row){
  2112. this.$confirm("是否确认提交开立审批?", "警告", {
  2113. confirmButtonText: "确定",
  2114. cancelButtonText: "取消",
  2115. type: "warning"
  2116. }).then(function() {
  2117. return coreApproval(row);
  2118. }).then(() => {
  2119. this.getList();
  2120. this.getListSign();
  2121. this.getListFinancing();
  2122. this.getListOpening();
  2123. this.getListFinanced();
  2124. this.getListInvalid();
  2125. this.msgSuccess("提交审批成功");
  2126. }).catch(() => {
  2127. this.$message({
  2128. type: "warning",
  2129. message: "已取消提交审批",
  2130. });
  2131. });
  2132. },
  2133. //确权审批
  2134. handleConfirmationExam(row){
  2135. this.$confirm("是否确认提交确权审批?", "警告", {
  2136. confirmButtonText: "确定",
  2137. cancelButtonText: "取消",
  2138. type: "warning"
  2139. }).then(function() {
  2140. return confirmationApproval(row);
  2141. }).then(() => {
  2142. this.getList();
  2143. this.getListSign();
  2144. this.getListFinancing();
  2145. this.getListOpening();
  2146. this.getListFinanced();
  2147. this.getListInvalid();
  2148. this.msgSuccess("提交审批成功");
  2149. }).catch(() => {
  2150. this.$message({
  2151. type: "warning",
  2152. message: "已取消提交审批",
  2153. });
  2154. });
  2155. },
  2156. //融资申请提交审批按钮
  2157.     handleApproval(row) {
  2158.       const zfiNumber = row.zfiNumber;
  2159.       this.$confirm(
  2160.         '是否确认提交审批融信编号为"' + zfiNumber + '"的数据项?',
  2161.         "警告",
  2162.         {
  2163.           confirmButtonText: "确定",
  2164.           cancelButtonText: "取消",
  2165.           type: "warning"
  2166.         }
  2167.       )
  2168.         .then(function() {
  2169.           //提交审批
  2170.           return approval(row);
  2171.         })
  2172.         .then(() => {
  2173.           this.getList();
  2174. this.getListSign();
  2175. this.getListFinancing();
  2176. this.getListOpening();
  2177. this.getListFinanced();
  2178. this.getListInvalid();
  2179.           this.msgSuccess("提交审批成功");
  2180.         })
  2181.         .catch(() => {
  2182.           this.$message({
  2183.             type: "warning",
  2184.             message: "已取消提交审批"
  2185.           });
  2186.         });
  2187.     },
  2188. //融资开立提交审批按钮
  2189.     openApproval(row) {
  2190.       const zfiNumber = row.zfiNumber;
  2191.       this.$confirm(
  2192.         '是否确认提交审批融信编号为"' + zfiNumber + '"的数据项?',
  2193.         "警告",
  2194.         {
  2195.           confirmButtonText: "确定",
  2196.           cancelButtonText: "取消",
  2197.           type: "warning"
  2198.         }
  2199.       )
  2200.         .then(function() {
  2201.           //提交审批
  2202.           return openApproval(row);
  2203.         })
  2204.         .then(() => {
  2205.           this.getList();
  2206. this.getListSign();
  2207. this.getListFinancing();
  2208. this.getListOpening();
  2209. this.getListFinanced();
  2210. this.getListInvalid();
  2211.           this.msgSuccess("提交审批成功");
  2212.         })
  2213.         .catch(() => {
  2214.           this.$message({
  2215.             type: "warning",
  2216.             message: "已取消提交审批"
  2217.           });
  2218.         });
  2219.     },
  2220. //补充资料提交审批
  2221. handleApprovals(row){
  2222. const zfiNumber = row.zfiNumber;
  2223. this.$confirm('是否确认提交审批融信编号为"' + zfiNumber + '"的数据项?', "警告",{
  2224. confirmButtonText: "确定",
  2225. cancelButtonText: "取消",
  2226. type: "warning"
  2227. }).then(function() {
  2228. return informationApproval(row);
  2229. }).then(() => {
  2230. this.getList();
  2231. this.getListSign();
  2232. this.getListFinancing();
  2233. this.getListOpening();
  2234. this.getListFinanced();
  2235. this.getListInvalid();
  2236. this.msgSuccess("提交审批成功");
  2237. })
  2238. .catch(() => {
  2239. this.$message({
  2240. type: "warning",
  2241. message: "已取消提交审批",
  2242. });
  2243. });
  2244. },
  2245. //格式化类型
  2246. typeFormat(row, column) {
  2247. return this.selectDictLabel(this.typeOptions, row.zfiCreateType);
  2248. },
  2249. //格式化状态
  2250. stateFormat(row, column) {
  2251. return this.selectDictLabel(this.stateOptions, row.zfiStatus);
  2252. },
  2253. //格式化平台审批状态
  2254. platformStatusFormat(row, column) {
  2255. return this.selectDictLabel(this.platformOptions, row.zfiPlatformStatus);
  2256. },
  2257. //格式化核心审批
  2258. coreStatusFormat(row, column) {
  2259. return this.selectDictLabel(this.coreOptions, row.zfiCoreStatus);
  2260. },
  2261. //格式化融资方审批
  2262. supplierStatusFormat(row, column) {
  2263. return this.selectDictLabel(this.supplierOptions, row.zfiSupplierStatus);
  2264. },
  2265. //融资开立
  2266. finanOpening(){
  2267. this.reset();
  2268. Cookies.set("/credit/financeOpen/", this.$route.fullPath);
  2269. this.$router.push({ path: "/credit/financeOpen/" });
  2270. },
  2271. //融资申请
  2272. apply(){
  2273. this.reset();
  2274. Cookies.set("/credit/creditApply/", this.$route.fullPath);
  2275. this.$router.push({ path: "/credit/creditApply/" });
  2276. },
  2277. //拒签
  2278. handleRefuse(row){
  2279. const zfiNumber = row.zfiNumber ;
  2280. this.$confirm('是否拒签融信编号为"' + zfiNumber + '"的数据项?', "警告",{
  2281. confirmButtonText: "确定",
  2282. cancelButtonText: "取消",
  2283. type: "warning"
  2284. }).then(function() {
  2285. //拒签
  2286. return creditRefuse(row);
  2287. }).then(() => {
  2288. this.getList();
  2289. this.getListSign();
  2290. this.getListFinancing();
  2291. this.getListOpening();
  2292. this.getListFinanced();
  2293. this.getListInvalid();
  2294. this.msgSuccess("拒签成功");
  2295. })
  2296. .catch(() => {
  2297. this.$message({
  2298. type: "warning",
  2299. message: "已取消",
  2300. });
  2301. });
  2302. },
  2303. //删除
  2304. handleDelete(row){
  2305. const zfiNumber = row.zfiNumber ;
  2306. this.$confirm('是否删除融信编号为"' + zfiNumber + '"的数据项?', "警告",{
  2307. confirmButtonText: "确定",
  2308. cancelButtonText: "取消",
  2309. type: "warning"
  2310. }).then(function() {
  2311. //删除
  2312. return creditDel(row);
  2313. }).then(() => {
  2314. this.getList();
  2315. this.getListSign();
  2316. this.getListFinancing();
  2317. this.getListOpening();
  2318. this.getListFinanced();
  2319. this.getListInvalid();
  2320. this.msgSuccess("删除成功");
  2321. })
  2322. .catch(() => {
  2323. this.$message({
  2324. type: "warning",
  2325. message: "已取消",
  2326. });
  2327. });
  2328. },
  2329. //列表格式化金额
  2330. moneyFormat(row, column, cellValue) {
  2331. if(cellValue == null || cellValue== undefined || cellValue == ''){
  2332. cellValue = '0.00'
  2333. }
  2334. cellValue += '';
  2335. if (!cellValue.includes('.')) {
  2336. cellValue += '.00';
  2337. }
  2338.     return cellValue.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
  2339.         return $1 + ',';
  2340.       }).replace(/\.$/, '');
  2341. },
  2342. //input格式化金额
  2343. amtFormat(cellValue) {
  2344. if(cellValue == null || cellValue== undefined || cellValue == ''){
  2345. cellValue = '0.00'
  2346. }
  2347. cellValue += '';
  2348.       if (!cellValue.includes('.')) {
  2349. cellValue += '.00';
  2350. }
  2351. console.log(cellValue);
  2352.       return cellValue.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
  2353.         return $1 + ',';
  2354.       }).replace(/\.$/, '');
  2355. },
  2356. }
  2357. };
  2358. </script>