detailsPage.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  1. <template>
  2. <div class="borderless">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  6. @click="backToList">返回列表
  7. </el-button>
  8. </div>
  9. <el-button
  10. class="el-button--small-yh add-customer-btn"
  11. type="primary"
  12. :disabled="disabled"
  13. size="small"
  14. @click="editCustomer"
  15. >{{ form.id ? '确认修改' : '确认新增' }}
  16. </el-button>
  17. </div>
  18. <basic-container style="margin-top: 60px;">
  19. <avue-form ref="form"
  20. style="margin-bottom: -20px"
  21. v-model="form"
  22. :option="option">
  23. </avue-form>
  24. </basic-container>
  25. <containerTitle title="基础资料"></containerTitle>
  26. <basic-container>
  27. <div style="display: flex;justify-content: space-between;margin-bottom: 10px">
  28. <div>
  29. <el-button type="primary" @click="dataList.push({})" size="small">新增</el-button>
  30. <el-button type="primary" @click="exportAll" size="small">导出全部</el-button>
  31. <el-button type="primary" @click="exportSalary" size="small">导出工资条</el-button>
  32. </div>
  33. <div>
  34. <el-button icon="el-icon-s-operation" size="small" circle @click="drawer=true"></el-button>
  35. </div>
  36. </div>
  37. <!--抽屉自定义列-->
  38. <el-drawer
  39. title="自定义列设置"
  40. :visible.sync="drawer"
  41. append-to-body
  42. withHeader
  43. size="50%"
  44. :with-header="false">
  45. <el-table
  46. :data="optionList.column"
  47. border
  48. ref="table"
  49. size="small"
  50. :height="tableHeight"
  51. style="width: 100%;">
  52. <!-- <el-table-column-->
  53. <!-- type="index"-->
  54. <!-- align="center"-->
  55. <!-- label="序号"-->
  56. <!-- width="50">-->
  57. <!-- </el-table-column>-->
  58. <el-table-column
  59. prop="label"
  60. align="center"
  61. label="列名"
  62. width="200">
  63. <template slot-scope="scope">
  64. <el-input v-model="scope.row.label" placeholder="请输入内容"></el-input>
  65. </template>
  66. </el-table-column>
  67. <el-table-column
  68. prop="fixed"
  69. align="center"
  70. label="冻结"
  71. width="50">
  72. <template slot-scope="scope">
  73. <el-checkbox v-model="scope.row.fixed"></el-checkbox>
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. prop="hide"
  78. align="center"
  79. label="隐藏"
  80. width="50">
  81. <template slot-scope="scope">
  82. <el-checkbox v-model="scope.row.hide"></el-checkbox>
  83. </template>
  84. </el-table-column>
  85. <el-table-column
  86. prop="width"
  87. align="center"
  88. label="宽度"
  89. width="500">
  90. <template slot-scope="scope">
  91. <el-slider :min="1" :max="500" show-input v-model="scope.row.width"></el-slider>
  92. </template>
  93. </el-table-column>
  94. <el-table-column
  95. prop="remarks"
  96. align="center"
  97. label="备注"
  98. width="400">
  99. <template slot-scope="scope">
  100. <el-input v-model="scope.row.remarks" placeholder="请输入内容"></el-input>
  101. </template>
  102. </el-table-column>
  103. </el-table>
  104. </el-drawer>
  105. <el-table
  106. :data="dataList"
  107. border
  108. size="small"
  109. :header-cell-style="headerColor"
  110. style="width: 100%;"
  111. >
  112. <el-table-column
  113. type="index"
  114. align="center"
  115. label="序号"
  116. width="50">
  117. </el-table-column>
  118. <el-table-column
  119. v-for="item in optionList.column"
  120. :prop="item.prop"
  121. align="center"
  122. v-if="item.hide != true"
  123. :fixed="item.fixed"
  124. :label="item.label"
  125. :width="item.width>2?item.width:100">
  126. <template slot-scope="scope">
  127. <el-input v-model="scope.row[item.prop]" :placeholder="'请输入'+item.label"></el-input>
  128. </template>
  129. </el-table-column>
  130. </el-table>
  131. </basic-container>
  132. </div>
  133. </template>
  134. <script>
  135. import {typeSave} from "@/api/maintenance/salesPolicy";
  136. export default {
  137. name: "detailsPage",
  138. data(){
  139. return{
  140. disabled:false,
  141. form:{},
  142. dataList:[],
  143. drawer:false,
  144. tableHeight:0,
  145. option:{
  146. menuBtn: false,
  147. labelWidth: 100,
  148. column:[
  149. {
  150. label:'年',
  151. prop:'name',
  152. type:'year',
  153. search:true,
  154. span: 4,
  155. maxlength: 3,
  156. },
  157. {
  158. label:'月',
  159. prop:'name1',
  160. type:'month',
  161. search:true,
  162. span: 4,
  163. maxlength: 3,
  164. },
  165. {
  166. label:'备注',
  167. prop:'name2',
  168. search:true,
  169. span: 16,
  170. maxlength: 3,
  171. }]
  172. },
  173. optionList:{
  174. addBtn:false,
  175. addRowBtn:true,
  176. cellBtn:true,
  177. border: true,
  178. "lazy": true,
  179. "tip": false,
  180. "simplePage": true,
  181. "searchShow": true,
  182. "align": "center",
  183. index: true,
  184. column:[
  185. {
  186. label:'学科',
  187. prop:'nameA',
  188. slot: true,
  189. width:100,
  190. },
  191. {
  192. label:'类别',
  193. prop:'nameB',
  194. slot:true,
  195. width:100
  196. },
  197. {
  198. label:'转正时间',
  199. prop:'nameC',
  200. type: "date",
  201. span:8,
  202. format:'yyyy-MM-dd',
  203. valueFormat:'yyyy-MM-dd',
  204. mock:{
  205. type:'datetime',
  206. format:'yyyy-MM-dd'
  207. },
  208. width:100,
  209. cell: true,
  210. },
  211. {
  212. label:'职务',
  213. prop:'name4',
  214. cell: true,
  215. },
  216. {
  217. label:'姓名',
  218. prop:'name5',
  219. cell: true,
  220. },
  221. {
  222. label:'工资拨付标准',
  223. prop:'name6',
  224. cell: true,
  225. },
  226. {
  227. label:'职级拨付标准',
  228. prop:'name7',
  229. cell: true,
  230. },
  231. {
  232. label:'履约奖',
  233. prop:'name8',
  234. cell: true,
  235. remarks:'基础工资'
  236. },
  237. {
  238. label:'校龄工资',
  239. prop:'name9',
  240. cell: true,
  241. remarks:'基础工资'
  242. },
  243. {
  244. label:'增资',
  245. prop:'name10',
  246. cell: true,
  247. remarks:'基础工资'
  248. },
  249. {
  250. label:'学历工资',
  251. prop:'name11',
  252. cell: true,
  253. remarks:'基础工资'
  254. },
  255. {
  256. label:'职级标准',
  257. prop:'name12',
  258. cell: true,
  259. remarks:'职级标准'
  260. },
  261. {
  262. label:'职级工资',
  263. prop:'name13',
  264. cell: true,
  265. remarks:'基础工资'
  266. },
  267. {
  268. label:'工资基数',
  269. prop:'name14',
  270. cell: true,
  271. remarks:'基础工资'
  272. },
  273. {
  274. label:'基础工资',
  275. prop:'name15',
  276. cell: true,
  277. headerColor:true,
  278. remarks:'基础工资'
  279. },
  280. {
  281. label:'工作量工资标准',
  282. prop:'name16',
  283. cell: true,
  284. },
  285. {
  286. label:'10月份课时',
  287. prop:'name17',
  288. cell: true,
  289. },
  290. {
  291. label:'10月工作量工资',
  292. prop:'name18',
  293. cell: true,
  294. remarks:'10月工作量工资'
  295. },
  296. {
  297. label:'自定义',
  298. prop:'name19',
  299. cell: true,
  300. remarks:'工作量工资'
  301. },
  302. {
  303. label:'自定义',
  304. prop:'name20',
  305. cell: true,
  306. remarks:'工作量工资'
  307. },{
  308. label:'自定义',
  309. prop:'name21',
  310. cell: true,
  311. remarks:'工作量工资'
  312. },{
  313. label:'自定义',
  314. prop:'name22',
  315. cell: true,
  316. remarks:'工作量工资'
  317. },{
  318. label:'自定义',
  319. prop:'name23',
  320. cell: true,
  321. remarks:'工作量工资'
  322. },{
  323. label:'自定义',
  324. prop:'name24',
  325. cell: true,
  326. remarks:'工作量工资'
  327. },{
  328. label:'自定义',
  329. prop:'name25',
  330. cell: true,
  331. remarks:'工作量工资'
  332. },{
  333. label:'自定义',
  334. prop:'name26',
  335. cell: true,
  336. remarks:'工作量工资'
  337. },{
  338. label:'自定义',
  339. prop:'name27',
  340. cell: true,
  341. remarks:'工作量工资'
  342. },{
  343. label:'自定义',
  344. prop:'name28',
  345. cell: true,
  346. remarks:'工作量工资'
  347. },{
  348. label:'工作量工资',
  349. prop:'name29',
  350. cell: true,
  351. },
  352. {
  353. label:'日常考核标准',
  354. prop:'name30',
  355. cell: true,
  356. },
  357. {
  358. label:'日常考核工资',
  359. prop:'name31',
  360. cell: true,
  361. },
  362. {
  363. label:'学期绩效工资',
  364. prop:'name32',
  365. cell: true,
  366. },
  367. {
  368. label:'自定义奖励',
  369. prop:'name33',
  370. cell: true,
  371. remarks:'奖励工资'
  372. },
  373. {
  374. label:'自定义奖励',
  375. prop:'name34',
  376. cell: true,
  377. remarks:'奖励工资'
  378. },
  379. {
  380. label:'自定义奖励',
  381. prop:'name35',
  382. cell: true,
  383. remarks:'奖励工资'
  384. },
  385. {
  386. label:'自定义奖励',
  387. prop:'name36',
  388. cell: true,
  389. remarks:'奖励工资'
  390. },
  391. {
  392. label:'自定义奖励',
  393. prop:'name37',
  394. cell: true,
  395. remarks:'奖励工资'
  396. },
  397. {
  398. label:'自定义奖励',
  399. prop:'name38',
  400. cell: true,
  401. remarks:'奖励工资'
  402. },
  403. {
  404. label:'自定义奖励',
  405. prop:'name39',
  406. cell: true,
  407. remarks:'奖励工资'
  408. },
  409. {
  410. label:'自定义奖励',
  411. prop:'name40',
  412. cell: true,
  413. remarks:'奖励工资'
  414. },
  415. {
  416. label:'自定义奖励',
  417. prop:'name41',
  418. cell: true,
  419. remarks:'奖励工资'
  420. },
  421. {
  422. label:'自定义奖励',
  423. prop:'name42',
  424. cell: true,
  425. remarks:'奖励工资'
  426. },{
  427. label:'奖励工资',
  428. prop:'name43',
  429. cell: true,
  430. },
  431. {
  432. label:'领导干部补贴',
  433. prop:'name44',
  434. cell: true,
  435. remarks:'职务津贴'
  436. },
  437. {
  438. label:'备课组长',
  439. prop:'name45',
  440. cell: true,
  441. remarks:'职务津贴'
  442. },
  443. {
  444. label:'教研组长',
  445. prop:'name46',
  446. cell: true,
  447. remarks:'职务津贴'
  448. },
  449. {
  450. label:'职务津贴',
  451. prop:'name47',
  452. cell: true,
  453. },
  454. {
  455. label:'班主任费',
  456. prop:'name48',
  457. cell: true,
  458. remarks:'班主任津贴'
  459. },
  460. {
  461. label:'班额',
  462. prop:'name49',
  463. cell: true,
  464. remarks:'班主任津贴'
  465. },
  466. {
  467. label:'班主任津贴',
  468. prop:'name50',
  469. cell: true,
  470. remarks:'班主任津贴'
  471. },
  472. {
  473. label:'微信',
  474. prop:'name51',
  475. cell: true,
  476. remarks:'补贴项'
  477. },
  478. {
  479. label:'产假工资',
  480. prop:'name52',
  481. cell: true,
  482. remarks:'补贴项'
  483. },
  484. {
  485. label:'周末加班',
  486. prop:'name53',
  487. cell: true,
  488. remarks:'补贴项'
  489. },
  490. {
  491. label:'2020年上学期绩效',
  492. prop:'name54',
  493. cell: true,
  494. remarks:'补贴项'
  495. },
  496. {
  497. label:'2020年下学期绩效',
  498. prop:'name55',
  499. cell: true,
  500. remarks:'补贴项'
  501. },
  502. {
  503. label:'干部补贴预留',
  504. prop:'name56',
  505. cell: true,
  506. remarks:'补贴项'
  507. },
  508. {
  509. label:'假期加班费',
  510. prop:'name57',
  511. cell: true,
  512. remarks:'补贴项'
  513. },
  514. {
  515. label:'新岗岗前培训',
  516. prop:'name58',
  517. cell: true,
  518. remarks:'补贴项'
  519. },
  520. {
  521. label:'期中期末考试学科优胜奖(预留发放)',
  522. prop:'name59',
  523. cell: true,
  524. remarks:'补贴项'
  525. },
  526. {
  527. label:'级部长(预留发放)',
  528. prop:'name60',
  529. cell: true,
  530. remarks:'补贴项'
  531. },
  532. {
  533. label:'9月副班费(预留补发)',
  534. prop:'name61',
  535. cell: true,
  536. remarks:'补贴项'
  537. },
  538. {
  539. label:'餐车、周五测温、周五安全岗(预留补发)',
  540. prop:'name62',
  541. cell: true,
  542. remarks:'补贴项'
  543. },
  544. {
  545. label:'预留补发',
  546. prop:'name63',
  547. cell: true,
  548. remarks:'补贴项'
  549. },
  550. {
  551. label:'调整差额',
  552. prop:'name64',
  553. cell: true,
  554. remarks:'调整差额'
  555. },
  556. {
  557. label:'自定义',
  558. prop:'name65',
  559. cell: true,
  560. remarks:'补贴项'
  561. },
  562. {
  563. label:'自定义',
  564. prop:'name66',
  565. cell: true,
  566. remarks:'补贴项'
  567. },
  568. {
  569. label:'自定义',
  570. prop:'name67',
  571. cell: true,
  572. remarks:'补贴项'
  573. },
  574. {
  575. label:'自定义',
  576. prop:'name68',
  577. cell: true,
  578. remarks:'补贴项'
  579. },
  580. {
  581. label:'自定义',
  582. prop:'name69',
  583. cell: true,
  584. remarks:'补贴项'
  585. },
  586. {
  587. label:'自定义',
  588. prop:'name70',
  589. cell: true,
  590. remarks:'补贴项'
  591. },
  592. {
  593. label:'自定义',
  594. prop:'name71',
  595. cell: true,
  596. remarks:'补贴项'
  597. },
  598. {
  599. label:'自定义',
  600. prop:'name72',
  601. cell: true,
  602. remarks:'补贴项'
  603. },
  604. {
  605. label:'自定义',
  606. prop:'name73',
  607. cell: true,
  608. remarks:'补贴项'
  609. },
  610. {
  611. label:'自定义',
  612. prop:'name74',
  613. cell: true,
  614. remarks:'补贴项'
  615. },
  616. {
  617. label:'补贴项',
  618. prop:'name75',
  619. cell: true,
  620. remarks:'补贴项'
  621. },
  622. {
  623. label:'出勤',
  624. prop:'name76',
  625. cell: true,
  626. remarks:'扣除项'
  627. },
  628. {
  629. label:'督查罚款',
  630. prop:'name77',
  631. cell: true,
  632. remarks:'扣除项'
  633. },
  634. {
  635. label:'电话费',
  636. prop:'name78',
  637. cell: true,
  638. remarks:'扣除项'
  639. },
  640. {
  641. label:'学习强国',
  642. prop:'name79',
  643. cell: true,
  644. remarks:'扣除项'
  645. },
  646. {
  647. label:'宿舍管理费',
  648. prop:'name80',
  649. cell: true,
  650. remarks:'扣除项'
  651. },
  652. {
  653. label:'生育津贴',
  654. prop:'name81',
  655. cell: true,
  656. remarks:'扣除项'
  657. },
  658. {
  659. label:'五险一金个人',
  660. prop:'name82',
  661. cell: true,
  662. remarks:'扣除项'
  663. },
  664. {
  665. label:'扣除项',
  666. prop:'name83',
  667. cell: true,
  668. remarks:'扣除项'
  669. },
  670. {
  671. label:'保险(单位部分)',
  672. prop:'name84',
  673. cell: true,
  674. remarks:'保险(单位部分)'
  675. },
  676. {
  677. label:'保险(个人部分)',
  678. prop:'name85',
  679. cell: true,
  680. remarks:'保险(个人部分)'
  681. },
  682. {
  683. label:'公积金(单位部分)',
  684. prop:'name86',
  685. cell: true,
  686. remarks:'公积金(单位部分)'
  687. },
  688. {
  689. label:'公积金(个人部分)',
  690. prop:'name87',
  691. cell: true,
  692. remarks:'公积金(个人部分)'
  693. },
  694. {
  695. label:'应发工资',
  696. prop:'name88',
  697. cell: true,
  698. remarks:'应发工资'
  699. },
  700. {
  701. label:'个税',
  702. prop:'name89',
  703. cell: true,
  704. remarks:'个税'
  705. },
  706. {
  707. label:'实发工资(减去个人)',
  708. prop:'name90',
  709. cell: true,
  710. remarks:'实发工资(减去个人)'
  711. },
  712. {
  713. label:'备注',
  714. prop:'name91',
  715. cell: true,
  716. remarks:'备注'
  717. },
  718. {
  719. label:'自定义',
  720. prop:'name92',
  721. cell: true,
  722. },
  723. {
  724. label:' ',
  725. prop:'name93',
  726. cell: true,
  727. },
  728. {
  729. label:' ',
  730. prop:'name94',
  731. cell: true,
  732. },
  733. {
  734. label:'日照银行代发最终',
  735. prop:'name95',
  736. cell: true,
  737. remarks:'日照银行代发最终'
  738. },
  739. {
  740. label:'已付',
  741. prop:'name96',
  742. cell: true,
  743. remarks:'已付'
  744. },
  745. {
  746. label:'冲借款',
  747. prop:'name97',
  748. cell: true,
  749. remarks:'冲借款'
  750. },
  751. {
  752. label:'现金付款',
  753. prop:'name98',
  754. cell: true,
  755. remarks:'现金付款'
  756. },
  757. {
  758. label:'暂不付',
  759. prop:'name99',
  760. cell: true,
  761. remarks:'暂不付'
  762. },
  763. {
  764. label:'暂不付1',
  765. prop:'name100',
  766. cell: true,
  767. remarks:'暂不付1'
  768. },
  769. {
  770. label:'暂不付2',
  771. prop:'name101',
  772. cell: true,
  773. remarks:'暂不付2'
  774. },
  775. {
  776. label:'备注',
  777. prop:'name102',
  778. cell: true,
  779. remarks:'备注'
  780. }
  781. ]
  782. },
  783. }
  784. },
  785. created() {
  786. let windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
  787. console.log(windowHeight)
  788. this.tableHeight = windowHeight - 140;
  789. },
  790. methods:{
  791. //自定义表头颜色
  792. headerColor(row, column, rowIndex, columnIndex){
  793. // console.log(row, column, rowIndex, columnIndex)
  794. switch (row.column.property) {
  795. case 'name14':
  796. return "color: #fff;background:#a4cf57"
  797. case 'name29':
  798. return "color: #fff;background:#a4cf57"
  799. case 'name31':
  800. return "color: #fff;background:#a4cf57"
  801. case 'name43':
  802. return "color: #fff;background:#a4cf57"
  803. case 'name47':
  804. return "color: #fff;background:#a4cf57"
  805. case 'name50':
  806. return "color: #fff;background:#a4cf57"
  807. case 'name75':
  808. return "color: #fff;background:#a4cf57"
  809. case 'name83':
  810. return "color: #fff;background:#a4cf57"
  811. case 'name84':
  812. return "color: #fff;background:#a4cf57"
  813. case 'name85':
  814. return "color: #fff;background:#a4cf57"
  815. case 'name86':
  816. return "color: #fff;background:#a4cf57"
  817. case 'name87':
  818. return "color: #fff;background:#a4cf57"
  819. case 'name88':
  820. return "color: #fff;background:#a4cf57"
  821. case 'name89':
  822. return "color: #fff;background:#a4cf57"
  823. case 'name90':
  824. return "color: #fff;background:#a4cf57"
  825. }
  826. },
  827. //修改提交触发
  828. editCustomer() {
  829. console.log(this.form)
  830. this.$refs["form"].validate((valid) => {
  831. if (valid) {
  832. this.form.corps = this.form.corps.join(',')
  833. this.form.specialItemList = this.contactsData
  834. this.form.presentItemList = this.contactsDataBuyFree
  835. typeSave(this.form).then(res=>{
  836. this.$message({
  837. type: "success",
  838. message: this.form.id ? "修改成功!" : "新增成功!"
  839. });
  840. this.backToList()
  841. })
  842. } else {
  843. return false;
  844. }
  845. });
  846. },
  847. //新增
  848. rowSave(form, done) {
  849. this.$message.success(
  850. '新增数据' + JSON.stringify(form)
  851. )
  852. done()
  853. },
  854. //导出全部
  855. exportAll(){
  856. let opt = {
  857. title: '工资条',
  858. column: this.optionList.column,
  859. data: this.dataList
  860. }
  861. this.$Export.excel({
  862. title: opt.title ,
  863. columns: opt.column,
  864. data: opt.data
  865. });
  866. },
  867. //导出工资条
  868. exportSalary(){
  869. let data = []
  870. for (let item in this.optionList.column){
  871. switch (this.optionList.column[item].prop) {
  872. case 'name14':
  873. data.push(this.optionList.column[item])
  874. break
  875. case 'name29':
  876. data.push(this.optionList.column[item])
  877. break
  878. case 'name31':
  879. data.push(this.optionList.column[item])
  880. break
  881. case 'name43':
  882. data.push(this.optionList.column[item])
  883. break
  884. case 'name47':
  885. data.push(this.optionList.column[item])
  886. break
  887. case 'name50':
  888. data.push(this.optionList.column[item])
  889. break
  890. case 'name75':
  891. data.push(this.optionList.column[item])
  892. break
  893. case 'name83':
  894. data.push(this.optionList.column[item])
  895. break
  896. case 'name84':
  897. data.push(this.optionList.column[item])
  898. break
  899. case 'name85':
  900. data.push(this.optionList.column[item])
  901. break
  902. case 'name86':
  903. data.push(this.optionList.column[item])
  904. break
  905. case 'name87':
  906. data.push(this.optionList.column[item])
  907. break
  908. case 'name88':
  909. data.push(this.optionList.column[item])
  910. break
  911. case 'name89':
  912. data.push(this.optionList.column[item])
  913. break
  914. case 'name90':
  915. data.push(this.optionList.column[item])
  916. break
  917. }
  918. }
  919. let opt = {
  920. title: '工资条',
  921. column: data,
  922. data: this.dataList
  923. }
  924. this.$Export.excel({
  925. title: opt.title ,
  926. columns: opt.column,
  927. data: opt.data
  928. });
  929. },
  930. //返回列表
  931. backToList() {
  932. this.$emit("goBack");
  933. // this.$router.$avueRouter.closeTag();
  934. // this.$router.push({
  935. // path: '/maintenance/salesPolicy/index',
  936. // query: {}
  937. // });
  938. },
  939. }
  940. }
  941. </script>
  942. <style scoped>
  943. ::v-deep .el-drawer.rtl{
  944. overflow: scroll;
  945. }
  946. ::v-deep .el-table .el-table__fixed {
  947. height: auto !important;
  948. bottom: 8px !important;
  949. }
  950. </style>