credit.vue 111 KB

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