index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. <template>
  2. <basic-container>
  3. <avue-crud :option="option"
  4. :table-loading="loading"
  5. :data="data"
  6. :page.sync="page"
  7. :search.sync="query"
  8. v-model="form"
  9. ref="crud"
  10. id="out-table"
  11. :header-cell-class-name="headerClassName"
  12. @search-change="searchChange"
  13. @search-reset="searchReset"
  14. @current-change="currentChange"
  15. @size-change="sizeChange"
  16. @refresh-change="refreshChange"
  17. @resetColumn="resetColumnTwo('crud', 'option', 'optionBack', 333)"
  18. @saveColumn="saveColumnTwo('crud', 'option', 'optionBack', 333)"
  19. @on-load="onLoad" >
  20. <template slot="menuLeft">
  21. <el-button type="success" size="small" plain @click="exportfun" >导出</el-button>
  22. </template>
  23. <template slot="header">
  24. <el-table
  25. :data="commodityData"
  26. border
  27. size="small"
  28. @header-click="cellClick"
  29. style="width: 100%">
  30. <el-table-column
  31. v-for="(item,index) in commodityLabel" :key="index"
  32. :prop="item.prop"
  33. show-overflow-tooltip
  34. :label="item.label" />
  35. </el-table>
  36. </template>
  37. <template slot="etdDate" slot-scope="{ row }">
  38. <span>{{row.etdDate?row.etdDate.slice(0,10):''}}</span>
  39. </template>
  40. <template slot-scope="{disabled,size}" slot="dcSearch">
  41. <el-radio v-model="query.dc" label="D" @input="dcInput" >应收</el-radio>
  42. <el-radio v-model="query.dc" label="C" @input="dcInput" >应付</el-radio>
  43. </template>
  44. <template slot-scope="{disabled,size}" slot="typeSearch">
  45. <search-query :datalist="typeData"
  46. :selectValue="query.type"
  47. :buttonIf="false"
  48. @corpChange="corpChange($event,'type')">
  49. </search-query>
  50. </template>
  51. <template slot-scope="{disabled,size}" slot="businessTypeSearch">
  52. <search-query :datalist="businessTypeData"
  53. :selectValue="query.businessType"
  54. :clearable="true"
  55. :buttonIf="false"
  56. :forParameter="{ key:'dictKey', label:'dictValue', value:'dictKey'}"
  57. @corpFocus="businessTypeFocus"
  58. @corpChange="corpChange($event,'businessType')">
  59. </search-query>
  60. </template>
  61. <template slot-scope="{disabled,size}" slot="clientIdSearch">
  62. <search-query :datalist="clientIdData"
  63. :selectValue="query.clientName"
  64. :filterable="true"
  65. :remote="true"
  66. :clearable="true"
  67. :disabled="query.type != 2"
  68. :buttonIf="false"
  69. :forParameter="{key:'id',label:'cnName',value:'cnName'}"
  70. @remoteMethod="clientIdListfun"
  71. @corpFocus="clientIdListfun"
  72. @corpChange="corpChange($event,'clientName')">
  73. </search-query>
  74. </template>
  75. <template slot-scope="{disabled,size}" slot="corpIdSearch">
  76. <search-query :datalist="corpIdData"
  77. :selectValue="query.corpName"
  78. :disabled="query.type != 1"
  79. :filterable="true"
  80. :remote="true"
  81. :clearable="true"
  82. :buttonIf="false"
  83. :forParameter="{key:'id',label:'cnName',value:'cnName'}"
  84. @remoteMethod="getBcorpsListfun"
  85. @corpFocus="getBcorpsListfun"
  86. @corpChange="corpChange($event,'corpName')">
  87. </search-query>
  88. </template>
  89. <template slot-scope="{disabled,size}" slot="srcTypeSearch">
  90. <search-query :datalist="srcTypeData"
  91. :selectValue="query.srcType"
  92. :disabled="query.type != 3"
  93. :clearable="true"
  94. :buttonIf="false"
  95. :forParameter="{ key:'dictKey', label:'dictValue', value:'dictKey'}"
  96. @corpFocus="srcTypeWorkDictsfun"
  97. @corpChange="corpChange($event,'srcType')">
  98. </search-query>
  99. </template>
  100. <template slot-scope="{disabled,size}" slot="srcIdSearch">
  101. <search-query :datalist="srcIdData"
  102. :selectValue="query.srcName"
  103. :disabled="query.type != 3"
  104. :filterable="true"
  105. :remote="true"
  106. :clearable="true"
  107. :buttonIf="false"
  108. :forParameter="srcforParameter"
  109. @remoteMethod="srcCorpFocus"
  110. @corpFocus="srcCorpFocus"
  111. @corpChange="corpChange($event,'srcName')">
  112. </search-query>
  113. </template>
  114. <template slot-scope="{disabled,size}" slot="isBusinessDateSearch">
  115. <el-checkbox v-model="query.isBusinessDate" :true-label="1" :false-label="0" @change="dateChange('isBusinessDate')" >按业务日期</el-checkbox>
  116. <el-checkbox v-model="query.isToExamineDate" :true-label="1" :false-label="0" @change="dateChange('isToExamineDate')" >按审核日期</el-checkbox>
  117. </template>
  118. </avue-crud>
  119. </basic-container>
  120. </template>
  121. <script>
  122. import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
  123. import {CurrentMonth, dateFormat, defaultDate3, defaultDate4} from "@/util/date";
  124. import {
  125. financeStatisticsFeeSummaryDetail,
  126. financeStatisticsFeeSummaryDetailSum
  127. } from "@/api/iosBasicData/paymentSummary"
  128. import {getBcorpsList, getBcorpslistByType} from "@/api/iosBasicData/bcorps";
  129. import {getWorkDicts} from "@/api/system/dictbiz";
  130. import {getDeptLazyTree} from "@/api/system/dept";
  131. import {getList as userGetList} from '@/api/system/user'
  132. import {getToken} from "@/util/auth";
  133. export default {
  134. components: {SearchQuery},
  135. data(){
  136. return {
  137. form: {},
  138. loading: true,
  139. page: {
  140. pageSize: 10,
  141. currentPage: 1,
  142. total: 0
  143. },
  144. query: {
  145. dc:'D',
  146. isBusinessDate:1,
  147. isToExamineDate:0,
  148. type:'1',
  149. etdStart:defaultDate3()[0],
  150. etdEnd:defaultDate3()[1],
  151. },
  152. option:{},
  153. optionBack:{
  154. height:'auto',
  155. calcHeight: 30,
  156. tip: false,
  157. searchShow: true,
  158. searchMenuSpan: 12,
  159. border: true,
  160. index: false,
  161. selection: true,
  162. dialogClickModal: false,
  163. menu:false,
  164. addBtn:false,
  165. viewBtn:false,
  166. delBtn:false,
  167. editBtn:false,
  168. column:[
  169. {
  170. label: "结算单位",
  171. prop: "corpName",
  172. overHidden:true,
  173. },
  174. {
  175. label: "BILLNO",
  176. prop: "billNo",
  177. overHidden:true,
  178. },
  179. {
  180. label: "MBLNO",
  181. prop: "mblNo",
  182. overHidden:true,
  183. },
  184. {
  185. label: "ETD",
  186. prop: "etdDate",
  187. overHidden:true,
  188. },
  189. {
  190. label: "应收美金",
  191. prop: "amountUsd",
  192. overHidden:true,
  193. },
  194. {
  195. label: "应收人民币",
  196. prop: "amount",
  197. overHidden:true,
  198. },
  199. {
  200. label: "已收款美金",
  201. prop: "amountUsdAlready",
  202. overHidden:true,
  203. },
  204. {
  205. label: "已收款人民币",
  206. prop: "amountAlready",
  207. overHidden:true,
  208. },
  209. {
  210. label: "未收款美金",
  211. prop: "amountUsdNot",
  212. overHidden:true,
  213. },
  214. {
  215. label: "未收款人民币",
  216. prop: "amountNot",
  217. overHidden:true,
  218. },
  219. {
  220. label: "开票美金",
  221. prop: "amountInvoicingUsd",
  222. overHidden:true,
  223. },
  224. {
  225. label: "开票人民币",
  226. prop: "amountInvoicing",
  227. overHidden:true,
  228. },
  229. {
  230. label: "未开美金",
  231. prop: "amountInvoicingUsdNot",
  232. overHidden:true,
  233. },
  234. {
  235. label: "未开人民币",
  236. prop: "amountInvoicingNot",
  237. overHidden:true,
  238. },
  239. {
  240. label: "查询方式",
  241. prop: "type",
  242. hide:true,
  243. search:true,
  244. type: 'select',
  245. searchslot:true,
  246. },
  247. {
  248. label: "业务类型",
  249. prop: "businessType",
  250. hide:true,
  251. search:true,
  252. searchslot:true,
  253. },
  254. {
  255. label: "委托人",
  256. prop: "clientId",
  257. hide:true,
  258. search:true,
  259. searchslot:true,
  260. },
  261. {
  262. label: "结算单位",
  263. prop: "corpId",
  264. hide:true,
  265. search:true,
  266. searchslot:true,
  267. },
  268. {
  269. label: "业务来源",
  270. prop: "srcType",
  271. hide:true,
  272. search:true,
  273. searchslot:true,
  274. },
  275. {
  276. label: "业务员",
  277. prop: "srcId",
  278. hide:true,
  279. search:true,
  280. searchslot:true,
  281. },
  282. {
  283. label: "开始日期",
  284. prop: "etdStart",
  285. search:true,
  286. overHidden:true,
  287. hide:true,
  288. type: "date",
  289. format: "yyyy-MM-dd",
  290. valueFormat: "yyyy-MM-dd",
  291. },
  292. {
  293. label: "结束日期",
  294. prop: "etdEnd",
  295. search:true,
  296. overHidden:true,
  297. hide:true,
  298. type: "date",
  299. format: "yyyy-MM-dd",
  300. valueFormat: "yyyy-MM-dd",
  301. },
  302. {
  303. label: "",
  304. prop: "dc",
  305. hide:true,
  306. search:true,
  307. searchslot:true,
  308. searchLabelWidth:'0'
  309. },
  310. {
  311. label: "",
  312. prop: "isBusinessDate",
  313. hide:true,
  314. search:true,
  315. searchslot:true,
  316. searchLabelWidth:'0'
  317. },
  318. {
  319. label: "",
  320. prop: "isToExamineDate",
  321. hide:true,
  322. searchLabelWidth:'0',
  323. },
  324. ]
  325. },
  326. data:[],
  327. // 查询方式
  328. typeData:[
  329. {
  330. label:'结算单位',
  331. value:'1'
  332. },{
  333. label:'委托人',
  334. value:'2'
  335. },{
  336. label:'业务来源',
  337. value:'3'
  338. }
  339. ],
  340. // 业务类型
  341. businessTypeData:[],
  342. clientIdData:[], // 委托人
  343. corpIdData:[], // 结算单位
  344. srcTypeData:[], // 业务来源
  345. srcIdData:[], // 业务员
  346. srcforParameter:{key:'id', label:'cnName', value:'cnName'},
  347. commodityData:[], // 合计数据
  348. // 合计的配置项
  349. commodityLabel:[
  350. {
  351. id:1,
  352. label: "应收美金",
  353. prop: "amountUsd",
  354. },
  355. {
  356. id:2,
  357. label: "应收人民币",
  358. prop: "amount",
  359. },
  360. {
  361. id:3,
  362. label: "已收款美金",
  363. prop: "amountUsdAlready",
  364. },
  365. {
  366. id:4,
  367. label: "已收款人民币",
  368. prop: "amountAlready",
  369. },
  370. {
  371. id:5,
  372. label: "未收款美金",
  373. prop: "amountUsdNot",
  374. },
  375. {
  376. id:6,
  377. label: "未收款人民币",
  378. prop: "amountNot",
  379. },
  380. {
  381. id:7,
  382. label: "开票美金",
  383. prop: "amountInvoicingUsd",
  384. },
  385. {
  386. id:8,
  387. label: "开票人民币",
  388. prop: "amountInvoicing",
  389. },
  390. {
  391. id:9,
  392. label: "未开美金",
  393. prop: "amountInvoicingUsdNot",
  394. },
  395. {
  396. id:10,
  397. label: "未开人民币",
  398. prop: "amountInvoicingNot",
  399. },
  400. ],
  401. }
  402. },
  403. async created() {
  404. this.option = await this.getColumnData(this.getColumnName(333), this.optionBack);
  405. },
  406. methods:{
  407. // 导出
  408. exportfun(){
  409. const routeData = this.$router.resolve({
  410. path: '/api/blade-los/financeStatistics/feeSummaryDetailExport',//跳转目标窗口的地址
  411. query: {
  412. ...this.query
  413. }
  414. })
  415. window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
  416. },
  417. // 下拉监听
  418. corpChange(value,name){
  419. if (name == 'type') {
  420. if (value == 1) {
  421. this.$set(this.query,'clientId',null)
  422. this.$set(this.query,'clientName',null)
  423. this.$set(this.query,'srcType',null)
  424. this.$set(this.query,'srcId',null)
  425. this.$set(this.query,'srcName',null)
  426. this.findObject(this.option.column, "corpName").label = '结算单位'
  427. }else if (value == 2) {
  428. this.$set(this.query,'corpId',null)
  429. this.$set(this.query,'corpName',null)
  430. this.$set(this.query,'srcType',null)
  431. this.$set(this.query,'srcId',null)
  432. this.$set(this.query,'srcName',null)
  433. this.findObject(this.option.column, "corpName").label = '委托人'
  434. }else if (value == 3) {
  435. this.$set(this.query,'corpId',null)
  436. this.$set(this.query,'corpName',null)
  437. this.$set(this.query,'clientId',null)
  438. this.$set(this.query,'clientName',null)
  439. this.findObject(this.option.column, "corpName").label = '业务来源'
  440. }
  441. this.$set(this.query,name,value)
  442. }else if (name == 'corpName') {
  443. for (let item of this.corpIdData) {
  444. if (item.cnName == value) {
  445. this.$set(this.query,'corpId',item.id)
  446. this.$set(this.query,'corpName',item.cnName)
  447. }
  448. }
  449. } else if (name == 'clientName') {
  450. for (let item of this.clientIdData) {
  451. if (item.cnName == value) {
  452. this.$set(this.query,'clientId',item.id)
  453. this.$set(this.query,'clientName',item.cnName)
  454. }
  455. }
  456. }else if (name == 'srcType') {
  457. if (value == 'OWN') {
  458. // 公司
  459. this.srcforParameter = { key:'id', label:'title', value:'title'}
  460. this.findObject(this.option.column, "srcId").label = '公司'
  461. this.ownDeptLazyTreefun()
  462. }else if (value == 'AGENT') {
  463. // 代理
  464. this.srcforParameter = { key:'id', label:'cnName', value:'cnName'}
  465. this.findObject(this.option.column, "srcId").label = '代理'
  466. this.agentBcorpsListfun()
  467. }else if (value == 'SALES') {
  468. // 业务员
  469. this.srcforParameter = { key:'id', label:'name', value:'name'}
  470. this.findObject(this.option.column, "srcId").label = '业务员'
  471. this.salesUserGetListfun()
  472. }else {}
  473. this.$set(this.query,name,value)
  474. }else if (name == 'srcName') {
  475. for (let item of this.srcIdData) {
  476. if (item[this.srcforParameter.value] == value) {
  477. if (this.query.srcType == 'SALES') {
  478. // 业务员
  479. this.$set(this.query,'srcId',item.id)
  480. this.$set(this.query,'srcName',item.name)
  481. }else if (this.form.srcType == 'AGENT') {
  482. // 代理
  483. this.$set(this.query,'srcId',item.id)
  484. this.$set(this.query,'srcName',item.cnName)
  485. }else {
  486. this.$set(this.query,'srcId',item.id)
  487. this.$set(this.query,'srcName',item.title)
  488. }
  489. }
  490. }
  491. }
  492. this.$set(this.query,name,value)
  493. },
  494. // 业务员下拉
  495. srcCorpFocus(value,name){
  496. if (this.query.srcType == 'SALES') {
  497. // 业务员
  498. this.srcforParameter = { key:'id', label:'name', value:'name'}
  499. this.salesUserGetListfun(value)
  500. }else if (this.form.srcType == 'AGENT') {
  501. // 代理
  502. this.srcforParameter = { key:'id', label:'cnName', value:'cnName'}
  503. this.agentBcorpsListfun(value)
  504. }else if (this.form.srcType == 'OWN') {
  505. // 公司
  506. this.srcforParameter = { key:'id', label:'title', value:'title'}
  507. this.ownDeptLazyTreefun()
  508. }else {}
  509. },
  510. // 多选切换
  511. dateChange(name) {
  512. if (name == 'isBusinessDate') {
  513. this.$set(this.query,'isToExamineDate',0)
  514. this.$set(this.query,'isBusinessDate',1)
  515. }
  516. if (name == 'isToExamineDate') {
  517. this.$set(this.query,'isBusinessDate',0)
  518. this.$set(this.query,'isToExamineDate',1)
  519. }
  520. this.page.currentPage = 1;
  521. this.onLoad(this.page, this.query);
  522. },
  523. // 收付单选
  524. dcInput(){
  525. let dcName = ''
  526. if (this.query.dc == 'D') {
  527. dcName = '收'
  528. }else {
  529. dcName = '付'
  530. }
  531. this.findObject(this.option.column, "amountUsd").label = `应${dcName}美金`
  532. this.findObject(this.option.column, "amount").label = `应${dcName}人民币`
  533. this.findObject(this.option.column, "amountUsdAlready").label = `已${dcName}款美金`
  534. this.findObject(this.option.column, "amountAlready").label = `已${dcName}款人民币`
  535. this.findObject(this.option.column, "amountUsdNot").label = `未${dcName}款美金`
  536. this.findObject(this.option.column, "amountNot").label = `未${dcName}款人民币`
  537. this.findObject(this.commodityLabel, "amountUsd").label = `应${dcName}美金`
  538. this.findObject(this.commodityLabel, "amount").label = `应${dcName}人民币`
  539. this.findObject(this.commodityLabel, "amountUsdAlready").label = `已${dcName}款美金`
  540. this.findObject(this.commodityLabel, "amountAlready").label = `已${dcName}款人民币`
  541. this.findObject(this.commodityLabel, "amountUsdNot").label = `未${dcName}款美金`
  542. this.findObject(this.commodityLabel, "amountNot").label = `未${dcName}款人民币`
  543. this.page.currentPage = 1;
  544. this.onLoad(this.page, this.query);
  545. },
  546. // 接口获取数据
  547. // 结算单位
  548. getBcorpsListfun(cnName){
  549. getBcorpsList(1,10,{cnName,status: 0}).then(res=>{
  550. this.corpIdData = res.data.data.records
  551. })
  552. },
  553. // 业务类型
  554. businessTypeFocus(){
  555. getWorkDicts('profit_business_type_los').then(res=>{
  556. this.businessTypeData = res.data.data
  557. })
  558. },
  559. // 委托人
  560. clientIdListfun(cnName){
  561. getBcorpsList(1,10,{cnName,status: 0}).then(res=>{
  562. this.clientIdData = res.data.data.records
  563. })
  564. },
  565. // 获取业务来源数据
  566. srcTypeWorkDictsfun(){
  567. getWorkDicts('src_type_los').then(res=>{
  568. this.srcTypeData = res.data.data
  569. })
  570. },
  571. // 获取公司名称 用户管理左侧
  572. ownDeptLazyTreefun(){
  573. getDeptLazyTree(0).then(res=>{
  574. this.srcIdData = res.data.data
  575. })
  576. },
  577. // 获取业务来源代理数据
  578. agentBcorpsListfun(cnName){
  579. let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
  580. getBcorpslistByType(1,10,{cnName,status: 0,corpTypeName}).then(res=>{
  581. this.srcIdData = res.data.data.records
  582. })
  583. },
  584. // 获取业务来源业务员数据
  585. salesUserGetListfun(account){
  586. userGetList(1,10,{account}).then(res=>{
  587. this.srcIdData = res.data.data.records
  588. })
  589. },
  590. // 清空搜索回调方法
  591. searchReset() {
  592. this.query = {
  593. dc:'D',
  594. isBusinessDate:1,
  595. isToExamineDate:0,
  596. type:'1',
  597. etdStart:defaultDate3()[0],
  598. etdEnd:defaultDate3()[1],
  599. }
  600. this.onLoad(this.page);
  601. },
  602. // 搜索
  603. searchChange(params, done) {
  604. this.page.currentPage = 1;
  605. this.onLoad(this.page, this.query);
  606. done();
  607. },
  608. currentChange(currentPage){
  609. this.page.currentPage = currentPage;
  610. },
  611. sizeChange(pageSize){
  612. this.page.pageSize = pageSize;
  613. },
  614. refreshChange() {
  615. this.onLoad(this.page, this.query);
  616. },
  617. onLoad(page, params = {}) {
  618. this.loading = true;
  619. financeStatisticsFeeSummaryDetail(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
  620. const data = res.data.data;
  621. this.page.total = data.total;
  622. this.data = data.records;
  623. this.loading = false;
  624. financeStatisticsFeeSummaryDetailSum(Object.assign(params, this.query)).then(re=>{
  625. this.commodityData = [re.data.data]
  626. })
  627. this.selectionClear();
  628. });
  629. },
  630. selectionClear() {
  631. this.$refs.crud.toggleSelection();
  632. },
  633. //自定义列保存
  634. async saveColumnTwo(ref, option, optionBack, code) {
  635. /**
  636. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  637. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  638. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  639. */
  640. const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
  641. if (inSave) {
  642. this.$message.success("保存成功");
  643. //关闭窗口
  644. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  645. }
  646. },
  647. //自定义列重置
  648. async resetColumnTwo(ref, option, optionBack, code) {
  649. this[option] = this[optionBack];
  650. const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
  651. if (inSave) {
  652. this.$message.success("重置成功");
  653. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  654. this.query = {
  655. dc:'D',
  656. isBusinessDate:1,
  657. isToExamineDate:0,
  658. type:'1',
  659. etdStart:defaultDate3()[0],
  660. etdEnd:defaultDate3()[1],
  661. }
  662. }
  663. },
  664. // 更改表格颜色
  665. headerClassName(tab){
  666. //颜色间隔
  667. let back = ""
  668. if (tab.columnIndex >= 0 && tab.column.level === 1) {
  669. if (tab.columnIndex % 2 === 0) {
  670. back = "back-one"
  671. } else if (tab.columnIndex % 2 === 1) {
  672. back = "back-two"
  673. }
  674. }
  675. return back;
  676. },
  677. }
  678. }
  679. </script>
  680. <style scoped>
  681. ::v-deep#out-table .back-one {
  682. background: #ecf5ff !important;
  683. text-align: center;
  684. }
  685. ::v-deep#out-table .back-two {
  686. background: #ecf5ff !important;
  687. text-align: center;
  688. }
  689. </style>