detailsPage.vue 24 KB

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