chunk-c991965c.c3baeea1.js 8.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c991965c"],{"171a":function(t,e,a){},"217a":function(t,e,a){"use strict";a.d(e,"h",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return i})),a.d(e,"m",(function(){return u})),a.d(e,"l",(function(){return c})),a.d(e,"c",(function(){return d})),a.d(e,"j",(function(){return l})),a.d(e,"i",(function(){return p})),a.d(e,"g",(function(){return f})),a.d(e,"f",(function(){return m})),a.d(e,"k",(function(){return _})),a.d(e,"b",(function(){return v})),a.d(e,"e",(function(){return h}));var r=a("b775"),n={list:"/GroupBuyActivity/list",detail:"/GroupBuyActivity/detail",add:"/GroupBuyActivity/add",update:"/GroupBuyActivity/update",status:"/GroupBuyActivity/status",audit:"/GroupBuyActivity/audit",ptStats:"/GroupBuyActivity/ptStats",ptRecord:"/GroupBuyActivity/ptRecord",joinOrders:"/GroupBuyActivity/joinOrders",failedGroup:"/GroupBuyActivity/failedGroup",refundAct:"/GroupBuyActivity/refundAct",allList:"/GroupBuyActivity/allList",edit:"/GroupBuyActivity/edit"};function s(t){return Object(r["b"])({url:n.list,method:"get",params:t})}function o(t){return Object(r["b"])({url:n.detail,method:"get",params:t})}function i(t){return Object(r["b"])({url:n.add,method:"post",data:t})}function u(t){return Object(r["b"])({url:n.update,method:"post",data:t})}function c(t){return Object(r["b"])({url:n.status,method:"post",data:t})}function d(t){return Object(r["b"])({url:n.audit,method:"post",data:t})}function l(t){return Object(r["b"])({url:n.ptStats,method:"get",params:t})}function p(t){return Object(r["b"])({url:n.ptRecord,method:"get",params:t})}function f(t){return Object(r["b"])({url:n.joinOrders,method:"get",params:t})}function m(t){return Object(r["b"])({url:n.failedGroup,method:"get",params:t})}function _(t){return Object(r["b"])({url:n.refundAct,method:"get",params:t})}function v(t){return Object(r["b"])({url:n.allList,method:"get",params:t})}function h(t){return Object(r["b"])({url:n.edit,method:"post",data:t})}},"39ad":function(t,e,a){"use strict";a.r(e);var r=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-row",{staticClass:"row-item-search"},[e("a-form",{staticClass:"search-form",attrs:{form:t.searchForm,layout:"inline"},on:{submit:t.handleSearch}},[e("a-form-item",{attrs:{label:"订单号"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_no"],expression:"['order_no']"}],staticClass:"inputW150",attrs:{placeholder:"请输入订单号"}})],1),e("a-form-item",{attrs:{label:"商品名称"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_name"],expression:"['goods_name']"}],staticClass:"inputW150",attrs:{placeholder:"请输入商品名称"}})],1),e("a-form-item",{attrs:{label:"商品SKU"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goods_sku_no"],expression:"['goods_sku_no']"}],staticClass:"inputW150",attrs:{placeholder:"请输入商品SKU"}})],1),e("a-form-item",{attrs:{label:"拼单状态"}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:-1}],expression:"['status', { initialValue: -1 }]"}]},[e("a-select-option",{attrs:{value:-1}},[t._v("全部")]),e("a-select-option",{attrs:{value:0}},[t._v("拼团中")]),e("a-select-option",{attrs:{value:1}},[t._v("拼团成功")]),e("a-select-option",{attrs:{value:2}},[t._v("拼团失败")])],1)],1),e("br"),e("a-form-item",{attrs:{label:"付款时间"}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],staticClass:"inputW220",attrs:{format:"YYYY-MM-DD"}})],1),e("a-form-item",{attrs:{label:"退款状态"}},[e("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["finance_refund",{initialValue:-1}],expression:"['finance_refund', { initialValue: -1 }]"}]},[e("a-select-option",{attrs:{value:-1}},[t._v("全部")]),e("a-select-option",{attrs:{value:1}},[t._v("已退款")]),e("a-select-option",{attrs:{value:0}},[t._v("未退款")])],1)],1),e("a-button",{staticClass:"search-btn",attrs:{type:"primary",icon:"search","html-type":"submit"}},[t._v("搜索")]),e("a-button",{staticClass:"search-btn",attrs:{"html-type":"submit"},on:{click:t.reloadList}},[t._v("重置")])],1)],1),e("s-table",{ref:"table",staticClass:"tableBox",attrs:{rowKey:function(t,e){return e},loading:t.isLoading,columns:t.columns,data:t.loadData,pageSize:15,bordered:""},scopedSlots:t._u([{key:"goods_name",fn:function(a){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v(t._s(a))])])}},{key:"goods_sku_no",fn:function(a){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v(t._s(a))])])}},{key:"order_money",fn:function(a){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v("¥"+t._s(a))])])}},{key:"pay_money",fn:function(a){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v("¥"+t._s(a))])])}},{key:"rice_card_money",fn:function(a){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v("¥"+t._s(a))])])}},{key:"status",fn:function(a){return e("span",{},[e("p",{class:{colorRed:2==a}},[t._v(t._s((1==a?"拼团成功":2==a?"拼团失败":4==a?"取消拼团":"拼团中")||"--"))])])}},{key:"finance_refund",fn:function(a,r){return e("span",{},[2==r.status?e("p",[t._v(" "+t._s(0==a?"未退款":"已退款")+" ")]):1==r.status?e("p",[t._v(" "+t._s(1==a?"已退款":"--")+" ")]):4==r.status?e("p",[t._v("已退款")]):e("p",[t._v("--")])])}},{key:"action",fn:function(a,r){return e("div",{staticClass:"actions"},[1==r.status?e("a",{on:{click:function(e){return t.openOrderInfo(r)}}},[t._v("查看订单")]):2==r.status&&0==r.finance_refund?e("a",{on:{click:function(e){return t.confirmRefund(r)}}},[t._v("手工退款")]):e("p",[t._v("--")])])}}])})],1)},n=[],s=a("753f"),o=(a("9f29"),a("0528"),a("217a")),i=a("2af9"),u=[{title:"订单号",dataIndex:"order_no"},{title:"商品名称",dataIndex:"goods_name",width:"160px",scopedSlots:{customRender:"goods_name"}},{title:"商品SKU编码",dataIndex:"goods_sku_no",width:"100px",scopedSlots:{customRender:"goods_sku_no"}},{title:"应付金额",dataIndex:"order_money",scopedSlots:{customRender:"order_money"}},{title:"实付金额",dataIndex:"pay_money",scopedSlots:{customRender:"pay_money"}},{title:"购物卡抵扣金额",dataIndex:"rice_card_money",scopedSlots:{customRender:"rice_card_money"}},{title:"团长",dataIndex:"join_user_name"},{title:"下单用户",dataIndex:"help_user_name",scopedSlots:{customRender:"help_user_name"}},{title:"付款时间",dataIndex:"pay_time",scopedSlots:{customRender:"pay_time"}},{title:"拼单状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"退款状态",dataIndex:"finance_refund",scopedSlots:{customRender:"finance_refund"}},{title:"操作",scopedSlots:{customRender:"action"}}],c={components:{STable:i["c"]},data:function(){var t=this;return{searchForm:this.$form.createForm(this),isLoading:!1,queryParam:{},columns:u,okText:"",openVisible:!1,refuseVisible:!1,record:{},isSuper:1,role:"",loadData:function(e){return o["b"](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){"/activityCenter/patchworkFission/orderList"==e.permissionId&&e.actionEntitySet&&e.actionEntitySet.length>0&&(t.role=e.actionEntitySet[0].action)}))}},methods:{handleRefresh:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(t)},handleSearch:function(t){var e=this;t.preventDefault(),this.searchForm.validateFields((function(t,a){t||(e.queryParam=Object(s["a"])(Object(s["a"])({},e.queryParam),a),e.handleRefresh(!0))}))},reloadList:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},openOrderInfo:function(t){this.$router.push({path:"/order/detail",query:{orderId:t.order_id}})},confirmRefund:function(t){var e=this;this.isLoading=!0,o["k"]({help_id:t.id}).then((function(t){e.$message.success(t.message,1.5),e.handleRefresh(!0)})).finally((function(){e.isLoading=!1}))}}},d=c,l=(a("b9ad"),a("829d")),p=Object(l["a"])(d,r,n,!1,null,"552c5003",null);e["default"]=p.exports},b9ad:function(t,e,a){"use strict";a("171a")}}]);