mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-06 04:18:11 +00:00
1 line
23 KiB
JavaScript
1 line
23 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3d3b2d8e"],{"075c":function(t,e,r){"use strict";r.r(e),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("b0c0"),r("131a"),r("fb6a");var a=r("0122"),i=r("d0ff"),o=r("c964"),n=r("f3f3"),s=(r("a4d3"),r("e01a"),r("d3b7"),r("159b"),r("a434"),r("4e82"),r("a9e3"),r("d81d"),r("99af"),r("2f62")),c=r("c4ad"),l=r("a069"),u=r("b0e7"),d=r("b7be");function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},n=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var o,n,s,c;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),a=new C(a||[]);return i(e,"_invoke",{value:(o=t,n=r,s=a,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return k()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,i=e.iterator[a];return void 0===i?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f):(a=d(i,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,f):(i=a.arg,i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)))}(r,s),r)){if(r===f)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",r=d(o,n,s),"normal"===r.type){if(c=s.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(c="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function p(){}function h(){}function g(){}o={};var v=(l(o,n,(function(){return this})),Object.getPrototypeOf),b=(v=v&&v(v(V([]))),v&&v!==e&&r.call(v,n)&&(o=v),g.prototype=p.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;i(this,"_invoke",{value:function(i,n){function s(){return new e((function(o,s){!function i(o,n,s,c){var l;o=d(t[o],t,n);if("throw"!==o.type)return(n=(l=o.arg).value)&&"object"==Object(a.a)(n)&&r.call(n,"__await")?e.resolve(n.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):e.resolve(n).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,c)}));c(o.arg)}(i,n,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function V(t){if(t){var e,a=t[n];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:k}}function k(){return{value:void 0,done:!0}}return i(b,"constructor",{value:h.prototype=g,configurable:!0}),i(g,"constructor",{value:h,configurable:!0}),h.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},y(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,a,i,o){void 0===o&&(o=Promise);var n=new w(u(e,r,a,i),o);return t.isGeneratorFunction(r)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},y(b),l(b,c,"Generator"),l(b,n,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=V,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return n.type="throw",n.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var i=this.tryEntries.length-1;0<=i;--i){var o=this.tryEntries[i],n=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}var n=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return n.type=t,n.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(r=i.completion).type&&(a=r.arg,x(i)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:V(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}c={name:"storeIntegralCreate",components:{goodsList:c.default,uploadPictures:u.a,WangEditor:l.a},data:function(){return{submitOpen:!1,spinShow:!1,isChoice:"",current:0,modalPic:!1,grid:{xl:12,lg:20,md:24,sm:24,xs:24},grid2:{xl:8,lg:12,md:12,sm:24,xs:24},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:""},modals:!1,modal_loading:!1,images:[],formValidate:{images:[],info:"",title:"",image:"",unit_name:"",price:0,ot_price:0,cost:0,sales:0,stock:0,sort:0,num:1,once_num:1,give_integral:0,postage:0,section_time:[],is_postage:0,is_hot:0,status:0,description:"",id:0,product_id:0,temp_id:"",time_id:"",attrs:[],items:[]},description:"",templateList:[],timeList:[],columns:[],specsData:[],picTit:"",tableIndex:0,ruleValidate:{image:[{required:!0,message:"请选择主图",trigger:"change"}],images:[{required:!0,type:"array",message:"请选择主图",trigger:"change"},{type:"array",min:1,message:"Choose two hobbies at best",trigger:"change"}],title:[{required:!0,message:"请输入商品标题",trigger:"blur"}],info:[{required:!0,message:"请输入积分活动简介",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],price:[{required:!0,type:"number",message:"请输入兑换积分",trigger:"blur"}],ot_price:[{required:!0,type:"number",message:"请输入原价",trigger:"blur"}],cost:[{required:!0,type:"number",message:"请输入成本价",trigger:"blur"}],stock:[{required:!0,type:"number",message:"请输入库存",trigger:"blur"}],num:[{required:!0,type:"number",message:"请输入兑换数量限制",trigger:"blur"}],once_num:[{required:!0,type:"number",message:"请输入单次兑换数量限制",trigger:"blur"}]},copy:0}},computed:Object(n.a)(Object(n.a)({},Object(s.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:135},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.$route.params.id&&(this.copy=this.$route.params.copy,this.current=1,this.getInfo())},methods:{getEditorContent:function(t){this.description=t},productAttrs:function(t){var e=this;Object(d.eb)(t.id,4).then((function(t){t=t.data.info,e.specsData=t.attrs,e.specsData.forEach((function(t,r){e.$set(e.specsData[r],"id",r)})),e.formValidate.items=t.items,e.columns=t.header,e.columns.unshift({type:"selection",width:60,align:"center"}),e.inputChange(t)})).catch((function(t){e.$Message.error(t.msg)}))},inputChange:function(t){var e=this,r=[];t.header.forEach((function(t,e){1===t.type&&r.push({index:e,key:t.key,title:t.title})})),r.forEach((function(t,r){var a=t.title,i=t.key;e.columns.splice(t.index,1,{title:a,key:i,align:"center",minWidth:120,render:function(t,r){return t("div",[t("InputNumber",{props:{min:0,precision:0,value:"price"===i?r.row.price:r.row.quota},on:{"on-change":function(t){"price"===i?r.row.price=t:r.row.quota=t,e.specsData[r.index]=r.row,e.formValidate.attrs&&e.formValidate.attrs.length&&e.formValidate.attrs.forEach((function(t,a){t.id===r.row.id&&e.formValidate.attrs.splice(a,1,r.row)}))}}})])}})}))},changeCheckbox:function(t){this.formValidate.attrs=t},validate:function(t,e,r){!1===e&&this.$Message.error(r)},getProductId:function(t){var e=this;this.modal_loading=!1,this.modals=!1,setTimeout((function(){e.formValidate={images:t.slider_image,info:t.store_info,title:t.store_name,image:t.image,unit_name:t.unit_name,price:0,ot_price:t.ot_price,cost:t.cost,sales:t.sales,stock:t.stock,sort:t.sort,num:1,once_num:1,give_integral:t.give_integral,postage:t.postage,section_time:[],is_postage:t.is_postage,is_host:0,is_show:1,description:t.description,id:0,product_id:t.id,temp_id:t.temp_id},e.productAttrs(t),e.$refs.goodslist.productRow=null}),500)},cancel:function(){this.modals=!1},onchangeTime:function(t){this.formValidate.section_time=t},getInfo:function(){var t=this;this.spinShow=!0,Object(d.O)(this.$route.params.id).then(function(){var e=Object(o.a)(m().mark((function e(r){var a,i,o,n,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s in a=t,i=r.data.info,o={type:"selection",width:60,align:"center"},t.formValidate=i,t.$set(t.formValidate,"items",i.attrs.items),t.columns=i.attrs.header,t.columns.unshift(o),t.specsData=i.attrs.value,a.specsData.forEach((function(t,e){a.$set(a.specsData[e],"id",e)})),o=i.attrs,n=[],i.attrs.value)i.attrs.value[s]._checked&&n.push(i.attrs.value[s]);a.formValidate.attrs=n,a.inputChange(o),t.spinShow=!1;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))},next:function(t){var e=this,r=this;2===this.current?(this.formValidate.description=this.description,this.$refs[t].validate((function(t){if(!t)return!1;1==e.copy&&(e.formValidate.copy=1),e.formValidate.id=Number(e.$route.params.id)||0,e.submitOpen=!0,Object(d.L)(e.formValidate).then(function(){var t=Object(o.a)(m().mark((function t(r){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.submitOpen=!1,e.$Message.success(r.msg),setTimeout((function(){e.$router.push({path:e.$routeProStr+"/marketing/store_integral/index"})}),500);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.submitOpen=!1,e.$Message.error(t.msg)}))}))):1===this.current?this.$refs[t].validate((function(t){if(!t)return e.$Message.warning("请完善您的信息");if(!r.formValidate.attrs)return r.$Message.error("请选择属性规格");for(var a in r.formValidate.attrs)if(r.formValidate.attrs[a].quota<=0)return r.$Message.error("兑换次数必须大于0");e.current+=1})):this.formValidate.image?this.current+=1:this.$Message.warning("请选择商品")},step:function(){this.current--},getContent:function(t){this.formValidate.description=t},modalPicTap:function(t,e,r){this.modalPic=!0,this.isChoice="dan"===t?"单选":"多选",this.picTit=e,this.tableIndex=r},getPic:function(t){"danFrom"===this.picTit?this.formValidate.image=t.att_dir:(this.formValidate.attrs&&this.formValidate.attrs.length&&this.$set(this.specsData[this.tableIndex],"_checked",!0),this.specsData[this.tableIndex].pic=t.att_dir),this.modalPic=!1},getPicD:function(t){var e=this;this.images=t,this.images.map((function(t){e.formValidate.images.push(t.att_dir),e.formValidate.images=e.formValidate.images.splice(0,10)})),this.modalPic=!1},handleRemove:function(t){this.images.splice(t,1),this.formValidate.images.splice(t,1)},changeGoods:function(){this.modals=!0,this.$refs.goodslist.formValidate.is_presale=0,this.$refs.goodslist.formValidate.is_virtual=0,this.$refs.goodslist.getList(),this.$refs.goodslist.goodsCategory()},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){var r;t.dataTransfer.effectAllowed="move",e!==this.dragging&&(r=(t=Object(i.a)(this.formValidate.images)).indexOf(this.dragging),e=t.indexOf(e),t.splice.apply(t,[e,0].concat(Object(i.a)(t.splice(r,1)))),this.formValidate.images=t)}}},r("ae44"),u=r("2877"),l=Object(u.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"i-layout-page-header header-title"},[r("div",{staticClass:"fl_header"},[r("router-link",{attrs:{to:{path:t.$routeProStr+"/marketing/store_integral/index"}}},[r("Button",{attrs:{icon:"ios-arrow-back",size:"small",type:"text"}},[t._v("返回")])],1),r("Divider",{attrs:{type:"vertical"}}),r("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"},domProps:{textContent:t._s(t.$route.params.id?"编辑积分商品":"添加积分商品")}})],1)]),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Row",{staticClass:"mt30 acea-row row-middle row-center",attrs:{type:"flex"}},[r("Col",{attrs:{span:"20"}},[r("Steps",{attrs:{current:t.current}},[r("Step",{attrs:{title:"选择积分商品"}}),r("Step",{attrs:{title:"填写基础信息"}}),r("Step",{attrs:{title:"修改商品详情"}})],1)],1),r("Col",{attrs:{span:"23"}},[r("Form",{ref:"formValidate",staticClass:"form mt30",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},on:{"on-validate":t.validate},nativeOn:{submit:function(t){t.preventDefault()}}},[0===t.current?r("FormItem",{attrs:{label:"选择商品:",prop:"image_input"}},[r("div",{staticClass:"picBox",on:{click:t.changeGoods}},[t.formValidate.image?r("div",{staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]})]):r("div",{staticClass:"upLoad acea-row row-center-wrapper"},[r("Icon",{staticClass:"iconfonts",attrs:{type:"ios-camera-outline",size:"26"}})],1)])]):t._e(),r("Col",{directives:[{name:"show",rawName:"v-show",value:1===t.current,expression:"current === 1"}],attrs:{type:"flex"}},[r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{prop:"image"}},[r("div",{staticClass:"custom-label",attrs:{slot:"label"},slot:"label"},[r("div",[r("div",[t._v("商品主图")]),r("div",[t._v("(750*750)")])]),r("div",[t._v(":")])]),r("div",{staticClass:"picBox",on:{click:function(e){return t.modalPicTap("dan","danFrom")}}},[t.formValidate.image?r("div",{staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]})]):r("div",{staticClass:"upLoad acea-row row-center-wrapper"},[r("Icon",{staticClass:"iconfonts",attrs:{type:"ios-camera-outline",size:"26"}})],1)])])],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{prop:"images"}},[r("div",{staticClass:"custom-label",attrs:{slot:"label"},slot:"label"},[r("div",[r("div",[t._v("商品轮播图")]),r("div",[t._v("(750*750)")])]),r("div",[t._v(":")])]),r("div",{staticClass:"acea-row"},[t._l(t.formValidate.images,(function(e,a){return r("div",{key:a,staticClass:"pictrue",attrs:{draggable:"true"},on:{dragstart:function(r){return t.handleDragStart(r,e)},dragover:function(r){return r.preventDefault(),t.handleDragOver(r,e)},dragenter:function(r){return t.handleDragEnter(r,e)},dragend:function(r){return t.handleDragEnd(r,e)}}},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"item"}]}),r("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemove(a)}}})],1)})),t.formValidate.images.length<10?r("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:function(e){return t.modalPicTap("duo")}}},[r("Icon",{staticClass:"iconfonts",attrs:{type:"ios-camera-outline",size:"26"}})],1):t._e()],2)])],1),r("Col",{attrs:{span:"24"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"商品标题:",prop:"title","label-for":"title"}},[r("Input",{attrs:{placeholder:"请输入商品标题","element-id":"title"},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}})],1)],1)],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"用户兑换数量限制:",prop:"num"}},[r("div",{staticClass:"acea-row row-middle"},[r("InputNumber",{staticClass:"perW20",attrs:{min:1,max:99999,placeholder:"请输入数量限制","element-id":"num",precision:0},model:{value:t.formValidate.num,callback:function(e){t.$set(t.formValidate,"num",e)},expression:"formValidate.num"}}),r("div",{staticClass:"ml10 grey"},[t._v("\n 每个用户可购买该商品总数限制。例如设置为4,表示本活动,每个用户最多可兑换总数4个\n ")])],1)])],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"单位:",prop:"unit_name","label-for":"unit_name"}},[r("Input",{staticClass:"perW20",attrs:{placeholder:"请输入单位","element-id":"unit_name"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"排序:"}},[r("InputNumber",{staticClass:"perW10",attrs:{placeholder:"请输入排序","element-id":"sort",precision:0},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"上架状态:",props:"is_show","label-for":"status"}},[r("RadioGroup",{attrs:{"element-id":"is_show"},model:{value:t.formValidate.is_show,callback:function(e){t.$set(t.formValidate,"is_show",e)},expression:"formValidate.is_show"}},[r("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),r("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),r("Col",t._b({},"Col",t.grid2,!1),[r("FormItem",{attrs:{label:"热门推荐:",props:"is_host","label-for":"is_host"}},[r("RadioGroup",{attrs:{"element-id":"is_host"},model:{value:t.formValidate.is_host,callback:function(e){t.$set(t.formValidate,"is_host",e)},expression:"formValidate.is_host"}},[r("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),r("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"规格选择:"}},[r("Table",{staticClass:"mt25",attrs:{data:t.specsData,columns:t.columns,border:"","highlight-row":""},on:{"on-selection-change":t.changeCheckbox},scopedSlots:t._u([{key:"pic",fn:function(e){var a=e.row,i=e.index;return[r("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","danTable",i)}}},[a.pic?r("div",{staticClass:"pictrue pictrueTab"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.pic,expression:"row.pic"}]})]):r("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[r("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}}])})],1)],1)],1),r("Row",{directives:[{name:"show",rawName:"v-show",value:2===t.current,expression:"current === 2"}]},[r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"内容:"}},[r("WangEditor",{staticStyle:{width:"90%"},attrs:{content:t.formValidate.description},on:{editorContent:t.getEditorContent}})],1)],1)],1),r("Col",{attrs:{span:"24"}},[r("FormItem",[r("Button",{directives:[{name:"show",rawName:"v-show",value:0!==t.current,expression:"current !== 0"}],staticClass:"submission mr15",attrs:{disabled:t.$route.params.id&&1===t.current},on:{click:t.step}},[t._v("上一步\n ")]),r("Button",{staticClass:"submission",attrs:{disabled:t.submitOpen&&2===t.current,type:"primary"},domProps:{textContent:t._s(2===t.current?"提交":"下一步")},on:{click:function(e){return t.next("formValidate")}}})],1)],1)],1),t.spinShow?r("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)],1),r("Modal",{staticClass:"paymentFooter",attrs:{title:"商品列表",footerHide:"",scrollable:"",width:"900"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[r("goods-list",{ref:"goodslist",on:{getProductId:t.getProductId}})],1),r("Modal",{attrs:{width:"950px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?r("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic,getPicD:t.getPicD}}):t._e()],1)],1)}),[],!1,null,"24043956",null),e.default=l.exports},"4e82":function(t,e,r){"use strict";var a=r("23e7"),i=r("e330"),o=r("59ed"),n=r("7b0b"),s=r("07fa"),c=r("577e"),l=r("d039"),u=r("addb"),d=r("a640"),m=r("04d1"),f=r("d998"),p=r("2d00"),h=r("512ce"),g=[],v=i(g.sort),b=i(g.push),y=(r=l((function(){g.sort(void 0)})),i=l((function(){g.sort(null)})),d=d("sort"),!l((function(){if(p)return p<70;if(!(m&&3<m)){if(f)return!0;if(h)return h<603;for(var t,e,r,a="",i=65;i<76;i++){switch(t=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(r=0;r<47;r++)g.push({k:t+r,v:e})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}})));a({target:"Array",proto:!0,forced:r||!i||!d||!y},{sort:function(t){void 0!==t&&o(t);var e=n(this);if(y)return void 0===t?v(e):v(e,t);for(var r,a,i=[],l=s(e),d=0;d<l;d++)d in e&&b(i,e[d]);for(u(i,(a=t,function(t,e){return void 0===e?-1:void 0===t?1:void 0!==a?+a(t,e)||0:c(t)>c(e)?1:-1})),r=i.length,d=0;d<r;)e[d]=i[d++];for(;d<l;)delete e[d++];return e}})},ae44:function(t,e,r){"use strict";var a=r("ebd9");r.n(a).a},ebd9:function(t,e,r){}}]); |