credit.vue 119 KB

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