(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8d2c0e9c"],{"4eba":function(t,s,a){},"8a78":function(t,s,a){"use strict";a.r(s);var n=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"printArea"},[a("button",{staticClass:"printBtn",on:{click:t.printHtml}},[t._v("打印\n  ")]),t._l(t.printData,(function(s,n){return a("div",{key:n,staticClass:"printBox",style:"margin-bottom:10px"},[a("div",{staticClass:"title"},[t._v("采购入库箱贴")]),a("div",{staticClass:"row1"},[a("div",{staticClass:"typeBox"},[a("div",{staticClass:"goods"},[t._v("\n          "+t._s(s.productType)+"\n        ")]),a("div",{staticClass:"type"},[t._v("\n          "+t._s(s.packType)+"\n        ")])]),a("div",{staticClass:"size"},[t._v("\n        规格\n        "),a("span",[t._v("\n          "+t._s(s.standard)+"\n          ")])]),a("div",{staticClass:"weight"},[t._v("\n        重量\n        "),a("span",[t._v(t._s(s.weight)+"kg")])])]),t._m(0,!0),a("div",{staticClass:"table"},t._l(s.saleScanCodeVoList,(function(s,n){return a("div",{key:n,staticClass:"tableData"},[a("div",{staticClass:"code"},[t._v("\n          "+t._s(s.barCode)+"\n        ")]),a("div",{staticClass:"no"},[t._v("\n          "+t._s(s.materialCode)+"\n        ")]),a("div",{staticClass:"size"},[t._v("\n          "+t._s(s.size)+"\n        ")]),a("div",{staticClass:"quantity"},[t._v("\n          "+t._s(s.quantity)+"\n        ")])])})),0),a("div",{staticClass:"total"},[t._v("\n      合计: "),a("span",[t._v(t._s(s.sumQuantity))])]),a("div",{staticClass:"pageInfo"},[a("div",{staticClass:"boxNo"},[t._v("\n        第"+t._s(s.boxCumber)+"箱\n      ")]),a("div",{staticClass:"pager"},[t._v("\n        第"+t._s(s.pageNo)+"页\n        "),a("span",[t._v("总"+t._s(s.total)+"页")])])]),a("img",{staticClass:"barcode",attrs:{id:"barcode"+n}}),a("div",{staticClass:"boxCode",staticStyle:{"line-height":"20px"}},[a("span",{attrs:{id:"boxCodeValue"+n}})])])}))],2)},i=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"columns"},[a("div",{staticClass:"code"},[t._v("\n        条码\n      ")]),a("div",{staticClass:"no"},[t._v("\n        规格编码\n      ")]),a("div",{staticClass:"size"},[t._v("\n        尺码\n      ")]),a("div",{staticClass:"quantity"},[t._v("\n        数量\n      ")])])}],e=(a("1bc7"),a("53b6")),c=a.n(e),o=a("0fea"),d={name:"SaleBoxLabelPrint",components:{},props:{},data:function(){return{ids:"",printData:[],tableData:[]}},computed:{},watch:{},created:function(){var t=this.$route.query.ids;this.ids=t},mounted:function(){this.loadData()},methods:{loadData:function(){var t=this;Object(o["c"])("/pack/salePackPrintInfo/boxPrintByCode",{ids:this.ids}).then((function(s){s.success?(t.printData=s.result,t.$nextTick((function(){t.printData.forEach((function(t,s){document.getElementById("boxCodeValue"+s).innerText=t.boxCode,c()("#barcode".concat(s),t.boxCode,{displayValue:!1})}))}))):t.$message.warning(s.message)}))},printHtml:function(){window.print()}}},l=d,r=(a("fded"),a("0b56")),v=Object(r["a"])(l,n,i,!1,null,"7fec7036",null);s["default"]=v.exports},fded:function(t,s,a){"use strict";a("4eba")}}]);