credit.vue 142 KB

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