1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3632bce4"],{"0ea4":function(t,e,r){"use strict";r("8e36")},6799:function(t,e,r){"use strict";r.r(e);var a=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:2}},[t._v("拼团失败")]),e("a-select-option",{attrs:{value:0}},[t._v("拼团中")]),e("a-select-option",{attrs:{value:1}},[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:"order_no",fn:function(r){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v(t._s(r))])])}},{key:"goods_name",fn:function(r){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v(t._s(r))])])}},{key:"goods_sku_no",fn:function(r){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v(t._s(r))])])}},{key:"order_money",fn:function(r){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v("¥"+t._s(r))])])}},{key:"pay_state",fn:function(r,a){return e("span",{},[e("p",{staticClass:"textWrap"},[1===a.is_virtual_join_user?e("span",[t._v("--")]):e("span",[t._v(" "+t._s(1===r?"已支付":2===r?"支付失败":"待支付")+" ")])])])}},{key:"pay_money",fn:function(r){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v("¥"+t._s(r))])])}},{key:"rice_card_money",fn:function(r){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v("¥"+t._s(r))])])}},{key:"join_user_name",fn:function(r,a){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v(t._s(r)),e("span",{staticStyle:{color:"red"}},[t._v(t._s(1===a.is_virtual_join_user?"(虚拟团长)":""))])])])}},{key:"pay_time",fn:function(r){return e("span",{},[e("p",{staticClass:"textWrap"},[t._v(t._s(r))])])}},{key:"status",fn:function(r,a){return[1==a.has_canceled?e("p",[t._v("取消拼团")]):e("div",[e("p",{class:{colorRed:2==r}},[t._v(t._s((1==r?"拼团成功":2==r?"拼团失败":"拼团中")||"--"))])])]}},{key:"finance_refund",fn:function(r,a){return[2==a.status?e("p",[t._v(" "+t._s(0==r?"未退款":"已退款")+" ")]):1==a.status?e("p",[t._v(" "+t._s(1==r?"已退款":"--")+" ")]):e("p",[t._v("--")])]}},{key:"action",fn:function(r,a){return e("div",{staticClass:"actions"},[a.order_id>0&&1==a.status?e("a",{on:{click:function(e){return t.openOrderInfo(a)}}},[t._v("查看订单")]):2!=a.status||0!=a.finance_refund&&2!=a.finance_refund||0!=a.order_id||1!=a.pay_state||0!=a.is_virtual_join_user?e("p",[t._v("--")]):e("a",{on:{click:function(e){return t.confirmRefund(a)}}},[t._v("手工退款")])])}}])})],1)},n=[],s=r("753f"),o=(r("9f29"),r("0528"),r("db3f")),i=r("2af9"),u=[{title:"订单号",width:"100px",dataIndex:"order_no"},{title:"商品名称",dataIndex:"goods_name",width:"120px",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_state",scopedSlots:{customRender:"pay_state"}},{title:"实付金额",dataIndex:"pay_money",scopedSlots:{customRender:"pay_money"}},{title:"购物卡抵扣金额",dataIndex:"rice_card_money",scopedSlots:{customRender:"rice_card_money"}},{title:"团长",dataIndex:"join_user_name",width:"120px",scopedSlots:{customRender:"join_user_name"}},{title:"下单用户",dataIndex:"help_user_name",scopedSlots:{customRender:"help_user_name"}},{title:"付款时间",width:"120px",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["i"](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,r){t||(e.queryParam=Object(s["a"])(Object(s["a"])({},e.queryParam),r),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["l"]({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=(r("0ea4"),r("829d")),p=Object(l["a"])(d,a,n,!1,null,"846fb9f4",null);e["default"]=p.exports},"8e36":function(t,e,r){},db3f:function(t,e,r){"use strict";r.d(e,"h",(function(){return s})),r.d(e,"d",(function(){return o})),r.d(e,"a",(function(){return i})),r.d(e,"n",(function(){return u})),r.d(e,"m",(function(){return c})),r.d(e,"b",(function(){return d})),r.d(e,"k",(function(){return l})),r.d(e,"j",(function(){return p})),r.d(e,"g",(function(){return f})),r.d(e,"f",(function(){return m})),r.d(e,"l",(function(){return _})),r.d(e,"i",(function(){return v})),r.d(e,"c",(function(){return b})),r.d(e,"e",(function(){return h}));var a=r("b775"),n={list:"/GroupBuyLbActivity/list",detail:"/GroupBuyLbActivity/ptStats",add:"/GroupBuyLbActivity/add",update:"/GroupBuyLbActivity/update",status:"/GroupBuyLbActivity/status",audit:"/GroupBuyLbActivity/audit",ptStats:"/GroupBuyLbActivity/ptStats",ptRecord:"/GroupBuyLbActivity/ptRecord",joinOrders:"/GroupBuyLbActivity/joinOrders",failedGroup:"/GroupBuyLbActivity/failedGroup",refundAct:"/GroupBuyLbActivity/refundAct",orderList:"/GroupBuyLbActivity/allList",couponlist:"/coupon/couponGroupBuyLblist",edit:"/GroupBuyLbActivity/edit"};function s(t){return Object(a["b"])({url:n.list,method:"get",params:t})}function o(t){return Object(a["b"])({url:n.detail,method:"get",params:t})}function i(t){return Object(a["b"])({url:n.add,method:"post",data:t})}function u(t){return Object(a["b"])({url:n.update,method:"post",data:t})}function c(t){return Object(a["b"])({url:n.status,method:"post",data:t})}function d(t){return Object(a["b"])({url:n.audit,method:"post",data:t})}function l(t){return Object(a["b"])({url:n.ptStats,method:"get",params:t})}function p(t){return Object(a["b"])({url:n.ptRecord,method:"get",params:t})}function f(t){return Object(a["b"])({url:n.joinOrders,method:"get",params:t})}function m(t){return Object(a["b"])({url:n.failedGroup,method:"get",params:t})}function _(t){return Object(a["b"])({url:n.refundAct,method:"get",params:t})}function v(t){return Object(a["b"])({url:n.orderList,method:"get",params:t})}function b(t){return Object(a["b"])({url:n.couponlist,method:"get",params:t})}function h(t){return Object(a["b"])({url:n.edit,method:"post",data:t})}}}]);
|