UNPKG

qkui-h5

Version:
1 lines 251 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("quick",[],e):"object"==typeof exports?exports.quick=e():t.quick=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist",n(n.s=93)}([function(t,e){t.exports=function(t,e,n,i,o,a){var r,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(r=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),f(t,e)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:r,exports:s,options:u}}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(31)("wks"),o=n(21),a=n(1).Symbol,r="function"==typeof a;(t.exports=function(t){return i[t]||(i[t]=r&&a[t]||(r?a:o)("Symbol."+t))}).store=i},function(t,e,n){t.exports={default:n(135),__esModule:!0}},function(t,e,n){var i=n(11);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";(function(t){var i=n(4),o=n.n(i),a=n(71);e.a={db:{mode:0},cacheKeys:{state:"$quickState",userInfo:"$quickUserInfo",ioClient:"$quickIOClient",tplKeys:"$tplCache"},ext:{loading:null,message:null,modal:null},win:{maxMin:750,prefix:"qk-win",count:0,ps:0,z:99,obj:{}},token:{app:{key:"",secret:"",token:"",tamp:(new Date).getTime()+""},logout:function(){},tokenAuthBase:function(t){var e="";return t&&(t.sign=Object(a.md5)(Object(a.md5)(Object(a.md5)(t.token+t.secret+t.tamp)+t.tamp)).substring(8,24),e=o()({key:t.key,val:t.token,tamp:t.tamp,sign:t.sign}),e=Object(a.base64Encode)(e)),e}},host:{url:t.env.BASE_API||"",lib:""}}}).call(e,n(70))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(1),o=n(2),a=n(22),r=n(9),s=n(7),l=function(t,e,n){var c,u,d,f=t&l.F,h=t&l.G,p=t&l.S,m=t&l.P,g=t&l.B,v=t&l.W,y=h?o:o[e]||(o[e]={}),b=y.prototype,_=h?i:p?i[e]:(i[e]||{}).prototype;for(c in h&&(n=e),n)(u=!f&&_&&void 0!==_[c])&&s(y,c)||(d=u?_[c]:n[c],y[c]=h&&"function"!=typeof _[c]?n[c]:g&&u?a(d,i):v&&_[c]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[c]=d,t&l.R&&b&&!b[c]&&r(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(10),o=n(24);t.exports=n(12)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(5),o=n(47),a=n(34),r=Object.defineProperty;e.f=n(12)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";e.__esModule=!0;var i=r(n(107)),o=r(n(116)),a="function"==typeof o.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function r(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof o.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"isArray",function(){return c}),n.d(e,"test",function(){return s}),n.d(e,"toStr",function(){return f}),n.d(e,"parse",function(){return d}),n.d(e,"formStr",function(){return u}),n.d(e,"formReg",function(){return formReg}),n.d(e,"isNull",function(){return l}),n.d(e,"toUrl",function(){return h}),n.d(e,"find",function(){return m}),n.d(e,"findAll",function(){return g}),n.d(e,"copy",function(){return p}),n.d(e,"bind",function(){return v});var i=n(4),o=n.n(i),a=n(13),r=n.n(a),s=function(t){return"object"===(void 0===t?"undefined":r()(t))&&"[object object]"===Object.prototype.toString.call(t).toLowerCase()&&!t.length},l=function(t){if(t){for(var e in t)return!1;return!0}return!0},c=function(t){return t instanceof Array},u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^?&]+)=([^?&]+)/g,n={};return t.replace(e,function(t,e,i){return n[e]=decodeURIComponent(i),i+"="+e}),n},d=function(t){return t=(t=t||this).trim(),new Function("return "+t)()},f=function t(e){if(c(e)){var n=[];n[0]="[";for(var i=0;i<e.length;i++)n[n.length]=t(e[i]),i<e.length&&(n[n.length]=",");return n.length>1?n[n.length-1]="]":n[n.length]="]",n.join("")}switch(void 0===e?"undefined":r()(e)){case"object":var a=[];for(var s in e){a[a.length]=',"'+s+'":';var l=e[s];switch(void 0===l?"undefined":r()(l)){case"string":a[a.length]='"'+l+'"';break;case"date":a[a.length]='"'+l.format("yyyy-MM-dd hh:mm:ss")+'"';break;case"object":a[a.length]=o()(l);break;default:a[a.length]=l}}return(a=a.join("")).length>0&&(a="{"+a.substr(1)+"}"),a;default:return e}},h=function(t,e){if(!s(t))return t.toString();var n="";for(var i in t){n.length>0&&(n+="&");var o=t[i];o=f(o),n+=e?i+"="+encodeURIComponent(o):i+"="+o}return n},p=function(t){return JSON.parse(o()(t))},m=function t(e){for(var n=void 0,i=0,o=0;o<e.json.length;o++){var a=e.json[o];if(a[e.key]===e.val){n=a;break}if(e.subs){if(!c(a[e.subs]))continue;t({json:a[e.subs],key:e.key,val:e.val,subs:e.subs,callback:e.callback})}i++}e.callback(n,i)},g=function(t){for(var e=[],n=0;n<t.json.length;n++){var i=t.json[n];if(t.where)new Function("props","if("+t.where+"){return props}else{return null}")(i)&&(e.push({index:n,obj:i}),t.callback&&t.callback(i,n))}return e},v=function(t,e){return e.replace(/{(.*?)}/gim,function(e,n){return t[n]})}},function(t,e,n){var i=n(45),o=n(28);t.exports=function(t){return i(o(t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(44),o=n(32);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){var i=n(23);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(10).f,o=n(7),a=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(28);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(31)("keys"),o=n(21);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var i=n(2),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(19)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(11),o=n(1).document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var i=n(11);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){e.f=n(3)},function(t,e,n){var i=n(1),o=n(2),a=n(19),r=n(35),s=n(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:r.f(t)})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(r=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(a).concat([o]).join("\n")}var r;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(i[a]=!0)}for(o=0;o<t.length;o++){var r=t[o];"number"==typeof r[0]&&i[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),e.push(r))}},e}},function(t,e,n){var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o=n(144),a={},r=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,f="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(g(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var r=[];for(o=0;o<n.parts.length;o++)r.push(g(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:r}}}}function m(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function g(t){var e,n,i=document.querySelector("style["+f+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(h){var o=l++;i=s||(s=m()),e=b.bind(null,i,o,!1),n=b.bind(null,i,o,!0)}else i=m(),e=function(t,e){var n=e.css,i=e.media,o=e.sourceMap;i&&t.setAttribute("media",i);d.ssrId&&t.setAttribute(f,e.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}t.exports=function(t,e,n,i){c=n,d=i||{};var r=o(t,e);return p(r),function(e){for(var n=[],i=0;i<r.length;i++){var s=r[i];(l=a[s.id]).refs--,n.push(l)}e?p(r=o(t,e)):r=[];for(i=0;i<n.length;i++){var l;if(0===(l=n[i]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}};var v,y=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function b(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,o);else{var a=document.createTextNode(o),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}},function(t,e,n){"use strict";var i=n(23);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},function(t,e,n){"use strict";var i=n(86),o=n(181);var a=function(t){n(177)},r=n(0)(i.a,o.a,!1,a,null,null);e.a=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"date",function(){return r}),n.d(e,"array",function(){return s}),e.ages=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"岁",n=t.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);if(null==n)return!1;var i=new Date(n[1],n[3]-1,n[4]);if(i.getFullYear()===n[1]&&i.getMonth()+1===n[3]&&i.getDate()===n[4]){var o=(new Date).getFullYear();return o-n[1]+e}},e.isNull=function(t){var e=!1;switch(void 0===t?"undefined":o()(t)){case"undefined":e=!0;break;case"string":e=0===t.length;break;case"object":(e=null===t)||((e=a.isArray(t))?e=t.length<1:a.test(t)&&(e=a.isNull(t)));break;case"boolean":e=!t;break;case"Array":e=t.length>0;break;default:e=!1}return e},e.isInt=function(t){return/^[0-9]{1,20}$/.test(t)},e.isWeChat=function(t){var e=!1;try{t=t||window.navigator.userAgent.toLowerCase(),e=/micromessenger/i.test(t)}catch(t){console.log(t)}return e},e.rndNum=function(t,e){var n=void 0;switch(arguments.length){case 1:n=parseInt(Math.random()*t+1,10);break;case 2:n=parseInt(Math.random()*(e-t+1)+t,10);break;default:n=0}return n},e.isPhone=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:/^1[3456789][0-9]{9}$/).test(t)},e.isBool=function(t){return/^true$/i.test(t)},e.isWeb=function(){return!!window},e.toReg=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$1-$2-$3 $4:$5";return t.replace(e,n)},e.toHide=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/(\d{3})(\d{4})(\d{4})/,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$1****$3";return t.replace(e,n)},e.toMac=function(t){for(var e="",n=0;n<6;n++)e+="-"+t.substr(0,2),t=t.substr(2);return e.substr(1)},e.toDate=l,e.toFloat=function(t){return t=t||this,parseFloat(t.trim().replace(/[^\d\.-]/g,""))},e.trim=function(t){return(t=t||this).replace(/(^\s*)|(\s*$)/g,"")},e.format=function(t,e){t=t||"yyyy-MM-dd HH:mm:ss";var n=(e=e||this).getDay(),i={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours()%12==0?12:e.getHours()%12,"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),S:e.getMilliseconds(),"W+":["周日","周一","周二","周三","周四","周五","周六"][n],"w+":"日一二三四五六".charAt(n),"q+":Math.floor((e.getMonth()+3)/3)};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in i){var a=i[o];new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr((""+a).length)))}return t};var i=n(13),o=n.n(i),a=n(14),r={gap:function(t,e){t=t||(new Date).getTime(),e=e||(new Date).getTime(),"string"==typeof t&&(t=l(t)),"string"==typeof e&&(e=l(e));var n={sec:0,tip:"",text:""},i=e-t;n.sec=i,e>t?n.tip="剩余":(i=t-e,n.tip="过期");var o=i/6048e5,a=i/864e5,r=i/36e5,s=i/6e4;return i/2592e6>=1?(n.text=t.format("yyyy-MM-dd"),n):(o>=1?n.text=parseInt(o)+" 个星期":a>=1?n.text=parseInt(a)+" 天":r>=1?n.text=parseInt(r)+" 个小时":(s<1&&(s=1),n.text=parseInt(s)+" 分钟"),n)},diff:function(t){return this.gap(t).text+"前"},sec:function(t){var e="",n=Math.floor(t/86400);n>1&&(e=n+"天");var i=t%86400,o=Math.floor(i/3600);o>1&&(e+=o+"小时");var a=i%3600,r=Math.floor(a/60);r>1&&(e+=r+"分");var s=a%60,l=Math.round(s);return l>1&&(e+=l+"秒"),e},expire:function(t,e){var n="";if(t/31104e3>=1&&e){var i=~~(t/31104e3);n+=i+"年",t-=31104e3*i,e--}if(t/2592e3>=1&&e){var o=~~(t/2592e3);n+=o+"月",t-=2592e3*o,e--}if(t/86400>=1&&e){var a=~~(t/86400);n+=a+"天",t-=86400*a,e--}if(t/3600>=1&&e){var r=~~(t/3600);n+=r+"时",t-=3600*r,e--}return t/60>=1&&e&&(n+=~~(t/60)+"分钟",e--),n},timeLocal:function(t){return new Date(1e3*parseInt(t)).toLocaleString().replace(/:\d{1,2}$/," ")},add:function(t,e,n){switch(n=n||this,t){case"s":return new Date(Date.parse(n)+1e3*e);case"n":return new Date(Date.parse(n)+6e4*e);case"h":return new Date(Date.parse(n)+36e5*e);case"d":return new Date(Date.parse(n)+864e5*e);case"w":return new Date(Date.parse(n)+6048e5*e);case"q":return new Date(n.getFullYear(),n.getMonth()+3*e,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());case"m":return new Date(n.getFullYear(),n.getMonth()+e,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());case"y":return new Date(n.getFullYear()+e,n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds())}return n}},s={del:function(t,e){for(var n=0,i=t.length;n<i;n++)t[n]===e&&t.splice(n,1);return t},find:function(t,e){for(var n=-1,i=0,o=t.length;i<o;i++)if(t[i]===e){n=i;break}return n}};function l(t){return t=t||this,new Date(Date.parse(t.replace(/-/g,"/")))}},function(t,e,n){t.exports={default:n(94),__esModule:!0}},function(t,e,n){var i=n(7),o=n(15),a=n(96)(!1),r=n(30)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=r&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var i=n(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(29),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n){t.exports=!n(12)&&!n(16)(function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var i=n(49),o=n(99),a=n(0)(i.a,o.a,!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";e.a={name:"Icon",props:{type:{type:String,default:""},color:{type:String,default:""},size:{type:[Number,String],default:0}},methods:{fontSize:function(){var t=this.size;return t&&(t=isNaN(Number(t))?t:t+"px"),t},click:function(t){this.$emit("click",t)}},computed:{styled:function(){var t="";this.color&&(t+=";color:"+this.color);var e=this.fontSize();if(e&&(t+=";font-size:"+e),t)return t}}}},function(t,e,n){"use strict";e.a={props:{text:{type:[String,Number],default:""},dot:{type:Boolean,default:!1}}}},function(t,e,n){"use strict";var i=n(48);e.a={components:{qkIcon:i.a},props:{type:String,value:String,placeholder:String,clearable:{type:[Boolean,String],default:!1},displayable:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1}},model:{prop:"value",event:"input"},data:function(){return{showPassword:!1,isFocus:!1}},computed:{inputType:function(){var t=this.type;return this.displayable&&"password"===t&&this.showPassword&&(t="text"),t},clearable_:function(){return"false"!==String(this.clearable)},displayable_:function(){return"false"!==String(this.displayable)},focus_:function(){return"false"!==String(this.focus)}},methods:{clear:function(){this.$emit("input","")},display:function(){this.showPassword=!this.showPassword},onFocus:function(){this.isFocus=!0},onBlur:function(){var t=this;this.$nextTick(function(){t.isFocus=!1})},onInput:function(t){this.$emit("input",t.target.value)}}}},function(t,e,n){"use strict";function i(t,e,n){if(!t||!e)return!1;if(n=n||"f",t=parseFloat(t,10),e=parseInt(e,10),"f"===n){var i=t.toString().split(".")[0],o=t.toString().split(".")[1]||"00";return o.length<2&&(o+="0"),i+"."+o.substring(0,e)}return t.toFixed(e)}e.a={props:{symbol:{type:String,default:"¥"},value:{type:[Number,String],default:""},symbolSize:{type:[Number,String],default:11},countSize:{type:[Number,String],default:13},icon:{type:[String],default:""},status:{type:String,default:""},delColor:{type:String,default:"#999"},priceColor:{type:String,default:"#ec1717"},decimal:{type:String,default:"2"}},data:function(){return{}},computed:{selfValue:function(){if(console.log("computed: ",this.value),this.value){var t=this.value;switch(this.decimal){case"1":t=i(this.value,1);break;case"none":t=parseInt(this.value);break;case"small":t=parseInt(this.value).toString().trim();break;default:t=i(this.value,2)}return t}},decimalNum:function(){if(this.value&&"small"===this.decimal)return(this.value.toString().split(".")[1]||"00").trim()}}}},function(t,e,n){"use strict";var i=n(13),o=n.n(i);e.a={props:{active:{type:Number,default:0},closable:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}}},data:function(){return{show:{extra:!1},activeIndex:0,contList:[]}},computed:{listBar:function(){var t=this,e=[];return this.list.map(function(n){n.close=void 0===n.close?t.closable:n.close;var i=n.body;switch(void 0===i?"undefined":o()(i)){case"function":i=i;break;case"string":i={template:"<div>"+i+"</div>"}}n.body=i,e.push(n)}),this.activeIndex=this.active||0,e}},mounted:function(){this.show.extra=void 0!==this.$slots.extra},methods:{click:function(t,e){this.activeIndex=t,this.$emit("click",{index:t,item:e})},close:function(t,e){this.$emit("close",{index:t,item:e})}}}},function(t,e,n){"use strict";var i=n(109)(!0);n(55)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var i=n(19),o=n(8),a=n(56),r=n(9),s=n(20),l=n(110),c=n(25),u=n(112),d=n(3)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,m,g,v){l(n,e,p);var y,b,_,w=function(t){if(!f&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",x="values"==m,S=!1,C=t.prototype,M=C[d]||C["@@iterator"]||m&&C[m],I=M||w(m),P=m?x?w("entries"):I:void 0,B="Array"==e&&C.entries||M;if(B&&(_=u(B.call(new t)))!==Object.prototype&&_.next&&(c(_,k,!0),i||"function"==typeof _[d]||r(_,d,h)),x&&M&&"values"!==M.name&&(S=!0,I=function(){return M.call(this)}),i&&!v||!f&&!S&&C[d]||r(C,d,I),s[e]=I,s[k]=h,m)if(y={values:x?I:w("values"),keys:g?I:w("keys"),entries:P},v)for(b in y)b in C||a(C,b,y[b]);else o(o.P+o.F*(f||S),e,y);return y}},function(t,e,n){t.exports=n(9)},function(t,e,n){var i=n(5),o=n(111),a=n(32),r=n(30)("IE_PROTO"),s=function(){},l=function(){var t,e=n(33)("iframe"),i=a.length;for(e.style.display="none",n(58).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[a[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[r]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var i=n(1).document;t.exports=i&&i.documentElement},function(t,e,n){n(113);for(var i=n(1),o=n(9),a=n(20),r=n(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=i[c],d=u&&u.prototype;d&&!d[r]&&o(d,r,c),a[c]=a.Array}},function(t,e,n){var i=n(44),o=n(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},function(t,e){},function(t,e,n){"use strict";e.a={name:"Popup",props:{show:{type:Boolean,default:!1},config:{type:[String,Object],default:"middle"},maskable:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1}},data:function(){return{css:"",style:"",ifshow:!1,translateValue:-100,timer:null,iftoggle:!1}},computed:{styled:function(){var t="",e="";if("string"==typeof this.config?(this.css=this.config,e=this.config):(t=this.config.style||"").move&&(e=t.move),e&&(t+=this.translate(e)),t)return t},init:function(){return this.ifshow=this.show,this.open(),""}},methods:{translate:function(t){var e={middle:"transform:translateY("+this.translateValue+"%)",top:"transform:translateY("+this.translateValue+"%)",bottom:"transform:translateY("+-this.translateValue+"%)",right:"transform:translateX("+-this.translateValue+"%)",left:"transform:translateX("+this.translateValue+"%)"}[t]||"",n={},i=this.$refs.popRef;if(i)try{var o={x:(document.documentElement.clientWidth-i.offsetWidth)/2,y:(document.documentElement.clientHeight-i.offsetHeight)/2};n={middle:";top:"+o.y+"px;left:"+o.x+"px"}}catch(t){console.log(t),n={middle:"top:10%;left:25%"}}return e+=n[t]||""},open:function(){var t=this;if(this.ifshow)setTimeout(function(){t.translateValue=0,null},100),setTimeout(function(){t.iftoggle=!0,null},300)},close:function(){var t=this;null===this.timer&&this.iftoggle&&(this.translateValue=-100,this.timer=setTimeout(function(){t.ifshow=!1,t.timer=null,t.iftoggle=!1,t.$emit("close",t.ifshow)},300))},btnClose:function(){this.closeable||this.close()},stopEvent:function(t){}}}},function(t,e,n){"use strict";var i=n(130);e.a={props:{ui:{type:Object,default:function(){return{}}},formData:{type:Object,default:function(){return{cmd:"list",obj:{}}}},css:{default:"qk-form"}},data:function(){return{isShow:{edit:!1},control:i.a,formEdit:{},formRules:{TableID:[{required:!0,message:"必填"},{type:"number",message:"请输入数字 "}],field:[{required:!0,message:"必填"},{message:"长度不能大于50",max:50}],title:[{message:"长度不能大于500",max:500}],attr:[{message:"长度不能大于500",max:500}],act:[{message:"长度不能大于50",max:50}]},dia:{panel:!1},panel:{api:{field:"",url:"",par:{tpl:6,sort:"ID",desc:1}},ths:[],pager:{index:1,size:5,count:0},data:[]}}},computed:{init:function(){return this.fromInit(),""},currentView:function(){return function(t,e){if(this.ui.attr){var n=this.ui.attr[t]||{};switch(t){case"ID":case"SF_ID":case"MUser_ID":case"U_Time":n.r=1}if(1===n.r)return this.control.red;if(n.t)switch(n.t=n.t.toLowerCase(),n.t){case"bool":case"boolean":return this.control.radio;case"datetime":return this.control.date}if(n.ls){var i=n.ls.split(","),o=[];if(i.length>1)for(var a in i=this.$quick.json.formStr(n.ls,/([^?,]+):([^?,]+)/g))o.push({value:a,label:i[a]});else for(var r=i[0].split(":"),s=0;s<r.length;s++)o.push({value:s+"",label:r[s]});return{props:["value","tip"],data:function(){return{val:"",list:o}},template:'<Select :value="val" @input="updateVal" class="qk-form-select"><Option v-for="item in list" :value="item.value" :key="item.value">{{ item.label }}</Option></Select>',methods:{updateVal:function(t){this.$emit("input",t)}},created:function(){"boolean"==typeof this.value?this.val=this.value?"1":"0":this.val=this.value+""}}}if(n.api)return this.uiInputPanel(t,n.api);if(n.t)switch(n.t=n.t.toLowerCase(),n.t){case"int":case"int32":case"int64":return this.control.inputTel}}return this.control.inputText}}},methods:{fromInit:function(){var t=!1;switch(this.formData.cmd){case"read":t=!1,this.isShow.btnEdit=!1;break;case"list":t=!1,this.isShow.btnEdit=!0;break;default:this.isShow.btnEdit=!1,t=!0}var e=this.$quick.json.copy(this.formData.obj);if(this.ui.attr=this.ui.attr||{},t){var n={};for(var i in this.ui.attr){var o=this.ui.attr[i];if(o){if(1===o.r)continue;if(o.ls)continue;n[i]=[],o.n&&n[i].push({required:!0,message:"必填"});var a={};if(o.t)switch(o.t=o.t.toLowerCase(),o.t){case"int":case"int32":case"int64":a.type="number",a.message="请输入数字 "}(o.min||o.max)&&(a.message=a.message||"",a.message+="长度",o.min&&(a.min=o.min,a.message+="不能小于"+o.min+" "),o.max&&(a.max=o.max,a.message+="不能大于"+o.max)),this.$quick.json.isNull(a)||n[i].push(a)}}}else for(var r in e){var s=this.ui.attr[r];if(s){if(s.ls){var l=s.ls.split(",");l.length>1?(l=this.$quick.json.formStr(s.ls,/([^?,]+):([^?,]+)/g))[e[r]]&&(e[r]=l[e[r]]):(l=s.ls.split(":"),s.t&&(s.t=s.t.toLowerCase(),"boolean"===s.t&&(e[r]=e[r]?1:0)),e[r]=l[e[r]])}}else{var c=/t.([\s\S]*?)[.]/gi.exec(r);c&&(e[c[1]]=e[r])}}this.formEdit=e,this.isShow.edit=t},btnEdit:function(){this.formData.cmd="edit"},btnCancel:function(){this.formData.cmd="list"},btnAudit:function(){this.$emit("btnAudit",{cmd:"audit",obj:this.formEdit})},btnDel:function(){this.$emit("btnDel",{cmd:"del",obj:this.formEdit})},btnSave:function(t){var e=this;this.$refs[t].validate(function(t){t?e.$emit("btnSave",{cmd:e.formData.cmd,obj:e.formEdit}):console.log("数据验证失败")})},uiInputPanel:function(t,e){var n={field:t,url:e.url,ths:e.ths,par:this.panel.api.par};for(var i in e.par)n.par[i]=e.par[i];var o=this;return{props:["value","tip"],template:'<Input :value="value" @input="updateVal" :placeholder="tip" number clearable class="qk-form-int" /><Button slot="append" icon="icon-jiantouxia" @click="btnPanelDia"></Button></Input>',methods:{updateVal:function(t){this.$emit("input",t)},btnPanelDia:function(){for(var t in o.panel.api=n,o.panel.ths=[],n.ths)o.panel.ths.push({key:t,title:n.ths[t]});o.dia.panel=!0,o.panelGetApi()}}}},handlePanelSelect:function(t){t[0]&&(this.formEdit[this.panel.api.field]=t[0].ID,this.dia.panel=!1)},handlePanelPager:function(t){this.panel.pager=t,this.panelGetApi()},panelGetApi:function(){var t=this;this.$api.http({url:this.panel.api.url,data:{index:this.panel.pager.index,size:this.panel.pager.size}}).then(function(e){1===e.code&&(e.obj&&(t.panel.data=e.obj),e.count&&(t.panel.pager.count=e.count))})}}}},function(t,e,n){"use strict";e.a={props:{config:{type:Object,default:{show:!1,keys:[],outKeys:[]}},data:{type:Array,default:function(){return[]}},ths:{type:Array,default:function(){return[]}}},data:function(){return{columns:[]}},computed:{init:function(){var t=this;this.columns=this.ths;for(var e=function(e){t.columns[e].renderHeader||t.columns[e].key&&(t.columns[e].renderHeader=function(n,i){return n("div",[n("qk-icon",{props:{type:"icon-zuojiantou"},on:{click:function(){t.btnFieldUP(t.columns[e].key)}}}),n("span",t.columns[e].title)])})},n=0;n<this.columns.length;n++)e(n);return"this.columns"}},methods:{handleSelectionChange:function(t){this.$emit("handleSelectionChange",t)},handleSummary:function(t){var e=this,n=t.columns,i=t.data,o={};return n.forEach(function(t,n){var a=t.key;if(0!==n){if(e.config.keys&&e.config.keys.length>0)if(e.config.keys.indexOf(a)<=-1)return void(o[a]={key:a,value:""});if(e.config.outKeys&&e.config.outKeys.length>0)if(e.config.outKeys.indexOf(a)>-1)return void(o[a]={key:a,value:""});var r=i.map(function(t){return Number(t[a])});if(r.every(function(t){return isNaN(t)}))o[a]={key:a,value:""};else{var s=r.reduce(function(t,e){var n=Number(e);return isNaN(n)?t:t+e},0);o[a]={key:a,value:s}}}else o[a]={key:a,value:"合:"}}),o},handleEdit:function(t,e){console.log(t),this.$emit("handleEdit",t,e)},btnFieldUP:function(t){console.log(t);for(var e=this.columns,n=0;n<e.length;n++)if(e[n].key===t){console.log(n);var i=n-1;if(i>2){var o=e[i];console.log(i),e.splice(i,2,e[n],o),console.log(n)}break}}}}},function(t,e,n){"use strict";var i=n(4),o=n.n(i);e.a={props:{config:{type:Object,default:{}},list:{type:Array,default:function(){return[]}}},data:function(){return{ui:{field:{},attr:{},act:[]},pager:{primaryKey:"ID",api:"",tpl:2,where:[],par:null,join:null,index:1,size:5,sizes:[5,10,30,50,100],count:0,small:!0,max:4,layout:"total, sizes, prev, pager, next, jumper"},options:[{value:"=",label:"="},{value:"≠",label:"<>"},{value:"<",label:"<"},{value:"<=",label:"<="},{value:">",label:">"},{value:">=",label:">="},{value:"likeNot",label:"≠%"},{value:"like",label:"%"},{value:"likeE",label:"<%"},{value:"likeB",label:">%"},{value:"in",label:"in"},{value:"between",label:"T+1"}],select:{sort_field:["ID"],desc:!0,cate_more:!1,cate:"=",field:"ID",where:[],word:""},show:{edit:!1,btnNew:!1,btnDel:!1,btnAudit:!1,btnRevoke:!1,btnErase:!1,dialog:!1},row:{th:[],cut:[],width:110,field:{},flag:{1:{text:"正常",icon:"md-information-circle",style:"color:#909399"},2:{text:"已审",icon:"md-checkmark-circle",style:"color:#67C23A"},3:{text:"撤审",icon:"md-alert",style:"color:#E6A23C"},4:{text:"删除",icon:"md-close",style:"color:#F56C6C"}}},table:{config:{show:!1,keys:[],outKeys:["ID"]},selectList:[],data:[]},edit:{obj:{}}}},computed:{innerConfig:function(){return this.init()},dataFilter:function(){return this.bindDate(this.table.data)}},methods:{init:function(){for(var t in this.select.sort_field=["ID"],this.list.length>0&&(this.table.data=this.list),this.pager.api=this.config.api||"",this.config.pager)this.pager[t]=this.config.pager[t];if(this.config.ui){if(this.config.ui.select)for(var e in this.config.ui.select)this.select[e]=this.config.ui.select[e];this.config.ui.cut&&this.initCut(this.config.ui.cut),this.config.ui.width&&(this.row.width=this.config.ui.width),this.config.ui.sum&&(this.table.config=this.config.ui.sum,console.log("tbc:"+o()(this.table.config)))}return this.getTpl(),this.pager.api},handleSizeChange:function(t){this.pager.size=t,this.getData()},handleCurrentChange:function(t){this.pager.index=t,this.getData()},getTpl:function(){var t=this,e=this.config.ui||{};void 0===e.isHttp&&(e.isHttp=!0),e.http=e.http||{url:this.pager.api,data:{tpl:1}},!0===e.isHttp&&e.http.url?this.$api.http(e.http).then(function(e){e.tpl&&t.bindTpl(e.tpl)}).catch(function(t){console.log("list.api.fail",t.message)}):this.bindTpl(e)},bindTpl:function(t){if(t.field=t.field||{},t.attr=t.attr||{},this.ui=t,t.act){var e=new Function("","return ["+t.act+"]")();this.ui.act=e;for(var n=0;n<e.length;n++)switch(e[n]){case 2:this.show.btnNew=!0;break;case 4:this.show.btnDel=!0;break;case 6:this.show.btnAudit=!0;break;case 7:this.show.btnRevoke=!0;break;case 8:this.show.btnErase=!0}}t.field&&(this.row.field=t.field,this.bindThs(t))},bindThs:function(t){var e=this,n=this.$quick.json.copy(t.field);if(this.row.cut)for(var i in this.row.cut)delete n[this.row.cut[i]];var o=[{type:"selection",width:50,align:"center"}],a=!1;this.config.ui&&this.config.ui.ths&&(o=o.concat(this.config.ui.ths),a=!0);var r=this.pager.primaryKey,s=this,l=function(i){var l=t.attr[i];if(a)e.$quick.json.find({json:o,key:"key",val:i,callback:function(t,e){if(t)console.log("find:"+i+",in:"+e),o.push(t),o.splice(e,1);else{var a=s.bindTh(i,n,l,r);a&&o.push(a)}}});else{var c=e.bindTh(i,n,l,r);c&&o.push(c)}};for(var c in n)l(c);this.row.th=o},bindTh:function(t,e,n,i){var o=this,a=null;switch(t){case"SF_ID":a={title:"数据状态",width:120,key:"extDataStateInfo",render:function(t,e){var n=o.row.flag[e.row.SF_ID];return t("div",[t("Icon",{props:{type:n.icon},style:n.style}),t("span",e.row.extDataStateInfo)])}};break;case i:a={title:"编号",width:100,className:"table-cell-link",key:i,render:function(t,e){return t("strong",{on:{click:function(){o.handleEdit(e.index,e.row.ID)}}},e.row.ID)}};break;case"U_Time":case"MUser_ID":break;default:a={title:e[t],resizable:!0,width:this.row.width,key:t},n&&(n.t&&(n.t=n.t.toLowerCase(),"boolean"===n.t&&(a.key="t."+t)),n.ls&&(a.key="t."+t))}return a},getData:function(){var t=this,e=this.select.sort_field.toString()||"ID",n={tpl:this.pager.tpl,index:this.pager.index||1,size:this.pager.size||5,sort:e,desc:this.select.desc?1:0};if(this.pager.field&&(n.field=this.pager.field),this.pager.where&&(n.where=this.pager.where),this.pager.join&&(n.join=this.pager.join),this.pager.par&&(n.par=this.pager.par),"string"==typeof this.select.word&&(this.select.word=this.select.word.trim()),""!==this.select.word){var i={};if(i[this.select.field]=this.select.word,"="!==this.select.cate&&(i.q=this.select.cate),this.select.cate_more){for(var o=[],a=0,r=this.select.where.length;a<r;a++){var s=this.select.where[a];for(var l in s){s.q&&s.q!==this.select.cate?o.push(s):l!==this.select.field&&o.push(s);break}}this.select.where=o}else this.select.where=[];this.select.where.push(i),n.where=n.where.concat(this.select.where)}this.$api.http({url:this.pager.api,data:n}).then(function(e){1===e.code?(e.obj&&(t.table.data=e.obj),t.pager.count=e.count||0):0===e.code&&e.msg&&t.$toast(e.msg)})},bindDate:function(t){var e=this;return t.map(function(t){var n={};for(var i in t){n[i]=t[i];var o=e.ui.attr[i];if(o&&(o.t&&(o.t=o.t.toLowerCase(),"boolean"!==o.t&&"bool"!==o.t||(n["t."+i]=!0===t[i]?"是":"否")),o.ls)){var a=e.$quick.json.formStr(o.ls,/([^?,]+):([^?,]+)/g),r=t[i];a&&(r=a[r]||r),n["t."+i]=r}var s=/t.([\s\S]*?)[.]/gi.exec(i);s&&(n[s[1]]=t[i])}var l="";return t.SF_ID&&(t.U_Time&&(l+=t.U_Time+" "),t.MUser_ID&&(l+=t["t.MUser_ID.LastFirst"]||t.MUser_ID)),l&&(n.extDataStateInfo=l),n})},upData:function(t,e){var n=this;if(t.length>0){var i=this.$quick.json.copy(this.table.data),o={json:i},a=[];return t.map(function(t){e?(o.where=n.$quick.json.bind(t,e),console.log(o.where),o.callback=function(e,n){if(e)for(var o in t)i[n][o]=t[o];else i.push(t)},a=a.concat(n.$quick.json.findAll(o))):i.push(t)}),this.table.data=i,i}},handleSelectionChange:function(t){var e=[],n=this.pager.primaryKey||"ID";t.forEach(function(t,i,o){var a=t[n];a&&e.push(a)}),this.table.selectList=e,this.$emit("handleSelectionChange",t)},handleEdit:function(t,e){var n={cmd:"list",obj:this.table.data[t]};switch(n.obj.SF_ID){case 1:n.cmd="list";break;case 2:n.cmd="read";break;default:n.obj.MUser_ID&&this.$store&&n.obj.MUser_ID!==this.$store.state.user.userID&&(n.cmd="read")}"read"!==n.cmd&&(this.edit.obj[n.obj.ID]=n.obj),this.editWin(n,"编辑:"+n.obj.ID)},search:function(){this.getData()},editWin:function(t,e){var n=this;this.$win({data:function(){return{ui:n.ui,editData:t}},template:'<qk-form :ui="ui" :formData="editData" @btnSave="btnSave"/>',methods:{btnSave:function(t){var e=this;n.editSave(t,function(t){t&&(e.editData=t)})}}},e)},editSave:function(t,e){var n=this,i={cmd:t.cmd,obj:t.obj};this.$quick.bll.isNull(i.obj)?this.$toast("提交编辑数据为空"):(console.log("editSave:"+o()(i)),this.$api.http({method:"post",url:this.pager.api,data:i}).then(function(i){1===i.code?(n.$toast("保存成功:"+t.obj.ID),n.edit.obj[t.obj.ID]=t.obj,t.cmd="list",e(t),n.search()):n.$toast("保存失败,返回:"+i.msg)}))},btnNew:function(){this.editWin({cmd:"add",obj:{}},"新增")},btnDel:function(){var t=this;if(this.table.selectList.length>0){var e={cmd:"del",par:this.table.selectList.toString()};this.$Modal.confirm({title:"执行删除?",content:"<p>删除数据:"+e.par+"</p>",onOk:function(){t.$api.http({method:"post",url:t.pager.api,data:e}).then(function(e){1===e.code?(t.$toast("删除成功:"+t.table.selectList.toString()),t.search()):t.$toast("删除失败,返回:"+e.msg)})},onCancel:function(){}})}else this.$toast("请选择")},btnAudit:function(){var t=this;this.table.selectList.length>0?this.$api.http({method:"post",url:this.pager.api,data:{cmd:"audit",par:this.table.selectList.toString()}}).then(function(e){1===e.code?(t.$toast("执行成功:"+t.table.selectList.toString()),t.search()):t.$toast("执行审核失败,返回:"+e.msg)}):this.$toast("请选择")},btnRevoke:function(){var t=this;this.table.selectList.length>0?this.$api.http({method:"post",url:this.pager.api,data:{cmd:"resc",par:this.table.selectList.toString()}}).then(function(e){1===e.code?(t.$toast("撤审成功:"+t.table.selectList.toString()),t.search()):t.$toast("撤审失败,返回:"+e.msg)}):this.$toast("请选择")},btnErase:function(){var t=this;if(this.table.selectList.length>0){var e={cmd:"erase",par:this.table.selectList.toString()};this.$Modal.confirm({title:"执行不可恢复的擦除?",content:"<p>物理擦除已删除的数据:"+e.par+"</p>",onOk:function(){t.$api.http({method:"post",url:t.pager.api,data:e}).then(function(e){1===e.code?(t.$toast("物理删除成功:"+t.table.selectList.toString()),t.search()):t.$toast("物理删除失败,返回:"+e.msg)})},onCancel:function(){}})}else this.$toast("请选择")},btnCut:function(){this.select.sort_field.length>0?(this.initCut(this.select.sort_field),this.select.sort_field=[],this.init()):this.$toast("请勾选需要关闭显示的列")},initCut:function(t){if(t.length>0)for(var e in t)this.row.cut.indexOf(t[e])<0?this.row.cut.push(t[e]):console.log(t[e]);else this.row.cut=[];console.log(this.row.cut)},btnTagClose:function(t){console.log(t),this.select.where.splice(t,1)},btnFieldClose:function(t){console.log(t),this.row.cut.splice(t,1),this.init()},btnSumCut:function(){this.select.sort_field.length>0?(this.table.config.outKeys=this.select.sort_field,this.select.sort_field=[]):this.$toast("请勾选需要排除合计的列")}}}},function(t,e,n){"use strict";e.a={props:{field:{type:Object,default:function(t){return null}},data:{type:Array,default:function(){return[]}},ths:{type:Array,default:function(){return[{key:"ID",title:"编号"},{key:"Title",title:"描述"}]}},pager:{type:Object,default:function(t){return{index:t.index||1,size:t.size||10,sizes:t.sizes||[10,30,50],count:t.count||0,small:t.small||!0,max:t.max||4,layout:t.layout||"total, sizes, prev, pager, next, jumper"}}}},data:function(){return{baseColumn:{type:"selection",width:50,align:"center"},options:[{value:"=",label:"="},{value:"≠",label:"<>"},{value:"<",label:"<"},{value:"<=",label:"<="},{value:">",label:">"},{value:">=",label:">="},{value:"likeNot",label:"≠%"},{value:"like",label:"%"},{value:"likeE",label:"<%"},{value:"likeB",label:">%"},{value:"in",label:"in"},{value:"between",label:"T+1"}],select:{sort_field:["ID"],desc:!0,cate_more:!1,cate:"=",field:"ID",where:[],word:""},row:{field:{}}}},methods:{init:function(){var t=[];t.push(this.baseColumn);var e=this.field;if(null===e){e={};for(var n=0;n<this.ths.length;n++){var i=this.ths[n],o="";for(var a in i)"key"===a&&(e[o=i[a]]=o),"title"===a&&o&&(e[o]=i[a])}}return this.row.field=e,t.concat(this.ths)},search:function(){var t=[];if(""!==this.select.word){var e={};if(e[this.select.field]=this.select.word,"="!==this.select.cate&&(e.q=this.select.cate),this.select.cate_more){for(var n=[],i=0,o=this.select.where.length;i<o;i++){var a=this.select.where[i];for(var r in a){a.q&&a.q!==this.select.cate?n.push(a):r!==this.select.field&&n.push(a);break}}this.select.where=n}else this.select.where=[];this.select.where.push(e),t=this.select.where}t&&(this.pager.where=t),this.$emit("handlePager",this.pager)},handlePagerSize:function(t){var e=this.pager;e.size=t,this.$emit("handlePager",e)},handlePagerindex:function(t){var e=this.pager;e.index=t,this.$emit("handlePager",e)},handleRowSelect:function(t){this.$emit("handleRowSelect",t)}},computed:{columns:function(){return this.init()}}}},function(t,e,n){"use strict";e.a={name:"CardList",props:{title:{type:String,default:"..."},tags:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[{title:"无数据",id:0,time:"",score:1}]}},pager:{type:Object,default:function(){return{index:1}}}},data:function(){return{tagKey:{}}},methods:{handlePagerindex:function(t){this.$emit("getpager",{title:this.title,pager:{index:t},tag:this.tagKey})},btnItem:function(t){this.$emit("btnItem",t)},btnAdd:function(){this.$emit("btnAdd",{title:this.title})},btnMenu:function(){this.$emit("btnMenu",this.title)},btnTag:function(t){this.tagKey=t,this.$emit("btnTag",{title:this.title,tag:t})},btnRefresh:function(){this.$emit("btnRefresh",{title:this.title,tag:this.tagKey})}}}},function(t,e,n){"use strict";var i=n(4),o=n.n(i),a=n(69);n(6);e.a={props:{url:{type:String,default:""},cache:{type:Boolean,default:!0},props:{type:Object,default:function(){return null}},errShow:{type:Boolean,default:!1}},data:function(){return{tplUrl:"",html:{template:"<div class='content'>load...</div>"},errTip:{show:!1,info:""}}},computed:{currentView:function(){return this.getTpl(this.url,this.cache),this.html}},methods:{bindView:function(t){var e={};if(t.component?(e=t.component,t.cache&&a.cache.save(this.tplUrl,t.cache)):e={template:"<div class='content'>请求:"+this.tplUrl+"<br>组件为空</div>"},t.style){var n="qkcss_"+this.tplUrl,i=document.getElementById(n);if(i){var o=i.innerHTML;o.innerHTML!==t.style.length&&(console.log("css:"+o.length),o=t.style)}else{var r=document.createElement("style");r.type="text/css",r.id=n,t.styleLang&&(r.rel="stylesheet/"+t.styleLang),r.innerHTML=t.style,document.getElementsByTagName("HEAD").item(0).appendChild(r)}}this.html=e},getTpl:function(t,e){var n=this,i={url:t,isCache:this.cache};if(i.url){this.props&&(i.props=this.props);var r=i.url.split("?")[0];if(this.tplUrl!==r){if(this.tplUrl=r,e){r=a.cache.newKey(r);var s=this.$quick.cache.getItemSync(r);if(s)return console.log("getTplCache:"+r),i.isCache=!1,void this.bindView(a.bind(s.tpl,i))}console.log("getTpl:"+o()(i)),this.$api.http(i).then(function(t){t?n.bindView(a.bind(t,i)):n.bindView({component:{template:"<div class='content'>组件返回空:"+i.url+"</div>"}})}).catch(function(t){var e="<div>请求组件:"+i.url+"</div><div>组件错误:"+t.message+"</div>";n.errShow&&(n.errTip.show=!0,n.errTip.info=t.info),n.bindView({component:{template:'<div class="qk-err-comp-tip">'+e+"</div>"}}),n.bindErr(t)})}}},bindErr:function(t){this.$emit("bindErr",t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"http",function(){return r}),n.d(e,"view",function(){return s}),n.d(e,"bind",function(){return l}),n.d(e,"cache",function(){return a});var i=n(6),o=n(78),a={keys:i.a.cacheKeys.tplKeys,newKey:function(t){return a.keys+"_"+t},save:function(t,e){var n=o.a.getItemSync(a.keys)||{ver:0};e.ver&&(n[t]={ver:e.ver}),o.a.setItem(a.keys,n),t=a.newKey(t),o.a.setItem(t,e)},del:function(t){var e=o.a.getItemSync(a.keys)||{ver:0};e[t]&&(o.a.removeItem(a.newKey(t)),delete e[t])}},r=function(t,e,n){if(t){if(t.cache){var i=this.$quick.cache.getItemSync(a.newKey(t.url));if(i)return e(l(i.tpl)),!0}this.$api.http(t).then(function(n){e&&e(l(n,t))}).catch(function(e){n?n(e):(console.log("tplView:"+t.url),console.log(e))})}},s=function(t,e){var n={},i=/<script[^>]*>([\s\S]*?)<\/script>/gi,o=i.exec(t);if(o?(n.js=o[1],i=/<template[^>]*>([\s\S]*?)<\/template><script[^>]*>/gi):i=/<template[^>]*>([\s\S]*?)<\/template>/gi,(o=i.exec(t))&&(n.template=o[1],e.isCache)){var a=(i=/<template ver="([\S\s\t]*?)">/gi).exec(o[0]);a&&a[1]&&(n.cache={ver:a[1]})}if(o=(i=/<style[^>]*>([\s\S]*?)<\/style>/gi).exec(t)){n.style=o[1];var r=(i=/<style lang="([\S\s\t]*?)" >/gi).exec(o[0]);r&&(n.styleLang=r[1])}return n},l=function(t,e){var n={};if(t)try{if((n=s(t,e)).js){n.js=n.js.replace("export default"," ").trim();var i=e.props||{};if(n.component=new Function("props","return "+n.js)(i),e.props)if(n.component.props){var o=function(t){n.component.props[t]&&(n.component.props[t].type.name&&"Object"===n.component.props[t].type.name?n.component.props[t].default=function(){return e.props[t]}:n.component.props[t].default=e.props[t])};for(var a in e.props)o(a)}else n.component.props=e.props}n.template?n.component.template="<div>"+n.template+"</div>":n.component={template:"<div></div>"},n.cache&&(n.cache.tpl=t)}catch(t){throw t.info=n,t}return n}},function(t,e){var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(t){i=r}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.md5=function(t){for(var e="0123456789abcdef",n=function(t){for(var e=1+(t.length+8>>6),n=new Array(16*e),i=0;i<16*e;i++)n[i]=0;for(var i=0;i<t.length;i++)n[i>>2]|=t.charCodeAt(i)<<i%4*8;return n[i>>2]|=128<<i%4*8,n[16*e-2]=8*t.length,n}(t),i=1732584193,o=-271733879,a=-1732584194,r=271733878,s=0;s<n.length;s+=16){var l=i,c=o,u=a,d=r;i=m(i,o,a,r,n[s+0],7,-680876936),r=m(r,i,o,a,n[s+1],12,-389564586),a=m(a,r,i,o,n[s+2],17,606105819),o=m(o,a,r,i,n[s+3],22,-1044525330),i=m(i,o,a,r,n[s+4],7,-176418897),r=m(r,i,o,a,n[s+5],12,1200080426),a=m(a,r,i,o,n[s+6],17,-1473231341),o=m(o,a,r,i,n[s+7],22,-45705983),i=m(i,o,a,r,n[s+8],7,1770035416),r=m(r,i,o,a,n[s+9],12,-1958414417),a=m(a,r,i,o,n[s+10],17,-42063),o=m(o,a,r,i,n[s+11],22,-1990404162),i=m(i,o,a,r,n[s+12],7,1804603682),r=m(r,i,o,a,n[s+13],12,-40341101),a=m(a,r,i,o,n[s+14],17,-1502002290),o=m(o,a,r,i,n[s+15],22,1236535329),i=g(i,o,a,r,n[s+1],5,-165796510),r=g(r,i,o,a,n[s+6],9,-1069501632),a=g(a,r,i,o,n[s+11],14,643717713),o=g(o,a,r,i,n[s+0],20,-