|
|
webpackJsonp([5],{1:function(e,t){e.exports=iview},103:function(e,t,r){"use strict";var n=r(13),i=r.n(n),o=r(9),a=r.n(o),s=r(10),c=r.n(s),u=r(1),l=(r.n(u),r(7)),f=r(6),p=r.n(f),h=r(25),d=r(261),g=(r.n(d),r(21)),m=r.n(g),w=new l.a,v=function(e,t,r){var n=t[r]?Object(d.BigNumber)(t[r]).times(100).toNumber():0;return e(u.InputNumber,{attrs:{value:n,max:100,min:0,formatter:function(e){return e+"%"}},style:"width: 70px",on:{input:function(e){return t[r]=Object(d.BigNumber)(e).div(100).toNumber()}}})};t.a={name:"SendRecordPage",data:function(){var e=this,t=this.$createElement;return{filter:{productId:"",sku:"",status:"",productName:"",sizeName:""},page:1,total:0,data:[],columns:[{title:"商品编码",key:"productId",width:100},{title:"商品图片",width:120,render:function(e,t){return e("img",{attrs:{src:t.row.imageUrl,width:"100"}})}},{title:"SKU",key:"sku",width:100},{title:"商品名称",key:"productName",width:150,render:function(e,t){var r=t.row;return e("a",{attrs:{href:"/ufoPlatform/html/product/productEdit.html?id="+r.id}},[r.productName])}},{title:"尺码",key:"sizeName",width:100},{renderHeader:function(){return t("span",["毒当前价",t("br"),"(A)"])},key:"channelPrice",width:100,render:function(e,t){var r=t.row;return r.channelUrl?e("a",{attrs:{href:r.channelUrl}},[r.channelPrice]):e("span",[r.channelPrice])}},{title:"毒平均价",key:"channelAveragePrice",width:100},{renderHeader:function(){return t("span",["价格低于",t("br"),"(a%)"])},width:150,render:function(t,r){var n=r.row;return n._editing?t("div",[v(t,n,"lowRate")," ",t(u.Tooltip,{attrs:{placement:"top",content:"保存"}},[t(u.Icon,{class:"icon-edit",attrs:{type:"md-checkmark-circle"},on:{click:function(){return e.onSaveRate(n)}}})])]):t("span",[Object(d.BigNumber)(n.lowRate).times(100).toNumber(),"% ",t(u.Tooltip,{attrs:{placement:"top",content:"修改比例"}},[t(u.Icon,{class:"icon-edit",attrs:{type:"md-create"},on:{click:function(){return e.onEditRate(n)}}})])])}},{renderHeader:function(){return t("span",["价格高于",t("br"),"(b%)"])},width:150,render:function(t,r){var n=r.row;return n._editing?t("div",[v(t,n,"highRate")," ",t(u.Tooltip,{attrs:{placement:"top",content:"保存"}},[t(u.Icon,{class:"icon-edit",attrs:{type:"md-checkmark-circle"},on:{click:function(){return e.onSaveRate(n)}}})])]):t("span",[Object(d.BigNumber)(n.highRate).times(100).toNumber(),"% ",t(u.Tooltip,{attrs:{placement:"top",content:"修改比例"}},[t(u.Icon,{class:"icon-edit",attrs:{type:"md-create"},on:{click:function(){return e.onEditRate(n)}}})])])}},{renderHeader:function(){return t("span",["对标毒的价格区间",t("br"),"A(1-a%)~A(1+b%)"])},width:150,key:"channelPriceRange"},{title:"平台建议售价",key:"suggestPriceRange",width:150},{title:"UFO当前价",key:"ufoCurrentPrice",width:100},{renderHeader:function(){return t("span",["UFO价格红线"])},key:"ufoMinPrice",width:120},{title:"状态",renderHeader:function(){return t("span",["状态",t(u.Tooltip,{attrs:{transfer:!0,placement:"top",content:"毒当前价低于UFO价格红线则标记为异常"}},[t(u.Icon,{class:"icon-edit",attrs:{type:"ios-information-circle-outline"}})])])},render:function(e,t){return e("span",[t.row.status?"异常":"正常"])},width:100},{title:"操作",render:function(t,r){var n=r.row;return t("div",[n.status?t(u.Button,{attrs:{type:"primary",size:"small"},on:{click:function(){return e.onEditPrice(n)}}},["确认变更"]):t("span",["-"])])},width:100}]}},created:function(){var e=this;this.$nextTick(function(){var t=m.a.parse(location.search?location.search.slice(1):""),r=t.page,n=t.productId,i=t.sku,o=t.status,a=t.productName,s=t.sizeName;e.filter.productId=n||e.filter.productId,e.filter.sku=i||e.filter.sku,e.filter.status=o?parseInt(o):e.filter.status,e.filter.productName=a?decodeURIComponent(a):e.filter.productName,e.filter.sizeName=s||e.filter.sizeName,e.page=r?parseInt(r):1,e.fetchData(e.filter,e.page)})},methods:{onFilter:function(){this.fetchData(this.filter)},onClear:function(){this.$refs.filterForm.resetFields(),this.fetchData(this.filter)},onPageChange:function(e){this.fetchData(this.filter,e)},onEditRate:function(e){e._editing=!0},onRowClassName:function(e){return e.status?"row-unnormarl":"row-normarl"},onSaveRate:function(e){var t=this;return c()(a.a.mark(function r(){return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t.$Modal.confirm({title:"提示",content:"是否确认更新",onOk:function(){var r=c()(a.a.mark(function r(){var n,i,o,s;return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.lowRate,i=e.highRate,o=e.id,t.$Loading.start(),r.next=4,w._get("/ufoPlatform/channelSkuCompare/updateSuggestRate",{id:o,suggestLowRate:n,suggestHighRate:i});case 4:s=r.sent,200===s.code?(t.$Message.success("更新成功"),t.$Loading.finish(),t.fetchData(t.filter,t.page),e._editing=!1):(s.message&&t.$Message.warning(s.message),t.$Loading.error());case 6:case"end":return r.stop()}},r,t)}));return function(){return r.apply(this,arguments)}}()});case 1:case"end":return r.stop()}},r,t)}))()},onEditPrice:function(e){var t=this,r=e.id;this.$Modal.confirm({title:"提示",content:"是否确认变更",onOk:function(){var e=c()(a.a.mark(function e(){var n;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$Loading.start(),e.next=3,w._get("/ufoPlatform/channelSkuCompare/updateSuggestPrice",{id:r,status:0});case 3:n=e.sent,200===n.code?(t.$Message.success("变更成功"),t.$Loading.finish(),t.fetchData(t.filter,t.page)):(n.message&&t.$Message.warning(n.message),t.$Loading.error());case 5:case"end":return e.stop()}},e,t)}));return function(){return e.apply(this,arguments)}}()})},fetchData:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return c()(a.a.mark(function n(){var o,s,c;return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.page=r,t.$Loading.start(),n.next=4,w._get("/ufoPlatform/channelSkuCompare/queryList",i()({page:r},t.getParams(e)));case 4:o=n.sent,200===o.code?(s=0,c=[],o.data&&0!==o.data.length&&(s=o.data.total,c=o.data.list),t.total=s,t.data=c.map(function(e){return e._editing=!1,e._lowRate=e.lowRate,e._highRate=e.highRate,e}),t.$Loading.finish()):(o.message&&t.$Message.warning(o.message),t.$Loading.error());case 6:case"end":return n.stop()}},n,t)}))()},onExport:function(){var e=this;return c()(a.a.mark(function t(){var r;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.$Loading.start(),t.next=3,w._get("/ufoPlatform/batch/export.do",{type:"channelSkuCompareServiceImpl",queryConf:e.getParams(e.filter)},{responseType:"blob"});case 3:r=t.sent,r instanceof Blob?(h.a.downloadBlob(r,"比价跟价导出_"+p()().format("YYYY-MM-DD")+".xlsx"),e.$Loading.finish()):r&&(r.message&&e.$Message.warning(r.message),e.$Loading.error());case 5:case"end":return t.stop()}},t,e)}))()},getParams:function(e){return{productId:e.productId,sku:e.sku,status:parseInt(e.status)>=0?e.status:void 0,productName:e.productName,sizeName:e.sizeName}}}}},258:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(259),i=r(12);Object(i.a)(n.a)},259:function(e,t,r){"use strict";function n(e){a||r(260)}var i=r(103),o=r(262),a=!1,s=r(0),c=n,u=s(i.a,o.a,!1,c,"data-v-34e1a97a",null);u.options.__file="src/views/price-compare/index.vue",t.a=u.exports},260:function(e,t){},261:function(e,t,r){var n;!function(i){"use strict";function o(e){function t(e,r){var n,i,o,a,s,c,l,f,p=this;if(!(p instanceof t))return new t(e,r);if(null==r){if(e&&!0===e._isBigNumber)return p.s=e.s,void(!e.c||e.e>U?p.c=p.e=null:e.e<B?p.c=[p.e=0]:(p.e=e.e,p.c=e.c.slice()));if((c="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(a=0,s=e;s>=10;s/=10,a++);return void(a>U?p.c=p.e=null:(p.e=a,p.c=[e]))}f=String(e)}else{if(!d.test(f=String(e)))return P(p,f,c);p.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(a=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(a<0&&(a=s),a+=+f.slice(s+1),f=f.substring(0,s)):a<0&&(a=f.length)}else{if(u(r,2,j.length,"Base"),10==r)return p=new t(e),h(p,L+p.e+1,$);if(f=String(e),c="number"==typeof e){if(0*e!=0)return P(p,f,c,r);if(p.s=1/e<0?(f=f.slice(1),-1):1,t.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(N+e)}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=j.slice(0,r),a=s=0,l=f.length;s<l;s++)if(n.indexOf(i=f.charAt(s))<0){if("."==i){if(s>a){a=l;continue}}else if(!o&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){o=!0,s=-1,a=0;continue}return P(p,String(e),c,r)}c=!1,f=x(f,r,10,p.s),(a=f.indexOf("."))>-1?f=f.replace(".",""):a=f.length}for(s=0;48===f.charCodeAt(s);s++);for(l=f.length;48===f.charCodeAt(--l););if(f=f.slice(s,++l)){if(l-=s,c&&t.DEBUG&&l>15&&(e>O||e!==w(e)))throw Error(N+p.s*e);if((a=a-s-1)>U)p.c=p.e=null;else if(a<B)p.c=[p.e=0];else{if(p.e=a,p.c=[],s=(a+1)%y,a<0&&(s+=y),s<l){for(s&&p.c.push(+f.slice(0,s)),l-=y;s<l;)p.c.push(+f.slice(s,s+=y));s=y-(f=f.slice(s)).length}else s-=l;for(;s--;f+="0");p.c.push(+f)}}else p.c=[p.e=0]}function r(e,r,n,i){var o,a,c,l,d;if(null==n?n=$:u(n,0,8),!e.c)return e.toString();if(o=e.c[0],c=e.e,null==r)d=s(e.c),d=1==i||2==i&&(c<=C||c>=D)?f(d,c):p(d,c,"0");else if(e=h(new t(e),r,n),a=e.e,d=s(e.c),l=d.length,1==i||2==i&&(r<=a||a<=C)){for(;l<r;d+="0",l++);d=f(d,a)}else if(r-=c,d=p(d,a,"0"),a+1>l){if(--r>0)for(d+=".";r--;d+="0");}else if((r+=a-l)>0)for(a+1==l&&(d+=".");r--;d+="0");return e.s<0&&o?"-"+d:d}function n(e,r){for(var n,i=1,o=new t(e[0]);i<e.length;i++){if(n=new t(e[i]),!n.s){o=n;break}r.call(o,n)&&(o=n)}return o}function i(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*y-1)>U?e.c=e.e=null:r<B?e.c=[e.e=0]:(e.e=r,e.c=t),e}function h(e,t,r,n){var i,o,a,s,c,u,l,f=e.c,p=k;if(f){e:{for(i=1,s=f[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=y,a=t,c=f[u=0],l=c/p[i-a-1]%10|0;else if((u=m((o+1)/y))>=f.length){if(!n)break e;for(;f.length<=u;f.push(0));c=l=0,i=1,o%=y,a=o-y+1}else{for(c=s=f[u],i=1;s>=10;s/=10,i++);o%=y,a=o-y+i,l=a<0?0:c/p[i-a-1]%10|0}if(n=n||t<0||null!=f[u+1]||(a<0?c:c%p[i-a-1]),n=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?c/p[i-a]:0:f[u-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=p[(y-t%y)%y],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=u,s=1,u--):(f.length=u+1,s=p[y-o],f[u]=a>0?w(c/p[i-a]%p[a])*s:0),n)for(;;){if(0==u){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,f[0]==b&&(f[0]=1));break}if(f[u]+=s,f[u]!=b)break;f[u--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>U?e.c=e.e=null:e.e<B&&(e.c=[e.e=0])}return e}function I(e){var t,r=e.e;return null===r?e.toString():(t=s(e.c),t=r<=C||r>=D?f(t,r):p(t,r,"0"),e.s<0?"-"+t:t)}var R,x,P,S=t.prototype={constructor:t,toString:null,valueOf:null},A=new t(1),L=20,$=4,C=-7,D=21,B=-1e7,U=1e7,M=!1,T=1,F=0,z={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz";return t.clone=o,t.ROUND_UP=0,t.ROUND_DOWN=1,t.ROUND_CEIL=2,t.ROUND_FLOOR=3,t.ROUND_HALF_UP=4,t.ROUND_HALF_DOWN=5,t.ROUND_HALF_EVEN=6,t.ROUND_HALF_CEIL=7,t.ROUND_HALF_FLOOR=8,t.EUCLID=9,t.config=t.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(v+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(r=e[t],u(r,0,_,t),L=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(r=e[t],u(r,0,8,t),$=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(r=e[t],r&&r.pop?(u(r[0],-_,0,t),u(r[1],0,_,t),C=r[0],D=r[1]):(u(r,-_,_,t),C=-(D=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)u(r[0],-_,-1,t),u(r[1],1,_,t),B=r[0],U=r[1];else{if(u(r,-_,_,t),!r)throw Error(v+t+" cannot be zero: "+r);B=-(U=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(v+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!r,Error(v+"crypto unavailable");M=r}else M=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(r=e[t],u(r,0,9,t),T=r),e.hasOwnProperty(t="POW_PRECISION")&&(r=e[t],u(r,0,_,t),F=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(v+t+" not an object: "+r);z=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(v+t+" invalid: "+r);j=r}}return{DECIMAL_PLACES:L,ROUNDING_MODE:$,EXPONENTIAL_AT:[C,D],RANGE:[B,U],CRYPTO:M,MODULO_MODE:T,POW_PRECISION:F,FORMAT:z,ALPHABET:j}},t.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!t.DEBUG)return!0;var r,n,i=e.c,o=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===a||-1===a)&&o>=-_&&o<=_&&o===w(o)){if(0===i[0]){if(0===o&&1===i.length)return!0;break e}if(r=(o+1)%y,r<1&&(r+=y),String(i[0]).length==r){for(r=0;r<i.length;r++)if((n=i[r])<0||n>=b||n!==w(n))break e;if(0!==n)return!0}}}else if(null===i&&null===o&&(null===a||1===a||-1===a))return!0;throw Error(v+"Invalid BigNumber: "+e)},t.maximum=t.max=function(){return n(arguments,S.lt)},t.minimum=t.min=function(){return n(arguments,S.gt)},t.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return w(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(r){var n,i,o,a,s,c=0,l=[],f=new t(A);if(null==r?r=L:u(r,0,_),a=m(r/y),M)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(a*=2));c<a;)s=131072*n[c]+(n[c+1]>>>11),s>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),n[c]=i[0],n[c+1]=i[1]):(l.push(s%1e14),c+=2);c=a/2}else{if(!crypto.randomBytes)throw M=!1,Error(v+"crypto unavailable");for(n=crypto.randomBytes(a*=7);c<a;)s=281474976710656*(31&n[c])+1099511627776*n[c+1]+4294967296*n[c+2]+16777216*n[c+3]+(n[c+4]<<16)+(n[c+5]<<8)+n[c+6],s>=9e15?crypto.randomBytes(7).copy(n,c):(l.push(s%1e14),c+=7);c=a/7}if(!M)for(;c<a;)(s=e())<9e15&&(l[c++]=s%1e14);for(a=l[--c],r%=y,a&&r&&(s=k[y-r],l[c]=w(a/s)*s);0===l[c];l.pop(),c--);if(c<0)l=[o=0];else{for(o=-1;0===l[0];l.splice(0,1),o-=y);for(c=1,s=l[0];s>=10;s/=10,c++);c<y&&(o-=y-c)}return f.e=o,f.c=l,f}}(),t.sum=function(){for(var e=1,r=arguments,n=new t(r[0]);e<r.length;)n=n.plus(r[e++]);return n},x=function(){function e(e,t,r,n){for(var i,o,a=[0],s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var c,u,l,f,h,d,g,m,w=r.indexOf("."),v=L,N=$;for(w>=0&&(f=F,F=0,r=r.replace(".",""),m=new t(n),d=m.pow(r.length-w),F=f,m.c=e(p(s(d.c),d.e,"0"),10,i,"0123456789"),m.e=m.c.length),g=e(r,n,i,a?(c=j,"0123456789"):(c="0123456789",j)),l=f=g.length;0==g[--f];g.pop());if(!g[0])return c.charAt(0);if(w<0?--l:(d.c=g,d.e=l,d.s=o,d=R(d,m,v,N,i),g=d.c,h=d.r,l=d.e),u=l+v+1,w=g[u],f=i/2,h=h||u<0||null!=g[u+1],h=N<4?(null!=w||h)&&(0==N||N==(d.s<0?3:2)):w>f||w==f&&(4==N||h||6==N&&1&g[u-1]||N==(d.s<0?8:7)),u<1||!g[0])r=h?p(c.charAt(1),-v,c.charAt(0)):c.charAt(0);else{if(g.length=u,h)for(--i;++g[--u]>i;)g[u]=0,u||(++l,g=[1].concat(g));for(f=g.length;!g[--f];);for(w=0,r="";w<=f;r+=c.charAt(g[w++]));r=p(r,l,c.charAt(0))}return r}}(),R=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%E,l=t/E|0;for(e=e.slice();c--;)o=e[c]%E,a=e[c]/E|0,n=l*o+a*u,i=u*o+n%E*E+s,s=(i/r|0)+(n/E|0)+l*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function r(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,o,s,c,u){var l,f,p,d,g,m,v,N,O,k,E,_,I,R,x,P,S,A=i.s==o.s?1:-1,L=i.c,$=o.c;if(!(L&&L[0]&&$&&$[0]))return new t(i.s&&o.s&&(L?!$||L[0]!=$[0]:$)?L&&0==L[0]||!$?0*A:A/0:NaN);for(N=new t(A),O=N.c=[],f=i.e-o.e,A=s+f+1,u||(u=b,f=a(i.e/y)-a(o.e/y),A=A/y|0),p=0;$[p]==(L[p]||0);p++);if($[p]>(L[p]||0)&&f--,A<0)O.push(1),d=!0;else{for(R=L.length,P=$.length,p=0,A+=2,g=w(u/($[0]+1)),g>1&&($=e($,g,u),L=e(L,g,u),P=$.length,R=L.length),I=P,k=L.slice(0,P),E=k.length;E<P;k[E++]=0);S=$.slice(),S=[0].concat(S),x=$[0],$[1]>=u/2&&x++;do{if(g=0,(l=r($,k,P,E))<0){if(_=k[0],P!=E&&(_=_*u+(k[1]||0)),(g=w(_/x))>1)for(g>=u&&(g=u-1),m=e($,g,u),v=m.length,E=k.length;1==r(m,k,v,E);)g--,n(m,P<v?S:$,v,u),v=m.length,l=1;else 0==g&&(l=g=1),m=$.slice(),v=m.length;if(v<E&&(m=[0].concat(m)),n(k,m,E,u),E=k.length,-1==l)for(;r($,k,P,E)<1;)g++,n(k,P<E?S:$,E,u),E=k.length}else 0===l&&(g++,k=[0]);O[p++]=g,k[0]?k[E++]=L[I]||0:(k=[L[I]],E=1)}while((I++<R||null!=k[0])&&A--);d=null!=k[0],O[0]||O.splice(0,1)}if(u==b){for(p=1,A=O[0];A>=10;A/=10,p++);h(N,s+(N.e=p+f*y-1)+1,c,d)}else N.e=f,N.r=+d;return N}}(),P=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,n=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,c,u){var l,f=c?s:s.replace(o,"");if(i.test(f))a.s=isNaN(f)?null:f<0?-1:1;else{if(!c&&(f=f.replace(e,function(e,t,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,u&&u!=l?e:t}),u&&(l=u,f=f.replace(r,"$1").replace(n,"0.$1")),s!=f))return new t(f,l);if(t.DEBUG)throw Error(v+"Not a"+(u?" base "+u:"")+" number: "+s);a.s=null}a.c=a.e=null}}(),S.absoluteValue=S.abs=function(){var e=new t(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,r){return c(this,new t(e,r))},S.decimalPlaces=S.dp=function(e,r){var n,i,o,s=this;if(null!=e)return u(e,0,_),null==r?r=$:u(r,0,8),h(new t(s),e+s.e+1,r);if(!(n=s.c))return null;if(i=((o=n.length-1)-a(this.e/y))*y,o=n[o])for(;o%10==0;o/=10,i--);return i<0&&(i=0),i},S.dividedBy=S.div=function(e,r){return R(this,new t(e,r),L,$)},S.dividedToIntegerBy=S.idiv=function(e,r){return R(this,new t(e,r),0,1)},S.exponentiatedBy=S.pow=function(e,r){var n,i,o,a,s,c,u,f,p=this;if(e=new t(e),e.c&&!e.isInteger())throw Error(v+"Exponent not an integer: "+I(e));if(null!=r&&(r=new t(r)),s=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return f=new t(Math.pow(+I(p),s?2-l(e):+I(e))),r?f.mod(r):f;if(c=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new t(NaN);i=!c&&p.isInteger()&&r.isInteger(),i&&(p=p.mod(r))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return a=p.s<0&&l(e)?-0:0,p.e>-1&&(a=1/a),new t(c?1/a:a);F&&(a=m(F/y+2))}for(s?(n=new t(.5),c&&(e.s=1),u=l(e)):(o=Math.abs(+I(e)),u=o%2),f=new t(A);;){if(u){if(f=f.times(p),!f.c)break;a?f.c.length>a&&(f.c.length=a):i&&(f=f.mod(r))}if(o){if(0===(o=w(o/2)))break;u=o%2}else if(e=e.times(n),h(e,e.e+1,1),e.e>14)u=l(e);else{if(0===(o=+I(e)))break;u=o%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):i&&(p=p.mod(r))}return i?f:(c&&(f=A.div(f)),r?f.mod(r):a?h(f,F,$,void 0):f)},S.integerValue=function(e){var r=new t(this);return null==e?e=$:u(e,0,8),h(r,r.e+1,e)},S.isEqualTo=S.eq=function(e,r){return 0===c(this,new t(e,r))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,r){return c(this,new t(e,r))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,r){return 1===(r=c(this,new t(e,r)))||0===r},S.isInteger=function(){return!!this.c&&a(this.e/y)>this.c.length-2},S.isLessThan=S.lt=function(e,r){return c(this,new t(e,r))<0},S.isLessThanOrEqualTo=S.lte=function(e,r){return-1===(r=c(this,new t(e,r)))||0===r},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,r){var n,o,s,c,u=this,l=u.s;if(e=new t(e,r),r=e.s,!l||!r)return new t(NaN);if(l!=r)return e.s=-r,u.plus(e);var f=u.e/y,p=e.e/y,h=u.c,d=e.c;if(!f||!p){if(!h||!d)return h?(e.s=-r,e):new t(d?u:NaN);if(!h[0]||!d[0])return d[0]?(e.s=-r,e):new t(h[0]?u:3==$?-0:0)}if(f=a(f),p=a(p),h=h.slice(),l=f-p){for((c=l<0)?(l=-l,s=h):(p=f,s=d),s.reverse(),r=l;r--;s.push(0));s.reverse()}else for(o=(c=(l=h.length)<(r=d.length))?l:r,l=r=0;r<o;r++)if(h[r]!=d[r]){c=h[r]<d[r];break}if(c&&(s=h,h=d,d=s,e.s=-e.s),(r=(o=d.length)-(n=h.length))>0)for(;r--;h[n++]=0);for(r=b-1;o>l;){if(h[--o]<d[o]){for(n=o;n&&!h[--n];h[n]=r);--h[n],h[o]+=b}h[o]-=d[o]}for(;0==h[0];h.splice(0,1),--p);return h[0]?i(e,h,p):(e.s=3==$?-1:1,e.c=[e.e=0],e)},S.modulo=S.mod=function(e,r){var n,i,o=this;return e=new t(e,r),!o.c||!e.s||e.c&&!e.c[0]?new t(NaN):!e.c||o.c&&!o.c[0]?new t(o):(9==T?(i=e.s,e.s=1,n=R(o,e,0,3),e.s=i,n.s*=i):n=R(o,e,0,T),e=o.minus(n.times(e)),e.c[0]||1!=T||(e.s=o.s),e)},S.multipliedBy=S.times=function(e,r){var n,o,s,c,u,l,f,p,h,d,g,m,w,v,N,O=this,k=O.c,_=(e=new t(e,r)).c;if(!(k&&_&&k[0]&&_[0]))return!O.s||!e.s||k&&!k[0]&&!_||_&&!_[0]&&!k?e.c=e.e=e.s=null:(e.s*=O.s,k&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(o=a(O.e/y)+a(e.e/y),e.s*=O.s,f=k.length,d=_.length,f<d&&(w=k,k=_,_=w,s=f,f=d,d=s),s=f+d,w=[];s--;w.push(0));for(v=b,N=E,s=d;--s>=0;){for(n=0,g=_[s]%N,m=_[s]/N|0,u=f,c=s+u;c>s;)p=k[--u]%N,h=k[u]/N|0,l=m*p+h*g,p=g*p+l%N*N+w[c]+n,n=(p/v|0)+(l/N|0)+m*h,w[c--]=p%v;w[c]=n}return n?++o:w.splice(0,1),i(e,w,o)},S.negated=function(){var e=new t(this);return e.s=-e.s||null,e},S.plus=function(e,r){var n,o=this,s=o.s;if(e=new t(e,r),r=e.s,!s||!r)return new t(NaN);if(s!=r)return e.s=-r,o.minus(e);var c=o.e/y,u=e.e/y,l=o.c,f=e.c;if(!c||!u){if(!l||!f)return new t(s/0);if(!l[0]||!f[0])return f[0]?e:new t(l[0]?o:0*s)}if(c=a(c),u=a(u),l=l.slice(),s=c-u){for(s>0?(u=c,n=f):(s=-s,n=l),n.reverse();s--;n.push(0));n.reverse()}for(s=l.length,r=f.length,s-r<0&&(n=f,f=l,l=n,r=s),s=0;r;)s=(l[--r]=l[r]+f[r]+s)/b|0,l[r]=b===l[r]?0:l[r]%b;return s&&(l=[s].concat(l),++u),i(e,l,u)},S.precision=S.sd=function(e,r){var n,i,o,a=this;if(null!=e&&e!==!!e)return u(e,1,_),null==r?r=$:u(r,0,8),h(new t(a),e,r);if(!(n=a.c))return null;if(o=n.length-1,i=o*y+1,o=n[o]){for(;o%10==0;o/=10,i--);for(o=n[0];o>=10;o/=10,i++);}return e&&a.e+1>i&&(i=a.e+1),i},S.shiftedBy=function(e){return u(e,-O,O),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,r,n,i,o,c=this,u=c.c,l=c.s,f=c.e,p=L+4,d=new t("0.5");if(1!==l||!u||!u[0])return new t(!l||l<0&&(!u||u[0])?NaN:u?c:1/0);if(l=Math.sqrt(+I(c)),0==l||l==1/0?(r=s(u),(r.length+f)%2==0&&(r+="0"),l=Math.sqrt(+r),f=a((f+1)/2)-(f<0||f%2),l==1/0?r="1e"+f:(r=l.toExponential(),r=r.slice(0,r.indexOf("e")+1)+f),n=new t(r)):n=new t(l+""),n.c[0])for(f=n.e,l=f+p,l<3&&(l=0);;)if(o=n,n=d.times(o.plus(R(c,o,p,1))),s(o.c).slice(0,l)===(r=s(n.c)).slice(0,l)){if(n.e<f&&--l,"9999"!=(r=r.slice(l-3,l+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(h(n,n.e+L+2,1),e=!n.times(n).eq(c));break}if(!i&&(h(o,o.e+L+2,0),o.times(o).eq(c))){n=o;break}p+=4,l+=4,i=1}return h(n,n.e+L+1,$,e)},S.toExponential=function(e,t){return null!=e&&(u(e,0,_),e++),r(this,e,t,1)},S.toFixed=function(e,t){return null!=e&&(u(e,0,_),e=e+this.e+1),r(this,e,t)},S.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=z;else if("object"!=typeof r)throw Error(v+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),s=+r.groupSize,c=+r.secondaryGroupSize,u=r.groupSeparator||"",l=a[0],f=a[1],p=i.s<0,h=p?l.slice(1):l,d=h.length;if(c&&(o=s,s=c,c=o,d-=o),s>0&&d>0){for(o=d%s||s,l=h.substr(0,o);o<d;o+=s)l+=u+h.substr(o,s);c>0&&(l+=u+h.slice(o)),p&&(l="-"+l)}n=f?l+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):l}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(e){var r,n,i,o,a,c,u,l,f,p,h,d,g=this,m=g.c;if(null!=e&&(u=new t(e),!u.isInteger()&&(u.c||1!==u.s)||u.lt(A)))throw Error(v+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+I(u));if(!m)return new t(g);for(r=new t(A),f=n=new t(A),i=l=new t(A),d=s(m),a=r.e=d.length-g.e-1,r.c[0]=k[(c=a%y)<0?y+c:c],e=!e||u.comparedTo(r)>0?a>0?r:f:u,c=U,U=1/0,u=new t(d),l.c[0]=0;p=R(u,r,0,1),o=n.plus(p.times(i)),1!=o.comparedTo(e);)n=i,i=o,f=l.plus(p.times(o=f)),l=o,r=u.minus(p.times(o=r)),u=o;return o=R(e.minus(n),i,0,1),l=l.plus(o.times(f)),n=n.plus(o.times(i)),l.s=f.s=g.s,a*=2,h=R(f,i,a,$).minus(g).abs().comparedTo(R(l,n,a,$).minus(g).abs())<1?[f,i]:[l,n],U=c,h},S.toNumber=function(){return+I(this)},S.toPrecision=function(e,t){return null!=e&&u(e,1,_),r(this,e,t,2)},S.toString=function(e){var r,n=this,i=n.s,o=n.e;return null===o?i?(r="Infinity",i<0&&(r="-"+r)):r="NaN":(null==e?r=o<=C||o>=D?f(s(n.c),o):p(s(n.c),o,"0"):10===e?(n=h(new t(n),L+o+1,$),r=p(s(n.c),n.e,"0")):(u(e,2,j.length,"Base"),r=x(p(s(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(r="-"+r)),r},S.valueOf=S.toJSON=function(){return I(this)},S._isBigNumber=!0,g&&(S[Symbol.toStringTag]="BigNumber",S[Symbol.for("nodejs.util.inspect.custom")]=S.valueOf),null!=e&&t.set(e),t}function a(e){var t=0|e;return e>0||e===t?t:t-1}function s(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=y-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=c==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>u^r?1:-1;for(s=(c=i.length)<(u=o.length)?c:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==u?0:c>u^r?1:-1}function u(e,t,r,n){if(e<t||e>r||e!==w(e))throw Error(v+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function l(e){var t=e.c.length-1;return a(e.e/y)==t&&e.c[t]%2!=0}function f(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function p(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var h,d=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,m=Math.ceil,w=Math.floor,v="[BigNumber Error] ",N=v+"Number primitive has more than 15 significant digits: ",b=1e14,y=14,O=9007199254740991,k=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],E=1e7,_=1e9;h=o(),h.default=h.BigNumber=h,void 0!==(n=function(){return h}.call(t,r,t,e))&&(e.exports=n)}()},262:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("LayoutContent",{attrs:{breads:[{title:"比价列表"}]}},[r("LayoutFilter",{on:{"on-filter":e.onFilter,"on-clear":e.onClear}},[r("Form",{ref:"filterForm",attrs:{inline:"",model:e.filter}},[r("FormItem",{attrs:{prop:"sku"}},[r("Input",{attrs:{placeholder:"SKU"},model:{value:e.filter.sku,callback:function(t){e.$set(e.filter,"sku",t)},expression:"filter.sku"}})],1),e._v(" "),r("FormItem",{attrs:{prop:"productId"}},[r("Input",{attrs:{placeholder:"商品编码"},model:{value:e.filter.productId,callback:function(t){e.$set(e.filter,"productId",t)},expression:"filter.productId"}})],1),e._v(" "),r("FormItem",{attrs:{prop:"status"}},[r("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择状态"},model:{value:e.filter.status,callback:function(t){e.$set(e.filter,"status",t)},expression:"filter.status"}},[r("Option",{attrs:{value:0}},[e._v("正常")]),e._v(" "),r("Option",{attrs:{value:1}},[e._v("异常")])],1)],1),e._v(" "),r("FormItem",{attrs:{prop:"productName"}},[r("Input",{attrs:{placeholder:"商品名称"},model:{value:e.filter.productName,callback:function(t){e.$set(e.filter,"productName",t)},expression:"filter.productName"}})],1),e._v(" "),r("FormItem",{attrs:{prop:"sizeName"}},[r("Input",{attrs:{placeholder:"尺码"},model:{value:e.filter.sizeName,callback:function(t){e.$set(e.filter,"sizeName",t)},expression:"filter.sizeName"}})],1)],1)],1),e._v(" "),r("LayoutTable",{attrs:{page:e.page,total:e.total,columns:e.columns,data:e.data,"row-class-name":e.onRowClassName},on:{"on-page-change":e.onPageChange}},[r("template",{staticClass:"btns",slot:"footer"},[r("Button",{attrs:{type:"primary",icon:"ios-cloud-download"},on:{click:e.onExport}},[e._v("导出")])],1)],2)],1)},i=[];n._withStripped=!0;var o={render:n,staticRenderFns:i};t.a=o},8:function(e,t){e.exports=Vue}},[258]); |