addInformation.vue 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320
  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 pdfShow from "./pdfShow";
  361. import Cookies from 'js-cookie';
  362. export default {
  363. name: "addCredit",
  364. components: {AddBill,pdfShow,EditBill},
  365. data() {
  366. return {
  367. //往来账款id
  368. zbiId: '',
  369. // 总条数
  370. total: 0,
  371. // 表单参数read
  372. form: {
  373. },
  374. // 表单校验
  375. rules: {
  376. },
  377. financeSignForm:{},
  378. // 是否显示弹出层
  379. open: false,
  380. openAddBill: false,
  381. openEditBill: false,
  382. //选择的应收账款
  383. payList:[],
  384. //现有的应收账款
  385. ticketList:[],
  386. //签发金额大写
  387. issuedAmount:"零元整",
  388. //合计选中的应收账款的金额
  389. checkTotalAmt:"0.00",
  390. //合计选中的应收账款的大写金额
  391. checkTotalBigAmt:"零元整",
  392. //接收方
  393. supplierList:[],
  394. supplierForm:{},
  395. queryParamsPay: {
  396. pageNum: 1,
  397. pageSize: 10,
  398. zbiName:null
  399. },
  400. //授信额度
  401. creditLineList:[],
  402. //可用额度
  403. availableAmt:"0.00",
  404. //有效期
  405. validityDate:"",
  406. //有效期类型
  407. zfpcrDateType:"" ,
  408. //产品是否可拆分
  409. zfpSplit:"",
  410. //融资放款方式
  411. zfpcrLoanType:"",
  412. //产品编号
  413. zfpId:"",
  414. //标题
  415. payTitle:"",
  416. //利率
  417. zfiRate:"",
  418. //授信额度
  419. creditParams: {
  420. zfpcrId:null,
  421. type:'1'
  422. },
  423. //合同附件
  424. contractFileList:[],
  425. //发票附件
  426. invoiceFileList:[],
  427. //其他文件
  428. otherFileList:[] ,
  429. //盖章文件
  430. creditSealList:[],
  431. //开立方编号
  432. zfiCoreId:"",
  433. //接收方
  434. zfiSupplierId:"",
  435. openFile:false,
  436. wordUrl: "",
  437. show:false,
  438. heid:false,
  439. chooseTicket:[],
  440. payDate:null,
  441. //内部审批控制
  442. isHas:true,
  443. //提交按钮
  444. submitButton:true,
  445. //签收按钮
  446. signButton:true,
  447. pdfFileList : [],
  448. pdfShowDialog : false,
  449. parent : this,
  450. //平台审批状态
  451. zfiPlatformStatus:"",
  452. //显示去融资框
  453. goShow:false
  454. };
  455. },
  456. /* watch:{
  457. 'form.zfiCoreQuotaId':'change'
  458. }, */
  459. activated() {
  460. const zfiId = this.$route.params && this.$route.params.zfiId;
  461. getCreditDetail(zfiId).then((response) => {
  462. if(response.data){
  463. //接收方编号
  464. /* this.supplierForm.zfiSupplierId = response.data.financeInf.zfiSupplierId;
  465. getReceiverList(this.supplierForm).then((response) => {
  466. this.supplierList = response.data.records.map(item => {
  467. return { value: item.scyId, label: item.scyName};
  468. });
  469. });
  470. this.listCreditLine(response.data); */
  471. this.form = response.data.financeInf;
  472. //开立方
  473. this.form.openName = response.data.openName;
  474. //接收方
  475. this.form.receiveName = response.data.receiveName;
  476. //产品
  477. this.form.zfpName = response.data.zfpName;
  478. //创建人
  479. this.form.createName = response.data.createName;
  480. //签发金额大写
  481. this.issuedAmount = this.smallToBig(this.form.zfiAmount);
  482. //开立方编号
  483. this.zfiCoreId = response.data.financeInf.zfiCoreId;
  484. //接收方
  485. this.zfiSupplierId = response.data.financeInf.zfiSupplierId;
  486. //平台
  487. this.zfiPlatformStatus = response.data.zfiPlatformStatus;
  488. }
  489. if(response.data.payList){
  490. this.ticketList = response.data.payList.records;
  491. this.getReTotal(this.ticketList);
  492. //附件
  493. this.getFile(this.ticketList);
  494. }
  495. //盖章合同
  496. this.getCreditSealFile();
  497. //判断有无开启审批
  498. this.isOpenApproval();
  499. })
  500. },
  501. methods: {
  502. // 取消按钮
  503. cancel() {
  504. this.$store.dispatch("tagsView/delView", this.$route);
  505. this.$router.go(-1);
  506. },
  507. /* 多选框跨页 */
  508. rowkeyCustomer(row) {
  509. return row.cciId;
  510. },
  511. //获取附件信息
  512. getFile(datas){
  513. var queryParamsFile = {};
  514. queryParamsFile.ticketList = datas;
  515. getFile(queryParamsFile).then((response) => {
  516. if(response.data){
  517. //获取发票文件
  518. this.invoiceFileList = response.data.invoiceFileList;
  519. //获取合同文件
  520. this.contractFileList = response.data.contractFileList;
  521. //获取其他文件
  522. this.otherFileList = response.data.otherFileList;
  523. }
  524. });
  525. },
  526. //获取盖章文件
  527. getCreditSealFile(){
  528. getCreditSealFile(this.form).then((response) => {
  529. if(response.data.list){
  530. this.creditSealList = response.data.list;
  531. }
  532. });
  533. },
  534. resetQuerys() {
  535. this.resetForm("formQuery");
  536. this.handleQuerys();
  537. },
  538. //回到父页
  539. cancelGo(){
  540. this.goShow = false;
  541. this.$store.dispatch(
  542. "tagsView/delView",
  543. this.$route
  544. );
  545. this.$router.go(-1);
  546. },
  547. handleQuerys() {
  548. this.queryParamsPay.pageNum = 1;
  549. this.getAccountsCollection();
  550. },
  551. //打开应收账款选择列表
  552. openTicket() {
  553. this.queryParamsPay.zbiName = "";
  554. this.queryParamsPay.pageNum = 1;
  555. this.getAccountsCollection();
  556. this.open = true;
  557. this.payTitle = "应收账款";
  558. },
  559. //核心授信额度
  560. /* listCreditLine(data){
  561. this.creditParams.zfpcrId = data.financeInf.zfiCoreQuotaId;
  562. listCreditLine(this.creditParams).then((response) => {
  563. this.creditLineList = response.data.map(item => {
  564. 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};
  565. });
  566. this.form = data.financeInf;
  567. //开立方
  568. this.form.openName = data.openName;
  569. //创建人
  570. this.form.createName = data.createName;
  571. //签发金额大写
  572. this.issuedAmount = this.smallToBig(this.form.zfiAmount);
  573. //开立方编号
  574. this.zfiCoreId = data.financeInf.zfiCoreId;
  575. //接收方
  576. this.zfiSupplierId = data.financeInf.zfiSupplierId;
  577. });
  578. }, */
  579. //应收账款查询列表
  580. getAccountsCollection() {
  581. //开立方
  582. this.queryParamsPay.payId = this.zfiCoreId;
  583. //接收方
  584. this.queryParamsPay.zfiSupplierId = this.zfiSupplierId;
  585. return getAccountsCollection(this.queryParamsPay).then((response) => {
  586. this.payList = response.data.records;
  587. this.selectChecked();
  588. this.total = response.data.total;
  589. return Promise.resolve(response)
  590. });
  591. },
  592. selectChecked() {
  593. //清空选择
  594.             this.$refs.tablePay && this.$refs.tablePay.clearSelection();
  595. this.ticketList.forEach((item) => {
  596. this.payList.forEach(row => {
  597. if (row.zbiId == item.zbiId) {
  598. this.$nextTick(() => {
  599. this.$refs.tablePay && this.$refs.tablePay.toggleRowSelection(row, true);
  600. })
  601. }
  602. });
  603. });
  604. //合计
  605. this.getReTotal(this.ticketList);
  606. //附件
  607. this.getFile(this.ticketList);
  608. },
  609. //文件下载
  610. handleDownload(row){
  611. debugger
  612. const pfiUrl = row.pfiUrl;
  613. if(pfiUrl != null && pfiUrl != ''){
  614. window.open(pfiUrl +"/"+ getToken());
  615. }else{
  616. this.$message({
  617. message: '该附件不存在!',
  618. type: 'warning'
  619. });
  620. return;
  621. }
  622. },
  623. /* 删除按钮 */
  624. handleDelete(index, rows) {
  625. rows.splice(index, 1);
  626. if(this.$refs.tablePay){
  627. this.$refs.tablePay.clearSelection();
  628. }
  629. this.selectChecked();
  630. },
  631. /* 修改按钮 */
  632. handleUpdate(index, rows) {
  633. this.zbiId = rows[index].zbiId;
  634. this.openEditBill = true
  635. },
  636. /* 多选框跨页 */
  637. rowkey(row) {
  638. return row.zbiId;
  639. },
  640. // 多选框选中数据
  641. handleSelectionChange(val) {
  642. this.chooseTicket = val
  643. },
  644. // 确认选择
  645. closeTicket() {
  646. if(this.chooseTicket.length > 0){
  647. var flag = true;
  648. //获取选中第一个的预计还款日期
  649. var zbiPayDate = this.chooseTicket[0].zbiPayDate;
  650. for(var i = 0 ;i < this.chooseTicket.length;i++){
  651. if(zbiPayDate != this.chooseTicket[i].zbiPayDate){
  652. flag = false;
  653. this.$message({
  654. message: '请选择预计还款日期相同的应收账款',
  655. type: 'warning'
  656. });
  657. break;
  658. }
  659. }
  660. if(flag){
  661. //合计
  662. this.getReTotal(this.chooseTicket);
  663. this.ticketList = this.chooseTicket;
  664. //更新附件信息
  665. this.getFile(this.ticketList);
  666. this.open = false;
  667. }
  668. }else{
  669. this.$message({
  670. message: '请选择应收账款',
  671. type: 'warning'
  672. });
  673. }
  674. },
  675. //重新合计
  676. getReTotal(chooseTicket){
  677. //合计
  678. this.checkTotalAmt = "0.00";
  679. for(var i = 0; i < chooseTicket.length;i++){
  680. this.checkTotalAmt = accAdd(this.checkTotalAmt,chooseTicket[i].zbiAmount,2);
  681. }
  682. this.checkTotalBigAmt = this.smallToBig(this.checkTotalAmt);
  683. this.checkTotalAmt = this.amtFormat(this.checkTotalAmt);
  684. },
  685. //取消选择按钮
  686. cancelTicket(){
  687. /* this.ticketList = [];
  688. if(this.$refs.tablePay){
  689. this.$refs.tablePay.clearSelection();
  690. } */
  691. this.open = false;
  692. },
  693. /** 清空选择信息 */
  694. deleteTicekt() {
  695. this.ticketList = [];
  696. this.checkTotalAmt = "0.00";
  697. this.checkTotalBigAmt = this.smallToBig(this.checkTotalAmt);
  698. if(this.$refs.tablePay){
  699. this.$refs.tablePay.clearSelection();
  700. }
  701. //更新附件
  702. this.getFile(this.ticketList);
  703. },
  704. /* 删除按钮 */
  705. handleDelete(index, rows) {
  706. rows.splice(index, 1);
  707. if(this.$refs.tablePay){
  708. this.$refs.tablePay.clearSelection();
  709. }
  710. this.selectChecked();
  711. },
  712. onSelectAll() {
  713. if(this.$refs.tablePay){
  714. this.$refs.tablePay.clearSelection();
  715. }
  716. },
  717. //格式化金额
  718. amtFormat(cellValue) {
  719. if(cellValue == null || cellValue== undefined || cellValue == ''){
  720. cellValue = '0.00'
  721. }
  722. cellValue += '';
  723.       if (!cellValue.includes('.')) {
  724. cellValue += '.00';
  725. }
  726.       return cellValue.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
  727.         return $1 + ',';
  728.       }).replace(/\.$/, '');
  729. },
  730. //获取签发金额大写
  731. getBigSmall(){
  732. this.issuedAmount = this.smallToBig(this.form.zfiAmount);
  733. },
  734. /* // 将数字金额转换为大写金额 */
  735. smallToBig(money) {
  736. // 将数字金额转换为大写金额
  737. var cnNums = new Array(
  738. "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" ); //汉字的数字
  739. var cnIntRadice = new Array("", "拾", "佰", "仟"); //基本单位
  740. var cnIntUnits = new Array("", "万", "亿", "兆"); //对应整数部分扩展单位
  741. var cnDecUnits = new Array("角", "分", "毫", "厘"); //对应小数部分单位
  742. var cnInteger = "整"; //整数金额时后面跟的字符
  743. var cnIntLast = "元"; //整数完以后的单位
  744. //最大处理的数字
  745. var maxNum = 999999999999999.9999;
  746. var integerNum; //金额整数部分
  747. var decimalNum; //金额小数部分
  748. //输出的中文金额字符串
  749. var chineseStr = "";
  750. var parts; //分离金额后用的数组,预定义
  751. if (money == "" || money == null || money == undefined) {
  752. return "零元零角零分";
  753. }
  754. money = parseFloat(money);
  755. if (money >= maxNum) {
  756. //超出最大处理数字
  757. return "超出最大处理数字";
  758. }
  759. if (money == 0) {
  760. chineseStr = cnNums[0] + cnIntLast + cnInteger;
  761. return chineseStr;
  762. }
  763. //四舍五入保留两位小数,转换为字符串
  764. money = Math.round(money * 100).toString();
  765. integerNum = money.substr(0, money.length - 2);
  766. decimalNum = money.substr(money.length - 2);
  767. //获取整型部分转换
  768. if (parseInt(integerNum, 10) > 0) {
  769. var zeroCount = 0;
  770. var IntLen = integerNum.length;
  771. for (var i = 0; i < IntLen; i++) {
  772. var n = integerNum.substr(i, 1);
  773. var p = IntLen - i - 1;
  774. var q = p / 4;
  775. var m = p % 4;
  776. if (n == "0") {
  777. zeroCount++;
  778. } else {
  779. if (zeroCount > 0) {
  780. chineseStr += cnNums[0];
  781. }
  782. //归零
  783. zeroCount = 0;
  784. chineseStr += cnNums[parseInt(n)] + cnIntRadice[m];
  785. }
  786. if (m == 0 && zeroCount < 4) {
  787. chineseStr += cnIntUnits[q];
  788. }
  789. }
  790. chineseStr += cnIntLast;
  791. }
  792. //小数部分
  793. if (decimalNum != "") {
  794. var decLen = decimalNum.length;
  795. for (var i = 0; i < decLen; i++) {
  796. var n = decimalNum.substr(i, 1);
  797. if (n != "0") {
  798. chineseStr += cnNums[Number(n)] + cnDecUnits[i];
  799. }
  800. }
  801. }
  802. if (chineseStr == "") {
  803. chineseStr += cnNums[0] + cnIntLast + cnInteger;
  804. } else if (decimalNum == "" || /^0*$/.test(decimalNum)) {
  805. chineseStr += cnInteger;
  806. }
  807. return chineseStr;
  808. },
  809. //选择授信触发
  810. /* change(val) {
  811. if (!val) {
  812. //可用额度
  813. this.availableAmt = "0.00";
  814. //有效期
  815. this.validityDate ="";
  816. //产品是否可拆分
  817. this.zfpSplit= "",
  818. //融资放款方式
  819. this.zfpcrLoanType = "";
  820. //产品
  821. this.zfpId = "";
  822. //利率
  823. this.zfiRate = "";
  824. return;
  825. }
  826. let obj = {};
  827. obj = this.creditLineList.find(item => {
  828. return item.value === val;
  829. });
  830. //获取有效期的类型
  831. this.zfpcrDateType = obj.zfpcrDateType;
  832. //产品是否可拆分
  833. this.zfpSplit= obj.zfpSplit;
  834. //放款方式
  835. this.zfpcrLoanType = obj.zfpcrLoanType;
  836. //产品
  837. this.zfpId = obj.zfpId;
  838. //利率
  839. this.zfiRate = obj.zfpcrRate;
  840. //长期
  841. if("0"== this.zfpcrDateType){
  842. this.validityDate = "长期";
  843. }else{
  844. this.validityDate = obj.zfpcrEndDate;
  845. }
  846. var lineQueryParam = {};
  847. lineQueryParam.zfpcrId = val;
  848. //获取可用额度
  849. getAvailableBalance(lineQueryParam).then((response) => {
  850. this.availableAmt = response.data.remaining;
  851. });
  852. }, */
  853. //内部审批
  854. submitForm(){
  855. this.$refs["form"].validate(valid => {
  856. if(this.ticketList.length < 1){
  857. this.$message({
  858. message: '请选择应收账款',
  859. type: 'warning'
  860. });
  861. return;
  862. }
  863. if(parseFloat(this.form.zfiAmount) > parseFloat(this.moneyDelete(this.checkTotalAmt))){
  864. this.$message({
  865. message: '签发金额不可大于合计金额',
  866. type: 'warning'
  867. });
  868. return;
  869. }
  870. if (valid) {
  871. const loading = this.$loading({
  872. lock: true,
  873. text: 'Loading',
  874. background: 'rgba(0, 0, 0,0)'
  875. });
  876. //如果签发金额小于合计金额
  877. if((parseFloat(this.form.zfiAmount)) < (parseFloat(this.moneyDelete(this.checkTotalAmt)))){
  878. var _this = this;
  879. this.$confirm('签发金额小于应收金额合计,是否确认提交', "警告", {
  880. confirmButtonText: "确定",
  881. cancelButtonText: "取消",
  882. type: "warning"
  883. }).then(function() {
  884. //应收账款
  885. _this.form.ticketList = _this.ticketList;
  886. addInfor(_this.form).then(response => {
  887. loading.close();
  888. _this.msgSuccess("融信资料已提交内部审批");
  889. _this.$store.dispatch("tagsView/delView", _this.$route);
  890. _this.$router.go(-1);
  891. }).catch((response)=>{
  892. loading.close();
  893. });
  894. }).catch((e) => {
  895. loading.close();
  896. });
  897. }else{
  898. //应收账款
  899. this.form.ticketList = this.ticketList;
  900. addInfor(this.form).then(response => {
  901. loading.close();
  902. this.msgSuccess("融信资料已提交内部审批");
  903. this.$store.dispatch("tagsView/delView", this.$route);
  904. this.$router.go(-1);
  905. }).catch((response)=>{
  906. loading.close();
  907. });
  908. }
  909. }
  910. });
  911. },
  912. //金额去掉千分位
  913. moneyDelete(num){
  914. if(num &&num != undefined && num != null){
  915. let _num = num;
  916. _num = _num.toString();
  917. _num = _num.replace(/,/gi,'');
  918. return _num;
  919. }else{
  920. return num;
  921. }
  922. },
  923. //预览
  924. handlePreview(row) {
  925. const pfiUrl = row.pfiUrl;
  926. const pfiFileName = row.pfiFileName;
  927. if (row.pfiUrl) {
  928. console.log(pfiFileName.substr(-3));
  929. if (pfiFileName.substr(-3) == "pdf") {
  930. this.wordUrl = pfiUrl + "/" + getToken();
  931. this.show=false;
  932. this.heid=true;
  933. } else if (
  934. pfiFileName.substr(-3) == "jpg" ||
  935. pfiFileName.substr(-3) == "png" ||
  936. pfiFileName.substr(-3) == "JPG" ||
  937. pfiFileName.substr(-3) == "PNG" ||
  938. pfiFileName.substr(-4) == "jpeg" ||
  939. pfiFileName.substr(-3) == "JPEG"
  940. ) {
  941. this.wordUrl =
  942. pfiUrl +
  943. "/" +
  944. getToken();
  945. this.show=true;
  946. this.heid=false;
  947. console.log("====>",this.wordUrl);
  948. } else if (
  949. pfiFileName.substr(-3) == "doc" ||
  950. pfiFileName.substr(-3) == "DOC"||
  951. pfiFileName.substr(-4) == "docx" ||
  952. pfiFileName.substr(-3) == "DOCX"
  953. ) {
  954. this.wordUrl =
  955. "https://view.officeapps.live.com/op/view.aspx?src=" +
  956. pfiUrl +
  957. "/" +
  958. getToken() +
  959. "/" +
  960. pfiFileName;
  961. this.show=false;
  962. this.heid=true;
  963. console.log("====>",this.wordUrl);
  964. } else {
  965. this.$message({
  966. message: "暂不支持该类型文件预览",
  967. type: "warning",
  968. });
  969. return;
  970. }
  971. }
  972. this.openFile = true;
  973. },
  974. //新增应付
  975. addPay(){
  976. //获取选中第一个的预计还款日期
  977. if(this.chooseTicket[0]){
  978. var zbiPayDate = this.chooseTicket[0].zbiPayDate;
  979. this.payDate = zbiPayDate;
  980. }
  981. if(this.form.zfiCoreId){
  982. this.openAddBill = true
  983. }else{
  984. this.$message({
  985. message: "开立方不能为空",
  986. type: "warning",
  987. });
  988. }
  989. },
  990. //新增账款回调
  991. emitAddClick(val){
  992. var self = this
  993. this.getAccountsCollection().then((response) => {
  994. //新增付款返回id直接选中
  995. if (val) {
  996. self.payList.forEach(element => {
  997. if(element.zbiId == val){
  998. // 将当前点击项选中
  999. self.chooseTicket.push(element)
  1000. self.closeTicket()
  1001. }
  1002. });
  1003. }
  1004. })
  1005. self.openAddBill = false
  1006. },
  1007. //修改账款回调
  1008. emitEditClick(val) {
  1009. var self = this
  1010. this.getAccountsCollection().then((response) => {
  1011. //修改付款返回id直接选中
  1012. if (val) {
  1013. // self.payList.forEach(element => {
  1014. // if (element.zbiId == val) {
  1015. // // 将当前点击项选中
  1016. // // self.chooseTicket.push(element)
  1017. // //self.closeTicket()
  1018. // }
  1019. // });
  1020. console.log(self.chooseTicket)
  1021. self.ticketList = self.chooseTicket
  1022. self.closeTicket()
  1023. }
  1024. })
  1025. self.openEditBill = false
  1026. },
  1027. //判断有无补充资料内部审批
  1028. isOpenApproval(){
  1029. console.log("1111");
  1030. // 平台审批通过
  1031. if (this.form.zfiPlatformStatus == '01') {
  1032. this.signButton = true;
  1033. this.isHas = false;
  1034. this.submitButton = false;
  1035. //如果显示签收,调起预览文件
  1036. this.getContractFile(true);
  1037. // 平台审批拒绝
  1038. } else if (this.form.zfiPlatformStatus == '02') {
  1039. // 融信状态为平台退回
  1040. if (this.form.zfiStatus == '06') {
  1041. // 判断是否有内部审批
  1042. var confirmParam = {};
  1043. confirmParam.menuId = "1000000003";
  1044. isOpenApproval(confirmParam).then((response) => {
  1045. var result = response.data.isOpen;
  1046. // 有内部审批
  1047. if (result) {
  1048. this.signButton = false;
  1049. this.isHas = true;
  1050. this.submitButton = false;
  1051. // 没有内部审批
  1052. } else {
  1053. // 判断是否有平台审批
  1054. var platParam = {};
  1055. platParam.menuId = "1000000004";
  1056. isOpenApproval(platParam).then((response) => {
  1057. var platResult = response.data.isOpen;
  1058. //开启平台审批,显示提交按钮
  1059. if(platResult){
  1060. this.submitButton = true;
  1061. this.isHas = false;
  1062. this.signButton = false;
  1063. //如果显示签收,调起预览文件
  1064. this.getContractFile(true);
  1065. }else{
  1066. //未开启平台审批,显示签收按钮
  1067. this.signButton = true;
  1068. this.submitButton = false;
  1069. this.isHas = false;
  1070. //如果显示签收,调起预览文件
  1071. this.getContractFile(true);
  1072. }
  1073. });
  1074. }
  1075. })
  1076. // 融信状态为 待签收
  1077. } else if(this.form.zfiStatus == '01') {
  1078. //不存在此情况
  1079. }
  1080. // 平台未审批
  1081. } else if (this.form.zfiPlatformStatus == null || this.form.zfiPlatformStatus == "04") {
  1082. // 融资审批状态
  1083. if (this.form.zfiSupplierStatus == '01') {
  1084. //不存在此情况
  1085. // 融资审批状态为拒绝 或者 为 null
  1086. } else if (this.form.zfiSupplierStatus == '02' || this.form.zfiSupplierStatus == null) {
  1087. // 判断是否有内部审批
  1088. var confirmParam = {};
  1089. confirmParam.menuId = "1000000003";
  1090. isOpenApproval(confirmParam).then((response) => {
  1091. var result = response.data.isOpen;
  1092. // 有内部审批
  1093. if (result) {
  1094. this.signButton = false;
  1095. this.isHas = true;
  1096. this.submitButton = false;
  1097. // 没有内部审批
  1098. } else {
  1099. // 判断是否有平台审批
  1100. var platParam = {};
  1101. platParam.menuId = "1000000004";
  1102. isOpenApproval(platParam).then((response) => {
  1103. var platResult = response.data.isOpen;
  1104. //开启平台审批,显示提交按钮
  1105. if(platResult){
  1106. this.submitButton = true;
  1107. this.isHas = false;
  1108. this.signButton = false;
  1109. }else{
  1110. //未开启平台审批,显示签收按钮
  1111. this.signButton = true;
  1112. this.submitButton = false;
  1113. this.isHas = false;
  1114. }
  1115. });
  1116. }
  1117. })
  1118. }
  1119. }
  1120. },
  1121. //拒签
  1122. refuse(){
  1123. creditRefuse(this.form).then(response => {
  1124. const loading = this.$loading({
  1125. lock: true,
  1126. text: 'Loading',
  1127. background: 'rgba(0, 0, 0,0)'
  1128. });
  1129. loading.close();
  1130. this.msgSuccess("该笔融信将作废");
  1131. this.$store.dispatch("tagsView/delView",this.$route);
  1132. this.$router.go(-1);
  1133. }).catch((response)=>{
  1134. loading.close();
  1135. });
  1136. },
  1137. //提交
  1138. submit(){
  1139. this.$refs["form"].validate(valid => {
  1140. if(this.ticketList.length < 1){
  1141. this.$message({
  1142. message: '请选择应收账款',
  1143. type: 'warning'
  1144. });
  1145. return;
  1146. }
  1147. if(parseFloat(this.form.zfiAmount) > parseFloat(this.moneyDelete(this.checkTotalAmt))){
  1148. this.$message({
  1149. message: '签发金额不可大于合计金额',
  1150. type: 'warning'
  1151. });
  1152. return;
  1153. }
  1154. if (valid) {
  1155. const loading = this.$loading({
  1156. lock: true,
  1157. text: 'Loading',
  1158. background: 'rgba(0, 0, 0,0)'
  1159. });
  1160. //如果签发金额小于合计金额
  1161. if((parseFloat(this.form.zfiAmount)) < (parseFloat(this.moneyDelete(this.checkTotalAmt)))){
  1162. var _this = this;
  1163. this.$confirm('签发金额小于应收金额合计,是否确认提交', "警告", {
  1164. confirmButtonText: "确定",
  1165. cancelButtonText: "取消",
  1166. type: "warning"
  1167. }).then(function() {
  1168. //应收账款
  1169. _this.form.ticketList = _this.ticketList;
  1170. addInfor(_this.form).then(response => {
  1171. loading.close();
  1172. _this.msgSuccess("平台正在审核资料,平台审核时间为工作日:9:00—18:00;单日16:00之前提交资料,预计2小时内完成,请平台审批通过后,再次签署");
  1173. _this.$store.dispatch("tagsView/delView", _this.$route);
  1174. _this.$router.go(-1);
  1175. }).catch((response)=>{
  1176. loading.close();
  1177. });
  1178. }).catch((e) => {
  1179. loading.close();
  1180. });
  1181. }else{
  1182. //应收账款
  1183. this.form.ticketList = this.ticketList;
  1184. addInfor(this.form).then(response => {
  1185. loading.close();
  1186. this.msgSuccess("平台正在审核资料,平台审核时间为工作日:9:00—18:00;单日16:00之前提交资料,预计2小时内完成,请平台审批通过后,再次签署");
  1187. this.$store.dispatch("tagsView/delView", this.$route);
  1188. this.$router.go(-1);
  1189. }).catch((response)=>{
  1190. loading.close();
  1191. });
  1192. }
  1193. }
  1194. });
  1195. },
  1196. //签收
  1197. sign(){
  1198. //预览文件
  1199. this.getContractFile();
  1200. },
  1201. //获取合同文件
  1202. getContractFile(nosign){
  1203. const loading = this.$loading({
  1204. lock: true,
  1205. text: 'Loading',
  1206. background: 'rgba(0, 0, 0,0)'
  1207. });
  1208. getContractFile(this.form).then((response) => {
  1209. loading.close();
  1210. if(response.data.list){
  1211. this.pdfFileList = response.data.list;
  1212. }
  1213. //文件存在
  1214. if(this.pdfFileList.length > 0 ){
  1215. this.pdfShowDialog = true;
  1216. }else{
  1217. /* this.$message({
  1218. message: '文件不存在!',
  1219. type: 'warning'
  1220. }); */
  1221. //文件不存在并且不是一进去页面调用的直接盖章
  1222. if (!nosign) {
  1223. this.contractSigning();
  1224. }
  1225. }
  1226. }).catch((response)=>{
  1227. loading.close();
  1228. });
  1229. },
  1230. closePdfShow(){
  1231. this.pdfShowDialog = false;
  1232. },
  1233. //盖章
  1234. contractSigning(){
  1235. const loading = this.$loading({
  1236. lock: true,
  1237. text: 'Loading',
  1238. background: 'rgba(0, 0, 0,0)'
  1239. });
  1240. contractSigning(this.form).then((response) => {
  1241. loading.close();
  1242. const zfiId = this.$route.params && this.$route.params.zfiId;
  1243. getFinanceSign(zfiId).then((response) => {
  1244. //融信编号
  1245. this.financeSignForm.zfiNumber = response.data.zfiNumber;
  1246. //融信金额
  1247. this.financeSignForm.zfiAmount = response.data.zfiAmount;
  1248. //利率
  1249. this.financeSignForm.zfiRate = response.data.zfiRate;
  1250. //最长融信期限
  1251. this.financeSignForm.intervalTime = response.data.intervalTime;
  1252. //融信有效期
  1253. this.financeSignForm.validity = response.data.validity;
  1254. this.goShow = true;
  1255. });
  1256. }).catch((response) => {
  1257. loading.close();
  1258. });
  1259. },
  1260. //去融资
  1261. goFinance(){
  1262. //关闭当前页
  1263. this.$store.dispatch(
  1264. "tagsView/delView",
  1265. this.$route
  1266. );
  1267. //关闭弹框
  1268. this.goShow = false;
  1269. Cookies.set("/credit/goFinance/"+this.form.zfiId + "/", this.$route.fullPath)
  1270. this.$router.push({ path: "/credit/goFinance/"+this.form.zfiId + "/" });
  1271. },
  1272. //返回到列表页
  1273. goParent(){
  1274. var self = this
  1275. this.pdfShowDialog = false;
  1276. self.$store.dispatch(
  1277. "tagsView/delView",
  1278. self.$route
  1279. );
  1280. //self.$router.push("/Bill/credit")
  1281. self.$router.push("/Bill/finance/credit")
  1282. },
  1283. /* 金额展示 */
  1284. handleInput(str) {
  1285. return amtformat(str, 2, ".", ",");
  1286. },
  1287. }
  1288. };
  1289. </script>
  1290. <style lang="scss">
  1291. .uoloadfj .el-upload--picture-card{
  1292. width:110px;
  1293. height:110px;
  1294. line-height:110px;
  1295. }
  1296. .fjUoloadSty .el-upload--picture-card{
  1297. display:none;
  1298. }
  1299. table th.star div::before {
  1300. content: '*';
  1301. color: red;
  1302. }
  1303. </style>