333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7ebb"],{"5zSY":function(module,__webpack_exports__,__webpack_require__){"use strict";var _xkeshi_vue_barcode__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("q+Mi");__webpack_exports__.a={name:"PrintBarcode",components:{barcode:_xkeshi_vue_barcode__WEBPACK_IMPORTED_MODULE_0__.a},data:function(){return{printType:""}},computed:{},created:function(){this.printType=localStorage.getItem("printType"),this.tableData=JSON.parse(localStorage.getItem("tableData")||"[]")},mounted:function(){var t=this;window.setTimeout(function(){t.initData()},1e3)},methods:{initData:function initData(){var _this2=this,isIE=navigator.userAgent.indexOf("MSIE")>=0||navigator.userAgent.indexOf("Trident")>=0,LODOP_OBJ=document.getElementById("LODOP"),LODOP_EM=document.getElementById("LODOP_EM"),LODOP=isIE?LODOP_OBJ:LODOP_EM,defaultDesign='\n        LODOP.PRINT_INITA(0,0,"100.01mm","60.01mm","打印设计");\n        LODOP.ADD_PRINT_BARCODE(89,5,141,148,"QRCode","{物料二维码}");\n        LODOP.ADD_PRINT_BARCODE(15,11,354,66,"128B","{物料条码}");\n        LODOP.ADD_PRINT_TEXT(96,138,203,20,"名称:{物料名称}");\n        LODOP.SET_PRINT_STYLEA(0,"FontSize",14);\n        LODOP.ADD_PRINT_TEXT(130,141,216,25,"编号:{物料编号}");\n        LODOP.SET_PRINT_STYLEA(0,"FontSize",14);\n        LODOP.ADD_PRINT_TEXT(162,140,169,20,"规格:{物料规格}");\n        LODOP.SET_PRINT_STYLEA(0,"FontSize",14);\n      ',url="/api/sys/print/getLodopTemplate",params={sendBillName:this.printType};this.common.ajax(url,params,function(res){_this2.common.showMsg(res),res.result?(eval(res.data.designConent),LODOP.SET_SHOW_MODE("DESIGN_IN_BROWSE",1),LODOP.PRINT_DESIGN()):(eval(defaultDesign),LODOP.SET_SHOW_MODE("DESIGN_IN_BROWSE",1),LODOP.PRINT_DESIGN())},!0)},save:function(){var t=this,e=navigator.userAgent.indexOf("MSIE")>=0||navigator.userAgent.indexOf("Trident")>=0,n=document.getElementById("LODOP"),i=document.getElementById("LODOP_EM"),a=(e?n:i).GET_VALUE("ProgramCodes",0),s={sendBillName:this.printType,designConent:a};this.common.ajax("/api/sys/print/saveLodopTemplate",s,function(e){t.$notify({title:"提示",type:"success",message:e.msg,position:"top-right"})},!0)},deleteItem:function(){var t=navigator.userAgent.indexOf("MSIE")>=0||navigator.userAgent.indexOf("Trident")>=0,e=document.getElementById("LODOP"),n=document.getElementById("LODOP_EM");(t?e:n).SET_PRINT_STYLEA("Selected","Deleted",!0)}}}},RB8B:function(t,e,n){"use strict";n.r(e);var i=n("5zSY").a,a=(n("rAr5"),n("KHd+")),s=Object(a.a)(i,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"print-container"},[this._m(0),this._v(" "),e("el-button",{staticClass:"no-print",attrs:{type:"text"},on:{click:this.deleteItem}},[this._v("删除选择项")]),this._v(" "),e("el-button",{staticClass:"no-print",attrs:{type:"primary"},on:{click:this.save}},[this._v("保存模板")])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"margin-bottom-20"},[e("object",{attrs:{id:"LODOP",classid:"clsid:2105C259-1E0C-4534-8141-A753534CB4CA",width:"800",height:"600"}},[e("param",{attrs:{name:"Caption",value:"显示区"}}),this._v(" "),e("param",{attrs:{name:"Border",value:"0"}}),this._v(" "),e("param",{attrs:{name:"Color",value:"white"}}),this._v(" "),e("embed",{attrs:{id:"LODOP_EM",type:"application/x-print-lodop",width:"1200",height:"500",pluginspage:"/upload/install_lodop32.exe"}})])])}],!1,null,"e92d5248",null);s.options.__file="print-barcode-setting.vue";e.default=s.exports},hKaj:function(t,e,n){},rAr5:function(t,e,n){"use strict";var i=n("hKaj");n.n(i).a}}]);