shop-php/public/mer/js/chunk-09b9b47e.456ec53f.js

1 line
28 KiB
JavaScript
Raw Normal View History

2023-12-29 18:06:33 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09b9b47e"],{"0890":function(t,e,n){"use strict";n("2cd1")},"1aca":function(t,e,n){"use strict";n("9ddc")},"2cd1":function(t,e,n){},"2e83":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));n("28a5");var r=n("8122"),i=n("e8ae"),o=n.n(i),a=n("21a6");function l(t,e,n,i,l,u){var c,s=["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,g=new o.a.Workbook,m=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:{};c=g.addWorksheet(e,n)}function h(t,e){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var n=0;n<t.length;n++){var i=c.getRow(n+1);i.getCell(1).value=t[n],i.height=30,i.font={bold:!0,size:20,vertAlign:"subscript"},i.alignment={vertical:"bottom",horizontal:"center"},i.outlineLevel=1,c.mergeCells(n+1,1,n+1,e),i.commit(),d++}}}function v(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 b(t){if(!Object(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var n=d,i=c.getRow(d),o=!1,a=0,l=0,u=0,s=0;s<t[e].length;s++)Array.isArray(t[e][s])?(a=u,o=!0,y(t[e][s],u),u+=t[e][s][0].length,l=u):(i.getCell(C(u)).value=t[e][s],i.getCell(C(u)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"},u++);o&&A(n,d,a,l),i.height=25,i.commit(),d++}}function y(t,e){for(var n=t.length,r=n-1,i=0;i<t.length;i++){for(var o=c.getRow(d),a=0;a<t[i].length;a++)o.getCell(C(e+a)).value=t[i][a],o.getCell(C(e+a)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"center"};o.height=25,o.commit(),i<r&&d++}}function A(t,e,n,r){for(var i=0;i<m;i++)(i<n||i>r)&&c.mergeCells(C(i)+t+":"+C(i)+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(m-1)+d),d++}else{var i=c.getRow(d);i.getCell(1).value=t[f],i.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+d+":"+C(m-1)+d)}}function C(t){if(t<26)return s[t];var e=t%26,n=Math.floor(t%26);return s[n]+s[e]}function _(t){t||(t=(new Date).getTime()),g.xlsx.writeBuffer().then((function(e){var n=new Blob([e],{type:"application/octet-stream"});a["saveAs"](n,t+".xlsx")}))}p(u),h(e,m),v(t),b(n),w(i),_(l)}},"64ed":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.fileVisible?n("el-dialog",{attrs:{title:"批量发货记录",visible:t.fileVisible,width:"900px"},on:{"update:visible":function(e){t.fileVisible=e}}},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[n("el-form-item",{staticClass:"width100",attrs:{label:"操作时间"}},[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:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.deliveryTypeList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"状态<EFBFBD>