chunk-36841aca.967a0f22.js 7.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36841aca"],{3685:function(t,e,o){"use strict";o("4c69")},"3cc9":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("a-spin",{attrs:{spinning:t.isLoading}},[o("div",[o("a-card",{attrs:{bordered:!1}},[o("div",{staticClass:"title"},[t._v("申请内容")]),o("a-row",[o("a-col",{attrs:{span:24}},[o("a-form-item",{attrs:{label:"申请编号",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[o("p",[t._v(t._s(t.detail.number||"--"))])]),o("a-form-item",{attrs:{label:"申请类型",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[o("p",[t._v(t._s(1==t.detail.type?"新增会员价商品":"修改会员折扣"))]),o("a-table",{staticClass:"goodsBox",staticStyle:{"margin-top":"20px"},attrs:{rowKey:"goods_id",columns:t.goodsColumns,dataSource:t.detail.applyGoods,pagination:!1,bordered:""},scopedSlots:t._u([{key:"goods_price_min",fn:function(e){return o("span",{},[o("p",[t._v("¥"+t._s(e))])])}},{key:"discount",fn:function(e){return o("span",{},[o("p",[t._v(t._s(e)+"%")])])}}])},[o("span",{attrs:{slot:"customTitle"},slot:"customTitle"},[t._v(" 会员折扣 "),o("a-tooltip",{attrs:{placement:"topLeft"}},[o("template",{slot:"title"},[o("p",[t._v("会员价 = 商品活动价 / 促销价 x 会员折扣")]),o("p",[t._v("*即会员折扣与活动价(拼团和砍价除外)叠加享受")])]),o("a-icon",{attrs:{type:"question-circle",theme:"filled"}})],2)],1)])],1),0!=t.detail.audit_status||1!==t.isSuper&&"activity-zg-audit"!==t.role?t._e():o("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:t.wrapperCol.span,offset:t.labelCol.span}}},[o("a-button",{staticClass:"button",attrs:{type:"primary",loading:t.isBtnLoading},on:{click:t.submit}},[t._v("通过")]),o("a-button",{staticClass:"button",attrs:{type:"close"},on:{click:t.refuse}},[t._v("拒绝")])],1),o("div",{staticClass:"hisBox"},[o("div",{staticClass:"title"},[t._v("行为日志")]),o("div",{staticClass:"action-list",staticStyle:{"margin-left":"5.5%",width:"80%"}},[o("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(e,a){return[o("p",[t._v(t._s(e))]),2==a.audit_status&&a.audit_reason?o("p",[t._v("("+t._s(a.audit_reason)+")")]):t._e()]}}])})],1)])],1)],1)],1),o("a-modal",{attrs:{title:"拒绝理由",visible:t.showModal,"confirm-loading":!1},on:{ok:t.changeOk,cancel:t.changeCancel}},[o("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=[],s=o("5530"),r=(o("d3b7"),o("159b"),o("a59f"),o("2af9")),n=(o("8ded"),o("6af1")),l=[{title:"商品SPU",width:"170px",dataIndex:"goods.goods_no"},{title:"商品名称",width:"210px",dataIndex:"goods.goods_name"},{title:"促销价(售价)",width:"100px",dataIndex:"goods.goods_price_min",scopedSlots:{customRender:"goods_price_min"}},{width:"100px",dataIndex:"discount",slots:{title:"customTitle"},scopedSlots:{customRender:"discount"}}],d=[{title:"账号",width:"100px",dataIndex:"audit_user"},{title:"行为",dataIndex:"behavior",width:"300px",scopedSlots:{customRender:"behavior"}},{title:"时间",width:"150px",dataIndex:"audit_time"}],c={name:"AddCompensateOrder",components:{STable:r["c"]},data:function(){var t=this;return{id:"",type:1,isLoading:!1,isBtnLoading:!1,labelCol:{span:3},wrapperCol:{span:20},detail:{},goodsColumns:l,columns:d,showModal:!1,refuseValue:"",isSuper:1,role:"",queryParam:{},loadData:function(e){return t.queryParam.target_type="5",t.queryParam.target_id=t.id,n["a"](Object(s["a"])(Object(s["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/menberGoods/configList"==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,n["f"]({id:this.id}).then((function(e){t.isLoading=!1;var o=e.data.detail||{};t.detail=o})).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,n["e"]({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?n["e"]({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=c,p=(o("3685"),o("2877")),f=Object(p["a"])(u,a,i,!1,null,"56e368a8",null);e["default"]=f.exports},"4c69":function(t,e,o){},"6af1":function(t,e,o){"use strict";o.d(e,"b",(function(){return s})),o.d(e,"d",(function(){return r})),o.d(e,"i",(function(){return n})),o.d(e,"f",(function(){return l})),o.d(e,"a",(function(){return d})),o.d(e,"g",(function(){return c})),o.d(e,"j",(function(){return u})),o.d(e,"c",(function(){return p})),o.d(e,"h",(function(){return f})),o.d(e,"e",(function(){return m}));var a=o("b775"),i={applyList:"/members.Apply/list",list:"/members.MemberGoods/list",detail:"/members.Apply/detail",actionsList:"/members.MemberCards/actionsList",edit:"/members.MemberGoods/edit",remove:"/members.MemberGoods/remove",addGoodsList:"/members.Apply/addGoodsList",editGoodsList:"/members.Apply/editGoodsList",add:"/members.Apply/add",audit:"/members.Apply/audit"};function s(t){return Object(a["b"])({url:i.add,method:"post",data:t})}function r(t){return Object(a["b"])({url:i.applyList,method:"get",params:t})}function n(t){return Object(a["b"])({url:i.list,method:"get",params:t})}function l(t){return Object(a["b"])({url:i.detail,method:"get",params:t})}function d(t){return Object(a["b"])({url:i.actionsList,method:"get",params:t})}function c(t){return Object(a["b"])({url:i.edit,method:"post",data:t})}function u(t){return Object(a["b"])({url:i.remove,method:"post",data:t})}function p(t){return Object(a["b"])({url:i.addGoodsList,method:"get",params:t})}function f(t){return Object(a["b"])({url:i.editGoodsList,method:"get",params:t})}function m(t){return Object(a["b"])({url:i.audit,method:"post",data:t})}},a59f:function(t,e,o){var a,i,s;(function(r,n){i=[e,o("313e")],a=n,s="function"===typeof a?a.apply(e,i):a,void 0===s||(t.exports=s)})(0,(function(t,e){var o=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var a=["#00a8c6","#40c0cb","#f0dec2","#aee239","#8fbe00","#33e0ff","#b3f4ff","#e6ff99"],i={color:a,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 o("ECharts is not Loaded")}))}}]);