credit.vue 101 KB

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