Authored by bevishuang

是否检验优化 review by 杨延青

Showing 29 changed files with 48 additions and 23 deletions
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/coupon.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/coupon.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -22,6 +22,6 @@
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/coupon.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/coupon.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
webpackJsonp([1],{10:function(e,t){e.exports=Vue},139:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(140),r=a(18);Object(r.a)(o.a)},140:function(e,t,a){"use strict";function o(e){n||a(141)}var r=a(63),i=a(214),n=!1,s=a(0),l=o,u=s(r.a,i.a,!1,l,null,null);u.options.__file="src/views/coupon/index.vue",t.a=u.exports},141:function(e,t){},210:function(e,t,a){"use strict";function o(e){n||a(211)}var r=a(91),i=a(213),n=!1,s=a(0),l=o,u=s(r.a,i.a,!1,l,"data-v-35ed785d",null);u.options.__file="src/views/coupon/components/modal-create-coupon.vue",t.a=u.exports},211:function(e,t){},212:function(e,t){e.exports=XLSX},213:function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{loading:e.posting,title:e.allreadonly?"查看优惠券":"创建/编辑优惠券",width:"600"},on:{"on-ok":e.onOk},model:{value:e.visiable,callback:function(t){e.visiable=t},expression:"visiable"}},[e.loading?a("Spin"):a("Form",{ref:"formCoupon",attrs:{rules:e.ruleValidate,model:e.formData,"label-width":80}},[a("FormItem",{staticClass:"form-group",attrs:{label:"优惠券类型"}}),e._v(" "),a("FormItem",{attrs:{label:"优惠券类型",prop:"couponType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly},model:{value:e.formData.couponType,callback:function(t){e.$set(e.formData,"couponType",t)},expression:"formData.couponType"}},[a("Option",{attrs:{value:0}},[e._v("请选择")]),e._v(" "),a("Option",{attrs:{value:100}},[e._v("活动券")]),e._v(" "),a("Option",{attrs:{value:110}},[e._v("运费券")])],1)],1),e._v(" "),a("FormItem",{staticClass:"form-group",attrs:{label:"基本信息"}}),e._v(" "),e.couponToken?a("FormItem",{attrs:{label:"Token"}},[e._v(e._s(e.couponToken))]):e._e(),e._v(" "),a("FormItem",{attrs:{label:"名称",prop:"couponName"}},[a("Input",{staticStyle:{width:"200px"},attrs:{placeholder:"名称建议30字以内",disabled:e.allreadonly},model:{value:e.formData.couponName,callback:function(t){e.$set(e.formData,"couponName",t)},expression:"formData.couponName"}})],1),e._v(" "),a("FormItem",{attrs:{label:"数量",prop:"couponNum"}},[a("InputNumber",{staticStyle:{width:"100px"},attrs:{placeholder:"数量",disabled:e.allreadonly},model:{value:e.formData.couponNum,callback:function(t){e.$set(e.formData,"couponNum",t)},expression:"formData.couponNum"}})],1),e._v(" "),a("FormItem",{attrs:{label:"使用次数",prop:"useNum"}},[a("Input",{staticStyle:{width:"100px"},attrs:{placeholder:"使用次数",disabled:""},model:{value:e.formData.useNum,callback:function(t){e.$set(e.formData,"useNum",t)},expression:"formData.useNum"}})],1),e._v(" "),a("FormItem",{attrs:{label:"使用期限",prop:"time"}},[a("DatePicker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange",disabled:e.allreadonly,placeholder:"使用期限",format:"yyyy-MM-dd HH:mm:ss"},model:{value:e.formData.time,callback:function(t){e.$set(e.formData,"time",t)},expression:"formData.time"}})],1),e._v(" "),a("FormItem",{attrs:{label:"领券期限",prop:"receiveTime"}},[a("DatePicker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange",disabled:e.readonly,placeholder:"领券期限",format:"yyyy-MM-dd HH:mm:ss"},model:{value:e.formData.receiveTime,callback:function(t){e.$set(e.formData,"receiveTime",t)},expression:"formData.receiveTime"}})],1),e._v(" "),a("FormItem",{attrs:{label:"优惠券说明",prop:"remark"}},[a("Input",{attrs:{type:"textarea",placeholder:"优惠券使用条件简介",disabled:e.allreadonly},model:{value:e.formData.remark,callback:function(t){e.$set(e.formData,"remark",t)},expression:"formData.remark"}})],1),e._v(" "),a("FormItem",{staticClass:"form-group",attrs:{label:"使用条件"}}),e._v(" "),a("FormItem",{staticStyle:{display:"inline-block",width:"100%"},attrs:{label:"优惠条件",prop:"useLimitType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly},model:{value:e.formData.useLimitType,callback:function(t){e.$set(e.formData,"useLimitType",t)},expression:"formData.useLimitType"}},[a("Option",{attrs:{value:0}},[e._v("无限制")]),e._v(" "),a("Option",{attrs:{value:2}},[e._v("金额")])],1),e._v(" "),2===e.formData.useLimitType?a("div",{staticStyle:{display:"inline-block"}},[e._v("\n  \n 金额满:\n "),a("InputNumber",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly,placeholder:"限制金额"},model:{value:e.formData.useLimitValue,callback:function(t){e.$set(e.formData,"useLimitValue",t)},expression:"formData.useLimitValue"}})],1):e._e()],1),e._v(" "),a("FormItem",{attrs:{label:"优惠金额",prop:"couponAmount"}},[a("InputNumber",{staticStyle:{width:"100px"},attrs:{placeholder:"优惠金额",disabled:e.readonly},model:{value:e.formData.couponAmount,callback:function(t){e.$set(e.formData,"couponAmount",t)},expression:"formData.couponAmount"}})],1),e._v(" "),a("FormItem",{attrs:{label:"适用范围",prop:"productLimitType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly},model:{value:e.formData.productLimitType,callback:function(t){e.$set(e.formData,"productLimitType",t)},expression:"formData.productLimitType"}},[a("Option",{attrs:{value:1}},[e._v("指定商品")]),e._v(" "),a("Option",{attrs:{value:2}},[e._v("全部商品")]),e._v(" "),a("Option",{attrs:{value:3}},[e._v("排除商品")])],1)],1),e._v(" "),1===e.formData.productLimitType||3===e.formData.productLimitType?a("FormItem",{attrs:{prop:"productLimitValue"}},[a("Input",{attrs:{type:"textarea",disabled:e.readonly,placeholder:"填写商品编码,多个商品编码用英文逗号分隔"},model:{value:e.formData.productLimitValue,callback:function(t){e.$set(e.formData,"productLimitValue",t)},expression:"formData.productLimitValue"}}),e._v(" "),a("Poptip",{attrs:{trigger:"hover"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[e._v("1.上传文件必须是xlsx文件")]),e._v(" "),a("p",[e._v("2.第一行标题栏:商品编码")]),e._v(" "),a("p",[e._v("\n 3.\n "),a("a",{attrs:{href:"javascript:;"},on:{click:e.onExample}},[e._v("下载样例")])])]),e._v(" "),a("Upload",{attrs:{action:"",format:["xlsx"],"max-size":1024,"before-upload":e.onBeforeUpload}},[a("Button",{attrs:{type:"success",size:"small",disabled:e.readonly}},[e._v("导入")]),e._v(" "),a("p",[e._v(e._s(e.uploadTxt))])],1)],1)],1):e._e(),e._v(" "),a("FormItem",{attrs:{label:"可用商品类型"}},[a("checkbox-group",{on:{"on-change":e.getCheckBox},model:{value:e.formData.skupAllowTypeLabel,callback:function(t){e.$set(e.formData,"skupAllowTypeLabel",t)},expression:"formData.skupAllowTypeLabel"}},[a("checkbox",{attrs:{label:"极速发货",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"极速寄存",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"预售",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"瑕疵",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"二手",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"海外直邮",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"现货发货",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"现货寄存",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"闪购发货",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"闪购寄存",disabled:e.readonly}})],1)],1),e._v(" "),a("FormItem",{attrs:{label:"购买渠道",prop:"useLimitType"}},[a("checkbox-group",{on:{"on-change":e.getChannelCheckBox},model:{value:e.formData.businessClientLabel,callback:function(t){e.$set(e.formData,"businessClientLabel",t)},expression:"formData.businessClientLabel"}},[a("checkbox",{attrs:{label:"UFO",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"闲鱼",disabled:e.readonly}})],1)],1),e._v(" "),a("FormItem",{attrs:{label:"需要校验",prop:"checkRequired"}},[a("checkbox",{attrs:{disabled:e.allreadonly},on:{"on-change":e.getCheckRequired},model:{value:e.formData.isCheckRequired,callback:function(t){e.$set(e.formData,"isCheckRequired",t)},expression:"formData.isCheckRequired"}})],1)],1)],1)},r=[];o._withStripped=!0;var i={render:o,staticRenderFns:r};t.a=i},214:function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("LayoutContent",{attrs:{breads:[{title:"优惠券列表"}]}},[a("LayoutFilter",{on:{"on-filter":e.onFilter,"on-clear":e.onClear}},[a("Form",{ref:"filterForm",attrs:{inline:"",model:e.filter}},[a("FormItem",{attrs:{prop:"id"}},[a("Input",{attrs:{placeholder:"输入ID"},model:{value:e.filter.id,callback:function(t){e.$set(e.filter,"id",t)},expression:"filter.id"}})],1),e._v(" "),a("FormItem",{attrs:{prop:"name"}},[a("Input",{attrs:{placeholder:"输入券名称"},model:{value:e.filter.name,callback:function(t){e.$set(e.filter,"name",t)},expression:"filter.name"}})],1),e._v(" "),a("FormItem",{attrs:{prop:"status"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择状态"},model:{value:e.filter.status,callback:function(t){e.$set(e.filter,"status",t)},expression:"filter.status"}},[a("Option",{attrs:{value:0}},[e._v("未生效")]),e._v(" "),a("Option",{attrs:{value:1}},[e._v("生效中")]),e._v(" "),a("Option",{attrs:{value:2}},[e._v("已过期")]),e._v(" "),a("Option",{attrs:{value:3}},[e._v("已作废")])],1)],1),e._v(" "),a("FormItem",{attrs:{prop:"time"}},[a("DatePicker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange",placeholder:"开始-结束时间",format:"yyyy-MM-dd HH:mm"},model:{value:e.filter.time,callback:function(t){e.$set(e.filter,"time",t)},expression:"filter.time"}})],1)],1)],1),e._v(" "),a("LayoutTools",[a("Button",{attrs:{type:"success",icon:"md-add"},on:{click:e.onCreateCoupon}},[e._v("新增优惠券")])],1),e._v(" "),a("LayoutTable",{attrs:{page:e.page,total:e.total,columns:e.columns,data:e.data},on:{"on-page-change":e.onPageChange}},[a("template",{staticClass:"btns",slot:"footer"},[a("Button",{attrs:{type:"primary",icon:"ios-cloud-download"},on:{click:e.onExport}},[e._v("导出")])],1)],2),e._v(" "),a("ModalCreateCoupon",{ref:"modalCreateCoupon",on:{"on-created":e.onCreated}})],1)},r=[];o._withStripped=!0;var i={render:o,staticRenderFns:r};t.a=i},5:function(e,t){e.exports=iview},63:function(e,t,a){"use strict";var o=a(13),r=a.n(o),i=a(21),n=a.n(i),s=a(22),l=a.n(s),u=a(5),c=(a.n(u),a(16)),m=a(17),p=a.n(m),d=a(44),f=a(27),v=a.n(f),h=a(210),y=new c.a;t.a={name:"CouponPage",data:function(){var e=this;this.$createElement;return{filter:{id:"",name:"",status:"",time:["",""]},page:1,total:0,data:[],columns:[{title:"ID",key:"id",width:80},{title:"券名称",key:"name",width:180},{title:"token",key:"token",width:180},{title:"数量",key:"couponNum",width:90},{title:"已发放",key:"sendNum",width:90},{title:"已使用",key:"useNum",width:90},{title:"使用期限",key:"useTime",width:165},{title:"优惠券说明",key:"remark",align:"center",width:150},{title:"状态",align:"center",key:"status"},{title:"操作",align:"center",width:200,render:function(t,a){var o=a.row;return t("div",[t(u.Button,{attrs:{type:"success",size:"small"},on:{click:function(){return e.onEditCoupon(o,!0,!0)}}},["查看详情"]),"未生效"===o.status||"生效中"===o.status?t(u.Button,{attrs:{type:"primary",size:"small"},on:{click:function(){return e.onEditCoupon(o)}}},["修改"]):void 0,t(u.Button,{attrs:{type:"warning",size:"small"},on:{click:function(){return e.onToRecord(o)}}},["发放记录"]),"未生效"===o.status||"生效中"===o.status?t(u.Button,{attrs:{type:"success",size:"small"},on:{click:function(){return e.onSendCoupon(o)}}},["发券"]):void 0])}}]}},created:function(){var e=this;this.$nextTick(function(){var t=v.a.parse(location.search?location.search.slice(1):""),a=t.page,o=t.id,r=t.name,i=t.status,n=t.startTime,s=t.endTime;e.filter.id=o||e.filter.id,e.filter.name=r?decodeURIComponent(r):e.filter.name,e.filter.status=i?parseInt(i):e.filter.status,e.filter.time=n&&s?[p()(n),p()(s)]:e.filter.time,e.page=a?parseInt(a):1,e.fetchData(e.filter,e.page)})},methods:{onToRecord:function(e){var t=e.id;location.href="send-record.html?"+v.a.stringify({id:t,param:{id:this.filter.id||void 0,name:this.filter.name||void 0,status:this.filter.status||void 0,startTime:this.filter.time[0]||void 0,endTime:this.filter.time[1]||void 0,page:this.page||void 0}})},onSendCoupon:function(e){var t=e.id,a=e.token;t&&a&&(location.href="send-coupon.html?"+v.a.stringify({id:t,token:a}))},onCreated:function(){this.fetchData(this.filter)},onFilter:function(){this.fetchData(this.filter)},onClear:function(){this.$refs.filterForm.resetFields(),this.fetchData(this.filter)},onPageChange:function(e){this.fetchData(this.filter,e)},onCreateCoupon:function(){this.$refs.modalCreateCoupon.show()},onEditCoupon:function(e,t,a){var o=e.id;e.sendNum>0&&(t=!0),this.$refs.modalCreateCoupon.show(o,t,a)},onExport:function(){var e=this;return l()(n.a.mark(function t(){var a;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.$Loading.start(),t.next=3,y._get("/ufoPlatform/coupon/export",{param:{method:"coupon",param:y._2params(e.getParams(e.filter))}},{responseType:"blob"});case 3:a=t.sent,a instanceof Blob?(d.a.downloadBlob(a,"优惠券导出_"+p()().format("YYYY-MM-DD")+".xlsx"),e.$Loading.finish()):a&&(a.message&&e.$Message.warning(a.message),e.$Loading.error());case 5:case"end":return t.stop()}},t,e)}))()},fetchData:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return l()(n.a.mark(function o(){var i;return n.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return t.page=a,t.$Loading.start(),o.next=4,y._get("/ufoPlatform/coupon/queryCoupons",r()({page:a},t.getParams(e)));case 4:i=o.sent,200===i.code?(t.total=i.data.total,t.data=i.data.coupons,t.$Loading.finish()):(i.message&&t.$Message.warning(i.message),t.$Loading.error());case 6:case"end":return o.stop()}},o,t)}))()},getParams:function(e){var t=e.time[0]?p()(e.time[0]).unix():void 0,a=e.time[1]?p()(e.time[1]).unix():void 0,o=parseInt(e.status)>=0?e.status:void 0,r=p()().unix();return{id:e.id,name:e.name,status:o,startTime:t,endTime:a,curTime:r}}},components:{ModalCreateCoupon:h.a}}},91:function(e,t,a){"use strict";var o=a(21),r=a.n(o),i=a(22),n=a.n(i),s=a(16),l=a(17),u=a.n(l),c=a(212),m=a.n(c),p=new s.a,d={"极速发货":"9-N","极速寄存":"9-Y","预售":"4","瑕疵":"5","二手":"6","海外直邮":"17","现货发货":"1-N","现货寄存":"1-Y","闪购发货":"3-N","闪购寄存":"3-Y"},f={"9-N":"极速发货","9-Y":"极速寄存",4:"预售",5:"瑕疵",6:"二手",17:"海外直邮","1-N":"现货发货","1-Y":"现货寄存","3-N":"闪购发货","3-Y":"闪购寄存"},v={UFO:"ufo","闲鱼":"h5/xianyu"},h={ufo:"UFO","h5/xianyu":"闲鱼"};t.a={components:{},name:"ModalCreateCoupon",data:function(){var e=this;return{readonly:!1,allreadonly:!1,visiable:!1,loading:!1,posting:!0,uploadTxt:"",couponToken:"",formData:{id:0,couponName:"",couponType:0,couponNum:0,useNum:1,couponAmount:0,useLimitType:0,remark:"",productLimitType:2,productLimitValue:"",useLimitValue:0,time:["",""],receiveTime:["",""],skupAllowTypeLabel:[],skupAllowType:"",businessClient:"",checkRequired:0,isCheckRequired:!0},ruleValidate:{couponType:{required:!0,validator:function(e,t,a){0===t||"0"===t?a(new Error("请选择优惠券类型")):a()}},couponName:{required:!0,max:30,message:"请输入名称"},couponNum:{type:"number",required:!0,min:1,message:"请输入数量"},couponAmount:{type:"number",required:!0,min:1,message:"请输入优惠金额"},time:{required:!0,validator:function(e,t,a){t.some(function(e){return!e})?a(new Error("请选择使用期限")):a()}},receiveTime:{required:!0,validator:function(t,a,o){if(a.some(function(e){return!e}))o(new Error("请选择领券期限"));else{(e.formData.time[1]?u()(e.formData.time[1]).unix():void 0)<(a[1]?u()(a[1]).unix():void 0)?o(new Error("请选择领券结束时间小于使用结束时间")):o()}}},remark:{required:!0,message:"请输入优惠券说明"},useLimitType:{required:!0,validator:function(t,a,o){a>=0?2===a?parseInt(e.formData.useLimitValue)>0?o():o(new Error("请输入限制金额")):o():o(new Error("请选择优惠条件"))}},productLimitValue:{required:!1,validator:function(e,t,a){var o=(t||"").split(",");t&&o.length?o.some(function(e){return!!e&&!parseInt(e)})?a(new Error("适用范围格式错误")):a():a(new Error("请输入适用范围"))}},productLimitType:{required:!0,validator:function(e,t,a){1===t||2===t||3===t?a():a(new Error("请选择类型"))}}}}},methods:{show:function(e,t,a){var o=this;return n()(r.a.mark(function i(){var n,s,l,c,m,d,v,y,b,k,x;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o.readonly=t,o.allreadonly=a,o.posting=o.visiable=!0,o.$refs.formCoupon.resetFields(),o.couponToken="",n={id:0,couponName:"",couponNum:0,couponType:0,useNum:1,couponAmount:0,useLimitType:0,remark:"",productLimitValue:"",productLimitType:2,useLimitValue:0,time:["",""],skupAllowTypeLabel:[],skupAllowType:"",businessClientLabel:[],businessClient:"",checkRequired:0},!e){r.next=13;break}return o.loading=!0,r.next=10,p._get("/ufoPlatform/coupon/getCouponInfo",{id:e});case 10:if(s=r.sent,o.loading=!1,200===s.code){if(l=s.data.coupon,c=s.data.productLimits,o.couponToken=l.couponToken,m=[],l.skupAllowType)for(d=l.skupAllowType.split(","),v=0;v<d.length;v++)m.push(f[d[v]]);if(y=[],l.businessClient)for(b=l.businessClient.split(","),k=0;k<b.length;k++)y.push(h[b[k]]);x=1===l.checkRequired,console.log("=====:"+x),n={id:e,couponName:l.couponName,couponNum:l.couponNum,couponType:l.couponType||0,useNum:l.useNum,couponAmount:l.couponAmount,useLimitType:l.useLimitType,remark:l.remark,productLimitType:l.productLimitType,productLimitValue:(c||[]).map(function(e){return e.productId}).join(","),useLimitValue:l.useLimitValue,time:[u.a.unix(l.startTime).format("YYYY-MM-DD HH:mm:ss"),u.a.unix(l.endTime).format("YYYY-MM-DD HH:mm:ss")],receiveTime:[u.a.unix(l.receiveStartTime).format("YYYY-MM-DD HH:mm:ss"),u.a.unix(l.receiveEndTime).format("YYYY-MM-DD HH:mm:ss")],skupAllowTypeLabel:m,skupAllowType:l.skupAllowType,businessClientLabel:y,businessClient:l.businessClient,checkRequired:l.checkRequired,isCheckRequired:x}}else s.message&&o.$Message.warning(s.message);case 13:o.formData=n;case 14:case"end":return r.stop()}},i,o)}))()},onOk:function(){var e=this;this.$refs.formCoupon.validate(function(t){t?e.saveData(e.formData):(e.posting=!1,e.$nextTick(function(){e.posting=!0}))})},getCheckRequired:function(e){this.formData.checkRequired=e?1:0},getCheckBox:function(){for(var e=[],t=0;t<this.formData.skupAllowTypeLabel.length;t++){var a=this.formData.skupAllowTypeLabel[t];e.push(d[a])}this.formData.skupAllowType=e.join(",")},getChannelCheckBox:function(){for(var e=[],t=0;t<this.formData.businessClientLabel.length;t++){var a=this.formData.businessClientLabel[t];e.push(v[a])}this.formData.businessClient=e.join(",")},saveData:function(e){var t=this;return n()(r.a.mark(function a(){var o;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!t.allreadonly){a.next=3;break}return t.visiable=!1,a.abrupt("return");case 3:return a.next=5,p._post("/ufoPlatform/coupon/saveOrUpdateCoupon",{id:e.id||void 0,couponName:e.couponName,couponAmount:e.couponAmount,couponNum:e.couponNum,couponType:e.couponType,useNum:e.useNum,useLimitValue:e.useLimitValue,productLimitType:e.productLimitType,productLimitValue:e.productLimitValue,remark:e.remark,useLimitType:parseInt(e.useLimitType)>=0?e.useLimitType:void 0,startTime:e.time[0]?u()(e.time[0]).unix():void 0,endTime:e.time[1]?u()(e.time[1]).unix():void 0,skupAllowType:e.skupAllowType,businessClient:e.businessClient,receiveStartTime:e.receiveTime[0]?u()(e.receiveTime[0]).unix():void 0,receiveEndTime:e.receiveTime[1]?u()(e.receiveTime[1]).unix():void 0,checkRequired:e.checkRequired});case 5:o=a.sent,200===o.code?(t.$Message.success("保存成功"),t.visiable=!1,t.$emit("on-created")):(o.message&&t.$Message.warning(o.message),t.posting=!1,t.$nextTick(function(){t.posting=!0}));case 7:case"end":return a.stop()}},a,t)}))()},onBeforeUpload:function(e){var t=this;if("xlsx"!==e.name.split(".").pop().toLocaleLowerCase())return this.$Message.warning("文件格式错误"),!1;if(e.size>1048576)return this.$Message.warning("文件大小超过1M"),!1;var a=new FileReader;return a.readAsArrayBuffer(e),a.onloadstart=function(){t.uploadTxt="开始读取"},a.onprogress=function(e){t.uploadTxt="进度:"+Math.round(e.loaded/e.total*100)+"..."},a.onerror=function(){t.uploadTxt="文件读取出错"},a.onload=function(e){t.uploadTxt="";try{var a=e.target.result,o=m.a.read(a,{type:"array"}),r=o.SheetNames[0],i=o.Sheets[r],n=m.a.utils.sheet_to_json(i);t.formData.productLimitValue=n.map(function(e){return e["商品编码"]}).filter(function(e){return e}).join(",")}catch(e){t.uploadTxt="文件解析失败,请按照格式上传"}},!1},onExample:function(){var e=m.a.utils.book_new(),t=m.a.utils.json_to_sheet([{"商品编码":"123456"}]);m.a.utils.book_append_sheet(e,t,"优惠券适用范围示例"),m.a.writeFile(e,"优惠券适用范围示例.xlsx")}}}}},[139]);
\ No newline at end of file
... ...
webpackJsonp([1],{10:function(e,t){e.exports=Vue},139:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(140),r=a(18);Object(r.a)(o.a)},140:function(e,t,a){"use strict";function o(e){n||a(141)}var r=a(63),i=a(214),n=!1,s=a(0),l=o,u=s(r.a,i.a,!1,l,null,null);u.options.__file="src/views/coupon/index.vue",t.a=u.exports},141:function(e,t){},210:function(e,t,a){"use strict";function o(e){n||a(211)}var r=a(91),i=a(213),n=!1,s=a(0),l=o,u=s(r.a,i.a,!1,l,"data-v-35ed785d",null);u.options.__file="src/views/coupon/components/modal-create-coupon.vue",t.a=u.exports},211:function(e,t){},212:function(e,t){e.exports=XLSX},213:function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{loading:e.posting,title:e.allreadonly?"查看优惠券":"创建/编辑优惠券",width:"600"},on:{"on-ok":e.onOk},model:{value:e.visiable,callback:function(t){e.visiable=t},expression:"visiable"}},[e.loading?a("Spin"):a("Form",{ref:"formCoupon",attrs:{rules:e.ruleValidate,model:e.formData,"label-width":80}},[a("FormItem",{staticClass:"form-group",attrs:{label:"优惠券类型"}}),e._v(" "),a("FormItem",{attrs:{label:"优惠券类型",prop:"couponType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly},model:{value:e.formData.couponType,callback:function(t){e.$set(e.formData,"couponType",t)},expression:"formData.couponType"}},[a("Option",{attrs:{value:0}},[e._v("请选择")]),e._v(" "),a("Option",{attrs:{value:100}},[e._v("活动券")]),e._v(" "),a("Option",{attrs:{value:110}},[e._v("运费券")])],1)],1),e._v(" "),a("FormItem",{staticClass:"form-group",attrs:{label:"基本信息"}}),e._v(" "),e.couponToken?a("FormItem",{attrs:{label:"Token"}},[e._v(e._s(e.couponToken))]):e._e(),e._v(" "),a("FormItem",{attrs:{label:"名称",prop:"couponName"}},[a("Input",{staticStyle:{width:"200px"},attrs:{placeholder:"名称建议30字以内",disabled:e.allreadonly},model:{value:e.formData.couponName,callback:function(t){e.$set(e.formData,"couponName",t)},expression:"formData.couponName"}})],1),e._v(" "),a("FormItem",{attrs:{label:"数量",prop:"couponNum"}},[a("InputNumber",{staticStyle:{width:"100px"},attrs:{placeholder:"数量",disabled:e.allreadonly},model:{value:e.formData.couponNum,callback:function(t){e.$set(e.formData,"couponNum",t)},expression:"formData.couponNum"}})],1),e._v(" "),a("FormItem",{attrs:{label:"使用次数",prop:"useNum"}},[a("Input",{staticStyle:{width:"100px"},attrs:{placeholder:"使用次数",disabled:""},model:{value:e.formData.useNum,callback:function(t){e.$set(e.formData,"useNum",t)},expression:"formData.useNum"}})],1),e._v(" "),a("FormItem",{attrs:{label:"使用期限",prop:"time"}},[a("DatePicker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange",disabled:e.allreadonly,placeholder:"使用期限",format:"yyyy-MM-dd HH:mm:ss"},model:{value:e.formData.time,callback:function(t){e.$set(e.formData,"time",t)},expression:"formData.time"}})],1),e._v(" "),a("FormItem",{attrs:{label:"领券期限",prop:"receiveTime"}},[a("DatePicker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange",disabled:e.readonly,placeholder:"领券期限",format:"yyyy-MM-dd HH:mm:ss"},model:{value:e.formData.receiveTime,callback:function(t){e.$set(e.formData,"receiveTime",t)},expression:"formData.receiveTime"}})],1),e._v(" "),a("FormItem",{attrs:{label:"优惠券说明",prop:"remark"}},[a("Input",{attrs:{type:"textarea",placeholder:"优惠券使用条件简介",disabled:e.allreadonly},model:{value:e.formData.remark,callback:function(t){e.$set(e.formData,"remark",t)},expression:"formData.remark"}})],1),e._v(" "),a("FormItem",{staticClass:"form-group",attrs:{label:"使用条件"}}),e._v(" "),a("FormItem",{staticStyle:{display:"inline-block",width:"100%"},attrs:{label:"优惠条件",prop:"useLimitType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly},model:{value:e.formData.useLimitType,callback:function(t){e.$set(e.formData,"useLimitType",t)},expression:"formData.useLimitType"}},[a("Option",{attrs:{value:0}},[e._v("无限制")]),e._v(" "),a("Option",{attrs:{value:2}},[e._v("金额")])],1),e._v(" "),2===e.formData.useLimitType?a("div",{staticStyle:{display:"inline-block"}},[e._v("\n  \n 金额满:\n "),a("InputNumber",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly,placeholder:"限制金额"},model:{value:e.formData.useLimitValue,callback:function(t){e.$set(e.formData,"useLimitValue",t)},expression:"formData.useLimitValue"}})],1):e._e()],1),e._v(" "),a("FormItem",{attrs:{label:"优惠金额",prop:"couponAmount"}},[a("InputNumber",{staticStyle:{width:"100px"},attrs:{placeholder:"优惠金额",disabled:e.readonly},model:{value:e.formData.couponAmount,callback:function(t){e.$set(e.formData,"couponAmount",t)},expression:"formData.couponAmount"}})],1),e._v(" "),a("FormItem",{attrs:{label:"适用范围",prop:"productLimitType"}},[a("Select",{staticStyle:{width:"100px"},attrs:{disabled:e.readonly},model:{value:e.formData.productLimitType,callback:function(t){e.$set(e.formData,"productLimitType",t)},expression:"formData.productLimitType"}},[a("Option",{attrs:{value:1}},[e._v("指定商品")]),e._v(" "),a("Option",{attrs:{value:2}},[e._v("全部商品")]),e._v(" "),a("Option",{attrs:{value:3}},[e._v("排除商品")])],1)],1),e._v(" "),1===e.formData.productLimitType||3===e.formData.productLimitType?a("FormItem",{attrs:{prop:"productLimitValue"}},[a("Input",{attrs:{type:"textarea",disabled:e.readonly,placeholder:"填写商品编码,多个商品编码用英文逗号分隔"},model:{value:e.formData.productLimitValue,callback:function(t){e.$set(e.formData,"productLimitValue",t)},expression:"formData.productLimitValue"}}),e._v(" "),a("Poptip",{attrs:{trigger:"hover"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("p",[e._v("1.上传文件必须是xlsx文件")]),e._v(" "),a("p",[e._v("2.第一行标题栏:商品编码")]),e._v(" "),a("p",[e._v("\n 3.\n "),a("a",{attrs:{href:"javascript:;"},on:{click:e.onExample}},[e._v("下载样例")])])]),e._v(" "),a("Upload",{attrs:{action:"",format:["xlsx"],"max-size":1024,"before-upload":e.onBeforeUpload}},[a("Button",{attrs:{type:"success",size:"small",disabled:e.readonly}},[e._v("导入")]),e._v(" "),a("p",[e._v(e._s(e.uploadTxt))])],1)],1)],1):e._e(),e._v(" "),a("FormItem",{attrs:{label:"可用商品类型"}},[a("checkbox-group",{on:{"on-change":e.getCheckBox},model:{value:e.formData.skupAllowTypeLabel,callback:function(t){e.$set(e.formData,"skupAllowTypeLabel",t)},expression:"formData.skupAllowTypeLabel"}},[a("checkbox",{attrs:{label:"极速发货",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"极速寄存",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"预售",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"瑕疵",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"二手",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"海外直邮",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"现货发货",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"现货寄存",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"闪购发货",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"闪购寄存",disabled:e.readonly}})],1)],1),e._v(" "),a("FormItem",{attrs:{label:"购买渠道",prop:"useLimitType"}},[a("checkbox-group",{on:{"on-change":e.getChannelCheckBox},model:{value:e.formData.businessClientLabel,callback:function(t){e.$set(e.formData,"businessClientLabel",t)},expression:"formData.businessClientLabel"}},[a("checkbox",{attrs:{label:"UFO",disabled:e.readonly}}),e._v(" "),a("checkbox",{attrs:{label:"闲鱼",disabled:e.readonly}})],1)],1),e._v(" "),a("FormItem",{attrs:{label:"需要校验",prop:"checkRequired"}},[a("checkbox",{attrs:{disabled:e.readonly},on:{"on-change":e.getCheckRequired},model:{value:e.formData.isCheckRequired,callback:function(t){e.$set(e.formData,"isCheckRequired",t)},expression:"formData.isCheckRequired"}})],1)],1)],1)},r=[];o._withStripped=!0;var i={render:o,staticRenderFns:r};t.a=i},214:function(e,t,a){"use strict";var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("LayoutContent",{attrs:{breads:[{title:"优惠券列表"}]}},[a("LayoutFilter",{on:{"on-filter":e.onFilter,"on-clear":e.onClear}},[a("Form",{ref:"filterForm",attrs:{inline:"",model:e.filter}},[a("FormItem",{attrs:{prop:"id"}},[a("Input",{attrs:{placeholder:"输入ID"},model:{value:e.filter.id,callback:function(t){e.$set(e.filter,"id",t)},expression:"filter.id"}})],1),e._v(" "),a("FormItem",{attrs:{prop:"name"}},[a("Input",{attrs:{placeholder:"输入券名称"},model:{value:e.filter.name,callback:function(t){e.$set(e.filter,"name",t)},expression:"filter.name"}})],1),e._v(" "),a("FormItem",{attrs:{prop:"status"}},[a("Select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择状态"},model:{value:e.filter.status,callback:function(t){e.$set(e.filter,"status",t)},expression:"filter.status"}},[a("Option",{attrs:{value:0}},[e._v("未生效")]),e._v(" "),a("Option",{attrs:{value:1}},[e._v("生效中")]),e._v(" "),a("Option",{attrs:{value:2}},[e._v("已过期")]),e._v(" "),a("Option",{attrs:{value:3}},[e._v("已作废")])],1)],1),e._v(" "),a("FormItem",{attrs:{prop:"time"}},[a("DatePicker",{staticStyle:{width:"250px"},attrs:{type:"datetimerange",placeholder:"开始-结束时间",format:"yyyy-MM-dd HH:mm"},model:{value:e.filter.time,callback:function(t){e.$set(e.filter,"time",t)},expression:"filter.time"}})],1)],1)],1),e._v(" "),a("LayoutTools",[a("Button",{attrs:{type:"success",icon:"md-add"},on:{click:e.onCreateCoupon}},[e._v("新增优惠券")])],1),e._v(" "),a("LayoutTable",{attrs:{page:e.page,total:e.total,columns:e.columns,data:e.data},on:{"on-page-change":e.onPageChange}},[a("template",{staticClass:"btns",slot:"footer"},[a("Button",{attrs:{type:"primary",icon:"ios-cloud-download"},on:{click:e.onExport}},[e._v("导出")])],1)],2),e._v(" "),a("ModalCreateCoupon",{ref:"modalCreateCoupon",on:{"on-created":e.onCreated}})],1)},r=[];o._withStripped=!0;var i={render:o,staticRenderFns:r};t.a=i},5:function(e,t){e.exports=iview},63:function(e,t,a){"use strict";var o=a(13),r=a.n(o),i=a(21),n=a.n(i),s=a(22),l=a.n(s),u=a(5),c=(a.n(u),a(16)),m=a(17),p=a.n(m),d=a(44),f=a(27),v=a.n(f),h=a(210),y=new c.a;t.a={name:"CouponPage",data:function(){var e=this;this.$createElement;return{filter:{id:"",name:"",status:"",time:["",""]},page:1,total:0,data:[],columns:[{title:"ID",key:"id",width:80},{title:"券名称",key:"name",width:180},{title:"token",key:"token",width:180},{title:"数量",key:"couponNum",width:90},{title:"已发放",key:"sendNum",width:90},{title:"已使用",key:"useNum",width:90},{title:"使用期限",key:"useTime",width:165},{title:"优惠券说明",key:"remark",align:"center",width:150},{title:"状态",align:"center",key:"status"},{title:"操作",align:"center",width:200,render:function(t,a){var o=a.row;return t("div",[t(u.Button,{attrs:{type:"success",size:"small"},on:{click:function(){return e.onEditCoupon(o,!0,!0)}}},["查看详情"]),"未生效"===o.status||"生效中"===o.status?t(u.Button,{attrs:{type:"primary",size:"small"},on:{click:function(){return e.onEditCoupon(o)}}},["修改"]):void 0,t(u.Button,{attrs:{type:"warning",size:"small"},on:{click:function(){return e.onToRecord(o)}}},["发放记录"]),"未生效"===o.status||"生效中"===o.status?t(u.Button,{attrs:{type:"success",size:"small"},on:{click:function(){return e.onSendCoupon(o)}}},["发券"]):void 0])}}]}},created:function(){var e=this;this.$nextTick(function(){var t=v.a.parse(location.search?location.search.slice(1):""),a=t.page,o=t.id,r=t.name,i=t.status,n=t.startTime,s=t.endTime;e.filter.id=o||e.filter.id,e.filter.name=r?decodeURIComponent(r):e.filter.name,e.filter.status=i?parseInt(i):e.filter.status,e.filter.time=n&&s?[p()(n),p()(s)]:e.filter.time,e.page=a?parseInt(a):1,e.fetchData(e.filter,e.page)})},methods:{onToRecord:function(e){var t=e.id;location.href="send-record.html?"+v.a.stringify({id:t,param:{id:this.filter.id||void 0,name:this.filter.name||void 0,status:this.filter.status||void 0,startTime:this.filter.time[0]||void 0,endTime:this.filter.time[1]||void 0,page:this.page||void 0}})},onSendCoupon:function(e){var t=e.id,a=e.token;t&&a&&(location.href="send-coupon.html?"+v.a.stringify({id:t,token:a}))},onCreated:function(){this.fetchData(this.filter)},onFilter:function(){this.fetchData(this.filter)},onClear:function(){this.$refs.filterForm.resetFields(),this.fetchData(this.filter)},onPageChange:function(e){this.fetchData(this.filter,e)},onCreateCoupon:function(){this.$refs.modalCreateCoupon.show()},onEditCoupon:function(e,t,a){var o=e.id;e.sendNum>0&&(t=!0),this.$refs.modalCreateCoupon.show(o,t,a)},onExport:function(){var e=this;return l()(n.a.mark(function t(){var a;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.$Loading.start(),t.next=3,y._get("/ufoPlatform/coupon/export",{param:{method:"coupon",param:y._2params(e.getParams(e.filter))}},{responseType:"blob"});case 3:a=t.sent,a instanceof Blob?(d.a.downloadBlob(a,"优惠券导出_"+p()().format("YYYY-MM-DD")+".xlsx"),e.$Loading.finish()):a&&(a.message&&e.$Message.warning(a.message),e.$Loading.error());case 5:case"end":return t.stop()}},t,e)}))()},fetchData:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return l()(n.a.mark(function o(){var i;return n.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return t.page=a,t.$Loading.start(),o.next=4,y._get("/ufoPlatform/coupon/queryCoupons",r()({page:a},t.getParams(e)));case 4:i=o.sent,200===i.code?(t.total=i.data.total,t.data=i.data.coupons,t.$Loading.finish()):(i.message&&t.$Message.warning(i.message),t.$Loading.error());case 6:case"end":return o.stop()}},o,t)}))()},getParams:function(e){var t=e.time[0]?p()(e.time[0]).unix():void 0,a=e.time[1]?p()(e.time[1]).unix():void 0,o=parseInt(e.status)>=0?e.status:void 0,r=p()().unix();return{id:e.id,name:e.name,status:o,startTime:t,endTime:a,curTime:r}}},components:{ModalCreateCoupon:h.a}}},91:function(e,t,a){"use strict";var o=a(21),r=a.n(o),i=a(22),n=a.n(i),s=a(16),l=a(17),u=a.n(l),c=a(212),m=a.n(c),p=new s.a,d={"极速发货":"9-N","极速寄存":"9-Y","预售":"4","瑕疵":"5","二手":"6","海外直邮":"17","现货发货":"1-N","现货寄存":"1-Y","闪购发货":"3-N","闪购寄存":"3-Y"},f={"9-N":"极速发货","9-Y":"极速寄存",4:"预售",5:"瑕疵",6:"二手",17:"海外直邮","1-N":"现货发货","1-Y":"现货寄存","3-N":"闪购发货","3-Y":"闪购寄存"},v={UFO:"ufo","闲鱼":"h5/xianyu"},h={ufo:"UFO","h5/xianyu":"闲鱼"};t.a={components:{},name:"ModalCreateCoupon",data:function(){var e=this;return{readonly:!1,allreadonly:!1,visiable:!1,loading:!1,posting:!0,uploadTxt:"",couponToken:"",formData:{id:0,couponName:"",couponType:0,couponNum:0,useNum:1,couponAmount:0,useLimitType:0,remark:"",productLimitType:2,productLimitValue:"",useLimitValue:0,time:["",""],receiveTime:["",""],skupAllowTypeLabel:[],skupAllowType:"",businessClient:"",checkRequired:0,isCheckRequired:!0},ruleValidate:{couponType:{required:!0,validator:function(e,t,a){0===t||"0"===t?a(new Error("请选择优惠券类型")):a()}},couponName:{required:!0,max:30,message:"请输入名称"},couponNum:{type:"number",required:!0,min:1,message:"请输入数量"},couponAmount:{type:"number",required:!0,min:1,message:"请输入优惠金额"},time:{required:!0,validator:function(e,t,a){t.some(function(e){return!e})?a(new Error("请选择使用期限")):a()}},receiveTime:{required:!0,validator:function(t,a,o){if(a.some(function(e){return!e}))o(new Error("请选择领券期限"));else{(e.formData.time[1]?u()(e.formData.time[1]).unix():void 0)<(a[1]?u()(a[1]).unix():void 0)?o(new Error("请选择领券结束时间小于使用结束时间")):o()}}},remark:{required:!0,message:"请输入优惠券说明"},useLimitType:{required:!0,validator:function(t,a,o){a>=0?2===a?parseInt(e.formData.useLimitValue)>0?o():o(new Error("请输入限制金额")):o():o(new Error("请选择优惠条件"))}},productLimitValue:{required:!1,validator:function(e,t,a){var o=(t||"").split(",");t&&o.length?o.some(function(e){return!!e&&!parseInt(e)})?a(new Error("适用范围格式错误")):a():a(new Error("请输入适用范围"))}},productLimitType:{required:!0,validator:function(e,t,a){1===t||2===t||3===t?a():a(new Error("请选择类型"))}}}}},methods:{show:function(e,t,a){var o=this;return n()(r.a.mark(function i(){var n,s,l,c,m,d,v,y,b,k,x;return r.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o.readonly=t,o.allreadonly=a,o.posting=o.visiable=!0,o.$refs.formCoupon.resetFields(),o.couponToken="",n={id:0,couponName:"",couponNum:0,couponType:0,useNum:1,couponAmount:0,useLimitType:0,remark:"",productLimitValue:"",productLimitType:2,useLimitValue:0,time:["",""],skupAllowTypeLabel:[],skupAllowType:"",businessClientLabel:[],businessClient:"",checkRequired:0},!e){r.next=13;break}return o.loading=!0,r.next=10,p._get("/ufoPlatform/coupon/getCouponInfo",{id:e});case 10:if(s=r.sent,o.loading=!1,200===s.code){if(l=s.data.coupon,c=s.data.productLimits,o.couponToken=l.couponToken,m=[],l.skupAllowType)for(d=l.skupAllowType.split(","),v=0;v<d.length;v++)m.push(f[d[v]]);if(y=[],l.businessClient)for(b=l.businessClient.split(","),k=0;k<b.length;k++)y.push(h[b[k]]);x=1===l.checkRequired,console.log("=====:"+x),n={id:e,couponName:l.couponName,couponNum:l.couponNum,couponType:l.couponType||0,useNum:l.useNum,couponAmount:l.couponAmount,useLimitType:l.useLimitType,remark:l.remark,productLimitType:l.productLimitType,productLimitValue:(c||[]).map(function(e){return e.productId}).join(","),useLimitValue:l.useLimitValue,time:[u.a.unix(l.startTime).format("YYYY-MM-DD HH:mm:ss"),u.a.unix(l.endTime).format("YYYY-MM-DD HH:mm:ss")],receiveTime:[u.a.unix(l.receiveStartTime).format("YYYY-MM-DD HH:mm:ss"),u.a.unix(l.receiveEndTime).format("YYYY-MM-DD HH:mm:ss")],skupAllowTypeLabel:m,skupAllowType:l.skupAllowType,businessClientLabel:y,businessClient:l.businessClient,checkRequired:l.checkRequired,isCheckRequired:x}}else s.message&&o.$Message.warning(s.message);case 13:o.formData=n;case 14:case"end":return r.stop()}},i,o)}))()},onOk:function(){var e=this;this.$refs.formCoupon.validate(function(t){t?e.saveData(e.formData):(e.posting=!1,e.$nextTick(function(){e.posting=!0}))})},getCheckRequired:function(e){this.formData.checkRequired=e?1:0},getCheckBox:function(){for(var e=[],t=0;t<this.formData.skupAllowTypeLabel.length;t++){var a=this.formData.skupAllowTypeLabel[t];e.push(d[a])}this.formData.skupAllowType=e.join(",")},getChannelCheckBox:function(){for(var e=[],t=0;t<this.formData.businessClientLabel.length;t++){var a=this.formData.businessClientLabel[t];e.push(v[a])}this.formData.businessClient=e.join(",")},saveData:function(e){var t=this;return n()(r.a.mark(function a(){var o;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!t.allreadonly){a.next=3;break}return t.visiable=!1,a.abrupt("return");case 3:return a.next=5,p._post("/ufoPlatform/coupon/saveOrUpdateCoupon",{id:e.id||void 0,couponName:e.couponName,couponAmount:e.couponAmount,couponNum:e.couponNum,couponType:e.couponType,useNum:e.useNum,useLimitValue:e.useLimitValue,productLimitType:e.productLimitType,productLimitValue:e.productLimitValue,remark:e.remark,useLimitType:parseInt(e.useLimitType)>=0?e.useLimitType:void 0,startTime:e.time[0]?u()(e.time[0]).unix():void 0,endTime:e.time[1]?u()(e.time[1]).unix():void 0,skupAllowType:e.skupAllowType,businessClient:e.businessClient,receiveStartTime:e.receiveTime[0]?u()(e.receiveTime[0]).unix():void 0,receiveEndTime:e.receiveTime[1]?u()(e.receiveTime[1]).unix():void 0,checkRequired:e.checkRequired});case 5:o=a.sent,200===o.code?(t.$Message.success("保存成功"),t.visiable=!1,t.$emit("on-created")):(o.message&&t.$Message.warning(o.message),t.posting=!1,t.$nextTick(function(){t.posting=!0}));case 7:case"end":return a.stop()}},a,t)}))()},onBeforeUpload:function(e){var t=this;if("xlsx"!==e.name.split(".").pop().toLocaleLowerCase())return this.$Message.warning("文件格式错误"),!1;if(e.size>1048576)return this.$Message.warning("文件大小超过1M"),!1;var a=new FileReader;return a.readAsArrayBuffer(e),a.onloadstart=function(){t.uploadTxt="开始读取"},a.onprogress=function(e){t.uploadTxt="进度:"+Math.round(e.loaded/e.total*100)+"..."},a.onerror=function(){t.uploadTxt="文件读取出错"},a.onload=function(e){t.uploadTxt="";try{var a=e.target.result,o=m.a.read(a,{type:"array"}),r=o.SheetNames[0],i=o.Sheets[r],n=m.a.utils.sheet_to_json(i);t.formData.productLimitValue=n.map(function(e){return e["商品编码"]}).filter(function(e){return e}).join(",")}catch(e){t.uploadTxt="文件解析失败,请按照格式上传"}},!1},onExample:function(){var e=m.a.utils.book_new(),t=m.a.utils.json_to_sheet([{"商品编码":"123456"}]);m.a.utils.book_append_sheet(e,t,"优惠券适用范围示例"),m.a.writeFile(e,"优惠券适用范围示例.xlsx")}}}}},[139]);
\ No newline at end of file
webpackJsonp([8],{241:function(n,c){}},[241]);
\ No newline at end of file
... ...
webpackJsonp([7],{10:function(t,e){t.exports=Vue},133:function(t,e,a){"use strict";var o=a(13),i=a.n(o),s=a(28),r=a.n(s),l=a(2),n=a(11),c=a(45),d=a(102),m=a(131),u=a(62),h=a.n(u);e.a={name:"resourceEditNew",components:{Divide:m.a,bannerEditor:c.a,SmartFloor:d.a,draggable:h.a},data:function(){return{title:"",list:[],floorList:[],modalInfo:{modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:"",hideAddButton:!0,isSelectAction:!1},singleData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}},type:3,template_intro:"一张图",template_name:"singleImage",resContentId:0},twoData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}},1:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}},type:4,template_intro:"两张图",template_name:"twoPicture",resContentId:0},threeData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}},1:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}},2:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}},type:5,template_intro:"三张图(左一右二)",template_name:"threePicture",resContentId:0},imageListData:{data:{list:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}}},type:6,template_intro:"热门系列",template_name:"imageList",resContentId:0},guessLikeData:{data:{list:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.pool",url:"https://m.yohobuy.com/?pagename=productList"}}}},type:7,template_intro:"商品池Tab",template_name:"guessLike",resContentId:0},tabFloorData:{data:{list:{0:{tabName:"",code:"",hideDeleteButton:!0,url:{action:"go.channel",url:""}}}},type:8,template_intro:"首页频道Tab",template_name:"tabFloor",resContentId:0},foucsData:{data:{list:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}}},type:9,template_intro:"焦点图",template_name:"focus",resContentId:0},resId:null,bg:"",show:!1,modalData:[],uploadData:{id:l.a.getQueryString("id"),items:[]}}},mounted:function(){this.resId=l.a.getQueryString("id"),this.platform=l.a.getQueryString("platform"),this.title=l.a.getQueryString("name"),this.resourceService=new n.a,this.getResourceDetailList()},methods:{getResourceDetailList:function(){var t=this;this.resourceService.info(this.resId).then(function(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,"imageList"===a.template_name&&5==a.size?(a.itemClass="hot-image-list-item-5",a.titleClass="item-title-5",a.imageClass="item-image-5"):(a.itemClass="",a.titleClass="",a.imageClass=""),this.floorList.push(a)}},showModal:function(t,e,a){var o=0,i="",s=!0,r=!1,l=e.data.list;l||(l=e.data);for(var n in l){var c=l[n];this.modalData.push(c)}switch(t){case"singleImage":o=3,i="一张图",s=!0,r=!1;break;case"twoPicture":o=4,i="两张图",s=!0,r=!1;break;case"threePicture":o=5,i="三张图(左一右二)",s=!0,r=!1;break;case"imageList":o=6,i="热门系列",s=!1,r=!1;break;case"guessLike":o=7,i="商品池",s=!1,r=!0;break;case"tabFloor":o=8,i="首页频道Tab",s=!1,r=!0;break;case"focus":o=9,i="焦点图",s=!1,r=!1}o&&(this.modalInfo.modalType=o,this.modalInfo.modalTitle=i,this.modalInfo.resContentId=e.resContentId,this.modalInfo.template_intro=e.template_intro,this.modalInfo.template_name=e.template_name,this.modalInfo.size=e.size||"0",this.modalInfo.floorIndex=a,this.modalInfo.hideAddButton=s,this.modalInfo.isSelectAction=r,this.show=!0)},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&&2e3===t.code?(e.$Message.success(t.message||"修改成功!"),e.getResourceDetailList()):e.$Message.error(t.message||"修改失败!"),e.modalData=[],e.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:"",size:"0"}})}})},onOk:function(){var t=this,e=this.$refs.addEditor.getValue(),a=this.$refs.addEditor.getType(),o=0;for(var s in e)if(o++,""===e[s].url.url)return this.modalData=[],void this.$Message.error("请填写所有信息后再提交!");var l=e;"tabFloor"===this.modalInfo.template_name&&(l={list:e});var n=this.modalInfo.template_name,c=this.modalInfo.template_intro,d={id:this.modalInfo.resContentId,contentName:"楼层"+(this.floorList.length+1),templateKey:"123",contentData:r()({template_name:n,template_intro:c,data:l,size:a}),type:this.modalInfo.modalType};-1===this.modalInfo.floorIndex?this.uploadData.items.push(d):(d=i()(d,{contentName:this.uploadData.items[this.modalInfo.floorIndex].contentName}),this.uploadData.items[this.modalInfo.floorIndex]=d),this.resourceService.addOrUpdateResourceDetail(this.uploadData).then(function(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:"",size:"0"},t.show=!1):t.$Message.error(e.message||"修改失败!")}),this.$refs.addEditor.reSetType()},onCancel:function(){this.modalData=[],this.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:"",size:"0"},this.show=!1}}}},341:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(342),i=a(18);Object(i.a)(o.a)},342:function(t,e,a){"use strict";function o(t){r||a(343)}var i=a(133),s=a(344),r=!1,l=a(0),n=o,c=l(i.a,s.a,!1,n,null,null);c.options.__file="src/views/resource-edit-new/index.vue",e.a=c.exports},343:function(t,e){},344: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(" "),o("draggable",{on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1}},model:{value:t.floorList,callback:function(e){t.floorList=e},expression:"floorList"}},[t._l(t.floorList,function(e,i){return[o("div",{staticClass:"floor-item"},["focus"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"100%"},attrs:{src:e.data[0].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("focus",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"singleImage"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"100%"},attrs:{src:e.data[0].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("singleImage",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[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(12)}}),t._v(" "),o("img",{staticStyle:{width:"50%",height:"120px"},attrs:{src:e.data[1].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("twoPicture",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"threePicture"===e.template_name?o("div",{staticClass:"floor-image-three-root"},[o("div",{staticClass:"floor-image-three"},[o("img",{staticClass:"floor-image-three-left",attrs:{src:e.data[0].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-image-three-right-root"},[o("img",{staticClass:"floor-image-three-right-item",attrs:{src:e.data[1].src.split("?")[0]||a(12)}}),t._v(" "),o("img",{staticClass:"floor-image-three-right-item",attrs:{src:e.data[2].src.split("?")[0]||a(12)}})])]),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("threePicture",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"imageList"===e.template_name?o("div",{staticClass:"floor-image-hot"},[o("div",{staticClass:"hot-image-list"},[o("div",{staticClass:"hot-image-list-title"},[t._v(t._s(t.name)+"热门系列")]),t._v(" "),o("div",{staticClass:"hot-image-list-body"},t._l(e.data,function(a,i){return o("div",{key:i,staticClass:"hot-image-list-item",class:e.itemClass},[o("img",{staticClass:"item-image",class:e.imageClass,attrs:{src:a.src?a.src.split("?")[0]:"",alt:"",srcset:""}}),t._v(" "),o("p",{staticClass:"item-title",class:e.titleClass},[t._v(t._s(a.title))])])}),0)]),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("imageList",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"guessLike"===e.template_name?o("div",{staticClass:"floor-image-sort-tab"},[o("div",{staticClass:"sort-tab-body"},t._l(e.data,function(e,a){return o("p",{key:a,staticClass:"sort-tab"},[t._v(t._s(e.title))])}),0),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("guessLike",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"tabFloor"===e.template_name?o("div",{staticClass:"floor-image-sort-tab"},[o("div",{staticClass:"sort-tab-body"},t._l(e.data.list,function(e,a){return o("p",{key:a,staticClass:"sort-tab"},[t._v(t._s(e.tabName))])}),0),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("tabFloor",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e()]),t._v(" "),o("divide")]})],2)],1)],1),t._v(" "),o("div",{staticClass:"button-container"},[o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("singleImage",t.singleData,-1)}}},[t._v("一张图")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("twoPicture",t.twoData,-1)}}},[t._v("两张图")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("threePicture",t.threeData,-1)}}},[t._v("三张图(左一右二)")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("imageList",t.imageListData,-1)}}},[t._v("热门系列")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("guessLike",t.guessLikeData,-1)}}},[t._v("商品池")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("tabFloor",t.tabFloorData,-1)}}},[t._v("首页频道Tab")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("focus",t.foucsData,-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:t.modalInfo.hideAddButton,hideDeleteButton:!0,type:t.platform,isSelectAction:t.modalInfo.isSelectAction,templateName:t.modalInfo.template_name,size:t.modalInfo.size},model:{value:t.modalData,callback:function(e){t.modalData=e},expression:"modalData"}})],1)],1)])},i=[];o._withStripped=!0;var s={render:o,staticRenderFns:i};e.a=s},5:function(t,e){t.exports=iview}},[341]);
\ No newline at end of file
webpackJsonp([7],{10:function(t,e){t.exports=Vue},133:function(t,e,a){"use strict";var o=a(13),i=a.n(o),s=a(28),r=a.n(s),l=a(2),n=a(11),c=a(45),d=a(102),m=a(131),u=a(62),h=a.n(u);e.a={name:"resourceEditNew",components:{Divide:m.a,bannerEditor:c.a,SmartFloor:d.a,draggable:h.a},data:function(){return{title:"",list:[],floorList:[],modalInfo:{modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:"",hideAddButton:!0,isSelectAction:!1},singleData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}},type:3,template_intro:"一张图",template_name:"singleImage",resContentId:0},twoData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}},1:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}},type:4,template_intro:"两张图",template_name:"twoPicture",resContentId:0},threeData:{data:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}},1:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}},2:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}},type:5,template_intro:"三张图(左一右二)",template_name:"threePicture",resContentId:0},imageListData:{data:{list:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}}},type:6,template_intro:"热门系列",template_name:"imageList",resContentId:0},guessLikeData:{data:{list:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.pool",url:"https://m.yohobuy.com/?pagename=productList"}}}},type:7,template_intro:"商品池Tab",template_name:"guessLike",resContentId:0},tabFloorData:{data:{list:{0:{tabName:"",code:"",hideDeleteButton:!0,url:{action:"go.channel",url:""}}}},type:8,template_intro:"首页频道Tab",template_name:"tabFloor",resContentId:0},foucsData:{data:{list:{0:{alt:"",bgColor:"",imgId:"0",src:"",title:"",hideDeleteButton:!0,url:{action:"go.h5",url:""}}}},type:9,template_intro:"焦点图",template_name:"focus",resContentId:0},resId:null,bg:"",show:!1,modalData:[],uploadData:{id:l.a.getQueryString("id"),items:[]}}},mounted:function(){this.resId=l.a.getQueryString("id"),this.platform=l.a.getQueryString("platform"),this.title=l.a.getQueryString("name"),this.resourceService=new n.a,this.getResourceDetailList()},methods:{getResourceDetailList:function(){var t=this;this.resourceService.info(this.resId).then(function(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,"imageList"===a.template_name&&5==a.size?(a.itemClass="hot-image-list-item-5",a.titleClass="item-title-5",a.imageClass="item-image-5"):(a.itemClass="",a.titleClass="",a.imageClass=""),this.floorList.push(a)}},showModal:function(t,e,a){var o=0,i="",s=!0,r=!1,l=e.data.list;l||(l=e.data);for(var n in l){var c=l[n];this.modalData.push(c)}switch(t){case"singleImage":o=3,i="一张图",s=!0,r=!1;break;case"twoPicture":o=4,i="两张图",s=!0,r=!1;break;case"threePicture":o=5,i="三张图(左一右二)",s=!0,r=!1;break;case"imageList":o=6,i="热门系列",s=!1,r=!1;break;case"guessLike":o=7,i="商品池",s=!1,r=!0;break;case"tabFloor":o=8,i="首页频道Tab",s=!1,r=!0;break;case"focus":o=9,i="焦点图",s=!1,r=!1}o&&(this.modalInfo.modalType=o,this.modalInfo.modalTitle=i,this.modalInfo.resContentId=e.resContentId,this.modalInfo.template_intro=e.template_intro,this.modalInfo.template_name=e.template_name,this.modalInfo.size=e.size||"0",this.modalInfo.floorIndex=a,this.modalInfo.hideAddButton=s,this.modalInfo.isSelectAction=r,this.show=!0)},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&&2e3===t.code?(e.$Message.success(t.message||"修改成功!"),e.getResourceDetailList()):e.$Message.error(t.message||"修改失败!"),e.modalData=[],e.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:"",size:"0"}})}})},onOk:function(){var t=this,e=this.$refs.addEditor.getValue(),a=this.$refs.addEditor.getType(),o=0;for(var s in e)if(o++,""===e[s].url.url)return this.modalData=[],void this.$Message.error("请填写所有信息后再提交!");var l=e;"tabFloor"===this.modalInfo.template_name&&(l={list:e});var n=this.modalInfo.template_name,c=this.modalInfo.template_intro,d={id:this.modalInfo.resContentId,contentName:"楼层"+(this.floorList.length+1),templateKey:"123",contentData:r()({template_name:n,template_intro:c,data:l,size:a}),type:this.modalInfo.modalType};-1===this.modalInfo.floorIndex?this.uploadData.items.push(d):(d=i()(d,{contentName:this.uploadData.items[this.modalInfo.floorIndex].contentName}),this.uploadData.items[this.modalInfo.floorIndex]=d),this.resourceService.addOrUpdateResourceDetail(this.uploadData).then(function(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:"",size:"0"},t.show=!1):t.$Message.error(e.message||"修改失败!")}),this.$refs.addEditor.reSetType()},onCancel:function(){this.modalData=[],this.modalInfo={modalType:0,modalTitle:"",resContentId:0,floorIndex:-1,template_intro:"",template_name:"",size:"0"},this.show=!1}}}},342:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(343),i=a(18);Object(i.a)(o.a)},343:function(t,e,a){"use strict";function o(t){r||a(344)}var i=a(133),s=a(345),r=!1,l=a(0),n=o,c=l(i.a,s.a,!1,n,null,null);c.options.__file="src/views/resource-edit-new/index.vue",e.a=c.exports},344:function(t,e){},345: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(" "),o("draggable",{on:{start:function(e){t.drag=!0},end:function(e){t.drag=!1}},model:{value:t.floorList,callback:function(e){t.floorList=e},expression:"floorList"}},[t._l(t.floorList,function(e,i){return[o("div",{staticClass:"floor-item"},["focus"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"100%"},attrs:{src:e.data[0].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("focus",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"singleImage"===e.template_name?o("div",{staticClass:"floor-image"},[o("img",{staticStyle:{width:"100%"},attrs:{src:e.data[0].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("singleImage",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[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(12)}}),t._v(" "),o("img",{staticStyle:{width:"50%",height:"120px"},attrs:{src:e.data[1].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("twoPicture",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"threePicture"===e.template_name?o("div",{staticClass:"floor-image-three-root"},[o("div",{staticClass:"floor-image-three"},[o("img",{staticClass:"floor-image-three-left",attrs:{src:e.data[0].src.split("?")[0]||a(12)}}),t._v(" "),o("div",{staticClass:"floor-image-three-right-root"},[o("img",{staticClass:"floor-image-three-right-item",attrs:{src:e.data[1].src.split("?")[0]||a(12)}}),t._v(" "),o("img",{staticClass:"floor-image-three-right-item",attrs:{src:e.data[2].src.split("?")[0]||a(12)}})])]),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("threePicture",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"imageList"===e.template_name?o("div",{staticClass:"floor-image-hot"},[o("div",{staticClass:"hot-image-list"},[o("div",{staticClass:"hot-image-list-title"},[t._v(t._s(t.name)+"热门系列")]),t._v(" "),o("div",{staticClass:"hot-image-list-body"},t._l(e.data,function(a,i){return o("div",{key:i,staticClass:"hot-image-list-item",class:e.itemClass},[o("img",{staticClass:"item-image",class:e.imageClass,attrs:{src:a.src?a.src.split("?")[0]:"",alt:"",srcset:""}}),t._v(" "),o("p",{staticClass:"item-title",class:e.titleClass},[t._v(t._s(a.title))])])}),0)]),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("imageList",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"guessLike"===e.template_name?o("div",{staticClass:"floor-image-sort-tab"},[o("div",{staticClass:"sort-tab-body"},t._l(e.data,function(e,a){return o("p",{key:a,staticClass:"sort-tab"},[t._v(t._s(e.title))])}),0),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("guessLike",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e(),t._v(" "),"tabFloor"===e.template_name?o("div",{staticClass:"floor-image-sort-tab"},[o("div",{staticClass:"sort-tab-body"},t._l(e.data.list,function(e,a){return o("p",{key:a,staticClass:"sort-tab"},[t._v(t._s(e.tabName))])}),0),t._v(" "),o("div",{staticClass:"floor-mask"},[o("div",{staticClass:"floor-edit-buttons"},[o("a",{attrs:{href:"javascript:void(0)"},on:{click:function(a){return t.showModal("tabFloor",e,i)}}},[t._v("编 辑")]),t._v(" "),o("a",{staticStyle:{"background-color":"red"},attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.showDeleteModal(i)}}},[t._v("删 除")])])])]):t._e()]),t._v(" "),o("divide")]})],2)],1)],1),t._v(" "),o("div",{staticClass:"button-container"},[o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("singleImage",t.singleData,-1)}}},[t._v("一张图")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("twoPicture",t.twoData,-1)}}},[t._v("两张图")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("threePicture",t.threeData,-1)}}},[t._v("三张图(左一右二)")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("imageList",t.imageListData,-1)}}},[t._v("热门系列")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("guessLike",t.guessLikeData,-1)}}},[t._v("商品池")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("tabFloor",t.tabFloorData,-1)}}},[t._v("首页频道Tab")]),t._v(" "),o("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showModal("focus",t.foucsData,-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:t.modalInfo.hideAddButton,hideDeleteButton:!0,type:t.platform,isSelectAction:t.modalInfo.isSelectAction,templateName:t.modalInfo.template_name,size:t.modalInfo.size},model:{value:t.modalData,callback:function(e){t.modalData=e},expression:"modalData"}})],1)],1)])},i=[];o._withStripped=!0;var s={render:o,staticRenderFns:i};e.a=s},5:function(t,e){t.exports=iview}},[342]);
\ No newline at end of file
... ...
webpackJsonp([0],{10:function(t,e){t.exports=Vue},100:function(t,e,i){"use strict";e.a={name:"miniapp",props:{title:{type:String,default:function(){return""}},bg:{type:String,default:function(){return i(101)}}}}},101:function(t,e,i){t.exports=i.p+"img/apptitle.74e80a1.png"},241:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(242),r=i(18);Object(r.a)(n.a)},242:function(t,e,i){"use strict";function n(t){a||i(243)}var r=i(98),s=i(340),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},243:function(t,e){},244:function(t,e,i){"use strict";function n(t){a||i(245)}var r=i(99),s=i(339),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},245:function(t,e){},246:function(t,e,i){"use strict";function n(t){a||i(247)}var r=i(100),s=i(248),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},247:function(t,e){},248: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},338:function(t,e,i){t.exports=i.p+"img/sort_title.ba4687f.png"},339: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},340: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},5:function(t,e){t.exports=iview},98:function(t,e,i){"use strict";var n=i(244);e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{},components:{"home-page":n.a}}},99:function(t,e,i){"use strict";var n=i(246),r=i(102),s=i(131),a=i(2),o=i(11),u={1:i(101),2:i(338)};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}}}},[241]);
\ No newline at end of file
webpackJsonp([0],{10:function(t,e){t.exports=Vue},100:function(t,e,i){"use strict";e.a={name:"miniapp",props:{title:{type:String,default:function(){return""}},bg:{type:String,default:function(){return i(101)}}}}},101:function(t,e,i){t.exports=i.p+"img/apptitle.74e80a1.png"},242:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(243),r=i(18);Object(r.a)(n.a)},243:function(t,e,i){"use strict";function n(t){a||i(244)}var r=i(98),s=i(341),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},244:function(t,e){},245:function(t,e,i){"use strict";function n(t){a||i(246)}var r=i(99),s=i(340),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},246:function(t,e){},247:function(t,e,i){"use strict";function n(t){a||i(248)}var r=i(100),s=i(249),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},248:function(t,e){},249: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},339:function(t,e,i){t.exports=i.p+"img/sort_title.ba4687f.png"},340: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},341: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},5:function(t,e){t.exports=iview},98:function(t,e,i){"use strict";var n=i(245);e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{},components:{"home-page":n.a}}},99:function(t,e,i){"use strict";var n=i(247),r=i(102),s=i(131),a=i(2),o=i(11),u={1:i(101),2:i(339)};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}}}},[242]);
\ No newline at end of file
... ...
webpackJsonp([6],{10:function(t,e){t.exports=Vue},134:function(t,e,r){"use strict";var a=r(13),s=r.n(a),o=r(21),n=r.n(o),i=r(22),c=r.n(i),u=r(5),d=(r.n(u),r(11)),l=r(17),p=r.n(l),f=r(2);e.a={name:"resourcelist",data:function(){var t=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(t,e){var r=e.row;return t("div",{style:{color:"#999"}},p.a.unix(r.createTime).format("YYYY-MM-DD HH:mm:ss"))}},{title:"操作",width:270,align:"center",render:function(e,r){var a=r.row;return e("div",{},[e("i-button",{props:{type:"success",size:"small"},on:{click:function(){return t.onToEditor(a)}}},"内容编辑"),e("i-button",{props:{type:"primary",size:"small"},style:{marginLeft:"20px",display:a.showEditButton},on:{click:function(){return t.onEditResource(a)}}},"修改信息")])}}],showAddPan:!1,platform:"1",resourceName:"",editResourceId:0}},created:function(){this.resourceService=new d.a,this.fetchData()},methods:{onToEditor:function(t){var e=t.id,r=t.name,a=t.sortId,s=t.platform;2===a?f.a.jumpUrl("resource-edit.html?id="+e+"&name="+r+"&platform="+s):3===a&&f.a.jumpUrl("resource-edit-new.html?id="+e+"&name="+r+"&platform="+s)},fetchData:function(){var t=this;return c()(n.a.mark(function e(){var r,a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$Loading.start(),e.next=3,t.resourceService.list();case 3:if(r=e.sent,200===r.code){for(a=0;a<r.data.length;a++)r.data[a].showEditButton="inline-block",2===r.data[a].sortId&&(r.data[a].showEditButton="none");t.data=r.data,t.$Loading.finish()}else r.message&&t.$Message.warning(r.message),t.$Loading.error();case 5:case"end":return e.stop()}},e,t)}))()},showAddResourcePannel:function(t){this.showAddPan=t},saveResource:function(){var t=this;if(this.resourceName){var e={name:this.resourceName,platformId:this.platform,sortId:3};this.editResourceId&&s()(e,{},{id:this.editResourceId}),this.resourceService.addOrUpdateResource(e).then(function(e){e&&200===e.code?(t.showAddPan=!1,t.$Message.success("保存成功!"),t.fetchData(),t.platform="1",t.editResourceId=0,t.resourceName=""):t.$Message.error(e.message)})}},onEditResource:function(t){this.platform=["0","APP","小程序","H5"].indexOf(t.platform).toString(),this.resourceName=t.name,this.editResourceId=t.id,this.showAddResourcePannel(!0)}}}},345:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r(346),s=r(18);Object(s.a)(a.a)},346:function(t,e,r){"use strict";function a(t){n||r(347)}var s=r(134),o=r(348),n=!1,i=r(0),c=a,u=i(s.a,o.a,!1,c,null,null);u.options.__file="src/views/resource-list/index.vue",e.a=u.exports},347:function(t,e){},348:function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("LayoutContent",{attrs:{breads:[{title:"资源位列表"}]}},[r("div",[r("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showAddResourcePannel(!0)}}},[t._v("添加资源位")])],1),t._v(" "),r("LayoutTable",{attrs:{columns:t.columns,data:t.data}}),t._v(" "),t.showAddPan?r("div",{staticClass:"resource-add-container"},[r("Card",{staticClass:"resource-add-card"},[r("p",{attrs:{slot:"title"},slot:"title"},[t._v("添加资源位")]),t._v(" "),r("a",{attrs:{slot:"extra",href:"javascript:void(0)"},on:{click:function(e){return t.showAddResourcePannel(!1)}},slot:"extra"},[r("Icon",{attrs:{type:"ios-close",size:"24"}})],1),t._v(" "),r("div",{staticClass:"resource-add-content"},[r("Row",[r("Col",{attrs:{span:"8"}},[r("label",[t._v("选择平台:")])]),t._v(" "),r("Col",{attrs:{span:"16"}},[r("Select",{staticClass:"platform-select",model:{value:t.platform,callback:function(e){t.platform=e},expression:"platform"}},[r("Option",{attrs:{value:"1"}},[t._v("App")]),t._v(" "),r("Option",{attrs:{value:"2"}},[t._v("小程序")]),t._v(" "),r("Option",{attrs:{value:"3"}},[t._v("H5")])],1)],1)],1),t._v(" "),r("Row",[r("Col",{attrs:{span:"8"}},[r("label",[t._v("资源名称:")])]),t._v(" "),r("Col",{attrs:{span:"16"}},[r("Input",{staticClass:"name-input",attrs:{placeholder:"请输入资源名称"},model:{value:t.resourceName,callback:function(e){t.resourceName=e},expression:"resourceName"}})],1)],1),t._v(" "),r("Row",[r("Col",{attrs:{span:"24"}},[r("Button",{attrs:{type:"primary"},on:{click:t.saveResource}},[t._v("保 存")])],1)],1)],1)])],1):t._e()],1)},s=[];a._withStripped=!0;var o={render:a,staticRenderFns:s};e.a=o},5:function(t,e){t.exports=iview}},[345]);
\ No newline at end of file
webpackJsonp([6],{10:function(t,e){t.exports=Vue},134:function(t,e,r){"use strict";var a=r(13),s=r.n(a),o=r(21),n=r.n(o),i=r(22),c=r.n(i),u=r(5),d=(r.n(u),r(11)),l=r(17),p=r.n(l),f=r(2);e.a={name:"resourcelist",data:function(){var t=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(t,e){var r=e.row;return t("div",{style:{color:"#999"}},p.a.unix(r.createTime).format("YYYY-MM-DD HH:mm:ss"))}},{title:"操作",width:270,align:"center",render:function(e,r){var a=r.row;return e("div",{},[e("i-button",{props:{type:"success",size:"small"},on:{click:function(){return t.onToEditor(a)}}},"内容编辑"),e("i-button",{props:{type:"primary",size:"small"},style:{marginLeft:"20px",display:a.showEditButton},on:{click:function(){return t.onEditResource(a)}}},"修改信息")])}}],showAddPan:!1,platform:"1",resourceName:"",editResourceId:0}},created:function(){this.resourceService=new d.a,this.fetchData()},methods:{onToEditor:function(t){var e=t.id,r=t.name,a=t.sortId,s=t.platform;2===a?f.a.jumpUrl("resource-edit.html?id="+e+"&name="+r+"&platform="+s):3===a&&f.a.jumpUrl("resource-edit-new.html?id="+e+"&name="+r+"&platform="+s)},fetchData:function(){var t=this;return c()(n.a.mark(function e(){var r,a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.$Loading.start(),e.next=3,t.resourceService.list();case 3:if(r=e.sent,200===r.code){for(a=0;a<r.data.length;a++)r.data[a].showEditButton="inline-block",2===r.data[a].sortId&&(r.data[a].showEditButton="none");t.data=r.data,t.$Loading.finish()}else r.message&&t.$Message.warning(r.message),t.$Loading.error();case 5:case"end":return e.stop()}},e,t)}))()},showAddResourcePannel:function(t){this.showAddPan=t},saveResource:function(){var t=this;if(this.resourceName){var e={name:this.resourceName,platformId:this.platform,sortId:3};this.editResourceId&&s()(e,{},{id:this.editResourceId}),this.resourceService.addOrUpdateResource(e).then(function(e){e&&200===e.code?(t.showAddPan=!1,t.$Message.success("保存成功!"),t.fetchData(),t.platform="1",t.editResourceId=0,t.resourceName=""):t.$Message.error(e.message)})}},onEditResource:function(t){this.platform=["0","APP","小程序","H5"].indexOf(t.platform).toString(),this.resourceName=t.name,this.editResourceId=t.id,this.showAddResourcePannel(!0)}}}},346:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r(347),s=r(18);Object(s.a)(a.a)},347:function(t,e,r){"use strict";function a(t){n||r(348)}var s=r(134),o=r(349),n=!1,i=r(0),c=a,u=i(s.a,o.a,!1,c,null,null);u.options.__file="src/views/resource-list/index.vue",e.a=u.exports},348:function(t,e){},349:function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("LayoutContent",{attrs:{breads:[{title:"资源位列表"}]}},[r("div",[r("Button",{attrs:{type:"primary"},on:{click:function(e){return t.showAddResourcePannel(!0)}}},[t._v("添加资源位")])],1),t._v(" "),r("LayoutTable",{attrs:{columns:t.columns,data:t.data}}),t._v(" "),t.showAddPan?r("div",{staticClass:"resource-add-container"},[r("Card",{staticClass:"resource-add-card"},[r("p",{attrs:{slot:"title"},slot:"title"},[t._v("添加资源位")]),t._v(" "),r("a",{attrs:{slot:"extra",href:"javascript:void(0)"},on:{click:function(e){return t.showAddResourcePannel(!1)}},slot:"extra"},[r("Icon",{attrs:{type:"ios-close",size:"24"}})],1),t._v(" "),r("div",{staticClass:"resource-add-content"},[r("Row",[r("Col",{attrs:{span:"8"}},[r("label",[t._v("选择平台:")])]),t._v(" "),r("Col",{attrs:{span:"16"}},[r("Select",{staticClass:"platform-select",model:{value:t.platform,callback:function(e){t.platform=e},expression:"platform"}},[r("Option",{attrs:{value:"1"}},[t._v("App")]),t._v(" "),r("Option",{attrs:{value:"2"}},[t._v("小程序")]),t._v(" "),r("Option",{attrs:{value:"3"}},[t._v("H5")])],1)],1)],1),t._v(" "),r("Row",[r("Col",{attrs:{span:"8"}},[r("label",[t._v("资源名称:")])]),t._v(" "),r("Col",{attrs:{span:"16"}},[r("Input",{staticClass:"name-input",attrs:{placeholder:"请输入资源名称"},model:{value:t.resourceName,callback:function(e){t.resourceName=e},expression:"resourceName"}})],1)],1),t._v(" "),r("Row",[r("Col",{attrs:{span:"24"}},[r("Button",{attrs:{type:"primary"},on:{click:t.saveResource}},[t._v("保 存")])],1)],1)],1)])],1):t._e()],1)},s=[];a._withStripped=!0;var o={render:a,staticRenderFns:s};e.a=o},5:function(t,e){t.exports=iview}},[346]);
\ No newline at end of file
... ...
webpackJsonp([5],{10:function(t,e){t.exports=Vue},135:function(t,e,n){"use strict";var a=n(16),o=n(17),s=(n.n(o),n(44),n(27)),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;var n="提示信息";200!==e.code&&(n="操作失败"),t.$Modal.info({title:n,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="";var n="提示信息";200!==e.code&&(n="操作失败"),t.$Modal.info({title:n,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}}}},349:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(350),o=n(18);Object(o.a)(a.a)},350:function(t,e,n){"use strict";function a(t){i||n(351)}var o=n(135),s=n(352),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},351:function(t,e){},352: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/uid_import.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(" "),n("p"),t._v(" "),n("p")])],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},5:function(t,e){t.exports=iview}},[349]);
\ No newline at end of file
webpackJsonp([5],{10:function(t,e){t.exports=Vue},135:function(t,e,n){"use strict";var a=n(16),o=n(17),s=(n.n(o),n(44),n(27)),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;var n="提示信息";200!==e.code&&(n="操作失败"),t.$Modal.info({title:n,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="";var n="提示信息";200!==e.code&&(n="操作失败"),t.$Modal.info({title:n,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}}}},350:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(351),o=n(18);Object(o.a)(a.a)},351:function(t,e,n){"use strict";function a(t){i||n(352)}var o=n(135),s=n(353),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},352:function(t,e){},353: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/uid_import.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(" "),n("p"),t._v(" "),n("p")])],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},5:function(t,e){t.exports=iview}},[350]);
\ No newline at end of file
... ...
webpackJsonp([2],{10:function(t,e){t.exports=Vue},136:function(t,e,a){"use strict";var o=a(21),n=a.n(o),r=a(13),s=a.n(r),i=a(22),u=a.n(i),c=a(5),l=(a.n(c),a(16)),p=a(17),d=a.n(p),f=a(44),m=a(27),v=a.n(m),h=a(356),g=new l.a;e.a={name:"SendRecordPage",data:function(){var t=this;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||"--"])}},{title:"操作",align:"center",width:200,render:function(e,a){var o=a.row;return e("div",["未使用"===o.status||"0"===o.statusValue?e(c.Button,{attrs:{type:"primary",size:"small"},on:{click:function(){return t.onUpdateTime(o)}}},["延期"]):void 0,"未使用"===o.status||"0"===o.statusValue?e(c.Button,{attrs:{type:"error",size:"small"},on:{click:function(){return t.onUpDateStatus(o)}}},["作废"]):void 0])}}]}},created:function(){var t=this;this.$nextTick(function(){var e=v.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?"+v.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)},onUpdateTime:function(t){this.$refs.sendRecordModalCreateCoupon.show(t)},onUpDateStatus:function(t){var e={uid:t.uid,couponCode:t.couponCode};this.invalidateUserCoupon(e)},fetchData:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u()(n.a.mark(function o(){var r;return n.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:r=o.sent,200===r.code?(e.total=r.data.total,e.data=r.data.userCoupons,e.$Loading.finish()):(r.message&&e.$Message.warning(r.message),e.$Loading.error());case 6:case"end":return o.stop()}},o,e)}))()},invalidateUserCoupon:function(t){var e=this;return u()(n.a.mark(function a(){var o;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e.$Loading.start(),a.next=3,g._get("/ufoPlatform/coupon/invalidateUserCoupon",t);case 3:o=a.sent,200===o.code?e.$Loading.finish():(o.message&&e.$Message.warning(o.message),e.$Loading.error());case 5:case"end":return a.stop()}},a,e)}))()},onExport:function(){var t=this;return u()(n.a.mark(function e(){var a;return n.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?(f.a.downloadBlob(a,"优惠券发放记录导出_"+d()().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}}},components:{SendRecordModalCreateCoupon:h.a}}},137:function(t,e,a){"use strict";var o=a(21),n=a.n(o),r=a(22),s=a.n(r),i=a(16),u=a(17),c=a.n(u),l=new i.a;e.a={components:{},name:"ModalCreateCoupon",data:function(){return{readonly:!1,allreadonly:!1,visiable:!1,loading:!1,posting:!0,uploadTxt:"",couponToken:"",formData:{uid:0,couponToken:"",couponId:"",couponCode:"",couponName:"",time:["",""],remark:""},ruleValidate:{time:{required:!0,validator:function(t,e,a){e.some(function(t){return!t})?a(new Error("请选择使用期限")):a()}}}}},methods:{show:function(t){var e=this;return s()(n.a.mark(function a(){var o;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:e.posting=e.visiable=!0,e.$refs.formCoupon.resetFields(),o={uid:t.uid,couponToken:t.couponToken,couponId:t.couponId,couponCode:t.couponCode,couponName:t.couponName,time:[c.a.unix(t.startTime).format("YYYY-MM-DD HH:mm:ss"),c.a.unix(t.endTime).format("YYYY-MM-DD HH:mm:ss")],remark:t.remark,startTimeStr:c.a.unix(t.startTime).format("YYYY-MM-DD HH:mm:ss"),endTimeStr:c.a.unix(t.endTime).format("YYYY-MM-DD HH:mm:ss")},e.formData=o;case 4:case"end":return a.stop()}},a,e)}))()},onOk:function(){var t=this;this.$refs.formCoupon.validate(function(e){e?t.saveData(t.formData):(t.posting=!1,t.$nextTick(function(){t.posting=!0}))})},getCheckBox:function(){for(var t=[],e=0;e<this.formData.skupAllowTypeLabel.length;e++){var a=this.formData.skupAllowTypeLabel[e];t.push(allowTypeMap[a])}this.formData.skupAllowType=t.join(",")},getChannelCheckBox:function(){for(var t=[],e=0;e<this.formData.businessClientLabel.length;e++){var a=this.formData.businessClientLabel[e];t.push(businessClientTypeMap[a])}this.formData.businessClient=t.join(",")},saveData:function(t){var e=this;return s()(n.a.mark(function a(){var o;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!e.allreadonly){a.next=3;break}return e.visiable=!1,a.abrupt("return");case 3:return a.next=5,l._post("/ufoPlatform/coupon/updateUserCoupon",{uid:t.uid||void 0,couponId:t.couponId||void 0,couponCode:t.couponCode,endTime:t.time[1]?c()(t.time[1]).unix():void 0});case 5:o=a.sent,200===o.code?(e.$Message.success("保存成功"),e.visiable=!1,e.$emit("on-created")):(o.message&&e.$Message.warning(o.message),e.posting=!1,e.$nextTick(function(){e.posting=!0}));case 7:case"end":return a.stop()}},a,e)}))()}}}},353:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(354),n=a(18);Object(n.a)(o.a)},354:function(t,e,a){"use strict";function o(t){s||a(355)}var n=a(136),r=a(359),s=!1,i=a(0),u=o,c=i(n.a,r.a,!1,u,null,null);c.options.__file="src/views/send-record/index.vue",e.a=c.exports},355:function(t,e){},356:function(t,e,a){"use strict";function o(t){s||a(357)}var n=a(137),r=a(358),s=!1,i=a(0),u=o,c=i(n.a,r.a,!1,u,"data-v-c6807168",null);c.options.__file="src/views/coupon/components/modal-update-time-coupon.vue",e.a=c.exports},357:function(t,e){},358:function(t,e,a){"use strict";var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",{attrs:{loading:t.posting,title:t.allreadonly?"查看优惠券":"创建/编辑优惠券",width:"600"},on:{"on-ok":t.onOk},model:{value:t.visiable,callback:function(e){t.visiable=e},expression:"visiable"}},[t.loading?a("Spin"):a("Form",{ref:"formCoupon",attrs:{rules:t.ruleValidate,model:t.formData,"label-width":80}},[a("FormItem",{staticClass:"form-group",attrs:{label:"基本信息"}}),t._v(" "),a("FormItem",{attrs:{label:"Token"}},[t._v("\n "+t._s(t.formData.couponToken)+"\n ")]),t._v(" "),a("FormItem",{attrs:{label:"名称",prop:"couponName"}},[a("Input",{staticStyle:{width:"200px"},attrs:{placeholder:"名称建议30字以内",disabled:!0},model:{value:t.formData.couponName,callback:function(e){t.$set(t.formData,"couponName",e)},expression:"formData.couponName"}})],1),t._v(" "),a("FormItem",{attrs:{label:"使用期限",prop:"time"}},[a("DatePicker",{staticStyle:{width:"200px"},attrs:{type:"datetimerange",prop:"startTimeStr",placeholder:"使用期限",format:"yyyy-MM-dd HH:mm:ss"},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}})],1),t._v(" "),a("FormItem",{attrs:{label:"优惠券说明",prop:"remark"}},[a("Input",{attrs:{type:"textarea",placeholder:"优惠券使用条件简介",disabled:!0},model:{value:t.formData.remark,callback:function(e){t.$set(t.formData,"remark",e)},expression:"formData.remark"}})],1)],1)],1)},n=[];o._withStripped=!0;var r={render:o,staticRenderFns:n};e.a=r},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),t._v(" "),a("SendRecordModalCreateCoupon",{ref:"sendRecordModalCreateCoupon"})],1)},n=[];o._withStripped=!0;var r={render:o,staticRenderFns:n};e.a=r},5:function(t,e){t.exports=iview}},[353]);
\ No newline at end of file
webpackJsonp([2],{10:function(t,e){t.exports=Vue},136:function(t,e,a){"use strict";var o=a(21),n=a.n(o),r=a(13),s=a.n(r),i=a(22),u=a.n(i),c=a(5),l=(a.n(c),a(16)),p=a(17),d=a.n(p),f=a(44),m=a(27),v=a.n(m),h=a(357),g=new l.a;e.a={name:"SendRecordPage",data:function(){var t=this;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||"--"])}},{title:"操作",align:"center",width:200,render:function(e,a){var o=a.row;return e("div",["未使用"===o.status||"0"===o.statusValue?e(c.Button,{attrs:{type:"primary",size:"small"},on:{click:function(){return t.onUpdateTime(o)}}},["延期"]):void 0,"未使用"===o.status||"0"===o.statusValue?e(c.Button,{attrs:{type:"error",size:"small"},on:{click:function(){return t.onUpDateStatus(o)}}},["作废"]):void 0])}}]}},created:function(){var t=this;this.$nextTick(function(){var e=v.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?"+v.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)},onUpdateTime:function(t){this.$refs.sendRecordModalCreateCoupon.show(t)},onUpDateStatus:function(t){var e={uid:t.uid,couponCode:t.couponCode};this.invalidateUserCoupon(e)},fetchData:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u()(n.a.mark(function o(){var r;return n.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:r=o.sent,200===r.code?(e.total=r.data.total,e.data=r.data.userCoupons,e.$Loading.finish()):(r.message&&e.$Message.warning(r.message),e.$Loading.error());case 6:case"end":return o.stop()}},o,e)}))()},invalidateUserCoupon:function(t){var e=this;return u()(n.a.mark(function a(){var o;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e.$Loading.start(),a.next=3,g._get("/ufoPlatform/coupon/invalidateUserCoupon",t);case 3:o=a.sent,200===o.code?e.$Loading.finish():(o.message&&e.$Message.warning(o.message),e.$Loading.error());case 5:case"end":return a.stop()}},a,e)}))()},onExport:function(){var t=this;return u()(n.a.mark(function e(){var a;return n.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?(f.a.downloadBlob(a,"优惠券发放记录导出_"+d()().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}}},components:{SendRecordModalCreateCoupon:h.a}}},137:function(t,e,a){"use strict";var o=a(21),n=a.n(o),r=a(22),s=a.n(r),i=a(16),u=a(17),c=a.n(u),l=new i.a;e.a={components:{},name:"ModalCreateCoupon",data:function(){return{readonly:!1,allreadonly:!1,visiable:!1,loading:!1,posting:!0,uploadTxt:"",couponToken:"",formData:{uid:0,couponToken:"",couponId:"",couponCode:"",couponName:"",time:["",""],remark:""},ruleValidate:{time:{required:!0,validator:function(t,e,a){e.some(function(t){return!t})?a(new Error("请选择使用期限")):a()}}}}},methods:{show:function(t){var e=this;return s()(n.a.mark(function a(){var o;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:e.posting=e.visiable=!0,e.$refs.formCoupon.resetFields(),o={uid:t.uid,couponToken:t.couponToken,couponId:t.couponId,couponCode:t.couponCode,couponName:t.couponName,time:[c.a.unix(t.startTime).format("YYYY-MM-DD HH:mm:ss"),c.a.unix(t.endTime).format("YYYY-MM-DD HH:mm:ss")],remark:t.remark,startTimeStr:c.a.unix(t.startTime).format("YYYY-MM-DD HH:mm:ss"),endTimeStr:c.a.unix(t.endTime).format("YYYY-MM-DD HH:mm:ss")},e.formData=o;case 4:case"end":return a.stop()}},a,e)}))()},onOk:function(){var t=this;this.$refs.formCoupon.validate(function(e){e?t.saveData(t.formData):(t.posting=!1,t.$nextTick(function(){t.posting=!0}))})},getCheckBox:function(){for(var t=[],e=0;e<this.formData.skupAllowTypeLabel.length;e++){var a=this.formData.skupAllowTypeLabel[e];t.push(allowTypeMap[a])}this.formData.skupAllowType=t.join(",")},getChannelCheckBox:function(){for(var t=[],e=0;e<this.formData.businessClientLabel.length;e++){var a=this.formData.businessClientLabel[e];t.push(businessClientTypeMap[a])}this.formData.businessClient=t.join(",")},saveData:function(t){var e=this;return s()(n.a.mark(function a(){var o;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!e.allreadonly){a.next=3;break}return e.visiable=!1,a.abrupt("return");case 3:return a.next=5,l._post("/ufoPlatform/coupon/updateUserCoupon",{uid:t.uid||void 0,couponId:t.couponId||void 0,couponCode:t.couponCode,endTime:t.time[1]?c()(t.time[1]).unix():void 0});case 5:o=a.sent,200===o.code?(e.$Message.success("保存成功"),e.visiable=!1,e.$emit("on-created")):(o.message&&e.$Message.warning(o.message),e.posting=!1,e.$nextTick(function(){e.posting=!0}));case 7:case"end":return a.stop()}},a,e)}))()}}}},354:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(355),n=a(18);Object(n.a)(o.a)},355:function(t,e,a){"use strict";function o(t){s||a(356)}var n=a(136),r=a(360),s=!1,i=a(0),u=o,c=i(n.a,r.a,!1,u,null,null);c.options.__file="src/views/send-record/index.vue",e.a=c.exports},356:function(t,e){},357:function(t,e,a){"use strict";function o(t){s||a(358)}var n=a(137),r=a(359),s=!1,i=a(0),u=o,c=i(n.a,r.a,!1,u,"data-v-c6807168",null);c.options.__file="src/views/coupon/components/modal-update-time-coupon.vue",e.a=c.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("Modal",{attrs:{loading:t.posting,title:t.allreadonly?"查看优惠券":"创建/编辑优惠券",width:"600"},on:{"on-ok":t.onOk},model:{value:t.visiable,callback:function(e){t.visiable=e},expression:"visiable"}},[t.loading?a("Spin"):a("Form",{ref:"formCoupon",attrs:{rules:t.ruleValidate,model:t.formData,"label-width":80}},[a("FormItem",{staticClass:"form-group",attrs:{label:"基本信息"}}),t._v(" "),a("FormItem",{attrs:{label:"Token"}},[t._v("\n "+t._s(t.formData.couponToken)+"\n ")]),t._v(" "),a("FormItem",{attrs:{label:"名称",prop:"couponName"}},[a("Input",{staticStyle:{width:"200px"},attrs:{placeholder:"名称建议30字以内",disabled:!0},model:{value:t.formData.couponName,callback:function(e){t.$set(t.formData,"couponName",e)},expression:"formData.couponName"}})],1),t._v(" "),a("FormItem",{attrs:{label:"使用期限",prop:"time"}},[a("DatePicker",{staticStyle:{width:"200px"},attrs:{type:"datetimerange",prop:"startTimeStr",placeholder:"使用期限",format:"yyyy-MM-dd HH:mm:ss"},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}})],1),t._v(" "),a("FormItem",{attrs:{label:"优惠券说明",prop:"remark"}},[a("Input",{attrs:{type:"textarea",placeholder:"优惠券使用条件简介",disabled:!0},model:{value:t.formData.remark,callback:function(e){t.$set(t.formData,"remark",e)},expression:"formData.remark"}})],1)],1)],1)},n=[];o._withStripped=!0;var r={render:o,staticRenderFns:n};e.a=r},360: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),t._v(" "),a("SendRecordModalCreateCoupon",{ref:"sendRecordModalCreateCoupon"})],1)},n=[];o._withStripped=!0;var r={render:o,staticRenderFns:n};e.a=r},5:function(t,e){t.exports=iview}},[354]);
\ No newline at end of file
... ...
webpackJsonp([4],{10:function(t,e){t.exports=Vue},138:function(t,e,a){"use strict";var i=a(38),s=a.n(i),r=a(21),n=a.n(r),l=a(13),o=a.n(l),c=a(22),d=a.n(c),v=a(17),u=a.n(v),p=a(16),m=a(27),f=a.n(m),h=a(5),_=(a.n(h),new p.a);e.a={components:{},name:"SendRecordPage",data:function(){this.$createElement;return{filter:{certName:"",mobile:"",uid:"",investName:"",validStatus:"",entryType:""},page:1,total:0,data:[],detail:{},investInfo:{},nowSelectedRow:{},isShowDetail:!1,isShowInvest:!1,columns:[{title:"UID",key:"uid",align:"center",width:100},{title:"商家类型",align:"center",render:function(t,e){return t("span",{},["","入驻卖家","超级入驻卖家","","普通卖家"][e.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(t,e){var a=e.row;return t("span",{style:{color:parseInt(a.money,10)>999?"inherit":"red"}},a.money)},width:90},{title:"入驻时间",align:"center",render:function(t,e){var a=e.row;return t("span",[a.enterTime?u()(a.enterTime).format("YYYY-MM-DD"):"--"])},width:100},{title:"退出入驻时间",align:"center",render:function(t,e){var a=e.row;return t("span",[a.quitTime?u()(a.quitTime).format("YYYY-MM-DD"):"--"])},width:100},{title:"入驻状态",align:"center",key:"validStatusDesc"}]}},created:function(){var t=this;this.$nextTick(function(){var e=f.a.parse(location.search?location.search.slice(1):""),a=e.page,i=e.certName,s=e.investName,r=e.mobile,n=e.uid,l=e.validStatus;t.filter.certName=i?decodeURIComponent(i):t.filter.certName,t.filter.mobile=r||t.filter.mobile,t.filter.uid=n||t.filter.uid,t.filter.validStatus=l?parseInt(l):t.filter.validStatus,t.filter.investName=s?decodeURIComponent(s):t.filter.investName,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 d()(n.a.mark(function i(){var s;return n.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e.page=a,e.$Loading.start(),i.next=4,_._get("/ufoPlatform/storedSeller/queryStoredSeller",o()({page:a},e.getParams(t)));case 4:s=i.sent,200===s.code?(e.total=s.data.total,e.data=s.data.list,e.$Loading.finish()):(s.message&&e.$Message.warning(s.message),e.$Loading.error());case 6:case"end":return i.stop()}},i,e)}))()},onShowDetail:function(t){var e=this;return d()(n.a.mark(function a(){var i;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(i=o()({},t),i.enterTime=t.enterTime?u()(t.enterTime).format("YYYY-MM-DD HH:mm:ss"):"--",i.quitTime=t.quitTime?u()(t.quitTime).format("YYYY-MM-DD HH:mm:ss"):"--",e.detail=o()({},i),i.idCardFrontUrl&&(e.detail.idCardFrontUrl=""),e.isShowDetail=!0,!i.idCardFrontUrl){a.next=10;break}return a.next=9,e.drawMask(i.idCardFrontUrl);case 9:e.detail.idCardFrontUrl=a.sent;case 10:case"end":return a.stop()}},a,e)}))()},drawMask:function(t){var e=this;return d()(n.a.mark(function a(){var i,r,l,o,c;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i=document.createElement("canvas"),r=document.createElement("canvas"),l=i.getContext("2d"),o=r.getContext("2d"),c=new Image,c.src=t,c.setAttribute("crossOrigin","anonymous"),a.abrupt("return",new s.a(function(a,s){c.onload=function(){var t=void 0;r.width=c.width,r.height=c.height,i.width=c.width,i.height=c.height,o.drawImage(c,0,0),t=o.getImageData(0,0,r.width,r.height);return e.createMosaic(o,r.width,r.height,12,t),l.drawImage(r,0,0),a(i.toDataURL("image/jpeg"))},c.onerror=function(){return a(t)}}));case 8:case"end":return a.stop()}},a,e)}))()},createMosaic:function(t,e,a,i,s){for(var r=0;r<a;r+=i)for(var n=0;n<e;n+=i){var l=s.data[4*(r*e+n)],o=s.data[4*(r*e+n)+1],c=s.data[4*(r*e+n)+2],d=s.data[4*(r*e+n)+3];t.fillStyle="rgba("+l+","+o+","+c+","+d+")",t.fillRect(n,r,n+i,r+i)}},onEditInvest:function(t){this.nowSelectedRow=t,this.isShowInvest=!0,this.investInfo={uid:t.uid,investName:t.investName||""}},submitInvist:function(){var t=this;this.investInfo.uid&&_._post("/ufoPlatform/storedSeller/saveInvestUser",this.investInfo).then(function(e){200===e.code?(t.closePopup(),t.fetchData(t.filter,t.page),t.$Modal.info({title:"提示",content:e.message})):(t.closePopup(),t.$Modal.info({title:"提示",content:"保存失败"}))})},closePopup:function(){this.detail={},this.investInfo={},this.isShowDetail=!1,this.isShowInvest=!1},getParams:function(t){return{certName:t.certName,mobile:t.mobile,uid:t.uid,investName:t.investName,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 i=a(361),s=a(18);Object(s.a)(i.a)},361:function(t,e,a){"use strict";function i(t){n||a(362)}var s=a(138),r=a(363),n=!1,l=a(0),o=i,c=l(s.a,r.a,!1,o,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 i=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",[a("Input",{staticStyle:{display:"none"},attrs:{placeholder:"招商人"},model:{value:t.filter.investName,callback:function(e){t.$set(t.filter,"investName",e)},expression:"filter.investName"}})],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:4}},[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}}),t._v(" "),a("div",{staticClass:"popup-detail-wrapper",class:{show:t.isShowDetail}},[a("Card",{staticClass:"popup-detail-container"},[a("p",{attrs:{slot:"title"},slot:"title"},[t._v("商家详情")]),t._v(" "),a("Button",{staticClass:"btn-close",attrs:{slot:"extra"},on:{click:t.closePopup},slot:"extra"},[t._v("X")]),t._v(" "),a("div",{staticClass:"pop-detail-content"},[a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("UID")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.uid||" "))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("商家类型")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(["","入驻卖家","超级入驻","","普通卖家"][t.detail.entryType]))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("商家名称")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.certName||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("手机号")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.mobile||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("招商人员")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.investName||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("违规次数")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.breakRuleTimes||"0"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("账户余额")]),t._v(" "),a("Col",{staticStyle:{color:"red"},attrs:{span:"8"}},[t._v(t._s(t.detail.money||"0.00"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("入驻状态")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.validStatusDesc||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("入驻时间")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.enterTime||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("退出入驻时间")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.quitTime||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("身份证号")]),t._v(" "),a("Col",{attrs:{span:"20"}},[t._v(t._s(t.detail.certNo||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title no-border-right",staticStyle:{"min-height":"150px","line-height":"150px"},attrs:{span:"4"}},[t._v("身份证照片")]),t._v(" "),a("Col",{staticClass:"border-left",staticStyle:{"min-height":"150px"},attrs:{span:"20"}},[t.detail.idCardFrontUrl?a("img",{staticClass:"cert-image",attrs:{src:t.detail.idCardFrontUrl}}):t._e(),t._v(" "),t.detail.idCardBackUrl?a("img",{staticClass:"cert-image",attrs:{src:t.detail.idCardBackUrl}}):t._e()])],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"popup-invist-wrapper",class:{show:t.isShowInvest}},[a("Card",{staticClass:"popup-invist-container"},[a("p",{attrs:{slot:"title"},slot:"title"},[t._v("绑定招商人")]),t._v(" "),a("Button",{staticClass:"btn-close",attrs:{slot:"extra"},on:{click:t.closePopup},slot:"extra"},[t._v("X")]),t._v(" "),a("div",{staticClass:"popup-invist-content"},[a("Row",[a("Col",{staticClass:"invist-title",attrs:{span:"8"}},[t._v("招商人员")]),t._v(" "),a("Col",{attrs:{span:"16"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.investInfo.investName,expression:"investInfo.investName"}],staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入招商人"},domProps:{value:t.investInfo.investName},on:{input:function(e){e.target.composing||t.$set(t.investInfo,"investName",e.target.value)}}})])],1),t._v(" "),a("Row",[a("Col",{staticStyle:{"text-align":"center"},attrs:{span:"24"}},[a("Button",{attrs:{type:"success"},on:{click:t.submitInvist}},[t._v("保存")])],1)],1)],1)],1)],1)],1)},s=[];i._withStripped=!0;var r={render:i,staticRenderFns:s};e.a=r},5:function(t,e){t.exports=iview}},[360]);
\ No newline at end of file
webpackJsonp([4],{10:function(t,e){t.exports=Vue},138:function(t,e,a){"use strict";var i=a(38),s=a.n(i),r=a(21),n=a.n(r),l=a(13),o=a.n(l),c=a(22),d=a.n(c),v=a(17),u=a.n(v),p=a(16),m=a(27),f=a.n(m),h=a(5),_=(a.n(h),new p.a);e.a={components:{},name:"SendRecordPage",data:function(){this.$createElement;return{filter:{certName:"",mobile:"",uid:"",investName:"",validStatus:"",entryType:""},page:1,total:0,data:[],detail:{},investInfo:{},nowSelectedRow:{},isShowDetail:!1,isShowInvest:!1,columns:[{title:"UID",key:"uid",align:"center",width:100},{title:"商家类型",align:"center",render:function(t,e){return t("span",{},["","入驻卖家","超级入驻卖家","","普通卖家"][e.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(t,e){var a=e.row;return t("span",{style:{color:parseInt(a.money,10)>999?"inherit":"red"}},a.money)},width:90},{title:"入驻时间",align:"center",render:function(t,e){var a=e.row;return t("span",[a.enterTime?u()(a.enterTime).format("YYYY-MM-DD"):"--"])},width:100},{title:"退出入驻时间",align:"center",render:function(t,e){var a=e.row;return t("span",[a.quitTime?u()(a.quitTime).format("YYYY-MM-DD"):"--"])},width:100},{title:"入驻状态",align:"center",key:"validStatusDesc"}]}},created:function(){var t=this;this.$nextTick(function(){var e=f.a.parse(location.search?location.search.slice(1):""),a=e.page,i=e.certName,s=e.investName,r=e.mobile,n=e.uid,l=e.validStatus;t.filter.certName=i?decodeURIComponent(i):t.filter.certName,t.filter.mobile=r||t.filter.mobile,t.filter.uid=n||t.filter.uid,t.filter.validStatus=l?parseInt(l):t.filter.validStatus,t.filter.investName=s?decodeURIComponent(s):t.filter.investName,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 d()(n.a.mark(function i(){var s;return n.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e.page=a,e.$Loading.start(),i.next=4,_._get("/ufoPlatform/storedSeller/queryStoredSeller",o()({page:a},e.getParams(t)));case 4:s=i.sent,200===s.code?(e.total=s.data.total,e.data=s.data.list,e.$Loading.finish()):(s.message&&e.$Message.warning(s.message),e.$Loading.error());case 6:case"end":return i.stop()}},i,e)}))()},onShowDetail:function(t){var e=this;return d()(n.a.mark(function a(){var i;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(i=o()({},t),i.enterTime=t.enterTime?u()(t.enterTime).format("YYYY-MM-DD HH:mm:ss"):"--",i.quitTime=t.quitTime?u()(t.quitTime).format("YYYY-MM-DD HH:mm:ss"):"--",e.detail=o()({},i),i.idCardFrontUrl&&(e.detail.idCardFrontUrl=""),e.isShowDetail=!0,!i.idCardFrontUrl){a.next=10;break}return a.next=9,e.drawMask(i.idCardFrontUrl);case 9:e.detail.idCardFrontUrl=a.sent;case 10:case"end":return a.stop()}},a,e)}))()},drawMask:function(t){var e=this;return d()(n.a.mark(function a(){var i,r,l,o,c;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i=document.createElement("canvas"),r=document.createElement("canvas"),l=i.getContext("2d"),o=r.getContext("2d"),c=new Image,c.src=t,c.setAttribute("crossOrigin","anonymous"),a.abrupt("return",new s.a(function(a,s){c.onload=function(){var t=void 0;r.width=c.width,r.height=c.height,i.width=c.width,i.height=c.height,o.drawImage(c,0,0),t=o.getImageData(0,0,r.width,r.height);return e.createMosaic(o,r.width,r.height,12,t),l.drawImage(r,0,0),a(i.toDataURL("image/jpeg"))},c.onerror=function(){return a(t)}}));case 8:case"end":return a.stop()}},a,e)}))()},createMosaic:function(t,e,a,i,s){for(var r=0;r<a;r+=i)for(var n=0;n<e;n+=i){var l=s.data[4*(r*e+n)],o=s.data[4*(r*e+n)+1],c=s.data[4*(r*e+n)+2],d=s.data[4*(r*e+n)+3];t.fillStyle="rgba("+l+","+o+","+c+","+d+")",t.fillRect(n,r,n+i,r+i)}},onEditInvest:function(t){this.nowSelectedRow=t,this.isShowInvest=!0,this.investInfo={uid:t.uid,investName:t.investName||""}},submitInvist:function(){var t=this;this.investInfo.uid&&_._post("/ufoPlatform/storedSeller/saveInvestUser",this.investInfo).then(function(e){200===e.code?(t.closePopup(),t.fetchData(t.filter,t.page),t.$Modal.info({title:"提示",content:e.message})):(t.closePopup(),t.$Modal.info({title:"提示",content:"保存失败"}))})},closePopup:function(){this.detail={},this.investInfo={},this.isShowDetail=!1,this.isShowInvest=!1},getParams:function(t){return{certName:t.certName,mobile:t.mobile,uid:t.uid,investName:t.investName,validStatus:parseInt(t.validStatus)>=0?t.validStatus:void 0,entryType:parseInt(t.entryType)>=0?t.entryType:void 0}}}}},361:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(362),s=a(18);Object(s.a)(i.a)},362:function(t,e,a){"use strict";function i(t){n||a(363)}var s=a(138),r=a(364),n=!1,l=a(0),o=i,c=l(s.a,r.a,!1,o,null,null);c.options.__file="src/views/shop/index.vue",e.a=c.exports},363:function(t,e){},364:function(t,e,a){"use strict";var i=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",[a("Input",{staticStyle:{display:"none"},attrs:{placeholder:"招商人"},model:{value:t.filter.investName,callback:function(e){t.$set(t.filter,"investName",e)},expression:"filter.investName"}})],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:4}},[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}}),t._v(" "),a("div",{staticClass:"popup-detail-wrapper",class:{show:t.isShowDetail}},[a("Card",{staticClass:"popup-detail-container"},[a("p",{attrs:{slot:"title"},slot:"title"},[t._v("商家详情")]),t._v(" "),a("Button",{staticClass:"btn-close",attrs:{slot:"extra"},on:{click:t.closePopup},slot:"extra"},[t._v("X")]),t._v(" "),a("div",{staticClass:"pop-detail-content"},[a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("UID")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.uid||" "))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("商家类型")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(["","入驻卖家","超级入驻","","普通卖家"][t.detail.entryType]))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("商家名称")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.certName||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("手机号")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.mobile||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("招商人员")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.investName||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("违规次数")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.breakRuleTimes||"0"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("账户余额")]),t._v(" "),a("Col",{staticStyle:{color:"red"},attrs:{span:"8"}},[t._v(t._s(t.detail.money||"0.00"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("入驻状态")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.validStatusDesc||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("入驻时间")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.enterTime||"--"))]),t._v(" "),a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("退出入驻时间")]),t._v(" "),a("Col",{attrs:{span:"8"}},[t._v(t._s(t.detail.quitTime||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title",attrs:{span:"4"}},[t._v("身份证号")]),t._v(" "),a("Col",{attrs:{span:"20"}},[t._v(t._s(t.detail.certNo||"--"))])],1),t._v(" "),a("Row",[a("Col",{staticClass:"detail-title no-border-right",staticStyle:{"min-height":"150px","line-height":"150px"},attrs:{span:"4"}},[t._v("身份证照片")]),t._v(" "),a("Col",{staticClass:"border-left",staticStyle:{"min-height":"150px"},attrs:{span:"20"}},[t.detail.idCardFrontUrl?a("img",{staticClass:"cert-image",attrs:{src:t.detail.idCardFrontUrl}}):t._e(),t._v(" "),t.detail.idCardBackUrl?a("img",{staticClass:"cert-image",attrs:{src:t.detail.idCardBackUrl}}):t._e()])],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"popup-invist-wrapper",class:{show:t.isShowInvest}},[a("Card",{staticClass:"popup-invist-container"},[a("p",{attrs:{slot:"title"},slot:"title"},[t._v("绑定招商人")]),t._v(" "),a("Button",{staticClass:"btn-close",attrs:{slot:"extra"},on:{click:t.closePopup},slot:"extra"},[t._v("X")]),t._v(" "),a("div",{staticClass:"popup-invist-content"},[a("Row",[a("Col",{staticClass:"invist-title",attrs:{span:"8"}},[t._v("招商人员")]),t._v(" "),a("Col",{attrs:{span:"16"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.investInfo.investName,expression:"investInfo.investName"}],staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入招商人"},domProps:{value:t.investInfo.investName},on:{input:function(e){e.target.composing||t.$set(t.investInfo,"investName",e.target.value)}}})])],1),t._v(" "),a("Row",[a("Col",{staticStyle:{"text-align":"center"},attrs:{span:"24"}},[a("Button",{attrs:{type:"success"},on:{click:t.submitInvist}},[t._v("保存")])],1)],1)],1)],1)],1)],1)},s=[];i._withStripped=!0;var r={render:i,staticRenderFns:s};e.a=r},5:function(t,e){t.exports=iview}},[361]);
\ No newline at end of file
... ...
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/price-compare.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/price-compare.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -19,6 +19,6 @@
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/price-compare.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/price-compare.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
<!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.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
<script type="text/javascript" src="https://cdn.yoho.cn/20190712/vue.min.js"></script>
<script type="text/javascript" src="https://cdn.yoho.cn/20190712/iview.min.js"></script>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/product.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/resource-edit-new.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/resource-edit-new.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -19,6 +19,6 @@
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/resource-edit-new.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/resource-edit-new.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/resource-edit.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/resource-edit.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -19,6 +19,6 @@
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/resource-edit.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/resource-edit.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/resource-list.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/resource-list.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -19,6 +19,6 @@
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/resource-list.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/resource-list.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/send-coupon.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/send-coupon.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -19,6 +19,6 @@
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/send-coupon.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/send-coupon.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/send-record.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/send-record.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -22,6 +22,6 @@
<script type="text/javascript" src="https://cdn.yoho.cn/20190712/xlsx.full.min.js"> </script>
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/send-record.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/send-record.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...
... ... @@ -5,7 +5,7 @@
<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.7ad07d8327e48652a0be.css" rel="stylesheet"><link href="css/shop.7ad07d8327e48652a0be.css" rel="stylesheet"></head>
<link href="css/vendors.290c24cb5276a24d5f7b.css" rel="stylesheet"><link href="css/shop.290c24cb5276a24d5f7b.css" rel="stylesheet"></head>
<body>
<div id="app"></div>
... ... @@ -19,6 +19,6 @@
<script type="text/javascript" src="js/vendors.7ad07d8327e48652a0be.js"></script><script type="text/javascript" src="js/shop.7ad07d8327e48652a0be.js"></script></body>
<script type="text/javascript" src="js/vendors.290c24cb5276a24d5f7b.js"></script><script type="text/javascript" src="js/shop.290c24cb5276a24d5f7b.js"></script></body>
</html>
... ...