mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:31:07 +03:30
1 line
16 KiB
JavaScript
Vendored
1 line
16 KiB
JavaScript
Vendored
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"5tpO":function(t,e,r){var a=r("fgCr");"string"==typeof a&&(a=[[t.i,a,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r("aET+")(a,n);a.locals&&(t.exports=a.locals)},C1SP:function(t,e,r){"use strict";r.r(e);var a=r("vDqi"),n=r.n(a),o=r("i/t5");function i(t){return(i="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)}function s(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function l(){l=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,a){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),s=new W(a||[]);return n(i,"_invoke",{value:E(t,r,s)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v="suspendedStart",p="executing",m="completed",y={};function g(){}function w(){}function x(){}var _={};d(_,s,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(j([])));C&&C!==r&&a.call(C,s)&&(_=C);var k=x.prototype=g.prototype=Object.create(_);function L(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(n,o,s,c){var l=h(t[n],t,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==i(d)&&a.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}var o;n(this,"_invoke",{value:function(t,a){function n(){return new e((function(e,n){r(t,a,e,n)}))}return o=o?o.then(n,n):n()}})}function E(e,r,a){var n=v;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===m){if("throw"===o)throw i;return{value:t,done:!0}}for(a.method=o,a.arg=i;;){var s=a.delegate;if(s){var c=M(s,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===v)throw n=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=p;var l=h(e,r,a);if("normal"===l.type){if(n=a.done?m:"suspendedYield",l.arg===y)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(n=m,a.method="throw",a.arg=l.arg)}}}function M(e,r){var a=r.method,n=e.iterator[a];if(n===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,M(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var o=h(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function W(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(a.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(i(e)+" is not iterable")}return w.prototype=x,n(k,"constructor",{value:x,configurable:!0}),n(x,"constructor",{value:w,configurable:!0}),w.displayName=d(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,d(t,u,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),d(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,a,n,o){void 0===o&&(o=Promise);var i=new S(f(t,r,a,n),o);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=j,W.prototype={constructor:W,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(a,n){return s.type="throw",s.arg=e,r.next=a,n&&(r.method="next",r.arg=t),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var n=a.arg;O(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:j(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),y}},e}function u(t,e,r,a,n,o,i){try{var s=t[o](i),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(a,n)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(a,n){var o=t.apply(e,r);function i(t){u(o,a,n,i,s,"next",t)}function s(t){u(o,a,n,i,s,"throw",t)}i(void 0)}))}}var f,h,v,p={data:function(){return{data:{},QRCodeimg:"",barcodeimg:"",MedicalCenter:"",dataLoaded:!1}},methods:{load:(v=d(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.get(o.a.showLabel(e));case 2:200==(r=t.sent).status&&(this.data=r.data.data,this.generateBarcode(this.data.id),this.generateQRcodePackage(this.data.package.id),this.MedicalCenter=this.data.user.medical_center.name,this.dataLoaded=!0);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)}),generateQRcodePackage:(h=d(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.post(o.a.packageQRCode(e));case 2:(r=t.sent)&&200==r.status&&(this.QRCodeimg=r.data.data.QRCode?r.data.data.QRCode:null);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)}),generateBarcode:(f=d(l().mark((function t(e){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.post(o.a.Barcode(e,"Label"));case 2:(r=t.sent)&&200==r.status&&(this.barcodeimg=r.data.data.Barcode?r.data.data.Barcode:null);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)}),editLabel:function(t){window.location.href="/label/"+t+"/edit"},addLabel:function(t){window.location.href="/add-label"},print:function(){for(var t=document.getElementById("printMe").innerHTML,e="",r=0,a=s(document.querySelectorAll('link[rel="stylesheet"], style'));r<a.length;r++){e+=a[r].outerHTML}var n=window.open("","","left=0,top=0,width=800,height=900,toolbar=0,scrollbars=0,status=0");n.document.write("<!DOCTYPE html>\n <html>\n <head>\n ".concat(e,"\n </head>\n <body>\n ").concat(t,"\n </body>\n </html>")),n.document.close(),n.focus(),n.print(),n.close()}},created:function(){this.$route.params.label&&(console.log(this.$route.params),this.load(this.$route.params.label))}},m=(r("ng/S"),r("KHd+")),y=Object(m.a)(p,(function(){var t=this,e=t._self._c;return e("v-container",{attrs:{"grid-list-xs":""}},[e("material-card",{attrs:{color:"black",title:"Show Label"}},[e("v-layout",{staticClass:"px-2 my-3",attrs:{"align-left":"","justify-left":"",wrap:""}},[e("h3",{staticClass:"ml-3"},[t._v("Label")]),t._v(" "),e("v-flex",{attrs:{xs12:""}},[e("hr",{staticClass:"v-divider theme--light"})]),t._v(" "),e("v-layout",{attrs:{id:"printMe"}},[e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs6:"",md6:"",sm6:""}},[e("v-layout",{staticClass:"ml-4",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{staticClass:"WM-d-flex"},[e("span",{staticClass:"headline ml-1 mb-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.MedicalCenter))])])]),t._v(" "),e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{staticClass:"WM-d-flex"},[e("v-icon",{staticClass:"WMi-location"}),t._v(" "),t.dataLoaded?e("span",{staticClass:"headline ml-1 mb-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.package.name))]):t._e()],1)]),t._v(" "),e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{staticClass:"WM-d-flex"},[e("v-icon",{staticClass:"WMi-Industry"}),t._v(" "),e("span",{staticClass:"headline ml-2 mb-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.sterile_date))])],1)]),t._v(" "),e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{staticClass:"WM-d-flex"},[e("v-icon",{staticClass:"WMi-hourglass"}),t._v(" "),e("span",{staticClass:"headline ml-2 mb-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.expire_date))])],1)]),t._v(" "),e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{staticClass:"WM-d-flex"},[e("v-icon",{staticClass:"WMi-user"}),t._v(" "),e("span",{staticClass:"headline ml-2 mb-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.user?t.data.user.name:""))])],1)])],1)],1),t._v(" "),e("v-flex",{attrs:{xs6:"",md6:"",sm6:""}},[e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",[t.QRCodeimg?e("v-flex",{attrs:{xs6:"",md6:"",sm6:""}},[e("a",{attrs:{href:"/Show/Package/"+t.data.package.id,target:"_blank"}},[e("img",{staticClass:"WM-Width-120",attrs:{src:t.QRCodeimg}})])]):t._e()],1)]),t._v(" "),e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v("Sterilizer ID :")]),t._v(" "),e("span",{staticClass:"headline ml-1 mb-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.sterilizer_id))])])]),t._v(" "),e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{},[e("span",{staticClass:"title"},[t._v("Cycle No :")]),t._v(" "),e("span",{staticClass:"headline ml-2 mb-1",staticStyle:{"letter-spacing":"0 !important"}},[t._v(t._s(t.data.cycle_number))])])])],1)],1)],1),t._v(" "),e("v-layout",{attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("div",{staticClass:"mt-4",staticStyle:{"text-align":"center"}},[e("v-layout",{attrs:{row:"",wrap:""}},[t.barcodeimg?e("v-flex",{attrs:{xs6:"",md12:"",sm12:""}},[e("img",{staticClass:"WM-Width-350",attrs:{src:t.barcodeimg}}),e("br"),t._v(" "),e("span",[t._v(t._s(t.data.id))])]):t._e()],1)],1)])],1)],1)],1)],1),t._v(" "),t.dataLoaded?e("v-layout",{staticClass:"px-2 my-3",attrs:{"align-left":"","justify-left":"",wrap:""}},[e("h3",{staticClass:"ml-3"},[t._v("Package")]),t._v(" "),e("v-flex",{attrs:{xs12:""}},[e("hr",{staticClass:"v-divider theme--light"})]),t._v(" "),e("v-layout",{staticClass:"mx-3",attrs:{row:"",wrap:""}},[[e("v-expansion-panel",{staticClass:"WM-Panel"},[e("v-expansion-panel-content",{scopedSlots:t._u([{key:"header",fn:function(){return[e("div",[t._v(t._s(t.data.package.name))])]},proxy:!0}],null,!1,2857322030)},[t._v(" "),e("v-card",[e("v-card-text",[t._v("note : "+t._s(t.data.package.note))]),t._v(" "),e("v-card-text",[t._v(" Items :\n "),t._l(t.data.package.items,(function(r){return e("v-expansion-panel",{key:r.key,staticClass:"WM-Panel"},[e("v-expansion-panel-content",{scopedSlots:t._u([{key:"header",fn:function(){return[e("div",[t._v(t._s(r.name)+" ("+t._s(r.pivot.count)+")")])]},proxy:!0}],null,!0)},[t._v(" "),e("v-card",[e("v-card-text",[t._v("note : "+t._s(r.note))])],1)],1)],1)}))],2)],1)],1)],1)]],2)],1):t._e(),t._v(" "),e("v-layout",{staticStyle:{"text-align":"center"},attrs:{row:"",wrap:"","align-center":"","justify-center":""}},[e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black",on:{click:function(e){return t.addLabel()}}},[e("v-icon",{staticClass:"black--text"},[t._v("keyboard_arrow_left")]),t._v(" "),e("span",{staticClass:"black--text"},[t._v("Back")])],1),t._v(" "),e("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:t.print}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-print")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("Print")])],1),t._v(" "),e("v-btn",{staticClass:"mr-2",staticStyle:{padding:"10px 60px"},attrs:{color:"orange"},on:{click:function(e){return t.editLabel(t.data.id)}}},[e("v-icon",{staticClass:"white--text mr-1 caption"},[t._v("fas fa-pen")]),t._v(" "),e("span",[t._v("Edit")])],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=y.exports},fgCr:function(t,e,r){(t.exports=r("JPst")(!1)).push([t.i,"\n.WM-d-flex{\n display: flex;\n}\n",""])},"i/t5":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var a={showTestResult:function(t){return"/ShowTestResult/".concat(t)},showItem:function(t){return"/ShowItem/".concat(t)},showPackage:function(t){return"/ShowPackage/".concat(t)},showLabel:function(t){return"/ShowLabel/".concat(t)},showCycle:function(t){return"/ShowCycle/".concat(t)},Barcode:function(t,e){return console.log(t,e,"aaa"),"/BarCode/".concat(t,"/").concat(e)},packageBarcode:function(t){return"/Package/Barcode/".concat(t)},packageQRCode:function(t){return"/Package/QRCode/".concat(t)}}},"ng/S":function(t,e,r){"use strict";r("5tpO")}}]); |