financeOpen.vue 45 KB

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