list.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. <template>
  2. <a-card size="small" :bordered="false" class="finacialPay-wrap">
  3. <a-spin :spinning="spinning" tip="Loading...">
  4. <!-- 标签页 -->
  5. <a-tabs type="card" size="small" v-model="queryParam.bizType" @change="handleTabChange" class="finacialPay-tabs">
  6. <a-tab-pane v-for="item in tabPaneData" :key="item.bizType" :id="'finacialPay-tabs-'+item.bizType">
  7. <span slot="tab">{{ item.bizName }}({{ item.countNum }})</span>
  8. </a-tab-pane>
  9. </a-tabs>
  10. <!-- 搜索条件 -->
  11. <div ref="tableSearch" class="table-page-search-wrapper">
  12. <a-form layout="inline" @keyup.enter.native="searchForm">
  13. <a-row :gutter="15">
  14. <a-col :md="6" :sm="24">
  15. <a-form-item label="付款单号"><a-input id="finacialPay-settleNo" v-model.trim="queryParam.settleNo" allowClear placeholder="请输入付款单号" /></a-form-item>
  16. </a-col>
  17. <a-col :md="6" :sm="24">
  18. <a-form-item label="关联单号"><a-input id="finacialPay-bizNo" v-model.trim="queryParam.bizNo" allowClear placeholder="请输入关联单号" /></a-form-item>
  19. </a-col>
  20. <a-col :md="6" :sm="24">
  21. <a-form-item label="商户名称">
  22. <a-input id="finacialPay-settleClientName" v-model.trim="queryParam.settleClientNameCurrent" allowClear placeholder="请输入商户名称" />
  23. </a-form-item>
  24. </a-col>
  25. <template v-if="advanced">
  26. <a-col :md="6" :sm="24">
  27. <a-form-item label="财务状态">
  28. <v-select
  29. v-model="queryParam.billState"
  30. ref="settleState"
  31. @change="setIsHomeNav($route.name, null)"
  32. id="finacialPay-settleState"
  33. code="SETTLE_PAY_STATUS"
  34. placeholder="请选择财务状态"
  35. allowClear></v-select>
  36. </a-form-item>
  37. </a-col>
  38. <a-col :md="6" :sm="24">
  39. <a-form-item label="创建时间">
  40. <rangeDate id="finacialPay-createDate" ref="createDate" @change="createDateChange" />
  41. </a-form-item>
  42. </a-col>
  43. <a-col :md="6" :sm="24">
  44. <a-form-item label="审核时间">
  45. <rangeDate id="finacialPay-createDate" ref="rangeDate" @change="dateChange" />
  46. </a-form-item>
  47. </a-col>
  48. <a-col :md="6" :sm="24">
  49. <a-form-item label="付款时间">
  50. <rangeDate id="finacialPay-createDate" ref="settleDate" @change="settleChange" />
  51. </a-form-item>
  52. </a-col>
  53. </template>
  54. <a-col :md="6" :sm="24">
  55. <span class="table-page-search-submitButtons">
  56. <a-button type="primary" @click="searchForm()" :disabled="disabled" id="finacialPay-refresh">查询</a-button>
  57. <a-button style="margin-left: 5px" @click="resetSearchForm()" :disabled="disabled" id="finacialPay-reset">重置</a-button>
  58. <a @click="advanced = !advanced" style="margin-left: 5px" id="finacialPay-advanced">
  59. {{ advanced ? '收起' : '展开' }}
  60. <a-icon :type="advanced ? 'up' : 'down'" />
  61. </a>
  62. </span>
  63. </a-col>
  64. </a-row>
  65. </a-form>
  66. </div>
  67. <!-- alert -->
  68. <a-alert type="info" style="margin-bottom:10px">
  69. <div slot="message">
  70. <strong>{{ totalData&&(totalData.count || totalData.count==0) ? totalData.count : '--' }}</strong>
  71. 条记录,应付金额合计
  72. <strong>{{ totalData&&(totalData.totalAmount || totalData.totalAmount==0) ? toThousands(totalData.totalAmount) : '--' }}</strong>
  73. ,其中已付金额
  74. <strong>{{ totalData&&(totalData.settledAmount || totalData.settledAmount==0) ? toThousands(totalData.settledAmount) : '--' }}</strong>
  75. ,待付金额
  76. <strong>{{ totalData&&(totalData.unsettleAmount || totalData.unsettleAmount==0) ? toThousands(totalData.unsettleAmount) : '--' }}</strong>
  77. </div>
  78. </a-alert>
  79. <div v-if="$hasPermissions('B_financialPaymentPl')" style="margin-bottom: 10px">
  80. <a-button type="primary" id="finacialPay-export" :loading="loading" @click="enableFundAccount ? handleSettleAcountPay(null,1) : handlePayment()">批量付款</a-button>
  81. <span style="margin-left: 8px" v-if="$hasPermissions('B_financialPaymentPl')">
  82. <template v-if="rowSelectionInfo&&rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
  83. <template v-if="selectTotalAmount">,合计 {{ toThousands(selectTotalAmount) }}</template>
  84. </span>
  85. </div>
  86. <!-- 列表 -->
  87. <s-table
  88. class="sTable fixPagination"
  89. ref="table"
  90. :style="{ height: tableHeight+84.5+'px' }"
  91. size="small"
  92. :rowKey="record => record.id"
  93. :row-selection="$hasPermissions('B_financialPaymentPl') ? { columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: record.settleState == 'SETTLED' } }) } : null"
  94. @rowSelection="rowSelectionFun"
  95. :columns="columns"
  96. :data="loadData"
  97. :scroll="{ y: tableHeight }"
  98. :defaultLoadData="false"
  99. bordered
  100. >
  101. <!-- 关联单号 -->
  102. <template slot="bizNo" slot-scope="text, record">
  103. <span :id="'finacialPay-advanced-'+record.id" v-if="$hasPermissions('B_purchaseDetail')||$hasPermissions('B_salesReturnDetail')||$hasPermissions('B_bulkWarehousingOrder_detail')||$hasPermissions('B_allocLinkagePutDetail')||$hasPermissions('B_expenseDetail')" class="table-td-link" @click="handleDetail(record)">{{ record.bizNo }}</span>
  104. <span v-else>{{ record.bizNo }}</span>
  105. </template>
  106. <!-- 客户名称 -->
  107. <template slot="customerName" slot-scope="text, record">
  108. <span v-if="record.settleClientType&&record.settleClientType=='CUSTOMER'">{{ record.settleClientNameCurrent||'--' }}</span>
  109. <span v-else>{{ record.settleClientName || '--' }}</span>
  110. </template>
  111. <!-- 操作 -->
  112. <template slot="action" slot-scope="text, record">
  113. <a-button
  114. size="small"
  115. type="link"
  116. class="button-primary"
  117. v-if="record.settleState == 'SETTLED' && $hasPermissions('B_financialPaymentDetail')"
  118. @click="handleVoucher(record)"
  119. :id="'finacialPay-voucher-'+record.id"
  120. >凭证</a-button>
  121. <a-button
  122. size="small"
  123. type="link"
  124. class="button-error"
  125. :loading="loading"
  126. v-else-if="record.settleState != 'SETTLED' && $hasPermissions('B_financialPaymentSing')"
  127. @click="enableFundAccount ? handleSettleAcountPay(record,0) : handlePay(record)"
  128. :id="'finacialPay-pay-'+record.id">付款</a-button>
  129. <span v-else>--</span>
  130. </template>
  131. </s-table>
  132. </a-spin>
  133. <!-- 详情 -->
  134. <detail-modal :openModal="openModal" ref="detailModal" @close="openModal = false" />
  135. <!-- 收付款弹框 -->
  136. <settleModal ref="settleModal" @ok="settleAcountPay" :openModal="openSettleModal" @close="openSettleModal=false"></settleModal>
  137. <!-- 关联单号详情 -->
  138. <a-modal
  139. centered
  140. class="bizOrderDetail-modal"
  141. :footer="null"
  142. :maskClosable="false"
  143. :bodyStyle="{padding:'12px'}"
  144. :title="curBizTitle"
  145. v-model="openDetailModal"
  146. v-if="openDetailModal"
  147. @cancel="handleDetailClose"
  148. :width="fcBizType=='COST'?'50%':'80%'">
  149. <div style="max-height: 700px;overflow-y: auto;">
  150. <!-- 采购入库 -->
  151. <purchasDetail v-if="fcBizType=='PURCHASE'" :outBizSn="orderSn" />
  152. <stockOrderDetail v-if="fcBizType=='PURCHASE-FH'" :outBizSn="orderSn" />
  153. <!-- 销售退货 -->
  154. <salesReturnDetail v-if="fcBizType=='SELL_REFUND'" :outBizSn="orderSn" />
  155. <!-- 连锁调入 -->
  156. <chainTransInDetail v-if="fcBizType=='LINKAGE_CALL_IN'" :outBizSn="orderSn" />
  157. <!-- 散件入库 -->
  158. <bulkWareDetail v-if="fcBizType=='PARTS_INPUT'" :outBizSn="orderSn" />
  159. <!-- 费用 -->
  160. <expenseDetail v-if="fcBizType=='COST'" :outBizSn="orderSn" ></expenseDetail>
  161. </div>
  162. </a-modal>
  163. </a-card>
  164. </template>
  165. <script>
  166. import { commonMixin } from '@/utils/mixin'
  167. import { mapActions } from 'vuex'
  168. import { STable, VSelect } from '@/components'
  169. import detailModal from './detailModal.vue'
  170. import settleModal from '../settleModal/settleModal.vue'
  171. import rangeDate from '@/views/common/rangeDate.vue'
  172. import purchasDetail from '@/views/purchasingManagement/purchaseOrder/detail'
  173. import stockOrderDetail from '@/views/purchasingManagement/signWarehousing/stockOrderDetail'
  174. import salesReturnDetail from '@/views/salesManagement/salesReturn/detail'
  175. import chainTransInDetail from '@/views/allocationManagement/chainTransferIn/detail'
  176. import bulkWareDetail from '@/views/bulkManagement/bulkWarehousingOrder/detail'
  177. import expenseDetail from './expenseDetail'
  178. // 接口
  179. import { settlePayQuery, queryByTypeSum, settlePayMoney, settlePayQuerySum } from '@/api/settlePay.js'
  180. export default {
  181. name: 'FinancialPaymentList',
  182. components: { STable, VSelect, detailModal, rangeDate, settleModal, salesReturnDetail, chainTransInDetail, bulkWareDetail, expenseDetail, purchasDetail, stockOrderDetail },
  183. mixins: [commonMixin],
  184. data () {
  185. const _this = this
  186. return {
  187. spinning: false,
  188. advanced: true, // 高级搜索 展开/关闭
  189. disabled: false, // 查询、重置按钮是否可操作
  190. openModal: false, // 详情弹框
  191. openSettleModal: false, // 打开付款弹框
  192. enableFundAccount: false, // 是否开启资金账户管理
  193. tableHeight: 0, // 表格高度
  194. curBizType: 'ALL', // 当前tabs
  195. openDetailModal: false, // 关联单详情
  196. curBizTitle: '', // 关联单号详情标题
  197. fcBizType: '', // 关联单号类型
  198. orderSn: null, // 单据sn
  199. // 查询参数
  200. queryParam: {
  201. bizType: 'ALL', // 业务类型
  202. settleNo: '', // 付款单号
  203. bizNo: '', // 关联单号
  204. settleClientNameCurrent: '', // 客户名称
  205. billState: '', // 单据状态
  206. auditBeginDate: '', // 审核开始时间
  207. auditEndDate: '', // 审核结束时间
  208. settleBeginDate: '', // 结算开始时间
  209. settleEndDate: ''// 结算结束时间
  210. },
  211. // 总计
  212. totalData: {
  213. settledAmount: 0, // 已付金额
  214. totalAmount: 0, // 应付金额
  215. unsettleAmount: 0, // 待付金额
  216. count: 0 // 总数
  217. },
  218. // 表头
  219. columns: [
  220. { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
  221. { title: '付款单号', dataIndex: 'settleNo', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
  222. { title: '关联单号', dataIndex: 'bizNo', scopedSlots: { customRender: 'bizNo' }, width: '14%', align: 'center' },
  223. { title: '商户名称', width: '10%', align: 'center', scopedSlots: { customRender: 'customerName' } },
  224. { title: '应付金额', dataIndex: 'totalAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
  225. { title: '已付金额', dataIndex: 'settledAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
  226. { title: '待付金额', dataIndex: 'unsettleAmount', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
  227. { title: '单据类型', dataIndex: 'bizName', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
  228. { title: '付款方式', dataIndex: 'settleStyleName', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
  229. { title: '创建时间', dataIndex: 'createDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
  230. { title: '审核时间', dataIndex: 'auditTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
  231. { title: '付款时间', dataIndex: 'settleTime', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
  232. { title: '操作', scopedSlots: { customRender: 'action' }, width: '5%', align: 'center' }
  233. ],
  234. loading: false,
  235. // 加载数据方法 必须为 Promise 对象
  236. loadData: parameter => {
  237. this.disabled = true
  238. this.spinning = true
  239. return settlePayQuery(Object.assign(parameter, this.queryParam)).then(res => {
  240. let data
  241. if (res.status == 200) {
  242. data = res.data
  243. const no = (data.pageNo - 1) * data.pageSize
  244. for (var i = 0; i < data.list.length; i++) {
  245. data.list[i].no = no + i + 1
  246. }
  247. this.disabled = false
  248. this.totalData.count = data.count || 0
  249. // 查询总计
  250. this.settlePayQuerySum(Object.assign(parameter, this.queryParam))
  251. }
  252. this.spinning = false
  253. return data
  254. })
  255. },
  256. tabPaneData: [], // tab 数据
  257. rowSelectionInfo: null // 已选行
  258. }
  259. },
  260. computed: {
  261. // 已选总金额
  262. selectTotalAmount () {
  263. let ret = 0
  264. if (this.rowSelectionInfo && this.rowSelectionInfo.selectedRows) {
  265. this.rowSelectionInfo.selectedRows.map(item => {
  266. ret = ret + item.unsettleAmount
  267. })
  268. }
  269. return ret ? Number(ret).toFixed(2) : 0
  270. }
  271. },
  272. methods: {
  273. ...mapActions(['GetSettleAccountState']),
  274. // 查看关联单号
  275. handleDetail (row) {
  276. this.orderSn = row.bizSn
  277. this.fcBizType = row.bizType
  278. // 采购但
  279. if (row.bizType == 'PURCHASE') {
  280. if (row.bizNo.indexOf('FH') >= 0) {
  281. this.fcBizType = this.fcBizType + '-FH'
  282. }
  283. if (row.bizNo.indexOf('SH') >= 0) {
  284. this.fcBizType = this.fcBizType + '-FH'
  285. }
  286. }
  287. this.curBizTitle = row.bizTypeDictValue + '详情'
  288. this.openDetailModal = true
  289. },
  290. // 查看关联单号弹框关闭
  291. handleDetailClose () {
  292. this.openDetailModal = false
  293. this.fcBizType = null
  294. this.orderSn = null
  295. },
  296. // 表格选中项
  297. rowSelectionFun (obj) {
  298. console.log(obj)
  299. this.rowSelectionInfo = obj || null
  300. },
  301. // 审核时间 change
  302. dateChange (date) {
  303. this.queryParam.auditBeginDate = date[0]
  304. this.queryParam.auditEndDate = date[1]
  305. },
  306. // 创建时间
  307. createDateChange (date) {
  308. this.queryParam.beginDate = date[0]
  309. this.queryParam.endDate = date[1]
  310. },
  311. // 结算时间
  312. settleChange (date) {
  313. this.queryParam.settleBeginDate = date[0]
  314. this.queryParam.settleEndDate = date[1]
  315. },
  316. // 总计
  317. settlePayQuerySum (params) {
  318. settlePayQuerySum(params).then(res => {
  319. if (res.status == 200) {
  320. this.totalData = Object.assign(this.totalData, res.data)
  321. const tab = this.tabPaneData.find(item => item.bizType == this.queryParam.bizType)
  322. tab.countNum = this.totalData.count || 0
  323. }
  324. })
  325. },
  326. // 获取类型
  327. queryByTypeSum () {
  328. queryByTypeSum({}).then(res => {
  329. if (res.data && res.status == 200) {
  330. this.tabPaneData = res.data
  331. if (this.curBizType == 'ALL') {
  332. this.queryParam.bizType = res.data[0].bizType
  333. }
  334. this.$refs.table.refresh(true)
  335. }
  336. })
  337. },
  338. // 打开凭证弹框
  339. handleVoucher (row) {
  340. this.$refs.detailModal.getDetail(row.id)
  341. this.openModal = true
  342. },
  343. // 开启结算账户功能付款, type:0 单条付款,1 批量付款
  344. handleSettleAcountPay (row, type) {
  345. this.openSettleModal = true
  346. const data = {
  347. totalAmount: type ? this.selectTotalAmount : row && row.unsettleAmount || 0,
  348. settleClientNameCurrent: type ? '' : row && row.settleClientNameCurrent || '',
  349. title: '付款',
  350. type,
  351. row
  352. }
  353. this.$nextTick(() => {
  354. this.$refs.settleModal.setData(data)
  355. })
  356. },
  357. // 去付款
  358. settleAcountPay (form, data) {
  359. const _this = this
  360. const params =
  361. {
  362. 'settleIds': data.type ? _this.rowSelectionInfo && _this.rowSelectionInfo.selectedRowKeys : [data.row.id]
  363. }
  364. // 资金管理开启
  365. if (this.enableFundAccount) {
  366. params.settleStyleSn = form.settleStyleSn
  367. params.settleAccountSn = form.settleAccountSn
  368. }
  369. _this.loading = true
  370. _this.spinning = true
  371. settlePayMoney(params).then(res => {
  372. _this.loading = false
  373. if (res.status == 200) {
  374. _this.$message.success(res.message)
  375. _this.$refs.table.refresh()
  376. _this.$refs.table.clearSelected() // 清空表格选中项
  377. _this.spinning = false
  378. } else {
  379. _this.spinning = false
  380. }
  381. })
  382. },
  383. // 付款确认框
  384. handlePay (row) {
  385. const _this = this
  386. this.$confirm({
  387. title: '提示',
  388. content: <div style="text-align:center"><p style="margin-top:20px;">{row.settleClientNameCurrent}</p><p>付款单号:{row.settleNo},合计{ this.toThousands(row.unsettleAmount) }</p><p>确认付款吗?</p></div>,
  389. centered: true,
  390. closable: true,
  391. class: 'confirm-center',
  392. onOk () {
  393. _this.settleAcountPay(null, { type: 0, row: row })
  394. }
  395. })
  396. },
  397. // 切换tab
  398. handleTabChange (key) {
  399. this.queryParam.bizType = key
  400. this.$refs.table.refresh(true)
  401. this.curBizType = key
  402. },
  403. // 批量付款
  404. handlePayment () {
  405. if (!this.rowSelectionInfo || (this.rowSelectionInfo && this.rowSelectionInfo.selectedRowKeys.length < 1)) {
  406. this.$message.warning('请在列表勾选后再进行批量操作!')
  407. return
  408. }
  409. const _this = this
  410. this.$confirm({
  411. title: '提示',
  412. content: <div style="text-align:center"><p style="margin-top:20px;">共计{this.rowSelectionInfo.selectedRowKeys.length}单,合计金额{ _this.toThousands(this.selectTotalAmount) } </p><p>确认批量付款吗?</p></div>,
  413. centered: true,
  414. closable: true,
  415. class: 'confirm-center',
  416. onOk () {
  417. _this.settleAcountPay(null, { type: 1, row: null })
  418. }
  419. })
  420. },
  421. // 查询
  422. searchForm () {
  423. this.$refs.table.clearSelected() // 清空表格选中项
  424. this.$refs.table.refresh(true)
  425. },
  426. // 重置
  427. resetSearchForm () {
  428. this.resetData()
  429. this.$refs.table.refresh(true)
  430. },
  431. // 重置数据
  432. resetData () {
  433. if (this.advanced) {
  434. this.$refs.rangeDate.resetDate()
  435. this.$refs.createDate.resetDate()
  436. this.$refs.settleDate.resetDate()
  437. }
  438. this.$refs.table.clearSelected() // 清空表格选中项
  439. this.queryParam = {
  440. bizType: this.curBizType,
  441. settleNo: '',
  442. bizNo: '',
  443. settleClientNameCurrent: '',
  444. billState: '',
  445. beginDate: '',
  446. endDate: '',
  447. auditBeginDate: '',
  448. auditEndDate: '',
  449. settleBeginDate: '',
  450. settleEndDate: ''
  451. }
  452. },
  453. // 页面初始化
  454. pageInit () {
  455. const _this = this
  456. this.$nextTick(() => { // 页面渲染完成后的回调
  457. _this.setTableH()
  458. })
  459. this.queryByTypeSum()
  460. },
  461. // 计算表格高度
  462. setTableH () {
  463. const tableSearchH = this.$refs.tableSearch.offsetHeight
  464. this.tableHeight = window.innerHeight - tableSearchH - 330
  465. }
  466. },
  467. watch: {
  468. advanced (newValue, oldValue) {
  469. const _this = this
  470. this.$nextTick(() => { // 页面渲染完成后的回调
  471. _this.setTableH()
  472. })
  473. },
  474. '$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
  475. this.setTableH()
  476. }
  477. },
  478. mounted () {
  479. if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
  480. this.resetData()
  481. this.pageInit()
  482. }
  483. },
  484. activated () {
  485. // 是否从首页点击进入
  486. const isHomeNav = this.getIsHomeNav()[this.$route.name]
  487. console.log(this.getIsHomeNav(), isHomeNav, this.$route.name)
  488. // 待办查询
  489. if (isHomeNav && isHomeNav.type == 'todo') {
  490. this.resetData()
  491. this.curBizType = isHomeNav.pageParams.bizType
  492. this.$refs.createDate.resetDate([isHomeNav.pageParams.beginDate, isHomeNav.pageParams.endDate])
  493. this.queryParam = Object.assign(this.queryParam, isHomeNav.pageParams)
  494. this.pageInit()
  495. } else {
  496. // 如果是新页签打开,则重置当前页面
  497. if (this.$store.state.app.isNewTab) {
  498. this.curBizType = 'ALL'
  499. this.resetData()
  500. this.pageInit()
  501. }
  502. }
  503. // 结算账户状态查询
  504. if (this.$hasPermissions('M_fundAccountList') && this.$hasPermissions('B_fundAccountEnable')) {
  505. this.GetSettleAccountState().then(res => {
  506. if (res.status == 200) {
  507. this.enableFundAccount = res.data.functionEnableFlag == 1
  508. }
  509. })
  510. }
  511. },
  512. beforeRouteEnter (to, from, next) {
  513. next(vm => {})
  514. }
  515. }
  516. </script>
  517. <style lang="less">
  518. .finacialPay-wrap{
  519. .finacialPay-tabs.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container{
  520. height: 30px!important;
  521. }
  522. .finacialPay-tabs.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{
  523. height: 30px!important;
  524. }
  525. .finacialPay-tabs.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{
  526. line-height: 26px!important;
  527. height: 30px!important;
  528. }
  529. }
  530. </style>