chunk-6921b144.9788ab5e.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6921b144"],{"02ed":function(t,e,a){"use strict";a("1fec")},"1fec":function(t,e,a){},c2a9:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"card-title"},[t._v(t._s(t.$route.meta.title))]),e("a-spin",{attrs:{spinning:t.isLoading}},[e("a-form",{attrs:{form:t.form,selfUpdate:!0}},[e("div",{staticClass:"tabs-content"},[e("div",{staticClass:"title"},[t._v("活动基本信息")]),e("a-form-item",{attrs:{label:"活动编码",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",{staticClass:"itemValue"},[t._v(t._s(t.detail.code||"---"))])]),e("a-form-item",{attrs:{label:"活动时间",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",{staticClass:"itemValue"},[t._v(t._s(t.detail.start_time)+" ~ "+t._s(t.detail.end_time))])]),e("a-form-item",{attrs:{label:"成团有效时间",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",{staticClass:"itemValue"},[t._v(t._s(t.detail.during_time||0)+" 小时")]),e("span",{staticClass:"input-text_right"},[t._v("(自用户发起拼团到拼团截止的时间,单位:小时)")])]),e("a-form-item",{attrs:{label:"成团人数",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",{staticClass:"itemValue"},[t._v(t._s(t.detail.people_count||0)+" 人")]),e("span",{staticClass:"input-text_right"},[t._v("组团人数(含发起人)达到数量后成团")])]),e("a-form-item",{attrs:{label:"拼团商详引导文案",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",{staticClass:"itemValue"},[t._v(t._s(t.detail.share_copy_writing))]),e("span",{staticClass:"input-text_right"},[t._v("文案展示在拼团商品详情拼团价右侧")])]),e("a-form-item",{attrs:{label:"分享标题",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",{staticClass:"itemValue"},[t._v(t._s(t.detail.share_title))]),e("span",{staticClass:"input-text_right"},[t._v("(字数上限 10 个字)")])]),e("a-form-item",{attrs:{label:" ",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-radio-group",{attrs:{disabled:""},model:{value:t.detail.an_share_title,callback:function(e){t.$set(t.detail,"an_share_title",e)},expression:"detail.an_share_title"}},[e("a-radio",{attrs:{value:1}},[t._v("加用户昵称前缀")]),e("a-radio",{attrs:{value:0}},[t._v("不加前缀")])],1),e("p",{staticClass:"itemTool"},[t._v("加用户昵称前缀,代表{用户昵称}+分享语,如“Ethan 喊你一起拼团啦~”")])],1),e("a-form-item",{attrs:{label:"拼团结束时补单",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-radio-group",{attrs:{disabled:""},model:{value:t.robotModel,callback:function(e){t.robotModel=e},expression:"robotModel"}},[e("a-radio",{attrs:{value:0}},[t._v("启用机器人补单")]),e("a-radio",{attrs:{value:1}},[t._v("不启用机器人")])],1),0==t.robotModel?e("div",{staticClass:"robotInuptBox",attrs:{disabled:""}},[e("span",{staticStyle:{"margin-right":"15px"}},[t._v("当一个拼团中有")]),e("span",{staticClass:"itemValue"},[t._v(t._s(t.detail.tb_cnt))]),e("span",[t._v("个真实用户(包含团长)付款后,允许机器人补单")])]):t._e()],1),e("a-form-item",{attrs:{label:"拼团开始时补单",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-radio-group",{attrs:{disabled:""},model:{value:t.detail.need_fill_order,callback:function(e){t.$set(t.detail,"need_fill_order",e)},expression:"detail.need_fill_order"}},[e("a-radio",{attrs:{value:1}},[t._v("启用机器人")]),e("a-radio",{attrs:{value:0}},[t._v("不启用机器人")])],1),e("p",{staticClass:"itemTool"},[t._v("拼团开始后启用补单,拼团详情页中第2,3个拼单位置如果长时间无人参加,就会补充机器人参与补单(可随时启用或关闭)")])],1),e("a-form-item",{attrs:{label:"拼团开始后虚拟团补位",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-radio-group",{attrs:{disabled:""},model:{value:t.detail.need_fake_group,callback:function(e){t.$set(t.detail,"need_fake_group",e)},expression:"detail.need_fake_group"}},[e("a-radio",{attrs:{value:1}},[t._v("启用虚拟团")]),e("a-radio",{attrs:{value:0}},[t._v("不启用虚拟团")])],1),e("p",{staticClass:"itemTool"},[t._v("虚拟团开启后,前端活动页将保持有5个正在进行中的拼团,如拼团数不够时进行补充虚拟团。")])],1),e("div",{staticClass:"title"},[t._v("拼团商品")]),e("div",{staticClass:"setGoods"},[e("a-table",{staticClass:"goodsBox",staticStyle:{"margin-left":"5.5%"},attrs:{rowKey:"goods_id",columns:t.goodsColumns,dataSource:t.goodsData,pagination:!1,bordered:""},scopedSlots:t._u([{key:"goods_image",fn:function(t){return e("span",{},[e("a",{attrs:{title:"点击查看原图",href:t,target:"_blank"}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{width:"50",height:"50",src:t,alt:"商品图片"}})])])}},{key:"goods_price_min",fn:function(a){return e("span",{},[e("p",[t._v("¥"+t._s(a))])])}},{key:"status",fn:function(a,i){return e("span",{},[e("p",[t._v(t._s(10==i.goods_info.status?"上架":"下架"))])])}},{key:"group_price",fn:function(a){return e("span",{},[e("p",[t._v("¥ "+t._s(a))])])}}])})],1)],1),e("a-row",[e("a-col",{attrs:{span:24}},[e("div",{staticClass:"title"},[t._v("赠送优惠券")]),e("div",{staticClass:"couponBox"},[e("a-table",{staticStyle:{"margin-left":"5.5%"},attrs:{rowKey:"id",columns:t.couponColumns,dataSource:t.couponData,pagination:!1,bordered:""},scopedSlots:t._u([{key:"coupon_type",fn:function(a){return e("span",{},[e("p",[t._v(t._s(10==a?"立减券":20==a?"满减券":30==a?"首单券":"新人券"))])])}},{key:"goods_price",fn:function(a){return e("span",{},[e("p",[t._v("¥"+t._s(a))])])}},{key:"reduce_price",fn:function(a){return e("span",{},[e("p",[t._v("¥"+t._s(a))])])}},{key:"getTerm",fn:function(a,i){return e("span",{},[e("p",[t._v("实付满"+t._s(i.min_price)+"元,可减"+t._s(i.reduce_price)+"元")])])}},{key:"expire_day",fn:function(a,i){return e("span",{},[10==i.expire_type?e("p",[t._v(t._s(a)+"天")]):e("p",[t._v(t._s(i.expire_time))])])}},{key:"open_status",fn:function(a,i){return e("span",{},[10===i.audit_status&&a&&a.value?e("p",[t._v(t._s(1==a.value?"有效":"失效"))]):e("p",[t._v("--")])])}},{key:"status",fn:function(a,i){return e("span",{},[10===i.audit_status?e("p",[t._v(t._s(1==a?"启用":"禁用"))]):e("p",[t._v("--")])])}}])})],1)])],1),0!=t.detail.audit_status||3==t.detail.activity_status||1!=t.detail.status||1!==t.isSuper&&"activity-zg-audit"!=t.role?t._e():e("a-form-item",{staticClass:"mt-20 buttonBox",attrs:{"wrapper-col":{span:t.wrapperCol.span,offset:t.labelCol.span}}},[e("a-button",{staticClass:"close",staticStyle:{"margin-right":"15px"},attrs:{type:"primary",loading:t.isBtnLoading},on:{click:t.submit}},[t._v("同意并发布活动")]),e("a-button",{staticClass:"close",attrs:{type:"close",loading:t.isBtnLoading},on:{click:t.refuse}},[t._v("拒绝")])],1),e("div",{staticClass:"hisBox"},[e("div",{staticClass:"title"},[t._v("行为日志")]),e("div",{staticClass:"action-list",staticStyle:{"margin-left":"5.5%",width:"80%"}},[e("a-table",{attrs:{rowKey:"id",columns:t.columns,"data-source":t.history,pagination:!1},scopedSlots:t._u([{key:"behavior",fn:function(a,i){return e("span",{},[e("p",[t._v(t._s(a))]),i.audit_reason?e("p",[t._v("("+t._s(i.audit_reason)+")")]):t._e()])}}])})],1)])],1),e("a-modal",{attrs:{title:"拒绝理由",visible:t.showModal,"confirm-loading":!1},on:{ok:t.changeOk,cancel:t.changeCancel}},[e("a-textarea",{staticClass:"remark_textarea",attrs:{placeholder:"请填写拒绝理由",maxLength:100},model:{value:t.refuseValue,callback:function(e){t.refuseValue=e},expression:"refuseValue"}})],1)],1)],1)},o=[],s=(a("9f29"),a("0528"),a("db3f")),r=(a("9b2d"),a("2f42"),[{title:"商品sku编码",width:"170px",dataIndex:"goods_sku_no"},{title:"商品标题",width:"240px",ellipsis:!0,dataIndex:"goods_info.goods_name"},{title:"商品图片",width:"80px",dataIndex:"goods_info.goods_image",scopedSlots:{customRender:"goods_image"}},{title:"促销价(售价)",width:"100px",dataIndex:"goods_info.goods_price_min",scopedSlots:{customRender:"goods_price_min"}},{title:"状态",width:"60px",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"拼团价",width:"100px",dataIndex:"group_price",scopedSlots:{customRender:"group_price"}},{title:"限购(件)",width:"100px",dataIndex:"limit_mount"},{title:"活动商品库存(件)",width:"130px",dataIndex:"limit_stock"},{title:"活动商品剩余库存",width:"130px",dataIndex:"residue_stock"}]),n=[{title:"账号",width:"100px",dataIndex:"audit_user"},{title:"行为",dataIndex:"behavior",width:"300px",ellipsis:!0,scopedSlots:{customRender:"behavior"}},{title:"时间",width:"150px",dataIndex:"create_time"}],l=[{title:"券ID",dataIndex:"coupon_id"},{title:"优惠券名称",dataIndex:"name"},{title:"券类型",dataIndex:"coupon_type",scopedSlots:{customRender:"coupon_type"}},{title:"面额",dataIndex:"reduce_price",scopedSlots:{customRender:"reduce_price"}},{title:"使用条件",scopedSlots:{customRender:"getTerm"}},{title:"使用有效期",dataIndex:"expire_day",scopedSlots:{customRender:"expire_day"}},{title:"券状态",dataIndex:"open_status",scopedSlots:{customRender:"open_status"}},{title:"启用状态",dataIndex:"status",scopedSlots:{customRender:"status"}}],d={components:{},data:function(){return{id:"",labelCol:{span:3},wrapperCol:{span:20},isLoading:!1,isBtnLoading:!1,form:this.$form.createForm(this),goodsColumns:r,goodsData:[],detail:{},showModal:!1,refuseValue:"",isSuper:1,role:"",columns:n,history:[],couponData:[],couponColumns:l,robotModel:0}},created:function(){var t=this;if(this.$store.getters.roles){this.isSuper=this.$store.getters.roles.isSuper;var e=this.$store.getters.roles.permissions;e.forEach((function(e){"/activityCenter/patchworkFission/index"==e.permissionId&&e.actionEntitySet&&e.actionEntitySet.length>0&&(t.role=e.actionEntitySet[0].action)}))}this.id=this.$route.query.id,this.getDetail()},methods:{getDetail:function(){var t=this;this.isLoading=!0,s["d"]({act_id:this.id}).then((function(e){t.isLoading=!1;var a=e.data.detail||{};t.detail=a,t.goodsData=[],t.goodsData.push(a.goodsExcept),t.history=a.history||[],t.couponData=a.coupon,-1==a.tb_cnt?t.robotModel=1:t.robotModel=0})).finally((function(){t.isLoading=!1}))},submit:function(){var t=this;this.isLoading=!0,s["b"]({form:{activity_id:this.id,audit_status:1}}).then((function(e){t.$message.success(e.message,1.5),setTimeout((function(){t.$router.push("./index")}),1500)})).finally((function(){t.isLoading=!1}))},refuse:function(){this.showModal=!0},changeOk:function(t){var e=this;t.preventDefault(),this.refuseValue?s["b"]({form:{activity_id:this.id,audit_status:2,audit_reason:this.refuseValue}}).then((function(t){e.$message.success(t.message,1.5),e.showModal=!1,setTimeout((function(){e.$router.push("./index")}),1500)})).finally((function(){e.isLoading=!1})):this.$message.error("请填写拒绝理由",1.5)},changeCancel:function(){this.showModal=!1}}},u=d,c=(a("02ed"),a("829d")),p=Object(c["a"])(u,i,o,!1,null,"0c627cba",null);e["default"]=p.exports},db3f:function(t,e,a){"use strict";a.d(e,"h",(function(){return s})),a.d(e,"d",(function(){return r})),a.d(e,"a",(function(){return n})),a.d(e,"n",(function(){return l})),a.d(e,"m",(function(){return d})),a.d(e,"b",(function(){return u})),a.d(e,"k",(function(){return c})),a.d(e,"j",(function(){return p})),a.d(e,"g",(function(){return _})),a.d(e,"f",(function(){return f})),a.d(e,"l",(function(){return m})),a.d(e,"i",(function(){return b})),a.d(e,"c",(function(){return v})),a.d(e,"e",(function(){return h}));var i=a("b775"),o={list:"/GroupBuyLbActivity/list",detail:"/GroupBuyLbActivity/ptStats",add:"/GroupBuyLbActivity/add",update:"/GroupBuyLbActivity/update",status:"/GroupBuyLbActivity/status",audit:"/GroupBuyLbActivity/audit",ptStats:"/GroupBuyLbActivity/ptStats",ptRecord:"/GroupBuyLbActivity/ptRecord",joinOrders:"/GroupBuyLbActivity/joinOrders",failedGroup:"/GroupBuyLbActivity/failedGroup",refundAct:"/GroupBuyLbActivity/refundAct",orderList:"/GroupBuyLbActivity/allList",couponlist:"/coupon/couponGroupBuyLblist",edit:"/GroupBuyLbActivity/edit"};function s(t){return Object(i["b"])({url:o.list,method:"get",params:t})}function r(t){return Object(i["b"])({url:o.detail,method:"get",params:t})}function n(t){return Object(i["b"])({url:o.add,method:"post",data:t})}function l(t){return Object(i["b"])({url:o.update,method:"post",data:t})}function d(t){return Object(i["b"])({url:o.status,method:"post",data:t})}function u(t){return Object(i["b"])({url:o.audit,method:"post",data:t})}function c(t){return Object(i["b"])({url:o.ptStats,method:"get",params:t})}function p(t){return Object(i["b"])({url:o.ptRecord,method:"get",params:t})}function _(t){return Object(i["b"])({url:o.joinOrders,method:"get",params:t})}function f(t){return Object(i["b"])({url:o.failedGroup,method:"get",params:t})}function m(t){return Object(i["b"])({url:o.refundAct,method:"get",params:t})}function b(t){return Object(i["b"])({url:o.orderList,method:"get",params:t})}function v(t){return Object(i["b"])({url:o.couponlist,method:"get",params:t})}function h(t){return Object(i["b"])({url:o.edit,method:"post",data:t})}}}]);