credit.vue 117 KB

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