(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0010":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("view")},r=[]},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function o(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function s(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var u=a.pop();l=a.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=a[0];console[s](l)}n.r(e),n.d(e,"log",(function(){return s})),n.d(e,"default",(function(){return a}))},1762:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("cc5a"));var r=n("b79f"),o=uni.requireNativePlugin("YanYu-PrintPDF"),s=(0,r.getCLodop)(),a={data:function(){return{codes:void 0,showPop:!1,httpRoot:"http://",ilsApi:"192.168.1.56:9090",printIp:"192.168.1.26",onLoad:function(t){this.$broadcastScan.init(this.getScancode)},onUnload:function(){this.$broadcastScan.stop()},onHide:function(){this.$broadcastScan.stop()},onShow:function(){this.$broadcastScan.start()}}},methods:{pdaSystemInit:function(){this.showPop=!0},confirmAdd:function(){this.showPop=!1,t("log","ilsApi:",this.ilsApi," at pages/tabbar/index/index.vue:63"),t("log","printIp:",this.printIp," at pages/tabbar/index/index.vue:64")},cancelAdd:function(){this.ilsApi="",this.printIp="",this.showPop=!1},doPrinter:function(e){var n=this;this.showPop=!1,t("log","doPrinter orderCoder: "+e," at pages/tabbar/index/index.vue:75"),t("log","ilsApi:",this.ilsApi," at pages/tabbar/index/index.vue:76"),t("log","printIp:",this.printIp," at pages/tabbar/index/index.vue:77"),uni.request({url:this.httpRoot+this.ilsApi+"/jeecg-boot/front/getOrderPayStateAndPdfBase64?OrderId="+e,method:"GET",success:function(e){t("log",e.data.result," at pages/tabbar/index/index.vue:90"),200==e.data.code?(s.PRINT_INIT(null,n.printIp),s.SET_PRINTER_INDEX(-1),s.PRINT_INITA(2,0,"100mm","150mm","100X150"),s.SET_PRINT_PAGESIZE(1,"100mm","150mm",""),s.SET_PRINT_MODE("POS_BASEON_PAPER",!0),s.ADD_PRINT_PDF(0,0,"100mm","150mm",e.data.result),s.PRINT(),uni.showToast({title:"\u9762\u5355\u4e0b\u53d1\u6210\u529f.\u6b63\u5728\u6253\u5370,\u8bf7\u7a0d\u5019...",icon:"success",duration:3e3})):uni.showToast({title:e.data.message,icon:"none",duration:3e3})},fail:function(){uni.showToast({title:"\u63a5\u53e3\u8bbf\u95ee\u5f02\u5e38\uff0c\u6253\u5370\u5931\u8d25",icon:"none",duration:3e3})}})},onShow:function(){var e=this;uni.$off("scancodedate"),uni.$on("scancodedate",(function(n){t("log","\u4f60\u60f3\u8981\u7684code\uff1a",n.code," at pages/tabbar/index/index.vue:126"),e.codes=n.code,this.showPop=!1;var i=n.code;t("log","onShow orderCoder: "+i," at pages/tabbar/index/index.vue:130"),t("log","ilsApi:",e.ilsApi," at pages/tabbar/index/index.vue:131"),t("log","printIp:",e.printIp," at pages/tabbar/index/index.vue:132"),uni.request({url:e.httpRoot+e.ilsApi+"/jeecg-boot/front/getOrderPayStateAndPdfBase64?OrderId="+i,method:"GET",success:function(n){t("log",n.data.result," at pages/tabbar/index/index.vue:138"),200==n.data.code?(s.PRINT_INIT(null,e.printIp),s.SET_PRINTER_INDEX(-1),s.PRINT_INITA(2,0,"100mm","150mm","100X150"),s.SET_PRINT_PAGESIZE(1,"100mm","150mm",""),s.SET_PRINT_MODE("POS_BASEON_PAPER",!0),s.ADD_PRINT_PDF(0,0,"100mm","150mm",n.data.result),s.PRINT(),uni.showToast({title:"\u4e0b\u53d1\u6210\u529f.\u6b63\u5728\u6253\u5370,\u8bf7\u7a0d\u5019...",icon:"success",duration:3e3})):uni.showToast({title:n.data.message,icon:"none",duration:3e3})},fail:function(){uni.showToast({title:"\u63a5\u53e3\u8bbf\u95ee\u5f02\u5e38\uff0c\u6253\u5370\u5931\u8d25",icon:"none",duration:3e3})}})}))},getScancode:function(e){e=e.trim(),t("log",e," at pages/tabbar/index/index.vue:175")},printPdf:function(){o.managerPrint("D:LeStoreDownloadEXP-LHJ1239002405-3676E4041337.pdf")}}};e.default=a}).call(this,n("0de9")["default"])},"2b68":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},methods:{}}},"33eb":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={scanCode:n("cc5a").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","Big"),attrs:{_i:0}},[n("view",{attrs:{id:"page",_i:1}},[t._$s(2,"i",t.showPop)?n("view",[n("view",[n("text",{staticClass:t._$s(4,"sc","font-sm text-secondary px-3 py-2"),attrs:{_i:4}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.ilsApi,expression:"ilsApi"}],staticClass:t._$s(5,"sc","font-md border bg-white px-3"),attrs:{_i:5},domProps:{value:t._$s(5,"v-model",t.ilsApi)},on:{input:function(e){e.target.composing||(t.ilsApi=e.target.value)}}})]),n("view",[n("text",{staticClass:t._$s(7,"sc","font-sm text-secondary px-3 py-2"),attrs:{_i:7}}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.printIp,expression:"printIp"}],staticClass:t._$s(8,"sc","font-md border bg-white px-3"),attrs:{_i:8},domProps:{value:t._$s(8,"v-model",t.printIp)},on:{input:function(e){e.target.composing||(t.printIp=e.target.value)}}})]),n("view",[n("button",{staticClass:t._$s(10,"sc","systemSty"),attrs:{_i:10},on:{click:t.cancelAdd}}),n("button",{staticClass:t._$s(11,"sc","systemSty"),attrs:{_i:11},on:{click:t.confirmAdd}})])]):t._e(),n("text",{staticClass:t._$s(12,"sc","nameSty"),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.codes)))]),t._$s(13,"i",!t.showPop)?n("button",{staticClass:t._$s(13,"sc","systemSty"),attrs:{_i:13},on:{click:function(e){return t.pdaSystemInit()}}}):t._e(),t._$s(14,"i",t.codes)?n("button",{staticClass:t._$s(14,"sc","nameSty"),attrs:{_i:14},on:{click:function(e){return t.doPrinter(t.codes)}}}):t._e()]),n("scan-code",{attrs:{_i:15}})],1)},o=[]},"3eb5":function(t,e,n){"use strict";n.r(e);var i=n("0010"),r=n("6308");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var s=n("f0c5"),a=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=a.exports},"4aa9":function(t,e,n){"use strict";n.r(e);var i=n("5925"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"4dde":function(t,e,n){"use strict";n.r(e);var i=n("1762"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"4ea4":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"54ef":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=n}).call(this,n("0de9")["default"])},"550d":function(t,e,n){"use strict";n.r(e);var i=n("33eb"),r=n("4dde");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var s=n("f0c5"),a=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=a.exports},5631:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},methods:{}}},5758:function(t,e,n){if("undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),"undefined"!==typeof uni&&uni&&uni.requireGlobal){var i=uni.requireGlobal();ArrayBuffer=i.ArrayBuffer,Int8Array=i.Int8Array,Uint8Array=i.Uint8Array,Uint8ClampedArray=i.Uint8ClampedArray,Int16Array=i.Int16Array,Uint16Array=i.Uint16Array,Int32Array=i.Int32Array,Uint32Array=i.Uint32Array,Float32Array=i.Float32Array,Float64Array=i.Float64Array,BigInt64Array=i.BigInt64Array,BigUint64Array=i.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/tabbar/index/index",(function(){return Vue.extend(n("550d").default)})),__definePage("pages/tabbar/classify/classify",(function(){return Vue.extend(n("f8a1").default)})),__definePage("pages/tabbar/mine/mine",(function(){return Vue.extend(n("fd46").default)})),__definePage("pages/tabbar/study/study",(function(){return Vue.extend(n("3eb5").default)}))},5925:function(t,e,n){"use strict";(function(t){var n,i,r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=!1,s={data:function(){return{scanCode:""}},created:function(t){this.initScan(),this.startScan()},onHide:function(){this.stopScan()},destroyed:function(){this.stopScan()},methods:{initScan:function(){var t=this;n=plus.android.runtimeMainActivity();var e=plus.android.importClass("android.content.IntentFilter");r=new e,r.addAction("android.intent.ACTION_DECODE_DATA"),i=plus.android.implements("io.dcloud.feature.internal.reflect.BroadcastReceiver",{onReceive:function(e,n){plus.android.importClass(n);var i=n.getStringExtra("barcode_string");t.queryCode(i)}})},startScan:function(){n.registerReceiver(i,r)},stopScan:function(){n.unregisterReceiver(i)},queryCode:function(e){if(o)return!1;o=!0,setTimeout((function(){o=!1}),150);var n=e;t("log","id:",n," at components/scan-code/scan-code.vue:53"),uni.$emit("scancodedate",{code:n})}}};e.default=s}).call(this,n("0de9")["default"])},6308:function(t,e,n){"use strict";n.r(e);var i=n("a3fc"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},7037:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},7870:function(t,e,n){"use strict";var i,r,o;Object.defineProperty(e,"__esModule",{value:!0}),e.broadcastScan=void 0;var s=!1,a={init:function(t){i=plus.android.runtimeMainActivity();var e=plus.android.importClass("android.content.IntentFilter");r=new e,r.addAction("android.intent.ACTION_DECODE_DATA"),o=plus.android.implements("io.dcloud.feature.internal.reflect.BroadcastReceiver",{onReceive:function(e,n){plus.android.importClass(n);var i=n.getStringExtra("barcode_string");s||(s=!0,setTimeout((function(){s=!1}),150),t&&t(i))}})},start:function(){i.registerReceiver(o,r)},stop:function(){i.unregisterReceiver(o)}};e.broadcastScan=a},"7c11":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("view")},r=[]},"7ec2":function(t,e,n){var i=n("7037")["default"];function r(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(A){d=function(t,e,n){return t[e]=n}}function f(t,e,n,i){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new R(i||[]);return s(o,"_invoke",{value:x(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=f;var h={};function m(){}function v(){}function g(){}var _={};d(_,l,(function(){return this}));var y=Object.getPrototypeOf,P=y&&y(y(O([])));P&&P!==n&&o.call(P,l)&&(_=P);var b=g.prototype=m.prototype=Object.create(_);function D(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){var n;s(this,"_invoke",{value:function(r,s){function a(){return new e((function(n,a){(function n(r,s,a,l){var u=p(t[r],t,s);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==i(d)&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,l)}))}l(u.arg)})(r,s,n,a)}))}return n=n?n.then(a,a):a()}})}function x(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return C()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=T(s,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=p(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function T(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,T(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=p(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(a&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;w(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"8bbf":function(t,e){t.exports=Vue},9523:function(t,e,n){var i=n("a395");t.exports=function(t,e,n){return e=i(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"97f7":function(t,e,n){"use strict";n.r(e);var i=n("54ef"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},a114:function(t,e,n){"use strict";n.r(e);var i=n("97f7");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n("f0c5"),s=Object(o["a"])(i["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=s.exports},a34a:function(t,e,n){var i=n("7037"),r=n("7ec2")();t.exports=r;try{regeneratorRuntime=r}catch(o){"object"===("undefined"===typeof globalThis?"undefined":i(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},a395:function(t,e,n){var i=n("7037")["default"],r=n("e50d");t.exports=function(t){var e=r(t,"string");return"symbol"===i(e)?e:String(e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},a3fc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},methods:{}}},b79f:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCLodop=function(){return window.CLODOP2015_7028},e.getPrinterList=function(t){return s.apply(this,arguments)};var r=i(n("a34a")),o=i(n("c973"));function s(){return s=(0,o.default)(r.default.mark((function e(n){var i,o,s,a,l;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n||(n=uni.getStorageSync("fl_ip")),e.prev=1,e.next=4,uni.request({url:"http://".concat(n,":8000/CLodopfuncs.js")});case 4:if(i=e.sent,!i[0]){e.next=7;break}return e.abrupt("return",[]);case 7:return o=i[1].data.match(/"list":(.+)/),s=o[1].substr(0,o[1].length-2),a=JSON.parse(s),l=[],a.forEach((function(t){l.push(t.name)})),e.abrupt("return",l);case 15:e.prev=15,e.t0=e["catch"](1),t("log",e.t0," at common/print/CLodopfuncs.js:1894");case 18:case"end":return e.stop()}}),e,null,[[1,15]])}))),s.apply(this,arguments)}window={location:{href:"http://127.0.0.1/print"}},function(e){var n=[],i={strWebPageID:"7BCAAAH",strTaskID:"",strHostURI:"http://localhost:8000",wsHostURI:"ws://localhost:8000/c_webskt/",VERSION:"6.5.7.2",IVERSION:"6572",CVERSION:"6.5.7.2",HTTPS_STATUS:2,VERSION_EXT:!0,iBaseTask:0,timeThreshold:5,Priority:0,blIslocal:!0,Iframes:[],ItemDatas:{},PageData:{},defStyleJson:{},PageDataEx:{},ItemCNameStyles:{},blWorking:!1,blNormalItemAdded:!1,blTmpSelectedIndex:null,Caption:null,Color:null,CompanyName:null,strBroadcastMS:null,Border:null,Inbrowse:null,webskt:null,SocketEnable:!1,SocketOpened:!1,NoClearAfterPrint:!1,On_Return_Remain:!1,On_Broadcast_Remain:!1,On_Return:null,Result:null,iTrySendTimes:0,OBO_Mode:1,blOneByone:!1,DelimChar:"\f\f",Printers:{default:"1",list:[]},altMessageWebSocketInvalid:"WebSocket\u6ca1\u51c6\u5907\u597d\uff0c\u70b9\u786e\u5b9a\u7ee7\u7eed...",altMessageNoReadWriteFile:"\u4e0d\u80fd\u8fdc\u7a0b\u8bfb\u5199\u6587\u4ef6!",altMessageNoReadFile:"\u4e0d\u80fd\u8fdc\u7a0b\u8bfb\u6587\u4ef6!",altMessageNoWriteFile:"\u4e0d\u80fd\u8fdc\u7a0b\u5199\u6587\u4ef6!",altMessageNoPrintDesign:"\u4e0d\u80fd\u8fdc\u7a0b\u6253\u5370\u8bbe\u8ba1!",altMessageNoPrintSetup:"\u4e0d\u80fd\u8fdc\u7a0b\u6253\u5370\u7ef4\u62a4!",altMessageSomeWindowExist:"\u6709\u7a97\u53e3\u5df2\u6253\u5f00\uff0c\u5148\u5173\u95ed\u5b83(\u6301\u7eed\u5982\u6b64\u65f6\u8bf7\u5237\u65b0\u9875\u9762)!",altMessageBusy:"\u4e0a\u4e00\u4e2a\u8bf7\u6c42\u6b63\u5fd9\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01",Browser:function(){navigator={userAgent:"Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36"};var t=navigator.userAgent,e="[object Opera]"==Object.prototype.toString.call(window.opera);return{IE:!!window.attachEvent&&!e,Opera:e,WebKit:t.indexOf("AppleWebKit/")>-1,Gecko:t.indexOf("Gecko")>-1&&-1===t.indexOf("KHTML"),MobileSafari:/Apple.*Mobile/.test(t)}}(),GetTaskID:function(){if(!this.strTaskID||""==this.strTaskID){var t=new Date;this.iBaseTask++,this.strTaskID=""+t.getHours()+t.getMinutes()+t.getSeconds()+"_"+this.iBaseTask}return this.strWebPageID+this.strTaskID},DoInit:function(){i.Printers.list=n,this.strTaskID="",this.NoClearAfterPrint||(this.ItemDatas={count:0},this.PageData={},this.ItemCNameStyles={},this.defStyleJson={beginpage:0,beginpagea:0},this.blNormalItemAdded=!1)},OpenWebSocket:function(e){window.On_CLodop_Opened&&i.Priority==window.CLODOP_OK_Priority&&setTimeout("window.On_CLodop_Opened(CLODOP)",1),window.WebSocket||window.MozWebSocket||window.On_CLodop_Opened&&i.Priority==window.CLODOP_OK_Priority&&setTimeout("window.On_CLodop_Opened(CLODOP)",1),t("log",this.webskt," at common/print/CLodopfuncs.js:123"),t("log",i.wsHostURI," at common/print/CLodopfuncs.js:124"),t("log",e," at common/print/CLodopfuncs.js:125");var n=uni.getStorageSync("fl_ip")||"192.168.1.56",r="ws://".concat(n,":8000/c_webskt/");this.SocketEnable=!0;try{this.webskt&&3!=this.webskt.readyState&&!e||(t("log","\u94fe\u63a5"," at common/print/CLodopfuncs.js:131"),!window.WebSocket&&window.MozWebSocket&&(window.WebSocket=window.MozWebSocket),this.webskt=uni.connectSocket({url:r,success:function(e){t("info",e," at common/print/CLodopfuncs.js:136"),t("log","\u94fe\u63a5\u6210\u529f"," at common/print/CLodopfuncs.js:137")},fail:function(e){t("info",e," at common/print/CLodopfuncs.js:140"),t("log","\u94fe\u63a5\u5931\u8d25"," at common/print/CLodopfuncs.js:141")},complete:function(e){t("info",e," at common/print/CLodopfuncs.js:144"),t("log","\u94fe\u63a5\u5b8c\u6210"," at common/print/CLodopfuncs.js:145")}}),t("log",this.webskt," at common/print/CLodopfuncs.js:148"),this.webskt.onOpen((function(t){i.SocketOpened=!0,window.On_CLodop_Opened&&i.Priority==window.CLODOP_OK_Priority&&setTimeout(window.On_CLodop_Opened(i),1e4)})),this.webskt.onMessage((function(e){t("log",e," at common/print/CLodopfuncs.js:156"),i.resultHandle(e.data)})),this.webskt.onClose((function(t){i.SocketOpened||(i.SocketEnable=!1)})),this.webskt.onError((function(e){t("info",e," at common/print/CLodopfuncs.js:167")})))}catch(o){this.webskt=null,o.message.indexOf("SecurityError")>-1?this.SocketEnable=!1:setTimeout((function(){i.OpenWebSocket()}),2e3)}},resultHandle:function(e){i.blOneByone=!1;var n=e;i.Result=n;try{var r=null,o=n.indexOf("=");if(o>=0&&o<30&&(r=n.slice(0,o),n=n.slice(o+1)),r.indexOf("ErrorMS")>-1)return void t("info",n," at common/print/CLodopfuncs.js:192");if(r.indexOf("BroadcastMS")>-1){if(i.strBroadcastMS=n,i.On_Broadcast){var s=i.On_Broadcast;i.On_Broadcast(n),i.On_Broadcast_Remain||s!==i.On_Broadcast||(i.On_Broadcast=null)}return}if(i.On_Return){s=i.On_Return;"true"==n.toLowerCase()||"false"==n.toLowerCase()?i.On_Return(r,"true"==n.toLowerCase()):i.On_Return(r,n),i.On_Return_Remain||s!==i.On_Return||(i.On_Return=null)}}catch(a){t("log",a," at common/print/CLodopfuncs.js:214")}},wsSend:function(e){if(t("log",this.webskt," at common/print/CLodopfuncs.js:219"),t("log",this.wsHostURI," at common/print/CLodopfuncs.js:220"),t("log",11," at common/print/CLodopfuncs.js:221"),this.webskt&&1==this.webskt.readyState)return this.Result=null,this.iTrySendTimes=0,this.webskt.send({data:e,success:function(e){t("info",e," at common/print/CLodopfuncs.js:228")},fail:function(e){t("info",e," at common/print/CLodopfuncs.js:231")}}),!0;this.iTrySendTimes++,t("log",this.iTrySendTimes," at common/print/CLodopfuncs.js:237"),this.iTrySendTimes<=1&&(this.OpenWebSocket(),setTimeout((function(){i.wsSend(e)}),1e3))},FORMAT:function(e,n){if(this.blWorking)return t("info",this.altMessageBusy," at common/print/CLodopfuncs.js:248"),null;var r=null;if(void 0!==e&&void 0!==n){if(0==e.replace(/^\s+|\s+$/g,"").toLowerCase().indexOf("time:")){e=e.replace(/^\s+|\s+$/g,"").slice(5),n.toLowerCase().indexOf("now")>-1&&(n=(new Date).toString()),n.toLowerCase().indexOf("date")>-1&&(n=(new Date).toString()),n.toLowerCase().indexOf("time")>-1&&(n=(new Date).toString());var o="ymd";n.toLowerCase().indexOf("ymd")>-1&&(o="ymd",n=n.slice(3)),n.toLowerCase().indexOf("dmy")>-1&&(o="dmy",n=n.slice(3)),n.toLowerCase().indexOf("mdy")>-1&&(o="mdy",n=n.slice(3)),n=n.replace(/ [^ ]*\+[^ ]* /g," "),n=n.replace(/\(.*\)/g," "),n=n.replace(/\u661f\u671f\u65e5|\u661f\u671f\u4e00|\u661f\u671f\u4e8c|\u661f\u671f\u4e09|\u661f\u671f\u56db|\u661f\u671f\u4e94|\u661f\u671f\u516d/g," "),n=n.replace(/[A-Za-z]+day|Mon|Tue|Wed|Thu|Fri|Sat|Sun/g," ");var s=0,a=new RegExp("Oct[A-Za-z]*|\u5341\u6708|10\u6708","i");null!==n.match(a)&&(s=10,n=n.replace(a,"")),a=new RegExp("Nov[A-Za-z]*|\u5341\u4e00\u6708|11\u6708","i"),null!==n.match(a)&&(s=11,n=n.replace(a,"")),a=new RegExp("Dec[A-Za-z]*|\u5341\u4e8c\u6708|12\u6708","i"),null!==n.match(a)&&(s=12,n=n.replace(a,"")),a=new RegExp("Jan[A-Za-z]*|\u4e00\u6708|01\u6708|1\u6708","i"),null!==n.match(a)&&(s=1,n=n.replace(a,"")),a=new RegExp("Feb[A-Za-z]*|\u4e8c\u6708|02\u6708|2\u6708","i"),null!==n.match(a)&&(s=2,n=n.replace(a,"")),a=new RegExp("Mar[A-Za-z]*|\u4e09\u6708|03\u6708|3\u6708","i"),null!==n.match(a)&&(s=3,n=n.replace(a,"")),a=new RegExp("Apr[A-Za-z]*|\u56db\u6708|04\u6708|4\u6708","i"),null!==n.match(a)&&(s=4,n=n.replace(a,"")),a=new RegExp("May[A-Za-z]*|\u4e94\u6708|05\u6708|5\u6708","i"),null!==n.match(a)&&(s=5,n=n.replace(a,"")),a=new RegExp("Jun[A-Za-z]*|\u516d\u6708|06\u6708|6\u6708","i"),null!==n.match(a)&&(s=6,n=n.replace(a,"")),a=new RegExp("Jul[A-Za-z]*|\u4e03\u6708|07\u6708|7\u6708","i"),null!==n.match(a)&&(s=7,n=n.replace(a,"")),a=new RegExp("Aug[A-Za-z]*|\u516b\u6708|08\u6708|8\u6708","i"),null!==n.match(a)&&(s=8,n=n.replace(a,"")),a=new RegExp("Sep[A-Za-z]*|\u4e5d\u6708|09\u6708|9\u6708","i"),null!==n.match(a)&&(s=9,n=n.replace(a,"")),n=n.replace(/\u65e5|\u79d2/g," "),n=n.replace(/\u65f6|\u5206/g,":");var l=n.match(/ \d+:\d+:\d+/);null==l&&(l=""),n=n.replace(/ \d+:\d+:\d+/,"")+l;var u=new Date,c=0,d=0,f=0,p=0,h=0,m=0,v=n,g="",_=0;MC2=0,MC3=0,g=v.match(/\d+/),null!==g&&(_=parseInt(g[0]),v=v.replace(/\d+/,"")),g=v.match(/\d+/),null!==g&&(MC2=parseInt(g[0]),v=v.replace(/\d+/,"")),s<=0&&(g=v.match(/\d+/),null!==g&&(MC3=parseInt(g[0]),v=v.replace(/\d+/,""))),s>0?(d=s,MC2<=31?(c=_,f=MC2):(c=MC2,f=_)):"dmy"==o?(f=_,d=MC2,c=MC3):"mdy"==o?(d=_,f=MC2,c=MC3):(c=_,d=MC2,f=MC3,MC3>31?(c=MC3,d=_,f=MC2,_>12&&(f=_,d=MC2)):MC2>12&&(c=MC2,d=_));g=v.match(/\d+/);null!==g&&(p=parseInt(g[0]),v=v.replace(/\d+/,""));g=v.match(/\d+/);null!==g&&(h=parseInt(g[0]),v=v.replace(/\d+/,""));g=v.match(/\d+/);if(null!==g&&(m=parseInt(g[0]),v=v.replace(/\d+/,"")),"isvalidformat"==e.toLowerCase())n=c>0&&d>0&&d<=12&&f>0&&f<=31;else{(""+c).length<4&&(c+=2e3),u.setFullYear(c,d-1,f),u.setHours(p),u.setMinutes(h),u.setSeconds(m);var y=u.getDay();if("weekindex"==e.toLowerCase())n=y;else if("floatvalue"==e.toLowerCase())n=u.getTime();else{var P="";switch(y){case 0:P="\u65e5";break;case 1:P="\u4e00";break;case 2:P="\u4e8c";break;case 3:P="\u4e09";break;case 4:P="\u56db";break;case 5:P="\u4e94";break;case 6:P="\u516d";break}if(n=e.replace(/dddd/gi,"\u661f\u671f"+P),/(y+)/i.test(n)&&(n=n.replace(RegExp.$1,(c+"").substr(4-RegExp.$1.length))),/(m+:)/i.test(n)&&(n=n.replace(RegExp.$1,("00"+h+":").substr(("00"+h+":").length-RegExp.$1.length))),/(M+)/i.test(n)){var b=(""+d).length>RegExp.$1.length?(""+d).length:RegExp.$1.length;n=n.replace(RegExp.$1,("00"+d).substr(("00"+d).length-b))}if(/(d+)/i.test(n)){b=(""+f).length>RegExp.$1.length?(""+f).length:RegExp.$1.length;n=n.replace(RegExp.$1,("00"+f).substr(("00"+f).length-b))}/(H+)/i.test(n)&&(n=n.replace(RegExp.$1,("00"+p).substr(("00"+p).length-RegExp.$1.length))),/(n+)/i.test(n)&&(n=n.replace(RegExp.$1,("00"+h).substr(("00"+h).length-RegExp.$1.length))),/(s+)/i.test(n)&&(n=n.replace(RegExp.$1,("00"+m).substr(("00"+m).length-RegExp.$1.length)))}}if(i.On_Return){var D=i.On_Return;i.On_Return(0,n),i.On_Return_Remain||D!==i.On_Return||(i.On_Return=null)}return n}this.blIslocal||e.indexOf("FILE:")<0?(this.PageData["format_type"]=e,this.PageData["format_value"]=n,1==this.DoPostDatas("format")&&(this.GetLastResult(!1),r=this.GetTaskID())):t("info",this.altMessageNoReadWriteFile," at common/print/CLodopfuncs.js:496")}return this.DoInit(),this.blWorking=!1,r},SET_PRINT_PAPER:function(t,e,n,i,r){return this.PRINT_INITA(t,e,n,i,r)},PRINT_INIT:function(t,e){return this.wsHostURI="ws://".concat(e,":8000/c_webskt/"),this.PRINT_INITA(null,null,null,null,t)},PRINT_INITA:function(t,e,n,i,r){return void 0!==t&&null!==t||(t=""),void 0!==e&&null!==e||(e=""),void 0!==n&&null!==n||(n=""),void 0!==i&&null!==i||(i=""),void 0!==r&&null!==r||(r=""),this.NoClearAfterPrint=!1,this.DoInit(),this.PageData["top"]=t,this.PageData["left"]=e,this.PageData["width"]=n,this.PageData["height"]=i,this.PageData["printtask"]=r,!0},SET_PRINT_MODE:function(t,e){if(void 0!==t&&null!==t||(t=""),void 0!==e&&null!==e||(e=""),""===t)return!1;if(t=t.toLowerCase(),this.PageData[t]=e,"noclear_after_print"==t&&(this.NoClearAfterPrint=e),t.indexOf("window_def")>-1||t.indexOf("control_printer")>-1){var n=null;return 1==this.DoPostDatas("onlysetprint")&&(this.GetLastResult(!1),n=this.GetTaskID()),this.DoInit(),this.blWorking=!1,n}},ADD_PRINT_TEXT:function(t,e,n,i,r){return this.AddItemArray(2,t,e,n,i,r)},ADD_PRINT_TEXTA:function(t,e,n,i,r,o){return this.AddItemArray(2,e,n,i,r,o,t)},ADD_PRINT_HTM:function(t,e,n,i,r){return this.AddItemArray(4,t,e,n,i,r)},ADD_PRINT_HTML:function(t,e,n,i,r){return this.AddItemArray(1,t,e,n,i,r)},ADD_PRINT_HTMLA:function(t,e,n,i,r,o){return this.AddItemArray(1,e,n,i,r,o,t)},ADD_PRINT_BARCODE:function(t,e,n,i,r,o){return this.AddItemArray(9,t,e,n,i,o,null,null,null,null,null,null,r)},ADD_PRINT_BARCODEA:function(t,e,n,i,r,o,s){return this.AddItemArray(9,e,n,i,r,s,t,null,null,null,null,null,o)},ADD_PRINT_RECTA:function(t,e,n,i,r,o,s){return this.AddItemArray(3,t,e,n,i,null,null,2,r,o,s,null)},ADD_PRINT_RECT:function(t,e,n,i,r,o){return this.AddItemArray(3,t,e,n,i,null,null,2,r,o,null,null)},ADD_PRINT_ELLIPSEA:function(t,e,n,i,r,o,s){return this.AddItemArray(3,t,e,n,i,null,null,3,r,o,s,null)},ADD_PRINT_ELLIPSE:function(t,e,n,i,r,o){return this.AddItemArray(3,t,e,n,i,null,null,3,r,o,null,null)},ADD_PRINT_SHAPE:function(t,e,n,i,r,o,s,a){return this.AddItemArray(3,e,n,i,r,null,null,t,o,s,a,null)},ADD_PRINT_LINE:function(t,e,n,i,r,o){return this.AddItemArray(3,t,e,n,i,null,null,0,r,o,null,"1")},ADD_PRINT_DNLINE:function(t,e,n,i,r,o){return this.AddItemArray(3,t,e,n,i,null,null,1,r,o,null,null)},ADD_PRINT_DNLINEA:function(t,e,n,i,r,o,s){return this.AddItemArray(3,t,e,n,i,null,null,1,r,o,s,null)},ADD_PRINT_UPLINE:function(t,e,n,i,r,o){return this.AddItemArray(3,t,e,n,i,null,null,0,r,o,null,null)},ADD_PRINT_UPLINEA:function(t,e,n,i,r,o,s){return this.AddItemArray(3,t,e,n,i,null,null,0,r,o,s,null)},ADD_PRINT_TABLE:function(t,e,n,i,r){return this.AddItemArray(6,t,e,n,i,r)},ADD_PRINT_PDF:function(t,e,n,i,r){if(this.blIslocal||":"!=r[1])return this.AddItemArray(11,t,e,n,i,r);alert("Unable to print or view remote service files")},ADD_PRINT_TBURL:function(t,e,n,i,r){return this.AddItemArray(7,t,e,n,i,r)},ADD_PRINT_URL:function(t,e,n,i,r){return this.AddItemArray(5,t,e,n,i,r)},ADD_PRINT_IMAGE:function(t,e,n,i,r){return this.AddItemArray(8,t,e,n,i,r)},ADD_PRINT_CHART:function(t,e,n,i,r,o){return this.AddItemArray(10,t,e,n,i,o,null,null,null,null,null,null,null,r)},SET_PRINT_PROPERTY:function(t,e,n,i){this.SET_PRINT_STYLEA(t,"ItemType",e),this.SET_PRINT_STYLEA(t,"HOrient",n),this.SET_PRINT_STYLEA(t,"VOrient",i)},SET_PRINT_PROPERTYA:function(t,e,n,i){this.SET_PRINT_PROPERTY(t,e,n,i)},SET_PRINT_STYLE:function(t,e){if(void 0!==t&&null!==t||(t=""),void 0!==e&&null!==e||(e=""),""===t)return!1;t=t.toLowerCase(),this.defStyleJson[t]=e},SET_PRINT_STYLEA:function(t,e,n){if(void 0!==t&&null!==t||(t=""),void 0!==e&&null!==e||(e=""),void 0!==n&&null!==n||(n=""),""===t||""===e)return!1;if(this.ItemDatas["count"]<=0)return void 0!==this.PageData["add_print_program_data"]&&(this.ItemCNameStyles[e.toLowerCase()+"-"+t]=n,!0);if(e=e.toLowerCase(),"type"==e)return!1;var i=!1;for(var r in 0==t&&(t=this.ItemDatas["count"]),this.ItemDatas){var o=this.ItemDatas[r]["itemname"];(t==r||t==o||"string"===typeof t&&"string"===typeof o&&t.toUpperCase()==o.toUpperCase())&&(this.ItemDatas[r][e]=n,i=!0)}return!!i},SET_PRINT_TEXT_STYLE:function(t,e,n,i,r,o,s){this.SET_PRINT_STYLEA(t,"fontname",e),this.SET_PRINT_STYLEA(t,"fontsize",n),this.SET_PRINT_STYLEA(t,"bold",i),this.SET_PRINT_STYLEA(t,"italic",r),this.SET_PRINT_STYLEA(t,"underline",o),this.SET_PRINT_STYLEA(t,"alignment",s)},SET_PRINT_TEXT_STYLEA:function(t,e,n,i,r,o,s,a){this.SET_PRINT_TEXT_STYLE(t,e,n,i,r,o,s),this.SET_PRINT_STYLEA(t,"fontcolor",a)},SET_PRINT_TEXT_STYLEB:function(t,e,n,i,r,o,s,a){this.SET_PRINT_TEXT_STYLEA(t,e,n,i,r,o,s,a)},NEWPAGE:function(){this.NewPage()},NewPage:function(){var t,e=!1;for(var n in this.ItemDatas){for(var i in t="count"!=n,this.ItemDatas[n])if("itemtype"==i&&(t=!1,0==this.ItemDatas[n][i]||4==this.ItemDatas[n][i])){e=!0;break}if(t&&(e=!0),e)break}e&&(this.defStyleJson["beginpage"]=this.defStyleJson["beginpage"]+1)},NEWPAGEA:function(){this.NewPageA()},NewPageA:function(){var t,e=!1;for(var n in this.ItemDatas){for(var i in t="count"!=n,this.ItemDatas[n])if("itemtype"==i&&(t=!1,0==this.ItemDatas[n][i]||4==this.ItemDatas[n][i])){e=!0;break}if(t&&(e=!0),e)break}e&&(this.defStyleJson["beginpagea"]=this.defStyleJson["beginpagea"]+1)},PREVIEW:function(e,n,i){if(this.blWorking)return t("info",this.altMessageBusy," at common/print/CLodopfuncs.js:725"),null;var r=null;return!e&&this.blIslocal?1==this.DoPostDatas("preview")&&(this.Result=null,this.GetLastResult(!0),r=this.GetTaskID()):1==this.DoPostDatas("cpreview")&&(this.DoCPreview(e,n,i),r=this.GetTaskID()),this.DoInit(),this.blWorking=!1,r},PRINT:function(e,n,i){if(this.blWorking)return t("info",this.altMessageBusy," at common/print/CLodopfuncs.js:747"),null;var r=null;return 1==this.DoPostDatas("print")&&(r=this.GetTaskID()),this.DoInit(),this.blWorking=!1,r},GET_PRINTER_COUNT:function(){return void 0===this.Printers?0:this.Printers["list"].length},GET_PRINTER_NAME:function(t){if(void 0===this.Printers)return"";if("string"==typeof t&&t.indexOf(":")>-1){var e=t.slice(t.indexOf(":")+1);return t=t.slice(0,t.indexOf(":")),-1==t?this.Printers["list"][this.Printers["default"]][e]:this.Printers["list"][t][e]}return-1==t?this.Printers["list"][this.Printers["default"]].name:t>=0&&t-1)return this.PageData["add_print_program_data"]=e,!0},SHOW_CHART:function(){},DO_ACTION:function(e,n){if(this.blWorking)return t("info",this.altMessageBusy," at common/print/CLodopfuncs.js:1224"),null;var i=null;return void 0!==e&&void 0!==n&&(this.PageData["do_action_name"]=e,this.PageData["do_action_value"]=n,1==this.DoPostDatas("doaction")&&(this.GetLastResult(!1),i=this.GetTaskID())),this.DoInit(),this.blWorking=!1,i},Create_Printer_List:function(t,e){while(t.childNodes.length>0)for(var n=t.childNodes,i=0;i0)if(e)s.innerHTML=s.innerHTML+",..";else for(var a=s.innerHTML,l=0;l=100)return}}},Create_PageSize_List:function(t,e){while(t.childNodes.length>0)for(var n=t.childNodes,r=0;r-1?m["content"]=o.replace(new RegExp(this.DelimChar,"g"),""):m["content"]=o),void 0!==s&&null!=s&&(m["itemname"]=s+""),void 0!==a&&null!=a&&(m["shapetype"]=a),void 0!==l&&null!=l&&(m["penstyle"]=l),void 0!==u&&null!=u&&(m["penwidth"]=u),void 0!==c&&null!=c&&(m["fontcolor"]=c),void 0!==d&&null!=d&&(m["lineposition"]="1"),void 0!==f&&null!=f&&(m["fontname"]=f),void 0!==p&&null!=p&&(m["charttypess"]=p),m["beginpage"]=this.defStyleJson["beginpage"],m["beginpagea"]=this.defStyleJson["beginpagea"],this.ItemDatas["count"]=h,this.ItemDatas[h]=m,this.blNormalItemAdded=!0,!0},RemoveIframes:function(){try{for(var t=0;t6e4*this.timeThreshold&&this.Iframes.splice(t,1)}}catch(n){}},AddInputElement:function(t,e,n,i){if(void 0!==i){var r=t.createElement("input");r.name=n,r.type="hidden",r.value=i,e.appendChild(r)}},createPostDataString:function(t){var e="act="+t+this.DelimChar;for(var n in e=e+"browseurl="+window.location.href+this.DelimChar,this.PageDataEx)e=e+n+"="+this.PageDataEx[n]+this.DelimChar;var i="";for(var n in this.PageData)e=e+n+"="+this.PageData[n]+this.DelimChar,"top"!=n&&"left"!=n&&"width"!=n&&"height"!=n&&"printtask"!=n&&"printerindex"!=n&&"printerindexa"!=n&&"printersubid"!=n&&"orient"!=n&&"pagewidth"!=n&&"pageheight"!=n&&"pagename"!=n&&"printcopies"!=n&&"setup_bkimg"!=n&&(i=i+";"+n);""!==i&&(e=e+"printmodenames="+i+this.DelimChar);var r="";for(var o in this.ItemCNameStyles)e=e+o+"="+this.ItemCNameStyles[o]+this.DelimChar,r=r+";"+o;for(var s in""!==r&&(e=e+"printstyleclassnames="+r+this.DelimChar),e=e+"itemcount="+this.ItemDatas["count"]+this.DelimChar,this.ItemDatas){var a="";for(var l in this.ItemDatas[s])"beginpage"!=l&&"beginpagea"!=l&&"type"!=l&&"top"!=l&&"left"!=l&&"width"!=l&&"height"!=l&&(a=a+";"+l);for(var l in e=e+s+"_itemstylenames="+a+this.DelimChar,this.ItemDatas[s])e=e+s+"_"+l+"="+this.ItemDatas[s][l]+this.DelimChar}return e},wsDoPostDatas:function(t){var e="charset=\u4e02"+this.DelimChar;return e=e+"tid="+this.GetTaskID()+this.DelimChar,e+=this.createPostDataString(t),this.wsSend("post:"+e)},DoPostDatas:function(e){return this.OBO_Mode&&this.blOneByone?(t("info",this.altMessageSomeWindowExist," at common/print/CLodopfuncs.js:1487"),!1):(this.blWorking=!0,null!==this.blTmpSelectedIndex&&this.SET_PRINTER_INDEX(this.blTmpSelectedIndex),this.SocketEnable,this.wsDoPostDatas(e))},GetLastResult:function(t){if(t&&(this.blOneByone=!0),this.SocketEnable)return!0;var e=this.strHostURI+"/c_lastresult.js";e=e+"?times="+(new Date).getTime(),e=e+"&tid="+this.GetTaskID(),e=encodeURI(e).replace("%20","+");var n=document.createElement("script");n.src=e,n.async=!1,n.type="text/javascript",n.charset="utf-8";var r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;return r.insertBefore(n,r.firstChild),n.onload=n.onreadystatechange=function(){if(!n.readyState||/loaded|complete/.test(n.readyState)){if(i.blOneByone=!1,CLodop_ACTLastResult)var t=decodeURIComponent(CLodop_ACTLastResult);var e=CLodop_ACTTaskID;if(i.Result=t,CLodop_ACTAlert&&CLodop_ACTconsole.info(),i.On_Return)try{var r=i.On_Return;"true"==t||"false"==t?i.On_Return(e,"true"==t):i.On_Return(e,t),i.On_Return_Remain||r!==i.On_Return||(i.On_Return=null)}catch(o){}n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n)}},!0},DoCPreview:function(t,e,n){var i=document.body||document.getElementsByTagName("body")[0]||document.documentElement;"number"!==typeof e?e=Math.round(2*i.offsetWidth/3):i.offsetWidth0)if("_dialog"===e)window.showModalDialog?window.showModalDialog(n,"dialog","center:yes"):window.open(n,"","scrollbars=yes,toolbar=no,left=150,top=100,resizable=yes");else if("_self"===e||"_top"===e||"_parent"===e)window.location.href=n;else if("_blank"===e)this.PreviewBox.create(n,i,r);else if(e.indexOf("_winopen:")>-1){var o=e.slice(e.indexOf("_winopen:")+9);o.indexOf("_blank")>-1?window.open(n,"_blank",o.slice(o.indexOf("_blank")+6)):window.open(n,"",o)}else document.getElementById(e)?document.getElementById(e).src=n:t("info","iframe '"+e+"' not exist!"," at common/print/CLodopfuncs.js:1603");else this.PreviewBox.create(n,i,r)}catch(s){t("info","CLODOP PopView "+s," at common/print/CLodopfuncs.js:1606")}},creatMyButtonElement:function(t,e){try{var n=document.createElement("")}catch(i){}return n||(n=document.createElement("input"),n.type=t,n.value=e),n},creatLabelElement:function(t,e,n,i,r){var o=document.createElement(t);return o.innerHTML=e,o.style.cssText="position:absolute;width:"+n+"px;left:"+i+"px;top:"+r+"px;",o},SelectBox:{dragapproved:!1,offsetx:0,offsety:0,tempx:0,tempy:0,FrantDiv:void 0,PopDiv:void 0,selPrinter:void 0,selCopies:void 0,closeit:function(){i.SelectBox.PopDiv&&i.SelectBox.PopDiv.parentNode&&i.SelectBox.PopDiv.parentNode.removeChild(i.SelectBox.PopDiv),this.FrantDiv&&this.FrantDiv.parentNode&&this.FrantDiv.parentNode.removeChild(this.FrantDiv),this.PopDiv=void 0},initializedrag:function(t){var e=window.event||t;this.offsetx=e.clientX,this.offsety=e.clientY,this.tempx=parseInt(this.PopDiv.style.left),this.tempy=parseInt(this.PopDiv.style.top),this.dragapproved=!0},drag_drop:function(t){if(this.dragapproved){var e=window.event||t;this.PopDiv.style.left=e.clientX-this.offsetx+this.tempx+"px",this.PopDiv.style.top=e.clientY-this.offsety+this.tempy+"px"}},stopdrag:function(){this.dragapproved=!1},clickOK:function(t){i.PRINTAOK(i.SelectBox.selPrinter.value,i.SelectBox.selCopies.value,0,0,t),this.closeit()},create:function(t,e,n){i.SelectBox.PopDiv&&this.closeit();var r=document.body||document.getElementsByTagName("body")[0]||document.documentElement,o=document.createElement("div");r.appendChild(o),o.style.cssText="position:absolute;z-index:91100;display:block;top:2px;border:1px solid #6B97C1;background:#F5F5F5;color:#000;font-size:13px;",o.style.width=t+"px",o.style.left=Math.max((r.offsetWidth-t)/2,0)+"px",o.style.top=Math.max((r.offsetHeight-e)/2,0)+"px",o.style.height=e+"px",this.PopDiv=o;var s=document.createElement("div");o.appendChild(s),s.style.cssText="font: bold 13px Arial;line-height:25px;height:27px;text-indent:5px;color: white;background:#8BACCF",s.innerHTML="      \u6253\u5370",s.onmousedown=function(t){i.SelectBox.initializedrag(t)},s.onmousemove=function(t){i.SelectBox.drag_drop(t)},s.onmouseup=function(){i.SelectBox.stopdrag()};var a=document.createElement("button");s.appendChild(a),a.style.cssText="background:transparent url("+i.strHostURI+"/c_favicon.ico) no-repeat scroll 0 0px;margin-left:5px;position:absolute;height:20px;line-height:100px;width:34px;left:3px;border:0;top:5px";var l=document.createElement("button");s.appendChild(l),l.style.cssText="background:transparent url("+i.strHostURI+"/images/c_winclose.png) no-repeat scroll 0 0px;margin-right:5px;position:absolute;height:20px;line-height:100px;width:34px;right:3px;border:0;top:4px",l.onclick=function(){if(i.SelectBox.closeit(),n&&i.On_Return){var t=i.On_Return;i.On_Return(0,-1),i.On_Return_Remain||t!==i.On_Return||(i.On_Return=null)}};var u=document.createElement("div");o.appendChild(u),u.style.cssText="background:#F5F5F5;color:#000;border:0px;left:0px;top:0px;",u.style.width=t-2+"px",u.style.height=e-27+"px";var c=i.creatMyButtonElement("button","\u786e\u5b9a");o.appendChild(c),c.style.cssText="position:absolute;width:80px;height:23px;",c.style.left="110px",c.style.top=e-64+"px",c.onclick=function(){i.SelectBox.clickOK(n)};var d=i.creatMyButtonElement("button","\u53d6\u6d88");o.appendChild(d),d.style.cssText="position:absolute;width:80px;;height:23px;",d.style.left="240px",d.style.top=e-64+"px",d.onclick=function(){if(i.SelectBox.closeit(),n&&i.On_Return){var t=i.On_Return;i.On_Return(0,-1),i.On_Return_Remain||t!==i.On_Return||(i.On_Return=null)}},u.appendChild(i.creatLabelElement("span","\u9009\u6253\u5370\u673a\uff1a",200,46,67));var f=document.createElement("select");o.appendChild(f),this.selPrinter=f,f.style.cssText="position:absolute;size:1;width:212px;left:110px;top:62px;",i.Create_Printer_List(f),u.appendChild(i.creatLabelElement("span","\u6253\u5370\u4efd\u6570\uff1a",200,46,121));var p=i.creatMyButtonElement("text","1");o.appendChild(p),this.selCopies=p,p.style.cssText="position:absolute;size:1;width:30px;left:110px;top:117px;",this.FrantDiv=document.createElement("div"),r.appendChild(this.FrantDiv),this.FrantDiv.style.cssText="border:0px;left:0px;top:0px;filter: alpha(opacity=20); position: fixed; opacity: 0.2;-moz-opacity: 0.2; _position: absolute;z-index:91009; over-flow: hidden;",i.Browser.IE&&("BackCompat"==document.compatMode||navigator.userAgent.indexOf("MSIE 6.0")>0)?(this.FrantDiv.style.width=r.scrollWidth+"px",this.FrantDiv.style.height=r.scrollHeight+"px"):(this.FrantDiv.style.width="100%",this.FrantDiv.style.height="100%")}},PreviewBox:{dragapproved:!1,offsetx:0,offsety:0,tempx:0,tempy:0,FrantDiv:void 0,PopDiv:void 0,ContentFrame:void 0,closeit:function(t){i.PreviewBox.PopDiv&&i.PreviewBox.PopDiv.parentNode&&i.PreviewBox.PopDiv.parentNode.removeChild(i.PreviewBox.PopDiv),this.FrantDiv&&this.FrantDiv.parentNode&&this.FrantDiv.parentNode.removeChild(this.FrantDiv),this.PopDiv=void 0},initializedrag:function(t,e){var n=window.event||t;this.offsetx=n.clientX,this.offsety=n.clientY,this.tempx=parseInt(e.style.left),this.tempy=parseInt(e.style.top),this.dragapproved=!0},drag_drop:function(t,e){if(this.dragapproved){var n=window.event||t;e.style.left=n.clientX-this.offsetx+this.tempx+"px",e.style.top=n.clientY-this.offsety+this.tempy+"px"}},stopdrag:function(){this.dragapproved=!1,this.ContentFrame&&(this.ContentFrame.style.display="block")},create:function(t,e,n){i.PreviewBox.PopDiv&&this.closeit();var r=document.body||document.getElementsByTagName("body")[0]||document.documentElement,o=document.createElement("div");r.appendChild(o),o.style.cssText="position:absolute;z-index:91100;display:block;top:2px;border:1px solid #6B97C1;font-size:13px;",o.style.width=e+"px";var s=(r.offsetWidth-e)/2;window.screen.width0)?(this.FrantDiv.style.width=r.scrollWidth+"px",this.FrantDiv.style.height=r.scrollHeight+"px"):(this.FrantDiv.style.width="100%",this.FrantDiv.style.height="100%")}}};if(e.CLODOP2015_7028&&e.CLODOP2015_7028.Priority&&e.CLODOP2015_7028.Priority>i.Priority)return i=e.CLODOP2015_7028,void(e.CLODOP_OK_Priority=e.CLODOP2015_7028.Priority);e.LODOP=i,e.CLODOP=i,e.CLODOP2015_7028=i,e.CLODOP_OK_Priority=i.Priority,navigator.userAgent.indexOf("Lodop")<0&&e.CLODOP.OpenWebSocket()}(window)}).call(this,n("0de9")["default"])},b8ec:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("view",{staticClass:this._$s(0,"sc","content"),attrs:{_i:0}},[this._v(this._$s(0,"t0-0",this._s(this.scanCode)))])},r=[]},c312:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("view")},r=[]},c973:function(t,e){function n(t,e,n,i,r,o,s){try{var a=t[o](s),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(i,r)}t.exports=function(t){return function(){var e=this,i=arguments;return new Promise((function(r,o){var s=t.apply(e,i);function a(t){n(s,r,o,a,l,"next",t)}function l(t){n(s,r,o,a,l,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},caaa:function(t,e,n){"use strict";var i=n("4ea4"),r=i(n("9523")),o=i(n("7037"));n("5758");var s=i(n("a114")),a=i(n("8bbf")),l=n("7870");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}a.default.prototype.$broadcastScan=l.broadcastScan,a.default.config.productionTip=!1,s.default.mpType="app";try{uni.addInterceptor({returnValue:function(t){return function(t){return!!t&&("object"===(0,o.default)(t)||"function"===typeof t)&&"function"===typeof t.then}(t)?new Promise((function(e,n){t.then((function(t){t[0]?n(t[0]):e(t[1])}))})):t}})}catch(d){}var c=new a.default(function(t){for(var e=1;e