recordSeal.vue 55 KB

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