You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
11 KiB
1 line
11 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b4e4504"],{"2e83":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("28a5");var r=n("8122"),a=n("e8ae"),i=n.n(a),l=n("21a6");function o(t,e,n,a,o,s){var c,u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],d=1,m=new i.a.Workbook,h=t.length;function g(t){var e=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:{};c=m.addWorksheet(e,n)}function p(t,e){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var n=0;n<t.length;n++){var a=c.getRow(n+1);a.getCell(1).value=t[n],a.height=30,a.font={bold:!0,size:20,vertAlign:"subscript"},a.alignment={vertical:"bottom",horizontal:"center"},a.outlineLevel=1,c.mergeCells(n+1,1,n+1,e),a.commit(),d++}}}function b(t){if(!Object(r["isEmpty"])(t)){for(var e=c.getRow(d),n=1;n<=t.length;n++)e.getCell(n).value=t[n-1];e.height=25,e.width=50,e.font={bold:!0,size:18,vertAlign:"subscript"},e.alignment={vertical:"bottom",horizontal:"center"},e.outlineLevel=1,e.commit(),d++}}function v(t){if(!Object(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var n=d,a=c.getRow(d),i=!1,l=0,o=0,s=0,u=0;u<t[e].length;u++)Array.isArray(t[e][u])?(l=s,i=!0,y(t[e][u],s),s+=t[e][u][0].length,o=s):(a.getCell(C(s)).value=t[e][u],a.getCell(C(s)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"},s++);i&&x(n,d,l,o),a.height=25,a.commit(),d++}}function y(t,e){for(var n=t.length,r=n-1,a=0;a<t.length;a++){for(var i=c.getRow(d),l=0;l<t[a].length;l++)i.getCell(C(e+l)).value=t[a][l],i.getCell(C(e+l)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"};i.height=25,i.commit(),a<r&&d++}}function x(t,e,n,r){for(var a=0;a<h;a++)(a<n||a>r)&&c.mergeCells(C(a)+t+":"+C(a)+e)}function w(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=c.getRow(d);n.getCell(1).value=t[e],n.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},n.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+d+":"+C(h-1)+d),d++}else{var a=c.getRow(d);a.getCell(1).value=t[f],a.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+d+":"+C(h-1)+d)}}function C(t){if(t<26)return u[t];var e=t%26,n=Math.floor(t%26);return u[n]+u[e]}function k(t){t||(t=(new Date).getTime()),m.xlsx.writeBuffer().then((function(e){var n=new Blob([e],{type:"application/octet-stream"});l["saveAs"](n,t+".xlsx")}))}g(s),p(e,h),b(t),v(n),w(a),k(o)}},"64dc":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"100px"}},[n("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[n("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,r){return n("el-radio-button",{key:r,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"明细类型:"}},[n("el-select",{staticClass:"selWidth",attrs:{filterable:"",clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,call
|