You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
25 KiB
1 lines
25 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4cd3396b"],{"075c":function(t,e,r){"use strict";r.r(e);var i=r("2f62"),a=r("d708"),n=r("c4ad"),o=r("a069"),s=r("b0e7"),c=r("b7be");function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function d(t,e,r,i){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new S(i||[]);return a(o,"_invoke",{value:E(t,r,s)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p="suspendedStart",h="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};u(x,o,(function(){return this}));var C=Object.getPrototypeOf,V=C&&C(C($([])));V&&V!==r&&i.call(V,o)&&(x=V);var P=_.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,n,o,s){var c=f(t[a],t,n);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(d).then((function(t){u.value=t,o(u)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var n;a(this,"_invoke",{value:function(t,i){function a(){return new e((function(e,a){r(t,i,e,a)}))}return n=n?n.then(a,a):a()}})}function E(e,r,i){var a=p;return function(n,o){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===n)throw o;return{value:t,done:!0}}for(i.method=n,i.arg=o;;){var s=i.delegate;if(s){var c=I(s,i);if(c){if(c===b)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===p)throw a=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=g;var l=f(e,r,i);if("normal"===l.type){if(a=i.done?v:h,l.arg===b)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(a=v,i.method="throw",i.arg=l.arg)}}}function I(e,r){var i=r.method,a=e.iterator[i];if(a===t)return r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var n=f(a,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,b;var o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function $(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,n=function r(){for(;++a<e.length;)if(i.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(l(e)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=u(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},e.awrap=function(t){return{__await:t}},k(O.prototype),u(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,i,a,n){void 0===n&&(n=Promise);var o=new O(d(t,r,i,a),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(P),u(P,c,"Generator"),u(P,o,(function(){return this})),u(P,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var i in e)r.push(i);return r.reverse(),function t(){for(;r.length;){var i=r.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=$,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(i,a){return s.type="throw",s.arg=e,r.next=i,a&&(r.method="next",r.arg=t),!!a}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var n=a;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,b):this.complete(o)},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),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var a=i.arg;j(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:$(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),b}},e}function f(t,e,r,i,a,n,o){try{var s=t[n](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(i,a)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(i,a){var n=t.apply(e,r);function o(t){f(n,i,a,o,s,"next",t)}function s(t){f(n,i,a,o,s,"throw",t)}o(void 0)}))}}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b={name:"storeIntegralCreate",components:{goodsList:n.default,uploadPictures:s.a,WangEditor:o.a},data:function(){return{roterPre:a.a.roterPre,baseURL:a.a.apiBaseURL.replace(/adminapi/,""),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},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:[],integral:0},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"}],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:g(g({},Object(i.e)("admin/layout",["isMobile","menuCollapse"])),{},{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.formValidate.description=t},productAttrs:function(t){var e=this;Object(c.sb)(t.id,4).then((function(t){var r=t.data.info;e.specsData=r.attrs,e.specsData.forEach((function(t,r){e.$set(e.specsData[r],"id",r)})),e.formValidate.items=r.items,e.columns=r.header,e.columns.unshift({type:"selection",width:60,align:"center"}),e.inputChange(r)})).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 i=t.title,a=t.key,n={title:i,key:a,align:"center",minWidth:120,render:function(t,r){return t("div",[t("InputNumber",{props:{min:0,max:99999,value:"price"===a?r.row.price:"integral"===a?r.row.integral:r.row.quota},on:{"on-change":function(t){"price"===a?r.row.price=t:"integral"===a?r.row.integral=t:r.row.quota=t,e.specsData[r.index]=r.row,e.formValidate.attrs&&e.formValidate.attrs.length&&e.formValidate.attrs.forEach((function(t,i){t.id===r.row.id&&e.formValidate.attrs.splice(i,1,r.row)}))}}})])}};e.columns.splice(t.index,1,n)}))},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,integral: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.description=t.description,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(c.gb)(this.$route.params.id).then(function(){var e=p(m().mark((function e(r){var i,a,n,o,s,c;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(c in i=t,a=r.data.info,n={type:"selection",width:60,align:"center"},t.formValidate=a,t.description=a.description,t.$set(t.formValidate,"items",a.attrs.items),t.columns=a.attrs.header,t.columns.unshift(n),t.specsData=a.attrs.value,i.specsData.forEach((function(t,e){i.$set(i.specsData[e],"id",e)})),o=a.attrs,s=[],a.attrs.value)a.attrs.value[c]._checked&&s.push(a.attrs.value[c]);i.formValidate.attrs=s,i.inputChange(o),t.spinShow=!1;case 16: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.$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(c.ab)(e.formValidate).then(function(){var t=p(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.roterPre+"/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 i in r.formValidate.attrs){if(r.formValidate.attrs[i].quota<=0)return r.$Message.error("兑换次数必须大于0");if(r.formValidate.attrs[i].price<=0&&r.formValidate.attrs[i].integral<=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){switch(this.picTit){case"danFrom":this.formValidate.image=t.att_dir;break;default: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},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){if(t.dataTransfer.effectAllowed="move",e!==this.dragging){var r=u(this.formValidate.images),i=r.indexOf(this.dragging),a=r.indexOf(e);r.splice.apply(r,[a,0].concat(u(r.splice(i,1)))),this.formValidate.images=r}},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var r=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});return this.dialog=r,new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){r.render(),r.open()}})}),37,t)}}},y=(r("f8e7"),r("2877")),w=Object(y.a)(b,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-submit"},[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/marketing/store_integral/index")}}},[e("div",{staticClass:"font-sm after-line"},[e("span",{staticClass:"iconfont iconfanhui"}),e("span",{staticClass:"pl10"},[t._v("返回")])])]),e("span",{staticClass:"mr20 ml16",domProps:{textContent:t._s(t.$route.params.id?"编辑积分商品":"添加积分商品")}})],1)])],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{staticClass:"mt30 acea-row row-middle row-center",attrs:{type:"flex"}},[e("Col",{attrs:{span:"20"}},[e("Steps",{attrs:{current:t.current}},[e("Step",{attrs:{title:"选择积分商品"}}),e("Step",{attrs:{title:"填写基础信息"}}),e("Step",{attrs:{title:"修改商品详情"}})],1)],1),e("Col",{attrs:{span:"23"}},[e("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?e("FormItem",{attrs:{label:"选择商品:",prop:"image_input"}},[e("div",{staticClass:"picBox",on:{click:t.changeGoods}},[t.formValidate.image?e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.image,expression:"formValidate.image"}]})]):e("div",{staticClass:"upLoad acea-row row-center-wrapper"},[e("Icon",{staticClass:"iconfonts",attrs:{type:"ios-camera-outline",size:"26"}})],1)])]):t._e(),e("Col",{directives:[{name:"show",rawName:"v-show",value:1===t.current,expression:"current === 1"}],attrs:{type:"flex"}},[e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{prop:"images"}},[e("div",{staticClass:"custom-label",attrs:{slot:"label"},slot:"label"},[e("div",[e("div",[t._v("商品轮播图")]),e("div",[t._v("(750*750)")])]),e("div",[t._v(":")])]),e("div",{staticClass:"acea-row"},[t._l(t.formValidate.images,(function(r,i){return e("div",{key:i,staticClass:"pictrue",attrs:{draggable:"true"},on:{dragstart:function(e){return t.handleDragStart(e,r)},dragover:function(e){return e.preventDefault(),t.handleDragOver(e,r)},dragenter:function(e){return t.handleDragEnter(e,r)},dragend:function(e){return t.handleDragEnd(e,r)}}},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r,expression:"item"}]}),e("Button",{staticClass:"btndel",attrs:{shape:"circle",icon:"md-close"},nativeOn:{click:function(e){return t.handleRemove(i)}}})],1)})),t.formValidate.images.length<10?e("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:function(e){return t.modalPicTap("duo")}}},[e("Icon",{staticClass:"iconfonts",attrs:{type:"ios-camera-outline",size:"26"}})],1):t._e()],2),e("div",{staticClass:"tips"},[t._v("商品轮播图的第一个图为主图")])])],1),e("Col",{attrs:{span:"24"}},[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"商品标题:",prop:"title","label-for":"title"}},[e("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),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"用户兑换数量限制:",prop:"num"}},[e("div",{staticClass:"acea-row row-middle"},[e("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"}})],1),e("div",{staticClass:"tips"},[t._v("每个用户可购买该商品总数限制。例如设置为4,表示本活动,每个用户最多可兑换总数4个")])])],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"单位:",prop:"unit_name","label-for":"unit_name"}},[e("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),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"排序:"}},[e("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),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"上架状态:",props:"is_show","label-for":"status"}},[e("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"}},[e("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),e("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1)],1),e("Col",t._b({},"Col",t.grid2,!1),[e("FormItem",{attrs:{label:"热门推荐:",props:"is_host","label-for":"is_host"}},[e("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"}},[e("Radio",{staticClass:"radio",attrs:{label:1}},[t._v("开启")]),e("Radio",{attrs:{label:0}},[t._v("关闭")])],1),e("div",{staticClass:"tips"},[t._v("\n 开启后将会在移动端积分商城主页中显示\n "),e("Poptip",{attrs:{placement:"bottom",trigger:"hover",width:"256",transfer:"",padding:"8px"}},[e("a",[t._v("查看示例")]),e("div",{staticClass:"exampleImg",attrs:{slot:"content"},slot:"content"},[e("img",{attrs:{src:"".concat(t.baseURL,"/statics/system/storeProductIntegral.png"),alt:""}})])])],1)],1)],1),e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"规格选择:"}},[e("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(r){var i=r.row,a=r.index;return[e("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","danTable",a)}}},[i.pic?e("div",{staticClass:"pictrue pictrueTab"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.pic,expression:"row.pic"}]})]):e("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[e("Icon",{staticClass:"iconfont",attrs:{type:"ios-camera-outline",size:"21"}})],1)])]}}])})],1)],1)],1),e("Row",{directives:[{name:"show",rawName:"v-show",value:2===t.current,expression:"current === 2"}]},[e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"内容:"}},[e("WangEditor",{staticStyle:{width:"90%"},attrs:{content:t.description},on:{editorContent:t.getEditorContent}})],1)],1)],1),e("Col",{attrs:{span:"24"}})],1),t.spinShow?e("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)],1),e("Card",{staticClass:"fixed-card",style:{left:"".concat(t.menuCollapse?t.isMobile?"0":"80px":"200px")},attrs:{bordered:!1,"dis-hover":""}},[e("Form",[e("FormItem",[e("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 ")]),e("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),e("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"}},[e("goods-list",{ref:"goodslist",on:{getProductId:t.getProductId}})],1),e("Modal",{attrs:{width:"960px",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?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic,getPicD:t.getPicD}}):t._e()],1)],1)}),[],!1,null,"237d7636",null);e.default=w.exports},d1f4:function(t,e,r){},f8e7:function(t,e,r){"use strict";r("d1f4")}}]); |