1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a7cc4b6"],{"2af96":function(t,e,n){"use strict";n("ffba")},"46ae":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("s-table",{ref:"table",staticClass:"tableBox",attrs:{rowKey:"id",loading:t.isLoading,columns:t.columns,data:t.loadData,pageSize:15,bordered:""},scopedSlots:t._u([{key:"admin_name",fn:function(n){return e("span",{},[e("p",[t._v(t._s(n||"--"))])])}},{key:"type",fn:function(n){return e("span",{},[e("p",[t._v(t._s(1==n?"新增会员价商品":"修改会员折扣"))])])}},{key:"audit_status",fn:function(n){return e("span",{},[e("p",{class:[0==n?"audit_status_red":1==n?"audit_status_black":"c-p"]},[t._v(" "+t._s(0==n?"待审核":1==n?"审核通过":"已拒绝")+" ")])])}},{key:"action",fn:function(n,r){return e("div",{staticClass:"actions"},[0!=r.audit_status||1!==t.isSuper&&"activity-zg-audit"!=t.role?t._e():e("a",{on:{click:function(e){return t.handleLook(r)}}},[t._v("去审核")]),e("a",{on:{click:function(e){return t.handleLook(r)}}},[t._v("查看详情")])])}}])})],1)},a=[],i=n("753f"),s=(n("9f29"),n("0528"),n("6af1")),o=n("2af9"),d=[{title:"提交人",width:"200px",dataIndex:"admin_name",scopedSlots:{customRender:"admin_name"}},{title:"提交时间",dataIndex:"create_time",width:"200px"},{title:"申请类型",dataIndex:"type",width:"200px",scopedSlots:{customRender:"type"}},{title:"审核状态",dataIndex:"audit_status",width:"200px",scopedSlots:{customRender:"audit_status"}},{title:"操作",width:"200px",scopedSlots:{customRender:"action"}}],u={components:{STable:o["c"]},data:function(){var t=this;return{isLoading:!1,queryParam:{},columns:d,isSuper:1,role:"",loadData:function(e){return s["d"](Object(i["a"])(Object(i["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)}))}},methods:{handleSearch:function(t){var e=this;t.preventDefault(),this.searchForm.validateFields((function(t,n){t||(e.queryParam=Object(i["a"])(Object(i["a"])({},e.queryParam),n),e.handleRefresh(!0))}))},reloadList:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},handleRefresh:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(t),this.selectedRowKeys=[]},handleEdit:function(t){this.$router.push({path:"./edit",query:{id:t.id}})},handleLook:function(t){this.$router.push({path:"./details",query:{id:t.id}})}}},c=u,l=(n("2af96"),n("829d")),f=Object(l["a"])(c,r,a,!1,null,"05efbb4f",null);e["default"]=f.exports},"6af1":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s})),n.d(e,"i",(function(){return o})),n.d(e,"f",(function(){return d})),n.d(e,"a",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"h",(function(){return m})),n.d(e,"e",(function(){return p}));var r=n("b775"),a={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 i(t){return Object(r["b"])({url:a.add,method:"post",data:t})}function s(t){return Object(r["b"])({url:a.applyList,method:"get",params:t})}function o(t){return Object(r["b"])({url:a.list,method:"get",params:t})}function d(t){return Object(r["b"])({url:a.detail,method:"get",params:t})}function u(t){return Object(r["b"])({url:a.actionsList,method:"get",params:t})}function c(t){return Object(r["b"])({url:a.edit,method:"post",data:t})}function l(t){return Object(r["b"])({url:a.remove,method:"post",data:t})}function f(t){return Object(r["b"])({url:a.addGoodsList,method:"get",params:t})}function m(t){return Object(r["b"])({url:a.editGoodsList,method:"get",params:t})}function p(t){return Object(r["b"])({url:a.audit,method:"post",data:t})}},ffba:function(t,e,n){}}]);
|