chunk-6be931c8.a1d986e1.js 8.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6be931c8"],{"0a64":function(t,e,a){"use strict";a("b05a")},"27c3":function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"f",(function(){return l})),a.d(e,"e",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return c})),a.d(e,"d",(function(){return d}));var o=a("b775"),i={add:"/members.MonthlyWelfare/add",detail:"/members.MonthlyWelfare/detail",annex:"/upload/annex",actionsList:"/members.MemberCards/actionsList",update:"/members.MonthlyWelfare/update",audit:"/members.MonthlyWelfare/audit"};function r(t){return Object(o["b"])({url:i.add,method:"post",data:t})}function l(t){return Object(o["b"])({url:i.update,method:"post",data:t})}function s(t){return Object(o["b"])({url:i.detail,method:"get",params:t})}function n(t){return Object(o["b"])({url:i.annex,method:"post",data:t,headers:{"content-type":"application/json"}})}function c(t){return Object(o["b"])({url:i.actionsList,method:"get",params:t})}function d(t){return Object(o["b"])({url:i.audit,method:"post",data:t})}},8053:function(t,e,a){var o,i,r;(function(l,s){i=[e,a("4d28")],o=s,r="function"===typeof o?o.apply(e,i):o,void 0===r||(t.exports=r)})(0,(function(t,e){var a=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var o=["#00a8c6","#40c0cb","#f0dec2","#aee239","#8fbe00","#33e0ff","#b3f4ff","#e6ff99"],i={color:o,title:{textStyle:{fontWeight:"normal",color:"#00a8c6"}},visualMap:{color:["#00a8c6","#a2d4e6"]},toolbox:{color:["#00a8c6","#00a8c6","#00a8c6","#00a8c6"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#00a8c6",type:"dashed"},crossStyle:{color:"#00a8c6"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"#00a8c6"},timeline:{lineStyle:{color:"#00a8c6"},controlStyle:{color:"#00a8c6",borderColor:"#00a8c6"}},candlestick:{itemStyle:{color:"#40c0cb",color0:"#f0dec2"},lineStyle:{width:1,color:"#8fbe00",color0:"#aee239"},areaStyle:{color:"#00a8c6",color0:"#aee239"}},map:{itemStyle:{color:"#ddd"},areaStyle:{color:"#f0dec2"},label:{color:"#c12e34"}},graph:{itemStyle:{color:"#f0dec2"},linkStyle:{color:"#00a8c6"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#40c0cb"],[.8,"#00a8c6"],[1,"#8fbe00"]],width:8}}}};e.registerTheme("fresh-cut",i)}else a("ECharts is not Loaded")}))},"82a2":function(t,e,a){"use strict";a.r(e);a("aa8b");var o=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.isLoading}},[e("div",[e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"title"},[t._v("福利基本信息")]),e("a-row",[e("a-col",{attrs:{span:24}},[e("a-form",[e("a-form-item",{attrs:{label:"福利编号",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",[t._v(t._s(t.detail.number||"--"))])]),e("a-form-item",{attrs:{label:"福利名称",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",[t._v(t._s(t.detail.name||"--"))])]),e("a-form-item",{attrs:{label:"福利价值",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",[t._v(t._s(t.detail.cost+"元"||!1))])]),e("a-form-item",{attrs:{label:"福利数量",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",[t._v(t._s(t.detail.amount||"--"))])]),e("a-form-item",{attrs:{label:"发放时间",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("p",[t._v(t._s(t.detail.start_time)+" 至 "+t._s(t.detail.end_time))])]),e("a-form-item",{staticClass:"selBack",attrs:{label:"背景图",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("div",{staticClass:"imgList"},[e("div",{staticClass:"imgItem"},[e("a",{attrs:{title:"点击查看原图",href:t.detail.file?t.detail.file.ali_url:"",target:"_blank"}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.detail.file&&t.detail.file.ali_url}})])])])]),e("div",{staticClass:"title"},[t._v("福利内容")]),e("a-table",{staticClass:"goodsBox",staticStyle:{"margin-left":"5.5%",width:"90%"},attrs:{rowKey:"coupon_id",columns:t.couponsColumns,dataSource:t.couponsData,pagination:!1,bordered:""},scopedSlots:t._u([{key:"reduce_price",fn:function(a){return e("span",{},[e("p",[t._v("¥"+t._s(a))])])}},{key:"getTerm",fn:function(a,o){return e("span",{},[e("p",[t._v("满"+t._s(o.min_price)+"元减"+t._s(o.reduce_price)+"元")])])}},{key:"total_num",fn:function(a,o){return e("span",{},[10==o.limit_total_type?e("p",[t._v(t._s("总量"+a+"张"))]):e("p",[t._v("不限数量")])])}},{key:"expire_day",fn:function(a){return e("span",{},[e("p",[t._v("领取后"+t._s(a)+"天")])])}},{key:"limit_receive_cnt",fn:function(a,o){return e("span",{},[e("p",[t._v(t._s(10==o.limit_receive_type?"每人每自然月限领1张":"每人每自然年限领1张"))])])}}])}),0!=t.detail.audit_status||1!==t.isSuper&&"activity-zg-audit"!==t.role?t._e():e("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:t.wrapperCol.span,offset:t.labelCol.span}}},[e("a-button",{staticClass:"button",attrs:{type:"primary",loading:t.isBtnLoading},on:{click:t.submit}},[t._v("通过")]),e("a-button",{staticClass:"button",attrs:{type:"close"},on:{click:t.refuse}},[t._v("拒绝")])],1)],1),e("div",{staticClass:"hisBox"},[e("div",{staticClass:"title"},[t._v("行为日志")]),e("div",{staticClass:"action-list",staticStyle:{"margin-left":"5.5%",width:"80%"}},[e("s-table",{ref:"table",attrs:{rowKey:"id",loading:t.isLoading,columns:t.columns,data:t.loadData,pageSize:15,bordered:""},scopedSlots:t._u([{key:"behavior",fn:function(a,o){return[e("p",[t._v(t._s(a))]),2==o.audit_status&&o.audit_reason?e("p",[t._v("("+t._s(o.audit_reason)+")")]):t._e()]}}])})],1)])],1)],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)},i=[],r=a("753f"),l=(a("9f29"),a("0528"),a("8053"),a("9b2d"),a("27c3")),s=(a("f766"),a("ca00"),a("2af9")),n=[{title:"券ID",width:"80px",dataIndex:"coupon_id"},{title:"优惠券名称",width:"150px",ellipsis:!0,dataIndex:"name"},{title:"面额",width:"100px",dataIndex:"reduce_price",scopedSlots:{customRender:"reduce_price"}},{title:"使用条件",width:"180px",scopedSlots:{customRender:"getTerm"}},{title:"使用有效期",width:"100px",dataIndex:"expire_day",scopedSlots:{customRender:"expire_day"}},{title:"发券数量",width:"100px",dataIndex:"total_num",scopedSlots:{customRender:"total_num"}},{title:"领券数量",width:"140px",dataIndex:"limit_receive_cnt",scopedSlots:{customRender:"limit_receive_cnt"}}],c=[{title:"账号",width:"100px",dataIndex:"audit_user"},{title:"行为",dataIndex:"behavior",width:"300px",scopedSlots:{customRender:"behavior"}},{title:"时间",width:"150px",dataIndex:"audit_time"}],d={name:"AddCompensateOrder",components:{STable:s["c"]},data:function(){var t=this;return{id:"",form:this.$form.createForm(this),isLoading:!1,isBtnLoading:!1,userId:"",labelCol:{span:3},wrapperCol:{span:20},selectImageList:[],couponsColumns:n,couponsData:[],columns:c,showModal:!1,refuseValue:"",detail:{},isSuper:1,role:"",queryParam:{},loadData:function(e){return t.queryParam.target_type="2",t.queryParam.target_id=t.id,l["a"](Object(r["a"])(Object(r["a"])({},e),t.queryParam)).then((function(t){return t.data.list}))}}},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){"/memberCenter/monthlyWelfare/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,l["e"]({id:this.id}).then((function(e){t.isLoading=!1;var a=e.data.detail||{};t.detail=a,t.couponsData=[a.coupon]})).finally((function(){t.isLoading=!1}))},handleRefresh:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(t)},submit:function(){var t=this;this.isLoading=!0,l["d"]({form:{id:this.id,audit_status:1}}).then((function(e){t.$message.success(e.message,1.5),t.getDetail(),t.handleRefresh(!0)})).finally((function(){t.isLoading=!1}))},refuse:function(){this.showModal=!0},changeOk:function(t){var e=this;t.preventDefault(),this.refuseValue?l["d"]({form:{id:this.id,audit_status:2,audit_reason:this.refuseValue}}).then((function(t){e.$message.success(t.message,1.5),e.showModal=!1,e.getDetail(),e.handleRefresh(!0)})).finally((function(){e.isLoading=!1})):this.$message.error("请填写拒绝理由",1.5)},changeCancel:function(){this.showModal=!1}}},u=d,p=(a("0a64"),a("829d")),f=Object(p["a"])(u,o,i,!1,null,"1b22fb86",null);e["default"]=f.exports},b05a:function(t,e,a){}}]);