1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9fbc741a"],{"2e83":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n("28a5");var r=n("8122"),o=n("e8ae"),i=n.n(o),u=n("21a6");function c(t,e,n,o,c,a){var s,l=["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 i.a.Workbook,m=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:{};s=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 o=s.getRow(n+1);o.getCell(1).value=t[n],o.height=30,o.font={bold:!0,size:20,vertAlign:"subscript"},o.alignment={vertical:"bottom",horizontal:"center"},o.outlineLevel=1,s.mergeCells(n+1,1,n+1,e),o.commit(),d++}}}function v(t){if(!Object(r["isEmpty"])(t)){for(var e=s.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 A(t){if(!Object(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var n=d,o=s.getRow(d),i=!1,u=0,c=0,a=0,l=0;l<t[e].length;l++)Array.isArray(t[e][l])?(u=a,i=!0,y(t[e][l],a),a+=t[e][l][0].length,c=a):(o.getCell(C(a)).value=t[e][l],o.getCell(C(a)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"center"},a++);i&&b(n,d,u,c),o.height=25,o.commit(),d++}}function y(t,e){for(var n=t.length,r=n-1,o=0;o<t.length;o++){for(var i=s.getRow(d),u=0;u<t[o].length;u++)i.getCell(C(e+u)).value=t[o][u],i.getCell(C(e+u)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"};i.height=25,i.commit(),o<r&&d++}}function b(t,e,n,r){for(var o=0;o<m;o++)(o<n||o>r)&&s.mergeCells(C(o)+t+":"+C(o)+e)}function w(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=s.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"},s.mergeCells("A"+d+":"+C(m-1)+d),d++}else{var o=s.getRow(d);o.getCell(1).value=t[f],o.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"left"},s.mergeCells("A"+d+":"+C(m-1)+d)}}function C(t){if(t<26)return l[t];var e=t%26,n=Math.floor(t%26);return l[n]+l[e]}function D(t){t||(t=(new Date).getTime()),g.xlsx.writeBuffer().then((function(e){var n=new Blob([e],{type:"application/octet-stream"});u["saveAs"](n,t+".xlsx")}))}p(a),h(e,m),v(t),A(n),w(o),D(c)}},"7e4d":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.dialogVisible?n("el-dialog",{attrs:{title:"订单核销",visible:t.dialogVisible,width:"1000px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"container"},[n("el-form",{attrs:{"label-width":"80px",size:"small"}},[t.isColum?t._e():n("el-form-item",{attrs:{label:"核销码:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入核销码查询订单号和商品",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchOrder(e)}},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}}),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.searchOrder}},[t._v("搜索")])],1),t._v(" "),n("el-form-item",{attrs:{label:"订单号:"}},[n("span",[t._v(t._s(t.orderData.order_sn))])])],1),t._v(" "),n("div",{staticStyle:{"margin-top":"20px"}},[n("el-table",{ref:"multipleSelection",attrs:{data:t.productList,"default-selection":[0],size:"mini","row-key":function(t){return t.product_id},"header-cell-style":{background:"#F0F5FF"}},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-widt
|