recordSeal.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619
  1. <template>
  2. <div class="app-container zap-main">
  3. <el-row>
  4. <el-form
  5. ref="form"
  6. :model="form"
  7. :inline="true"
  8. :rules="rules"
  9. label-width="95px"
  10. >
  11. <div class="zap-title">申请融资信息</div>
  12. <el-row class="zap-form" style="padding-bottom: 0">
  13. <el-col :span="12">
  14. <el-form-item label="选择融信:" prop="zfrFinanceId" size="large">
  15. <el-select
  16. v-model="form.zfrFinanceId"
  17. clearable
  18. @clear="clearBoth"
  19. disabled
  20. >
  21. <el-option
  22. v-for="(item, index) in financeInfList"
  23. :key="index"
  24. :label="item.zfiNumber"
  25. :value="item.zfiId"
  26. @click.native="amount(item)"
  27. ></el-option>
  28. </el-select>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :span="12">
  32. <el-form-item
  33. label="融资收款账户:"
  34. prop="zfrCollectionAccount"
  35. size="large"
  36. label-width="101px"
  37. >
  38. <el-input
  39. v-model="form.zfrCollectionAccount"
  40. clearable
  41. placeholder="请输入融资账户"
  42. maxlength="25"
  43. readonly
  44. />
  45. </el-form-item>
  46. </el-col>
  47. </el-row>
  48. <el-row class="zap-form" style="padding-bottom: 0">
  49. <el-col :span="12">
  50. <el-form-item label="融信金额:" prop="zfiAmount" size="large">
  51. <el-input
  52. v-model="form.zfiAmount"
  53. clearable
  54. placeholder="请输入融信金额"
  55. maxlength="25"
  56. readonly
  57. >
  58. <template slot="append">元</template>
  59. </el-input>
  60. </el-form-item>
  61. </el-col>
  62. <el-col :span="12">
  63. <el-form-item label="申请融资方:" prop="companyName" size="large">
  64. <el-input
  65. v-model="form.companyName"
  66. clearable
  67. placeholder="请输入申请融资方"
  68. maxlength="25"
  69. readonly
  70. />
  71. </el-form-item>
  72. </el-col>
  73. </el-row>
  74. <el-row class="zap-form" style="padding-bottom: 0">
  75. <el-col :span="12">
  76. <el-form-item label="融资金额:" prop="zfrAmount" size="large">
  77. <el-input
  78. v-model="form.zfrAmount"
  79. clearable
  80. placeholder="请输入融资金额"
  81. maxlength="25"
  82. readonly
  83. >
  84. <template slot="append">元</template>
  85. </el-input>
  86. </el-form-item>
  87. </el-col>
  88. <el-col :span="12">
  89. <el-form-item label="融资利率:" prop="zfrRate" size="large">
  90. <el-input
  91. v-model="form.zfrRate"
  92. clearable
  93. placeholder="请输入融资利率"
  94. maxlength="25"
  95. readonly
  96. >
  97. <template slot="append">%</template>
  98. </el-input>
  99. </el-form-item>
  100. </el-col>
  101. </el-row>
  102. <el-row class="zap-form" style="padding-bottom: 0">
  103. <el-col :span="12">
  104. <el-form-item
  105. label="承诺还款日期:"
  106. prop="zfrRepaymentDate"
  107. size="large"
  108. label-width="101px"
  109. >
  110. <el-input
  111. v-model="form.zfrRepaymentDate"
  112. clearable
  113. placeholder="请输入承诺还款日期"
  114. maxlength="25"
  115. readonly
  116. />
  117. </el-form-item>
  118. </el-col>
  119. <el-col :span="12">
  120. <el-form-item label="服务费率:" prop="zfpcrChargeRate" size="large">
  121. <el-input
  122. v-model="form.zfpcrChargeRate"
  123. clearable
  124. placeholder="请输入服务费率"
  125. maxlength="25"
  126. readonly
  127. >
  128. <template slot="append">%</template>
  129. </el-input>
  130. </el-form-item>
  131. </el-col>
  132. </el-row>
  133. <el-row class="zap-form" style="padding-bottom: 0">
  134. <el-col :span="12">
  135. <el-form-item
  136. label="预计融资成本:"
  137. prop="cost"
  138. size="large"
  139. label-width="101px"
  140. >
  141. <el-input
  142. v-model="form.cost"
  143. clearable
  144. placeholder="请输入预计融资成本"
  145. maxlength="25"
  146. readonly
  147. >
  148. <template slot="append">元</template>
  149. </el-input>
  150. </el-form-item>
  151. </el-col>
  152. <el-col :span="12">
  153. <el-form-item
  154. label="预计融资期限:"
  155. prop="term"
  156. size="large"
  157. label-width="101px"
  158. >
  159. <el-input
  160. v-model="form.term"
  161. clearable
  162. placeholder="请输入预计融资期限"
  163. maxlength="25"
  164. readonly
  165. >
  166. <template slot="append">天</template>
  167. </el-input>
  168. </el-form-item>
  169. </el-col>
  170. </el-row>
  171. <el-row class="zap-form" style="padding-bottom: 0">
  172. <el-col :span="12">
  173. <el-form-item
  174. label="预计净融资额:"
  175. prop="amount"
  176. size="large"
  177. label-width="101px"
  178. >
  179. <el-input
  180. v-model="form.amount"
  181. clearable
  182. placeholder="请输入预计净融资额"
  183. maxlength="25"
  184. readonly
  185. >
  186. <template slot="append">元</template>
  187. </el-input>
  188. </el-form-item>
  189. </el-col>
  190. </el-row>
  191. <div class="contain">
  192. <p>说明:</p>
  193. <p>1. 因银行结算原因,资金到账可能会在申请日期后2-5工作日;</p>
  194. <p>
  195. 2.
  196. 申请融资时,预计融资成本、预计融资期限、预计净融资额,由申请日期单日开始计算;准确数值以银行实际放款日期为准;
  197. </p>
  198. <p>
  199. 3.
  200. 因填写融资收款账户错误,或其他原因导致银行无法正常放款,款项将汇入备用收款账户,可在电子账户管理查看;
  201. </p>
  202. <p>4. 服务费缴纳与退还要求,可详细阅读《融信产品使用协议》</p>
  203. </div>
  204. <div class="zap-title">融信信息</div>
  205. <el-row class="zap-form">
  206. <el-col>
  207. <span style="font-size: 14px; color: #333333">融信凭证</span>
  208. </el-col>
  209. <table
  210. class="gridtable"
  211. style="width: 80%; text-align: center"
  212. align="center"
  213. >
  214. <tr>
  215. <td rowspan="4">开立方</td>
  216. <td>全称</td>
  217. <td>{{ openName }}</td>
  218. <td rowspan="4">接收方</td>
  219. <td>全称</td>
  220. <td>{{ receiveName }}</td>
  221. </tr>
  222. <tr>
  223. <td>社会统一码</td>
  224. <td>{{ openCode }}</td>
  225. <td>社会统一码</td>
  226. <td>{{ receiverCode }}</td>
  227. </tr>
  228. <tr>
  229. <td>开户银行</td>
  230. <td>{{ openBank }}</td>
  231. <td>开户银行</td>
  232. <td>{{ receiverBank }}</td>
  233. </tr>
  234. <tr>
  235. <td>账号</td>
  236. <td>{{ openAccount }}</td>
  237. <td>账号</td>
  238. <td>{{ receiverAccount }}</td>
  239. </tr>
  240. <tr>
  241. <td colspan="2">粮信金额</td>
  242. <td colspan="4">
  243. 人民币(大写):{{ issuedAmount }}<br />人民币(小写)¥{{
  244. form.zfiAmount
  245. }}
  246. </td>
  247. </tr>
  248. <tr>
  249. <td colspan="2">起止日期</td>
  250. <td colspan="4">{{ stopDate }}</td>
  251. </tr>
  252. </table>
  253. </el-row>
  254. <el-row class="zap-form">
  255. <el-row type="flex" align="middle" justify="end">
  256. <el-col>
  257. <span style="font-size: 14px; color: #333333">资产信息</span>
  258. </el-col>
  259. <el-col class="zap-margin-top;">
  260. <el-row type="flex" align="middle" justify="end">
  261. <el-form-item label="金额大写:" class="zap-margin-clear">
  262. <span>{{ smallToBig(allAmount()) }}</span>
  263. </el-form-item>
  264. <el-form-item label="合计金额:" class="zap-margin-clear">
  265. <span>{{ allAmount() }}</span>
  266. </el-form-item>
  267. </el-row>
  268. </el-col>
  269. </el-row>
  270. <el-row class="zap-margin-top">
  271. <el-table :data="billInfList">
  272. <el-table-column
  273. label="序号"
  274. type="index"
  275. width="50"
  276. align="center"
  277. >
  278. <template slot-scope="scope">
  279. <span>{{
  280. (queryParams.pageNum - 1) * queryParams.pageSize +
  281. scope.$index +
  282. 1
  283. }}</span>
  284. </template>
  285. </el-table-column>
  286. <el-table-column label="编号" align="center" prop="zbiNumber" />
  287. <el-table-column label="账款名称" align="center" prop="zbiName" />
  288. <el-table-column label="应收企业" align="center" prop="payee" />
  289. <el-table-column label="应付企业" align="center" prop="payer" />
  290. <el-table-column
  291. label="还款时间"
  292. align="center"
  293. prop="zbiPayDate"
  294. />
  295. <el-table-column label="金额" align="center" prop="zbiAmount" />
  296. <el-table-column
  297. label="操作"
  298. align="center"
  299. class-name="small-padding fixed-width"
  300. width="250"
  301. >
  302. <template slot-scope="scope">
  303. <el-button
  304. size="mini"
  305. type="text"
  306. icon="el-icon-view"
  307. @click="handleDetail(scope.$index, billInfList)"
  308. >详情</el-button
  309. >
  310. </template>
  311. </el-table-column>
  312. </el-table>
  313. </el-row>
  314. </el-row>
  315. </el-form>
  316. <!-- 签署合同 -->
  317. <el-row class="zap-margin-top zap-form">
  318. <div class="zap-title">签署合同</div>
  319. <el-table :data="creditSealList" style="width: 100%">
  320. <el-table-column
  321. label="文件名称"
  322. align="center"
  323. prop="pfiFileName"
  324. show-overflow-tooltip
  325. >
  326. <template slot-scope="scope">
  327. <img
  328. style="width: 30px; height: 30px"
  329. src="../../../assets/images/pdf.png"
  330. />
  331. <span>{{ scope.row.pfiFileName }} </span>
  332. </template>
  333. </el-table-column>
  334. <el-table-column
  335. label="操作"
  336. align="center"
  337. class-name="small-padding fixed-width"
  338. width="300"
  339. fixed="right"
  340. >
  341. <template slot-scope="scope">
  342. <el-button
  343. size="mini"
  344. type="text"
  345. icon="el-icon-view"
  346. @click="handleDownload(scope.row)"
  347. >下载</el-button
  348. >
  349. <el-button
  350. size="mini"
  351. type="text"
  352. icon="el-icon-view"
  353. @click="handlePreview(scope.row)"
  354. >预览</el-button
  355. >
  356. </template>
  357. </el-table-column>
  358. </el-table>
  359. </el-row>
  360. <!-- 发票附件 -->
  361. <!-- <el-row class="zap-margin-top zap-form">
  362. <div class="zap-title">发票附件</div>
  363. <el-table :data="invoiceFileList" stripe="" style="width: 100%">
  364. <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
  365. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right">
  366. <template slot-scope="scope">
  367. <el-button size="mini" type="text" icon="el-icon-view" @click="handlePreview(scope.row)">预览</el-button>
  368. </template>
  369. </el-table-column>
  370. </el-table>
  371. </el-row> -->
  372. <!-- 合同附件 -->
  373. <!-- <el-row class="zap-margin-top zap-form">
  374. <div class="zap-title">合同附件</div>
  375. <el-table :data="contractFileList" stripe="" style="width: 100%">
  376. <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
  377. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right">
  378. <template slot-scope="scope">
  379. <el-button size="mini" type="text" icon="el-icon-view" @click="handlePreview(scope.row)">预览</el-button>
  380. </template>
  381. </el-table-column>
  382. </el-table>
  383. </el-row> -->
  384. <!-- 其他附件 -->
  385. <!-- <el-row class="zap-margin-top zap-form">
  386. <div class="zap-title">其他附件</div>
  387. <el-table :data="otherFileList" stripe="" style="width: 100%">
  388. <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
  389. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right">
  390. <template slot-scope="scope">
  391. <el-button size="mini" type="text" icon="el-icon-view" @click="handlePreview(scope.row)">预览</el-button>
  392. </template>
  393. </el-table-column>
  394. </el-table>
  395. </el-row> -->
  396. <el-row type="flex" align="middle" justify="center" style="height: 77px">
  397. <!-- <el-button type="success" @click="cancelFtp">作废</el-button> -->
  398. <el-button type="primary" @click="selectPayment">合同签署</el-button>
  399. <el-button type="primary" plain="" @click="cancel">取消</el-button>
  400. <!-- <el-button @click="cancel">取 消</el-button> -->
  401. </el-row>
  402. </el-row>
  403. <!-- 附件详情 -->
  404. <el-dialog
  405. title="详情"
  406. :visible.sync="openDetailBill"
  407. width="1120px"
  408. append-to-body
  409. >
  410. <detail-bill :zbiId="this.zbiId" v-if="openDetailBill"></detail-bill>
  411. </el-dialog>
  412. <!--预览-->
  413. <el-dialog :visible.sync="openFile" width="1000px" append-to-body>
  414. <img :src="wordUrl" v-if="show" width="700px" height="500px" />
  415. <iframe
  416. :src="wordUrl"
  417. width="800px"
  418. height="600px"
  419. frameborder="1"
  420. v-if="heid"
  421. />
  422. </el-dialog>
  423. <!-- 合同预览 -->
  424. <el-dialog title="合同预览" :visible.sync="pdfShowDialog" width="60%" append-to-body>
  425. <pdf-show
  426. :pdfFileList="pdfFileList"
  427. :zfiId="this.form.zfiId"
  428. :parent="parent"
  429. ></pdf-show>
  430. <span slot="footer" class="dialog-footer" style="float: right">
  431. <el-button type="primary" @click="selectType">签署</el-button>
  432. <el-button type="primary" plain="" @click="pdfShowDialog = false"
  433. >取消</el-button
  434. >
  435. </span>
  436. </el-dialog>
  437. <!--选择签署意愿类型-->
  438. <el-dialog
  439. title="签署意愿"
  440. :visible.sync="confirmIsShow"
  441. width="600px"
  442. append-to-body
  443. :before-close="cancelUpdate"
  444. center
  445. >
  446. <el-form
  447. ref="updateForm"
  448. :disabled="false"
  449. :model="updateForm"
  450. v-if="confirmIsShow"
  451. label-width="150px"
  452. class="demo-form-inline"
  453. :inline="true"
  454. >
  455. <el-radio-group v-model="updateForm.radio">
  456. <el-radio label="01">人脸</el-radio>
  457. <el-radio label="02">短信</el-radio>
  458. </el-radio-group>
  459. </el-form>
  460. <div slot="footer" class="dialog-footer">
  461. <el-button type="primary" @click="confirmSelect">确 定</el-button>
  462. <el-button @click="cancelUpdate">取 消</el-button>
  463. </div>
  464. </el-dialog>
  465. <!--盖章短信-->
  466. <el-dialog
  467. title="短信验证"
  468. :visible.sync="messageIsShow"
  469. width="600px"
  470. append-to-body
  471. :before-close="cancelMessage"
  472. center
  473. >
  474. <el-form
  475. ref="messageForm"
  476. :disabled="false"
  477. :model="messageForm"
  478. v-if="messageIsShow"
  479. label-width="150px"
  480. class="demo-form-inline"
  481. :inline="true"
  482. @submit.native.prevent
  483. >
  484. <el-form-item label="验证码" prop="validCode">
  485. <el-input
  486. v-model="messageForm.validCode"
  487. style="width: 200px"
  488. maxlength="6"
  489. />
  490. </el-form-item>
  491. <el-form-item>
  492. <el-button :disabled="!showCode" type="success" @click="send">
  493. 点击获取验证码
  494. <span v-show="!showCode" class="count">{{ count }} s</span>
  495. </el-button>
  496. </el-form-item>
  497. </el-form>
  498. <div slot="footer" class="dialog-footer">
  499. <el-button type="primary" @click="checkCode">确定</el-button>
  500. <el-button @click="cancelMessage">取 消</el-button>
  501. </div>
  502. </el-dialog>
  503. <!--授权编号激活短信-->
  504. <el-dialog
  505. :visible.sync="messageIfShow"
  506. width="600px"
  507. append-to-body
  508. :before-close="cancelMessages"
  509. center
  510. >
  511. <el-divider content-position="left">cfca签章授权编号激活</el-divider>
  512. <el-form
  513. ref="messageForm"
  514. :disabled="false"
  515. :model="messagesForm"
  516. v-if="messageIfShow"
  517. label-width="150px"
  518. class="demo-form-inline"
  519. :inline="true"
  520. @submit.native.prevent
  521. >
  522. <el-form-item label="验证码" prop="validCode">
  523. <el-input
  524. v-model="messagesForm.validCode"
  525. style="width: 200px"
  526. maxlength="6"
  527. />
  528. </el-form-item>
  529. <el-form-item>
  530. <el-button :disabled="!showCodes" type="success" @click="proSend">
  531. 点击获取验证码
  532. <span v-show="!showCodes" class="count">{{ countCode }} s</span>
  533. </el-button>
  534. </el-form-item>
  535. </el-form>
  536. <div slot="footer" class="dialog-footer">
  537. <el-button type="primary" @click="checkProCode">确定</el-button>
  538. <el-button @click="cancelMessages">取 消</el-button>
  539. </div>
  540. </el-dialog>
  541. <!--人脸二维码-->
  542. <el-dialog
  543. title="人脸验证"
  544. :visible.sync="faceIsShow"
  545. width="500px"
  546. append-to-body
  547. :before-close="cancelFace"
  548. center
  549. >
  550. <img
  551. :src="'data:image/jpeg;base64,' + this.fileUrl"
  552. style="overflow: auto; width: 100%; height: 100%"
  553. />
  554. </el-dialog>
  555. </div>
  556. </template>
  557. <script>
  558. import {
  559. addRecord,
  560. listBillInf,
  561. listAccInf,
  562. getContractFile,
  563. getRecord,
  564. contractSigning,
  565. updateChargeStatus,
  566. listChargeStatus,
  567. cancelContract,
  568. } from "@/api/service/financeRecord/record";
  569. import { listFinanceInf } from "@/api/common/financeInf";
  570. import { getFile } from "@/api/service/credit/credit";
  571. import { getToken } from "@/utils/auth";
  572. import { getUserProfile } from "@/api/system/user";
  573. import { getCreditDetail } from "@/api/service/credit/credit";
  574. import { getCreditSealFile } from "@/api/service/credit/creditHandle";
  575. import DetailBill from "@/views/service/credit/billDetail";
  576. import { isOpenApproval } from "@/api/service/credit/approvalRelatedCredit";
  577. import { listCompanyHandler } from "@/api/common/companyHandler";
  578. import {
  579. sendMessage,
  580. checkCode,
  581. faceAuth,
  582. checkFaceAuth,
  583. } from "@/api/service/credit/message";
  584. import {
  585. cfcaProjectNo,
  586. projectSendMessage,
  587. checkProCode,
  588. } from "@/api/service/credit/cfcaProject";
  589. import { balance, transfer } from "@/api/bank/bankInterface";
  590. import pdfShow from "@/views/service/financeRecord/pdfShow";
  591. export default {
  592. name: "financeRecord",
  593. components: { DetailBill, pdfShow },
  594. data() {
  595. return {
  596. //往来账款id
  597. zbiId: "",
  598. //融资账户是够编辑
  599. onlyRead: false,
  600. // 遮罩层
  601. loading: true,
  602. // 选中数组
  603. ids: [],
  604. // 非单个禁用
  605. single: true,
  606. // 非多个禁用
  607. multiple: true,
  608. // 显示搜索条件
  609. showSearch: true,
  610. // 总条数
  611. total: 0,
  612. // 全部融资记录表格数据
  613. recordList: [],
  614. //融信编号数据
  615. financeInfList: [],
  616. //应收账款
  617. billInfList: [],
  618. //合同附件
  619. contractFileList: [],
  620. //发票附件
  621. invoiceFileList: [],
  622. //其他文件
  623. otherFileList: [],
  624. //盖章文件
  625. creditSealList: [],
  626. //开立方
  627. openName: "",
  628. //开立社会码
  629. openCode: "",
  630. //开立银行
  631. openBank: "",
  632. //开立账户
  633. openAccount: "",
  634. //接收方
  635. receiveName: "",
  636. //接收方社会统一码
  637. receiverCode: "",
  638. //接收方银行
  639. receiverBank: "",
  640. //接收方账户
  641. receiverAccount: "",
  642. //起止日期
  643. stopDate: "",
  644. //签发金额大写
  645. issuedAmount: "零元整",
  646. // 弹出层标题
  647. title: "",
  648. // 是否显示弹出层
  649. open: false,
  650. openDetailBill: false,
  651. // 查询参数
  652. queryParams: {
  653. pageNum: 1,
  654. pageSize: 10,
  655. zfrFinanceId: null,
  656. zfrNumber: null,
  657. zfrAmount: null,
  658. zfrRate: null,
  659. zfrHandler: null,
  660. zfrRepaymentDate: null,
  661. zfrApplyDate: null,
  662. zfrLoanDate: null,
  663. zfrApplyAmount: null,
  664. zfrApplyType: null,
  665. zfrStatus: null,
  666. zfrApproveStt: null,
  667. zfpcrLoanType: null,
  668. zfiProductId: null,
  669. },
  670. queryParamsDown: {
  671. pfiFileUrl: null,
  672. },
  673. // 表单参数
  674. form: {},
  675. forms: {},
  676. // 表单校验
  677. rules: {
  678. zfrFinanceId: [
  679. {
  680. required: true,
  681. message: "融信编号不能为空",
  682. trigger: "blur",
  683. },
  684. ],
  685. zfrAmount: [
  686. {
  687. required: true,
  688. message: "融资金额不能为空",
  689. trigger: "blur",
  690. },
  691. ],
  692. },
  693. openFile: false,
  694. wordUrl: "",
  695. heid: false,
  696. show: false,
  697. //盖章预览
  698. parent: this,
  699. pdfShowDialog: false,
  700. pdfFileList: [],
  701. confirmIsShow: false,
  702. messageIsShow: false,
  703. messageIfShow: false,
  704. faceIsShow: false,
  705. fileUrl: "",
  706. //意愿
  707. updateForm: {},
  708. messageForm: {},
  709. messagesForm: {},
  710. count: "",
  711. timer: null,
  712. //授权编号激活短信验证码倒计时
  713. //项目编号
  714. projectCode: "",
  715. showCode: true,
  716. showCodes: true,
  717. countCode: "",
  718. timerCode: null,
  719. zfrId: null,
  720. };
  721. },
  722. created() {
  723. this.zfrId = this.$route.params && this.$route.params.zfrId;
  724. getRecord(this.zfrId).then((response) => {
  725. this.zcFinanceInf = response.data.zcFinanceInf;
  726. this.needPay = response.data.needPay;
  727. //意愿类型
  728. this.zfpAuthType = response.data.zfpAuthType;
  729. const zfiId = response.data.zcFinanceInf.zfiId;
  730. this.$set(this.form, "zfrFinanceId", zfiId);
  731. this.$set(this.form,"zfrCollectionAccount",response.data.zfrCollectionAccount);
  732. this.getFinanceInf(zfiId);
  733. });
  734. this.getUserProfile();
  735. },
  736. methods: {
  737. /** 查询融信编号 */
  738. getFinanceInf(zfrFinanceId) {
  739. this.loading = true;
  740. listFinanceInf(zfrFinanceId).then((response) => {
  741. if (response.data) {
  742. this.financeInfList = response.data;
  743. for (let item of this.financeInfList) {
  744. if (item.zfiId == zfrFinanceId) {
  745. this.amount(item);
  746. }
  747. }
  748. this.loading = false;
  749. }
  750. });
  751. },
  752. getUserProfile() {
  753. getUserProfile().then((response) => {
  754. if (response.company) {
  755. this.$set(this.form, "companyName", response.company.scyName);
  756. }
  757. });
  758. },
  759. //获取盖章文件
  760. getCreditSealFile() {
  761. getCreditSealFile(this.forms).then((response) => {
  762. if (response.data.list) {
  763. this.creditSealList = response.data.list;
  764. }
  765. });
  766. },
  767. // 取消按钮
  768. cancel() {
  769. this.$store.dispatch("tagsView/delView", this.$route);
  770. this.$router.go(-1);
  771. },
  772. // 表单重置
  773. reset() {
  774. this.form = {
  775. zfrId: null,
  776. zfrFinanceId: null,
  777. zfrNumber: null,
  778. zfrAmount: null,
  779. zfrRate: null,
  780. zfrHandler: null,
  781. zfrRepaymentDate: null,
  782. zfrApplyDate: null,
  783. zfrLoanDate: null,
  784. zfrApplyAmount: null,
  785. zfrApplyType: null,
  786. zfrStatus: "00",
  787. zfrApproveStt: null,
  788. zfrProfitSpare1: null,
  789. zfrProfitSpare2: null,
  790. zfrProfitSpare3: null,
  791. zfrProfitSpare4: null,
  792. zfrProfitSpare5: null,
  793. zfrProfitSpare6: null,
  794. zfrProfitSpare7: null,
  795. zfrProfitSpare8: null,
  796. zfrProfitSpare9: null,
  797. createBy: null,
  798. createTime: null,
  799. updateBy: null,
  800. updateTime: null,
  801. };
  802. this.resetForm("form");
  803. },
  804. /** 全部搜索按钮操作 */
  805. handleQuery() {
  806. this.queryParams.pageNum = 1;
  807. this.getList();
  808. },
  809. /** 全部重置按钮操作 */
  810. resetQuery() {
  811. this.resetForm("queryForm");
  812. this.handleQuery();
  813. },
  814. //全部 多选框选中数据
  815. handleSelectionChange(selection) {
  816. this.ids = selection.map((item) => item.zfrId);
  817. this.single = selection.length !== 1;
  818. this.multiple = !selection.length;
  819. },
  820. /* 融信编号赋值融资金额 */
  821. amount(item) {
  822. this.$set(this.form, "zfrAmount", item.zfiAmount);
  823. this.$set(this.form, "zfiAmount", item.zfiAmount);
  824. this.$set(this.form, "zfrRepaymentDate", item.zfiExpireDate);
  825. this.$set(this.form, "zfrRate", item.zfpcrRate);
  826. this.$set(this.form, "zfpcrLoanType", item.zfpcrLoanType);
  827. this.$set(this.form, "zfiProductId", item.zfiProductId);
  828. this.$set(this.form, "zfpcrChargeRate", item.zfpcrChargeRate);
  829. this.$set(this.form, "cost", item.cost);
  830. this.$set(this.form, "term", item.term);
  831. this.$set(this.form, "amount", item.amount);
  832. if (item.zfiId) {
  833. this.loading = true;
  834. listBillInf(item.zfiId)
  835. .then((response) => {
  836. this.billInfList = response.data;
  837. this.loading = false;
  838. })
  839. .then(() => {
  840. var queryParamsFile = {};
  841. queryParamsFile.ticketList = this.billInfList;
  842. getFile(queryParamsFile).then((response) => {
  843. if (response.data) {
  844. //获取发票文件
  845. this.invoiceFileList = response.data.invoiceFileList;
  846. //获取合同文件
  847. this.contractFileList = response.data.contractFileList;
  848. //获取其他文件
  849. this.otherFileList = response.data.otherFileList;
  850. }
  851. });
  852. if (item.zfpcrLoanType == "0") {
  853. listAccInf(item.zfiProductId).then((response) => {
  854. this.$set(this.form, "zfrCollectionAccount", response.msg);
  855. this.onlyRead = true;
  856. });
  857. }
  858. });
  859. getCreditDetail(item.zfiId).then((response) => {
  860. if (response.data) {
  861. this.forms = response.data.financeInf;
  862. //签发金额大写
  863. this.issuedAmount = this.smallToBig(this.forms.zfiAmount);
  864. //给表格赋值
  865. this.openName = response.data.openName;
  866. this.openCode = response.data.openCode;
  867. this.openBank = response.data.openBank;
  868. this.openAccount = response.data.openAccount;
  869. this.receiveName = response.data.receiveName;
  870. this.receiverCode = response.data.receiverCode;
  871. this.receiverBank = response.data.receiverBank;
  872. this.receiverAccount = response.data.receiverAccount;
  873. this.stopDate = response.data.stopDate;
  874. this.zfiRate = response.data.financeInf.zfiRate;
  875. }
  876. //盖章合同
  877. this.getCreditSealFile();
  878. });
  879. }
  880. },
  881. //详情按钮
  882. handleDetail(index, rows) {
  883. this.zbiId = rows[index].zbiId;
  884. this.openDetailBill = true;
  885. },
  886. /** 提交按钮 */
  887. submitForm() {
  888. this.$refs["form"].validate((valid) => {
  889. if (valid) {
  890. const loading = this.$loading({
  891. lock: true,
  892. text: "Loading",
  893. spinner: "el-icon-loading",
  894. background: "rgba(0, 0, 0, 0.7)",
  895. });
  896. addRecord(this.form)
  897. .then((response) => {
  898. loading.close();
  899. this.zfrId = response.data.zfrId;
  900. this.isOpenApproval();
  901. // this.msgSuccess("融资申请成功");
  902. // this.$store.dispatch("tagsView/delView", this.$route);
  903. // this.$router.go(-1);
  904. })
  905. .catch((response) => {
  906. loading.close();
  907. });
  908. }
  909. });
  910. },
  911. /* 清空 */
  912. clearBoth() {
  913. this.form.zfrAmount = "";
  914. this.form, (zfrRepaymentDate = "");
  915. this.form.zfrRate = "";
  916. this.form.zfpcrLoanType = "";
  917. this.billInfList = [];
  918. this.contractFileList = [];
  919. this.invoiceFileList = [];
  920. this.otherFileList = [];
  921. },
  922. //文件下载
  923. handleDownload(row) {
  924. debugger;
  925. const pfiFileUrl = row.pfiFileUrl;
  926. if (pfiFileUrl != null && pfiFileUrl != "") {
  927. const pfiFileName = row.pfiFileName;
  928. this.queryParamsDown.pfiFileUrl = pfiFileUrl;
  929. this.download(
  930. "sc-service/creditLine/jpgAuthorization",
  931. {
  932. ...this.queryParamsDown,
  933. },
  934. pfiFileName
  935. );
  936. // window.open(pfiUrl + "/" + getToken());
  937. } else {
  938. this.$message({
  939. message: "该附件不存在!",
  940. type: "warning",
  941. });
  942. return;
  943. }
  944. },
  945. //预览
  946. handlePreview(row) {
  947. const pfiUrl = row.pfiUrl;
  948. const pfiFileName = row.pfiFileName;
  949. if (row.pfiUrl) {
  950. console.log(pfiFileName.substr(-3));
  951. if (pfiFileName.substr(-3) == "pdf") {
  952. this.wordUrl = pfiUrl + "/" + getToken();
  953. this.show = false;
  954. this.heid = true;
  955. } else if (
  956. pfiFileName.substr(-3) == "jpg" ||
  957. pfiFileName.substr(-3) == "png" ||
  958. pfiFileName.substr(-3) == "JPG" ||
  959. pfiFileName.substr(-3) == "PNG" ||
  960. pfiFileName.substr(-4) == "jpeg" ||
  961. pfiFileName.substr(-3) == "JPEG"
  962. ) {
  963. this.wordUrl = pfiUrl + "/" + getToken();
  964. this.show = true;
  965. this.heid = false;
  966. console.log("====>", this.wordUrl);
  967. } else if (
  968. pfiFileName.substr(-3) == "doc" ||
  969. pfiFileName.substr(-3) == "DOC" ||
  970. pfiFileName.substr(-4) == "docx" ||
  971. pfiFileName.substr(-3) == "DOCX"
  972. ) {
  973. this.wordUrl =
  974. "https://view.officeapps.live.com/op/view.aspx?src=" +
  975. pfiUrl +
  976. "/" +
  977. getToken() +
  978. "/" +
  979. pfiFileName;
  980. this.show = false;
  981. this.heid = true;
  982. console.log("====>", this.wordUrl);
  983. } else {
  984. this.$message({
  985. message: "暂不支持该类型文件预览",
  986. type: "warning",
  987. });
  988. return;
  989. }
  990. }
  991. this.openFile = true;
  992. },
  993. //应收账款合计
  994. allAmount() {
  995. var strarr = [0.0];
  996. for (let i in this.billInfList) {
  997. strarr.push(this.billInfList[i]["zbiAmount"]);
  998. }
  999. return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
  1000. },
  1001. /* // 将数字金额转换为大写金额 */
  1002. smallToBig(money) {
  1003. // 将数字金额转换为大写金额
  1004. var cnNums = new Array(
  1005. "零",
  1006. "壹",
  1007. "贰",
  1008. "叁",
  1009. "肆",
  1010. "伍",
  1011. "陆",
  1012. "柒",
  1013. "捌",
  1014. "玖"
  1015. ); //汉字的数字
  1016. var cnIntRadice = new Array("", "拾", "佰", "仟"); //基本单位
  1017. var cnIntUnits = new Array("", "万", "亿", "兆"); //对应整数部分扩展单位
  1018. var cnDecUnits = new Array("角", "分", "毫", "厘"); //对应小数部分单位
  1019. var cnInteger = "整"; //整数金额时后面跟的字符
  1020. var cnIntLast = "元"; //整数完以后的单位
  1021. //最大处理的数字
  1022. var maxNum = 999999999999999.9999;
  1023. var integerNum; //金额整数部分
  1024. var decimalNum; //金额小数部分
  1025. //输出的中文金额字符串
  1026. var chineseStr = "";
  1027. var parts; //分离金额后用的数组,预定义
  1028. if (money == "" || money == null || money == undefined) {
  1029. return "零元零角零分";
  1030. }
  1031. money = parseFloat(money);
  1032. if (money >= maxNum) {
  1033. //超出最大处理数字
  1034. return "超出最大处理数字";
  1035. }
  1036. if (money == 0) {
  1037. chineseStr = cnNums[0] + cnIntLast + cnInteger;
  1038. return chineseStr;
  1039. }
  1040. //四舍五入保留两位小数,转换为字符串
  1041. money = Math.round(money * 100).toString();
  1042. integerNum = money.substr(0, money.length - 2);
  1043. decimalNum = money.substr(money.length - 2);
  1044. //获取整型部分转换
  1045. if (parseInt(integerNum, 10) > 0) {
  1046. var zeroCount = 0;
  1047. var IntLen = integerNum.length;
  1048. for (var i = 0; i < IntLen; i++) {
  1049. var n = integerNum.substr(i, 1);
  1050. var p = IntLen - i - 1;
  1051. var q = p / 4;
  1052. var m = p % 4;
  1053. if (n == "0") {
  1054. zeroCount++;
  1055. } else {
  1056. if (zeroCount > 0) {
  1057. chineseStr += cnNums[0];
  1058. }
  1059. //归零
  1060. zeroCount = 0;
  1061. chineseStr += cnNums[parseInt(n)] + cnIntRadice[m];
  1062. }
  1063. if (m == 0 && zeroCount < 4) {
  1064. chineseStr += cnIntUnits[q];
  1065. }
  1066. }
  1067. chineseStr += cnIntLast;
  1068. }
  1069. //小数部分
  1070. if (decimalNum != "") {
  1071. var decLen = decimalNum.length;
  1072. for (var i = 0; i < decLen; i++) {
  1073. var n = decimalNum.substr(i, 1);
  1074. if (n != "0") {
  1075. chineseStr += cnNums[Number(n)] + cnDecUnits[i];
  1076. }
  1077. }
  1078. }
  1079. if (chineseStr == "") {
  1080. chineseStr += cnNums[0] + cnIntLast + cnInteger;
  1081. } else if (decimalNum == "" || /^0*$/.test(decimalNum)) {
  1082. chineseStr += cnInteger;
  1083. }
  1084. return chineseStr;
  1085. },
  1086. /** 导出按钮操作 */
  1087. handleExport() {
  1088. this.download(
  1089. "sc-service/record/export",
  1090. {
  1091. ...this.queryParams,
  1092. },
  1093. `sc-service_record.xlsx`
  1094. );
  1095. },
  1096. // 取消按钮
  1097. cancelFtp() {
  1098. let form = {};
  1099. form.zfrId = this.zfrId;
  1100. cancelContract(form).then((response) => {
  1101. this.cancel();
  1102. });
  1103. this.pdfShowDialog = false;
  1104. },
  1105. //查询有无融资内部审批
  1106. isOpenApproval() {
  1107. var confirmParam = {};
  1108. confirmParam.menuId = "1000000006";
  1109. isOpenApproval(confirmParam).then((response) => {
  1110. var result = response.data.isOpen;
  1111. //有融资内部审批
  1112. if (true == result) {
  1113. this.msgSuccess("已提交内部审批,请内部审批通过后签署融资协议");
  1114. this.cancel();
  1115. } else {
  1116. //无融资内部审批,显示融资合同预览页面
  1117. // this.zfrId = '2c83a92dc238468aabd9cd3261748ae0'
  1118. getRecord(this.zfrId).then((response) => {
  1119. this.zcFinanceInf = response.data.zcFinanceInf;
  1120. this.needPay = response.data.needPay;
  1121. //意愿类型
  1122. this.zfpAuthType = response.data.zfpAuthType;
  1123. this.selectPayment();
  1124. });
  1125. }
  1126. });
  1127. },
  1128. //取消选择意愿
  1129. cancelUpdate() {
  1130. this.confirmIsShow = false;
  1131. this.resetUpdate();
  1132. },
  1133. //关闭盖章短信
  1134. cancelMessage() {
  1135. this.messageIsShow = false;
  1136. this.resetMessage();
  1137. },
  1138. //关闭授权编号激活短信
  1139. cancelMessages() {
  1140. this.messageIfShow = false;
  1141. this.resetMessages();
  1142. },
  1143. //关闭二维码
  1144. cancelFace() {
  1145. this.faceIsShow = false;
  1146. },
  1147. closePdfShow() {
  1148. this.pdfShowDialog = false;
  1149. },
  1150. resetUpdate() {
  1151. this.updateForm = {
  1152. radio: "",
  1153. };
  1154. //意愿类型还原为全部
  1155. this.zfpAuthType = "00";
  1156. this.resetForm("updateForm");
  1157. },
  1158. resetMessage() {
  1159. this.messageForm = {
  1160. validCode: "",
  1161. };
  1162. this.resetForm("messageForm");
  1163. },
  1164. resetMessages() {
  1165. this.messagesForm = {
  1166. validCode: "",
  1167. };
  1168. this.resetForm("messagesForm");
  1169. },
  1170. //获取合同文件
  1171. getContractFile() {
  1172. const loading = this.$loading({
  1173. lock: true,
  1174. text: "Loading",
  1175. background: "rgba(0, 0, 0,0)",
  1176. });
  1177. getContractFile(this.zcFinanceInf)
  1178. .then((response) => {
  1179. loading.close();
  1180. if (response.data.list) {
  1181. this.pdfFileList = response.data.list;
  1182. }
  1183. //文件存在
  1184. if (this.pdfFileList.length > 0) {
  1185. this.pdfShowDialog = true;
  1186. } else {
  1187. this.$message({
  1188. message: "文件不存在!",
  1189. type: "warning",
  1190. });
  1191. }
  1192. })
  1193. .catch((response) => {
  1194. loading.close();
  1195. });
  1196. },
  1197. //缴费查询
  1198. selectPayment() {
  1199. listCompanyHandler().then((response) => {
  1200. var self = this;
  1201. //self.paiAccno = '3115730025233104147';
  1202. if (response.data == true) {
  1203. cfcaProjectNo().then((response) => {
  1204. if (response.data.scyCfcaAuthNumber == null) {
  1205. this.messageIfShow = true;
  1206. } else {
  1207. var zfrId = self.zfrId;
  1208. listChargeStatus(zfrId).then((response) => {
  1209. if (response.data.accInfList[0]) {
  1210. self.paiAccno = response.data.accInfList[0].paiAccno;
  1211. }
  1212. if (response.data.chargeInfList[0]) {
  1213. if (response.data.chargeInfList[0].zciStatus == "00") {
  1214. self.zciId = response.data.chargeInfList[0].zciId;
  1215. self
  1216. .$confirm("请缴纳手续费" + self.needPay + "元", "警告", {
  1217. confirmButtonText: "去缴费",
  1218. cancelButtonText: "取消",
  1219. type: "warning",
  1220. })
  1221. .then(function () {
  1222. const loading = self.$loading({
  1223. lock: true,
  1224. text: "Loading",
  1225. spinner: "el-icon-loading",
  1226. background: "rgba(0, 0, 0, 0.7)",
  1227. });
  1228. if (self.paiAccno) {
  1229. balance(self.paiAccno)
  1230. .then((response) => {
  1231. if (
  1232. eval(self.needPay) > eval(response.data.kyAmt)
  1233. ) {
  1234. self.$message({
  1235. message:
  1236. "余额为" +
  1237. response.data.kyAmt +
  1238. "不足以抵扣本次缴费费用,请及时充值",
  1239. type: "warning",
  1240. });
  1241. loading.close();
  1242. } else {
  1243. console.log();
  1244. var map = {
  1245. recvAccNo: "",
  1246. recvAccNm: "",
  1247. tranAmt: self.needPay,
  1248. businessId: self.zciId,
  1249. type: "00",
  1250. };
  1251. transfer(map)
  1252. .then((response) => {
  1253. debugger;
  1254. loading.close();
  1255. setTimeout(() => {
  1256. if (response.data.status == "1") {
  1257. self.msgSuccess("缴费成功");
  1258. updateChargeStatus(zfrId, "02").then(
  1259. (res) => {
  1260. self.getContractFile();
  1261. }
  1262. );
  1263. } else if (response.data.status == "0") {
  1264. self.message("正在缴费中,请稍后再试");
  1265. updateChargeStatus(zfrId, "01").then(
  1266. (res) => {}
  1267. );
  1268. } else if (response.data.status == "2") {
  1269. self.msgError(
  1270. "缴费失败,前去费用管理再次缴费"
  1271. );
  1272. updateChargeStatus(zfrId, "05").then(
  1273. (res) => {}
  1274. );
  1275. }
  1276. }, 1000);
  1277. })
  1278. .catch(() => {
  1279. loading.close();
  1280. });
  1281. }
  1282. })
  1283. .catch(() => {
  1284. loading.close();
  1285. });
  1286. } else {
  1287. self.$message({
  1288. message: "您还没有电子账户,请联系平台开通电子账户",
  1289. type: "warning",
  1290. });
  1291. loading.close();
  1292. }
  1293. });
  1294. } else {
  1295. self.getContractFile();
  1296. }
  1297. } else {
  1298. self.getContractFile();
  1299. }
  1300. });
  1301. }
  1302. });
  1303. } else {
  1304. this.$message.error("此操作需经办人权限,请确认您是否是经办人");
  1305. }
  1306. });
  1307. },
  1308. //缴费
  1309. selectType() {
  1310. //选择签署意愿
  1311. if (this.zfpAuthType == "00") {
  1312. this.confirmIsShow = true;
  1313. } else {
  1314. this.checking();
  1315. }
  1316. },
  1317. //确认选择
  1318. confirmSelect() {
  1319. if (!this.updateForm.radio) {
  1320. this.$message({
  1321. message: "请选择签署意愿类型",
  1322. type: "warning",
  1323. });
  1324. return;
  1325. }
  1326. this.confirmIsShow = false;
  1327. this.zfpAuthType = this.updateForm.radio;
  1328. //调用人脸识别或者短信验证
  1329. this.checking();
  1330. },
  1331. //去签署
  1332. checking() {
  1333. //人脸
  1334. if (this.zfpAuthType == "01") {
  1335. //调用人脸识别生成二维码
  1336. faceAuth().then((response) => {
  1337. if (response.data) {
  1338. //获取二维码
  1339. this.fileUrl = response.data.fileUrl;
  1340. //获取源流水号
  1341. var originalTxSN = response.data.originalTxSN;
  1342. this.faceIsShow = true;
  1343. //每5秒查证人脸识别结果
  1344. var timeInterval = window.setInterval(() => {
  1345. setTimeout(() => {
  1346. //源流水不为空并且结果为空
  1347. if (originalTxSN && !this.faceResult) {
  1348. this.authForm.originalTxSN = originalTxSN;
  1349. //调用查证方法
  1350. checkFaceAuth(this.authForm).then((res) => {
  1351. //认证结果
  1352. this.faceResult = res.data.Verification;
  1353. //成功
  1354. if (this.faceResult == "20") {
  1355. this.msgSuccess("验证成功");
  1356. //关闭验证码
  1357. this.faceIsShow = false;
  1358. //关闭定时
  1359. window.clearInterval(timeInterval);
  1360. //调用盖章
  1361. this.contractSigning();
  1362. } else if (this.faceResult == "30") {
  1363. this.$message({
  1364. message: "验证失败",
  1365. type: "warning",
  1366. });
  1367. //关闭验证码
  1368. this.faceIsShow = false;
  1369. window.clearInterval(timeInterval);
  1370. }
  1371. });
  1372. }
  1373. }, 0);
  1374. }, 10000);
  1375. }
  1376. });
  1377. } else if (this.zfpAuthType == "02") {
  1378. //短信
  1379. this.messageIsShow = true;
  1380. }
  1381. },
  1382. //发送短信验证码
  1383. send() {
  1384. //发送
  1385. sendMessage().then((response) => {
  1386. if (response.data) {
  1387. //手机号
  1388. var newIphone = response.data.newIphone;
  1389. //结果
  1390. var result = response.data.result;
  1391. //倒计时
  1392. const TIME_COUNT = 60;
  1393. if (!this.timer) {
  1394. this.count = TIME_COUNT;
  1395. this.showCode = false;
  1396. this.timer = setInterval(() => {
  1397. if (this.count > 0 && this.count <= TIME_COUNT) {
  1398. this.count--;
  1399. } else {
  1400. this.showCode = true;
  1401. clearInterval(this.timer);
  1402. this.timer = null;
  1403. }
  1404. }, 1000);
  1405. }
  1406. //成功
  1407. if ("20" == result) {
  1408. this.$message({
  1409. message:
  1410. "已向经办人手机号为" + newIphone + "发送短信验证码,请注意查收",
  1411. type: "warning",
  1412. });
  1413. } else if ("10" == result) {
  1414. //失败
  1415. this.$message({
  1416. message: "短信发送失败",
  1417. type: "warning",
  1418. });
  1419. }
  1420. }
  1421. });
  1422. },
  1423. //校验验证码是否正确
  1424. checkCode() {
  1425. if (!this.messageForm.validCode) {
  1426. this.$message({
  1427. message: "请输入验证码",
  1428. type: "warning",
  1429. });
  1430. return;
  1431. }
  1432. //校验验证码
  1433. checkCode(this.messageForm).then((response) => {
  1434. if (response.data) {
  1435. //结果
  1436. var verification = response.data.verification;
  1437. //匹配
  1438. if ("20" == verification) {
  1439. //进行下一步-- 盖章
  1440. this.contractSigning();
  1441. } else if ("30" == verification) {
  1442. //不匹配
  1443. this.$message({
  1444. message: "验证有误,请重新输入",
  1445. type: "warning",
  1446. });
  1447. }
  1448. }
  1449. });
  1450. },
  1451. //生成项目授权编号发送短信
  1452. proSend() {
  1453. //发送
  1454. projectSendMessage().then((response) => {
  1455. if (response.data) {
  1456. //手机号
  1457. var newIphone = response.data.newIphone;
  1458. //结果
  1459. var result = response.data.result;
  1460. //项目编号
  1461. this.projectCode = response.data.projectCode;
  1462. //倒计时
  1463. const TIME_COUNT = 60;
  1464. if (!this.timerCode) {
  1465. this.countCode = TIME_COUNT;
  1466. this.showCodes = false;
  1467. this.timerCode = setInterval(() => {
  1468. if (this.countCode > 0 && this.countCode <= TIME_COUNT) {
  1469. this.countCode--;
  1470. } else {
  1471. this.showCodes = true;
  1472. clearInterval(this.timerCode);
  1473. this.timerCode = null;
  1474. }
  1475. }, 1000);
  1476. }
  1477. //成功
  1478. if ("60000000" == result) {
  1479. this.$message({
  1480. message:
  1481. "已向经办人手机号为" + newIphone + "发送短信验证码,请注意查收",
  1482. type: "warning",
  1483. });
  1484. } else {
  1485. //失败
  1486. this.$message({
  1487. message: "短信发送失败",
  1488. type: "warning",
  1489. });
  1490. }
  1491. }
  1492. });
  1493. },
  1494. //校验授权编号验证码
  1495. checkProCode() {
  1496. if (!this.projectForm.code) {
  1497. this.$message({
  1498. message: "请输入验证码",
  1499. type: "warning",
  1500. });
  1501. return;
  1502. }
  1503. //项目编号
  1504. this.projectForm.projectCode = this.projectCode;
  1505. //校验验证码
  1506. checkProCode(this.projectForm).then((response) => {
  1507. if (response.data) {
  1508. //结果
  1509. var verification = response.data.verification;
  1510. //匹配
  1511. if ("60000000" == verification) {
  1512. var zfrId = this.zfrId;
  1513. listChargeStatus(zfrId).then((response) => {
  1514. if (response.data[0]) {
  1515. if (response.data[0].zciStatus == "00") {
  1516. this.$confirm("请缴纳手续费" + this.needPay + "元", "警告", {
  1517. confirmButtonText: "去缴费",
  1518. cancelButtonText: "取消",
  1519. type: "warning",
  1520. })
  1521. .then(function () {
  1522. return updateChargeStatus(zfrId);
  1523. })
  1524. .then(() => {
  1525. this.getContractFile();
  1526. });
  1527. } else {
  1528. this.getContractFile();
  1529. }
  1530. } else {
  1531. this.getContractFile();
  1532. }
  1533. });
  1534. } else {
  1535. //不匹配
  1536. this.$message({
  1537. message: "验证有误,请重新输入",
  1538. type: "warning",
  1539. });
  1540. }
  1541. }
  1542. });
  1543. },
  1544. //盖章
  1545. contractSigning() {
  1546. var self = this;
  1547. const loading = this.$loading({
  1548. lock: true,
  1549. text: "Loading",
  1550. background: "rgba(0, 0, 0,0)",
  1551. });
  1552. self.zcFinanceInf.zfrId = self.zfrId;
  1553. contractSigning(self.zcFinanceInf)
  1554. .then((response) => {
  1555. loading.close();
  1556. self.msgSuccess("盖章成功");
  1557. if (self.zfpAuthType == "02") {
  1558. //关闭短信验证
  1559. self.messageIsShow = false;
  1560. } else if (self.zfpAuthType == "01") {
  1561. //关闭人脸二维码
  1562. self.faceIsShow = false;
  1563. }
  1564. self.cancel();
  1565. })
  1566. .catch((response) => {
  1567. loading.close();
  1568. });
  1569. },
  1570. },
  1571. };
  1572. </script>
  1573. <style lang="scss" scoped>
  1574. .zap-title {
  1575. padding: 20px 25px;
  1576. font-size: 16px;
  1577. color: #333333;
  1578. background-color: #ffffff;
  1579. }
  1580. .zap-form {
  1581. padding: 0px 25px 8px;
  1582. background-color: #ffffff;
  1583. }
  1584. .zap-form--clear {
  1585. padding-left: 0;
  1586. padding-right: 0;
  1587. }
  1588. </style>
  1589. <style type="text/css">
  1590. table.gridtable {
  1591. font-size: 11px;
  1592. color: #333333;
  1593. border-width: 1px;
  1594. border-collapse: collapse;
  1595. }
  1596. table.gridtable th {
  1597. border-width: 1px;
  1598. padding: 8px;
  1599. border-style: solid;
  1600. background-color: #dedede;
  1601. }
  1602. table.gridtable td {
  1603. border-width: 1px;
  1604. padding: 8px;
  1605. border-style: solid;
  1606. }
  1607. </style>