Authored by 匡佳华

Merge branch 'feature/send-coupon-by-uid' into dev-couponSend

Showing 30 changed files with 2650 additions and 414 deletions
... ... @@ -130,7 +130,7 @@
</update>
<update id="softDeleteByProductId" parameterType="com.yoho.ufo.dal.model.ProductLimitSale" >
update product_limit_sale set del_status = 1,editUid=#{editUid} where product_id = #{productId,jdbcType=INTEGER} and del_status=0
update product_limit_sale set del_status = 1,edit_uid=#{editUid} where product_id = #{productId,jdbcType=INTEGER} and del_status=0
</update>
</mapper>
\ No newline at end of file
... ...
... ... @@ -5,10 +5,10 @@
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.df4786dc29d44d7b1583.css" rel="stylesheet"><link href="css/coupon.df4786dc29d44d7b1583.css" rel="stylesheet"></head>
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/coupon.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.df4786dc29d44d7b1583.js"></script><script type="text/javascript" src="js/coupon.df4786dc29d44d7b1583.js"></script></body>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/coupon.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...
button {
margin: 5px;
}
.form-group[data-v-35ed785d]{width:100%;height:30px;background-color:#f5f7f9}
\ No newline at end of file
... ...
.form-group[data-v-35ed785d]{width:100%;height:30px;background-color:#f5f7f9}
\ No newline at end of file
.manual-send-wrapper {
height: 205px;
}
.import-send-wrapper {
height: 100%;
}
.ivu-card-body {
padding: 0;
margin: 0;
}
.ivu-card-bordered {
/*border: none;*/
border-bottom: none;
}
.ivu-card-head {
background-color: #f7f7f7;
}
.manual-send-container {
margin-top: 20px;
height: 130px;
}
.import-send-container {
margin-top: 40px;
/*margin-bottom: 200px;*/
}
.manual-send-container .title {
text-align: right;
margin-right: 20px;
}
#txt_uids {
width: 98%;
height: 100%;
}
#upload {
width: 100%;
height: 100%;
opacity: 0;
position: absolute;
left: 0;
top: 0;
}
.button-upload {
position: relative;
display: inline-block;
background-color: #17b566;
border-radius: 5px;
color: #fff;
width: 80px;
height: 32px;
line-height: 32px;
text-align: center;
overflow: hidden;
}
.file-name {
height: 32px;
line-height: 32px;
margin-left: 20px;
color: #2b85e4;
display: inline-table;
vertical-align: middle;
}
.red {
color: #ff0000;
}
.bottom {
position: absolute;
bottom: 0;
width: 100%;
height: 80px;
background-color: #f7f7f7;
line-height: 80px;
text-align: center;
}
a {
text-decoration: none;
}
... ...
.ivu-btn {
margin: 0 2px;
}
.ivu-table-cell {
padding: 10px;
}
.show {
display: block !important;
}
.btn-close {
width: 30px;
height: 30px;
border: none;
border-radius: 50%;
text-align: center;
padding: 0;
color: red;
}
.popup-detail-wrapper,
.popup-invist-wrapper {
display: none;
width: 100%;
height: 100%;
left: 0;
top: 0;
position: absolute;
background-color: rgba(0, 0, 0, 0.7);
z-index: 99;
}
.popup-detail-container {
width: 900px;
height: 500px;
margin: 100px auto;
}
.popup-invist-container {
width: 500px;
height: 200px;
margin: 100px auto;
}
.ivu-row:hover {
background-color: lightblue;
}
.detail-title, .invist-title {
color: #2db7f5;
}
.cert-image {
width: 200px;
height: 126px;
margin: 4px 10px;
}
.popup-detail-container .ivu-col {
border: 1px solid lightgray;
padding: 8px 0;
text-align: center;
}
.popup-invist-container .ivu-row {
padding: 10px 0;
text-align: center;
}
input {
width: 90%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
... ...
webpackJsonp([2],{100:function(e,t,r){"use strict";var n=r(9),i=r.n(n),o=r(19),a=r.n(o),s=r(20),c=r.n(s),u=r(30),l=(r.n(u),r(23)),f=r(24),p=r.n(f),h=r(63),d=r(249),g=(r.n(d),r(32)),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}}}}},246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(247),i=r(15);Object(i.a)(n.a)},247:function(e,t,r){"use strict";function n(e){a||r(248)}var i=r(100),o=r(250),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},248:function(e,t){},249: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 instanceof t)return p.s=e.s,p.e=e.e,void(p.c=(e=e.c)?e.slice():e);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 p.e=a,void(p.c=[e])}f=String(e)}else{if(f=String(e),!d.test(f))return x(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,z.length,"Base"),f=String(e),10==r)return p=new t(e instanceof t?e:f),h(p,A+p.e+1,L);if(c="number"==typeof e){if(0*e!=0)return x(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(v+e);c=!1}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=z.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 x(p,String(e),c,r)}f=R(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>y||e!==m(e)))throw Error(v+p.s*e);if((a=a-s-1)>M)p.c=p.e=null;else if(a<D)p.c=[p.e=0];else{if(p.e=a,p.c=[],s=(a+1)%b,a<0&&(s+=b),s<l){for(s&&p.c.push(+f.slice(0,s)),l-=b;s<l;)p.c.push(+f.slice(s,s+=b));f=f.slice(s),s=b-f.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=L: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<=$?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<=$)){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*b-1)>M?e.c=e.e=null:r<D?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=O;if(f){e:{for(i=1,s=f[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=b,a=t,c=f[u=0],l=c/p[i-a-1]%10|0;else if((u=g((o+1)/b))>=f.length){if(!n)break e;for(;f.length<=u;f.push(0));c=l=0,i=1,o%=b,a=o-b+1}else{for(c=s=f[u],i=1;s>=10;s/=10,i++);o%=b,a=o-b+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[(b-t%b)%b],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[b-o],f[u]=a>0?m(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]==N&&(f[0]=1));break}if(f[u]+=s,f[u]!=N)break;f[u--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>M?e.c=e.e=null:e.e<D&&(e.c=[e.e=0])}return e}function _(e){var t,r=e.e;return null===r?e.toString():(t=s(e.c),t=r<=$||r>=C?f(t,r):p(t,r,"0"),e.s<0?"-"+t:t)}var I,R,x,P=t.prototype={constructor:t,toString:null,valueOf:null},S=new t(1),A=20,L=4,$=-7,C=21,D=-1e7,M=1e7,U=!1,B=1,T=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},z="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(w+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(r=e[t],u(r,0,E,t),A=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(r=e[t],u(r,0,8,t),L=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(r=e[t],r&&r.pop?(u(r[0],-E,0,t),u(r[1],0,E,t),$=r[0],C=r[1]):(u(r,-E,E,t),$=-(C=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)u(r[0],-E,-1,t),u(r[1],1,E,t),D=r[0],M=r[1];else{if(u(r,-E,E,t),!r)throw Error(w+t+" cannot be zero: "+r);D=-(M=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(w+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!r,Error(w+"crypto unavailable");U=r}else U=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(r=e[t],u(r,0,9,t),B=r),e.hasOwnProperty(t="POW_PRECISION")&&(r=e[t],u(r,0,E,t),T=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(w+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(w+t+" invalid: "+r);z=r}}return{DECIMAL_PLACES:A,ROUNDING_MODE:L,EXPONENTIAL_AT:[$,C],RANGE:[D,M],CRYPTO:U,MODULO_MODE:B,POW_PRECISION:T,FORMAT:F,ALPHABET:z}},t.isBigNumber=function(e){return e instanceof t||e&&!0===e._isBigNumber||!1},t.maximum=t.max=function(){return n(arguments,P.lt)},t.minimum=t.min=function(){return n(arguments,P.gt)},t.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return m(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(S);if(null==r?r=A:u(r,0,E),a=g(r/b),U)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 U=!1,Error(w+"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(!U)for(;c<a;)(s=e())<9e15&&(l[c++]=s%1e14);for(a=l[--c],r%=b,a&&r&&(s=O[b-r],l[c]=m(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-=b);for(c=1,s=l[0];s>=10;s/=10,c++);c<b&&(o-=b-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},R=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=A,N=L;for(w>=0&&(f=T,T=0,r=r.replace(".",""),m=new t(n),d=m.pow(r.length-w),T=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=z,"0123456789"):(c="0123456789",z)),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=I(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}}(),I=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%k,l=t/k|0;for(e=e.slice();c--;)o=e[c]%k,a=e[c]/k|0,n=l*o+a*u,i=u*o+n%k*k+s,s=(i/r|0)+(n/k|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,w,v,y,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(y=new t(A),O=y.c=[],f=i.e-o.e,A=s+f+1,u||(u=N,f=a(i.e/b)-a(o.e/b),A=A/b|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=m(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=m(_/x))>1)for(g>=u&&(g=u-1),w=e($,g,u),v=w.length,E=k.length;1==r(w,k,v,E);)g--,n(w,P<v?S:$,v,u),v=w.length,l=1;else 0==g&&(l=g=1),w=$.slice(),v=w.length;if(v<E&&(w=[0].concat(w)),n(k,w,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==N){for(p=1,A=O[0];A>=10;A/=10,p++);h(y,s+(y.e=p+f*b-1)+1,c,d)}else y.e=f,y.r=+d;return y}}(),x=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,a.c=a.e=null;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(w+"Not a"+(u?" base "+u:"")+" number: "+s);a.c=a.e=a.s=null}}}(),P.absoluteValue=P.abs=function(){var e=new t(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,r){return c(this,new t(e,r))},P.decimalPlaces=P.dp=function(e,r){var n,i,o,s=this;if(null!=e)return u(e,0,E),null==r?r=L: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/b))*b,o=n[o])for(;o%10==0;o/=10,i--);return i<0&&(i=0),i},P.dividedBy=P.div=function(e,r){return I(this,new t(e,r),A,L)},P.dividedToIntegerBy=P.idiv=function(e,r){return I(this,new t(e,r),0,1)},P.exponentiatedBy=P.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(w+"Exponent not an integer: "+_(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(+_(p),s?2-l(e):+_(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);T&&(a=g(T/b+2))}for(s?(n=new t(.5),c&&(e.s=1),u=l(e)):(o=Math.abs(+_(e)),u=o%2),f=new t(S);;){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=m(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=+_(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=S.div(f)),r?f.mod(r):a?h(f,T,L,void 0):f)},P.integerValue=function(e){var r=new t(this);return null==e?e=L:u(e,0,8),h(r,r.e+1,e)},P.isEqualTo=P.eq=function(e,r){return 0===c(this,new t(e,r))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,r){return c(this,new t(e,r))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,r){return 1===(r=c(this,new t(e,r)))||0===r},P.isInteger=function(){return!!this.c&&a(this.e/b)>this.c.length-2},P.isLessThan=P.lt=function(e,r){return c(this,new t(e,r))<0},P.isLessThanOrEqualTo=P.lte=function(e,r){return-1===(r=c(this,new t(e,r)))||0===r},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.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/b,p=e.e/b,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==L?-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=N-1;o>l;){if(h[--o]<d[o]){for(n=o;n&&!h[--n];h[n]=r);--h[n],h[o]+=N}h[o]-=d[o]}for(;0==h[0];h.splice(0,1),--p);return h[0]?i(e,h,p):(e.s=3==L?-1:1,e.c=[e.e=0],e)},P.modulo=P.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==B?(i=e.s,e.s=1,n=I(o,e,0,3),e.s=i,n.s*=i):n=I(o,e,0,B),e=o.minus(n.times(e)),e.c[0]||1!=B||(e.s=o.s),e)},P.multipliedBy=P.times=function(e,r){var n,o,s,c,u,l,f,p,h,d,g,m,w,v,y,O=this,E=O.c,_=(e=new t(e,r)).c;if(!(E&&_&&E[0]&&_[0]))return!O.s||!e.s||E&&!E[0]&&!_||_&&!_[0]&&!E?e.c=e.e=e.s=null:(e.s*=O.s,E&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(o=a(O.e/b)+a(e.e/b),e.s*=O.s,f=E.length,d=_.length,f<d&&(w=E,E=_,_=w,s=f,f=d,d=s),s=f+d,w=[];s--;w.push(0));for(v=N,y=k,s=d;--s>=0;){for(n=0,g=_[s]%y,m=_[s]/y|0,u=f,c=s+u;c>s;)p=E[--u]%y,h=E[u]/y|0,l=m*p+h*g,p=g*p+l%y*y+w[c]+n,n=(p/v|0)+(l/y|0)+m*h,w[c--]=p%v;w[c]=n}return n?++o:w.splice(0,1),i(e,w,o)},P.negated=function(){var e=new t(this);return e.s=-e.s||null,e},P.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/b,u=e.e/b,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)/N|0,l[r]=N===l[r]?0:l[r]%N;return s&&(l=[s].concat(l),++u),i(e,l,u)},P.precision=P.sd=function(e,r){var n,i,o,a=this;if(null!=e&&e!==!!e)return u(e,1,E),null==r?r=L:u(r,0,8),h(new t(a),e,r);if(!(n=a.c))return null;if(o=n.length-1,i=o*b+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},P.shiftedBy=function(e){return u(e,-y,y),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,r,n,i,o,c=this,u=c.c,l=c.s,f=c.e,p=A+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(+_(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(I(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+A+2,1),e=!n.times(n).eq(c));break}if(!i&&(h(o,o.e+A+2,0),o.times(o).eq(c))){n=o;break}p+=4,l+=4,i=1}return h(n,n.e+A+1,L,e)},P.toExponential=function(e,t){return null!=e&&(u(e,0,E),e++),r(this,e,t,1)},P.toFixed=function(e,t){return null!=e&&(u(e,0,E),e=e+this.e+1),r(this,e,t)},P.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=F;else if("object"!=typeof r)throw Error(w+"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||"")},P.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(S)))throw Error(w+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+_(u));if(!m)return new t(g);for(r=new t(S),f=n=new t(S),i=l=new t(S),d=s(m),a=r.e=d.length-g.e-1,r.c[0]=O[(c=a%b)<0?b+c:c],e=!e||u.comparedTo(r)>0?a>0?r:f:u,c=M,M=1/0,u=new t(d),l.c[0]=0;p=I(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=I(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=I(f,i,a,L).minus(g).abs().comparedTo(I(l,n,a,L).minus(g).abs())<1?[f,i]:[l,n],M=c,h},P.toNumber=function(){return+_(this)},P.toPrecision=function(e,t){return null!=e&&u(e,1,E),r(this,e,t,2)},P.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=s(r.c),null==e?t=i<=$||i>=C?f(t,i):p(t,i,"0"):(u(e,2,z.length,"Base"),t=R(p(t,i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},P.valueOf=P.toJSON=function(){return _(this)},P._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(P[Symbol.toStringTag]="BigNumber",P[Symbol.for("nodejs.util.inspect.custom")]=P.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=b-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!==(e<0?g(e):m(e)))throw Error(w+(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/b)==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=Math.ceil,m=Math.floor,w="[BigNumber Error] ",v=w+"Number primitive has more than 15 significant digits: ",N=1e14,b=14,y=9007199254740991,O=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],k=1e7,E=1e9;h=o(),h.default=h.BigNumber=h,void 0!==(n=function(){return h}.call(t,r,t,e))&&(e.exports=n)}()},250: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}},[246]);
\ No newline at end of file
webpackJsonp([3],{101:function(e,t,r){"use strict";var n=r(9),i=r.n(n),o=r(21),a=r.n(o),s=r(22),c=r.n(s),u=r(24),l=(r.n(u),r(16)),f=r(17),p=r.n(f),h=r(46),d=r(254),g=(r.n(d),r(26)),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}}}}},251:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(252),i=r(13);Object(i.a)(n.a)},252:function(e,t,r){"use strict";function n(e){a||r(253)}var i=r(101),o=r(255),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},253:function(e,t){},254: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 instanceof t)return p.s=e.s,p.e=e.e,void(p.c=(e=e.c)?e.slice():e);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 p.e=a,void(p.c=[e])}f=String(e)}else{if(f=String(e),!d.test(f))return x(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,z.length,"Base"),f=String(e),10==r)return p=new t(e instanceof t?e:f),h(p,A+p.e+1,L);if(c="number"==typeof e){if(0*e!=0)return x(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(v+e);c=!1}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=z.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 x(p,String(e),c,r)}f=R(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>y||e!==m(e)))throw Error(v+p.s*e);if((a=a-s-1)>M)p.c=p.e=null;else if(a<D)p.c=[p.e=0];else{if(p.e=a,p.c=[],s=(a+1)%b,a<0&&(s+=b),s<l){for(s&&p.c.push(+f.slice(0,s)),l-=b;s<l;)p.c.push(+f.slice(s,s+=b));f=f.slice(s),s=b-f.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=L: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<=$?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<=$)){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*b-1)>M?e.c=e.e=null:r<D?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=O;if(f){e:{for(i=1,s=f[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=b,a=t,c=f[u=0],l=c/p[i-a-1]%10|0;else if((u=g((o+1)/b))>=f.length){if(!n)break e;for(;f.length<=u;f.push(0));c=l=0,i=1,o%=b,a=o-b+1}else{for(c=s=f[u],i=1;s>=10;s/=10,i++);o%=b,a=o-b+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[(b-t%b)%b],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[b-o],f[u]=a>0?m(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]==N&&(f[0]=1));break}if(f[u]+=s,f[u]!=N)break;f[u--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>M?e.c=e.e=null:e.e<D&&(e.c=[e.e=0])}return e}function _(e){var t,r=e.e;return null===r?e.toString():(t=s(e.c),t=r<=$||r>=C?f(t,r):p(t,r,"0"),e.s<0?"-"+t:t)}var I,R,x,P=t.prototype={constructor:t,toString:null,valueOf:null},S=new t(1),A=20,L=4,$=-7,C=21,D=-1e7,M=1e7,U=!1,B=1,T=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},z="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(w+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(r=e[t],u(r,0,E,t),A=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(r=e[t],u(r,0,8,t),L=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(r=e[t],r&&r.pop?(u(r[0],-E,0,t),u(r[1],0,E,t),$=r[0],C=r[1]):(u(r,-E,E,t),$=-(C=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)u(r[0],-E,-1,t),u(r[1],1,E,t),D=r[0],M=r[1];else{if(u(r,-E,E,t),!r)throw Error(w+t+" cannot be zero: "+r);D=-(M=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(w+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!r,Error(w+"crypto unavailable");U=r}else U=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(r=e[t],u(r,0,9,t),B=r),e.hasOwnProperty(t="POW_PRECISION")&&(r=e[t],u(r,0,E,t),T=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(w+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(w+t+" invalid: "+r);z=r}}return{DECIMAL_PLACES:A,ROUNDING_MODE:L,EXPONENTIAL_AT:[$,C],RANGE:[D,M],CRYPTO:U,MODULO_MODE:B,POW_PRECISION:T,FORMAT:F,ALPHABET:z}},t.isBigNumber=function(e){return e instanceof t||e&&!0===e._isBigNumber||!1},t.maximum=t.max=function(){return n(arguments,P.lt)},t.minimum=t.min=function(){return n(arguments,P.gt)},t.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return m(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(S);if(null==r?r=A:u(r,0,E),a=g(r/b),U)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 U=!1,Error(w+"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(!U)for(;c<a;)(s=e())<9e15&&(l[c++]=s%1e14);for(a=l[--c],r%=b,a&&r&&(s=O[b-r],l[c]=m(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-=b);for(c=1,s=l[0];s>=10;s/=10,c++);c<b&&(o-=b-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},R=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=A,N=L;for(w>=0&&(f=T,T=0,r=r.replace(".",""),m=new t(n),d=m.pow(r.length-w),T=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=z,"0123456789"):(c="0123456789",z)),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=I(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}}(),I=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%k,l=t/k|0;for(e=e.slice();c--;)o=e[c]%k,a=e[c]/k|0,n=l*o+a*u,i=u*o+n%k*k+s,s=(i/r|0)+(n/k|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,w,v,y,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(y=new t(A),O=y.c=[],f=i.e-o.e,A=s+f+1,u||(u=N,f=a(i.e/b)-a(o.e/b),A=A/b|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=m(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=m(_/x))>1)for(g>=u&&(g=u-1),w=e($,g,u),v=w.length,E=k.length;1==r(w,k,v,E);)g--,n(w,P<v?S:$,v,u),v=w.length,l=1;else 0==g&&(l=g=1),w=$.slice(),v=w.length;if(v<E&&(w=[0].concat(w)),n(k,w,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==N){for(p=1,A=O[0];A>=10;A/=10,p++);h(y,s+(y.e=p+f*b-1)+1,c,d)}else y.e=f,y.r=+d;return y}}(),x=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,a.c=a.e=null;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(w+"Not a"+(u?" base "+u:"")+" number: "+s);a.c=a.e=a.s=null}}}(),P.absoluteValue=P.abs=function(){var e=new t(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,r){return c(this,new t(e,r))},P.decimalPlaces=P.dp=function(e,r){var n,i,o,s=this;if(null!=e)return u(e,0,E),null==r?r=L: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/b))*b,o=n[o])for(;o%10==0;o/=10,i--);return i<0&&(i=0),i},P.dividedBy=P.div=function(e,r){return I(this,new t(e,r),A,L)},P.dividedToIntegerBy=P.idiv=function(e,r){return I(this,new t(e,r),0,1)},P.exponentiatedBy=P.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(w+"Exponent not an integer: "+_(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(+_(p),s?2-l(e):+_(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);T&&(a=g(T/b+2))}for(s?(n=new t(.5),c&&(e.s=1),u=l(e)):(o=Math.abs(+_(e)),u=o%2),f=new t(S);;){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=m(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=+_(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=S.div(f)),r?f.mod(r):a?h(f,T,L,void 0):f)},P.integerValue=function(e){var r=new t(this);return null==e?e=L:u(e,0,8),h(r,r.e+1,e)},P.isEqualTo=P.eq=function(e,r){return 0===c(this,new t(e,r))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,r){return c(this,new t(e,r))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,r){return 1===(r=c(this,new t(e,r)))||0===r},P.isInteger=function(){return!!this.c&&a(this.e/b)>this.c.length-2},P.isLessThan=P.lt=function(e,r){return c(this,new t(e,r))<0},P.isLessThanOrEqualTo=P.lte=function(e,r){return-1===(r=c(this,new t(e,r)))||0===r},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.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/b,p=e.e/b,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==L?-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=N-1;o>l;){if(h[--o]<d[o]){for(n=o;n&&!h[--n];h[n]=r);--h[n],h[o]+=N}h[o]-=d[o]}for(;0==h[0];h.splice(0,1),--p);return h[0]?i(e,h,p):(e.s=3==L?-1:1,e.c=[e.e=0],e)},P.modulo=P.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==B?(i=e.s,e.s=1,n=I(o,e,0,3),e.s=i,n.s*=i):n=I(o,e,0,B),e=o.minus(n.times(e)),e.c[0]||1!=B||(e.s=o.s),e)},P.multipliedBy=P.times=function(e,r){var n,o,s,c,u,l,f,p,h,d,g,m,w,v,y,O=this,E=O.c,_=(e=new t(e,r)).c;if(!(E&&_&&E[0]&&_[0]))return!O.s||!e.s||E&&!E[0]&&!_||_&&!_[0]&&!E?e.c=e.e=e.s=null:(e.s*=O.s,E&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(o=a(O.e/b)+a(e.e/b),e.s*=O.s,f=E.length,d=_.length,f<d&&(w=E,E=_,_=w,s=f,f=d,d=s),s=f+d,w=[];s--;w.push(0));for(v=N,y=k,s=d;--s>=0;){for(n=0,g=_[s]%y,m=_[s]/y|0,u=f,c=s+u;c>s;)p=E[--u]%y,h=E[u]/y|0,l=m*p+h*g,p=g*p+l%y*y+w[c]+n,n=(p/v|0)+(l/y|0)+m*h,w[c--]=p%v;w[c]=n}return n?++o:w.splice(0,1),i(e,w,o)},P.negated=function(){var e=new t(this);return e.s=-e.s||null,e},P.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/b,u=e.e/b,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)/N|0,l[r]=N===l[r]?0:l[r]%N;return s&&(l=[s].concat(l),++u),i(e,l,u)},P.precision=P.sd=function(e,r){var n,i,o,a=this;if(null!=e&&e!==!!e)return u(e,1,E),null==r?r=L:u(r,0,8),h(new t(a),e,r);if(!(n=a.c))return null;if(o=n.length-1,i=o*b+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},P.shiftedBy=function(e){return u(e,-y,y),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,r,n,i,o,c=this,u=c.c,l=c.s,f=c.e,p=A+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(+_(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(I(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+A+2,1),e=!n.times(n).eq(c));break}if(!i&&(h(o,o.e+A+2,0),o.times(o).eq(c))){n=o;break}p+=4,l+=4,i=1}return h(n,n.e+A+1,L,e)},P.toExponential=function(e,t){return null!=e&&(u(e,0,E),e++),r(this,e,t,1)},P.toFixed=function(e,t){return null!=e&&(u(e,0,E),e=e+this.e+1),r(this,e,t)},P.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=F;else if("object"!=typeof r)throw Error(w+"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||"")},P.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(S)))throw Error(w+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+_(u));if(!m)return new t(g);for(r=new t(S),f=n=new t(S),i=l=new t(S),d=s(m),a=r.e=d.length-g.e-1,r.c[0]=O[(c=a%b)<0?b+c:c],e=!e||u.comparedTo(r)>0?a>0?r:f:u,c=M,M=1/0,u=new t(d),l.c[0]=0;p=I(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=I(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=I(f,i,a,L).minus(g).abs().comparedTo(I(l,n,a,L).minus(g).abs())<1?[f,i]:[l,n],M=c,h},P.toNumber=function(){return+_(this)},P.toPrecision=function(e,t){return null!=e&&u(e,1,E),r(this,e,t,2)},P.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=s(r.c),null==e?t=i<=$||i>=C?f(t,i):p(t,i,"0"):(u(e,2,z.length,"Base"),t=R(p(t,i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},P.valueOf=P.toJSON=function(){return _(this)},P._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(P[Symbol.toStringTag]="BigNumber",P[Symbol.for("nodejs.util.inspect.custom")]=P.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=b-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!==(e<0?g(e):m(e)))throw Error(w+(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/b)==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=Math.ceil,m=Math.floor,w="[BigNumber Error] ",v=w+"Number primitive has more than 15 significant digits: ",N=1e14,b=14,y=9007199254740991,O=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],k=1e7,E=1e9;h=o(),h.default=h.BigNumber=h,void 0!==(n=function(){return h}.call(t,r,t,e))&&(e.exports=n)}()},255: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}},[251]);
\ No newline at end of file
... ...
webpackJsonp([6],{136:function(t,e,a){"use strict";var o=a(9),s=a.n(o),i=a(25),n=a.n(i),l=a(4),r=a(8),d=a(44),c=a(105),m=a(134);e.a={name:"resourceEditNew",components:{Divide:m.a,bannerEditor:d.a,SmartFloor:c.a},data:function(){return{title:"",list:[],floorList:[],modalInfo:{modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""},singleData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",url:{action:"go.h5",url:""}}},type:3,template_intro:"一张图",template_name:"singleImage",resContentId:0},twoData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",url:{action:"go.h5",url:""}},1:{alt:"",bgColor:"",imgId:"0",src:"",url:{action:"go.h5",url:""}}},type:4,template_intro:"两张图",template_name:"twoPicture",resContentId:0},resId:null,bg:"",show:!1,modalData:[],uploadData:{id:l.a.getQueryString("id"),items:[]}}},mounted:function(){this.resId=l.a.getQueryString("id"),this.title=l.a.getQueryString("name"),this.resourceService=new r.a,this.getResourceDetailList()},methods:{getResourceDetailList:function(){var t=this;this.resourceService.info(this.resId).then(function(e){console.log(e),t.list=e,t.manageAllData(e),t.manageFloorList(e)})},manageAllData:function(t){this.uploadData.items=[];for(var e=0;e<t.length;e++){var a={id:t[e].resContentId,contentName:t[e].name,templateKey:"123",contentData:t[e].data,type:t[e].type};this.uploadData.items.push(a)}},manageFloorList:function(t){this.floorList=[];for(var e=0;e<t.length;e++){var a=JSON.parse(t[e].data);a.resContentId=t[e].resContentId,a.type=t[e].type,this.floorList.push(a),console.log("floorList:",this.floorList)}},showModal:function(t,e,a){console.log(e,a);var o=0,s="";for(var i in e.data){var n=e.data[i];this.modalData.push(n)}switch(console.log("modalData:",this.modalData),t){case"singleImage":o=3,s="一张图";break;case"twoPicture":o=4,s="两张图"}o&&(this.modalInfo.modalType=o,this.modalInfo.modalTitle=s,this.modalInfo.resContentId=e.resContentId,this.modalInfo.template_intro=e.template_intro,this.modalInfo.template_name=e.template_name,this.modalInfo.floorIndex=a,this.show=!0),console.log("ModalInfo:",this.modalInfo)},showDeleteModal:function(t){var e=this;this.$Modal.confirm({title:"删除确认!",content:'<p style="color: red">是否确认删除该楼层?</p>',width:300,onOk:function(){e.uploadData.items.splice(t,1),e.resourceService.addOrUpdateResourceDetail(e.uploadData).then(function(t){t&&200===t.code?(e.$Message.success(t.message||"修改成功!"),e.getResourceDetailList(),e.modalData=[],e.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""}):(console.log(t),e.$Message.error(t.message||"修改失败!"))})}})},onOk:function(){var t=this,e=this.$refs.addEditor.getValue();for(var a in e)if(""===e[a].url.url)return this.modalData=[],void this.$Message.error("请填写所有信息后再提交!");var o={id:this.modalInfo.resContentId,contentName:"楼层"+(this.floorList.length+1),templateKey:"123",contentData:n()({template_name:this.modalInfo.template_name,template_intro:this.modalInfo.template_intro,data:e}),type:this.modalInfo.modalType};-1===this.modalInfo.floorIndex?this.uploadData.items.push(o):(o=s()(o,{contentName:this.uploadData.items[this.modalInfo.floorIndex].contentName}),this.uploadData.items[this.modalInfo.floorIndex]=o),console.log("uploadData:",this.uploadData),this.resourceService.addOrUpdateResourceDetail(this.uploadData).then(function(e){console.log(e),e&&200===e.code?(t.$Message.success(e.message||"修改成功!"),t.getResourceDetailList(),t.modalData=[],t.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""},t.show=!1):(console.log(e),t.$Message.error(e.message||"修改失败!"))})},onCancel:function(){this.modalData=[],this.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""},this.show=!1}}}},348:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(349),s=a(15);Object(s.a)(o.a)},349:function(t,e,a){"use strict";function o(t){n||a(350)}var s=a(136),i=a(351),n=!1,l=a(0),r=o,d=l(s.a,i.a,!1,r,null,null);d.options.__file="src/views/resource-edit-new/index.vue",e.a=d.exports},350:function(t,e){},351:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("LayoutContent",{attrs:{breads:[{url:"resource-list.html",title:"资源位列表"},{title:"资源位编辑"}]}},[o("div",{staticClass:"main"},[o("div",{staticClass:"editor-container"},[o("Card",[o("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.title))]),t._v(" "),t._l(t.floorList,function(e,s){return[o("div",{staticClass:"floor-item"},["singleImage"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"100%"},attrs:{src:e.data[0].src.split("?")[0]||a(33)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){t.showModal("singleImage",e,s)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){t.showDeleteModal(s)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"twoPicture"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"50%",height:"120px"},attrs:{src:e.data[0].src.split("?")[0]||a(33)}}),t._v(" "),o("img",{staticStyle:{width:"50%",height:"120px"},attrs:{src:e.data[1].src.split("?")[0]||a(33)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){t.showModal("twoPicture",e,s)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){t.showDeleteModal(s)}}},[t._v("删 除")])])])]):t._e()]),t._v(" "),o("divide")]})],2)],1),t._v(" "),o("div",{staticClass:"button-container"},[o("Button",{attrs:{type:"primary"},on:{click:function(e){t.showModal("singleImage",t.singleData,-1)}}},[t._v("一张图")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){t.showModal("twoPicture",t.twoData,-1)}}},[t._v("两张图")])],1),t._v(" "),o("Modal",{attrs:{title:t.modalInfo.modalTitle,width:"650"},on:{"on-ok":t.onOk,"on-cancel":t.onCancel},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("banner-editor",{ref:"addEditor",attrs:{hideAddButton:!0,hideDeleteButton:!0},model:{value:t.modalData,callback:function(e){t.modalData=e},expression:"modalData"}})],1)],1)])},s=[];o._withStripped=!0;var i={render:o,staticRenderFns:s};e.a=i}},[348]);
\ No newline at end of file
webpackJsonp([7],{137:function(t,e,a){"use strict";var o=a(9),s=a.n(o),i=a(27),n=a.n(i),l=a(4),r=a(8),d=a(47),c=a(106),m=a(135);e.a={name:"resourceEditNew",components:{Divide:m.a,bannerEditor:d.a,SmartFloor:c.a},data:function(){return{title:"",list:[],floorList:[],modalInfo:{modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""},singleData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",url:{action:"go.h5",url:""}}},type:3,template_intro:"一张图",template_name:"singleImage",resContentId:0},twoData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",url:{action:"go.h5",url:""}},1:{alt:"",bgColor:"",imgId:"0",src:"",url:{action:"go.h5",url:""}}},type:4,template_intro:"两张图",template_name:"twoPicture",resContentId:0},resId:null,bg:"",show:!1,modalData:[],uploadData:{id:l.a.getQueryString("id"),items:[]}}},mounted:function(){this.resId=l.a.getQueryString("id"),this.title=l.a.getQueryString("name"),this.resourceService=new r.a,this.getResourceDetailList()},methods:{getResourceDetailList:function(){var t=this;this.resourceService.info(this.resId).then(function(e){console.log(e),t.list=e,t.manageAllData(e),t.manageFloorList(e)})},manageAllData:function(t){this.uploadData.items=[];for(var e=0;e<t.length;e++){var a={id:t[e].resContentId,contentName:t[e].name,templateKey:"123",contentData:t[e].data,type:t[e].type};this.uploadData.items.push(a)}},manageFloorList:function(t){this.floorList=[];for(var e=0;e<t.length;e++){var a=JSON.parse(t[e].data);a.resContentId=t[e].resContentId,a.type=t[e].type,this.floorList.push(a),console.log("floorList:",this.floorList)}},showModal:function(t,e,a){console.log(e,a);var o=0,s="";for(var i in e.data){var n=e.data[i];this.modalData.push(n)}switch(console.log("modalData:",this.modalData),t){case"singleImage":o=3,s="一张图";break;case"twoPicture":o=4,s="两张图"}o&&(this.modalInfo.modalType=o,this.modalInfo.modalTitle=s,this.modalInfo.resContentId=e.resContentId,this.modalInfo.template_intro=e.template_intro,this.modalInfo.template_name=e.template_name,this.modalInfo.floorIndex=a,this.show=!0),console.log("ModalInfo:",this.modalInfo)},showDeleteModal:function(t){var e=this;this.$Modal.confirm({title:"删除确认!",content:'<p style="color: red">是否确认删除该楼层?</p>',width:300,onOk:function(){e.uploadData.items.splice(t,1),e.resourceService.addOrUpdateResourceDetail(e.uploadData).then(function(t){t&&200===t.code?(e.$Message.success(t.message||"修改成功!"),e.getResourceDetailList(),e.modalData=[],e.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""}):(console.log(t),e.$Message.error(t.message||"修改失败!"))})}})},onOk:function(){var t=this,e=this.$refs.addEditor.getValue();for(var a in e)if(""===e[a].url.url)return this.modalData=[],void this.$Message.error("请填写所有信息后再提交!");var o={id:this.modalInfo.resContentId,contentName:"楼层"+(this.floorList.length+1),templateKey:"123",contentData:n()({template_name:this.modalInfo.template_name,template_intro:this.modalInfo.template_intro,data:e}),type:this.modalInfo.modalType};-1===this.modalInfo.floorIndex?this.uploadData.items.push(o):(o=s()(o,{contentName:this.uploadData.items[this.modalInfo.floorIndex].contentName}),this.uploadData.items[this.modalInfo.floorIndex]=o),console.log("uploadData:",this.uploadData),this.resourceService.addOrUpdateResourceDetail(this.uploadData).then(function(e){console.log(e),e&&200===e.code?(t.$Message.success(e.message||"修改成功!"),t.getResourceDetailList(),t.modalData=[],t.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""},t.show=!1):(console.log(e),t.$Message.error(e.message||"修改失败!"))})},onCancel:function(){this.modalData=[],this.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:""},this.show=!1}}}},352:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(353),s=a(13);Object(s.a)(o.a)},353:function(t,e,a){"use strict";function o(t){n||a(354)}var s=a(137),i=a(355),n=!1,l=a(0),r=o,d=l(s.a,i.a,!1,r,null,null);d.options.__file="src/views/resource-edit-new/index.vue",e.a=d.exports},354:function(t,e){},355:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("LayoutContent",{attrs:{breads:[{url:"resource-list.html",title:"资源位列表"},{title:"资源位编辑"}]}},[o("div",{staticClass:"main"},[o("div",{staticClass:"editor-container"},[o("Card",[o("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.title))]),t._v(" "),t._l(t.floorList,function(e,s){return[o("div",{staticClass:"floor-item"},["singleImage"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"100%"},attrs:{src:e.data[0].src.split("?")[0]||a(34)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){t.showModal("singleImage",e,s)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){t.showDeleteModal(s)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"twoPicture"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"50%",height:"120px"},attrs:{src:e.data[0].src.split("?")[0]||a(34)}}),t._v(" "),o("img",{staticStyle:{width:"50%",height:"120px"},attrs:{src:e.data[1].src.split("?")[0]||a(34)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){t.showModal("twoPicture",e,s)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){t.showDeleteModal(s)}}},[t._v("删 除")])])])]):t._e()]),t._v(" "),o("divide")]})],2)],1),t._v(" "),o("div",{staticClass:"button-container"},[o("Button",{attrs:{type:"primary"},on:{click:function(e){t.showModal("singleImage",t.singleData,-1)}}},[t._v("一张图")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){t.showModal("twoPicture",t.twoData,-1)}}},[t._v("两张图")])],1),t._v(" "),o("Modal",{attrs:{title:t.modalInfo.modalTitle,width:"650"},on:{"on-ok":t.onOk,"on-cancel":t.onCancel},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("banner-editor",{ref:"addEditor",attrs:{hideAddButton:!0,hideDeleteButton:!0},model:{value:t.modalData,callback:function(e){t.modalData=e},expression:"modalData"}})],1)],1)])},s=[];o._withStripped=!0;var i={render:o,staticRenderFns:s};e.a=i}},[352]);
\ No newline at end of file
... ...
webpackJsonp([1],{101:function(t,e,i){"use strict";var n=i(254);e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{},components:{"home-page":n.a}}},102:function(t,e,i){"use strict";var n=i(256),r=i(105),s=i(134),a=i(4),o=i(8),u={1:i(104),2:i(345)};e.a={data:function(){return{list:[],resId:null,bg:"",title:""}},mounted:function(){var t=this;this.resId=a.a.getQueryString("id")||1,this.title=a.a.getQueryString("name")||"资源位管理",this.resourceService=new o.a,this.init(),this.$bus.$on("updated",function(){console.log("updated"),t.init()}),this.bg=this.getBg()},methods:{init:function(){var t=this;this.resourceService.info(this.resId).then(function(e){console.log(e),t.list=e})},getBg:function(){return u[this.resId]}},components:{miniapp:n.a,smartfloor:r.a,divide:s.a}}},103:function(t,e,i){"use strict";e.a={name:"miniapp",props:{title:{type:String,default:function(){return""}},bg:{type:String,default:function(){return i(104)}}}}},104:function(t,e,i){t.exports=i.p+"img/apptitle.74e80a1.png"},251:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(252),r=i(15);Object(r.a)(n.a)},252:function(t,e,i){"use strict";function n(t){a||i(253)}var r=i(101),s=i(347),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,null,null);c.options.__file="src/views/resource-edit/index.vue",e.a=c.exports},253:function(t,e){},254:function(t,e,i){"use strict";function n(t){a||i(255)}var r=i(102),s=i(346),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,"data-v-724c5842",null);c.options.__file="src/views/resource-edit/home.vue",e.a=c.exports},255:function(t,e){},256:function(t,e,i){"use strict";function n(t){a||i(257)}var r=i(103),s=i(258),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,null,null);c.options.__file="src/components/miniapp.vue",e.a=c.exports},257:function(t,e){},258:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-frame"},[i("div",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),i("div",{staticClass:"app-title"},[i("img",{attrs:{src:t.bg,alt:"",srcset:"",width:"100%"}})]),t._v(" "),i("div",[t._t("default")],2)])},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s},345:function(t,e,i){t.exports=i.p+"img/sort_title.ba4687f.png"},346:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"index"},[t.resId<4?i("miniapp",{attrs:{title:t.title,bg:t.bg}},[[t._l(t.list,function(e){return[i("smartfloor",{key:e.resContentId,attrs:{item:e}}),t._v(" "),i("divide")]})]],2):t._e()],1)},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s},347:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LayoutContent",{attrs:{breads:[{url:"resource-list.html",title:"资源位列表"},{title:"资源位编辑"}]}},[i("home-page")],1)},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s}},[251]);
\ No newline at end of file
webpackJsonp([2],{102:function(t,e,i){"use strict";var n=i(259);e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{},components:{"home-page":n.a}}},103:function(t,e,i){"use strict";var n=i(261),r=i(106),s=i(135),a=i(4),o=i(8),u={1:i(105),2:i(349)};e.a={data:function(){return{list:[],resId:null,bg:"",title:""}},mounted:function(){var t=this;this.resId=a.a.getQueryString("id")||1,this.title=a.a.getQueryString("name")||"资源位管理",this.resourceService=new o.a,this.init(),this.$bus.$on("updated",function(){console.log("updated"),t.init()}),this.bg=this.getBg()},methods:{init:function(){var t=this;this.resourceService.info(this.resId).then(function(e){console.log(e),t.list=e})},getBg:function(){return u[this.resId]}},components:{miniapp:n.a,smartfloor:r.a,divide:s.a}}},104:function(t,e,i){"use strict";e.a={name:"miniapp",props:{title:{type:String,default:function(){return""}},bg:{type:String,default:function(){return i(105)}}}}},105:function(t,e,i){t.exports=i.p+"img/apptitle.74e80a1.png"},256:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(257),r=i(13);Object(r.a)(n.a)},257:function(t,e,i){"use strict";function n(t){a||i(258)}var r=i(102),s=i(351),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,null,null);c.options.__file="src/views/resource-edit/index.vue",e.a=c.exports},258:function(t,e){},259:function(t,e,i){"use strict";function n(t){a||i(260)}var r=i(103),s=i(350),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,"data-v-724c5842",null);c.options.__file="src/views/resource-edit/home.vue",e.a=c.exports},260:function(t,e){},261:function(t,e,i){"use strict";function n(t){a||i(262)}var r=i(104),s=i(263),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,null,null);c.options.__file="src/components/miniapp.vue",e.a=c.exports},262:function(t,e){},263:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-frame"},[i("div",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),i("div",{staticClass:"app-title"},[i("img",{attrs:{src:t.bg,alt:"",srcset:"",width:"100%"}})]),t._v(" "),i("div",[t._t("default")],2)])},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s},349:function(t,e,i){t.exports=i.p+"img/sort_title.ba4687f.png"},350:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"index"},[t.resId<4?i("miniapp",{attrs:{title:t.title,bg:t.bg}},[[t._l(t.list,function(e){return[i("smartfloor",{key:e.resContentId,attrs:{item:e}}),t._v(" "),i("divide")]})]],2):t._e()],1)},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s},351:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LayoutContent",{attrs:{breads:[{url:"resource-list.html",title:"资源位列表"},{title:"资源位编辑"}]}},[i("home-page")],1)},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s}},[256]);
\ No newline at end of file
... ...
webpackJsonp([5],{137:function(e,t,a){"use strict";var r=a(9),s=a.n(r),o=a(19),n=a.n(o),i=a(20),c=a.n(i),d=a(30),u=(a.n(d),a(8)),l=a(24),p=a.n(l),m=a(4);t.a={name:"resourcelist",data:function(){var e=this;return{data:[],columns:[{title:"ID",key:"id",width:100},{title:"资源名称",key:"name",width:200},{title:"平台",key:"platform",width:100},{title:"位置码",key:"code",width:300},{title:"创建时间",key:"createTime",width:200,render:function(e,t){var a=t.row;return e("div",{style:{color:"#999"}},p.a.unix(a.createTime).format("YYYY-MM-DD HH:mm:ss"))}},{title:"操作",width:270,align:"center",render:function(t,a){var r=a.row;return t("div",{},[t("i-button",{props:{type:"success",size:"small"},on:{click:function(){return e.onToEditor(r)}}},"内容编辑"),t("i-button",{props:{type:"primary",size:"small"},style:{marginLeft:"20px",display:r.showEditButton},on:{click:function(){return e.onEditResource(r)}}},"修改信息")])}}],showAddPan:!1,platform:"1",resourceName:"",editResourceId:0}},created:function(){this.resourceService=new u.a,this.fetchData()},methods:{onToEditor:function(e){var t=e.id,a=e.name,r=e.sortId;2===r?m.a.jumpUrl("resource-edit.html?id="+t+"&name="+a):3===r&&m.a.jumpUrl("resource-edit-new.html?id="+t+"&name="+a)},fetchData:function(){var e=this;return c()(n.a.mark(function t(){var a,r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.$Loading.start(),t.next=3,e.resourceService.list();case 3:if(a=t.sent,200===a.code){for(r=0;r<a.data.length;r++)a.data[r].showEditButton="inline-block",2===a.data[r].sortId&&(a.data[r].showEditButton="none");e.data=a.data,e.$Loading.finish()}else a.message&&e.$Message.warning(a.message),e.$Loading.error();case 5:case"end":return t.stop()}},t,e)}))()},showAddResourcePannel:function(e){this.showAddPan=e},saveResource:function(){var e=this;if(this.resourceName){var t={name:this.resourceName,platformId:this.platform,sortId:3};this.editResourceId&&s()(t,{},{id:this.editResourceId}),this.resourceService.addOrUpdateResource(t).then(function(t){t&&200===t.code?(e.showAddPan=!1,e.$Message.success("保存成功!"),e.fetchData(),e.platform="1",e.editResourceId=0,e.resourceName=""):e.$Message.error(t.message)})}},onEditResource:function(e){console.log(e),this.platform=["0","APP","小程序"].indexOf(e.platform).toString(),this.resourceName=e.name,this.editResourceId=e.id,this.showAddResourcePannel(!0)}}}},352:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(353),s=a(15);Object(s.a)(r.a)},353:function(e,t,a){"use strict";function r(e){n||a(354)}var s=a(137),o=a(355),n=!1,i=a(0),c=r,d=i(s.a,o.a,!1,c,null,null);d.options.__file="src/views/resource-list/index.vue",t.a=d.exports},354:function(e,t){},355:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("LayoutContent",{attrs:{breads:[{title:"资源位列表"}]}},[a("div",[a("Button",{attrs:{type:"primary"},on:{click:function(t){e.showAddResourcePannel(!0)}}},[e._v("添加资源位")])],1),e._v(" "),a("LayoutTable",{attrs:{columns:e.columns,data:e.data}}),e._v(" "),e.showAddPan?a("div",{staticClass:"resource-add-container"},[a("Card",{staticClass:"resource-add-card"},[a("p",{attrs:{slot:"title"},slot:"title"},[e._v("添加资源位")]),e._v(" "),a("a",{attrs:{slot:"extra",href:"javascript:void(0)"},on:{click:function(t){e.showAddResourcePannel(!1)}},slot:"extra"},[a("Icon",{attrs:{type:"ios-close",size:"24"}})],1),e._v(" "),a("div",{staticClass:"resource-add-content"},[a("Row",[a("Col",{attrs:{span:"8"}},[a("label",[e._v("选择平台:")])]),e._v(" "),a("Col",{attrs:{span:"16"}},[a("Select",{staticClass:"platform-select",model:{value:e.platform,callback:function(t){e.platform=t},expression:"platform"}},[a("Option",{attrs:{value:"1"}},[e._v("App")]),e._v(" "),a("Option",{attrs:{value:"2"}},[e._v("小程序")])],1)],1)],1),e._v(" "),a("Row",[a("Col",{attrs:{span:"8"}},[a("label",[e._v("资源名称:")])]),e._v(" "),a("Col",{attrs:{span:"16"}},[a("Input",{staticClass:"name-input",attrs:{placeholder:"请输入资源名称"},model:{value:e.resourceName,callback:function(t){e.resourceName=t},expression:"resourceName"}})],1)],1),e._v(" "),a("Row",[a("Col",{attrs:{span:"24"}},[a("Button",{attrs:{type:"primary"},on:{click:e.saveResource}},[e._v("保 存")])],1)],1)],1)])],1):e._e()],1)},s=[];r._withStripped=!0;var o={render:r,staticRenderFns:s};t.a=o}},[352]);
\ No newline at end of file
webpackJsonp([6],{138:function(e,t,a){"use strict";var r=a(9),s=a.n(r),o=a(21),n=a.n(o),i=a(22),c=a.n(i),d=a(24),u=(a.n(d),a(8)),l=a(17),p=a.n(l),m=a(4);t.a={name:"resourcelist",data:function(){var e=this;return{data:[],columns:[{title:"ID",key:"id",width:100},{title:"资源名称",key:"name",width:200},{title:"平台",key:"platform",width:100},{title:"位置码",key:"code",width:300},{title:"创建时间",key:"createTime",width:200,render:function(e,t){var a=t.row;return e("div",{style:{color:"#999"}},p.a.unix(a.createTime).format("YYYY-MM-DD HH:mm:ss"))}},{title:"操作",width:270,align:"center",render:function(t,a){var r=a.row;return t("div",{},[t("i-button",{props:{type:"success",size:"small"},on:{click:function(){return e.onToEditor(r)}}},"内容编辑"),t("i-button",{props:{type:"primary",size:"small"},style:{marginLeft:"20px",display:r.showEditButton},on:{click:function(){return e.onEditResource(r)}}},"修改信息")])}}],showAddPan:!1,platform:"1",resourceName:"",editResourceId:0}},created:function(){this.resourceService=new u.a,this.fetchData()},methods:{onToEditor:function(e){var t=e.id,a=e.name,r=e.sortId;2===r?m.a.jumpUrl("resource-edit.html?id="+t+"&name="+a):3===r&&m.a.jumpUrl("resource-edit-new.html?id="+t+"&name="+a)},fetchData:function(){var e=this;return c()(n.a.mark(function t(){var a,r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.$Loading.start(),t.next=3,e.resourceService.list();case 3:if(a=t.sent,200===a.code){for(r=0;r<a.data.length;r++)a.data[r].showEditButton="inline-block",2===a.data[r].sortId&&(a.data[r].showEditButton="none");e.data=a.data,e.$Loading.finish()}else a.message&&e.$Message.warning(a.message),e.$Loading.error();case 5:case"end":return t.stop()}},t,e)}))()},showAddResourcePannel:function(e){this.showAddPan=e},saveResource:function(){var e=this;if(this.resourceName){var t={name:this.resourceName,platformId:this.platform,sortId:3};this.editResourceId&&s()(t,{},{id:this.editResourceId}),this.resourceService.addOrUpdateResource(t).then(function(t){t&&200===t.code?(e.showAddPan=!1,e.$Message.success("保存成功!"),e.fetchData(),e.platform="1",e.editResourceId=0,e.resourceName=""):e.$Message.error(t.message)})}},onEditResource:function(e){console.log(e),this.platform=["0","APP","小程序"].indexOf(e.platform).toString(),this.resourceName=e.name,this.editResourceId=e.id,this.showAddResourcePannel(!0)}}}},356:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(357),s=a(13);Object(s.a)(r.a)},357:function(e,t,a){"use strict";function r(e){n||a(358)}var s=a(138),o=a(359),n=!1,i=a(0),c=r,d=i(s.a,o.a,!1,c,null,null);d.options.__file="src/views/resource-list/index.vue",t.a=d.exports},358:function(e,t){},359:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("LayoutContent",{attrs:{breads:[{title:"资源位列表"}]}},[a("div",[a("Button",{attrs:{type:"primary"},on:{click:function(t){e.showAddResourcePannel(!0)}}},[e._v("添加资源位")])],1),e._v(" "),a("LayoutTable",{attrs:{columns:e.columns,data:e.data}}),e._v(" "),e.showAddPan?a("div",{staticClass:"resource-add-container"},[a("Card",{staticClass:"resource-add-card"},[a("p",{attrs:{slot:"title"},slot:"title"},[e._v("添加资源位")]),e._v(" "),a("a",{attrs:{slot:"extra",href:"javascript:void(0)"},on:{click:function(t){e.showAddResourcePannel(!1)}},slot:"extra"},[a("Icon",{attrs:{type:"ios-close",size:"24"}})],1),e._v(" "),a("div",{staticClass:"resource-add-content"},[a("Row",[a("Col",{attrs:{span:"8"}},[a("label",[e._v("选择平台:")])]),e._v(" "),a("Col",{attrs:{span:"16"}},[a("Select",{staticClass:"platform-select",model:{value:e.platform,callback:function(t){e.platform=t},expression:"platform"}},[a("Option",{attrs:{value:"1"}},[e._v("App")]),e._v(" "),a("Option",{attrs:{value:"2"}},[e._v("小程序")])],1)],1)],1),e._v(" "),a("Row",[a("Col",{attrs:{span:"8"}},[a("label",[e._v("资源名称:")])]),e._v(" "),a("Col",{attrs:{span:"16"}},[a("Input",{staticClass:"name-input",attrs:{placeholder:"请输入资源名称"},model:{value:e.resourceName,callback:function(t){e.resourceName=t},expression:"resourceName"}})],1)],1),e._v(" "),a("Row",[a("Col",{attrs:{span:"24"}},[a("Button",{attrs:{type:"primary"},on:{click:e.saveResource}},[e._v("保 存")])],1)],1)],1)])],1):e._e()],1)},s=[];r._withStripped=!0;var o={render:r,staticRenderFns:s};t.a=o}},[356]);
\ No newline at end of file
... ...
webpackJsonp([5],{139:function(t,e,n){"use strict";var a=n(16),o=n(17),s=(n.n(o),n(46),n(26)),i=n.n(s),l=new a.a;e.a={components:{},name:"SendCouponPage",data:function(){return{parentUrl:"",couponId:0,couponToken:"",uidValue:"",fileName:"",showModal:!1,message:"",uploadMessage:"",isSending:!1}},created:function(){var t=this;this.$nextTick(function(){var e=i.a.parse(location.search?location.search.slice(1):"");t.parentUrl="coupon.html?"+i.a.stringify(e.param),t.couponId=e.id,t.couponToken=e.token})},methods:{manualSend:function(){var t=this;if(this.uidValue&&!this.isSending){var e=this.uidValue.replace(/,/g,",").split(",");e.length>50&&(e.length=50),e.length>0&&(this.isSending=!0,l._get("/ufoPlatform/coupon/couponSend",{couponToken:this.couponToken,uids:e.join(",")}).then(function(e){t.showModal=!0,t.message=e.message,t.isSending=!1,t.$Modal.info({title:"提示code:"+e.code,content:e.message,onOK:t.ok})}).catch(function(){t.isSending=!1,t.$Modal.info({title:"提示",content:"发送失败",onOK:t.ok})}))}},fileChange:function(){var t=document.getElementById("upload");t.files.length>0&&(this.fileName=t.files[0].name)},importSend:function(){var t=this;if(this.fileName&&!this.isSending){var e=new FormData,n=document.getElementById("upload").files[0],a={headers:{"Content-Type":"multipart/form-data"}};e.append("file",n),e.append("couponToken",this.couponToken),this.isSending=!0,this.uploadMessage="文件上传中...",l._postForm("/ufoPlatform/coupon/couponSendByImport",e,!1,a).then(function(e){t.isSending=!1,t.uploadMessage="",t.$Modal.info({title:"提示code:"+e.code,content:e.message,onOK:t.ok})}).catch(function(){t.isSending=!1,t.uploadMessage="",t.$Modal.info({title:"提示",content:"上传失败",onOK:t.ok})})}},ok:function(){this.showModal=!1}}}},360:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(361),o=n(13);Object(o.a)(a.a)},361:function(t,e,n){"use strict";function a(t){i||n(362)}var o=n(139),s=n(363),i=!1,l=n(0),r=a,c=l(o.a,s.a,!1,r,null,null);c.options.__file="src/views/send-coupon/index.vue",e.a=c.exports},362:function(t,e){},363:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("LayoutContent",{attrs:{breads:[{url:t.parentUrl,title:"优惠券列表"},{title:"优惠券发放"}]}},[n("Form",[n("Card",{staticClass:"manual-send-wrapper"},[n("p",{attrs:{slot:"title"},slot:"title"},[t._v("手动发放")]),t._v(" "),n("div",[n("Row",{staticClass:"manual-send-container"},[n("Col",{staticClass:"title",attrs:{span:"4"}},[t._v("\n UID"),n("span",{staticClass:"red"},[t._v("*")])]),t._v(" "),n("Col",{staticClass:"content",attrs:{span:"14"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.uidValue,expression:"uidValue"}],attrs:{rows:"5",id:"txt_uids",placeholder:"请输入UID,多个UID用英文逗号分隔,单次限制输入50个UID"},domProps:{value:t.uidValue},on:{input:function(e){e.target.composing||(t.uidValue=e.target.value)}}})]),t._v(" "),n("Col",{staticClass:"button",attrs:{span:"5"}},[n("Button",{attrs:{type:"success"},on:{click:t.manualSend}},[t._v("发送")])],1)],1)],1)]),t._v(" "),n("Card",{staticClass:"import-send-wrapper"},[n("p",{attrs:{slot:"title"},slot:"title"},[t._v("批量发放")]),t._v(" "),n("div",[n("Row",{staticClass:"import-send-container"},[n("Col",{attrs:{span:"3"}},[t._v(" ")]),t._v(" "),n("Col",{attrs:{span:"4"}},[n("div",{staticClass:"button-upload"},[t._v("\n 上传文件\n "),n("form",{attrs:{id:"formUpload"}},[n("input",{attrs:{type:"file",id:"upload",accept:".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},on:{change:t.fileChange}})])]),t._v(" "),n("span",{staticClass:"file-name"},[t._v(t._s(t.fileName))])]),t._v(" "),n("Col",{attrs:{span:"2"}},[t._v(" ")]),t._v(" "),n("Col",{attrs:{span:"8"}},[t._v(" ")])],1),t._v(" "),n("Row",{staticStyle:{"margin-top":"20px"}},[n("Col",{attrs:{span:"3"}},[t._v(" ")]),t._v(" "),n("Col",{attrs:{span:"4"}},[n("a",{staticClass:"btn-download",attrs:{href:"..\\..\\common\\uidImport.xlsx",target:"_blank"}},[t._v("下载样例")]),t._v(" "),n("p",[t._v("1.表头:UID")]),t._v(" "),n("p",[t._v("2.同一张券可以给同一个用户发多张?")])]),t._v(" "),n("Col",{attrs:{span:"2"}},[t._v(" ")]),t._v(" "),n("Col",{attrs:{span:"8"}},[n("a",{staticStyle:{color:"red"},attrs:{href:"javascript:void(0)"}},[t._v("校验场景")]),t._v(" "),n("p",[t._v("1.优惠券数量")]),t._v(" "),n("p",[t._v("2.优惠券状态是否为未生效,或生效中")])])],1),t._v(" "),n("Row",[n("p",{staticStyle:{color:"red","text-align":"center","margin-top":"30px","font-size":"30px"}},[t._v(t._s(t.uploadMessage))])])],1)]),t._v(" "),n("div",{staticClass:"bottom"},[n("Button",{attrs:{type:"success",id:"btn_import_send"},on:{click:t.importSend}},[t._v("批量发送")])],1)],1)],1)},o=[];a._withStripped=!0;var s={render:a,staticRenderFns:o};e.a=s}},[360]);
\ No newline at end of file
... ...
webpackJsonp([4],{138:function(t,e,a){"use strict";var o=a(19),r=a.n(o),n=a(9),s=a.n(n),i=a(20),u=a.n(i),l=a(23),c=a(24),p=a.n(c),d=a(63),f=a(32),m=a.n(f),g=new l.a;e.a={name:"SendRecordPage",data:function(){this.$createElement;return{filter:{couponId:0,couponCode:"",uid:"",status:""},parentUrl:"",page:1,total:0,data:[],columns:[{title:"单券号",key:"couponCode"},{title:"用户ID",key:"uid"},{title:"发放时间",render:function(t,e){return t("span",[e.row.createTime])}},{title:"使用状态",key:"status"},{title:"使用时间",render:function(t,e){return t("span",[e.row.useTime||"--"])}}]}},created:function(){var t=this;this.$nextTick(function(){var e=m.a.parse(location.search?location.search.slice(1):"");t.filter.couponId=e.id,t.filter.couponCode=e.couponCode||t.filter.couponCode,t.filter.uid=e.uid||t.filter.uid,t.filter.status=e.status?parseInt(e.status):t.filter.status,t.parentUrl="coupon.html?"+m.a.stringify(e.param),t.page=e.page?parseInt(e.page):1,t.fetchData(t.filter,t.page)})},methods:{onFilter:function(){this.fetchData(this.filter)},onClear:function(){this.$refs.filterForm.resetFields(),this.fetchData(this.filter)},onPageChange:function(t){this.fetchData(this.filter,t)},fetchData:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u()(r.a.mark(function o(){var n;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return e.page=a,e.$Loading.start(),o.next=4,g._get("/ufoPlatform/coupon/queryUserCoupons",s()({page:a},e.getParams(t)));case 4:n=o.sent,200===n.code?(e.total=n.data.total,e.data=n.data.userCoupons,e.$Loading.finish()):(n.message&&e.$Message.warning(n.message),e.$Loading.error());case 6:case"end":return o.stop()}},o,e)}))()},onExport:function(){var t=this;return u()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$Loading.start(),e.next=3,g._get("/ufoPlatform/coupon/export",{param:{method:"userCoupon",param:g._2params(t.getParams(t.filter))}},{responseType:"blob"});case 3:a=e.sent,a instanceof Blob?(d.a.downloadBlob(a,"优惠券发放记录导出_"+p()().format("YYYY-MM-DD")+".xlsx"),t.$Loading.finish()):a&&(a.message&&t.$Message.warning(a.message),t.$Loading.error());case 5:case"end":return e.stop()}},e,t)}))()},getParams:function(t){return{couponId:t.couponId,couponCode:t.couponCode,uid:t.uid,status:parseInt(t.status)>=0?t.status:void 0}}}}},356:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(357),r=a(15);Object(r.a)(o.a)},357:function(t,e,a){"use strict";function o(t){s||a(358)}var r=a(138),n=a(359),s=!1,i=a(0),u=o,l=i(r.a,n.a,!1,u,null,null);l.options.__file="src/views/send-record/index.vue",e.a=l.exports},358:function(t,e){},359:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("LayoutContent",{attrs:{breads:[{url:t.parentUrl,title:"优惠券列表"},{title:"发放记录"}]}},[a("LayoutFilter",{on:{"on-filter":t.onFilter,"on-clear":t.onClear}},[a("Form",{ref:"filterForm",attrs:{inline:"",model:t.filter}},[a("FormItem",{attrs:{prop:"couponCode"}},[a("Input",{attrs:{placeholder:"输入ID"},model:{value:t.filter.couponCode,callback:function(e){t.$set(t.filter,"couponCode",e)},expression:"filter.couponCode"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"uid"}},[a("Input",{attrs:{placeholder:"输入uid"},model:{value:t.filter.uid,callback:function(e){t.$set(t.filter,"uid",e)},expression:"filter.uid"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"status"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择状态"},model:{value:t.filter.status,callback:function(e){t.$set(t.filter,"status",e)},expression:"filter.status"}},[a("Option",{attrs:{value:0}},[t._v("未使用")]),t._v(" "),a("Option",{attrs:{value:1}},[t._v("已使用")])],1)],1)],1)],1),t._v(" "),a("LayoutTable",{attrs:{page:t.page,total:t.total,columns:t.columns,data:t.data},on:{"on-page-change":t.onPageChange}},[a("template",{staticClass:"btns",slot:"footer"},[a("Button",{attrs:{type:"primary",icon:"ios-cloud-download"},on:{click:t.onExport}},[t._v("导出")])],1)],2)],1)},r=[];o._withStripped=!0;var n={render:o,staticRenderFns:r};e.a=n}},[356]);
\ No newline at end of file
webpackJsonp([4],{140:function(t,e,a){"use strict";var o=a(21),r=a.n(o),n=a(9),s=a.n(n),i=a(22),u=a.n(i),l=a(16),c=a(17),p=a.n(c),d=a(46),f=a(26),m=a.n(f),g=new l.a;e.a={name:"SendRecordPage",data:function(){this.$createElement;return{filter:{couponId:0,couponCode:"",uid:"",status:""},parentUrl:"",page:1,total:0,data:[],columns:[{title:"单券号",key:"couponCode"},{title:"用户ID",key:"uid"},{title:"发放时间",render:function(t,e){return t("span",[e.row.createTime])}},{title:"使用状态",key:"status"},{title:"使用时间",render:function(t,e){return t("span",[e.row.useTime||"--"])}}]}},created:function(){var t=this;this.$nextTick(function(){var e=m.a.parse(location.search?location.search.slice(1):"");t.filter.couponId=e.id,t.filter.couponCode=e.couponCode||t.filter.couponCode,t.filter.uid=e.uid||t.filter.uid,t.filter.status=e.status?parseInt(e.status):t.filter.status,t.parentUrl="coupon.html?"+m.a.stringify(e.param),t.page=e.page?parseInt(e.page):1,t.fetchData(t.filter,t.page)})},methods:{onFilter:function(){this.fetchData(this.filter)},onClear:function(){this.$refs.filterForm.resetFields(),this.fetchData(this.filter)},onPageChange:function(t){this.fetchData(this.filter,t)},fetchData:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u()(r.a.mark(function o(){var n;return r.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return e.page=a,e.$Loading.start(),o.next=4,g._get("/ufoPlatform/coupon/queryUserCoupons",s()({page:a},e.getParams(t)));case 4:n=o.sent,200===n.code?(e.total=n.data.total,e.data=n.data.userCoupons,e.$Loading.finish()):(n.message&&e.$Message.warning(n.message),e.$Loading.error());case 6:case"end":return o.stop()}},o,e)}))()},onExport:function(){var t=this;return u()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$Loading.start(),e.next=3,g._get("/ufoPlatform/coupon/export",{param:{method:"userCoupon",param:g._2params(t.getParams(t.filter))}},{responseType:"blob"});case 3:a=e.sent,a instanceof Blob?(d.a.downloadBlob(a,"优惠券发放记录导出_"+p()().format("YYYY-MM-DD")+".xlsx"),t.$Loading.finish()):a&&(a.message&&t.$Message.warning(a.message),t.$Loading.error());case 5:case"end":return e.stop()}},e,t)}))()},getParams:function(t){return{couponId:t.couponId,couponCode:t.couponCode,uid:t.uid,status:parseInt(t.status)>=0?t.status:void 0}}}}},364:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(365),r=a(13);Object(r.a)(o.a)},365:function(t,e,a){"use strict";function o(t){s||a(366)}var r=a(140),n=a(367),s=!1,i=a(0),u=o,l=i(r.a,n.a,!1,u,null,null);l.options.__file="src/views/send-record/index.vue",e.a=l.exports},366:function(t,e){},367:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("LayoutContent",{attrs:{breads:[{url:t.parentUrl,title:"优惠券列表"},{title:"发放记录"}]}},[a("LayoutFilter",{on:{"on-filter":t.onFilter,"on-clear":t.onClear}},[a("Form",{ref:"filterForm",attrs:{inline:"",model:t.filter}},[a("FormItem",{attrs:{prop:"couponCode"}},[a("Input",{attrs:{placeholder:"输入ID"},model:{value:t.filter.couponCode,callback:function(e){t.$set(t.filter,"couponCode",e)},expression:"filter.couponCode"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"uid"}},[a("Input",{attrs:{placeholder:"输入uid"},model:{value:t.filter.uid,callback:function(e){t.$set(t.filter,"uid",e)},expression:"filter.uid"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"status"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择状态"},model:{value:t.filter.status,callback:function(e){t.$set(t.filter,"status",e)},expression:"filter.status"}},[a("Option",{attrs:{value:0}},[t._v("未使用")]),t._v(" "),a("Option",{attrs:{value:1}},[t._v("已使用")])],1)],1)],1)],1),t._v(" "),a("LayoutTable",{attrs:{page:t.page,total:t.total,columns:t.columns,data:t.data},on:{"on-page-change":t.onPageChange}},[a("template",{staticClass:"btns",slot:"footer"},[a("Button",{attrs:{type:"primary",icon:"ios-cloud-download"},on:{click:t.onExport}},[t._v("导出")])],1)],2)],1)},r=[];o._withStripped=!0;var n={render:o,staticRenderFns:r};e.a=n}},[364]);
\ No newline at end of file
... ...
webpackJsonp([1],{
/***/ 141:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_asyncToGenerator__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_asyncToGenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_asyncToGenerator__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_dayjs__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_dayjs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__api_api__ = __webpack_require__(16);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_qs__ = __webpack_require__(26);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_qs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_qs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_iview__ = __webpack_require__(24);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_iview___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_iview__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__node_modules_iview_src_components_grid_col__ = __webpack_require__(371);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__node_modules_iview_src_components_input_input__ = __webpack_require__(373);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//eslint-disable-line
//eslint-disable-line
var api = new __WEBPACK_IMPORTED_MODULE_4__api_api__["a" /* default */]();
/* harmony default export */ __webpack_exports__["a"] = ({
components: {
Input: __WEBPACK_IMPORTED_MODULE_8__node_modules_iview_src_components_input_input__["a" /* default */],
ICol: __WEBPACK_IMPORTED_MODULE_7__node_modules_iview_src_components_grid_col__["a" /* default */] },
name: 'SendRecordPage',
data: function data() {
var _this = this;
var h = this.$createElement;
return {
filter: {
certName: '',
mobile: '',
uid: '',
validStatus: '',
entryType: ''
},
page: 1,
total: 0,
data: [],
detail: {},
invistInfo: {},
isShowDetail: false, // 显示详情弹框
isShowInvist: false, // 显示绑定招商人员
columns: [{
title: 'UID',
key: 'uid',
align: 'center',
width: 100
}, {
title: '商家类型',
align: 'center',
render: function render(h, _ref) {
var row = _ref.row;
return h('span', {}, ['', '入驻卖家', '超级入驻', '', '普通卖家'][row.entryType]);
},
width: 90
}, {
title: '商家名称',
key: 'certName',
align: 'center',
width: 100
}, {
title: '手机号',
align: 'center',
key: 'mobile',
width: 120
}, {
title: '身份证',
align: 'center',
key: 'certNo',
width: 140
}, {
title: '上架SKUP',
align: 'center',
key: 'selfSkuNum',
width: 95
}, {
title: '违规次数',
key: 'breakRuleTimes',
width: 90
}, {
title: '账户余额',
align: 'center',
render: function render(h, _ref2) {
var row = _ref2.row;
var color = parseInt(row.money, 10) > 999 ? 'inherit' : 'red';
return h('span', { style: { color: color } }, row.money);
},
width: 90
}, {
title: '入驻时间',
align: 'center',
render: function render(h, _ref3) {
var row = _ref3.row;
return h('span', [__WEBPACK_IMPORTED_MODULE_3_dayjs___default()(row.enterTime).format('YYYY-MM-DD')]);
},
width: 100
}, {
title: '退出入驻时间',
align: 'center',
render: function render(h, _ref4) {
var row = _ref4.row;
return h('span', [row.quitTime ? __WEBPACK_IMPORTED_MODULE_3_dayjs___default()(row.quitTime).format('YYYY-MM-DD') : '']);
},
width: 100
}, {
title: '入驻状态',
align: 'center',
key: 'validStatusDesc'
}, {
title: '招商人员',
align: 'center',
key: 'investName'
}, {
title: '操作',
align: 'center',
width: 100,
render: function render(h, _ref5) {
var row = _ref5.row;
return h('div', [h(
__WEBPACK_IMPORTED_MODULE_6_iview__["Button"],
{
attrs: { type: 'primary', size: 'small' },
on: {
'click': function click() {
return _this.onShowDetail(row);
}
}
},
['\u67E5\u770B']
), parseInt(row.investName) ? h(
__WEBPACK_IMPORTED_MODULE_6_iview__["Button"],
{
attrs: { type: 'primary', size: 'small' },
on: {
'click': function click() {
return _this.onEditInvist(row);
}
}
},
['\u4FEE\u6539\u62DB\u5546\u4EBA']
) : h(
__WEBPACK_IMPORTED_MODULE_6_iview__["Button"],
{
attrs: { type: 'success', size: 'small' },
on: {
'click': function click() {
return _this.onEditInvist(row);
}
}
},
['\u7ED1\u5B9A\u62DB\u5546\u4EBA']
)]);
}
}]
};
},
created: function created() {
var _this2 = this;
this.$nextTick(function () {
var _qs$parse = __WEBPACK_IMPORTED_MODULE_5_qs___default.a.parse(location.search ? location.search.slice(1) : ''),
page = _qs$parse.page,
certName = _qs$parse.certName,
mobile = _qs$parse.mobile,
uid = _qs$parse.uid,
validStatus = _qs$parse.validStatus;
_this2.filter.certName = certName ? decodeURIComponent(certName) : _this2.filter.certName;
_this2.filter.mobile = mobile || _this2.filter.mobile;
_this2.filter.uid = uid || _this2.filter.uid;
_this2.filter.validStatus = validStatus ? parseInt(validStatus) : _this2.filter.validStatus;
_this2.page = page ? parseInt(page) : 1;
_this2.fetchData(_this2.filter, _this2.page);
});
},
methods: {
onFilter: function onFilter() {
this.fetchData(this.filter);
},
onClear: function onClear() {
this.$refs.filterForm.resetFields();
this.fetchData(this.filter);
},
onPageChange: function onPageChange(page) {
this.fetchData(this.filter, page);
},
fetchData: function fetchData(params) {
var _this3 = this;
var page = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee() {
var result;
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_this3.page = page;
_this3.$Loading.start();
_context.next = 4;
return api._get('/ufoPlatform/storedSeller/queryStoredSeller', __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()({
page: page
}, _this3.getParams(params)));
case 4:
result = _context.sent;
if (result.code === 200) {
// console.log('listData:', result);
_this3.total = result.data.total;
_this3.data = result.data.list;
_this3.$Loading.finish();
} else {
result.message && _this3.$Message.warning(result.message);
_this3.$Loading.error();
}
case 6:
case 'end':
return _context.stop();
}
}
}, _callee, _this3);
}))();
},
onShowDetail: function onShowDetail(row) {
console.log(row);
var detail = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()({}, row);
detail.enterTime = row.enterTime ? __WEBPACK_IMPORTED_MODULE_3_dayjs___default()(row.enterTime).format('YYYY-MM-DD HH:mm:ss') : '--';
detail.quitTime = row.quitTime ? __WEBPACK_IMPORTED_MODULE_3_dayjs___default()(row.quitTime).format('YYYY-MM-DD HH:mm:ss') : '--';
this.detail = detail;
this.isShowDetail = true;
},
onEditInvist: function onEditInvist(row) {
this.isShowInvist = true;
this.invistInfo = {
id: row.id,
invistName: row.invistName || ''
};
},
submitInvist: function submitInvist() {},
closePopup: function closePopup() {
this.detail = {};
this.invistInfo = {};
this.isShowDetail = false;
this.isShowInvist = false;
},
getParams: function getParams(params) {
return {
certName: params.certName,
mobile: params.mobile,
uid: params.uid,
validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0,
entryType: parseInt(params.entryType) >= 0 ? params.entryType : void 0
};
}
}
});
/***/ }),
/***/ 142:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__ = __webpack_require__(65);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_assist__ = __webpack_require__(143);
//
//
//
//
//
var prefixCls = 'ivu-col';
/* harmony default export */ __webpack_exports__["a"] = ({
name: 'iCol',
props: {
span: [Number, String],
order: [Number, String],
offset: [Number, String],
push: [Number, String],
pull: [Number, String],
className: String,
xs: [Number, Object],
sm: [Number, Object],
md: [Number, Object],
lg: [Number, Object]
},
data: function data() {
return {
gutter: 0
};
},
computed: {
classes: function classes() {
var _ref,
_this = this;
var classList = ['' + prefixCls, (_ref = {}, __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-span-' + this.span, this.span), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-order-' + this.order, this.order), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-offset-' + this.offset, this.offset), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-push-' + this.push, this.push), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-pull-' + this.pull, this.pull), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_defineProperty___default()(_ref, '' + this.className, !!this.className), _ref)];
['xs', 'sm', 'md', 'lg'].forEach(function (size) {
if (typeof _this[size] === 'number') {
classList.push(prefixCls + '-span-' + size + '-' + _this[size]);
} else if (__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof___default()(_this[size]) === 'object') {
var props = _this[size];
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(props).forEach(function (prop) {
classList.push(prop !== 'span' ? prefixCls + '-' + size + '-' + prop + '-' + props[prop] : prefixCls + '-span-' + size + '-' + props[prop]);
});
}
});
return classList;
},
styles: function styles() {
var style = {};
if (this.gutter !== 0) {
style = {
paddingLeft: this.gutter / 2 + 'px',
paddingRight: this.gutter / 2 + 'px'
};
}
return style;
}
},
methods: {
updateGutter: function updateGutter() {
var Row = Object(__WEBPACK_IMPORTED_MODULE_3__utils_assist__["a" /* findComponentUpward */])(this, 'Row');
if (Row) {
Row.updateGutter(Row.gutter);
}
}
},
mounted: function mounted() {
this.updateGutter();
},
beforeDestroy: function beforeDestroy() {
this.updateGutter();
}
});
/***/ }),
/***/ 143:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["b"] = oneOf;
/* unused harmony export camelcaseToHyphen */
/* unused harmony export getScrollBarSize */
/* unused harmony export getStyle */
/* unused harmony export firstUpperCase */
/* unused harmony export warnProp */
/* unused harmony export deepCopy */
/* unused harmony export scrollTop */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return findComponentUpward; });
/* unused harmony export findComponentDownward */
/* unused harmony export findComponentsDownward */
/* unused harmony export findComponentsUpward */
/* unused harmony export findBrothersComponents */
/* unused harmony export hasClass */
/* unused harmony export addClass */
/* unused harmony export removeClass */
/* unused harmony export setMatchMedia */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(43);
const isServer = __WEBPACK_IMPORTED_MODULE_0_vue__["default"].prototype.$isServer;
// 判断参数是否是其中之一
function oneOf (value, validList) {
for (let i = 0; i < validList.length; i++) {
if (value === validList[i]) {
return true;
}
}
return false;
}
function camelcaseToHyphen (str) {
return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
}
// For Modal scrollBar hidden
let cached;
function getScrollBarSize (fresh) {
if (isServer) return 0;
if (fresh || cached === undefined) {
const inner = document.createElement('div');
inner.style.width = '100%';
inner.style.height = '200px';
const outer = document.createElement('div');
const outerStyle = outer.style;
outerStyle.position = 'absolute';
outerStyle.top = 0;
outerStyle.left = 0;
outerStyle.pointerEvents = 'none';
outerStyle.visibility = 'hidden';
outerStyle.width = '200px';
outerStyle.height = '150px';
outerStyle.overflow = 'hidden';
outer.appendChild(inner);
document.body.appendChild(outer);
const widthContained = inner.offsetWidth;
outer.style.overflow = 'scroll';
let widthScroll = inner.offsetWidth;
if (widthContained === widthScroll) {
widthScroll = outer.clientWidth;
}
document.body.removeChild(outer);
cached = widthContained - widthScroll;
}
return cached;
}
// watch DOM change
const MutationObserver = isServer ? false : window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver || false;
/* unused harmony export MutationObserver */
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
function camelCase(name) {
return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
return offset ? letter.toUpperCase() : letter;
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
}
// getStyle
function getStyle (element, styleName) {
if (!element || !styleName) return null;
styleName = camelCase(styleName);
if (styleName === 'float') {
styleName = 'cssFloat';
}
try {
const computed = document.defaultView.getComputedStyle(element, '');
return element.style[styleName] || computed ? computed[styleName] : null;
} catch(e) {
return element.style[styleName];
}
}
// firstUpperCase
function firstUpperCase(str) {
return str.toString()[0].toUpperCase() + str.toString().slice(1);
}
// Warn
function warnProp(component, prop, correctType, wrongType) {
correctType = firstUpperCase(correctType);
wrongType = firstUpperCase(wrongType);
console.error(`[iView warn]: Invalid prop: type check failed for prop ${prop}. Expected ${correctType}, got ${wrongType}. (found in component: ${component})`); // eslint-disable-line
}
function typeOf(obj) {
const toString = Object.prototype.toString;
const map = {
'[object Boolean]' : 'boolean',
'[object Number]' : 'number',
'[object String]' : 'string',
'[object Function]' : 'function',
'[object Array]' : 'array',
'[object Date]' : 'date',
'[object RegExp]' : 'regExp',
'[object Undefined]': 'undefined',
'[object Null]' : 'null',
'[object Object]' : 'object'
};
return map[toString.call(obj)];
}
// deepCopy
function deepCopy(data) {
const t = typeOf(data);
let o;
if (t === 'array') {
o = [];
} else if ( t === 'object') {
o = {};
} else {
return data;
}
if (t === 'array') {
for (let i = 0; i < data.length; i++) {
o.push(deepCopy(data[i]));
}
} else if ( t === 'object') {
for (let i in data) {
o[i] = deepCopy(data[i]);
}
}
return o;
}
// scrollTop animation
function scrollTop(el, from = 0, to, duration = 500, endCallback) {
if (!window.requestAnimationFrame) {
window.requestAnimationFrame = (
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function (callback) {
return window.setTimeout(callback, 1000/60);
}
);
}
const difference = Math.abs(from - to);
const step = Math.ceil(difference / duration * 50);
function scroll(start, end, step) {
if (start === end) {
endCallback && endCallback();
return;
}
let d = (start + step > end) ? end : start + step;
if (start > end) {
d = (start - step < end) ? end : start - step;
}
if (el === window) {
window.scrollTo(d, d);
} else {
el.scrollTop = d;
}
window.requestAnimationFrame(() => scroll(d, end, step));
}
scroll(from, to, step);
}
// Find components upward
function findComponentUpward (context, componentName, componentNames) {
if (typeof componentName === 'string') {
componentNames = [componentName];
} else {
componentNames = componentName;
}
let parent = context.$parent;
let name = parent.$options.name;
while (parent && (!name || componentNames.indexOf(name) < 0)) {
parent = parent.$parent;
if (parent) name = parent.$options.name;
}
return parent;
}
// Find component downward
function findComponentDownward (context, componentName) {
const childrens = context.$children;
let children = null;
if (childrens.length) {
for (const child of childrens) {
const name = child.$options.name;
if (name === componentName) {
children = child;
break;
} else {
children = findComponentDownward(child, componentName);
if (children) break;
}
}
}
return children;
}
// Find components downward
function findComponentsDownward (context, componentName) {
return context.$children.reduce((components, child) => {
if (child.$options.name === componentName) components.push(child);
const foundChilds = findComponentsDownward(child, componentName);
return components.concat(foundChilds);
}, []);
}
// Find components upward
function findComponentsUpward (context, componentName) {
let parents = [];
const parent = context.$parent;
if (parent) {
if (parent.$options.name === componentName) parents.push(parent);
return parents.concat(findComponentsUpward(parent, componentName));
} else {
return [];
}
}
// Find brothers components
function findBrothersComponents (context, componentName, exceptMe = true) {
let res = context.$parent.$children.filter(item => {
return item.$options.name === componentName;
});
let index = res.findIndex(item => item._uid === context._uid);
if (exceptMe) res.splice(index, 1);
return res;
}
/* istanbul ignore next */
const trim = function(string) {
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
};
/* istanbul ignore next */
function hasClass(el, cls) {
if (!el || !cls) return false;
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
if (el.classList) {
return el.classList.contains(cls);
} else {
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
}
}
/* istanbul ignore next */
function addClass(el, cls) {
if (!el) return;
let curClass = el.className;
const classes = (cls || '').split(' ');
for (let i = 0, j = classes.length; i < j; i++) {
const clsName = classes[i];
if (!clsName) continue;
if (el.classList) {
el.classList.add(clsName);
} else {
if (!hasClass(el, clsName)) {
curClass += ' ' + clsName;
}
}
}
if (!el.classList) {
el.className = curClass;
}
}
/* istanbul ignore next */
function removeClass(el, cls) {
if (!el || !cls) return;
const classes = cls.split(' ');
let curClass = ' ' + el.className + ' ';
for (let i = 0, j = classes.length; i < j; i++) {
const clsName = classes[i];
if (!clsName) continue;
if (el.classList) {
el.classList.remove(clsName);
} else {
if (hasClass(el, clsName)) {
curClass = curClass.replace(' ' + clsName + ' ', ' ');
}
}
}
if (!el.classList) {
el.className = trim(curClass);
}
}
const dimensionMap = {
xs: '480px',
sm: '768px',
md: '992px',
lg: '1200px',
xl: '1600px',
};
/* unused harmony export dimensionMap */
function setMatchMedia () {
if (typeof window !== 'undefined') {
const matchMediaPolyfill = mediaQuery => {
return {
media: mediaQuery,
matches: false,
on() {},
off() {},
};
};
window.matchMedia = window.matchMedia || matchMediaPolyfill;
}
}
const sharpMatcherRegx = /#([^#]+)$/;
/* unused harmony export sharpMatcherRegx */
/***/ }),
/***/ 144:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan__ = __webpack_require__(374);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__ = __webpack_require__(65);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_assist__ = __webpack_require__(143);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_calcTextareaHeight__ = __webpack_require__(377);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mixins_emitter__ = __webpack_require__(378);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var prefixCls = 'ivu-input';
/* harmony default export */ __webpack_exports__["a"] = ({
name: 'Input',
mixins: [__WEBPACK_IMPORTED_MODULE_4__mixins_emitter__["a" /* default */]],
props: {
type: {
validator: function validator(value) {
return Object(__WEBPACK_IMPORTED_MODULE_2__utils_assist__["b" /* oneOf */])(value, ['text', 'textarea', 'password', 'url', 'email', 'date']);
},
default: 'text'
},
value: {
type: [String, Number],
default: ''
},
size: {
validator: function validator(value) {
return Object(__WEBPACK_IMPORTED_MODULE_2__utils_assist__["b" /* oneOf */])(value, ['small', 'large', 'default']);
},
default: function _default() {
return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
}
},
placeholder: {
type: String,
default: ''
},
maxlength: {
type: Number
},
disabled: {
type: Boolean,
default: false
},
icon: String,
autosize: {
type: [Boolean, Object],
default: false
},
rows: {
type: Number,
default: 2
},
readonly: {
type: Boolean,
default: false
},
name: {
type: String
},
number: {
type: Boolean,
default: false
},
autofocus: {
type: Boolean,
default: false
},
spellcheck: {
type: Boolean,
default: false
},
autocomplete: {
validator: function validator(value) {
return Object(__WEBPACK_IMPORTED_MODULE_2__utils_assist__["b" /* oneOf */])(value, ['on', 'off']);
},
default: 'off'
},
clearable: {
type: Boolean,
default: false
},
elementId: {
type: String
},
wrap: {
validator: function validator(value) {
return Object(__WEBPACK_IMPORTED_MODULE_2__utils_assist__["b" /* oneOf */])(value, ['hard', 'soft']);
},
default: 'soft'
},
prefix: {
type: String,
default: ''
},
suffix: {
type: String,
default: ''
},
search: {
type: Boolean,
default: false
},
enterButton: {
type: [Boolean, String],
default: false
}
},
data: function data() {
return {
currentValue: this.value,
prefixCls: prefixCls,
prepend: true,
append: true,
slotReady: false,
textareaStyles: {},
showPrefix: false,
showSuffix: false
};
},
computed: {
wrapClasses: function wrapClasses() {
var _ref;
return [prefixCls + '-wrapper', (_ref = {}, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-wrapper-' + this.size, !!this.size), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-type', this.type), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-group', this.prepend || this.append || this.search && this.enterButton), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-group-' + this.size, (this.prepend || this.append || this.search && this.enterButton) && !!this.size), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-group-with-prepend', this.prepend), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-group-with-append', this.append || this.search && this.enterButton), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-hide-icon', this.append), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref, prefixCls + '-with-search', this.search && this.enterButton), _ref)];
},
inputClasses: function inputClasses() {
var _ref2;
return ['' + prefixCls, (_ref2 = {}, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref2, prefixCls + '-' + this.size, !!this.size), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref2, prefixCls + '-disabled', this.disabled), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref2, prefixCls + '-with-prefix', this.showPrefix), __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()(_ref2, prefixCls + '-with-suffix', this.showSuffix || this.search && this.enterButton === false), _ref2)];
},
textareaClasses: function textareaClasses() {
return ['' + prefixCls, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_defineProperty___default()({}, prefixCls + '-disabled', this.disabled)];
}
},
methods: {
handleEnter: function handleEnter(event) {
this.$emit('on-enter', event);
if (this.search) this.$emit('on-search', this.currentValue);
},
handleKeydown: function handleKeydown(event) {
this.$emit('on-keydown', event);
},
handleKeypress: function handleKeypress(event) {
this.$emit('on-keypress', event);
},
handleKeyup: function handleKeyup(event) {
this.$emit('on-keyup', event);
},
handleIconClick: function handleIconClick(event) {
this.$emit('on-click', event);
},
handleFocus: function handleFocus(event) {
this.$emit('on-focus', event);
},
handleBlur: function handleBlur(event) {
this.$emit('on-blur', event);
if (!Object(__WEBPACK_IMPORTED_MODULE_2__utils_assist__["a" /* findComponentUpward */])(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) {
this.dispatch('FormItem', 'on-form-blur', this.currentValue);
}
},
handleInput: function handleInput(event) {
var value = event.target.value;
if (this.number && value !== '') value = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_number_is_nan___default()(Number(value)) ? value : Number(value);
this.$emit('input', value);
this.setCurrentValue(value);
this.$emit('on-change', event);
},
handleChange: function handleChange(event) {
this.$emit('on-input-change', event);
},
setCurrentValue: function setCurrentValue(value) {
var _this = this;
if (value === this.currentValue) return;
this.$nextTick(function () {
_this.resizeTextarea();
});
this.currentValue = value;
if (!Object(__WEBPACK_IMPORTED_MODULE_2__utils_assist__["a" /* findComponentUpward */])(this, ['DatePicker', 'TimePicker', 'Cascader', 'Search'])) {
this.dispatch('FormItem', 'on-form-change', value);
}
},
resizeTextarea: function resizeTextarea() {
var autosize = this.autosize;
if (!autosize || this.type !== 'textarea') {
return false;
}
var minRows = autosize.minRows;
var maxRows = autosize.maxRows;
this.textareaStyles = Object(__WEBPACK_IMPORTED_MODULE_3__utils_calcTextareaHeight__["a" /* default */])(this.$refs.textarea, minRows, maxRows);
},
focus: function focus() {
if (this.type === 'textarea') {
this.$refs.textarea.focus();
} else {
this.$refs.input.focus();
}
},
blur: function blur() {
if (this.type === 'textarea') {
this.$refs.textarea.blur();
} else {
this.$refs.input.blur();
}
},
handleClear: function handleClear() {
var e = { target: { value: '' } };
this.$emit('input', '');
this.setCurrentValue('');
this.$emit('on-change', e);
},
handleSearch: function handleSearch() {
if (this.disabled) return false;
this.$refs.input.focus();
this.$emit('on-search', this.currentValue);
}
},
watch: {
value: function value(val) {
this.setCurrentValue(val);
}
},
mounted: function mounted() {
if (this.type !== 'textarea') {
this.prepend = this.$slots.prepend !== undefined;
this.append = this.$slots.append !== undefined;
this.showPrefix = this.prefix !== '' || this.$slots.prefix !== undefined;
this.showSuffix = this.suffix !== '' || this.$slots.suffix !== undefined;
} else {
this.prepend = false;
this.append = false;
}
this.slotReady = true;
this.resizeTextarea();
}
});
/***/ }),
/***/ 368:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index_vue__ = __webpack_require__(369);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_create_app__ = __webpack_require__(13);
Object(__WEBPACK_IMPORTED_MODULE_1_create_app__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__index_vue__["a" /* default */]);
/***/ }),
/***/ 369:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_0_1_index_vue__ = __webpack_require__(141);
/* unused harmony namespace reexport */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_05048cda_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_0_1_index_vue__ = __webpack_require__(380);
var disposed = false
function injectStyle (ssrContext) {
if (disposed) return
__webpack_require__(370)
}
var normalizeComponent = __webpack_require__(0)
/* script */
/* template */
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_iview_loader_index_js_ref_0_1_index_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_05048cda_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_iview_loader_index_js_ref_0_1_index_vue__["a" /* default */],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
Component.options.__file = "src/views/shop/index.vue"
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-05048cda", Component.options)
} else {
hotAPI.reload("data-v-05048cda", Component.options)
}
module.hot.dispose(function (data) {
disposed = true
})
})()}
/* harmony default export */ __webpack_exports__["a"] = (Component.exports);
/***/ }),
/***/ 370:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 371:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_vue_loader_lib_selector_type_script_index_0_iview_loader_index_js_ref_0_1_col_vue__ = __webpack_require__(142);
/* unused harmony namespace reexport */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__vue_loader_lib_template_compiler_index_id_data_v_48cd546d_hasScoped_false_buble_transforms_vue_loader_lib_selector_type_template_index_0_iview_loader_index_js_ref_0_1_col_vue__ = __webpack_require__(372);
var disposed = false
var normalizeComponent = __webpack_require__(0)
/* script */
/* template */
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_vue_loader_lib_selector_type_script_index_0_iview_loader_index_js_ref_0_1_col_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1__vue_loader_lib_template_compiler_index_id_data_v_48cd546d_hasScoped_false_buble_transforms_vue_loader_lib_selector_type_template_index_0_iview_loader_index_js_ref_0_1_col_vue__["a" /* default */],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
Component.options.__file = "node_modules/iview/src/components/grid/col.vue"
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-48cd546d", Component.options)
} else {
hotAPI.reload("data-v-48cd546d", Component.options)
}
module.hot.dispose(function (data) {
disposed = true
})
})()}
/* harmony default export */ __webpack_exports__["a"] = (Component.exports);
/***/ }),
/***/ 372:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ class: _vm.classes, style: _vm.styles },
[_vm._t("default")],
2
)
}
var staticRenderFns = []
render._withStripped = true
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api") .rerender("data-v-48cd546d", esExports)
}
}
/***/ }),
/***/ 373:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_vue_loader_lib_selector_type_script_index_0_iview_loader_index_js_ref_0_1_input_vue__ = __webpack_require__(144);
/* unused harmony namespace reexport */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__vue_loader_lib_template_compiler_index_id_data_v_8512bb02_hasScoped_false_buble_transforms_vue_loader_lib_selector_type_template_index_0_iview_loader_index_js_ref_0_1_input_vue__ = __webpack_require__(379);
var disposed = false
var normalizeComponent = __webpack_require__(0)
/* script */
/* template */
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_vue_loader_lib_selector_type_script_index_0_iview_loader_index_js_ref_0_1_input_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1__vue_loader_lib_template_compiler_index_id_data_v_8512bb02_hasScoped_false_buble_transforms_vue_loader_lib_selector_type_template_index_0_iview_loader_index_js_ref_0_1_input_vue__["a" /* default */],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
Component.options.__file = "node_modules/iview/src/components/input/input.vue"
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-8512bb02", Component.options)
} else {
hotAPI.reload("data-v-8512bb02", Component.options)
}
module.hot.dispose(function (data) {
disposed = true
})
})()}
/* harmony default export */ __webpack_exports__["a"] = (Component.exports);
/***/ }),
/***/ 374:
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(375), __esModule: true };
/***/ }),
/***/ 375:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(376);
module.exports = __webpack_require__(1).Number.isNaN;
/***/ }),
/***/ 376:
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.4 Number.isNaN(number)
var $export = __webpack_require__(6);
$export($export.S, 'Number', {
isNaN: function isNaN(number) {
// eslint-disable-next-line no-self-compare
return number != number;
}
});
/***/ }),
/***/ 377:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (immutable) */ __webpack_exports__["a"] = calcTextareaHeight;
// Thanks to
// https://github.com/andreypopp/react-textarea-autosize/
// let hiddenTextarea;
//
// const HIDDEN_STYLE = `
// height:0 !important;
// min-height:0 !important;
// max-height:none !important;
// visibility:hidden !important;
// overflow:hidden !important;
// position:absolute !important;
// z-index:-1000 !important;
// top:0 !important;
// right:0 !important
// `;
//
// const CONTEXT_STYLE = [
// 'letter-spacing',
// 'line-height',
// 'padding-top',
// 'padding-bottom',
// 'font-family',
// 'font-weight',
// 'font-size',
// 'text-rendering',
// 'text-transform',
// 'width',
// 'text-indent',
// 'padding-left',
// 'padding-right',
// 'border-width',
// 'box-sizing'
// ];
//
// function calculateNodeStyling(node) {
// const style = window.getComputedStyle(node);
//
// const boxSizing = style.getPropertyValue('box-sizing');
//
// const paddingSize = (
// parseFloat(style.getPropertyValue('padding-bottom')) +
// parseFloat(style.getPropertyValue('padding-top'))
// );
//
// const borderSize = (
// parseFloat(style.getPropertyValue('border-bottom-width')) +
// parseFloat(style.getPropertyValue('border-top-width'))
// );
//
// const contextStyle = CONTEXT_STYLE
// .map(name => `${name}:${style.getPropertyValue(name)}`)
// .join(';');
//
// return {contextStyle, paddingSize, borderSize, boxSizing};
// }
//
// export default function calcTextareaHeight(targetNode, minRows = null, maxRows = null) {
// if (!hiddenTextarea) {
// hiddenTextarea = document.createElement('textarea');
// document.body.appendChild(hiddenTextarea);
// }
//
// let {
// paddingSize,
// borderSize,
// boxSizing,
// contextStyle
// } = calculateNodeStyling(targetNode);
//
// hiddenTextarea.setAttribute('style', `${contextStyle};${HIDDEN_STYLE}`);
// hiddenTextarea.value = targetNode.value || targetNode.placeholder || '';
//
// let height = hiddenTextarea.scrollHeight;
// let minHeight = -Infinity;
// let maxHeight = Infinity;
// let overflowY;
//
// if (boxSizing === 'border-box') {
// height = height + borderSize;
// } else if (boxSizing === 'content-box') {
// height = height - paddingSize;
// }
//
// hiddenTextarea.value = '';
// let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
//
// if (minRows !== null) {
// minHeight = singleRowHeight * minRows;
// if (boxSizing === 'border-box') {
// minHeight = minHeight + paddingSize + borderSize;
// }
// height = Math.max(minHeight, height);
// }
// if (maxRows !== null) {
// maxHeight = singleRowHeight * maxRows;
// if (boxSizing === 'border-box') {
// maxHeight = maxHeight + paddingSize + borderSize;
// }
// overflowY = height > maxHeight ? '' : 'hidden';
// height = Math.min(maxHeight, height);
// }
//
// if (!maxRows) {
// overflowY = 'hidden';
// }
//
// return {
// height: `${height}px`,
// minHeight: `${minHeight}px`,
// maxHeight: `${maxHeight}px`,
// overflowY
// };
// }
const HIDDEN_TEXTAREA_STYLE = `
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`;
const SIZING_STYLE = [
'letter-spacing',
'line-height',
'padding-top',
'padding-bottom',
'font-family',
'font-weight',
'font-size',
'text-rendering',
'text-transform',
'width',
'text-indent',
'padding-left',
'padding-right',
'border-width',
'box-sizing',
];
let computedStyleCache = {};
let hiddenTextarea;
function calculateNodeStyling(node, useCache = false) {
const nodeRef = (
node.getAttribute('id') ||
node.getAttribute('data-reactid') ||
node.getAttribute('name'));
if (useCache && computedStyleCache[nodeRef]) {
return computedStyleCache[nodeRef];
}
const style = window.getComputedStyle(node);
const boxSizing = (
style.getPropertyValue('box-sizing') ||
style.getPropertyValue('-moz-box-sizing') ||
style.getPropertyValue('-webkit-box-sizing')
);
const paddingSize = (
parseFloat(style.getPropertyValue('padding-bottom')) +
parseFloat(style.getPropertyValue('padding-top'))
);
const borderSize = (
parseFloat(style.getPropertyValue('border-bottom-width')) +
parseFloat(style.getPropertyValue('border-top-width'))
);
const sizingStyle = SIZING_STYLE
.map(name => `${name}:${style.getPropertyValue(name)}`)
.join(';');
const nodeInfo = {
sizingStyle,
paddingSize,
borderSize,
boxSizing,
};
if (useCache && nodeRef) {
computedStyleCache[nodeRef] = nodeInfo;
}
return nodeInfo;
}
function calcTextareaHeight(uiTextNode, minRows = null, maxRows = null, useCache = false) {
if (!hiddenTextarea) {
hiddenTextarea = document.createElement('textarea');
document.body.appendChild(hiddenTextarea);
}
// Fix wrap="off" issue
// https://github.com/ant-design/ant-design/issues/6577
if (uiTextNode.getAttribute('wrap')) {
hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap'));
} else {
hiddenTextarea.removeAttribute('wrap');
}
// Copy all CSS properties that have an impact on the height of the content in
// the textbox
let {
paddingSize, borderSize,
boxSizing, sizingStyle,
} = calculateNodeStyling(uiTextNode, useCache);
// Need to have the overflow attribute to hide the scrollbar otherwise
// text-lines will not calculated properly as the shadow will technically be
// narrower for content
hiddenTextarea.setAttribute('style', `${sizingStyle};${HIDDEN_TEXTAREA_STYLE}`);
hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || '';
let minHeight = Number.MIN_SAFE_INTEGER;
let maxHeight = Number.MAX_SAFE_INTEGER;
let height = hiddenTextarea.scrollHeight;
let overflowY;
if (boxSizing === 'border-box') {
// border-box: add border, since height = content + padding + border
height = height + borderSize;
} else if (boxSizing === 'content-box') {
// remove padding, since height = content
height = height - paddingSize;
}
if (minRows !== null || maxRows !== null) {
// measure height of a textarea with a single row
hiddenTextarea.value = ' ';
let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
if (minRows !== null) {
minHeight = singleRowHeight * minRows;
if (boxSizing === 'border-box') {
minHeight = minHeight + paddingSize + borderSize;
}
height = Math.max(minHeight, height);
}
if (maxRows !== null) {
maxHeight = singleRowHeight * maxRows;
if (boxSizing === 'border-box') {
maxHeight = maxHeight + paddingSize + borderSize;
}
overflowY = height > maxHeight ? '' : 'hidden';
height = Math.min(maxHeight, height);
}
}
// Remove scroll bar flash when autosize without maxRows
if (!maxRows) {
overflowY = 'hidden';
}
return {
height: `${height}px`,
minHeight: `${minHeight}px`,
maxHeight: `${maxHeight}px`,
overflowY
};
}
/***/ }),
/***/ 378:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
function broadcast(componentName, eventName, params) {
this.$children.forEach(child => {
const name = child.$options.name;
if (name === componentName) {
child.$emit.apply(child, [eventName].concat(params));
} else {
// todo 如果 params 是空数组,接收到的会是 undefined
broadcast.apply(child, [componentName, eventName].concat([params]));
}
});
}
/* harmony default export */ __webpack_exports__["a"] = ({
methods: {
dispatch(componentName, eventName, params) {
let parent = this.$parent || this.$root;
let name = parent.$options.name;
while (parent && (!name || name !== componentName)) {
parent = parent.$parent;
if (parent) {
name = parent.$options.name;
}
}
if (parent) {
parent.$emit.apply(parent, [eventName].concat(params));
}
},
broadcast(componentName, eventName, params) {
broadcast.call(this, componentName, eventName, params);
}
}
});
/***/ }),
/***/ 379:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ class: _vm.wrapClasses },
[
_vm.type !== "textarea"
? [
_vm.prepend
? _c(
"div",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.slotReady,
expression: "slotReady"
}
],
class: [_vm.prefixCls + "-group-prepend"]
},
[_vm._t("prepend")],
2
)
: _vm._e(),
_vm._v(" "),
_vm.clearable && _vm.currentValue
? _c("i", {
staticClass: "ivu-icon",
class: [
"ivu-icon-ios-close-circle",
_vm.prefixCls + "-icon",
_vm.prefixCls + "-icon-clear",
_vm.prefixCls + "-icon-normal"
],
on: { click: _vm.handleClear }
})
: _vm.icon
? _c("i", {
staticClass: "ivu-icon",
class: [
"ivu-icon-" + _vm.icon,
_vm.prefixCls + "-icon",
_vm.prefixCls + "-icon-normal"
],
on: { click: _vm.handleIconClick }
})
: _vm.search && _vm.enterButton === false
? _c("i", {
staticClass: "ivu-icon ivu-icon-ios-search",
class: [
_vm.prefixCls + "-icon",
_vm.prefixCls + "-icon-normal",
_vm.prefixCls + "-search-icon"
],
on: { click: _vm.handleSearch }
})
: _vm.showSuffix
? _c(
"span",
{ staticClass: "ivu-input-suffix" },
[
_vm._t("suffix", [
_vm.suffix
? _c("i", {
staticClass: "ivu-icon",
class: ["ivu-icon-" + _vm.suffix]
})
: _vm._e()
])
],
2
)
: _vm._e(),
_vm._v(" "),
_c("transition", { attrs: { name: "fade" } }, [
!_vm.icon
? _c("i", {
staticClass: "ivu-icon ivu-icon-ios-loading ivu-load-loop",
class: [
_vm.prefixCls + "-icon",
_vm.prefixCls + "-icon-validate"
]
})
: _vm._e()
]),
_vm._v(" "),
_c("input", {
ref: "input",
class: _vm.inputClasses,
attrs: {
id: _vm.elementId,
autocomplete: _vm.autocomplete,
spellcheck: _vm.spellcheck,
type: _vm.type,
placeholder: _vm.placeholder,
disabled: _vm.disabled,
maxlength: _vm.maxlength,
readonly: _vm.readonly,
name: _vm.name,
number: _vm.number,
autofocus: _vm.autofocus
},
domProps: { value: _vm.currentValue },
on: {
keyup: [
function($event) {
if (
!("button" in $event) &&
_vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
) {
return null
}
return _vm.handleEnter($event)
},
_vm.handleKeyup
],
keypress: _vm.handleKeypress,
keydown: _vm.handleKeydown,
focus: _vm.handleFocus,
blur: _vm.handleBlur,
input: _vm.handleInput,
change: _vm.handleChange
}
}),
_vm._v(" "),
_vm.append
? _c(
"div",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.slotReady,
expression: "slotReady"
}
],
class: [_vm.prefixCls + "-group-append"]
},
[_vm._t("append")],
2
)
: _vm.search && _vm.enterButton
? _c(
"div",
{
class: [
_vm.prefixCls + "-group-append",
_vm.prefixCls + "-search"
],
on: { click: _vm.handleSearch }
},
[
_vm.enterButton === true
? _c("i", { staticClass: "ivu-icon ivu-icon-ios-search" })
: [_vm._v(_vm._s(_vm.enterButton))]
],
2
)
: _vm.showPrefix
? _c(
"span",
{ staticClass: "ivu-input-prefix" },
[
_vm._t("prefix", [
_vm.prefix
? _c("i", {
staticClass: "ivu-icon",
class: ["ivu-icon-" + _vm.prefix]
})
: _vm._e()
])
],
2
)
: _vm._e()
]
: _c("textarea", {
ref: "textarea",
class: _vm.textareaClasses,
style: _vm.textareaStyles,
attrs: {
id: _vm.elementId,
wrap: _vm.wrap,
autocomplete: _vm.autocomplete,
spellcheck: _vm.spellcheck,
placeholder: _vm.placeholder,
disabled: _vm.disabled,
rows: _vm.rows,
maxlength: _vm.maxlength,
readonly: _vm.readonly,
name: _vm.name,
autofocus: _vm.autofocus
},
domProps: { value: _vm.currentValue },
on: {
keyup: [
function($event) {
if (
!("button" in $event) &&
_vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
) {
return null
}
return _vm.handleEnter($event)
},
_vm.handleKeyup
],
keypress: _vm.handleKeypress,
keydown: _vm.handleKeydown,
focus: _vm.handleFocus,
blur: _vm.handleBlur,
input: _vm.handleInput
}
})
],
2
)
}
var staticRenderFns = []
render._withStripped = true
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api") .rerender("data-v-8512bb02", esExports)
}
}
/***/ }),
/***/ 380:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"LayoutContent",
{ attrs: { breads: [{ title: "店铺列表" }] } },
[
_c(
"LayoutFilter",
{ on: { "on-filter": _vm.onFilter, "on-clear": _vm.onClear } },
[
_c(
"Form",
{ ref: "filterForm", attrs: { inline: "", model: _vm.filter } },
[
_c(
"FormItem",
{ attrs: { prop: "uid" } },
[
_c("Input", {
attrs: { placeholder: "输入uid" },
model: {
value: _vm.filter.uid,
callback: function($$v) {
_vm.$set(_vm.filter, "uid", $$v)
},
expression: "filter.uid"
}
})
],
1
),
_vm._v(" "),
_c(
"FormItem",
{ attrs: { prop: "certName" } },
[
_c("Input", {
attrs: { placeholder: "商家名称" },
model: {
value: _vm.filter.certName,
callback: function($$v) {
_vm.$set(_vm.filter, "certName", $$v)
},
expression: "filter.certName"
}
})
],
1
),
_vm._v(" "),
_c(
"FormItem",
{ attrs: { prop: "mobile" } },
[
_c("Input", {
attrs: { placeholder: "手机号" },
model: {
value: _vm.filter.mobile,
callback: function($$v) {
_vm.$set(_vm.filter, "mobile", $$v)
},
expression: "filter.mobile"
}
})
],
1
),
_vm._v(" "),
_c(
"FormItem",
{ attrs: { prop: "validStatus" } },
[
_c(
"Select",
{
staticStyle: { width: "100px" },
attrs: { placeholder: "选择状态" },
model: {
value: _vm.filter.validStatus,
callback: function($$v) {
_vm.$set(_vm.filter, "validStatus", $$v)
},
expression: "filter.validStatus"
}
},
[
_c("Option", { attrs: { value: 1 } }, [_vm._v("已入驻")]),
_vm._v(" "),
_c("Option", { attrs: { value: 9 } }, [_vm._v("已退驻")])
],
1
)
],
1
),
_vm._v(" "),
_c(
"FormItem",
{ attrs: { prop: "entryType" } },
[
_c(
"Select",
{
staticStyle: { width: "100px" },
attrs: { placeholder: "商家类型" },
model: {
value: _vm.filter.entryType,
callback: function($$v) {
_vm.$set(_vm.filter, "entryType", $$v)
},
expression: "filter.entryType"
}
},
[
_c("Option", { attrs: { value: 1 } }, [
_vm._v("入驻卖家")
]),
_vm._v(" "),
_c("Option", { attrs: { value: 2 } }, [
_vm._v("超级入驻")
]),
_vm._v(" "),
_c("Option", { attrs: { value: 4 } }, [
_vm._v("普通卖家")
])
],
1
)
],
1
)
],
1
)
],
1
),
_vm._v(" "),
_c("LayoutTable", {
attrs: {
page: _vm.page,
total: _vm.total,
columns: _vm.columns,
data: _vm.data
},
on: { "on-page-change": _vm.onPageChange }
}),
_vm._v(" "),
_c(
"div",
{
staticClass: "popup-detail-wrapper",
class: { show: _vm.isShowDetail }
},
[
_c(
"Card",
{ staticClass: "popup-detail-container" },
[
_c("p", { attrs: { slot: "title" }, slot: "title" }, [
_vm._v("商家详情")
]),
_vm._v(" "),
_c(
"Button",
{
staticClass: "btn-close",
attrs: { slot: "extra" },
on: { click: _vm.closePopup },
slot: "extra"
},
[_vm._v("X")]
),
_vm._v(" "),
_c(
"div",
{ staticClass: "pop-detail-content" },
[
_c(
"Row",
[
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("UID")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.uid || " "))
]),
_vm._v(" "),
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("商家类型")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(
_vm._s(
["", "入驻卖家", "超级入驻", "", "普通卖家"][
_vm.detail.entryType
]
)
)
])
],
1
),
_vm._v(" "),
_c(
"Row",
[
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("商家名称")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.certName || "--"))
]),
_vm._v(" "),
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("手机号")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.mobile || "--"))
])
],
1
),
_vm._v(" "),
_c(
"Row",
[
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("招商人员")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.investName || "--"))
]),
_vm._v(" "),
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("违规次数")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.breakRuleTimes || "0"))
])
],
1
),
_vm._v(" "),
_c(
"Row",
[
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("账户余额")]
),
_vm._v(" "),
_c(
"Col",
{ staticStyle: { color: "red" }, attrs: { span: "8" } },
[_vm._v(_vm._s(_vm.detail.money || "0.00"))]
),
_vm._v(" "),
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("入驻状态")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.validStatusDesc || "--"))
])
],
1
),
_vm._v(" "),
_c(
"Row",
[
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("入驻时间")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.enterTime || "--"))
]),
_vm._v(" "),
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("退出入驻时间")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "8" } }, [
_vm._v(_vm._s(_vm.detail.quitTime || "--"))
])
],
1
),
_vm._v(" "),
_c(
"Row",
[
_c(
"Col",
{ staticClass: "detail-title", attrs: { span: "4" } },
[_vm._v("身份证号")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "20" } }, [
_vm._v(_vm._s(_vm.detail.certNo || "--"))
])
],
1
),
_vm._v(" "),
_c(
"Row",
[
_c(
"Col",
{
staticClass: "detail-title",
staticStyle: {
height: "150px",
"line-height": "150px"
},
attrs: { span: "4" }
},
[_vm._v("身份证照片")]
),
_vm._v(" "),
_c(
"Col",
{
staticStyle: { height: "150px" },
attrs: { span: "20" }
},
[
_c("img", {
staticClass: "cert-image",
attrs: {
src:
"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=93356609,3767404551&fm=26&gp=0.jpg"
}
}),
_vm._v(" "),
_c("img", {
staticClass: "cert-image",
attrs: {
src:
"https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=93356609,3767404551&fm=26&gp=0.jpg"
}
})
]
)
],
1
)
],
1
)
],
1
)
],
1
),
_vm._v(" "),
_c(
"div",
{
staticClass: "popup-invist-wrapper",
class: { show: _vm.isShowInvist }
},
[
_c(
"Card",
{ staticClass: "popup-invist-container" },
[
_c("p", { attrs: { slot: "title" }, slot: "title" }, [
_vm._v("绑定招商人")
]),
_vm._v(" "),
_c(
"Button",
{
staticClass: "btn-close",
attrs: { slot: "extra" },
on: { click: _vm.closePopup },
slot: "extra"
},
[_vm._v("X")]
),
_vm._v(" "),
_c(
"div",
{ staticClass: "popup-invist-content" },
[
_c(
"Row",
[
_c(
"Col",
{ staticClass: "invist-title", attrs: { span: "8" } },
[_vm._v("招商人员")]
),
_vm._v(" "),
_c("Col", { attrs: { span: "16" } }, [
_c("input", {
attrs: {
type: "text",
model: _vm.invistInfo.invistName
}
})
])
],
1
),
_vm._v(" "),
_c(
"Row",
[
_c(
"Col",
{
staticStyle: { "text-align": "center" },
attrs: { span: "24" }
},
[
_c(
"Button",
{
attrs: { type: "success" },
on: { click: _vm.submitInvist }
},
[_vm._v("保存")]
)
],
1
)
],
1
)
],
1
)
],
1
)
],
1
)
],
1
)
}
var staticRenderFns = []
render._withStripped = true
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api") .rerender("data-v-05048cda", esExports)
}
}
/***/ })
},[368]);
\ No newline at end of file
... ...
webpackJsonp([3],{139:function(t,e,a){"use strict";var r=a(19),i=a.n(r),n=a(9),l=a.n(n),o=a(20),s=a.n(o),c=a(24),u=a.n(c),d=a(23),f=a(32),p=a.n(f),m=new d.a;e.a={name:"SendRecordPage",data:function(){this.$createElement;return{filter:{certName:"",mobile:"",uid:"",validStatus:"",entryType:""},page:1,total:0,data:[],columns:[{title:"UID",key:"uid",width:100},{title:"商家类型",render:function(t,e){return t("span",{},["","普通入驻","超级入驻","前期白名单"][e.row.entryType])},width:100},{title:"商家名称",key:"certName",width:100},{title:"手机号",key:"mobile",width:150},{title:"身份证",key:"certNo",width:200},{title:"上架SKUP",key:"selfSkuNum",width:100},{title:"违规次数",key:"breakRuleTimes",width:100},{title:"账户余额",render:function(t,e){var a=e.row;return t("span",{style:{color:parseInt(a.money,10)>999?"inherit":"red"}},a.money)},width:100},{title:"入驻时间",render:function(t,e){var a=e.row;return t("span",[u()(a.enterTime).format("YYYY-MM-DD HH:mm:ss")])},width:150},{title:"退出入驻时间",render:function(t,e){var a=e.row;return t("span",[a.quitTime?u()(a.quitTime).format("YYYY-MM-DD HH:mm:ss"):""])},width:150},{title:"入驻状态",key:"validStatusDesc",width:100}]}},created:function(){var t=this;this.$nextTick(function(){var e=p.a.parse(location.search?location.search.slice(1):""),a=e.page,r=e.certName,i=e.mobile,n=e.uid,l=e.validStatus;t.filter.certName=r?decodeURIComponent(r):t.filter.certName,t.filter.mobile=i||t.filter.mobile,t.filter.uid=n||t.filter.uid,t.filter.validStatus=l?parseInt(l):t.filter.validStatus,t.page=a?parseInt(a):1,t.fetchData(t.filter,t.page)})},methods:{onFilter:function(){this.fetchData(this.filter)},onClear:function(){this.$refs.filterForm.resetFields(),this.fetchData(this.filter)},onPageChange:function(t){this.fetchData(this.filter,t)},fetchData:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return s()(i.a.mark(function r(){var n;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return e.page=a,e.$Loading.start(),r.next=4,m._get("/ufoPlatform/storedSeller/queryStoredSeller",l()({page:a},e.getParams(t)));case 4:n=r.sent,200===n.code?(e.total=n.data.total,e.data=n.data.list,e.$Loading.finish()):(n.message&&e.$Message.warning(n.message),e.$Loading.error());case 6:case"end":return r.stop()}},r,e)}))()},getParams:function(t){return{certName:t.certName,mobile:t.mobile,uid:t.uid,validStatus:parseInt(t.validStatus)>=0?t.validStatus:void 0,entryType:parseInt(t.entryType)>=0?t.entryType:void 0}}}}},360:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(361),i=a(15);Object(i.a)(r.a)},361:function(t,e,a){"use strict";function r(t){l||a(362)}var i=a(139),n=a(363),l=!1,o=a(0),s=r,c=o(i.a,n.a,!1,s,null,null);c.options.__file="src/views/shop/index.vue",e.a=c.exports},362:function(t,e){},363:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("LayoutContent",{attrs:{breads:[{title:"店铺列表"}]}},[a("LayoutFilter",{on:{"on-filter":t.onFilter,"on-clear":t.onClear}},[a("Form",{ref:"filterForm",attrs:{inline:"",model:t.filter}},[a("FormItem",{attrs:{prop:"uid"}},[a("Input",{attrs:{placeholder:"输入uid"},model:{value:t.filter.uid,callback:function(e){t.$set(t.filter,"uid",e)},expression:"filter.uid"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"certName"}},[a("Input",{attrs:{placeholder:"商家名称"},model:{value:t.filter.certName,callback:function(e){t.$set(t.filter,"certName",e)},expression:"filter.certName"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"mobile"}},[a("Input",{attrs:{placeholder:"手机号"},model:{value:t.filter.mobile,callback:function(e){t.$set(t.filter,"mobile",e)},expression:"filter.mobile"}})],1),t._v(" "),a("FormItem",{attrs:{prop:"validStatus"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择状态"},model:{value:t.filter.validStatus,callback:function(e){t.$set(t.filter,"validStatus",e)},expression:"filter.validStatus"}},[a("Option",{attrs:{value:1}},[t._v("已入驻")]),t._v(" "),a("Option",{attrs:{value:9}},[t._v("已退驻")])],1)],1),t._v(" "),a("FormItem",{attrs:{prop:"entryType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"商家类型"},model:{value:t.filter.entryType,callback:function(e){t.$set(t.filter,"entryType",e)},expression:"filter.entryType"}},[a("Option",{attrs:{value:1}},[t._v("普通入驻")]),t._v(" "),a("Option",{attrs:{value:2}},[t._v("超级入驻")]),t._v(" "),a("Option",{attrs:{value:3}},[t._v("前期白名单")])],1)],1)],1)],1),t._v(" "),a("LayoutTable",{attrs:{page:t.page,total:t.total,columns:t.columns,data:t.data},on:{"on-page-change":t.onPageChange}})],1)},i=[];r._withStripped=!0;var n={render:r,staticRenderFns:i};e.a=n}},[360]);
\ No newline at end of file
... ... @@ -5,10 +5,10 @@
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.df4786dc29d44d7b1583.css" rel="stylesheet"><link href="css/price-compare.df4786dc29d44d7b1583.css" rel="stylesheet"></head>
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/price-compare.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.df4786dc29d44d7b1583.js"></script><script type="text/javascript" src="js/price-compare.df4786dc29d44d7b1583.js"></script></body>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/price-compare.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...
... ... @@ -5,10 +5,10 @@
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.df4786dc29d44d7b1583.css" rel="stylesheet"><link href="css/resource-edit-new.df4786dc29d44d7b1583.css" rel="stylesheet"></head>
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/resource-edit-new.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.df4786dc29d44d7b1583.js"></script><script type="text/javascript" src="js/resource-edit-new.df4786dc29d44d7b1583.js"></script></body>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/resource-edit-new.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...
... ... @@ -5,10 +5,10 @@
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.df4786dc29d44d7b1583.css" rel="stylesheet"><link href="css/resource-edit.df4786dc29d44d7b1583.css" rel="stylesheet"></head>
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/resource-edit.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.df4786dc29d44d7b1583.js"></script><script type="text/javascript" src="js/resource-edit.df4786dc29d44d7b1583.js"></script></body>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/resource-edit.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...
... ... @@ -5,10 +5,10 @@
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.df4786dc29d44d7b1583.css" rel="stylesheet"><link href="css/resource-list.df4786dc29d44d7b1583.css" rel="stylesheet"></head>
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/resource-list.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.df4786dc29d44d7b1583.js"></script><script type="text/javascript" src="js/resource-list.df4786dc29d44d7b1583.js"></script></body>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/resource-list.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/send-coupon.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/send-coupon.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...
... ... @@ -5,10 +5,10 @@
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.df4786dc29d44d7b1583.css" rel="stylesheet"><link href="css/send-record.df4786dc29d44d7b1583.css" rel="stylesheet"></head>
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/send-record.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.df4786dc29d44d7b1583.js"></script><script type="text/javascript" src="js/send-record.df4786dc29d44d7b1583.js"></script></body>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/send-record.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...
... ... @@ -5,10 +5,10 @@
<title>ufo后台管理</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link href="css/vendors.df4786dc29d44d7b1583.css" rel="stylesheet"><link href="css/shop.df4786dc29d44d7b1583.css" rel="stylesheet"></head>
<link href="css/vendors.2bbed7f6590ddc46c731.css" rel="stylesheet"><link href="css/shop.2bbed7f6590ddc46c731.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="js/vendors.df4786dc29d44d7b1583.js"></script><script type="text/javascript" src="js/shop.df4786dc29d44d7b1583.js"></script></body>
<script type="text/javascript" src="js/vendors.2bbed7f6590ddc46c731.js"></script><script type="text/javascript" src="js/shop.2bbed7f6590ddc46c731.js"></script></body>
</html>
\ No newline at end of file
... ...