You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
66 KiB
JavaScript
2 lines
66 KiB
JavaScript
|
2 years ago
|
(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;i<e;i++)n[i-1]=arguments[i];console[t].apply(console,n)}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=e.shift();if(r())return e.push(e.pop().replace("at ","uni-app:///")),console[s].apply(console,e);var a=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,o)+"---END:JSON---"}catch(r){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var n=i(t).toUpperCase();t="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+t+"---END:"+n+"---":String(t)}return t})),l="";if(a.length>1){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
|
||
|
2 years ago
|
/*! 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<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=g,s(b,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:v,configurable:!0}),v.displayName=d(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,d(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},D(I.prototype),d(I.prototype,u,(f
|