cordova-11/www/js/app.js
2022-05-25 07:48:07 +08:00

1 line
33 KiB
JavaScript

(function(t){function e(e){for(var o,a,r=e[0],c=e[1],l=e[2],u=0,d=[];u<r.length;u++)a=r[u],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&d.push(i[a][0]),i[a]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(t[o]=c[o]);p&&p(e);while(d.length)d.shift()();return s.push.apply(s,l||[]),n()}function n(){for(var t,e=0;e<s.length;e++){for(var n=s[e],o=!0,a=1;a<n.length;a++){var r=n[a];0!==i[r]&&(o=!1)}o&&(s.splice(e--,1),t=c(c.s=n[0]))}return t}var o={},a={36:0},i={36:0},s=[];function r(t){return c.p+"js/"+({0:"chunk-common"}[t]||t)+".js"}function c(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(t){var e=[],n={0:1,2:1,3:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1};a[t]?e.push(a[t]):0!==a[t]&&n[t]&&e.push(a[t]=new Promise((function(e,n){for(var o="css/"+({0:"chunk-common"}[t]||t)+"."+{0:"0c8f96e8",2:"a6314350",3:"0ff27fed",4:"31d6cfe0",5:"31d6cfe0",6:"31d6cfe0",7:"58c014d7",8:"384fcb4d",9:"b2e01979",10:"e1ab7393",11:"d1ecccdb",12:"c97887eb",13:"3ec0d28c",14:"3114b34c",15:"fa0f985c",16:"bd8950b3",17:"bcf6aad0",18:"673bf0b3",19:"264ed9b0",20:"f4b5c2ff",21:"7b4f6794",22:"e013a8b8",23:"129b4424",24:"31d6cfe0",25:"31d6cfe0",26:"31d6cfe0",27:"31d6cfe0",28:"31d6cfe0",29:"31d6cfe0",30:"31d6cfe0",31:"31d6cfe0",32:"31d6cfe0",33:"31d6cfe0",34:"31d6cfe0",35:"31d6cfe0"}[t]+".css",i=c.p+o,s=document.getElementsByTagName("link"),r=0;r<s.length;r++){var l=s[r],u=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(u===o||u===i))return e()}var d=document.getElementsByTagName("style");for(r=0;r<d.length;r++){l=d[r],u=l.getAttribute("data-href");if(u===o||u===i)return e()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=e,p.onerror=function(e){var o=e&&e.target&&e.target.src||i,s=new Error("Loading CSS chunk "+t+" failed.\n("+o+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=o,delete a[t],p.parentNode.removeChild(p),n(s)},p.href=i;var m=document.getElementsByTagName("head")[0];m.appendChild(p)})).then((function(){a[t]=0})));var o=i[t];if(0!==o)if(o)e.push(o[2]);else{var s=new Promise((function(e,n){o=i[t]=[e,n]}));e.push(o[2]=s);var l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,c.nc&&u.setAttribute("nonce",c.nc),u.src=r(t);var d=new Error;l=function(e){u.onerror=u.onload=null,clearTimeout(p);var n=i[t];if(0!==n){if(n){var o=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;d.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",d.name="ChunkLoadError",d.type=o,d.request=a,n[1](d)}i[t]=void 0}};var p=setTimeout((function(){l({type:"timeout",target:u})}),12e4);u.onerror=u.onload=l,document.head.appendChild(u)}return Promise.all(e)},c.m=t,c.c=o,c.d=function(t,e,n){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},c.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)c.d(n,o,function(e){return t[e]}.bind(null,o));return n},c.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="",c.oe=function(t){throw console.error(t),t};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],u=l.push.bind(l);l.push=e,l=l.slice();for(var d=0;d<l.length;d++)e(l[d]);var p=u;s.push([0,1]),n()})({0:function(t,e,n){t.exports=n("2f39")},"0418":function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("div",{staticClass:"left"},[n("div",{staticClass:"back",on:{click:t.back}},[n("div",{staticClass:"icon no-padding"},[n("q-icon",{attrs:{name:"app:icon-a-tubiaosysbeifen1"}})],1)])]),n("div",{staticClass:"title"},[t._v(t._s(t.name))]),n("div",{staticClass:"right"},[n("div",{staticClass:"inline-block batchNum"},[n("q-select",{staticStyle:{width:"250px"},attrs:{filled:"","use-input":"",borderless:"","input-debounce":"0",options:t.list,clearable:""},on:{filter:t.filterFn},scopedSlots:t._u([{key:"no-option",fn:function(){return[n("q-item",[n("q-item-section",{staticClass:"text-grey"},[t._v("\n 暂无数据\n ")])],1)]},proxy:!0}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),n("div",{staticClass:"icon",on:{click:t.scan}},[n("q-icon",{attrs:{name:"app:icon-a-tubiaosysbeifen"}})],1),n("div",{staticClass:"icon",on:{click:t.backHome}},[n("q-icon",{attrs:{name:"app:icon-a-tubiaosysbeifen2"}})],1)])])},a=[],i={name:"CommonHeader",props:{options:{type:Array,default:[]},model:{type:Object|String},fkliterKey:{type:String}},data(){return{list:[],value:null}},computed:{name(){return this.$route.meta.title}},watch:{options(t){this.list=t},model(t){this.value=t},value(t){this.$emit("update:model",t)}},methods:{back(){this.$router.go(-1)},backHome(){this.$router.push("/dashboard")},scan(){const t=this;cloudSky.zBar.scan({text_title:"扫码",text_instructions:"请把相机对准二维码",camera:"red",flash:"auto",drawSight:!0},(function(e){console.log(e,"success1"),t.value=e.text,t.$emit("update:model",e.text)}),(function(t){console.log(t,"error")}))},filterFn(t,e){e(""!==t?()=>{const e=t.toLowerCase();this.list=this.options.filter((t=>this.fkliterKey?t[this.fkliterKey].toLowerCase().indexOf(e)>-1:t.toLowerCase().indexOf(e)>-1))}:()=>{this.list=this.options})}}},s=i,r=(n("9c71"),n("2877")),c=n("0016"),l=n("ddd8"),u=n("66e5"),d=n("4074"),p=n("8572"),m=n("eebe"),f=n.n(m),h=Object(r["a"])(s,o,a,!1,null,"279dfcc4",null);e["a"]=h.exports;f()(h,"components",{QIcon:c["a"],QSelect:l["a"],QItem:u["a"],QItemSection:d["a"],QField:p["a"]})},"0850":function(t,e,n){},"087a":function(t,e,n){},"1df4":function(t,e,n){"use strict";n("60e1")},"2c41":function(t,e,n){},"2f39":function(t,e,n){"use strict";n.r(e);n("5319"),n("ae0c"),n("7d6e"),n("e54f"),n("985d"),n("31cd"),n("7003");var o=n("2b0e"),a=n("bf69"),i=n("42d2"),s=n("b05d"),r=n("f508"),c=n("2a19");o["a"].use(s["a"],{config:{},lang:a["a"],iconSet:i["a"],plugins:{Loading:r["a"],Notify:c["a"]}});var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"q-app"}},[n("keep-alive",[t.$route.meta.keepAlive?n("router-view"):t._e()],1),t.$route.meta.keepAlive?t._e():n("router-view")],1)},u=[],d={name:"App",created(){try{StatusBar.hide(!0),screen.orientation.lock("landscape")}catch{}this.$q.iconMapFn=t=>{if(!0===t.startsWith("app:")){const e=t.substring(4);return{cls:"iconfont "+e}}}},watch:{$route(t,e){try{StatusBar.hide(!0),screen.orientation.lock("landscape")}catch{}}}},p=d,m=n("2877"),f=Object(m["a"])(p,l,u,!1,null,null,null),h=f.exports,g=n("2f62"),b=n("758b");const v={state:{roles:[],userInfo:{}},mutations:{setRoles:(t,e)=>{t.roles=e},setUserInfo:(t,e)=>{t.userInfo=e}},actions:{getUserInfo({commit:t}){return new Promise(((e,n)=>{Object(b["b"])({url:"/index/info",method:"get"}).then((n=>{let o=n.result;o.roles&&o.roles.length>0?(t("setRoles",o.roles),t("setUserInfo",o),e()):c["a"].create({type:"negative",position:"top",message:"该用户尚未创建角色,请联系管理员"})})).catch((t=>{n(t)}))}))}}};var y=v;n("ddb0");const C=[{path:"/dashboard",component:()=>Promise.all([n.e(1),n.e(0),n.e(2)]).then(n.bind(null,"ec95")),meta:{keepAlive:!0}},{path:"/",component:()=>Promise.resolve().then(n.bind(null,"a9c3")),children:[{path:"cordova-api",component:()=>n.e(6).then(n.bind(null,"44a3"))},{path:"axios-api",component:()=>n.e(5).then(n.bind(null,"1e78"))}]},{path:"/login",component:()=>Promise.all([n.e(1),n.e(0),n.e(3)]).then(n.bind(null,"013f"))},{path:"*",component:()=>n.e(4).then(n.bind(null,"e51e"))}];var x=C,w=n("a9c3"),S=n("df7c"),j=n.n(S);let _=(t,e="yyyy-MM-dd hh:mm:ss")=>{if(null==t)return"";let n=t=>1===t.toString().length?"0"+t:""+t,o=new Date(t),a=n(o.getFullYear()),i=n(o.getMonth()+1),s=n(o.getDate()),r=n(o.getHours()),c=n(o.getMinutes()),l=n(o.getSeconds()),u=e.replace(/(yyyy|MM|dd|hh|mm|ss)/g,((t,e)=>({yyyy:a,MM:i,dd:s,hh:r,mm:c,ss:l}[e])));return u},k=(t=(new Date).getMonth())=>{let e=new Date,n=e.getFullYear(),o=new Date(n,t,1),a=new Date(n,t+1,1);return(a-o)/864e5},L=(t=new Date,e="yyyy-MM-dd")=>{let n=t.getFullYear(),o=t.getMonth(),a=new Date(n,o,1);return _(a,e)},O=(t=new Date,e="yyyy-MM-dd")=>{let n=t.getFullYear(),o=t.getMonth(),a=k(o),i=new Date(n,o,a);return _(i,e)};var q={formatDate:_,getMonthDays:k,getMonthStartDay:L,getMonthEndDate:O};function I(t="rgb(0, 0, 0)",e="rgb(255, 255, 255)",n=10){const o=N(t,!1),a=o[0],i=o[1],s=o[2],r=N(e,!1),c=r[0],l=r[1],u=r[2],d=(c-a)/n,p=(l-i)/n,m=(u-s)/n,f=[];for(let h=0;h<n;h++){let o=E(`rgb(${Math.round(d*h+a)},${Math.round(p*h+i)},${Math.round(m*h+s)})`);0===h&&(o=E(t)),h===n-1&&(o=E(e)),f.push(o)}return f}function N(t,e=!0){const n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t=String(t).toLowerCase(),t&&n.test(t)){if(4===t.length){let e="#";for(let n=1;n<4;n+=1)e+=t.slice(n,n+1).concat(t.slice(n,n+1));t=e}const n=[];for(let e=1;e<7;e+=2)n.push(parseInt(`0x${t.slice(e,e+2)}`));return e?`rgb(${n[0]},${n[1]},${n[2]})`:n}if(/^(rgb|RGB)/.test(t)){const e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return e.map((t=>Number(t)))}return t}function E(t){const e=t,n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(e)){const t=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");let n="#";for(let e=0;e<t.length;e++){let o=Number(t[e]).toString(16);o=1==String(o).length?`0${o}`:o,"0"===o&&(o+=o),n+=o}return 7!==n.length&&(n=e),n}if(!n.test(e))return e;{const t=e.replace(/#/,"").split("");if(6===t.length)return e;if(3===t.length){let e="#";for(let n=0;n<t.length;n+=1)e+=t[n]+t[n];return e}}}function M(t,e){t=E(t);const n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;let o=String(t).toLowerCase();if(o&&n.test(o)){if(4===o.length){let t="#";for(let e=1;e<4;e+=1)t+=o.slice(e,e+1).concat(o.slice(e,e+1));o=t}const t=[];for(let e=1;e<7;e+=2)t.push(parseInt(`0x${o.slice(e,e+2)}`));return`rgba(${t.join(",")},${e})`}return o}var $={colorGradient:I,hexToRgb:N,rgbToHex:E,colorToRgba:M};let T=!0;function A(t,e=15){return+parseFloat(Number(t).toPrecision(e))}function P(t){const e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function B(t){if(-1===t.toString().indexOf("e"))return Number(t.toString().replace(".",""));const e=P(t);return e>0?A(Number(t)*Math.pow(10,e)):Number(t)}function R(t){T&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)&&console.warn(`${t} 超出了精度限制,结果可能不正确`)}function D(t,e){const[n,o,...a]=t;let i=e(n,o);return a.forEach((t=>{i=e(i,t)})),i}function F(...t){if(t.length>2)return D(t,F);const[e,n]=t,o=B(e),a=B(n),i=P(e)+P(n),s=o*a;return R(s),s/Math.pow(10,i)}function Q(...t){if(t.length>2)return D(t,Q);const[e,n]=t,o=Math.pow(10,Math.max(P(e),P(n)));return(F(e,o)+F(n,o))/o}function z(...t){if(t.length>2)return D(t,z);const[e,n]=t,o=Math.pow(10,Math.max(P(e),P(n)));return(F(e,o)-F(n,o))/o}function U(...t){if(t.length>2)return D(t,U);const[e,n]=t,o=B(e),a=B(n);return R(o),R(a),F(o/a,A(Math.pow(10,P(n)-P(e))))}function H(t,e){const n=Math.pow(10,e);let o=U(Math.round(Math.abs(F(t,n))),n);return t<0&&0!==o&&(o=F(o,-1)),o}function V(t=!0){T=t}var G={times:F,plus:Q,minus:z,divide:U,round:H,enableBoundaryChecking:V,float2Fixed:B};function J(t){let e=t.split("/").filter((t=>t));return e.map(((t,e)=>{let n=t.toLowerCase();return e>0&&(n=n.substring(0,1).toUpperCase()+n.substring(1)),n})).join("")}function K(t,e="yyyy/MM/dd/ hh:mm:ss"){let n=t=>1===t.toString().length?"0"+t:""+t,o=new Date(t),a=n(o.getFullYear()),i=n(o.getMonth()+1),s=n(o.getDate()),r=n(o.getHours()),c=n(o.getMinutes()),l=n(o.getSeconds()),u=e.replace(/(yyyy|MM|dd|hh|mm|ss)/g,((t,e)=>({yyyy:a,MM:i,dd:s,hh:r,mm:c,ss:l}[e])));return u}function Y(t){let e=!0,n=0;return t.forEach((t=>{Object.values(t).forEach((t=>{""===t&&(e=!1)}))})),e&&t.forEach((t=>{0===t.tailPieceFlag&&1===t.qualifiedFlag&&(n+=t.num)})),n}function X(t){let e=!1,n=0;return t.forEach((t=>{0===t.qualifiedFlag&&""!==t.num&&(e=!0)})),e&&t.forEach((t=>{0===t.qualifiedFlag&&(n+=t.num)})),n}function W(t,e){let n={};return t=t.reduce((function(t,o){return!n[o[e]]&&(n[o[e]]=t.push(o)),t}),[]),t}function Z(t){let e=Object.values(t).filter((t=>{if(""!==t)return!0}));if(0===e.length)return!0}async function tt(t){sessionStorage.setItem("token",t.token);try{await new Promise((e=>{db.transaction((function(n){n.executeSql("DROP TABLE IF EXISTS MyTable"),n.executeSql("CREATE TABLE IF NOT EXISTS MyTable (token, deviceId, deviceNo)"),n.executeSql("INSERT INTO MyTable VALUES (?,?,?)",[t.token]),e()}),(function(t){console.log("Open database ERROR: "+JSON.stringify(t))}),(function(){console.log("Populated database OK")}))}))}catch(e){console.log(e)}}async function et(){sessionStorage.removeItem("token"),sessionStorage.removeItem("userName");try{await new Promise((t=>{db.transaction((function(e){e.executeSql("DROP TABLE IF EXISTS MyTable",[],(async(e,n)=>{t()}))}),(function(t){console.log("transaction error: "+t.message)}),(function(){console.log("transaction ok")}))}))}catch(t){console.log(t)}}var nt={path2camelcase:J,formatDate:K,judgeArrObj:Y,delArrayRepetition:W,judgeArrObj2:X,objectValueAllEmpty:Z,deleteData:et,saveData:tt};let ot=()=>{sessionStorage.removeItem("token"),sessionStorage.removeItem("userName"),localStorage.clear(),location.reload()},at=t=>null==t||""==t||"null"==t?"":t,it=t=>null==t||""==t||""==t.trim()||"null"==t?"":t,st=(t=0,e=0,n=0)=>Math.max(t,Math.min(e,Number(n)));function rt(t,e){if(t>=0&&e>0&&e>=t){const n=e-t+1;return Math.floor(Math.random()*n+t)}return 0}function ct(t,e="both"){return t=String(t),"both"==e?t.replace(/^\s+|\s+$/g,""):"left"==e?t.replace(/^\s*/,""):"right"==e?t.replace(/(\s*$)/g,""):"all"==e?t.replace(/\s+/g,""):t}let lt={...q,...$,...G,...nt,range:st,random:rt,trim:ct,goToLogin:ot,dateNull:at,isNotEmpty:it};o["a"].prototype.$u=lt;var ut=lt;let dt=ut.path2camelcase;const pt={state:{routes:[],dynamicRoutes:[]},mutations:{setRoutes:(t,e)=>{t.dynamicRoutes=e,t.routes=[...mt(x),...e]}},actions:{generateRoutes({commit:t}){return new Promise(((e,n)=>{Object(b["b"])({url:"/menu/getRouters?useSource=2",method:"get"}).then((n=>{const o=mt(n.result);t("setRoutes",o),e(o)})).catch((t=>{n(t)}))}))}}};function mt(t,e="/"){return t.map((t=>{let o=t.component;return o&&"string"===typeof o&&(t.component="Layout"===o?w["default"]:()=>n("a383")(`./${o}`)),t.path=j.a.resolve(e,t.path),t.originName=t.name,t.name&&(t.name=dt(t.path)),t.children&&t.children.length&&(t.children=mt(t.children,t.path)),t}))}var ft=pt;const ht={state:{currentBatchNum:null,batchNumParams:{autoUrl:"",processId:"",stepId:"",batchNum:"",boxNum:"",deviceId:"",plateNum:""}},mutations:{setBatchNum:(t,e)=>{t.currentBatchNum=e},setbatchNumParams:(t,e)=>{t.batchNumParams=Object.assign({},{autoUrl:"",processId:"",stepId:"",batchNum:"",boxNum:"",deviceId:"",plateNum:""},e)}},actions:{}};var gt=ht;const bt={state:{qualityList:[],deviceIdList:[],thicknessList:[],customerList:[]},mutations:{setQualityList:(t,e)=>{t.qualityList=e},setDeviceIdList:(t,e)=>{t.deviceIdList=e},setThicknessList:(t,e)=>{t.thicknessList=e},setCustomerList:(t,e)=>{t.customerList=e}},actions:{getQualityList({commit:t},e){Object(b["b"])({url:"/quality/queryPad",method:"get",params:{pageNum:0,pageSize:0,status:1,processId:e}}).then((e=>{t("setQualityList",e.result.list)}))},getDeviceIdList({commit:t},e){return Object(b["b"])({url:"/device/queryPad",method:"get",params:{pageSize:0,pageNum:0,status:1,processId:e}}).then((e=>{t("setDeviceIdList",e.result.list)}))},getThicknessList({commit:t},e){Object(b["b"])({url:"/customer/queryQualityAndGear",method:"get",params:{customerId:e}}).then((e=>{t("setThicknessList",e.result.thkList)}))},getCustomerList({commit:t}){axios({url:"/customer/queryPad",method:"get",params:{customerName:"",customerNum:"",pageNum:0,pageSize:0}}).then((e=>{t("setCustomerList",e.result.list)}))}}};var vt=bt;o["a"].use(g["a"]);const yt=new g["a"].Store({getters:{roles:t=>t.user.roles,permissionRoutes:t=>t.permission.routes,customRoutes:t=>t.permission.dynamicRoutes,currentBatchNum:t=>t.common.currentBatchNum,batchNumParams:t=>t.common.batchNumParams,qualityList:t=>t.commonList.qualityList,deviceIdList:t=>t.commonList.deviceIdList,thicknessList:t=>t.commonList.thicknessList,customerList:t=>t.commonList.customerList},modules:{user:y,permission:ft,common:gt,commonList:vt}});var Ct=yt,xt=n("8c4f");o["a"].use(xt["a"]);const wt=new xt["a"]({scrollBehavior:()=>({x:0,y:0}),routes:x,mode:"hash",base:""});wt.beforeEach(((t,e,n)=>{let o=!!sessionStorage.getItem("token"),a=["/login","/404"];if(o)if("/login"===t.path)n("/dashboard");else{const e=Ct.getters.roles&&Ct.getters.roles.length>0;e?n():Ct.dispatch("getUserInfo").then((()=>Ct.dispatch("generateRoutes"))).then((e=>{wt.addRoutes(e),n({...t,replace:!0})})).catch((e=>{sessionStorage.removeItem("token"),n(`/login?to=${t.path}`)}))}else~a.indexOf(t.path)?n():n(`/login?to=${t.path}`)}));var St=wt,jt=async function(){const t="function"===typeof Ct?await Ct({Vue:o["a"]}):Ct,e="function"===typeof St?await St({Vue:o["a"],store:t}):St;t.$router=e;const n={router:e,store:t,render:t=>t(h),el:"#q-app"};return{app:n,store:t,router:e}},_t=n("3a34"),kt=n.n(_t);const Lt=new kt.a;var Ot=Lt,qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("q-dialog",{attrs:{persistent:""},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[n("q-card",{staticStyle:{"min-width":"300px"}},[n("q-card-section",[n("p",{staticClass:"title",staticStyle:{"font-size":"18px"}},[t._v(t._s(t.text.title))]),n("div",{staticClass:"no-margin",staticStyle:{position:"relative"}},[n("q-icon",{staticClass:"warningicon",staticStyle:{"font-size":"24px",position:"absolute",top:"0",left:"0"},attrs:{name:"fas fa-exclamation-triangle",color:"warning"}}),n("p",{staticStyle:{padding:"0 10px","line-height":"24px","vertical-align":"middle","padding-left":"30px"}},[t._v(t._s(t.text.message))])],1)]),n("q-card-actions",{attrs:{align:"right"}},[n("q-btn",{attrs:{label:t.text.btn.cancelText},on:{click:function(e){return t.handleClose()}}}),n("q-btn",{attrs:{label:t.text.btn.okText,color:"primary"},on:{click:function(e){return t.handleOk()}}})],1)],1)],1)},It=[],Nt={name:"confirm",data(){return{isShow:!0,text:{title:"提示",message:"确定?",btn:{okText:"确定",cancelText:"取消"}}}},methods:{handleOk(){console.log("ok")},handleClose(){console.log("cancle")}}},Et=Nt,Mt=n("24e8"),$t=n("f09f"),Tt=n("a370"),At=n("0016"),Pt=n("4b7e"),Bt=n("9c40"),Rt=n("eebe"),Dt=n.n(Rt),Ft=Object(m["a"])(Et,qt,It,!1,null,null,null),Qt=Ft.exports;Dt()(Ft,"components",{QDialog:Mt["a"],QCard:$t["a"],QCardSection:Tt["a"],QIcon:At["a"],QCardActions:Pt["a"],QBtn:Bt["a"]});const zt=o["a"].extend(Qt),Ut=function(t){return new Promise(((e,n)=>{const o=new zt({el:document.createElement("div")});document.body.appendChild(o.$el),o.text=t,o.handleOk=function(){e(),o.isShow=!1},o.handleClose=function(){n(),o.isShow=!1}}))};var Ht=Ut;o["a"].prototype.$confirm=Ht;var Vt=n("0418"),Gt=n("5979"),Jt=n("dd67"),Kt=n("9951"),Yt=n("d54c"),Xt=n("5dc4"),Wt=n("54d9");let Zt={Appbar:Vt["a"],CommonCard:Gt["default"],CommonBtngroup:Jt["default"],CommonTitle:Kt["default"],CommonBox:Yt["default"],PageContainer:Xt["default"],SelectFill:Wt["default"]};Object.keys(Zt).forEach((t=>{o["a"].component(t,Zt[t])})),o["a"].prototype.$message={success:t=>{c["a"].create({message:t,type:"positive",position:"top"})},warning:t=>{c["a"].create({message:t,type:"warning",position:"top"})},error:t=>{c["a"].create({message:t,type:"negative",position:"top"})}};const te="";async function ee(){const{app:t,store:e,router:n}=await jt();let a=!1;const i=t=>{a=!0;const e=Object(t)===t?n.resolve(t).route.fullPath:t;window.location.href=e},s=window.location.href.replace(window.location.origin,""),r=[b["default"],Ot,void 0,void 0,void 0];for(let l=0;!1===a&&l<r.length;l++)if("function"===typeof r[l])try{await r[l]({app:t,router:n,store:e,Vue:o["a"],ssrContext:null,redirect:i,urlPath:s,publicPath:te})}catch(c){return c&&c.url?void(window.location.href=c.url):void console.error("[Quasar] boot error:",c)}!0!==a&&document.addEventListener("deviceready",(()=>{o["a"].prototype.$q.cordova=window.cordova,new o["a"](t)}),!1)}ee()},"31cd":function(t,e,n){},3641:function(t,e,n){"use strict";n("5ce2")},"54d9":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("q-select",{attrs:{filled:"",dense:"","use-input":t.useInput,"input-debounce":"0","option-value":t.optionValue,"option-label":t.optionLabel,options:t.list,behavior:"menu",disable:t.disable,"emit-value":t.emitValue,"map-options":t.mapOptions,rules:t.rules},on:{focus:t.focus,filter:t.filterFn},scopedSlots:t._u([{key:"no-option",fn:function(){return[n("q-item",[n("q-item-section",{staticClass:"text-grey"},[t._v("\n 暂无数据\n ")])],1)]},proxy:!0}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})},a=[],i={name:"SelectFill",props:{model:{type:Object|String,required:!0},useInput:{type:Boolean,default:!1},optionValue:String,optionLabel:String,options:{type:Array,default:()=>[]},disable:{type:Boolean,default:!1},emitValue:{type:Boolean,default:!1},mapOptions:{type:Boolean,default:!1},rules:{type:Array,default:()=>[]}},data(){return{list:[],value:null}},watch:{options(t){this.list=JSON.parse(JSON.stringify(t))},model(t){this.emitValue?this.value=t?t.toString():"":this.value=t},value(t){this.emitValue?this.$emit("update:model",t?t.toString():""):this.$emit("update:model",t)}},methods:{focus(){this.$emit("focus")},filterFn(t,e){const n=this.options;e(""!==t?()=>{const e=t.toLowerCase();this.list=n.filter((t=>t[this.optionLabel].toLowerCase().indexOf(e)>-1))}:()=>{this.list=n})}}},s=i,r=n("2877"),c=n("ddd8"),l=n("66e5"),u=n("4074"),d=n("eebe"),p=n.n(d),m=Object(r["a"])(s,o,a,!1,null,null,null);e["default"]=m.exports;p()(m,"components",{QSelect:c["a"],QItem:l["a"],QItemSection:u["a"]})},5979:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"common-title"},[t._v("\n "+t._s(t.title||"")+"\n ")]),t.list.length?n("div",{staticClass:"scroll"},t._l(t.list,(function(e,o){return n("div",{key:o,staticClass:"common-card inline-block mg-r-30 shadow-box"},[n("div",{staticClass:"flex items-start"},[n("div",{staticClass:"col-icon"},[n("div",{staticClass:"left_icon"},[n("q-icon",{attrs:{name:"app:icon-a-xingzhuang2"}})],1)]),n("div",{staticClass:"col-center"},[n("div",{staticClass:"item title"},[t._v("\n 批次:"+t._s(e.batchNum)+"\n ")]),n("div",{staticClass:"item"},[n("table",{staticClass:"table"},[t._t("default",(function(){return[n("tr",[n("td",{staticClass:"label"},[t._v("客户")]),n("td",[t._v(t._s(e.customerName))]),n("td",{staticClass:"label"},[t._v("实际长度")]),n("td",[t._v(t._s(e.actualLength))])]),n("tr",[n("td",{staticClass:"label"},[t._v("晶棒编码")]),n("td",[t._v(t._s(e.crystalrodNum))]),n("td",{staticClass:"label"},[t._v("有效长度")]),n("td",[t._v(t._s(e.effectiveLength))])])]}),{data:e})],2)])]),n("div",{staticClass:"col-close text-right",on:{click:function(n){return t.closeCard(e)}}},[n("q-icon",{attrs:{name:"app:icon-guanbi"}})],1)])])})),0):n("div",{staticClass:"no-data"},[t._v("\n 暂无任务信息\n ")])])},a=[],i={name:"CommonCard",props:{title:{type:String,default:"任务信息"},list:{type:Array,default:()=>[]}},watch:{list(t){}},created(){console.log(this.list,"list")},data(){return{}},methods:{closeCard(t){this.list.length>1||this.$store.commit("setBatchNum",null)}}},s=i,r=(n("f893"),n("2877")),c=n("0016"),l=n("eebe"),u=n.n(l),d=Object(r["a"])(s,o,a,!1,null,"c1c0626c",null);e["default"]=d.exports;u()(d,"components",{QIcon:c["a"]})},"5ce2":function(t,e,n){},"5dc4":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-container"},[n("div",{staticClass:"page-container-header"},[t._t("header")],2),n("div",{staticClass:"page-container-content"},[t._t("default")],2)])},a=[],i={name:"Container",props:["name"]},s=i,r=(n("1df4"),n("2877")),c=n("adad"),l=n("823b"),u=n("7460"),d=n("eebe"),p=n.n(d),m=Object(r["a"])(s,o,a,!1,null,null,null);e["default"]=m.exports;p()(m,"components",{QTabPanels:c["a"],QTabPanel:l["a"],QTab:u["a"]})},"60e1":function(t,e,n){},7003:function(t,e,n){},"758b":function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var o=n("bc3a"),a=n.n(o),i=n("2b0e"),s=n("2a19");i["a"].prototype.$http=a.a,a.a.defaults.headers["Content-Type"]="application/json;charset=utf-8";const r=a.a.create({timeout:35e3,baseURL:"http://10.1.248.29:8028"});r.interceptors.request.use((t=>{let e;t.data&&t.data.baseURL&&(e=t.data.baseURL),!e&&t.params&&t.params.baseURL&&(e=t.params.baseURL),e&&(t.baseURL=e);let n=!!sessionStorage.getItem("token");return n&&(t.headers["Authorization"]=sessionStorage.getItem("token")),t}),(t=>{Promise.reject(t)})),r.interceptors.response.use((t=>{let e=t.data.code,n=t.data.message;if("Z000"===e)return t.data;if("A2001"!==e)throw s["a"].create({type:"negative",position:"top",message:n}),n;sessionStorage.removeItem("token"),router.push("/login")}),(t=>(~t.toString().indexOf("timeout")&&s["a"].create({type:"negative",position:"top",message:"网络请求超时"}),~t.toString().indexOf("Network Error")&&s["a"].create({type:"negative",position:"top",message:"网络请求错误"}),Promise.reject(t)))),i["a"].prototype.$http=r},9232:function(t,e,n){"use strict";n("0850")},"92dc":function(t,e,n){"use strict";n("9c6d")},9951:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tool-title row flex items-center"},[n("div",{staticClass:"tool_left col"},[t.needIcon?n("span",{staticClass:"icon",class:t.color},[n("q-icon",{attrs:{name:"app:"+t.icon}})],1):t._e(),n("span",{staticClass:"title"},[t._v(t._s(t.title))])]),n("div",{staticClass:"right_tool col text-right"},[t._t("right-tool")],2)])},a=[],i={name:"CommonTtile",props:{title:{type:String,default:"数据填写"},icon:{type:String,default:""},color:{type:String,default:"blue"},needIcon:{type:Boolean,default:!0}},data(){return{}}},s=i,r=(n("92dc"),n("2877")),c=n("0016"),l=n("eebe"),u=n.n(l),d=Object(r["a"])(s,o,a,!1,null,"78e6f6e1",null);e["default"]=d.exports;u()(d,"components",{QIcon:c["a"]})},"9c6d":function(t,e,n){},"9c71":function(t,e,n){"use strict";n("e464")},a383:function(t,e,n){var o={"./Dashboard":["ec95",1,0,2],"./Dashboard.vue":["ec95",1,0,2],"./Error404":["e51e",4],"./Error404.vue":["e51e",4],"./Login":["013f",1,0,3],"./Login.vue":["013f",1,0,3],"./components/BottomBtngroup":["dd67"],"./components/BottomBtngroup.vue":["dd67"],"./components/CommonBox":["d54c"],"./components/CommonBox.vue":["d54c"],"./components/CommonCard":["5979"],"./components/CommonCard.vue":["5979"],"./components/CommonTitle":["9951"],"./components/CommonTitle.vue":["9951"],"./components/DashboardHeader":["8e33",0],"./components/DashboardHeader.vue":["8e33",0],"./components/FormTable":["6e23",0],"./components/FormTable.vue":["6e23",0],"./components/SelectFill":["54d9"],"./components/SelectFill.vue":["54d9"],"./components/opticsTitleCrad":["30d4",0],"./components/opticsTitleCrad.vue":["30d4",0],"./factory1/chumo":["e57d",1,0,24],"./factory1/chumo.vue":["e57d",1,0,24],"./factory1/compoennts/Container":["5dc4"],"./factory1/compoennts/Container.vue":["5dc4"],"./factory1/compoennts/Tabs":["ccb6",25],"./factory1/compoennts/Tabs.vue":["ccb6",25],"./factory1/daojiao":["887a",1,0,26],"./factory1/daojiao.vue":["887a",1,0,26],"./factory1/fenmian":["125a",1,0,27],"./factory1/fenmian.vue":["125a",1,0,27],"./factory1/jingbangtuihuo":["178e",1,0,28],"./factory1/jingbangtuihuo.vue":["178e",1,0,28],"./factory1/jingmo":["4e35",1,0,29],"./factory1/jingmo.vue":["4e35",1,0,29],"./factory1/mixins/tools":["d6f4",0],"./factory1/mixins/tools.js":["d6f4",0],"./factory1/qingxi":["32ce",1,0,30],"./factory1/qingxi.vue":["32ce",1,0,30],"./factory1/rejian":["b057",1,0,31],"./factory1/rejian.vue":["b057",1,0,31],"./factory1/tongpao":["aa4c",32],"./factory1/tongpao.vue":["aa4c",32],"./factory1/tuihuo":["d20f",1,0,33],"./factory1/tuihuo.vue":["d20f",1,0,33],"./factory1/xianqie":["8c34",1,0,34],"./factory1/xianqie.vue":["8c34",1,0,34],"./factory1/xianqiepiantuihuo":["7205",1,0,35],"./factory1/xianqiepiantuihuo.vue":["7205",1,0,35],"./optics/components/opticsTitle":["2691",0],"./optics/components/opticsTitle.vue":["2691",0],"./optics/cumo":["2615",1,0,7],"./optics/cumo.vue":["2615",1,0,7],"./optics/dingxiang":["6697",1,0,8],"./optics/dingxiang.vue":["6697",1,0,8],"./optics/duanmiandingxiang":["e4d3",1,0,9],"./optics/duanmiandingxiang.vue":["e4d3",1,0,9],"./optics/guochangjieduan":["beee",1,0,10],"./optics/guochangjieduan.vue":["beee",1,0,10],"./optics/jianyanComponents/Axiang":["506d",1,0],"./optics/jianyanComponents/Axiang.vue":["506d",1,0],"./optics/jianyanComponents/Cxiang":["84f8",1,0],"./optics/jianyanComponents/Cxiang.vue":["84f8",1,0],"./optics/jianyanComponents/chengping":["7fbb",1,0],"./optics/jianyanComponents/chengping.vue":["7fbb",1,0],"./optics/jianyanComponents/chuizhidu":["9c7c",1,0],"./optics/jianyanComponents/chuizhidu.vue":["9c7c",1,0],"./optics/jianyanComponents/jingjie":["bc43",1,0],"./optics/jianyanComponents/jingjie.vue":["bc43",1,0],"./optics/jieduan":["6998",1,0,11],"./optics/jieduan.vue":["6998",1,0,11],"./optics/jingbangjianyan":["2556",1,0,12],"./optics/jingbangjianyan.vue":["2556",1,0,12],"./optics/jingkechenzhong":["ee37",1,0,13],"./optics/jingkechenzhong.vue":["ee37",1,0,13],"./optics/jingmo":["c54d",1,0,14],"./optics/jingmo.vue":["c54d",1,0,14],"./optics/modingweibian":["a7c5",1,0,15],"./optics/modingweibian.vue":["a7c5",1,0,15],"./optics/moduanmian":["c7cd",1,0,16],"./optics/moduanmian.vue":["c7cd",1,0,16],"./optics/pingbiandingxiang":["5c7a",1,0,17],"./optics/pingbiandingxiang.vue":["5c7a",1,0,17],"./optics/qutouwei":["ecc1",1,0,18],"./optics/qutouwei.vue":["ecc1",1,0,18],"./optics/taobang":["2829",1,0,19],"./optics/taobang.vue":["2829",1,0,19],"./optics/xiabang":["ed51",1,0,20],"./optics/xiabang.vue":["ed51",1,0,20],"./optics/xianqie":["1d3c",1,0,21],"./optics/xianqie.vue":["1d3c",1,0,21],"./optics/xianqiedingxiang":["3f2b",1,0,22],"./optics/xianqiedingxiang.vue":["3f2b",1,0,22],"./optics/zhijianComponents/jingbangpanding":["3ec8",1,0],"./optics/zhijianComponents/jingbangpanding.vue":["3ec8",1,0],"./optics/zhijianComponents/jingdingpanding":["9d48",1,0],"./optics/zhijianComponents/jingdingpanding.vue":["9d48",1,0],"./optics/zhijianpanding":["143f",1,0,23],"./optics/zhijianpanding.vue":["143f",1,0,23],"./template/axiosApi":["1e78",5],"./template/axiosApi.vue":["1e78",5],"./template/cordovaApi":["44a3",6],"./template/cordovaApi.vue":["44a3",6]};function a(t){if(!n.o(o,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[t],a=e[0];return Promise.all(e.slice(1).map(n.e)).then((function(){return n(a)}))}a.keys=function(){return Object.keys(o)},a.id="a383",t.exports=a},a71f:function(t,e,n){"use strict";n("2c41")},a9c3:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("q-layout",{staticClass:"my-layout",attrs:{view:"lHh Lpr lFf"}},[n("div",{staticClass:"main_view"},[n("router-view")],1)])},a=[],i=n("0418"),s={name:"Layout",data(){return{}},components:{Header:i["a"]}},r=s,c=(n("3641"),n("2877")),l=n("4d5a"),u=n("eebe"),d=n.n(u),p=Object(c["a"])(r,o,a,!1,null,"4492773e",null);e["default"]=p.exports;d()(p,"components",{QLayout:l["a"]})},d54c:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-common-box"},[""!=t.title?n("div",{staticClass:"common-title"},[t._v("\n "+t._s(t.title||"")+"\n ")]):t._e(),n("div",{staticClass:"page-common-box-body"},[t._t("default")],2)])},a=[],i={name:"CommonBox",props:{title:{type:String,default:""}}},s=i,r=(n("9232"),n("2877")),c=Object(r["a"])(s,o,a,!1,null,"578a8b1f",null);e["default"]=c.exports},dd67:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"btn-group text-center"},[n("q-page-sticky",{attrs:{expand:"",position:"bottom"}},[n("div",{staticClass:"form_bottom_group"},[t._t("default",(function(){return[n("q-btn",{attrs:{label:"取 消",type:"reset",rounded:"",color:"white","text-color":"black"},on:{click:t.cancel}}),n("q-btn",{attrs:{label:"确 认",type:"submit",rounded:"",color:"primary"},on:{click:t.submit}})]}))],2)])],1)},a=[],i={data(){return{}},methods:{submit(){this.$emit("submit")},cancel(){this.$emit("cancel")}}},s=i,r=(n("a71f"),n("2877")),c=n("de5e"),l=n("9c40"),u=n("eebe"),d=n.n(u),p=Object(r["a"])(s,o,a,!1,null,"32d47552",null);e["default"]=p.exports;d()(p,"components",{QPageSticky:c["a"],QBtn:l["a"]})},e464:function(t,e,n){},f893:function(t,e,n){"use strict";n("087a")}});