addInformation.vue 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321
  1. <template>
  2. <el-tabs type="border-card">
  3. <!-- 资产信息-->
  4. <el-tab-pane label="资产信息">
  5. <!-- <div class="app-container"> -->
  6. <el-form ref="form" :model="form" :rules="rules" :inline="true" style="margin-top: 20px" label-width="auto" >
  7. <el-divider content-position="left">补充资料</el-divider>
  8. <el-row>
  9. <el-col :span="8">
  10. <el-form-item label="融信编号" prop="zfiNumber">
  11. <el-input v-model="form.zfiNumber" style="width: 200px" disabled/>
  12. </el-form-item>
  13. </el-col>
  14. <el-col :span="8">
  15. <el-form-item label="创建时间" prop="createTime">
  16. <el-date-picker disabled size="small" style="width: 200px" v-model="form.createTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss">
  17. </el-date-picker>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="8">
  21. <el-form-item label="创建人" prop="createName">
  22. <el-input v-model="form.createName" style="width: 200px" disabled/>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :span="8">
  26. <el-form-item label="开立方" prop="openName">
  27. <el-input v-model="form.openName" style="width: 200px" disabled/>
  28. </el-form-item>
  29. </el-col>
  30. <el-col :span="8">
  31. <el-form-item label="接收方" prop="zfiSupplierId">
  32. <!-- <el-select
  33. style="width: 200px"
  34. v-model="form.zfiSupplierId"
  35. filterable
  36. clearable
  37. remote
  38. disabled
  39. >
  40. <el-option
  41. v-for="item in supplierList"
  42. :key="item.value"
  43. :label="item.label"
  44. :value="item.value">
  45. </el-option>
  46. </el-select> -->
  47. <el-input v-model="form.receiveName" style="width: 200px" disabled/>
  48. </el-form-item>
  49. </el-col>
  50. <el-col :span="8">
  51. <el-form-item label="签发有效期" prop="zfiEffectiveDate">
  52. <el-date-picker clearable size="small" style="width: 200px"
  53. v-model="form.zfiEffectiveDate"
  54. type="date"
  55. value-format="yyyy-MM-dd"
  56. placeholder="选择签发有效期"
  57. disabled>
  58. </el-date-picker>
  59. <el-tooltip class="item" effect="light" content="签发有效期:即指定签发截止日期,对方企业在签发截止日内未处理该笔融信,本次融信操作将自动失效" placement="top">
  60. <i class="el-icon-question" style="font-size: 23px;"/>
  61. </el-tooltip>
  62. </el-form-item>
  63. </el-col>
  64. </el-row>
  65. <el-row>
  66. <el-col :span="8">
  67. <el-form-item label="承诺还款日" prop="zfiExpireDate">
  68. <el-date-picker clearable size="small" style="width: 200px"
  69. v-model="form.zfiExpireDate"
  70. type="date"
  71. value-format="yyyy-MM-dd"
  72. placeholder="选择承诺还款日"
  73. disabled>
  74. </el-date-picker>
  75. </el-form-item>
  76. </el-col>
  77. <el-col :span="8">
  78. <el-form-item label="授信额度" prop="zfiCoreQuotaId">
  79. <!-- <el-select
  80. style="width: 200px"
  81. v-model="form.zfiCoreQuotaId"
  82. filterable
  83. clearable
  84. remote
  85. disabled
  86. >
  87. <el-option
  88. v-for="item in creditLineList"
  89. :key="item.value"
  90. :label="item.label"
  91. :value="item.value">
  92. </el-option>
  93. </el-select> -->
  94. <el-input v-model="form.zfpName" style="width: 200px" disabled/>
  95. </el-form-item>
  96. </el-col>
  97. <!-- <el-col :span="8">
  98. <span>可用额度:</span>
  99. <span>{{availableAmt}}</span>
  100. <br>
  101. <span>有效期:</span>
  102. <span>{{validityDate}}</span>
  103. </el-col> -->
  104. </el-row>
  105. <el-divider content-position="left" >应收账款</el-divider>
  106. <el-form-item style="margin-left: 100px">
  107. <el-button type="success" @click="openTicket">选择</el-button>
  108. <el-button type="primary" @click="addPay">新增应付账款</el-button>
  109. <el-button size="mini" @click="deleteTicekt">清空全部</el-button>
  110. <el-form-item label="合计金额:">
  111. <span>{{checkTotalAmt}}</span>
  112. </el-form-item>
  113. <el-form-item label="金额大写:">
  114. <span>{{checkTotalBigAmt}}</span>
  115. </el-form-item>
  116. <el-table :data="ticketList" style="width: 1100px">
  117. <el-table-column label="账款名称" align="center" prop="zbiName" show-overflow-tooltip />
  118. <el-table-column label="应收企业" align="center" prop="receiveName"/>
  119. <el-table-column label="应收企业" align="center" prop="payName" />
  120. <el-table-column label="预计还款期" align="center" prop="zbiPayDate" show-overflow-tooltip />
  121. <el-table-column label="金额" align="center" prop="zbiAmount" />
  122. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250">
  123. <template slot-scope="scope">
  124. <el-button
  125. size="mini"
  126. type="text"
  127. icon="el-icon-delete"
  128. @click="handleDelete(scope.$index, ticketList)"
  129. >删除</el-button>
  130. <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.$index, ticketList)">修改</el-button>
  131. </template>
  132. </el-table-column>
  133. </el-table>
  134. </el-form-item>
  135. <el-row>
  136. <el-col :span="8">
  137. <el-form-item label="签发金额" prop="zfiAmount">
  138. <el-input v-model="form.zfiAmount" style="width: 200px" disabled @input="getBigSmall"/>
  139. </el-form-item>
  140. </el-col>
  141. </el-row>
  142. <el-row>
  143. <el-col :span="8">
  144. <el-form-item label="金额大写" prop="issuedAmount">
  145. {{issuedAmount}}
  146. </el-form-item>
  147. </el-col>
  148. </el-row>
  149. <p>请知悉,资产信息仅能接受指定的销售方与购买方的往来账款(含账款基本信息、贸易合同与贸易发票等);如须使用系统尚未维护的往来账款,请点击新增应付账款
  150. </p>
  151. </el-form>
  152. <!-- 发票附件 -->
  153. <el-divider content-position="left">发票附件</el-divider>
  154. <el-table :data="invoiceFileList" style="width: 100%">
  155. <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
  156. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  157. <template slot-scope="scope">
  158. <el-button
  159. size="mini"
  160. type="text"
  161. icon="el-icon-view"
  162. @click="handleDownload(scope.row)"
  163. >下载</el-button>
  164. <el-button
  165. size="mini"
  166. type="text"
  167. icon="el-icon-view"
  168. @click="handlePreview(scope.row)"
  169. >预览</el-button>
  170. </template>
  171. </el-table-column>
  172. </el-table>
  173. <!-- 合同附件 -->
  174. <el-divider content-position="left">合同附件</el-divider>
  175. <el-table :data="contractFileList" style="width: 100%">
  176. <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
  177. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  178. <template slot-scope="scope">
  179. <el-button
  180. size="mini"
  181. type="text"
  182. icon="el-icon-view"
  183. @click="handleDownload(scope.row)"
  184. >下载</el-button>
  185. <el-button
  186. size="mini"
  187. type="text"
  188. icon="el-icon-view"
  189. @click="handlePreview(scope.row)"
  190. >预览</el-button>
  191. </template>
  192. </el-table-column>
  193. </el-table>
  194. <!-- 其他附件 -->
  195. <el-divider content-position="left">其他附件</el-divider>
  196. <el-table :data="otherFileList" style="width: 100%">
  197. <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
  198. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  199. <template slot-scope="scope">
  200. <el-button
  201. size="mini"
  202. type="text"
  203. icon="el-icon-view"
  204. @click="handleDownload(scope.row)"
  205. >下载</el-button>
  206. <el-button
  207. size="mini"
  208. type="text"
  209. icon="el-icon-view"
  210. @click="handlePreview(scope.row)"
  211. >预览</el-button>
  212. </template>
  213. </el-table-column>
  214. </el-table>
  215. <div class="footer" style="float: right;
  216. margin-bottom:2px;">
  217. <el-button type="info" @click="refuse">拒绝</el-button>
  218. <el-button type="primary" @click="submitForm" v-if="isHas">内部审批</el-button>
  219. <el-button type="primary" @click="submit" v-if="submitButton">提交</el-button>
  220. <el-button type="primary" @click="sign" v-if="signButton">签收</el-button>
  221. <el-button @click="cancel">取 消</el-button>
  222. </div>
  223. <!-- 应收账款信息 -->
  224. <el-dialog :title="payTitle" :visible.sync="open" width="1120px" append-to-body>
  225. <el-form :model="queryParamsPay" ref="formQuery" :inline="true" label-width="68px" style="margin-bottom: -21px">
  226. <el-form-item label="账款名称" prop="zbiName">
  227. <el-input
  228. v-model="queryParamsPay.zbiName"
  229. placeholder="请输入账款名称"
  230. clearable
  231. size="small"
  232. maxlength="11"
  233. @keyup.enter.native="handleQuerys"/>
  234. </el-form-item>
  235. <el-form-item>
  236. <el-button
  237. type="cyan"
  238. icon="el-icon-search"
  239. size="mini"
  240. @click="handleQuerys"
  241. >搜索</el-button>
  242. <el-button icon="el-icon-refresh" size="mini" @click="resetQuerys"
  243. >重置</el-button>
  244. </el-form-item>
  245. </el-form>
  246. <el-table :data="payList"
  247. ref="tablePay"
  248. class="single-select-table"
  249. @selection-change="handleSelectionChange"
  250. :row-key="rowkey">
  251. <el-table-column
  252. type="selection"
  253. :reserve-selection="true"
  254. width="50"
  255. align="center"/>
  256. <el-table-column label="序号" type="index" width="50" align="center">
  257. <template slot-scope="scope">
  258. <span>{{ (queryParamsPay.pageNum - 1) * queryParamsPay.pageSize + scope.$index + 1}}</span>
  259. </template>
  260. </el-table-column>
  261. <el-table-column label="账款名称" align="center" prop="zbiName" show-overflow-tooltip />
  262. <el-table-column label="应收企业" align="center" prop="receiveName"/>
  263. <el-table-column label="应收企业" align="center" prop="payName" />
  264. <el-table-column label="预计还款期" align="center" prop="zbiPayDate" show-overflow-tooltip />
  265. <el-table-column label="金额" align="center" prop="zbiAmount" />
  266. </el-table>
  267. <pagination
  268. v-show="total > 0"
  269. :total="total"
  270. :page.sync="queryParamsPay.pageNum"
  271. :limit.sync="queryParamsPay.pageSize"
  272. @pagination="getAccountsCollection" />
  273. <span slot="footer" class="dialog-footer">
  274. <el-button size="mini" @click="cancelTicket">取消</el-button>
  275. <el-button size="mini" type="primary" @click="closeTicket">确认</el-button>
  276. </span>
  277. </el-dialog>
  278. <!-- 新增往来账款 -->
  279. <el-dialog title="新增往来账款" :visible.sync="openAddBill" width="1120px" append-to-body>
  280. <add-bill :companyId="form.zfiCoreId" companyType="01" :payDate="payDate" @addClick="emitAddClick" v-if="openAddBill"></add-bill>
  281. </el-dialog>
  282. <!-- 修改往来账款 -->
  283. <el-dialog title="修改往来账款" :visible.sync="openEditBill" width="1120px" append-to-body>
  284. <edit-bill :zbiId="this.zbiId" @editClick="emitEditClick" v-if="openEditBill"></edit-bill>
  285. </el-dialog>
  286. <!--预览-->
  287. <el-dialog :visible.sync="openFile" width="1000px" append-to-body>
  288. <img :src="wordUrl" v-if="show" width='450px' height='500px'/>
  289. <iframe :src="wordUrl" width='800px' height='600px' frameborder='1' v-if="heid"/>
  290. </el-dialog>
  291. <el-dialog
  292. :visible.sync="pdfShowDialog"
  293. width="70%"
  294. height = "60%"
  295. append-to-body>
  296. <pdf-show :pdfFileList="pdfFileList" :zfiId="this.form.zfiId" :parent="parent">
  297. </pdf-show>
  298. </el-dialog>
  299. <!--去融资-->
  300. <el-dialog :visible.sync="goShow" width="300px" append-to-body :before-close = "cancelGo" center>
  301. <!-- <p>恭喜您成功签收一笔融信</p> -->
  302. <el-form ref="financeSignForm" :model="financeSignForm" label-width="auto" :inline="true">
  303. <el-row>
  304. <el-form-item label="融信编号:">{{financeSignForm.zfiNumber}}</el-form-item>
  305. <el-form-item label="融信金额:">{{handleInput(financeSignForm.zfiAmount)}}</el-form-item>
  306. <el-form-item label="大写:">{{smallToBig(financeSignForm.zfiAmount)}}</el-form-item>
  307. </el-row>
  308. <el-row>
  309. <el-form-item label="融信利率:">{{financeSignForm.zfiRate}}</el-form-item>
  310. <el-form-item label="最长融信期限:">{{financeSignForm.intervalTime + "天"}}</el-form-item>
  311. <el-form-item label="融信有效期:">{{financeSignForm.validity}}</el-form-item>
  312. </el-row>
  313. </el-form>
  314. <div slot="footer" class="dialog-footer">
  315. <el-button type="primary" @click="goFinance">去融资</el-button>
  316. <el-button @click="cancelGo">取 消</el-button>
  317. </div>
  318. </el-dialog>
  319. </el-tab-pane>
  320. <el-tab-pane label="签署合同">
  321. <el-table :data="creditSealList" style="width: 100%">
  322. <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip>
  323. <template slot-scope="scope">
  324. <img style="width:30px;height:30px;"
  325. src="../../../assets/images/pdf.png"
  326. />
  327. <span>{{scope.row.pfiFileName}}
  328. </span>
  329. </template>
  330. </el-table-column>
  331. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
  332. <template slot-scope="scope">
  333. <el-button
  334. size="mini"
  335. type="text"
  336. icon="el-icon-view"
  337. @click="handleDownload(scope.row)"
  338. >下载</el-button>
  339. <el-button
  340. size="mini"
  341. type="text"
  342. icon="el-icon-view"
  343. @click="handlePreview(scope.row)"
  344. >预览</el-button>
  345. </template>
  346. </el-table-column>
  347. </el-table>
  348. </el-tab-pane>
  349. </el-tabs>
  350. <!-- </div> -->
  351. </template>
  352. <script>
  353. import {getCreditDetail,getAccountsCollection,getFile,getFinanceSign} from "@/api/service/credit/credit";
  354. import {addInfor,getCreditSealFile,creditRefuse,getContractFile} from "@/api/service/credit/creditHandle";
  355. import {accAdd} from "@/utils/calculation";
  356. import {getToken} from "@/utils/auth";
  357. import AddBill from "@/views/service/bill/addBill";
  358. import EditBill from "@/views/service/bill/editBill";
  359. import {isOpenApproval} from "@/api/service/credit/approvalRelatedCredit";
  360. import { amtformat } from "@/utils/amtCommon";
  361. import pdfShow from "./pdfShow";
  362. import Cookies from 'js-cookie';
  363. export default {
  364. name: "addCredit",
  365. components: {AddBill,pdfShow,EditBill},
  366. data() {
  367. return {
  368. //往来账款id
  369. zbiId: '',
  370. // 总条数
  371. total: 0,
  372. // 表单参数read
  373. form: {
  374. },
  375. // 表单校验
  376. rules: {
  377. },
  378. financeSignForm:{},
  379. // 是否显示弹出层
  380. open: false,
  381. openAddBill: false,
  382. openEditBill: false,
  383. //选择的应收账款
  384. payList:[],
  385. //现有的应收账款
  386. ticketList:[],
  387. //签发金额大写
  388. issuedAmount:"零元整",
  389. //合计选中的应收账款的金额
  390. checkTotalAmt:"0.00",
  391. //合计选中的应收账款的大写金额
  392. checkTotalBigAmt:"零元整",
  393. //接收方
  394. supplierList:[],
  395. supplierForm:{},
  396. queryParamsPay: {
  397. pageNum: 1,
  398. pageSize: 10,
  399. zbiName:null
  400. },
  401. //授信额度
  402. creditLineList:[],
  403. //可用额度
  404. availableAmt:"0.00",
  405. //有效期
  406. validityDate:"",
  407. //有效期类型
  408. zfpcrDateType:"" ,
  409. //产品是否可拆分
  410. zfpSplit:"",
  411. //融资放款方式
  412. zfpcrLoanType:"",
  413. //产品编号
  414. zfpId:"",
  415. //标题
  416. payTitle:"",
  417. //利率
  418. zfiRate:"",
  419. //授信额度
  420. creditParams: {
  421. zfpcrId:null,
  422. type:'1'
  423. },
  424. //合同附件
  425. contractFileList:[],
  426. //发票附件
  427. invoiceFileList:[],
  428. //其他文件
  429. otherFileList:[] ,
  430. //盖章文件
  431. creditSealList:[],
  432. //开立方编号
  433. zfiCoreId:"",
  434. //接收方
  435. zfiSupplierId:"",
  436. openFile:false,
  437. wordUrl: "",
  438. show:false,
  439. heid:false,
  440. chooseTicket:[],
  441. payDate:null,
  442. //内部审批控制
  443. isHas:true,
  444. //提交按钮
  445. submitButton:true,
  446. //签收按钮
  447. signButton:true,
  448. pdfFileList : [],
  449. pdfShowDialog : false,
  450. parent : this,
  451. //平台审批状态
  452. zfiPlatformStatus:"",
  453. //显示去融资框
  454. goShow:false
  455. };
  456. },
  457. /* watch:{
  458. 'form.zfiCoreQuotaId':'change'
  459. }, */
  460. activated() {
  461. const zfiId = this.$route.params && this.$route.params.zfiId;
  462. getCreditDetail(zfiId).then((response) => {
  463. if(response.data){
  464. //接收方编号
  465. /* this.supplierForm.zfiSupplierId = response.data.financeInf.zfiSupplierId;
  466. getReceiverList(this.supplierForm).then((response) => {
  467. this.supplierList = response.data.records.map(item => {
  468. return { value: item.scyId, label: item.scyName};
  469. });
  470. });
  471. this.listCreditLine(response.data); */
  472. this.form = response.data.financeInf;
  473. //开立方
  474. this.form.openName = response.data.openName;
  475. //接收方
  476. this.form.receiveName = response.data.receiveName;
  477. //产品
  478. this.form.zfpName = response.data.zfpName;
  479. //创建人
  480. this.form.createName = response.data.createName;
  481. //签发金额大写
  482. this.issuedAmount = this.smallToBig(this.form.zfiAmount);
  483. //开立方编号
  484. this.zfiCoreId = response.data.financeInf.zfiCoreId;
  485. //接收方
  486. this.zfiSupplierId = response.data.financeInf.zfiSupplierId;
  487. //平台
  488. this.zfiPlatformStatus = response.data.zfiPlatformStatus;
  489. }
  490. if(response.data.payList){
  491. this.ticketList = response.data.payList.records;
  492. this.getReTotal(this.ticketList);
  493. //附件
  494. this.getFile(this.ticketList);
  495. }
  496. //盖章合同
  497. this.getCreditSealFile();
  498. //判断有无开启审批
  499. this.isOpenApproval();
  500. })
  501. },
  502. methods: {
  503. // 取消按钮
  504. cancel() {
  505. this.$store.dispatch("tagsView/delView", this.$route);
  506. this.$router.go(-1);
  507. },
  508. /* 多选框跨页 */
  509. rowkeyCustomer(row) {
  510. return row.cciId;
  511. },
  512. //获取附件信息
  513. getFile(datas){
  514. var queryParamsFile = {};
  515. queryParamsFile.ticketList = datas;
  516. getFile(queryParamsFile).then((response) => {
  517. if(response.data){
  518. //获取发票文件
  519. this.invoiceFileList = response.data.invoiceFileList;
  520. //获取合同文件
  521. this.contractFileList = response.data.contractFileList;
  522. //获取其他文件
  523. this.otherFileList = response.data.otherFileList;
  524. }
  525. });
  526. },
  527. //获取盖章文件
  528. getCreditSealFile(){
  529. getCreditSealFile(this.form).then((response) => {
  530. if(response.data.list){
  531. this.creditSealList = response.data.list;
  532. }
  533. });
  534. },
  535. resetQuerys() {
  536. this.resetForm("formQuery");
  537. this.handleQuerys();
  538. },
  539. //回到父页
  540. cancelGo(){
  541. this.goShow = false;
  542. this.$store.dispatch(
  543. "tagsView/delView",
  544. this.$route
  545. );
  546. this.$router.go(-1);
  547. },
  548. handleQuerys() {
  549. this.queryParamsPay.pageNum = 1;
  550. this.getAccountsCollection();
  551. },
  552. //打开应收账款选择列表
  553. openTicket() {
  554. this.queryParamsPay.zbiName = "";
  555. this.queryParamsPay.pageNum = 1;
  556. this.getAccountsCollection();
  557. this.open = true;
  558. this.payTitle = "应收账款";
  559. },
  560. //核心授信额度
  561. /* listCreditLine(data){
  562. this.creditParams.zfpcrId = data.financeInf.zfiCoreQuotaId;
  563. listCreditLine(this.creditParams).then((response) => {
  564. this.creditLineList = response.data.map(item => {
  565. return { value: item.zfpcrId, label: item.zfpName,zfpcrDateType:item.zfpcrDateType,zfpcrEndDate:item.zfpcrEndDate,zfpcrLoanType:item.zfpcrLoanType,zfpSplit:item.zfpSplit,zfpId:item.zfpId,zfpcrRate:item.zfpcrRate};
  566. });
  567. this.form = data.financeInf;
  568. //开立方
  569. this.form.openName = data.openName;
  570. //创建人
  571. this.form.createName = data.createName;
  572. //签发金额大写
  573. this.issuedAmount = this.smallToBig(this.form.zfiAmount);
  574. //开立方编号
  575. this.zfiCoreId = data.financeInf.zfiCoreId;
  576. //接收方
  577. this.zfiSupplierId = data.financeInf.zfiSupplierId;
  578. });
  579. }, */
  580. //应收账款查询列表
  581. getAccountsCollection() {
  582. //开立方
  583. this.queryParamsPay.payId = this.zfiCoreId;
  584. //接收方
  585. this.queryParamsPay.zfiSupplierId = this.zfiSupplierId;
  586. return getAccountsCollection(this.queryParamsPay).then((response) => {
  587. this.payList = response.data.records;
  588. this.selectChecked();
  589. this.total = response.data.total;
  590. return Promise.resolve(response)
  591. });
  592. },
  593. selectChecked() {
  594. //清空选择
  595.             this.$refs.tablePay && this.$refs.tablePay.clearSelection();
  596. this.ticketList.forEach((item) => {
  597. this.payList.forEach(row => {
  598. if (row.zbiId == item.zbiId) {
  599. this.$nextTick(() => {
  600. this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
  601. })
  602. }
  603. });
  604. });
  605. //合计
  606. this.getReTotal(this.ticketList);
  607. //附件
  608. this.getFile(this.ticketList);
  609. },
  610. //文件下载
  611. handleDownload(row){
  612. debugger
  613. const pfiUrl = row.pfiUrl;
  614. if(pfiUrl != null && pfiUrl != ''){
  615. window.open(pfiUrl +"/"+ getToken());
  616. }else{
  617. this.$message({
  618. message: '该附件不存在!',
  619. type: 'warning'
  620. });
  621. return;
  622. }
  623. },
  624. /* 删除按钮 */
  625. handleDelete(index, rows) {
  626. rows.splice(index, 1);
  627. if(this.$refs.tablePay){
  628. this.$refs.tablePay.clearSelection();
  629. }
  630. this.selectChecked();
  631. },
  632. /* 修改按钮 */
  633. handleUpdate(index, rows) {
  634. this.zbiId = rows[index].zbiId;
  635. this.openEditBill = true
  636. },
  637. /* 多选框跨页 */
  638. rowkey(row) {
  639. return row.zbiId;
  640. },
  641. // 多选框选中数据
  642. handleSelectionChange(val) {
  643. this.chooseTicket = val
  644. },
  645. // 确认选择
  646. closeTicket() {
  647. if(this.chooseTicket.length > 0){
  648. var flag = true;
  649. //获取选中第一个的预计还款日期
  650. var zbiPayDate = this.chooseTicket[0].zbiPayDate;
  651. for(var i = 0 ;i < this.chooseTicket.length;i++){
  652. if(zbiPayDate != this.chooseTicket[i].zbiPayDate){
  653. flag = false;
  654. this.$message({
  655. message: '请选择预计还款日期相同的应收账款',
  656. type: 'warning'
  657. });
  658. break;
  659. }
  660. }
  661. if(flag){
  662. //合计
  663. this.getReTotal(this.chooseTicket);
  664. this.ticketList = this.chooseTicket;
  665. //更新附件信息
  666. this.getFile(this.ticketList);
  667. this.open = false;
  668. }
  669. }else{
  670. this.$message({
  671. message: '请选择应收账款',
  672. type: 'warning'
  673. });
  674. }
  675. },
  676. //重新合计
  677. getReTotal(chooseTicket){
  678. //合计
  679. this.checkTotalAmt = "0.00";
  680. for(var i = 0; i < chooseTicket.length;i++){
  681. this.checkTotalAmt = accAdd(this.checkTotalAmt,chooseTicket[i].zbiAmount,2);
  682. }
  683. this.checkTotalBigAmt = this.smallToBig(this.checkTotalAmt);
  684. this.checkTotalAmt = this.amtFormat(this.checkTotalAmt);
  685. },
  686. //取消选择按钮
  687. cancelTicket(){
  688. /* this.ticketList = [];
  689. if(this.$refs.tablePay){
  690. this.$refs.tablePay.clearSelection();
  691. } */
  692. this.open = false;
  693. },
  694. /** 清空选择信息 */
  695. deleteTicekt() {
  696. this.ticketList = [];
  697. this.checkTotalAmt = "0.00";
  698. this.checkTotalBigAmt = this.smallToBig(this.checkTotalAmt);
  699. if(this.$refs.tablePay){
  700. this.$refs.tablePay.clearSelection();
  701. }
  702. //更新附件
  703. this.getFile(this.ticketList);
  704. },
  705. /* 删除按钮 */
  706. handleDelete(index, rows) {
  707. rows.splice(index, 1);
  708. if(this.$refs.tablePay){
  709. this.$refs.tablePay.clearSelection();
  710. }
  711. this.selectChecked();
  712. },
  713. onSelectAll() {
  714. if(this.$refs.tablePay){
  715. this.$refs.tablePay.clearSelection();
  716. }
  717. },
  718. //格式化金额
  719. amtFormat(cellValue) {
  720. if(cellValue == null || cellValue== undefined || cellValue == ''){
  721. cellValue = '0.00'
  722. }
  723. cellValue += '';
  724.       if (!cellValue.includes('.')) {
  725. cellValue += '.00';
  726. }
  727.       return cellValue.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
  728.         return $1 + ',';
  729.       }).replace(/\.$/, '');
  730. },
  731. //获取签发金额大写
  732. getBigSmall(){
  733. this.issuedAmount = this.smallToBig(this.form.zfiAmount);
  734. },
  735. /* // 将数字金额转换为大写金额 */
  736. smallToBig(money) {
  737. // 将数字金额转换为大写金额
  738. var cnNums = new Array(
  739. "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" ); //汉字的数字
  740. var cnIntRadice = new Array("", "拾", "佰", "仟"); //基本单位
  741. var cnIntUnits = new Array("", "万", "亿", "兆"); //对应整数部分扩展单位
  742. var cnDecUnits = new Array("角", "分", "毫", "厘"); //对应小数部分单位
  743. var cnInteger = "整"; //整数金额时后面跟的字符
  744. var cnIntLast = "元"; //整数完以后的单位
  745. //最大处理的数字
  746. var maxNum = 999999999999999.9999;
  747. var integerNum; //金额整数部分
  748. var decimalNum; //金额小数部分
  749. //输出的中文金额字符串
  750. var chineseStr = "";
  751. var parts; //分离金额后用的数组,预定义
  752. if (money == "" || money == null || money == undefined) {
  753. return "零元零角零分";
  754. }
  755. money = parseFloat(money);
  756. if (money >= maxNum) {
  757. //超出最大处理数字
  758. return "超出最大处理数字";
  759. }
  760. if (money == 0) {
  761. chineseStr = cnNums[0] + cnIntLast + cnInteger;
  762. return chineseStr;
  763. }
  764. //四舍五入保留两位小数,转换为字符串
  765. money = Math.round(money * 100).toString();
  766. integerNum = money.substr(0, money.length - 2);
  767. decimalNum = money.substr(money.length - 2);
  768. //获取整型部分转换
  769. if (parseInt(integerNum, 10) > 0) {
  770. var zeroCount = 0;
  771. var IntLen = integerNum.length;
  772. for (var i = 0; i < IntLen; i++) {
  773. var n = integerNum.substr(i, 1);
  774. var p = IntLen - i - 1;
  775. var q = p / 4;
  776. var m = p % 4;
  777. if (n == "0") {
  778. zeroCount++;
  779. } else {
  780. if (zeroCount > 0) {
  781. chineseStr += cnNums[0];
  782. }
  783. //归零
  784. zeroCount = 0;
  785. chineseStr += cnNums[parseInt(n)] + cnIntRadice[m];
  786. }
  787. if (m == 0 && zeroCount < 4) {
  788. chineseStr += cnIntUnits[q];
  789. }
  790. }
  791. chineseStr += cnIntLast;
  792. }
  793. //小数部分
  794. if (decimalNum != "") {
  795. var decLen = decimalNum.length;
  796. for (var i = 0; i < decLen; i++) {
  797. var n = decimalNum.substr(i, 1);
  798. if (n != "0") {
  799. chineseStr += cnNums[Number(n)] + cnDecUnits[i];
  800. }
  801. }
  802. }
  803. if (chineseStr == "") {
  804. chineseStr += cnNums[0] + cnIntLast + cnInteger;
  805. } else if (decimalNum == "" || /^0*$/.test(decimalNum)) {
  806. chineseStr += cnInteger;
  807. }
  808. return chineseStr;
  809. },
  810. //选择授信触发
  811. /* change(val) {
  812. if (!val) {
  813. //可用额度
  814. this.availableAmt = "0.00";
  815. //有效期
  816. this.validityDate ="";
  817. //产品是否可拆分
  818. this.zfpSplit= "",
  819. //融资放款方式
  820. this.zfpcrLoanType = "";
  821. //产品
  822. this.zfpId = "";
  823. //利率
  824. this.zfiRate = "";
  825. return;
  826. }
  827. let obj = {};
  828. obj = this.creditLineList.find(item => {
  829. return item.value === val;
  830. });
  831. //获取有效期的类型
  832. this.zfpcrDateType = obj.zfpcrDateType;
  833. //产品是否可拆分
  834. this.zfpSplit= obj.zfpSplit;
  835. //放款方式
  836. this.zfpcrLoanType = obj.zfpcrLoanType;
  837. //产品
  838. this.zfpId = obj.zfpId;
  839. //利率
  840. this.zfiRate = obj.zfpcrRate;
  841. //长期
  842. if("0"== this.zfpcrDateType){
  843. this.validityDate = "长期";
  844. }else{
  845. this.validityDate = obj.zfpcrEndDate;
  846. }
  847. var lineQueryParam = {};
  848. lineQueryParam.zfpcrId = val;
  849. //获取可用额度
  850. getAvailableBalance(lineQueryParam).then((response) => {
  851. this.availableAmt = response.data.remaining;
  852. });
  853. }, */
  854. //内部审批
  855. submitForm(){
  856. this.$refs["form"].validate(valid => {
  857. if(this.ticketList.length < 1){
  858. this.$message({
  859. message: '请选择应收账款',
  860. type: 'warning'
  861. });
  862. return;
  863. }
  864. if(parseFloat(this.form.zfiAmount) > parseFloat(this.moneyDelete(this.checkTotalAmt))){
  865. this.$message({
  866. message: '签发金额不可大于合计金额',
  867. type: 'warning'
  868. });
  869. return;
  870. }
  871. if (valid) {
  872. const loading = this.$loading({
  873. lock: true,
  874. text: 'Loading',
  875. background: 'rgba(0, 0, 0,0)'
  876. });
  877. //如果签发金额小于合计金额
  878. if((parseFloat(this.form.zfiAmount)) < (parseFloat(this.moneyDelete(this.checkTotalAmt)))){
  879. var _this = this;
  880. this.$confirm('签发金额小于应收金额合计,是否确认提交', "警告", {
  881. confirmButtonText: "确定",
  882. cancelButtonText: "取消",
  883. type: "warning"
  884. }).then(function() {
  885. //应收账款
  886. _this.form.ticketList = _this.ticketList;
  887. addInfor(_this.form).then(response => {
  888. loading.close();
  889. _this.msgSuccess("融信资料已提交内部审批");
  890. _this.$store.dispatch("tagsView/delView", _this.$route);
  891. _this.$router.go(-1);
  892. }).catch((response)=>{
  893. loading.close();
  894. });
  895. }).catch((e) => {
  896. loading.close();
  897. });
  898. }else{
  899. //应收账款
  900. this.form.ticketList = this.ticketList;
  901. addInfor(this.form).then(response => {
  902. loading.close();
  903. this.msgSuccess("融信资料已提交内部审批");
  904. this.$store.dispatch("tagsView/delView", this.$route);
  905. this.$router.go(-1);
  906. }).catch((response)=>{
  907. loading.close();
  908. });
  909. }
  910. }
  911. });
  912. },
  913. //金额去掉千分位
  914. moneyDelete(num){
  915. if(num &&num != undefined && num != null){
  916. let _num = num;
  917. _num = _num.toString();
  918. _num = _num.replace(/,/gi,'');
  919. return _num;
  920. }else{
  921. return num;
  922. }
  923. },
  924. //预览
  925. handlePreview(row) {
  926. const pfiUrl = row.pfiUrl;
  927. const pfiFileName = row.pfiFileName;
  928. if (row.pfiUrl) {
  929. console.log(pfiFileName.substr(-3));
  930. if (pfiFileName.substr(-3) == "pdf") {
  931. this.wordUrl = pfiUrl + "/" + getToken();
  932. this.show=false;
  933. this.heid=true;
  934. } else if (
  935. pfiFileName.substr(-3) == "jpg" ||
  936. pfiFileName.substr(-3) == "png" ||
  937. pfiFileName.substr(-3) == "JPG" ||
  938. pfiFileName.substr(-3) == "PNG" ||
  939. pfiFileName.substr(-4) == "jpeg" ||
  940. pfiFileName.substr(-3) == "JPEG"
  941. ) {
  942. this.wordUrl =
  943. pfiUrl +
  944. "/" +
  945. getToken();
  946. this.show=true;
  947. this.heid=false;
  948. console.log("====>",this.wordUrl);
  949. } else if (
  950. pfiFileName.substr(-3) == "doc" ||
  951. pfiFileName.substr(-3) == "DOC"||
  952. pfiFileName.substr(-4) == "docx" ||
  953. pfiFileName.substr(-3) == "DOCX"
  954. ) {
  955. this.wordUrl =
  956. "https://view.officeapps.live.com/op/view.aspx?src=" +
  957. pfiUrl +
  958. "/" +
  959. getToken() +
  960. "/" +
  961. pfiFileName;
  962. this.show=false;
  963. this.heid=true;
  964. console.log("====>",this.wordUrl);
  965. } else {
  966. this.$message({
  967. message: "暂不支持该类型文件预览",
  968. type: "warning",
  969. });
  970. return;
  971. }
  972. }
  973. this.openFile = true;
  974. },
  975. //新增应付
  976. addPay(){
  977. //获取选中第一个的预计还款日期
  978. if(this.chooseTicket[0]){
  979. var zbiPayDate = this.chooseTicket[0].zbiPayDate;
  980. this.payDate = zbiPayDate;
  981. }
  982. if(this.form.zfiCoreId){
  983. this.openAddBill = true
  984. }else{
  985. this.$message({
  986. message: "开立方不能为空",
  987. type: "warning",
  988. });
  989. }
  990. },
  991. //新增账款回调
  992. emitAddClick(val){
  993. var self = this
  994. this.getAccountsCollection().then((response) => {
  995. //新增付款返回id直接选中
  996. if (val) {
  997. self.payList.forEach(element => {
  998. if(element.zbiId == val){
  999. // 将当前点击项选中
  1000. self.chooseTicket.push(element)
  1001. self.closeTicket()
  1002. }
  1003. });
  1004. }
  1005. })
  1006. self.openAddBill = false
  1007. },
  1008. //修改账款回调
  1009. emitEditClick(val) {
  1010. var self = this
  1011. this.getAccountsCollection().then((response) => {
  1012. //修改付款返回id直接选中
  1013. if (val) {
  1014. // self.payList.forEach(element => {
  1015. // if (element.zbiId == val) {
  1016. // // 将当前点击项选中
  1017. // // self.chooseTicket.push(element)
  1018. // //self.closeTicket()
  1019. // }
  1020. // });
  1021. console.log(self.chooseTicket)
  1022. self.ticketList = self.chooseTicket
  1023. self.closeTicket()
  1024. }
  1025. })
  1026. self.openEditBill = false
  1027. },
  1028. //判断有无补充资料内部审批
  1029. isOpenApproval(){
  1030. console.log("1111");
  1031. // 平台审批通过
  1032. if (this.form.zfiPlatformStatus == '01') {
  1033. this.signButton = true;
  1034. this.isHas = false;
  1035. this.submitButton = false;
  1036. //如果显示签收,调起预览文件
  1037. this.getContractFile(true);
  1038. // 平台审批拒绝
  1039. } else if (this.form.zfiPlatformStatus == '02') {
  1040. // 融信状态为平台退回
  1041. if (this.form.zfiStatus == '06') {
  1042. // 判断是否有内部审批
  1043. var confirmParam = {};
  1044. confirmParam.menuId = "1000000003";
  1045. isOpenApproval(confirmParam).then((response) => {
  1046. var result = response.data.isOpen;
  1047. // 有内部审批
  1048. if (result) {
  1049. this.signButton = false;
  1050. this.isHas = true;
  1051. this.submitButton = false;
  1052. // 没有内部审批
  1053. } else {
  1054. // 判断是否有平台审批
  1055. var platParam = {};
  1056. platParam.menuId = "1000000004";
  1057. isOpenApproval(platParam).then((response) => {
  1058. var platResult = response.data.isOpen;
  1059. //开启平台审批,显示提交按钮
  1060. if(platResult){
  1061. this.submitButton = true;
  1062. this.isHas = false;
  1063. this.signButton = false;
  1064. //如果显示签收,调起预览文件
  1065. this.getContractFile(true);
  1066. }else{
  1067. //未开启平台审批,显示签收按钮
  1068. this.signButton = true;
  1069. this.submitButton = false;
  1070. this.isHas = false;
  1071. //如果显示签收,调起预览文件
  1072. this.getContractFile(true);
  1073. }
  1074. });
  1075. }
  1076. })
  1077. // 融信状态为 待签收
  1078. } else if(this.form.zfiStatus == '01') {
  1079. //不存在此情况
  1080. }
  1081. // 平台未审批
  1082. } else if (this.form.zfiPlatformStatus == null || this.form.zfiPlatformStatus == "04") {
  1083. // 融资审批状态
  1084. if (this.form.zfiSupplierStatus == '01') {
  1085. //不存在此情况
  1086. // 融资审批状态为拒绝 或者 为 null
  1087. } else if (this.form.zfiSupplierStatus == '02' || this.form.zfiSupplierStatus == null) {
  1088. // 判断是否有内部审批
  1089. var confirmParam = {};
  1090. confirmParam.menuId = "1000000003";
  1091. isOpenApproval(confirmParam).then((response) => {
  1092. var result = response.data.isOpen;
  1093. // 有内部审批
  1094. if (result) {
  1095. this.signButton = false;
  1096. this.isHas = true;
  1097. this.submitButton = false;
  1098. // 没有内部审批
  1099. } else {
  1100. // 判断是否有平台审批
  1101. var platParam = {};
  1102. platParam.menuId = "1000000004";
  1103. isOpenApproval(platParam).then((response) => {
  1104. var platResult = response.data.isOpen;
  1105. //开启平台审批,显示提交按钮
  1106. if(platResult){
  1107. this.submitButton = true;
  1108. this.isHas = false;
  1109. this.signButton = false;
  1110. }else{
  1111. //未开启平台审批,显示签收按钮
  1112. this.signButton = true;
  1113. this.submitButton = false;
  1114. this.isHas = false;
  1115. }
  1116. });
  1117. }
  1118. })
  1119. }
  1120. }
  1121. },
  1122. //拒签
  1123. refuse(){
  1124. creditRefuse(this.form).then(response => {
  1125. const loading = this.$loading({
  1126. lock: true,
  1127. text: 'Loading',
  1128. background: 'rgba(0, 0, 0,0)'
  1129. });
  1130. loading.close();
  1131. this.msgSuccess("该笔融信将作废");
  1132. this.$store.dispatch("tagsView/delView",this.$route);
  1133. this.$router.go(-1);
  1134. }).catch((response)=>{
  1135. loading.close();
  1136. });
  1137. },
  1138. //提交
  1139. submit(){
  1140. this.$refs["form"].validate(valid => {
  1141. if(this.ticketList.length < 1){
  1142. this.$message({
  1143. message: '请选择应收账款',
  1144. type: 'warning'
  1145. });
  1146. return;
  1147. }
  1148. if(parseFloat(this.form.zfiAmount) > parseFloat(this.moneyDelete(this.checkTotalAmt))){
  1149. this.$message({
  1150. message: '签发金额不可大于合计金额',
  1151. type: 'warning'
  1152. });
  1153. return;
  1154. }
  1155. if (valid) {
  1156. const loading = this.$loading({
  1157. lock: true,
  1158. text: 'Loading',
  1159. background: 'rgba(0, 0, 0,0)'
  1160. });
  1161. //如果签发金额小于合计金额
  1162. if((parseFloat(this.form.zfiAmount)) < (parseFloat(this.moneyDelete(this.checkTotalAmt)))){
  1163. var _this = this;
  1164. this.$confirm('签发金额小于应收金额合计,是否确认提交', "警告", {
  1165. confirmButtonText: "确定",
  1166. cancelButtonText: "取消",
  1167. type: "warning"
  1168. }).then(function() {
  1169. //应收账款
  1170. _this.form.ticketList = _this.ticketList;
  1171. addInfor(_this.form).then(response => {
  1172. loading.close();
  1173. _this.msgSuccess("平台正在审核资料,平台审核时间为工作日:9:00—18:00;单日16:00之前提交资料,预计2小时内完成,请平台审批通过后,再次签署");
  1174. _this.$store.dispatch("tagsView/delView", _this.$route);
  1175. _this.$router.go(-1);
  1176. }).catch((response)=>{
  1177. loading.close();
  1178. });
  1179. }).catch((e) => {
  1180. loading.close();
  1181. });
  1182. }else{
  1183. //应收账款
  1184. this.form.ticketList = this.ticketList;
  1185. addInfor(this.form).then(response => {
  1186. loading.close();
  1187. this.msgSuccess("平台正在审核资料,平台审核时间为工作日:9:00—18:00;单日16:00之前提交资料,预计2小时内完成,请平台审批通过后,再次签署");
  1188. this.$store.dispatch("tagsView/delView", this.$route);
  1189. this.$router.go(-1);
  1190. }).catch((response)=>{
  1191. loading.close();
  1192. });
  1193. }
  1194. }
  1195. });
  1196. },
  1197. //签收
  1198. sign(){
  1199. //预览文件
  1200. this.getContractFile();
  1201. },
  1202. //获取合同文件
  1203. getContractFile(nosign){
  1204. const loading = this.$loading({
  1205. lock: true,
  1206. text: 'Loading',
  1207. background: 'rgba(0, 0, 0,0)'
  1208. });
  1209. getContractFile(this.form).then((response) => {
  1210. loading.close();
  1211. if(response.data.list){
  1212. this.pdfFileList = response.data.list;
  1213. }
  1214. //文件存在
  1215. if(this.pdfFileList.length > 0 ){
  1216. this.pdfShowDialog = true;
  1217. }else{
  1218. /* this.$message({
  1219. message: '文件不存在!',
  1220. type: 'warning'
  1221. }); */
  1222. //文件不存在并且不是一进去页面调用的直接盖章
  1223. if (!nosign) {
  1224. this.contractSigning();
  1225. }
  1226. }
  1227. }).catch((response)=>{
  1228. loading.close();
  1229. });
  1230. },
  1231. closePdfShow(){
  1232. this.pdfShowDialog = false;
  1233. },
  1234. //盖章
  1235. contractSigning(){
  1236. const loading = this.$loading({
  1237. lock: true,
  1238. text: 'Loading',
  1239. background: 'rgba(0, 0, 0,0)'
  1240. });
  1241. contractSigning(this.form).then((response) => {
  1242. loading.close();
  1243. const zfiId = this.$route.params && this.$route.params.zfiId;
  1244. getFinanceSign(zfiId).then((response) => {
  1245. //融信编号
  1246. this.financeSignForm.zfiNumber = response.data.zfiNumber;
  1247. //融信金额
  1248. this.financeSignForm.zfiAmount = response.data.zfiAmount;
  1249. //利率
  1250. this.financeSignForm.zfiRate = response.data.zfiRate;
  1251. //最长融信期限
  1252. this.financeSignForm.intervalTime = response.data.intervalTime;
  1253. //融信有效期
  1254. this.financeSignForm.validity = response.data.validity;
  1255. this.goShow = true;
  1256. });
  1257. }).catch((response) => {
  1258. loading.close();
  1259. });
  1260. },
  1261. //去融资
  1262. goFinance(){
  1263. //关闭当前页
  1264. this.$store.dispatch(
  1265. "tagsView/delView",
  1266. this.$route
  1267. );
  1268. //关闭弹框
  1269. this.goShow = false;
  1270. Cookies.set("/credit/goFinance/"+this.form.zfiId + "/", this.$route.fullPath)
  1271. this.$router.push({ path: "/credit/goFinance/"+this.form.zfiId + "/" });
  1272. },
  1273. //返回到列表页
  1274. goParent(){
  1275. var self = this
  1276. this.pdfShowDialog = false;
  1277. self.$store.dispatch(
  1278. "tagsView/delView",
  1279. self.$route
  1280. );
  1281. //self.$router.push("/Bill/credit")
  1282. self.$router.push("/Bill/finance/credit")
  1283. },
  1284. /* 金额展示 */
  1285. handleInput(str) {
  1286. return amtformat(str, 2, ".", ",");
  1287. },
  1288. }
  1289. };
  1290. </script>
  1291. <style lang="scss">
  1292. .uoloadfj .el-upload--picture-card{
  1293. width:110px;
  1294. height:110px;
  1295. line-height:110px;
  1296. }
  1297. .fjUoloadSty .el-upload--picture-card{
  1298. display:none;
  1299. }
  1300. table th.star div::before {
  1301. content: '*';
  1302. color: red;
  1303. }
  1304. </style>