chunk-4fc1c319.ea038185.js 8.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4fc1c319"],{"27c3":function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"f",(function(){return l})),a.d(t,"e",(function(){return n})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return c})),a.d(t,"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(e){return Object(o["b"])({url:i.add,method:"post",data:e})}function l(e){return Object(o["b"])({url:i.update,method:"post",data:e})}function n(e){return Object(o["b"])({url:i.detail,method:"get",params:e})}function s(e){return Object(o["b"])({url:i.annex,method:"post",data:e,headers:{"content-type":"application/json"}})}function c(e){return Object(o["b"])({url:i.actionsList,method:"get",params:e})}function d(e){return Object(o["b"])({url:i.audit,method:"post",data:e})}},"51c4":function(e,t,a){"use strict";a("7160")},7160:function(e,t,a){},"82a2":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("a-spin",{attrs:{spinning:e.isLoading}},[a("div",[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"title"},[e._v("福利基本信息")]),a("a-row",[a("a-col",{attrs:{span:24}},[a("a-form",[a("a-form-item",{attrs:{label:"福利编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("p",[e._v(e._s(e.detail.number||"--"))])]),a("a-form-item",{attrs:{label:"福利名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("p",[e._v(e._s(e.detail.name||"--"))])]),a("a-form-item",{attrs:{label:"福利价值",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("p",[e._v(e._s(e.detail.cost+"元"||!1))])]),a("a-form-item",{attrs:{label:"福利数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("p",[e._v(e._s(e.detail.amount||"--"))])]),a("a-form-item",{attrs:{label:"发放时间",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("p",[e._v(e._s(e.detail.start_time)+" 至 "+e._s(e.detail.end_time))])]),a("a-form-item",{staticClass:"selBack",attrs:{label:"背景图",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"imgList"},[a("div",{staticClass:"imgItem"},[a("a",{attrs:{title:"点击查看原图",href:e.detail.file?e.detail.file.ali_url:"",target:"_blank"}},[a("img",{staticStyle:{"object-fit":"cover"},attrs:{src:e.detail.file&&e.detail.file.ali_url}})])])])]),a("div",{staticClass:"title"},[e._v("福利内容")]),a("a-table",{staticClass:"goodsBox",staticStyle:{"margin-left":"5.5%",width:"90%"},attrs:{rowKey:"coupon_id",columns:e.couponsColumns,dataSource:e.couponsData,pagination:!1,bordered:""},scopedSlots:e._u([{key:"reduce_price",fn:function(t){return a("span",{},[a("p",[e._v("¥"+e._s(t))])])}},{key:"getTerm",fn:function(t,o){return a("span",{},[a("p",[e._v("满"+e._s(o.min_price)+"元减"+e._s(o.reduce_price)+"元")])])}},{key:"total_num",fn:function(t,o){return a("span",{},[10==o.limit_total_type?a("p",[e._v(e._s("总量"+t+"张"))]):a("p",[e._v("不限数量")])])}},{key:"expire_day",fn:function(t){return a("span",{},[a("p",[e._v("领取后"+e._s(t)+"天")])])}},{key:"limit_receive_cnt",fn:function(t,o){return a("span",{},[a("p",[e._v(e._s(10==o.limit_receive_type?"每人每自然月限领1张":"每人每自然年限领1张"))])])}}])}),0!=e.detail.audit_status||1!==e.isSuper&&"activity-zg-audit"!==e.role?e._e():a("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{staticClass:"button",attrs:{type:"primary",loading:e.isBtnLoading},on:{click:e.submit}},[e._v("通过")]),a("a-button",{staticClass:"button",attrs:{type:"close"},on:{click:e.refuse}},[e._v("拒绝")])],1)],1),a("div",{staticClass:"hisBox"},[a("div",{staticClass:"title"},[e._v("行为日志")]),a("div",{staticClass:"action-list",staticStyle:{"margin-left":"5.5%",width:"80%"}},[a("s-table",{ref:"table",attrs:{rowKey:"id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15,bordered:""},scopedSlots:e._u([{key:"behavior",fn:function(t,o){return[a("p",[e._v(e._s(t))]),2==o.audit_status&&o.audit_reason?a("p",[e._v("("+e._s(o.audit_reason)+")")]):e._e()]}}])})],1)])],1)],1)],1),a("a-modal",{attrs:{title:"拒绝理由",visible:e.showModal,"confirm-loading":!1},on:{ok:e.changeOk,cancel:e.changeCancel}},[a("a-textarea",{staticClass:"remark_textarea",attrs:{placeholder:"请填写拒绝理由",maxLength:100},model:{value:e.refuseValue,callback:function(t){e.refuseValue=t},expression:"refuseValue"}})],1)],1)])],1)},i=[],r=a("5530"),l=(a("d3b7"),a("159b"),a("a59f"),a("8ded"),a("27c3")),n=(a("f766"),a("ca00"),a("2af9")),s=[{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:n["c"]},data:function(){var e=this;return{id:"",form:this.$form.createForm(this),isLoading:!1,isBtnLoading:!1,userId:"",labelCol:{span:3},wrapperCol:{span:20},selectImageList:[],couponsColumns:s,couponsData:[],columns:c,showModal:!1,refuseValue:"",detail:{},isSuper:1,role:"",queryParam:{},loadData:function(t){return e.queryParam.target_type="2",e.queryParam.target_id=e.id,l["a"](Object(r["a"])(Object(r["a"])({},t),e.queryParam)).then((function(e){return e.data.list}))}}},created:function(){var e=this;if(this.$store.getters.roles){this.isSuper=this.$store.getters.roles.isSuper;var t=this.$store.getters.roles.permissions;t.forEach((function(t){"/memberCenter/monthlyWelfare/index"==t.permissionId&&t.actionEntitySet&&t.actionEntitySet.length>0&&(e.role=t.actionEntitySet[0].action)}))}this.id=this.$route.query.id,this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,l["e"]({id:this.id}).then((function(t){e.isLoading=!1;var a=t.data.detail||{};e.detail=a,e.couponsData=[a.coupon]})).finally((function(){e.isLoading=!1}))},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},submit:function(){var e=this;this.isLoading=!0,l["d"]({form:{id:this.id,audit_status:1}}).then((function(t){e.$message.success(t.message,1.5),e.getDetail(),e.handleRefresh(!0)})).finally((function(){e.isLoading=!1}))},refuse:function(){this.showModal=!0},changeOk:function(e){var t=this;e.preventDefault(),this.refuseValue?l["d"]({form:{id:this.id,audit_status:2,audit_reason:this.refuseValue}}).then((function(e){t.$message.success(e.message,1.5),t.showModal=!1,t.getDetail(),t.handleRefresh(!0)})).finally((function(){t.isLoading=!1})):this.$message.error("请填写拒绝理由",1.5)},changeCancel:function(){this.showModal=!1}}},u=d,p=(a("51c4"),a("2877")),f=Object(p["a"])(u,o,i,!1,null,"1b22fb86",null);t["default"]=f.exports},a59f:function(e,t,a){var o,i,r;(function(l,n){i=[t,a("313e")],o=n,r="function"===typeof o?o.apply(t,i):o,void 0===r||(e.exports=r)})(0,(function(e,t){var a=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){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}}}};t.registerTheme("fresh-cut",i)}else a("ECharts is not Loaded")}))}}]);