1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order"],{"0b14":function(e,t,a){"use strict";a("bdad")},"0ccb":function(e,t,a){"use strict";a.d(t,"f",(function(){return i})),a.d(t,"a",(function(){return o})),a.d(t,"e",(function(){return n})),a.d(t,"d",(function(){return d})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return c}));var s=a("b775"),r={getOrderDetail:"/order/getDetail",add:"/RefundCompensate/add",detail:"/RefundCompensate/detail",audit:"/RefundCompensate/auditzg",close:"/RefundCompensate/close",edit:"/RefundCompensate/edit"};function i(e){return Object(s["b"])({url:r.getOrderDetail,method:"get",params:e})}function o(e){return Object(s["b"])({url:r.add,method:"post",data:e})}function n(e){return Object(s["b"])({url:r.edit,method:"post",data:e})}function d(e){return Object(s["b"])({url:r.detail,method:"get",params:e})}function l(e){return Object(s["b"])({url:r.audit,method:"post",data:e})}function c(e){return Object(s["b"])({url:r.close,method:"post",params:e})}},"1b70":function(e,t,a){"use strict";a("904d")},"1bb1":function(e,t,a){"use strict";a("488e")},"1d4d":function(e,t,a){"use strict";a("9673")},2622:function(e,t,a){},"2a66":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return d})),a.d(t,"c",(function(){return l}));var s=a("b775"),r={list:"/setting.express/list",all:"/setting.express/all",add:"/setting.express/add",edit:"/setting.express/edit",delete:"/setting.express/delete"};function i(e){return Object(s["b"])({url:r.list,method:"get",params:e})}function o(e){return Object(s["b"])({url:r.all,method:"get",params:e})}function n(e){return Object(s["b"])({url:r.add,method:"post",data:e})}function d(e){return Object(s["b"])({url:r.edit,method:"post",data:e})}function l(e){return Object(s["b"])({url:r.delete,method:"post",data:e})}},3837:function(e,t,a){"use strict";a("88b4")},"3a10":function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"a",(function(){return o})),a.d(t,"g",(function(){return n})),a.d(t,"b",(function(){return d})),a.d(t,"l",(function(){return l})),a.d(t,"f",(function(){return c})),a.d(t,"k",(function(){return u})),a.d(t,"c",(function(){return p})),a.d(t,"j",(function(){return _})),a.d(t,"i",(function(){return m})),a.d(t,"h",(function(){return f})),a.d(t,"e",(function(){return h}));var s=a("b775"),r={list:"/order/list",detail:"/order/detail",deliverylList:"/order/deliverylList",receiptlList:"/order/receiptlList",updColor:"/order/updColor",orderExport:"/order/orderExport",updAddress:"/order/updAddress",express:"/order/express",splitDelivery:"/order/splitDelivery",remindList:"/SmsRemind/list",remindEdit:"/SmsRemind/edit",orderAllExport:"/order/orderAllExport"};function i(e){return Object(s["b"])({url:r.list,method:"get",params:e})}function o(e){return Object(s["b"])({url:r.deliverylList,method:"get",params:e})}function n(e){return Object(s["b"])({url:r.receiptlList,method:"get",params:e})}function d(e){return Object(s["b"])({url:r.detail,method:"get",params:e})}function l(e){return Object(s["b"])({url:r.updColor,method:"POST",params:e})}function c(e){return Object(s["b"])({url:r.orderExport,method:"POST",data:e})}function u(e){return Object(s["b"])({url:r.updAddress,method:"POST",data:e})}function p(e){return Object(s["b"])({url:r.express,method:"get",params:e})}function _(e){return Object(s["b"])({url:r.splitDelivery,method:"post",data:e})}function m(e){return Object(s["b"])({url:r.remindList,method:"get",params:e})}function f(e){return Object(s["b"])({url:r.remindEdit,method:"post",data:e})}function h(e){return Object(s["b"])({url:r.orderAllExport,method:"post",data:e})}},"41ad":function(e,t,a){"use strict";a("2622")},"449d":function(e,t,a){"use strict";a("efd6")},"488e":function(e,t,a){},"4a95":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"e",(function(){return d})),a.d(t,"f",(function(){return l})),a.d(t,"g",(function(){return c}));var s=a("5c06"),r=new s["a"]([{key:"NOT_DELIVERED",name:"未发货",value:10},{key:"DELIVERED",name:"已发货",value:20}]),i=new s["a"]([{key:"EXPRESS",name:"普通配送",value:10},{key:"CARRY",name:"门店自提",value:20}]),o=new s["a"]([{key:"0",name:"待支付",value:11},{key:"1",name:"已付款待发货",value:12},{key:"2",name:"已付款待收货",value:13},{key:"4",name:"已取消",value:20},{key:"5",name:"已完成",value:30},{key:"6",name:"已关闭",value:40}]),n=new s["a"]([{key:"NORMAL",name:"进行中",value:10},{key:"CANCELLED",name:"已取消",value:20},{key:"APPLY_CANCEL",name:"待取消",value:21},{key:"COMPLETED",name:"已完成",value:30}]),d=new s["a"]([{key:"PENDING",name:"待支付",value:10},{key:"SUCCESS",name:"已支付",value:20}]),l=new s["a"]([{key:"0",name:"购物卡兑换",value:30},{key:"1",name:"微信支付",value:20}]),c=new s["a"]([{key:"NOT_RECEIVED",name:"未收货",value:10},{key:"RECEIVED",name:"已收货",value:20}])},"4d55":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return d})),a.d(t,"c",(function(){return l}));var s=a("b775"),r={list:"/store.address/list",all:"/store.address/all",add:"/store.address/add",edit:"/store.address/edit",delete:"/store.address/delete"};function i(e){return Object(s["b"])({url:r.list,method:"get",params:e})}function o(e){return Object(s["b"])({url:r.all,method:"get",params:e})}function n(e){return Object(s["b"])({url:r.add,method:"post",data:e})}function d(e){return Object(s["b"])({url:r.edit,method:"post",data:e})}function l(e){return Object(s["b"])({url:r.delete,method:"post",data:e})}},"56db":function(e,t,a){"use strict";a.r(t);a("ff9e"),a("aa8b");var s=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.isLoading}}),e.isLoading?e._e():t("div",{staticClass:"detail-content"},[t("a-card",{attrs:{bordered:!1}},[e.record.status==e.RefundStatusEnum.NORMAL.value?t("div",{staticClass:"detail-actions"},[t("div",{staticClass:"ant-descriptions-title"},[e._v("售后单操作")]),t("div",{staticClass:"alerts mt-10 mb-15"},[e.record.audit_status==e.AuditStatusEnum.WAIT.value?t("a-alert",{attrs:{message:"当前买家已发起售后申请,请及时审核处理",banner:""}}):e._e()],1),t("a-divider",{staticClass:"o-divider"})],1):e._e(),t("div",{staticClass:"title"},[e._v("售后商品信息")]),t("div",{staticClass:"goods-list"},[t("a-table",{staticStyle:{overflow:"scroll"},attrs:{rowKey:"order_goods_id",columns:e.goodsColumns,dataSource:e.goodsList,pagination:!1,bordered:""},scopedSlots:e._u([{key:"goods_no",fn:function(a,s){return t("span",{},[e._v(e._s(s.goods_no?s.goods_no:"--"))])}},{key:"goods_image",fn:function(e,a){return t("span",{},[t("a",{attrs:{title:"点击查看原图",href:a.goods_image,target:"_blank"}},[t("img",{staticStyle:{"object-fit":"cover",width:"50px",height:"50px"},attrs:{src:a.goods_image,alt:"商品图片"}})])])}},{key:"total_money",fn:function(a,s){return t("span",{},[e._v("¥"+e._s(((s.goods_price-s.distributor_goods_price-s.coupon_goods_money)*s.refund_total_num).toFixed(2)))])}}],null,!1,2914679499)}),t("p",{staticClass:"total"},[e._v(" 退运费:¥"+e._s(e.record.express_price)+" "),t("span",[e._v("合计:¥"+e._s(e.record.refund_money))])]),e.zengpinOrderGoods&&e.zengpinOrderGoods.length>0?t("div",{staticClass:"title"},[e._v("退货赠品信息")]):e._e(),e.zengpinOrderGoods&&e.zengpinOrderGoods.length>0?t("div",{staticClass:"goods-list"},[t("a-table",{staticStyle:{overflow:"scroll"},attrs:{rowKey:"order_goods_id",columns:e.zpColumns,dataSource:e.zengpinOrderGoods,pagination:!1,bordered:""},scopedSlots:e._u([{key:"goods_no",fn:function(a,s){return t("span",{},[e._v(e._s(s.goods_no?s.goods_no:"--"))])}},{key:"goods_image",fn:function(e,a){return t("span",{},[t("a",{attrs:{title:"点击查看原图",href:a.goods_image,target:"_blank"}},[t("img",{staticStyle:{"object-fit":"cover",width:"50px",height:"50px"},attrs:{src:a.goods_image,alt:"商品图片"}})])])}},{key:"goods_props",fn:function(a){return t("span",{},[a?t("p",e._l(a,(function(a,s){return t("span",{key:s},[e._v(e._s(a.value.name))])})),0):t("p",[e._v("--")])])}},{key:"activity",fn:function(a,s){return t("span",{},[s.mj_send_activities?t("p",[e._v(e._s(s.mj_send_activities.name))]):e._e(),s.full_send_activity?t("p",[e._v(e._s(s.full_send_activity.name))]):e._e(),s.qc_send_activities?t("p",[e._v(e._s(s.qc_send_activities.name))]):e._e(),s.mj_send_activities||s.mj_send_activities||s.qc_send_activities?e._e():t("p",[e._v("--")])])}}],null,!1,2931037963)},[t("span",{attrs:{slot:"number"},slot:"number"},[t("p",[e._v("1")])])])],1):e._e()],1),t("div",{staticClass:"title"},[e._v("售后信息")]),t("a-descriptions",[t("a-descriptions-item",{attrs:{label:"售后单编号"}},[t("span",[e._v(e._s(e.record.refund_number))])]),t("a-descriptions-item",{attrs:{label:"订单号"}},[e.record.orderData?t("span",[e._v(e._s(e.record.orderData.order_no))]):e._e()]),t("a-descriptions-item",{attrs:{label:"下单用户姓名"}},[e.record.user?t("span",[e._v(e._s(e.record.user.nick_name))]):e._e()]),t("a-descriptions-item",{attrs:{label:"售后类型"}},[t("span",[e._v(e._s(e.record.type_text))])]),t("a-descriptions-item",{attrs:{label:"售后状态"}},[t("span",[e._v(e._s(e.record.state_text))])]),t("a-descriptions-item",{attrs:{label:"退款金额"}},[t("span",[e._v("¥"+e._s(e.record.refund_money)+"(含运费¥"+e._s(e.record.express_price)+"元)")])]),t("a-descriptions-item",{attrs:{label:"货品状态"}},[t("span",[e._v(e._s(1==e.record.goods_type?"未收到货":"已收到货"))])]),t("a-descriptions-item",{attrs:{label:"配送方式"}},[t("span",[e._v(e._s(10==e.record.delivery_type?"普通配送":"门店自提"))])]),t("a-descriptions-item",{attrs:{label:"售后原因"}},[t("p",{staticStyle:{cursor:"pointer"},on:{click:e.shouContent}},[e._v("原因类型:"+e._s(e.record.apply_desc))]),t("p",{staticStyle:{cursor:"pointer"},on:{click:e.shouContent}},[e._v("详细原因:"+e._s(e.record.apply_detail_desc))])]),t("a-descriptions-item",{attrs:{label:"退货快递"}},[e.record.express_no?t("span",[e._v(e._s(e.record.express_company)+" "+e._s(e.record.express_no))]):t("span",[e._v("--")])]),t("a-descriptions-item",{attrs:{label:"退货说明"}},[e.record.express_desc?t("span",[e._v(e._s(e.record.express_desc))]):t("span",[e._v("--")])]),t("a-descriptions-item",{attrs:{label:"申请时间"}},[e._v(e._s(e.record.create_time))]),t("a-descriptions-item",{attrs:{label:"门店拒绝理由"}},[20==e.record.delivery_type&&e.record.refuse_desc?t("p",{staticStyle:{cursor:"pointer"},on:{click:e.shouRefuse}},[e._v(" "+e._s(e.record.refuse_desc)+" ")]):t("p",[e._v("--")])])],1),1!=e.isSuper&&10==e.record.delivery_type?t("div",{staticClass:"btnBox"},["refund-zy-audit"==e.role?t("a-button",{attrs:{type:"primary",disabled:e.zyAgreeFlag||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&10==e.auditStatus||30==e.refundType&&10==e.auditStatusZg||30==e.refundType&&20==e.auditStatusZg||10==e.refundType&&10==e.auditStatus||10==e.refundType&&10==e.auditStatusZg||10==e.refundType&&20==e.auditStatusZg},on:{click:function(t){return e.handleZy(10)}}},[e._v("专员同意")]):e._e(),"refund-zy-audit"==e.role?t("a-button",{attrs:{type:"primary",disabled:e.zyFailFlag||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&20==e.auditStatus||30==e.refundType&&10==e.auditStatusZg||30==e.refundType&&20==e.auditStatusZg||10==e.refundType&&20==e.auditStatus||10==e.refundType&&10==e.auditStatusZg||10==e.refundType&&20==e.auditStatusZg},on:{click:function(t){return e.handleZy(20)}}},[e._v("专员拒绝")]):e._e(),"refund-zy-audit"==e.role&&20==e.auditStatus||"refund-zy-audit"==e.role&&1==e.record.is_receipt_reject?t("a-button",{attrs:{type:"primary",disabled:20==e.refundStatus||30==e.refundStatus||40==e.refundStatus},on:{click:e.closeOrder}},[e._v("关闭售后单")]):e._e(),"hrb-receipt"==e.role&&10==e.auditStatusZg&&0==e.record.is_receipt?t("a-button",{attrs:{type:"primary",disabled:1==e.record.is_receipt||1==e.record.is_receipt_reject||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus},on:{click:function(t){return e.receipt(1)}}},[e._v("仓库确认收货,同意退货")]):e._e(),"hrb-receipt"==e.role&&10==e.auditStatusZg&&0==e.record.is_receipt?t("a-button",{attrs:{type:"primary",disabled:1==e.record.is_receipt||1==e.record.is_receipt_reject||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus},on:{click:function(t){return e.receipt(2)}}},[e._v("退货检测不合格,拒绝退货")]):e._e(),"refund-zg-audit"==e.role?t("a-button",{attrs:{type:"primary",disabled:e.zgAgreeFlag||1==e.record.is_receipt||0==e.auditStatus||20==e.auditStatus||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&10==e.auditStatusZg||10==e.refundType&&10==e.auditStatusZg},on:{click:function(t){return e.handleZg(10)}}},[e._v("主管同意")]):e._e(),"refund-zg-audit"==e.role?t("a-button",{attrs:{type:"primary",disabled:e.zgFailFlag||1==e.record.is_receipt||1==e.record.is_receipt_reject||0==e.auditStatus||20==e.auditStatus||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&20==e.auditStatusZg||10==e.refundType&&20==e.auditStatusZg},on:{click:function(t){return e.handleZg(20)}}},[e._v("主管拒绝")]):e._e(),"refund-zg-audit"==e.role&&20==e.auditStatusZg||"refund-zg-audit"==e.role&&1==e.record.is_receipt_reject?t("a-button",{attrs:{type:"primary",disabled:20==e.refundStatus||30==e.refundStatus||40==e.refundStatus},on:{click:e.closeOrder}},[e._v("关闭售后单")]):e._e()],1):e._e(),1==e.isSuper&&10==e.record.delivery_type?t("div",{staticClass:"btnBox"},[t("a-button",{attrs:{type:"primary",disabled:e.zyAgreeFlag||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&10==e.auditStatus||30==e.refundType&&10==e.auditStatusZg||30==e.refundType&&20==e.auditStatusZg||10==e.refundType&&10==e.auditStatus||10==e.refundType&&10==e.auditStatusZg||10==e.refundType&&20==e.auditStatusZg},on:{click:function(t){return e.handleZy(10)}}},[e._v("专员同意")]),t("a-button",{attrs:{type:"primary",disabled:e.zyFailFlag||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&20==e.auditStatus||30==e.refundType&&10==e.auditStatusZg||30==e.refundType&&20==e.auditStatusZg||10==e.refundType&&20==e.auditStatus||10==e.refundType&&10==e.auditStatusZg||10==e.refundType&&20==e.auditStatusZg},on:{click:function(t){return e.handleZy(20)}}},[e._v("专员拒绝")]),20==e.auditStatus||1==e.record.is_receipt_reject?t("a-button",{attrs:{type:"primary",disabled:20==e.refundStatus||30==e.refundStatus||40==e.refundStatus},on:{click:e.closeOrder}},[e._v("关闭售后单")]):e._e(),10==e.auditStatusZg&&0==e.record.is_receipt?t("a-button",{attrs:{type:"primary",disabled:1==e.record.is_receipt||1==e.record.is_receipt_reject||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus},on:{click:function(t){return e.receipt(1)}}},[e._v("仓库确认收货,同意退货")]):e._e(),10==e.auditStatusZg&&0==e.record.is_receipt?t("a-button",{attrs:{type:"primary",disabled:1==e.record.is_receipt||1==e.record.is_receipt_reject||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus},on:{click:function(t){return e.receipt(2)}}},[e._v("退货检测不合格,拒绝退货")]):e._e(),t("a-button",{attrs:{type:"primary",disabled:e.zgAgreeFlag||1==e.record.is_receipt||0==e.auditStatus||20==e.auditStatus||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&10==e.auditStatusZg||10==e.refundType&&10==e.auditStatusZg},on:{click:function(t){return e.handleZg(10)}}},[e._v("主管同意")]),t("a-button",{attrs:{type:"primary",disabled:e.zgFailFlag||1==e.record.is_receipt||1==e.record.is_receipt_reject||0==e.auditStatus||20==e.auditStatus||20==e.refundStatus||30==e.refundStatus||40==e.refundStatus||30==e.refundType&&20==e.auditStatusZg||10==e.refundType&&20==e.auditStatusZg},on:{click:function(t){return e.handleZg(20)}}},[e._v("主管拒绝")])],1):e._e(),t("div",{staticClass:"title"},[e._v("动态信息")]),t("div",{staticClass:"goods-list"},[t("a-table",{attrs:{rowKey:"id",columns:e.columns,"data-source":e.hisList,pagination:!1}})],1)],1)],1),t("AuditForm",{ref:"AuditForm",on:{handleSubmit:e.handleRefresh}}),t("ReceiptForm",{ref:"ReceiptForm",on:{handleSubmit:e.handleRefresh}}),t("a-modal",{attrs:{title:"拒绝理由",visible:e.refuseVisible},on:{cancel:e.refuseCancel,ok:e.refuseOk}},[t("a-form",{staticClass:"search-form",attrs:{form:e.form,selfUpdate:!0},on:{submit:e.refuseOk}},[t("a-form-item",[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["refuse_desc",{rules:[{required:!0,message:"请输入拒绝理由"}]}],expression:"['refuse_desc', { rules: [{ required: true, message: '请输入拒绝理由' }] }]"}],attrs:{placeholder:"请输入拒绝理由","auto-size":""}})],1)],1)],1),t("a-modal",{attrs:{title:"售后详细原因",visible:e.contentVisible,footer:null},on:{cancel:e.contentCancel}},[t("p",[e._v("原因类型:"+e._s(e.record.apply_desc))]),t("p",[e._v("详细原因:"+e._s(e.record.apply_detail_desc))]),e.record.images&&e.record.images.length>0?t("div",{staticClass:"imgs clearfix"},e._l(e.record.images,(function(e,a){return t("div",{key:a,staticClass:"imgSingle"},[t("a",{attrs:{title:"点击查看原图",href:e,target:"_blank"}},[t("img",{staticStyle:{"object-fit":"cover"},attrs:{src:e,alt:"售后图片"}})])])})),0):e._e()]),t("a-modal",{attrs:{title:"门店拒绝理由",visible:e.refuseStore,footer:null},on:{cancel:e.refuseStoreCancel}},[t("p",[e._v(e._s(e.record.refuse_desc))]),e.record.refuse_images&&e.record.refuse_images.length>0?t("div",{staticClass:"imgs clearfix"},e._l(e.record.refuse_images,(function(e,a){return t("div",{key:a,staticClass:"imgSingle"},[t("a",{attrs:{title:"点击查看原图",href:e,target:"_blank"}},[t("img",{staticStyle:{"object-fit":"cover"},attrs:{src:e,alt:"门店拒绝图片"}})])])})),0):e._e()]),t("a-modal",{attrs:{title:"赠品退货提示",visible:e.showZyCheck,okText:"已告知客户",cancelText:"暂未告知"},on:{cancel:e.cancelZyCheck,ok:e.okZyCheck}},[t("p",[e._v("用户退货后将不满足赠品活动条件,请提醒用户将赠品一起退回!")])]),t("a-modal",{attrs:{title:"赠品退货提示",visible:e.showReceipt,okText:"已确认收到赠品",cancelText:"暂未确认"},on:{cancel:e.cancelReceipt,ok:e.okReceipt}},[t("p",[e._v("用户退货后将不满足赠品活动条件,请务必跟仓库确认收到赠品!")])])],1)},r=[],i=a("3032"),o=(a("9f29"),a("0528"),a("ca00")),n=a("e585"),d=a("ab09"),l=a("6ab1"),c=a("b4a5"),u=[{title:"商品编码",dataIndex:"goods_no"},{title:"商品主图",scopedSlots:{customRender:"goods_image"}},{title:"商品名称",dataIndex:"goods_name",width:"150px",ellipsis:!0},{title:"商品规格",dataIndex:"sku_name"},{title:"供应商名称",dataIndex:"provider_name"},{title:"商品单价(售价)",dataIndex:"goods_price"},{title:"优惠券(单件)",dataIndex:"coupon_goods_money"},{title:"专属折扣金额(单件)",dataIndex:"distributor_goods_price"},{title:"退货/退款数量",dataIndex:"refund_total_num"},{title:"退款金额(小计)",scopedSlots:{customRender:"total_money"}}],p=[{title:"操作账号",dataIndex:"pf_operator"},{title:"行为",dataIndex:"pf_behavior"},{title:"时间",dataIndex:"update_time"}],_=[{title:"商品编码",dataIndex:"goods_no"},{title:"赠品主图",scopedSlots:{customRender:"goods_image"}},{title:"赠品名称",dataIndex:"goods_name",width:"150px",ellipsis:!0},{title:"赠品规格",dataIndex:"goods_props",scopedSlots:{customRender:"goods_props"}},{title:"退货数量",dataIndex:"total_num"},{title:"活动",scopedSlots:{customRender:"activity"}}],m={name:"Index",components:{GoodsItem:d["a"],columns:p,UserItem:d["c"],AuditForm:c["a"],ReceiptForm:c["b"]},data:function(){return{isLoading:!1,orderRefundId:null,form:this.$form.createForm(this),record:{},hisList:[],goodsColumns:u,columns:p,zpColumns:_,contentVisible:!1,refuseStore:!1,goodsList:[],zengpinOrderGoods:[],role:"",refundStatus:0,refundType:0,auditStatus:"",auditStatusZg:"",isSuper:1,zytype:10,zgType:10,zyAgreeFlag:!1,zyFailFlag:!1,zgAgreeFlag:!1,zgFailFlag:!1,refuseVisible:!1,showZyCheck:!1,showReceipt:!1,storeType:1}},beforeCreate:function(){Object(o["a"])(this,{AuditStatusEnum:l["a"],RefundStatusEnum:l["c"],RefundTypeEnum:l["d"]})},created:function(){var e=this;if(this.orderRefundId=this.$route.query.orderRefundId,this.handleRefresh(),this.$store.getters.roles){this.isSuper=this.$store.getters.roles.isSuper;var t=this.$store.getters.roles.permissions;t.forEach((function(t){"/order/refund/detail"==t.permissionId&&t.actionEntitySet&&t.actionEntitySet.length>0&&(e.role=t.actionEntitySet[0].action)}))}},methods:{handleRefresh:function(){this.getDetail(),this.getHisList()},getDetail:function(){var e=this,t=this.orderRefundId;this.isLoading=!0,n["e"]({orderRefundId:t}).then((function(t){e.record=t.data.detail,e.goodsList=e.record.orderGoods,e.zengpinOrderGoods=e.record.zengpinOrderGoods,e.refundStatus=t.data.detail.status,e.refundType=t.data.detail.type,e.auditStatus=t.data.detail.audit_status,e.auditStatusZg=t.data.detail.audit_status_zg})).finally((function(){e.isLoading=!1}))},getHisList:function(){var e=this,t=this.orderRefundId;this.isLoading=!0,n["f"]({orderRefundId:t}).then((function(t){e.hisList=t.data.list})).finally((function(){e.isLoading=!1}))},renderAuditStatusColor:function(e){var t=this.AuditStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.WAIT.value,""),t.REVIEWED.value,"green"),t.REJECTED.value,"red");return a[e]},renderRefundStatusColor:function(e){var t=this.RefundStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.REJECTED.value,"red"),t.COMPLETED.value,"green"),t.CANCELLED.value,"red");return a[e]},handleAudit:function(){var e=this.record;this.$refs.AuditForm.show(e)},handleReceipt:function(){var e=this.record;this.$refs.ReceiptForm.show(e)},handleZy:function(e){var t=this;if(this.zytype=e,10==this.zytype){var a=this.orderRefundId;n["c"]({orderRefundId:a}).then((function(e){1==e.data.code||2==e.data.code?t.showZyCheck=!0:t.zyCheck(t.zytype)})).finally((function(){}))}else this.refuseVisible=!0},okZyCheck:function(){this.showZyCheck=!1,this.zyCheck(this.zytype)},cancelZyCheck:function(){this.showZyCheck=!1},zyCheck:function(e,t){var a=this,s=this.orderRefundId,r="";t&&(r=t.refuse_desc),this.isLoading=!0,n["a"]({orderRefundId:s,audit_status:e,refuse_desc:r}).then((function(e){a.$message.success(e.message,1.5),a.handleRefresh(),a.form.resetFields(),a.auditStatus=e.data.audit_status,10==a.zytype?a.zyAgreeFlag=!0:(a.zyFailFlag=!0,a.refuseVisible=!1)})).finally((function(){a.isLoading=!1}))},closeOrder:function(){var e=this,t=this.orderRefundId;this.isLoading=!0,n["d"]({orderRefundId:t}).then((function(t){e.$message.success(t.message,1.5),e.handleRefresh(),e.zyAgreeFlag=!0,e.auditStatus=t.data.status})).finally((function(){e.isLoading=!1}))},cancelReceipt:function(){this.showReceipt=!1},okReceipt:function(){this.showReceipt=!1,this.confirmReceipt(this.storeType)},receipt:function(e){var t=this;this.storeType=e,1==e?n["c"]({orderRefundId:this.orderRefundId}).then((function(e){1==e.data.code||2==e.data.code?t.showReceipt=!0:t.confirmReceipt(t.storeType)})).finally((function(){})):this.refuseVisible=!0},confirmReceipt:function(e,t){var a=this,s=t?t.refuse_desc:"",r={orderRefundId:this.orderRefundId,is_receipt:e,refuse_desc:s};this.isLoading=!0,n["h"]({orderRefundId:r.orderRefundId,is_receipt:r.is_receipt,refuse_desc:r.refuse_desc}).then((function(e){a.$message.success(e.message,1.5),a.refuseVisible=!1,a.handleRefresh()})).finally((function(){a.isLoading=!1}))},handleZg:function(e){this.zgType=e,10==this.zgType?this.zgCheck(this.zgType):this.refuseVisible=!0},zgCheck:function(e,t){var a=this,s=this.orderRefundId,r="";t&&(r=t.refuse_desc),this.isLoading=!0,n["b"]({orderRefundId:s,audit_status_zg:e,refuse_desc:r}).then((function(e){a.$message.success(e.message,1.5),a.handleRefresh(),a.form.resetFields(),a.auditStatusZg=e.data.audit_status_zg,10==a.zgType?a.zgAgreeFlag=!0:(a.zgFailFlag=!0,a.refuseVisible=!1)})).finally((function(){a.isLoading=!1}))},refuseOk:function(){var e=this,t=this.form.validateFields,a=this.zyCheck,s=this.zgCheck,r=this.confirmReceipt;t((function(t,i){i.refuse_desc.length>200?e.$message.error("拒绝理由最多200字哦",1.5):t||(20==e.zytype&&a(e.zytype,i),20==e.zgType&&s(e.zgType,i),2==e.storeType&&r(e.storeType,i))}))},refuseCancel:function(){this.refuseVisible=!1},shouContent:function(){this.contentVisible=!0},contentCancel:function(){this.contentVisible=!1},shouRefuse:function(){this.refuseStore=!0},refuseStoreCancel:function(){this.refuseStore=!1}}},f=m,h=(a("1bb1"),a("829d")),v=Object(h["a"])(f,s,r,!1,null,"50fa8368",null);t["default"]=v.exports},5812:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("s-table",{ref:"table",staticClass:"tableBox",attrs:{rowKey:"id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15,bordered:""},scopedSlots:e._u([{key:"mobiles",fn:function(a){return t("span",{},[t("p",{staticClass:"phone"},[e._v(e._s(a))])])}},{key:"action",fn:function(a,s){return t("div",{staticClass:"actions"},[t("a",{on:{click:function(t){return e.handleEdit(s)}}},[e._v("编辑")])])}}])}),t("a-modal",{attrs:{title:"编辑号码",visible:e.editVisible},on:{cancel:e.editCancel,ok:e.editOk}},[t("a-textarea",{attrs:{placeholder:"请输入手机号码","auto-size":{minRows:3,maxRows:5}},model:{value:e.mobile,callback:function(t){e.mobile=t},expression:"mobile"}}),t("p",{staticClass:"editTool"},[e._v("注:多个号码之间需用英文输入法的逗号(,)隔开")])],1)],1)},r=[],i=a("753f"),o=(a("9f29"),a("0528"),a("72dd"),a("edc0"),a("0827"),a("3a10")),n=a("2af9"),d=[{title:"序号",width:"60px",dataIndex:"id"},{title:"短信节点",width:"100px",dataIndex:"ftype_text"},{title:"提醒号码",dataIndex:"mobiles",width:"400px",scopedSlots:{customRender:"mobiles"}},{title:"提醒时间",width:"100px",dataIndex:"hours_text"},{title:"操作",dataIndex:"action",width:"100px",scopedSlots:{customRender:"action"}}],l={components:{STable:n["c"]},data:function(){var e=this;return{isLoading:!1,selectedRowKeys:[],queryParam:{},columns:d,editVisible:!1,mobile:"",mobiles:"",flag:!1,record:{},loadData:function(t){return o["i"](Object(i["a"])(Object(i["a"])({},t),e.queryParam)).then((function(t){var a=t.data.list.data;return a.forEach((function(t){t.mobiles&&(e.mobile=t.mobiles)})),t.data.list}))}}},created:function(){},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)},handleEdit:function(e){this.record=e,this.editVisible=!0},editCancel:function(){this.editVisible=!1},editOk:function(){var e=this;if(this.mobile){for(var t=/^[1][3,4,5,6,7,8,9][0-9]{9}$/,a=this.mobile.split(","),s=0;s<a.length;s++)if(this.flag=!0,a[s]=a[s].replace(/[^0-9]/g,""),a[s]&&!t.test(a[s]))return this.$message.error("请输入正确的手机号码",1.5),void(this.flag=!1);if(this.flag){var r=a.join(",");this.mobiles=","==r.substring(r.length-1)?r.substring(0,r.length-1):r,o["h"]({id:this.record.id,form:{mobiles:this.mobiles}}).then((function(t){e.$message.success(t.message),e.editVisible=!1,e.handleRefresh(!0)})).finally((function(){e.isLoading=!1}))}}else this.$message.error("请输入手机号码",1.5)}}},c=l,u=(a("1d4d"),a("829d")),p=Object(u["a"])(c,s,r,!1,null,"5bf60e16",null);t["default"]=p.exports},"664f":function(e,t,a){},"6ab1":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return n})),a.d(t,"b",(function(){return o}));var s=a("5c06"),r=new s["a"]([{key:"WAIT",name:"待审核",value:0},{key:"REVIEWED",name:"已同意",value:10},{key:"REJECTED",name:"已拒绝",value:20}]),i=new s["a"]([{key:"COMMIONISER",name:"待专员审核",value:0},{key:"NORMAL",name:"已退款",value:1},{key:"CANCELLED",name:"用户撤销/已关闭",value:2},{key:"REJECTED",name:"不同意",value:4},{key:"MANAGE",name:"待主管审核",value:5},{key:"BUY",name:"待买家退货",value:6},{key:"COMPLETED",name:"待仓库收货",value:7},{key:"REFUND",name:"待退款",value:8},{key:"CLOSE",name:"已关闭售后单",value:9}]),o=new s["a"]([{key:"MANAGE",name:"待主管审核",value:1},{key:"REFUND",name:"待退款",value:2},{key:"UP",name:"待专员修改",value:3},{key:"CLOSE",name:"已关闭",value:4},{key:"UI",name:"已退款",value:5}]),n=new s["a"]([{key:"RETURN",name:"退货退款",value:10},{key:"NOTRETURN",name:"不退货退款",value:20},{key:"REFUND",name:"仅退款",value:30}])},7463:function(e,t,a){},"802a":function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.isLoading}}),e.isLoading?e._e():t("div",[t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"title"},[e._v("新建售后单")]),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"售后单编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("p",[e._v(e._s(e.detail.refund_number))])]),t("a-form-item",{attrs:{label:"订单编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("p",[e._v(e._s(e.detail.order_no))])]),t("a-form-item",{attrs:{label:"问题商品",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"goodsBox"},[t("a-table",{attrs:{rowKey:"order_goods_id",columns:e.goodsColumns,dataSource:[e.detail.selectedGoods],pagination:!1,bordered:""},scopedSlots:e._u([{key:"goods_props",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?a[0].value.name:"--"))])])}},{key:"finalPayPrice",fn:function(a){return t("span",{staticClass:"goods_money"},[t("p",[e._v("¥"+e._s(a))])])}},{key:"pass_refund_time",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?"是":"否"))])])}},{key:"is_refund",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?"是":"否"))])])}}],null,!1,199891391)})],1)]),t("a-form-item",{attrs:{label:"补偿金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("p",[e._v("¥ "+e._s(e.detail.refund_money))])]),t("a-form-item",{attrs:{label:"补偿原因",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("p",[e._v(e._s(e.detail.refund_desc))])]),t("a-form-item",{attrs:{label:"上传凭证",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"imgList"},e._l(e.detail.images,(function(e,a){return t("div",{key:a,staticClass:"imgItem"},[t("a",{attrs:{title:"点击查看原图",href:e,target:"_blank"}},[t("img",{staticStyle:{"object-fit":"cover"},attrs:{src:e}})])])})),0)])],1)],1),40!=e.detail.status?t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[0!=e.detail.audit_status_zg||"refund-zg-audit"!=e.role&&1!=e.isSuper?e._e():t("div",{staticStyle:{display:"inline-block"}},[t("a-button",{staticClass:"button",attrs:{type:"primary",loading:e.isBtnLoading},on:{click:function(t){return e.auditAxios(10)}}},[e._v("同意补偿")]),t("a-button",{staticClass:"button",attrs:{loading:e.isBtnLoading},on:{click:function(t){return e.auditAxios(20)}}},[e._v("拒绝")])],1),10==e.detail.audit_status_zg||"refund-zy-audit"!=e.role&&1!=e.isSuper?e._e():t("a-button",{staticClass:"button",attrs:{loading:e.isBtnLoading},on:{click:e.close}},[e._v("撤销并关闭售后单")])],1):e._e(),t("div",{staticClass:"title"},[e._v("审核结果")]),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-table",{staticStyle:{width:"80%","margin-left":"7%"},attrs:{rowKey:"id",columns:e.recordColumns,dataSource:e.detail.his,pagination:!1,bordered:""},scopedSlots:e._u([{key:"audit_desc",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a||"--"))])])}}],null,!1,3150808855)})],1)],1)],1)],1),t("a-modal",{attrs:{title:"拒绝理由",visible:e.showModal,"confirm-loading":!1},on:{ok:e.changeOk,cancel:e.changeCancel}},[t("a-textarea",{staticClass:"remark_textarea",attrs:{placeholder:"请填写拒绝理由",maxLength:100},model:{value:e.refuseValue,callback:function(t){e.refuseValue=t},expression:"refuseValue"}})],1)],1)},r=[],i=(a("9f29"),a("0528"),a("ff9e"),a("8053"),a("2af9")),o=a("0ccb"),n=[{title:"商品SKU",width:"150px",dataIndex:"goods_sku_no"},{title:"商品标题",width:"150px",dataIndex:"goods_name"},{title:"商品规格",width:"60px",ellipsis:!0,dataIndex:"goods_props",scopedSlots:{customRender:"goods_props"}},{title:"购买数量",width:"60px",dataIndex:"total_num"},{title:"实收金额",width:"80px",dataIndex:"finalPayPrice",scopedSlots:{customRender:"finalPayPrice"}},{title:"是否过售后期",width:"80px",dataIndex:"pass_refund_time",scopedSlots:{customRender:"pass_refund_time"}},{title:"是否售后",width:"60px",dataIndex:"is_refund",scopedSlots:{customRender:"is_refund"}},{title:"售后状态",width:"80px",dataIndex:"refund_state_text"}],d=[{title:"审核时间",width:"150px",dataIndex:"update_time"},{title:"审核人",width:"100px",dataIndex:"name"},{title:"审核结果",width:"100px",dataIndex:"audit_result"},{title:"理由",width:"250px",dataIndex:"audit_desc"}],l={name:"AddCompensateOrder",components:{SelectImage:i["d"]},data:function(){return{id:"",isLoading:!1,isBtnLoading:!1,labelCol:{span:3},wrapperCol:{span:20},detail:{},goodsColumns:n,recordColumns:d,showModal:!1,refuseValue:"",role:"",isSuper:null}},created:function(){var e=this;if(this.id=this.$route.query.id||"",this.$store.getters.roles){this.isSuper=this.$store.getters.roles.isSuper;var t=this.$store.getters.roles.permissions;t.forEach((function(t){"/order/refund/detail"==t.permissionId&&t.actionEntitySet&&t.actionEntitySet.length>0&&(e.role=t.actionEntitySet[0].action)}))}this.isLoading=!0,this.getDetail()},methods:{getDetail:function(){var e=this;o["d"]({id:this.id}).then((function(t){e.isLoading=!1;var a=t.data.detail||{};a.selectedGoods={};for(var s=a.orderData.goods||[],r=0;r<s.length;r++){var i=s[r];if(a.orderGoods.order_goods_id==i.order_goods_id){i.finalPayPrice=parseFloat((100*parseFloat(i.total_pay_price)+100*parseFloat(i.rice_card_money))/100).toFixed(2),a.selectedGoods=i;break}}e.detail=a})).finally((function(){e.isLoading=!1}))},auditAxios:function(e){20!=e?this.confirmAuditAxios(e):this.showModal=!0},changeOk:function(e){e.preventDefault(),this.refuseValue?this.confirmAuditAxios(20):this.$message.error("请填写拒绝理由",1.5)},confirmAuditAxios:function(e){var t=this,a={audit_status_zg:e,refuse_desc_zg:this.refuseValue};this.isBtnLoading=!0,o["b"]({form:a,id:this.id}).then((function(e){t.$message.success(e.message,1.5),t.showModal=!1,t.getDetail()})).catch((function(){t.isBtnLoading=!1})).finally((function(){t.isBtnLoading=!1}))},changeCancel:function(){this.showModal=!1},close:function(){var e=this;this.isBtnLoading=!0,o["c"]({id:this.id}).then((function(t){e.$message.success(t.message,1.5),e.isBtnLoading=!1,e.getDetail(),setTimeout((function(){e.$router.push("../index")}),1e3)})).catch((function(){e.isBtnLoading=!1})).finally((function(){e.isBtnLoading=!1}))}}},c=l,u=(a("94e7"),a("829d")),p=Object(u["a"])(c,s,r,!1,null,"0588d602",null);t["default"]=p.exports},8053:function(e,t,a){var s,r,i;(function(o,n){r=[t,a("4d28")],s=n,i="function"===typeof s?s.apply(t,r):s,void 0===i||(e.exports=i)})(0,(function(e,t){var a=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){var s=["#00a8c6","#40c0cb","#f0dec2","#aee239","#8fbe00","#33e0ff","#b3f4ff","#e6ff99"],r={color:s,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",r)}else a("ECharts is not Loaded")}))},"82de":function(e,t,a){},"861b":function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-radio-group",{style:{marginBottom:"8px"},model:{value:e.mode,callback:function(t){e.mode=t},expression:"mode"}},[t("a-radio-button",{attrs:{value:"1"},on:{click:function(t){return e.chooseTab(1)}}},[e._v("普通商品")]),t("a-radio-button",{attrs:{value:"2"},on:{click:function(t){return e.chooseTab(2)}}},[e._v("套餐商品")])],1),t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"订单编号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNo"],expression:"['orderNo']"}],staticClass:"inputW150",attrs:{placeholder:"请输入订单编号","allow-clear":""}})],1),t("a-form-item",{attrs:{label:"商品名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],staticClass:"inputW150",attrs:{placeholder:"请输入商品名称","allow-clear":""}})],1),t("a-form-item",{attrs:{label:"收件人"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["addressKw"],expression:"['addressKw']"}],staticClass:"inputW180",attrs:{placeholder:"收件人手机号、姓名","allow-clear":""}})],1),t("a-form-item",{attrs:{label:"收货地址"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address"],expression:"['address']"}],staticClass:"inputW150",attrs:{placeholder:"请输入收货地址","allow-clear":""}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expend,expression:"expend"}]},[t("a-form-item",{attrs:{label:"物流单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["expressNo"],expression:"['expressNo']"}],staticClass:"inputW150",attrs:{placeholder:"请输入物流单号","allow-clear":""}})],1),t("a-form-item",{attrs:{label:"物流公司"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["expressId"],expression:"['expressId']"}],attrs:{placeholder:"请选择物流公司","allow-clear":""}},e._l(e.expressList,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.express_id}},[e._v(e._s(a.express_name))])})),1)],1),t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],staticClass:"inputW375",attrs:{"show-time":!0,format:"YYYY-MM-DD HH:mm:ss"}})],1),t("a-form-item",{attrs:{label:"发货时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenDeliveryTime"],expression:"['betweenDeliveryTime']"}],staticClass:"inputW375",attrs:{"show-time":!0,format:"YYYY-MM-DD HH:mm:ss"}})],1)],1),t("a-row",[t("a-button",{staticClass:"search-btn",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),t("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:function(t){e.expend=!e.expend}}},[e._v(e._s(e.expend?"收起全部搜索":"展开全部搜索"))])],1)],1)],1)],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[1==e.mode?t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.columns,(function(a,s){return t("th",{key:s},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]):e._e(),2==e.mode?t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.comboColumns,(function(a,s){return t("th",{key:s},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]):e._e(),1==e.mode?t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.orderList.data,(function(a,s){return[t("tr",{key:"".concat(s,"_2")},[t("td",{staticClass:"appOrderNo"},[t("router-link",{attrs:{target:"_blank",to:{path:"/order/detail",query:{orderId:a.order_id}}}},[e._v(e._s(a.orderM.order_no))])],1),t("td",{staticClass:"textSpill3"},[t("p",[e._v(" "+e._s(a.goods_name)+" ")])]),t("td",{staticClass:"textSpill2Props"},[a.goods_props?t("div",e._l(a.goods_props,(function(a,s){return t("p",{key:s},[e._v(e._s(a.value.name))])})),0):t("div",[e._v("--")])]),t("td",[t("p",[e._v(e._s(a.total_num))])]),t("td",{staticClass:"textSpill2Props"},[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.name))]):e._e()]),t("td",[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.phone))]):e._e()]),t("td",{staticClass:"textSpill2 address"},[a.orderM.address?t("p",[e._v(" "+e._s(a.orderM.address.region.province)+" "+e._s(a.orderM.address.region.city)+" "+e._s(a.orderM.address.region.region)+" ")]):e._e(),a.orderM.address?t("p",[e._v(e._s(a.orderM.address.detail))]):e._e()]),t("td",{staticClass:"create_time"},[a.create_time?t("p",{domProps:{innerHTML:e._s(e.$options.filters.splitTime(a.create_time))}}):t("p",[e._v("--")])]),t("td",[0==a.package.length?t("p",[e._v(e._s(a.express_company))]):e._l(a.package,(function(a,s){return t("p",{key:s},[e._v(e._s(a.express_company))])}))],2),t("td",{staticClass:"express_no"},[0==a.package.length?t("p",[e._v(e._s(a.express_no))]):e._l(a.package,(function(a,s){return t("p",{key:s},[e._v(e._s(a.express_no))])}))],2),t("td",{staticClass:"create_time"},[a.orderM.delivery_time?t("p",{domProps:{innerHTML:e._s(e.$options.filters.splitTime(a.orderM.delivery_time))}}):t("p",[e._v("--")])]),t("td",[t("div",{staticClass:"actions"},[0==a.is_split_package?t("a",{on:{click:function(t){return e.handleDelivery(a)}}},[e._v("更改物流")]):t("a",{on:{click:function(t){return e.handleDeliverySplit(a)}}},[e._v("更改拆分物流")])])])])]}))],2):e._e(),2==e.mode?t("tbody",{staticClass:"ant-table-tbody combo"},[e._l(e.orderList.data,(function(a,s){return[t("tr",{key:"".concat(s,"_1")},[t("td",{attrs:{colspan:"24"}},[t("span",{staticStyle:{"margin-right":"20px"}},[e._v("订单号:"+e._s(a.orderM.order_no))]),t("span",{staticStyle:{"margin-left":"20px","margin-right":"20px"}},[e._v("套餐名称:"+e._s(a.goods_name))]),t("span",[e._v("套餐数量:"+e._s(a.total_num))])])]),t("tr",{key:"".concat(s,"_2")},[t("td",[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[t("p",[e._v(e._s(a.goods_sku_no))])])})),0)]),t("td",{staticClass:"textSpill2"},[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[t("p",[e._v(e._s(a.goods_name))])])})),0)]),t("td",{staticClass:"textSpill2Props"},[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[a.goods_props?t("div",e._l(a.goods_props,(function(a,s){return t("p",{key:s},[e._v(e._s(a.value.name))])})),0):t("div",[e._v("--")])])})),0)]),t("td",[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[t("p",[e._v(e._s(a.total_num))])])})),0)]),t("td",{staticClass:"textSpill2Props"},[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.name))]):e._e()]),t("td",[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.phone))]):e._e()]),t("td",{staticClass:"textSpill2"},[a.orderM.address?t("p",[e._v(" "+e._s(a.orderM.address.region.province)+" "+e._s(a.orderM.address.region.city)+" "+e._s(a.orderM.address.region.region)+" ")]):e._e(),a.orderM.address?t("p",[e._v(e._s(a.orderM.address.detail))]):e._e()]),t("td",[0==a.package.length?t("p",[e._v(e._s(a.express_company))]):e._l(a.package,(function(a,s){return t("p",{key:s},[e._v(e._s(a.express_company))])}))],2),t("td",[0==a.package.length?t("p",[e._v(e._s(a.express_no))]):e._l(a.package,(function(a,s){return t("p",{key:s},[e._v(e._s(a.express_no))])}))],2),t("td",[t("p",[e._v(e._s(a.orderM.delivery_time?a.orderM.delivery_time:"--"))])]),t("td",[t("p",[e._v(e._s(a.provider_name))])]),t("td",[a.shop?t("p",[e._v(e._s(a.shop.shop_name))]):e._e()]),t("td",[t("div",{staticClass:"actions"},[0==a.is_split_package?t("a",{on:{click:function(t){return e.handleDelivery(a)}}},[e._v("更改物流")]):t("a",{on:{click:function(t){return e.handleDeliverySplit(a)}}},[e._v("更改拆分物流")])])])])]}))],2):e._e()])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.orderList.total>10?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total,"show-total":function(e){return"总共 ".concat(e," 条订单数据")}},on:{change:e.onChangePage}})],1):e._e(),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}}),t("SplitForm",{ref:"SplitForm",on:{handleSubmit:e.handleRefresh}})],1)],1)},r=[],i=a("3032"),o=a("753f"),n=(a("5d10"),a("9033")),d=(a("9f29"),a("ca00")),l=a("3a10"),c=a("2a66"),u=a("4a95"),p=a("ac82"),_=[{title:"订单编号",align:"center"},{title:"商品名称",align:"center"},{title:"商品规格",align:"center"},{title:"数量",align:"center"},{title:"收件人",align:"center"},{title:"联系方式",align:"center"},{title:"收货地址",align:"center"},{title:"下单时间",align:"center"},{title:"物流公司",align:"center"},{title:"物流单号",align:"center"},{title:"发货时间",align:"center"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],m=[{title:"商品SKU",align:"center"},{title:"商品名称",align:"center",ellipsis:!0},{title:"商品规格",align:"center"},{title:"商品数量",align:"center"},{title:"收件人",align:"center"},{title:"联系方式",align:"center"},{title:"收货地址",align:"center"},{title:"物流公司",align:"center"},{title:"物流单号",align:"center"},{title:"发货时间",align:"center"},{title:"供应商",align:"center"},{title:"门店",align:"center"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],f=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30}],h={name:"Index",components:{DeliveryForm:p["b"],CancelForm:p["a"],SplitForm:p["e"]},data:function(){return{dataType:this.getDataType(),searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:_,comboColumns:m,page:1,orderList:{data:[],total:0,per_page:10},expressList:[],indeterminate:!1,checkAll:!1,checkSingle:!1,mode:"1",expend:!1}},beforeCreate:function(){Object(d["a"])(this,{inArray:d["e"],DeliveryStatusEnum:u["a"],DeliveryTypeEnum:u["b"],OrderSourceEnum:u["c"],OrderStatusEnum:u["d"],PayStatusEnum:u["e"],PayTypeEnum:u["f"],ReceiptStatusEnum:u["g"],SearchTypeEnum:f,simpleImage:n["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init(),this.getExpressList()},watch:{$route:function(){this.init()}},methods:{init:function(){this.dataType=this.getDataType(),this.searchForm.resetFields(),this.queryParam={},this.$route.query.providerId&&(this.queryParam.providerId=this.$route.query.providerId),this.handleRefresh(!0)},getDataType:function(){return this.$route.path.split("/")[3]},getExpressList:function(){var e=this;this.isLoading=!0,c["b"]().then((function(t){e.expressList=t.data.list})).finally((function(){e.isLoading=!1}))},getList:function(){var e=this,t=this.dataType,a=this.queryParam,s=this.page;return this.isLoading=!0,l["g"](Object(o["a"])(Object(o["a"])({dataType:t},a),{},{page:s,gtype:this.mode})).then((function(t){e.orderList=t.data.list})).finally((function(){e.isLoading=!1}))},renderOrderStatusColor:function(e){var t=this.OrderStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.CANCELLED.value,"red"),t.APPLY_CANCEL.value,"red"),t.COMPLETED.value,"green");return a[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields(),this.queryParam={},this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleDeliverySplit:function(e){this.$refs.SplitForm.show(e)},handleCancel:function(e){this.$refs.CancelForm.show(e)},onCheckAllChange:function(e){this.checkAll=e.target.checked},onChange:function(e){this.checkSingle=e.target.checked},chooseTab:function(e){this.mode=e,this.handleRefresh(!0)}}},v=h,g=(a("f99f"),a("829d")),b=Object(g["a"])(v,s,r,!1,null,"356674aa",null);t["default"]=b.exports},"88b4":function(e,t,a){},"904d":function(e,t,a){},"93f9":function(e,t,a){},"94e7":function(e,t,a){"use strict";a("82de")},"95be":function(e,t,a){},9673:function(e,t,a){},"9f2c":function(e,t,a){"use strict";a("7463")},"9fd8":function(e,t,a){},ab06:function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.isLoading}}),e.isLoading?e._e():t("div",{staticClass:"order-content"},[t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"order-progress",class:"progress-".concat(e.progress)},[t("ul",[t("li",[t("span",[e._v("下单时间")]),t("div",{staticClass:"tip"},[e._v(e._s(e.record.create_time))])]),t("li",[t("span",[e._v("付款")]),e.record.pay_time?t("div",{staticClass:"tip"},[e._v("付款于 "+e._s(e.record.pay_time))]):e._e()]),t("li",[t("span",[e._v("发货")]),e.record.delivery_time?t("div",{staticClass:"tip"},[e._v("发货于 "+e._s(e.record.delivery_time))]):e._e()]),t("li",[t("span",[e._v("收货")]),e.record.receipt_time?t("div",{staticClass:"tip"},[e._v("收货于 "+e._s(e.record.receipt_time))]):e._e()]),t("li",[t("span",[e._v("完成")]),e.record.receipt_time?t("div",{staticClass:"tip"},[e._v("完成于 "+e._s(e.record.receipt_time))]):e._e()])])])]),t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[e._e(),t("a-descriptions",{attrs:{title:"订单信息"}},[t("a-descriptions-item",{attrs:{label:"订单号"}},[e._v(e._s(e.record.order_no))]),t("a-descriptions-item",{attrs:{label:"订单状态"}},[11==e.record.state_value?t("span",{staticClass:"red"},[e._v("待付款")]):e._e(),12==e.record.state_value?t("span",[e._v("已付款待发货")]):e._e(),13==e.record.state_value?t("span",[e._v("已付款待收货")]):e._e(),20==e.record.state_value?t("span",[e._v("已取消")]):e._e(),30==e.record.state_value?t("span",{staticClass:"red"},[e._v("已完成")]):e._e(),40==e.record.state_value?t("span",[e._v("已关闭")]):e._e()]),t("a-descriptions-item",{attrs:{label:"支付状态"}},[e._v(e._s(10==e.record.pay_status?"未付款":"已付款"))]),t("a-descriptions-item",{attrs:{label:"配送方式"}},[t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.DeliveryTypeEnum[e.record.delivery_type].name))])],1),t("a-descriptions-item",{attrs:{label:"支付方式"}},[t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.PayTypeEnum[e.record.pay_type].name))])],1),t("a-descriptions-item",{attrs:{label:"实付款金额"}},[e._v("¥"+e._s(e.record.pay_price))]),t("a-descriptions-item",{attrs:{label:"付款时间"}},[20==e.record.pay_status?t("span",[e._v(e._s(e.record.pay_time))]):t("span",[e._v("--")])]),30!=e.record.pay_type?t("a-descriptions-item",{attrs:{label:"微信支付流水号"}},[20==e.record.pay_status&&20==e.record.pay_type?t("span",[e._v(e._s(e.record.transaction_id))]):t("span",[e._v("--")])]):e._e(),e.record.rice_card_id>0?t("a-descriptions-item",{attrs:{label:"购物卡持有人序号"}},[t("span",[e._v(e._s(e.record.rice_card_id))])]):e._e(),t("a-descriptions-item",{attrs:{label:"订单总金额"}},[e._v("¥"+e._s(e.record.total_price))]),10==e.record.order_source?t("a-descriptions-item",{attrs:{label:"活动优惠"}},[e._v("¥"+e._s(e.record.activity_discount_total_price||0))]):e._e(),30==e.record.order_source?t("a-descriptions-item",{attrs:{label:"活动优惠"}},[e._v("¥"+e._s(e.record.bargain_money||0))]):e._e(),40==e.record.order_source?t("a-descriptions-item",{attrs:{label:"活动优惠"}},[e._v("¥"+e._s(e.record.groupbuy_money||0))]):e._e(),50==e.record.order_source?t("a-descriptions-item",{attrs:{label:"活动优惠"}},[e._v("¥"+e._s(e.record.groupbuy_money||0)+" ")]):e._e(),60==e.record.order_source?t("a-descriptions-item",{attrs:{label:"活动优惠"}},[e._v("¥"+e._s(e.record.miaosha_money||0)+" ")]):e._e(),t("a-descriptions-item",{attrs:{label:"分销员专属优惠"}},[e._v("¥"+e._s(e.record.distributor_total_money))]),t("a-descriptions-item",{attrs:{label:"运费金额"}},[e._v("¥"+e._s(e.record.express_price))]),t("a-descriptions-item",{attrs:{label:"门店名"}},[t("p",[e._v(e._s(e.record.shops?e.record.shops.shop_name:"--"))])]),t("a-descriptions-item",{attrs:{label:"用户昵称"}},[e.record.user&&e.record.user.user_id?t("a-tooltip",[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.user&&e.record.user.nick_name))]),t("template",{slot:"title"},[e._v("用户ID: "+e._s(e.record.user&&e.record.user.user_id))])],2):t("span",[e._v("--")])],1),e.record.user&&e.record.user.user_id?t("a-descriptions-item",{attrs:{label:"买单用户手机号"}},[e._v(e._s(e.record.user.mobile))]):e._e(),t("a-descriptions-item",{attrs:{label:"买家留言"}},[e.record.buyer_remark?t("strong",[e._v(e._s(e.record.buyer_remark))]):t("span",[e._v("--")])]),e.record.coupon&&e.record.coupon_money&&e.record.coupon_money>0?t("a-descriptions-item",{attrs:{label:"优惠券"}},[e._v("["+e._s(e.record.coupon.name)+"]¥"+e._s(e.record.coupon_money))]):e._e(),t("a-descriptions-item",{attrs:{label:"备注内容"}},[e._l(e.record.color.split(","),(function(a,s){return e.record.color?t("li",{key:s,staticClass:"color-div",class:1==a?"color-div-red":2==a?"color-div-yellow":3==a?"color-div-green":4==a?"color-div-blue":"color-div-purple"}):e._e()})),e.record.color_remark?t("span",[e._v(e._s(e.record.color_remark))]):t("span",[e._v("--")])],2),20==e.record.delivery_type?t("a-descriptions-item",{attrs:{label:"核销时间"}},[e.record.pickup_time?t("span",[e._v(e._s(e.record.pickup_time))]):t("span",[e._v("--")])]):e._e()],1),t("p",{staticClass:"newText"},[t("span",[e._v("总佣金:")]),e._v(e._s(e.record.pool_money)+" "+e._s(e.record.commissions_content))])],2),t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("div",{staticClass:"ant-descriptions-title"},[e._v("商品信息")]),e._e(),t("div",{staticClass:"goods_list"},e._l(e.record.goods,(function(a,s){return t("div",{key:s,staticClass:"every_box"},[t("div",{staticClass:"table_box_1"},[t("div",{staticClass:"title_box flex"},[t("span",{staticClass:"goodsInfo"},[e._v("商品信息")]),t("span",[e._v("商品规格")]),t("span",[e._v("供应商名称")]),t("span",[e._v("供应商品牌")]),t("span",[e._v("商品价格")]),t("span",[e._v("购买数量")]),t("span",[e._v("商品总价")]),t("span",[e._v("分销员专属优惠")]),t("span",[e._v("优惠券")]),t("span",[e._v("商品实付")]),t("span",[e._v("现金卡抵扣")])]),t("div",{staticClass:"title_box content_box"},[t("div",{staticClass:"singelGoods flex"},[t("div",[t("div",{staticClass:"flex goodsInfo"},[t("img",{staticClass:"img",attrs:{src:a.goods_image,alt:""}}),t("div",{staticClass:"right"},[t("div",{staticClass:"t twoline-hide"},[e._v(e._s(a.goods_name))])])]),t("div",{staticClass:"goods_sku_no"},[e._v("商品SKU:"+e._s(a.goods_sku_no))])]),20==a.spec_type&&a.goods_props?t("p",e._l(a.goods_props,(function(a,s){return t("span",{key:s},[e._v(e._s(a.value.name))])})),0):t("p",[e._v(e._s(a.specs))]),t("span",[e._v(e._s(a.provider_name))]),t("span",[e._v(e._s(a.supplier))]),t("span",[e._v("¥"+e._s(a.goods_price))]),t("span",[e._v("x"+e._s(a.total_num))]),t("span",[e._v("¥"+e._s(a.total_price))]),t("span",[e._v("¥"+e._s(a.distributor_total_money))]),t("span",[e._v("¥"+e._s(a.coupon_money))]),t("span",[e._v("¥"+e._s(a.total_pay_price))]),t("span",[e._v("¥"+e._s(a.rice_card_money))])])])])])})),0)]),e.record.gifts&&e.record.gifts.length>0?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("div",{staticClass:"ant-descriptions-title"},[e._v("赠品信息")]),t("div",{staticClass:"goods_list"},e._l(e.record.gifts,(function(a,s){return t("div",{key:s,staticClass:"every_box"},[t("div",{staticClass:"table_box_1"},[t("div",{staticClass:"title_box flex"},[t("span",{staticClass:"goodsInfo"},[e._v("商品信息")]),t("span",[e._v("商品SKU")]),t("span",[e._v("商品规格")]),t("span",[e._v("供应商名称")]),t("span",[e._v("供应商品牌")]),t("span",[e._v("商品价格")]),t("span",[e._v("数量")]),t("span",[e._v("商品总价")])]),t("div",{staticClass:"title_box content_box"},[t("div",{staticClass:"singelGoods flex"},[t("span",{staticClass:"flex goodsInfo"},[t("img",{staticClass:"img",attrs:{src:a.goods_image,alt:""}}),t("div",{staticClass:"right"},[t("div",{staticClass:"t twoline-hide"},[e._v(e._s(a.goods_name))]),a.goods_props?t("div",{staticClass:"desc twoline-hide"},[e._v(e._s(a.goods_props[0].value.name))]):e._e()])]),t("span",[e._v(e._s(a.goods_sku_no))]),20==a.spec_type&&a.goods_props?t("p",e._l(a.goods_props,(function(a,s){return t("span",{key:s},[e._v(e._s(a.value.name))])})),0):t("p",[e._v(e._s(a.specs))]),t("span",[e._v(e._s(a.provider_name))]),t("span",[e._v(e._s(a.supplier))]),t("span",[e._v("¥0.00")]),t("span",[e._v("x"+e._s(a.total_num))]),t("span",[e._v("¥0.00")])])])])])})),0)]):e._e(),e.record.full_send_activity||e.record.mj_send_activities||e.record.kj_activity||e.record.activity_discount_list&&e.record.activity_discount_list.length>0||e.record.group_buy_activity||e.record.qc_mj_send_activities||e.record.miaosha_activities||e.record.group_buy_lb_activities?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("div",{staticClass:"ant-descriptions-title"},[e._v("活动信息")]),t("div",{staticClass:"goods_list"},[t("div",{staticClass:"every_box act"},[t("div",{staticClass:"table_box_1"},[t("div",{staticClass:"title_box flex"},[t("span",[e._v("活动/商品名称")]),t("span",[e._v("活动编码")]),t("span",[e._v("活动类型")]),t("span",{staticClass:"sel"},[e._v("活动时间")])]),e.record.full_send_activity?t("div",{staticClass:"title_box content_box activity"},[t("div",{staticClass:"singelGoods flex"},[t("span",[e._v(e._s(e.record.full_send_activity.name))]),t("span",[e._v(e._s(e.record.full_send_activity.code))]),t("span",[e._v(e._s(e.record.full_send_activity.type))]),t("span",{staticClass:"sel"},[e._v(e._s(e.record.full_send_activity.start_time)+"至"+e._s(e.record.full_send_activity.end_time))])])]):e._e(),e.record.activity_discount_list&&e.record.activity_discount_list.length>0?t("div",{staticClass:"title_box content_box activity"},e._l(e.record.activity_discount_list,(function(a,s){return t("div",{key:s,staticClass:"singelGoods flex"},[t("span",[e._v(e._s(a.name))]),t("span",[e._v(e._s(a.code))]),t("span",[e._v(e._s({1:"第N件起打折",2:"满N件起打折"}[a.type]))]),t("span",{staticClass:"sel"},[e._v(e._s(a.start_time)+"至"+e._s(a.end_time))])])})),0):e._e(),e.record.mj_send_activities&&e.record.mj_send_activities.length>0?t("div",{staticClass:"title_box content_box activity"},e._l(e.record.mj_send_activities,(function(a,s){return t("div",{key:s,staticClass:"singelGoods flex"},[t("span",[e._v(e._s(a.name))]),t("span",[e._v(e._s(a.code))]),t("span",[e._v(e._s(a.type))]),t("span",{staticClass:"sel"},[e._v(e._s(a.start_time)+"至"+e._s(a.end_time))])])})),0):e._e(),e.record.kj_activity&&e.record.kj_activity.length>0?t("div",{staticClass:"title_box content_box activity"},e._l(e.record.kj_activity,(function(a,s){return t("div",{key:s,staticClass:"singelGoods flex"},[t("span",[e._v(e._s(a.name))]),t("span",[e._v(e._s(a.code))]),t("span",[e._v(e._s(a.type))]),t("span",{staticClass:"sel"},[e._v(e._s(a.start_time)+"至"+e._s(a.end_time))])])})),0):e._e(),e.record.group_buy_activity?t("div",{staticClass:"title_box content_box activity"},[t("div",{staticClass:"singelGoods flex"},[t("span",[e._v(e._s(e.record.group_buy_activity.goodsExcept.goods_name||"--"))]),t("span",[e._v(e._s(e.record.group_buy_activity.code))]),t("span",[e._v(e._s(e.record.group_buy_activity.type))]),t("span",{staticClass:"sel"},[e._v(e._s(e.record.group_buy_activity.start_time)+"至"+e._s(e.record.group_buy_activity.end_time))])])]):e._e(),e.record.qc_mj_send_activities?t("div",{staticClass:"title_box content_box activity"},[t("div",{staticClass:"singelGoods flex"},[t("span",[e._v(e._s(e.record.qc_mj_send_activities.name))]),t("span",[e._v(e._s(e.record.qc_mj_send_activities.code))]),t("span",[e._v(e._s(e.record.qc_mj_send_activities.type))]),t("span",{staticClass:"sel"},[e._v(e._s(e.record.qc_mj_send_activities.start_time)+"至"+e._s(e.record.qc_mj_send_activities.end_time))])])]):e._e(),e.record.miaosha_activities?t("div",{staticClass:"title_box content_box activity"},[t("div",{staticClass:"singelGoods flex"},[t("span",[e._v(e._s(e.record.miaosha_activities.name||"--"))]),t("span",[e._v(e._s(e.record.miaosha_activities.code))]),t("span",[e._v(e._s(e.record.miaosha_activities.type))]),t("span",{staticClass:"sel"},[e._v(e._s(e.record.miaosha_activities.start_time)+"至"+e._s(e.record.miaosha_activities.end_time))])])]):e._e(),e.record.group_buy_lb_activities?t("div",{staticClass:"title_box content_box activity"},[t("div",{staticClass:"singelGoods flex"},[t("span",[e._v(e._s(e.record.group_buy_lb_activities.name||"--"))]),t("span",[e._v(e._s(e.record.group_buy_lb_activities.code))]),t("span",[e._v(e._s(e.record.group_buy_lb_activities.type))]),t("span",{staticClass:"sel"},[e._v(e._s(e.record.group_buy_lb_activities.start_time)+"至"+e._s(e.record.group_buy_lb_activities.end_time))])])]):e._e()])])])]):e._e(),e.record.delivery_type==e.DeliveryTypeEnum.EXPRESS.value?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("a-descriptions",{attrs:{title:"收货信息"}},[t("a-descriptions-item",{attrs:{label:"收货人"}},[e._v(e._s(e.record.address.name))]),t("a-descriptions-item",{attrs:{label:"收货电话"}},[e._v(e._s(e.record.address.phone))]),t("a-descriptions-item",{attrs:{label:"收货地区"}},[e._v(" "+e._s(e.record.address.region.province)+" "+e._s(e.record.address.region.city)+" "+e._s(e.record.address.region.region)+" ")]),t("a-descriptions-item",{attrs:{label:"详细地址"}},[e._v(e._s(e.record.address.detail))]),t("a-descriptions-item",[e.record.pay_status==e.PayStatusEnum.PENDING.value?t("span",{staticClass:"c-p editAddress",on:{click:e.editAddress}},[e._v("修改地址")]):e._e()])],1),e.record.pay_status!=e.PayStatusEnum.SUCCESS.value||e.record.delivery_status!=e.DeliveryStatusEnum.DELIVERED.value||e.inArray(e.record.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?e._e():[t("a-divider",{staticClass:"o-divider"}),e._e()]],2):e._e(),20==e.record.delivery_status||e.record.express_list.length>0?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("div",{staticClass:"ant-descriptions-title"},[e._v("物流信息")]),t("div",{staticClass:"goods_list"},[t("div",{staticClass:"every_box"},[t("div",{staticClass:"table_box_1 express_list"},[t("div",{staticClass:"title_box flex"},[t("span",[e._v("商品SKU")]),t("span",{staticClass:"goodsInfo"},[e._v("商品图")]),t("span",[e._v("商品件数")]),t("span",[e._v("快递公司")]),t("span",[e._v("快递单号")]),t("span",[e._v("发货状态")]),t("span",[e._v("发货时间")])]),t("div",{staticClass:"title_box content_box"},[e._l(e.record.express_list,(function(a,s){return[t("div",{key:"goods_".concat(s),staticClass:"single flex"},[t("div",[e._v(e._s(a.goods_sku_no))]),t("div",{staticClass:"goodsInfo"},[t("img",{staticClass:"img",attrs:{src:a.goods_image,alt:""}})]),t("div",[e._v("x"+e._s(a.total_num))]),t("div",[e._v(e._s(a.express_company||"-"))]),t("div",{staticClass:"toLogistics"},[e._v(e._s(a.express_no||"-"))]),t("div",[a.express_no?t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.toLogistics(a)}}},[e._v("查看物流")]):e._e()],1),t("div",[e._v(e._s(a.delivery_time||"-"))])])]}))],2)])])])]):e._e()],1),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}}),t("PriceForm",{ref:"PriceForm",on:{handleSubmit:e.handleRefresh}}),t("EditAddress",{ref:"EditAddress",on:{handleSubmit:e.handleRefresh}}),t("a-modal",{attrs:{title:"查看物流",footer:null},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"model_box"},[t("div",{staticClass:"logistics_box"},[t("div",{staticClass:"t"},[e._v(" "+e._s(e.logisticsObj.express_company)+" "),t("span",[e._v(e._s(e.logisticsObj.express_no))])]),t("div",{staticClass:"logistics_step"},e._l(e.logisticsList,(function(a,s){return t("div",{key:s,staticClass:"every",class:{margin_box:0==s,last_line:s==e.logisticsList.length-1}},[t("div",{staticClass:"left"}),t("div",{staticClass:"p1"},[e._v(e._s(a.status))]),e._l(a.data,(function(a,s){return t("div",{key:s,staticClass:"right",class:{margin:0==s}},[0!=s?t("div",{staticClass:"left"}):e._e(),t("div",{staticClass:"p2"},[e._v(e._s(a.context))]),t("div",{staticClass:"p3"},[e._v(e._s(a.time))])])}))],2)})),0)])])])],1)},r=[],i=a("3032"),o=(a("9f29"),a("ca00")),n=a("3a10"),d=a("ab09"),l=a("ac82"),c=a("4a95"),u=[{title:"商品信息",scopedSlots:{customRender:"goodsInfo"}},{title:"商品SKU",dataIndex:"goods_no",scopedSlots:{customRender:"goods_no"}},{title:"商品价格",dataIndex:"goods_price",scopedSlots:{customRender:"goods_price"}},{title:"购买数量",dataIndex:"total_num",scopedSlots:{customRender:"total_num"}},{title:"商品总价",dataIndex:"total_pay_price",scopedSlots:{customRender:"total_pay_price"}},{title:"分润金额",dataIndex:"pool_money",scopedSlots:{customRender:"pool_money"}}],p={name:"Index",components:{GoodsItem:d["a"],UserItem:d["c"],DeliveryForm:l["b"],CancelForm:l["a"],PriceForm:l["d"],EditAddress:l["c"]},data:function(){return{DeliveryStatusEnum:c["a"],DeliveryTypeEnum:c["b"],OrderSourceEnum:c["c"],OrderStatusEnum:c["d"],PayStatusEnum:c["e"],PayTypeEnum:c["f"],ReceiptStatusEnum:c["g"],inArray:o["e"],isLoading:!0,orderId:null,record:{},progress:2,goodsColumns:u,visible:!1,logisticsObj:{},logisticsList:[]}},created:function(){this.orderId=this.$route.query.orderId,this.handleRefresh()},methods:{toLogistics:function(e){var t=this;this.visible=!0,this.isLoading=!0;var a="",s=0;0==this.record.express_list.length?(a=this.record.express_no,s=this.record.is_split_package):(a=e.express_no,s=e.is_split_package),n["c"]({express_no:a,is_split_package:s}).then((function(e){t.logisticsObj=e.data.res.order,t.logisticsList=e.data.res.delivery})).finally((function(){t.isLoading=!1}))},handleRefresh:function(){this.getDetail()},getDetail:function(){var e=this,t=this.orderId;this.isLoading=!0,n["b"]({orderId:t}).then((function(t){e.record=t.data.detail,e.initData()})).finally((function(){e.isLoading=!1}))},initData:function(){this.initProgress()},initProgress:function(){var e=this.record;20!=e.delivery_type||20!=e.hx_status?(this.progress=2,e.pay_status===c["e"].SUCCESS.value&&(this.progress+=1),e.delivery_status===c["a"].DELIVERED.value&&(this.progress+=1),e.receipt_status===c["g"].RECEIVED.value&&(this.progress+=1)):this.progress=5},renderOrderStatusColor:function(e){var t=this.OrderStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.CANCELLED.value,"red"),t.APPLY_CANCEL.value,"red"),t.COMPLETED.value,"green");return a[e]},handleDelivery:function(){var e=this.record;this.$refs.DeliveryForm.show(e)},handleCancel:function(){var e=this.record;this.$refs.CancelForm.show(e)},handleUpdatePrice:function(){var e=this.record;this.$refs.PriceForm.show(e)},editAddress:function(){var e=this.record;this.$refs.EditAddress.show(e)}}},_=p,m=(a("3837"),a("829d")),f=Object(m["a"])(_,s,r,!1,null,"eed4d066",null);t["default"]=f.exports},ac82:function(e,t,a){"use strict";a.d(t,"b",(function(){return g})),a.d(t,"a",(function(){return S})),a.d(t,"d",(function(){return O})),a.d(t,"c",(function(){return $})),a.d(t,"e",(function(){return Z}));var s=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:640,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"物流公司",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_id",{rules:[{required:!0,message:"请选择物流公司"}]}],expression:"['express_id', { rules: [{ required: true, message: '请选择物流公司' }] }]"}],attrs:{placeholder:"请选择物流公司"}},e._l(e.expressList,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.express_id}},[e._v(e._s(a.express_name))])})),1)],1),t("a-form-item",{attrs:{label:"物流单号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请填写发货的物流或快递单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_no",{rules:[{required:!0,message:"请输入物流单号"}]}],expression:"['express_no', { rules: [{ required: true, message: '请输入物流单号' }] }]"}]})],1)],1)],1)],1)},r=[],i=(a("9f29"),a("b775")),o={delivery:"/order/delivery",updatePrice:"/order.event/updatePrice",confirmCancel:"/order.event/confirmCancel"};function n(e){return Object(i["b"])({url:o.delivery,method:"post",data:e})}function d(e){return Object(i["b"])({url:o.updatePrice,method:"post",data:e})}function l(e){return Object(i["b"])({url:o.confirmCancel,method:"post",data:e})}var c=a("2a66"),u=a("ca00"),p=a("7c98"),_=a.n(p),m={data:function(){return{title:"订单发货",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{}}},created:function(){this.getExpressList()},methods:{show:function(e){var t=this;this.visible=!0,this.record=e,e.express_no&&this.$nextTick((function(){t.setFieldsValue()}))},setFieldsValue:function(){var e=this.record,t=this.form,a=this.$nextTick;!Object(u["f"])(t.getFieldsValue())&&a((function(){var a=Object(p["pick"])(e,["express_id","express_no"]);t.setFieldsValue(a)}))},getExpressList:function(){var e=this;this.isLoading=!0,c["b"]().then((function(t){e.expressList=t.data.list})).finally((function(){e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0;var a="";a=this.record.express_no?1:0,n({order_goods_id:this.record.order_goods_id,express_no:e.express_no,express_id:e.express_id,is_update:a}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},f=m,h=a("829d"),v=Object(h["a"])(f,s,r,!1,null,null,null),g=v.exports,b=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"实付款金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v("¥"+e._s(e.record.pay_price))])]),t("a-form-item",{attrs:{label:"审核状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"同意后将退回付款金额并关闭订单"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("同意")]),t("a-radio",{attrs:{value:0}},[e._v("拒绝")])],1)],1)],1)],1)],1)},y=[],C={data:function(){return{title:"审核取消订单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,l({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},x=C,k=Object(h["a"])(x,b,y,!1,null,null,null),S=k.exports,w=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"订单金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"最终付款金额 = 订单金额 + 运费金额"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_price",{rules:[{required:!0,message:"请输入订单金额"}]}],expression:"['order_price', { rules: [{ required: true, message: '请输入订单金额' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"运费金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_price",{rules:[{required:!0,message:"请输入运费金额"}]}],expression:"['express_price', { rules: [{ required: true, message: '请输入运费金额' }] }]"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1)],1)],1)],1)},L=[],E=(a("0a10"),{data:function(){return{title:"修改订单金额",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.$nextTick,a=this.form.setFieldsValue;t((function(){var t=Number(e.update_price.value);"-"===e.update_price.symbol&&(t=-t),a({order_price:_.a.add(Number(e.order_price),t),express_price:Number(e.express_price)})}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,d({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}}),R=E,I=Object(h["a"])(R,w,L,!1,null,null,null),O=I.exports,F=(a("72dd"),a("edc0"),function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.modalTitle,visible:e.visible,"confirm-loading":e.confirmLoading},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"收货人",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入收货人"}]}],expression:"['name', {rules: [{required: true,message: '请输入收货人'}]}]"}],attrs:{placeholder:"请输入收货人"}})],1),t("a-form-item",{attrs:{label:"收货电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",{rules:[{required:!0,whitespace:!0},{validator:e.phoneCheck.bind(this)}]}],expression:"['phone',{rules: [{required: true,whitespace: true},{validator:phoneCheck.bind(this)}]}]"}],attrs:{placeholder:"请输入收货电话",maxLength:11},on:{change:function(e){e.target.value=e.target.value.replace(/[^0-9.]/g,"")}}})],1),t("a-form-item",{attrs:{label:"收货地区",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectRegion",{attrs:{placeholder:"请选择收货地区",value:e.regionArr},on:{change:e.onChange}})],1),t("a-form-item",{attrs:{label:"详细地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["detail",{rules:[{required:!0,message:"请输入详细地址"}]}],expression:"['detail', {rules: [{required: true,message: '请输入详细地址'}]}]"}],attrs:{placeholder:"请输入详细地址"}})],1)],1)],1)],1)}),T=[],D=(a("aa8b"),a("3a10")),j=a("2af9"),P={name:"EditAddress",components:{SelectRegion:j["e"]},data:function(){return{modalTitle:"",visible:!1,confirmLoading:!1,queryParam:{},record:{},isLoading:!0,form:this.$form.createForm(this),labelCol:{span:7},wrapperCol:{span:16},id:"",skuList:[],regionArr:[]}},created:function(){},methods:{show:function(e){this.modalTitle="修改地址",this.visible=!0,this.record=e,this.setFieldsValue()},phoneCheck:function(e,t,a){if(t){var s=/^[1][3,4,5,6,7,8,9][0-9]{9}$/;if(!s.test(t))return void a("请输入正确的手机号码")}a()},setFieldsValue:function(){var e=this,t=this.form.setFieldsValue;this.$nextTick((function(){e.regionArr=[];var a=e.record.address.province_id,s=e.record.address.city_id,r=e.record.address.region_id;e.regionArr.push(a,s,r);var i=Object(p["pick"])(e.record.address,["name","phone",e.regionArr,"detail"]);t(i)}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,D["k"]({order_address_id:this.record.address.order_address_id,name:e.name,phone:e.phone,detail:e.detail,province_id:this.regionArr[0],city_id:this.regionArr[1],region_id:this.regionArr[2]}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))},handleCancel:function(){this.visible=!1},onChange:function(e){this.regionArr=e}}},A=P,M=(a("0b14"),Object(h["a"])(A,F,T,!1,null,"747b1ca3",null)),$=M.exports,N=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:640,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[e._l(e.packageS,(function(a,s){return t("div",{key:s,staticClass:"package"},[t("p",{staticClass:"title"},[e._v("包裹"+e._s(s+1))]),t("a-form-item",{attrs:{label:"商品数量",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["total_num[".concat(s,"]"),{initialValue:e.arr[s]?e.arr[s].total_num:void 0,rules:[{required:!0,message:"请输入商品数量"}]}],expression:"[`total_num[${index}]`, {initialValue: arr[index] ? arr[index].total_num : undefined,rules: [{required: true, message: '请输入商品数量'}]}]"}],on:{change:function(e){e.target.value=e.target.value.replace(/[^0-9]/g,"")}}})],1),t("a-form-item",{attrs:{label:"物流公司",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_id[".concat(s,"]"),{initialValue:e.arr[s]?e.arr[s].express_id:void 0,rules:[{required:!0,message:"请选择物流公司"}]}],expression:"[`express_id[${index}]`, {initialValue: arr[index] ? arr[index].express_id : undefined,rules: [{required: true, message: '请选择物流公司'}]}]"}],attrs:{placeholder:"请选择物流公司"},on:{change:function(t){return e.handleChange(t,s)}}},e._l(e.expressList,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.express_id}},[e._v(e._s(a.express_name))])})),1)],1),t("a-form-item",{attrs:{label:"物流单号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"请填写发货的物流或快递单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_no[".concat(s,"]"),{initialValue:e.arr[s]?e.arr[s].express_no:void 0,rules:[{required:!0,message:"请输入物流单号"}]}],expression:"[`express_no[${index}]`, {initialValue: arr[index] ? arr[index].express_no : undefined,rules: [{required: true, message: '请输入物流单号'}]}]"}]})],1)],1)})),t("a-button",{staticStyle:{"margin-right":"30px"},attrs:{type:"primary",icon:"plus"},on:{click:e.addPackage}},[e._v("新增")]),e.packageS.length>2?t("a-button",{attrs:{type:"primary"},on:{click:e.deletePackage}},[e._v("删除")]):e._e()],2)],1)],1)},q=[],z=(a("0528"),a("a2bf"),a("e330"),{data:function(){return{title:"订单发货",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),expressList:[],record:{},order_goods_id:[],current:0,packageS:[],arr:[],companys:[]}},created:function(){this.getExpressList()},methods:{show:function(e){this.visible=!0,this.record=e,this.init(),this.record.package&&this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.form,a=this.$nextTick;!Object(u["f"])(t.getFieldsValue())&&e.package.forEach((function(e,s){a((function(){var a=Object(p["pick"])(e,["express_id","express_no","total_num"]);t.setFieldsValue(a)}))}))},getExpressList:function(){var e=this;this.isLoading=!0,c["b"]().then((function(t){e.expressList=t.data.list})).finally((function(){e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this,a=this.record.order_goods_id;this.order_goods_id.splice(0,1,a);var s="";s=0==this.record.package.length?0:1;var r=[];this.packageS.forEach((function(a,s){r.push({express_id:e["express_id"][s],express_no:e["express_no"][s],total_num:e["total_num"][s],express_company:t.companys[s]})})),D["j"]({order_goods_id:this.order_goods_id,express_list:r,is_update:s}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))},init:function(){var e=this,t=[];if(0==this.record.package.length)for(var a=1;a<3;a++)t.push(a),this.current=this.current+1;else for(var s=1;s<=this.record.package.length;s++)t.push({express_id:this.record.package[s-1].express_id,express_no:this.record.package[s-1].express_no,total_num:this.record.package[s-1].total_num}),this.current=this.record.package.length+1;this.arr=t,this.packageS=t,this.expressList.forEach((function(t,a){e.packageS.forEach((function(a,s){t.express_id==a.express_id&&e.companys.push(t.express_name)}))}))},addPackage:function(){this.packageS.length>=this.record.total_num?this.$message.error("只有"+this.record.total_num+"个订单商品,最多只能添加"+this.record.total_num+"个包裹",1.5):(this.current=this.current+1,this.packageS=this.packageS.concat(this.current))},deletePackage:function(e){2!==this.packageS.length&&this.packageS.pop()},handleChange:function(e,t){var a=this;this.expressList.forEach((function(s){s.express_id==e&&a.companys.splice(t,1,s.express_name)}))}}}),V=z,G=(a("cb09"),Object(h["a"])(V,N,q,!1,null,"31e1ad0b",null)),Z=G.exports},b2a6:function(e,t,a){},b4a5:function(e,t,a){"use strict";a.d(t,"a",(function(){return f})),a.d(t,"b",(function(){return C}));a("aa8b");var s=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[e.visible?t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"售后类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tag",[e._v(e._s(e.RefundTypeEnum[e.record.type].name))])],1),t("a-form-item",{attrs:{label:"审核状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["audit_status",{initialValue:10,rules:[{required:!0}]}],expression:"['audit_status', { initialValue: 10, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:10}},[e._v("同意")]),t("a-radio",{attrs:{value:20}},[e._v("拒绝")])],1)],1),e.form.getFieldValue("audit_status")==e.AuditStatusEnum.REVIEWED.value?t("a-form-item",{attrs:{label:"退货地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["address_id",{rules:[{required:!0,message:"请选择退货地址"}]}],expression:"['address_id', { rules: [{ required: true, message: '请选择退货地址' }] }]"}],attrs:{placeholder:"请选择退货地址"}},e._l(e.addressList,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.address_id}},[e._v(e._s(a.name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/store/address/index"}}},[e._v("地址管理")])],1)],1):e._e(),e.form.getFieldValue("audit_status")==e.AuditStatusEnum.REJECTED.value?t("a-form-item",{attrs:{label:"拒绝原因",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["refuse_desc",{rules:[{required:!0,message:"请输入拒绝原因"}]}],expression:"['refuse_desc', { rules: [{ required: true, message: '请输入拒绝原因' }] }]"}],attrs:{autoSize:{minRows:4}}})],1):e._e()],1):e._e()],1)],1)},r=[],i=(a("9f29"),a("ca00")),o=a("e585"),n=a("4d55"),d=a("6ab1"),l=a("5c06"),c=new l["a"]([{key:"DELIVERY",name:"发货地址",value:10},{key:"RETURN",name:"退货地址",value:20}]),u={data:function(){return{title:"售后单审核",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),addressList:[],record:{}}},beforeCreate:function(){Object(i["a"])(this,{AuditStatusEnum:d["a"],RefundTypeEnum:d["d"]})},created:function(){this.getAddressList()},methods:{show:function(e){var t=this;this.visible=!0,this.record=e,this.$nextTick((function(){t.$forceUpdate()}))},getAddressList:function(){var e=this;this.isLoading=!0,n["b"]({type:c.RETURN.value}).then((function(t){e.addressList=t.data.list})).finally((function(){e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,o["a"]({orderRefundId:this.record.order_refund_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},p=u,_=(a("9f2c"),a("829d")),m=Object(_["a"])(p,s,r,!1,null,"f59d991e",null),f=m.exports,h=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:565,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[e.record.type==e.RefundTypeEnum.RETURN.value?t("a-alert",{attrs:{message:"请确认已收到寄回的商品,确认后自动退回付款金额(原路退款)并关闭当前售后单",banner:""}}):e._e(),e.visible?t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"售后类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tag",[e._v(e._s(e.RefundTypeEnum[e.record.type].name))])],1),t("a-form-item",{attrs:{label:"订单付款的总金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v("¥"+e._s(e.record.orderData.pay_price)+"元")])]),t("a-form-item",{attrs:{label:"退款的金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["refund_money",{rules:[{required:!0,message:"请输入退款金额"}]}],expression:"['refund_money', { rules: [{ required: true, message: '请输入退款金额' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")]),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("请输入退款金额,最多"+e._s(Math.min(e.record.orderGoods.total_pay_price,e.record.orderData.pay_price))+"元,最多不能大于订单实际付款的总金额")])])],1)],1):e._e()],1)],1)},v=[],g={data:function(){return{title:"确认收货并退款",labelCol:{span:8},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},beforeCreate:function(){Object(i["a"])(this,{AuditStatusEnum:d["a"],RefundTypeEnum:d["d"]})},methods:{show:function(e){var t=this;this.visible=!0,this.record=e,this.$nextTick((function(){t.$forceUpdate()}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,o["h"]({orderRefundId:this.record.order_refund_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){t.isLoading=!1}))}}},b=g,y=(a("41ad"),Object(_["a"])(b,h,v,!1,null,"7bbd5f22",null)),C=y.exports},bd06:function(e,t,a){"use strict";a("b2a6")},bdad:function(e,t,a){},c1ac:function(e,t,a){"use strict";a("9fd8")},c308:function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-radio-group",{style:{marginBottom:"8px"},model:{value:e.mode,callback:function(t){e.mode=t},expression:"mode"}},[t("a-radio-button",{attrs:{value:"1"},on:{click:function(t){return e.chooseTab(1)}}},[e._v("普通商品")]),t("a-radio-button",{attrs:{value:"2"},on:{click:function(t){return e.chooseTab(2)}}},[e._v("套餐商品")])],1),t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"订单编号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNo"],expression:"['orderNo']"}],staticClass:"inputW150",attrs:{placeholder:"请输入订单编号","allow-clear":""}})],1),1==e.mode?t("a-form-item",{attrs:{label:"商品名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],staticClass:"inputW150",attrs:{placeholder:"请输入商品名称","allow-clear":""}})],1):e._e(),t("a-form-item",{attrs:{label:"收件人"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["addressKw"],expression:"['addressKw']"}],staticClass:"inputW150",attrs:{placeholder:"收件人手机号、姓名","allow-clear":""}})],1),t("a-form-item",{attrs:{label:"收货地址"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["address"],expression:"['address']"}],staticClass:"inputW150",attrs:{placeholder:"请输入收货地址","allow-clear":""}})],1),2==e.mode?t("a-form-item",{attrs:{label:"套餐名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],staticClass:"inputW150",attrs:{placeholder:"请输入套餐名称","allow-clear":""}})],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expend,expression:"expend"}]},[t("a-form-item",{attrs:{label:"是否导出"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["isExport",{initialValue:e.isExport}],expression:"['isExport', { initialValue: isExport }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:0}},[e._v("未导出")]),t("a-select-option",{attrs:{value:1}},[e._v("已导出")])],1)],1),t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],staticClass:"inputW375",attrs:{"show-time":!0,format:"YYYY-MM-DD HH:mm:ss"}})],1)],1),t("a-row",[t("a-button",{staticClass:"search-btn",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),t("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:function(t){e.expend=!e.expend}}},[e._v(e._s(e.expend?"收起全部搜索":"展开全部搜索"))]),t("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.orderExport}},[e._v("导出")]),t("a-upload",{attrs:{name:"file",multiple:!1,customRequest:e.customRequest},on:{change:e.changeFile}},[t("a-button",{staticClass:"search-btn",attrs:{type:"primary"}},[e._v("导入运单号")])],1),t("span",{staticClass:"tips"},[e._v("导出导入提示:如需物流拆单,请不要填写物流单号信息,请勿删除Excel表格数据")])],1)],1)],1)],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[1==e.mode?t("thead",{staticClass:"ant-table-thead"},[t("tr",[t("th",[t("a-checkbox",{attrs:{checked:e.checkAll},on:{change:e.onCheckAllChange}})],1),e._l(e.columns,(function(a,s){return t("th",{key:s},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])}))],2)]):e._e(),2==e.mode?t("thead",{staticClass:"ant-table-thead"},[t("tr",[t("th",[t("a-checkbox",{attrs:{checked:e.checkAll},on:{change:e.onCheckAllChange}})],1),e._l(e.comboColumns,(function(a,s){return t("th",{key:s},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])}))],2)]):e._e(),1==e.mode?t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.orderList.data,(function(a,s){return[t("tr",{key:"".concat(s,"_2")},[t("td",[t("a-checkbox",{attrs:{checked:a.checked},on:{change:function(t){return e.onChange(a)}}})],1),t("td",{staticClass:"appOrderNo"},[t("router-link",{attrs:{target:"_blank",to:{path:"/order/detail",query:{orderId:a.order_id}}}},[e._v(e._s(a.orderM.order_no))])],1),t("td",{staticClass:"textSpill3"},[t("p",[e._v(e._s(a.goods_name))])]),t("td",{staticClass:"textSpill2Props"},[t("div",[a.goods_props?t("div",e._l(a.goods_props,(function(a,s){return t("p",{key:s},[e._v(e._s(a.value.name))])})),0):t("div",[e._v("--")])])]),t("td",[t("p",[e._v(e._s(a.total_num))])]),t("td",{staticClass:"textSpill2Props"},[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.name))]):e._e()]),t("td",[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.phone))]):e._e()]),t("td",{staticClass:"textSpill2 address"},[a.orderM.address?t("p",[e._v(" "+e._s(a.orderM.address.region.province)+" "+e._s(a.orderM.address.region.city)+" "+e._s(a.orderM.address.region.region)+" ")]):e._e(),a.orderM.address?t("p",[e._v(e._s(a.orderM.address.detail))]):e._e()]),t("td",{staticClass:"create_time"},[a.create_time?t("p",{domProps:{innerHTML:e._s(e.$options.filters.splitTime(a.create_time))}}):t("p",[e._v("--")])]),t("td",[t("p",[e._v(e._s(0==a.is_export?"未导出":"已导出"))])]),t("td",[t("div",{staticClass:"actions"},[a.total_num>1?t("a",{on:{click:function(t){return e.handleSplit(a)}}},[e._v("拆分发货")]):e._e(),t("a",{on:{click:function(t){return e.handleDelivery(a)}}},[e._v("去发货")])])])])]}))],2):e._e(),2==e.mode?t("tbody",{staticClass:"ant-table-tbody combo"},[e._l(e.orderList.data,(function(a,s){return[t("tr",{key:"".concat(s,"_1")},[t("td",{attrs:{colspan:"24"}},[t("span",[e._v("订单号:"+e._s(a.orderM.order_no))]),t("span",{staticStyle:{"margin-left":"20px","margin-right":"20px"}},[e._v("套餐名称:"+e._s(a.goods_name))]),t("span",[e._v("套餐数量:"+e._s(a.total_num))])])]),t("tr",{key:"".concat(s,"_2")},[t("td",[t("a-checkbox",{attrs:{checked:a.checked},on:{change:function(t){return e.onChange(a)}}})],1),t("td",[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[t("p",[e._v(e._s(a.goods_sku_no))])])})),0)]),t("td",{staticClass:"textSpill2"},[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[t("p",[e._v(e._s(a.goods_name))])])})),0)]),t("td",{staticClass:"textSpill2Props"},[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[a.goods_props?t("div",e._l(a.goods_props,(function(a,s){return t("p",{key:s},[e._v(e._s(a.value.name))])})),0):t("div",[e._v("--")])])})),0)]),t("td",[t("div",e._l(a.goods_packages,(function(a,s){return t("div",{key:s},[t("p",[e._v(e._s(a.total_num))])])})),0)]),t("td",{staticClass:"textSpill2Props"},[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.name))]):e._e()]),t("td",[a.orderM.address?t("p",[e._v(e._s(a.orderM.address.phone))]):e._e()]),t("td",{staticClass:"textSpill2"},[a.orderM.address?t("p",[e._v(" "+e._s(a.orderM.address.region.province)+" "+e._s(a.orderM.address.region.city)+" "+e._s(a.orderM.address.region.region)+" ")]):e._e(),a.orderM.address?t("p",[e._v(e._s(a.orderM.address.detail))]):e._e()]),t("td",[t("p",[e._v(e._s(a.provider_name))])]),t("td",[a.shop?t("p",[e._v(e._s(a.shop.shop_name))]):e._e()]),t("td",[t("p",[e._v(e._s(0==a.is_export?"未导出":"已导出"))])]),t("td",[t("div",{staticClass:"actions"},[a.total_num>1?t("a",{on:{click:function(t){return e.handleSplit(a)}}},[e._v("拆分发货")]):e._e(),t("a",{on:{click:function(t){return e.handleDelivery(a)}}},[e._v("去发货")])])])])]}))],2):e._e()])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.orderList.total>15&&2==e.mode?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total,"show-total":function(e){return"总共 ".concat(e," 条订单数据")}},on:{change:e.onChangePage}})],1):e._e(),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}}),t("SplitForm",{ref:"SplitForm",on:{handleSubmit:e.handleRefresh}})],1)],1)},r=[],i=a("3032"),o=a("753f"),n=(a("5d10"),a("9033")),d=(a("9f29"),a("0528"),a("a2bf"),a("ca00")),l=a("f766"),c=a("3a10"),u=(a("b775"),a("4a95")),p=a("ac82"),_=[{title:"订单编号",align:"center"},{title:"商品名称",align:"center",ellipsis:!0},{title:"商品规格",align:"center"},{title:"数量",align:"center"},{title:"收件人",align:"center"},{title:"联系方式",align:"center"},{title:"收货地址",align:"center"},{title:"下单时间",align:"center"},{title:"导出状态",align:"center"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],m=[{title:"商品SKU",align:"center"},{title:"商品名称",align:"center",ellipsis:!0},{title:"商品规格",align:"center"},{title:"商品数量",align:"center"},{title:"收件人",align:"center"},{title:"联系方式",align:"center"},{title:"收货地址",align:"center"},{title:"供应商",align:"center"},{title:"门店",align:"center"},{title:"导出状态",align:"center"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],f=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30}],h={name:"Index",components:{DeliveryForm:p["b"],CancelForm:p["a"],SplitForm:p["e"]},data:function(){return{dataType:this.getDataType(),searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:_,comboColumns:m,page:1,orderList:{data:[],total:0,per_page:10},checkAll:!1,checkedList:[],isExport:-1,mode:"1",expend:!1}},beforeCreate:function(){Object(d["a"])(this,{inArray:d["e"],DeliveryStatusEnum:u["a"],DeliveryTypeEnum:u["b"],OrderSourceEnum:u["c"],OrderStatusEnum:u["d"],PayStatusEnum:u["e"],PayTypeEnum:u["f"],ReceiptStatusEnum:u["g"],SearchTypeEnum:f,simpleImage:n["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init()},watch:{$route:function(){this.init()}},methods:{orderExport:function(){var e=this;if(this.checkedList.length<=0)this.$message.error("请勾选需要导出的订单",1.5);else{var t=this.checkedList;c["f"]({order_goods_id:t,gtype:this.mode}).then((function(t){var a=document.createElement("a");a.href=t.data.file,a.setAttribute("download",t.data.filename),a.click(),a=null,e.$message.success(t.message),e.handleRefresh(),e.checkedList=[],e.checkAll=!1})).finally((function(e){}))}},changeFile:function(e){e.file.status,"done"===e.file.status?this.$message.success("".concat(e.file.name," 上传成功")):"error"===e.file.status&&this.$message.error("".concat(e.file.name," 上传失败."))},customRequest:function(e){var t=this,a=new FormData;a.append("file",e.file),l["a"](a).then((function(e){t.$message.success("导入成功,发货成功"+e.data.success+"个,发货失败"+e.data.failure+"个"),t.handleRefresh()})).finally((function(){}))},init:function(){this.dataType=this.getDataType(),this.searchForm.resetFields(),this.queryParam={},this.$route.query.providerId&&(this.queryParam.providerId=this.$route.query.providerId),this.$route.query.orderNo&&(this.queryParam.orderNo=this.$route.query.orderNo),this.handleRefresh(!0)},getDataType:function(){return this.$route.path.split("/")[3]},getList:function(){var e=this,t=this.dataType,a=this.queryParam,s=this.page;return this.isLoading=!0,c["a"](Object(o["a"])(Object(o["a"])({dataType:t},a),{},{page:s,gtype:this.mode})).then((function(t){e.orderList=t.data.list,e.orderList.data.forEach((function(e){e.checked=!1}))})).finally((function(){e.isLoading=!1}))},renderOrderStatusColor:function(e){var t=this.OrderStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.CANCELLED.value,"red"),t.APPLY_CANCEL.value,"red"),t.COMPLETED.value,"green");return a[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields(),this.queryParam={},this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleCancel:function(e){this.$refs.CancelForm.show(e)},onCheckAllChange:function(){var e=this;this.checkedList=[],this.checkAll?(this.checkAll=!1,this.orderList.data.forEach((function(e){e.checked=!1}))):(this.checkAll=!0,this.orderList.data.forEach((function(t){t.checked=!0,e.checkedList.push(t.order_goods_id)})))},onChange:function(e){var t=this;if(e.checked=!e.checked,e.checked)this.orderList.data.forEach((function(a){e==a&&t.checkedList.push(e.order_goods_id)}));else{var a=t.checkedList.indexOf(e.order_goods_id);t.checkedList.splice(a,1)}this.$forceUpdate(),this.orderList.data.length==this.checkedList.length?this.checkAll=!0:this.checkAll=!1},handleSplit:function(e){this.$refs.SplitForm.show(e)},chooseTab:function(e){this.mode=e,this.handleRefresh(!0)}}},v=h,g=(a("449d"),a("829d")),b=Object(g["a"])(v,s,r,!1,null,"cd994c42",null);t["default"]=b.exports},cb09:function(e,t,a){"use strict";a("93f9")},d903:function(e,t,a){"use strict";a("664f")},defd:function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.isLoading}}),e.isLoading?e._e():t("div",[t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"title"},[e._v("新建售后单")]),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"售后单编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{staticClass:"aInput",attrs:{placeholder:"创建售后单后自动生成",disabled:""}})],1),t("a-form-item",{attrs:{label:"订单编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{staticClass:"aInput",attrs:{placeholder:"请输入订单编号"},model:{value:e.orderNo,callback:function(t){e.orderNo=t},expression:"orderNo"}}),t("a-button",{staticClass:"search",attrs:{type:"primary",loading:e.isBtnLoading},on:{click:e.searchOrder}},[e._v("搜索")])],1),e.orderDetail?t("div",[t("a-form-item",{attrs:{label:"问题商品",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"goodsBox"},[t("a-table",{attrs:{rowKey:"order_goods_id",columns:e.goodsColumns,dataSource:e.orderDetail.goods,pagination:!1,bordered:"","row-selection":e.rowSelection},scopedSlots:e._u([{key:"goods_props",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?a[0].value.name:"--"))])])}},{key:"finalPayPrice",fn:function(a){return t("span",{staticClass:"total_pay_price"},[t("p",[e._v("¥"+e._s(a))])])}},{key:"pass_refund_time",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?"是":"否"))])])}},{key:"is_refund",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?"是":"否"))])])}}],null,!1,2639941703)})],1)]),t("a-form-item",{attrs:{label:"补偿金额",extra:"补偿金额不超过商品实收金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"pageItem"},[t("a-input-number",{staticClass:"aInput number",attrs:{placeholder:e.selectedRow?"请输入补偿金额":"请先选择问题商品",disabled:!e.selectedRow,min:0,max:e.selectedRow?parseFloat(e.selectedRow.finalPayPrice):null},model:{value:e.money,callback:function(t){e.money=t},expression:"money"}}),e.showMoneyTool?t("span",{staticClass:"inputTool"},[e._v("请调整补偿金额后重新提交!")]):e._e()],1)]),t("a-form-item",{attrs:{label:"补偿原因",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{staticClass:"textarea",attrs:{autoSize:{minRows:4},maxLength:200},model:{value:e.reason,callback:function(t){e.reason=t},expression:"reason"}})],1),t("a-form-item",{attrs:{label:"上传凭证",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"(最多添加6张图片)"}},[t("SelectImage",{attrs:{multiple:"",maxNum:6},on:{change:e.selectImageChange}})],1),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[t("a-button",{staticClass:"button",attrs:{type:"primary",loading:e.isBtnLoading},on:{click:e.handleSubmit}},[e._v("提交售后单")])],1)],1):e._e()],1)],1)],1)],1)],1)},r=[],i=(a("9f29"),a("ff9e"),a("0528"),a("8053"),a("2af9")),o=a("0ccb"),n=[{title:"商品SKU",width:"150px",dataIndex:"goods_sku_no"},{title:"商品标题",width:"150px",dataIndex:"goods_name"},{title:"商品规格",width:"60px",ellipsis:!0,dataIndex:"goods_props",scopedSlots:{customRender:"goods_props"}},{title:"购买数量",width:"60px",ellipsis:!0,dataIndex:"total_num"},{title:"实收金额",width:"80px",ellipsis:!0,dataIndex:"finalPayPrice",scopedSlots:{customRender:"finalPayPrice"}},{title:"是否过售后期",width:"80px",ellipsis:!0,dataIndex:"pass_refund_time",scopedSlots:{customRender:"pass_refund_time"}},{title:"是否售后",width:"60px",ellipsis:!0,dataIndex:"is_refund",scopedSlots:{customRender:"is_refund"}},{title:"售后状态",width:"80px",ellipsis:!0,dataIndex:"refund_state_text"}],d={name:"AddCompensateOrder",components:{SelectImage:i["d"]},data:function(){return{isLoading:!1,isBtnLoading:!1,orderNo:"",money:"",reason:"",selectImageList:[],showMoneyTool:!1,labelCol:{span:3},wrapperCol:{span:20},orderDetail:null,goodsColumns:n,selectedRowKeys:[],selectedRow:null}},created:function(){},computed:{rowSelection:function(){return{type:"radio",onChange:this.onSelectChange,getCheckboxProps:this.getCheckboxProps}}},methods:{searchOrder:function(){var e=this;this.orderNo?(this.isBtnLoading=!0,o["f"]({orderNo:this.orderNo}).then((function(t){e.isBtnLoading=!1;var a=t.data.detail||null;if(a)for(var s=a.goods||[],r=0;r<s.length;r++){var i=s[r];i.finalPayPrice=parseFloat((100*parseFloat(i.total_pay_price)+100*parseFloat(i.rice_card_money))/100).toFixed(2)}e.selectedRow=null,e.orderDetail=a})).finally((function(t){e.isBtnLoading=!1}))):this.$message.error("请输入订单编号",1.5)},getCheckboxProps:function(e){return e.pass_refund_time&&!e.is_refund||e.pass_refund_time&&e.is_refund&&e.is_refund_close?e.defaultDisabled=!1:e.defaultDisabled=!0,{props:{disabled:e.defaultDisabled,defaultChecked:e.checked}}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRow=t[0],this.money="",this.showMoneyTool=!1},selectImageChange:function(e,t){this.selectImageList=t||[]},handleSubmit:function(){var e=this;if(this.selectedRow)if(this.money){if(parseFloat(this.money)>parseFloat(this.selectedRow.finalPayPrice))return this.$message.error("请调整补偿金额后重新提交!",1.5),void(this.showMoneyTool=!0);if(this.showMoneyTool=!1,this.reason)if(this.selectImageList.length<=0)this.$message.error("上传凭证",1.5);else{var t="";this.selectImageList&&this.selectImageList.forEach((function(a,s){t+=s<e.selectImageList.length-1?a.preview_url+",":a.preview_url}));var a={order_id:this.orderDetail.order_id,refund_money:this.money,refund_desc:this.reason,order_goods_id:this.selectedRow.order_goods_id,images:t};this.isBtnLoading=!0,o["a"]({form:a}).then((function(t){e.isBtnLoading=!1,e.$message.success(t.message,1.5),setTimeout((function(){e.$router.push("../index")}),1e3)})).finally((function(t){e.isBtnLoading=!1}))}else this.$message.error("请填写补偿原因",1.5)}else this.$message.error("请输入补偿金额",1.5);else this.$message.error("请选择问题商品",1.5)}}},l=d,c=(a("d903"),a("829d")),u=Object(c["a"])(l,s,r,!1,null,"919ede70",null);t["default"]=u.exports},e585:function(e,t,a){"use strict";a.d(t,"g",(function(){return i})),a.d(t,"i",(function(){return o})),a.d(t,"e",(function(){return n})),a.d(t,"a",(function(){return d})),a.d(t,"h",(function(){return l})),a.d(t,"f",(function(){return c})),a.d(t,"d",(function(){return u})),a.d(t,"b",(function(){return p})),a.d(t,"c",(function(){return _}));var s=a("b775"),r={list:"/order.refund/list",refundCompensateList:"/RefundCompensate/list",detail:"/order.refund/detail",audit:"/order.refund/audit",receipt:"/order.refund/receipt",hisList:"/order.refund/hisList",close:"/order.refund/close",auditzg:"/order.refund/auditzg",checkRefund:"/order.refund/checkRefund"};function i(e){return Object(s["b"])({url:r.list,method:"get",params:e})}function o(e){return Object(s["b"])({url:r.refundCompensateList,method:"get",params:e})}function n(e){return Object(s["b"])({url:r.detail,method:"get",params:e})}function d(e){return Object(s["b"])({url:r.audit,method:"post",data:e})}function l(e){return Object(s["b"])({url:r.receipt,method:"post",data:e})}function c(e){return Object(s["b"])({url:r.hisList,method:"get",params:e})}function u(e){return Object(s["b"])({url:r.close,method:"get",params:e})}function p(e){return Object(s["b"])({url:r.auditzg,method:"post",data:e})}function _(e){return Object(s["b"])({url:r.checkRefund,method:"get",params:e})}},ea1f:function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"table-operator"},[t("a-radio-group",{style:{marginBottom:"8px"},attrs:{"default-value":"1","button-style":"solid"},model:{value:e.pageMode,callback:function(t){e.pageMode=t},expression:"pageMode"}},[t("a-radio-button",{attrs:{value:"1"},on:{click:function(t){return e.chooseTab(1)}}},[e._v("售后单")]),"refund-zy-audit"==e.role||"refund-zg-audit"==e.role||1==e.isSuper?t("a-radio-button",{attrs:{value:"2"},on:{click:function(t){return e.chooseTab(2)}}},[e._v("售后补偿单")]):e._e()],1),t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"售后单编号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["refund_number"],expression:"['refund_number']"}],staticClass:"inputW150",attrs:{placeholder:"请输入售后单编号"}})],1),t("a-form-item",{attrs:{label:"订单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],staticClass:"inputW220",attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{attrs:{label:"订单编号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_no"],expression:"['order_no']"}],staticClass:"inputW150",attrs:{placeholder:"请输入订单编号"}})],1),t("a-form-item",{attrs:{label:"供应商名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["provider_name"],expression:"['provider_name']"}],staticClass:"inputW150",attrs:{placeholder:"请输入供应商名称"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expend,expression:"expend"}]},[t("a-form-item",{attrs:{label:"申请人"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["nick_name"],expression:"['nick_name']"}],staticClass:"inputW150",attrs:{placeholder:"请输入申请人"}})],1),t("a-form-item",{attrs:{label:"手机号码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["mobile"],expression:"['mobile']"}],staticClass:"inputW150",attrs:{placeholder:"请输入手机号码"}})],1),1==e.pageMode?t("a-form-item",{attrs:{label:"售后类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",{initialValue:-1}],expression:"['type', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.RefundTypeEnum.data,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1):e._e(),t("a-form-item",{attrs:{label:"售后单状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["refund_status",{initialValue:-1}],expression:"['refund_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(1==e.pageMode?e.RefundStatusEnum.data:e.RefundStatusCompensateEnum.data,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"配送方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["delivery_type"],expression:"['delivery_type']"}],staticStyle:{width:"100%"},attrs:{placeholder:"请选择配送方式",allowClear:!0}},[t("a-select-option",{attrs:{value:"10"}},[e._v("普通配送")]),t("a-select-option",{attrs:{value:"20"}},[e._v("门店自提")])],1)],1)],1),t("a-row",[t("a-button",{staticClass:"search-btn",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),t("a-button",{staticClass:"search-btn",on:{click:e.handleReset}},[e._v("重置")]),t("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:function(t){e.expend=!e.expend}}},[e._v(e._s(e.expend?"收起全部搜索":"展开全部搜索"))]),"refund-zy-audit"!=e.role&&1!=e.isSuper||2!=e.pageMode?e._e():t("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.addCompensateOrder}},[e._v("新建售后补偿单")])],1)],1)],1)],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.columns,(function(a,s){return t("th",{key:s},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]),t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.refundList.data,(function(a,s){return[t("tr",{key:s},[t("td",[t("p",{staticClass:"appOrderNo"},[e._v(e._s(a.refund_number))])]),t("td",{staticClass:"appOrderNo"},[t("router-link",{attrs:{target:"_blank",to:{path:"/order/detail",query:{orderId:a.order_id}}}},[e._v(e._s(a.order_no))])],1),t("td",[1==e.pageMode?t("p",[e._v(e._s(a.create_time))]):t("p",[e._v(e._s(a.orderData.create_time))])]),t("td",[1==e.pageMode?t("p",[e._v(e._s(10==a.delivery_type?"普通配送":"门店自提"))]):t("p",[e._v(e._s(10==a.orderData.delivery_type?"普通配送":"门店自提"))])]),t("td",[1==e.pageMode&&a.orderGoods[0]?t("p",[e._v(e._s(a.orderGoods[0].provider_name))]):e._e(),2==e.pageMode&&a.orderGoods?t("p",[e._v(e._s(a.orderGoods.provider_name))]):e._e()]),t("td",[1==e.pageMode&&a.user?t("p",[e._v(e._s(a.user.nick_name))]):e._e(),2==e.pageMode&&a.submit_zy?t("p",[e._v(e._s(a.submit_zy))]):e._e()]),t("td",[1==e.pageMode&&a.user?t("p",[e._v(e._s(a.user.mobile))]):e._e(),2==e.pageMode&&a.orderData.mobile?t("p",[e._v(e._s(a.orderData.mobile))]):e._e()]),t("td",[1==e.pageMode&&a.type?t("p",[e._v(e._s(e.RefundTypeEnum[a.type].name))]):e._e(),2==e.pageMode?t("p",[e._v("售后补偿")]):e._e()]),t("td",[1==e.pageMode?t("p",[e._v(e._s(a.state_text))]):t("p",[e._v(e._s(a.state_text.name))])]),t("td",[1==e.pageMode?t("p",[e._v(e._s(a.audit_text))]):t("p",[e._v(e._s({0:"待审核",10:"审核通过",20:"拒绝"}[a.audit_status_zg]))])]),t("td",[1==e.pageMode&&a.orderGoods[0]?t("p",[e._v(" "+e._s(0==a.orderGoods[0].is_export?"未导出":"已导出")+" ")]):e._e(),2==e.pageMode&&a.orderGoods?t("p",[e._v(" "+e._s(0==a.orderGoods.is_export?"未导出":"已导出")+" ")]):e._e()]),t("td",[(1==e.pageMode?a.orderGoods[0]:a.orderGoods)?t("GoodsItem",{attrs:{data:{image:1==e.pageMode?a.orderGoods[0].goods_image:a.orderGoods.goods_image,imageAlt:"商品图片",title:1==e.pageMode?a.orderGoods[0].goods_name:a.orderGoods.goods_name}}}):e._e()],1),t("td",[t("p",[e._v("退款金额:¥"+e._s(a.refund_money))]),1==e.pageMode?t("p",[e._v("退款数量:×"+e._s(a.goods_num))]):e._e()]),t("td",[1==e.pageMode?t("div",{staticClass:"actions"},[e.$auth("/order/refund/detail")?t("router-link",{attrs:{to:{path:"/order/refund/detail",query:{orderRefundId:a.order_refund_id}}}},[e._v("详情")]):e._e()],1):e._e(),2==e.pageMode?t("div",{staticClass:"actions"},[t("router-link",{attrs:{to:{path:"/order/refund/compensateOrder/detail",query:{id:a.id}}}},[e._v("详情")]),"refund-zy-audit"!=e.role&&1!=e.isSuper||4==a.state_text.value||20!=a.audit_status_zg?e._e():t("router-link",{attrs:{to:{path:"/order/refund/compensateOrder/update",query:{id:a.id}}}},[e._v("修改")])],1):e._e()])])]}))],2)])]),e.refundList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.refundList.total>15?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.refundList.per_page,total:e.refundList.total,"show-total":function(e){return"总共 ".concat(e," 条售后订单数据")}},on:{change:e.onChangePage}})],1):e._e(),t("AuditForm",{ref:"AuditForm",on:{handleSubmit:e.handleRefresh}}),t("ReceiptForm",{ref:"ReceiptForm",on:{handleSubmit:e.handleRefresh}})],1)],1)},r=[],i=a("3032"),o=a("753f"),n=(a("5d10"),a("9033")),d=(a("9f29"),a("0528"),a("ca00")),l=a("e585"),c=a("ab09"),u=a("6ab1"),p=a("b4a5"),_=[{title:"售后单编号",align:"center"},{title:"订单编号",align:"center"},{title:"订单时间",align:"center"},{title:"配送方式",align:"center"},{title:"供应商名称",align:"center"},{title:"申请人",align:"center"},{title:"手机号码",align:"center"},{title:"售后类型",align:"center"},{title:"售后状态",align:"center"},{title:"审核状态",align:"center"},{title:"导出状态",align:"center"},{title:"商品信息",align:"center"},{title:"退款信息",align:"center"},{title:"操作",dataIndex:"action",width:"120px",scopedSlots:{customRender:"action"}}],m={name:"Index",components:{GoodsItem:c["a"],UserItem:c["c"],AuditForm:p["a"],ReceiptForm:p["b"]},data:function(){return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:_,page:1,refundList:{data:[],total:0,per_page:10},pageMode:"1",role:"",isSuper:null,expend:!1}},beforeCreate:function(){Object(d["a"])(this,{inArray:d["e"],AuditStatusEnum:u["a"],RefundStatusEnum:u["c"],RefundStatusCompensateEnum:u["b"],RefundTypeEnum:u["d"],simpleImage:n["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){var e=this;if(this.pageMode=localStorage.getItem("refundPageMode")||"1",this.$store.getters.roles){this.isSuper=this.$store.getters.roles.isSuper;var t=this.$store.getters.roles.permissions;t.forEach((function(t){"/order/refund/detail"==t.permissionId&&t.actionEntitySet&&t.actionEntitySet.length>0&&(e.role=t.actionEntitySet[0].action)}))}this.init()},methods:{init:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getList:function(){var e=this,t=this.queryParam,a=this.page;return this.isLoading=!0,2==this.pageMode?l["i"](Object(o["a"])(Object(o["a"])({},t),{},{page:a})).then((function(t){e.refundList=t.data.list})).finally((function(){e.isLoading=!1})):l["g"](Object(o["a"])(Object(o["a"])({},t),{},{page:a})).then((function(t){e.refundList=t.data.list})).finally((function(){e.isLoading=!1}))},chooseTab:function(e){this.pageMode!=e&&(this.pageMode=e||1,localStorage.setItem("refundPageMode",this.pageMode),this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0))},renderAuditStatusColor:function(e){var t=this.AuditStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.WAIT.value,""),t.REVIEWED.value,"green"),t.REJECTED.value,"red");return a[e]},renderRefundStatusColor:function(e){var t=this.RefundStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.REJECTED.value,"red"),t.COMPLETED.value,"green"),t.CANCELLED.value,"red");return a[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},onChangePage:function(e){this.page=e,this.handleRefresh()},handleAudit:function(e){this.$refs.AuditForm.show(e)},handleReceipt:function(e){this.$refs.ReceiptForm.show(e)},addCompensateOrder:function(){this.$router.push("/order/refund/compensateOrder/create")}}},f=m,h=(a("1b70"),a("829d")),v=Object(h["a"])(f,s,r,!1,null,"42f54c71",null);t["default"]=v.exports},ed1f:function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.isLoading}}),e.isLoading?e._e():t("div",[t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"title"},[e._v("新建售后单")]),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"售后单编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{staticClass:"aInput",attrs:{placeholder:"创建售后单后自动生成",disabled:"",value:e.detail.refund_number}})],1),t("a-form-item",{attrs:{label:"订单编号",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{staticClass:"aInput",attrs:{disabled:"",value:e.detail.order_no,placeholder:""}})],1),t("a-form-item",{attrs:{label:"问题商品",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"goodsBox"},[t("a-table",{attrs:{rowKey:"order_goods_id",columns:e.goodsColumns,dataSource:e.detail.orderData.goods,pagination:!1,bordered:"","row-selection":e.rowSelection},scopedSlots:e._u([{key:"goods_props",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?a[0].value.name:"--"))])])}},{key:"finalPayPrice",fn:function(a){return t("span",{staticClass:"goods_money"},[t("p",[e._v("¥"+e._s(a))])])}},{key:"pass_refund_time",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?"是":"否"))])])}},{key:"is_refund",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a?"是":"否"))])])}}],null,!1,199891391)})],1)]),t("a-form-item",{attrs:{label:"补偿金额",extra:"补偿金额不超过商品实收金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"pageItem"},[t("a-input-number",{staticClass:"aInput number",attrs:{placeholder:e.selectedRow?"请输入补偿金额":"请先选择问题商品",disabled:!e.selectedRow,min:0,max:e.selectedRow?parseFloat(e.selectedRow.finalPayPrice):null},model:{value:e.money,callback:function(t){e.money=t},expression:"money"}}),e.showMoneyTool?t("span",{staticClass:"inputTool"},[e._v("请调整补偿金额后重新提交!")]):e._e()],1)]),t("a-form-item",{attrs:{label:"补偿原因",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{staticClass:"textarea",attrs:{autoSize:{minRows:4},maxLength:200},model:{value:e.reason,callback:function(t){e.reason=t},expression:"reason"}})],1),t("a-form-item",{attrs:{label:"上传凭证",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"(最多添加6张图片)"}},[t("SelectImage",{attrs:{multiple:"",maxNum:6,defaultList:e.detail.images},on:{change:e.selectImageChange}})],1)],1)],1),t("a-form-item",{staticClass:"mt-20",attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[20!=e.detail.audit_status_zg||"refund-zy-audit"!=e.role&&1!=e.isSuper?e._e():t("a-button",{staticClass:"button",attrs:{type:"primary",loading:e.isBtnLoading},on:{click:e.handleSubmit}},[e._v("提交售后单")]),10==e.detail.audit_status_zg||"refund-zy-audit"!=e.role&&1!=e.isSuper?e._e():t("a-button",{staticClass:"button",attrs:{loading:e.isBtnLoading},on:{click:e.close}},[e._v("撤销并关闭售后单")])],1),t("div",{staticClass:"title"},[e._v("审核结果")]),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-table",{staticStyle:{width:"80%","margin-left":"7%"},attrs:{rowKey:"id",columns:e.recordColumns,dataSource:e.detail.his,pagination:!1,bordered:""},scopedSlots:e._u([{key:"audit_desc",fn:function(a){return t("span",{},[t("p",[e._v(e._s(a||"--"))])])}}],null,!1,3150808855)})],1)],1)],1)],1)],1)},r=[],i=(a("9f29"),a("0528"),a("ff9e"),a("b505"),a("8053"),a("2af9")),o=a("0ccb"),n=[{title:"商品SKU",width:"150px",dataIndex:"goods_sku_no"},{title:"商品标题",width:"150px",dataIndex:"goods_name"},{title:"商品规格",width:"60px",ellipsis:!0,dataIndex:"goods_props",scopedSlots:{customRender:"goods_props"}},{title:"购买数量",width:"60px",dataIndex:"total_num"},{title:"实收金额",width:"80px",dataIndex:"finalPayPrice",scopedSlots:{customRender:"finalPayPrice"}},{title:"是否过售后期",width:"80px",dataIndex:"pass_refund_time",scopedSlots:{customRender:"pass_refund_time"}},{title:"是否售后",width:"60px",dataIndex:"is_refund",scopedSlots:{customRender:"is_refund"}},{title:"售后状态",width:"80px",dataIndex:"refund_state_text"}],d=[{title:"审核时间",width:"150px",dataIndex:"update_time"},{title:"审核人",width:"100px",dataIndex:"name"},{title:"审核结果",width:"100px",dataIndex:"audit_result"},{title:"理由",width:"250px",dataIndex:"audit_desc"}],l={name:"AddCompensateOrder",components:{SelectImage:i["d"]},data:function(){return{id:"",isLoading:!1,isBtnLoading:!1,money:"",reason:"",selectImageList:[],showMoneyTool:!1,labelCol:{span:3},wrapperCol:{span:20},detail:{},goodsColumns:n,recordColumns:d,selectedRowKeys:[],selectedRow:null,role:"",isSuper:null}},created:function(){var e=this;if(this.id=this.$route.query.id||"",this.$store.getters.roles){this.isSuper=this.$store.getters.roles.isSuper;var t=this.$store.getters.roles.permissions;t.forEach((function(t){"/order/refund/detail"==t.permissionId&&t.actionEntitySet&&t.actionEntitySet.length>0&&(e.role=t.actionEntitySet[0].action)}))}this.isLoading=!0,this.getDetail()},computed:{rowSelection:function(){return{type:"radio",onChange:this.onSelectChange,getCheckboxProps:this.getCheckboxProps}}},methods:{getDetail:function(){var e=this;o["d"]({id:this.id}).then((function(t){for(var a=t.data.detail||{},s=a.orderData.goods||[],r=0;r<s.length;r++){var i=s[r];i.goods_type&&(i.finalPayPrice=parseFloat((100*parseFloat(i.total_pay_price)+100*parseFloat(i.rice_card_money))/100).toFixed(2)),i.checked=!1,a.orderGoods.order_goods_id==i.order_goods_id&&(e.onSelectChange([],[i]),e.selectedRow=i)}var o=s.filter((function(e){return 20!=e.goods_type}));a.orderData.goods=o;for(var n=[],d=0;d<a.images.length;d++)n.push({file_id:d,preview_url:a.images[d]});e.selectImageList=n,a.images=n,e.money=a.refund_money,e.reason=a.refund_desc,e.detail=a,e.isLoading=!1})).finally((function(){e.isLoading=!1}))},getCheckboxProps:function(e){return e.pass_refund_time&&!e.is_refund||e.pass_refund_time&&e.is_refund&&e.is_refund_close?e.defaultDisabled=!1:e.defaultDisabled=!0,{props:{disabled:e.defaultDisabled,defaultChecked:e.order_goods_id==this.selectedRow.order_goods_id}}},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRow=t[0],this.money="",this.showMoneyTool=!1},selectImageChange:function(e,t){this.selectImageList=t||[]},handleSubmit:function(){var e=this;if(this.selectedRow)if(this.money){if(parseFloat(this.money)>parseFloat(this.selectedRow.finalPayPrice))return this.$message.error("请调整补偿金额后重新提交!",1.5),void(this.showMoneyTool=!0);if(this.showMoneyTool=!1,this.reason)if(this.selectImageList.length<=0)this.$message.error("上传凭证",1.5);else{var t="";this.selectImageList&&this.selectImageList.forEach((function(a,s){t+=s<e.selectImageList.length-1?a.preview_url+",":a.preview_url}));var a={id:this.id,order_id:this.detail.orderData.order_id,refund_money:this.money,refund_desc:this.reason,order_goods_id:this.selectedRow.order_goods_id,images:t};this.isBtnLoading=!0,o["e"]({form:a}).then((function(t){e.isBtnLoading=!1,e.$message.success(t.message,1.5),setTimeout((function(){e.$router.push("../index")}),1e3)})).finally((function(t){e.isBtnLoading=!1}))}else this.$message.error("请填写补偿原因",1.5)}else this.$message.error("请输入补偿金额",1.5);else this.$message.error("请选择问题商品",1.5)},close:function(){var e=this;this.isBtnLoading=!0,o["c"]({id:this.id}).then((function(t){e.$message.success(t.message,1.5),e.isBtnLoading=!1,e.getDetail(),setTimeout((function(){e.$router.push("../index")}),1e3)})).catch((function(){e.isBtnLoading=!1})).finally((function(){e.isBtnLoading=!1}))}}},c=l,u=(a("bd06"),a("829d")),p=Object(u["a"])(c,s,r,!1,null,"3378cbd0",null);t["default"]=p.exports},efd6:function(e,t,a){},f99f:function(e,t,a){"use strict";a("95be")},fecb:function(e,t,a){"use strict";a.r(t);a("aa8b");var s=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"订单状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["stateValue",{initialValue:e.stateValue}],expression:"['stateValue', { initialValue: stateValue }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OrderSourceEnum.data,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"支付状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["payStatus",{initialValue:-1}],expression:"['payStatus', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:10}},[e._v("未付款")]),t("a-select-option",{attrs:{value:20}},[e._v("已付款")])],1)],1),t("a-form-item",{attrs:{label:"配送方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["delivery_type",{initialValue:-1}],expression:"['delivery_type', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.DeliveryTypeEnum.data,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"发货状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["delivery_status",{initialValue:-1}],expression:"['delivery_status', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),t("a-select-option",{attrs:{value:10}},[e._v("待发货")]),t("a-select-option",{attrs:{value:20}},[e._v("已发货")])],1)],1),t("a-form-item",{attrs:{label:"订单编号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNo"],expression:"['orderNo']"}],staticClass:"inputW150",attrs:{placeholder:"请输入订单编号"}})],1),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expend,expression:"expend"}],staticClass:"expendPart"},[t("a-form-item",{attrs:{label:"支付方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["payType",{initialValue:-1}],expression:"['payType', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.PayTypeEnum.data,(function(a,s){return t("a-select-option",{key:s,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"商品名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["goodsName"],expression:"['goodsName']"}],staticClass:"inputW150",attrs:{placeholder:"请输入商品名称"}})],1),t("a-form-item",{attrs:{label:"收件人信息"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["addressKw"],expression:"['addressKw']"}],staticClass:"inputW150",attrs:{placeholder:"收件人姓名/手机号"}})],1),t("a-form-item",{attrs:{label:"用户信息"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["kw"],expression:"['kw']"}],staticClass:"inputW150",attrs:{placeholder:"用户昵称/手机号码"}})],1),t("a-form-item",{attrs:{label:"门店名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["shopName"],expression:"['shopName']"}],staticClass:"inputW150",attrs:{placeholder:"请输入门店名称"}})],1),t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],staticClass:"inputW375",attrs:{"show-time":!0,format:"YYYY-MM-DD HH:mm:ss"}})],1),t("a-form-item",{attrs:{label:"付款时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenPayTime"],expression:"['betweenPayTime']"}],staticClass:"inputW375",attrs:{"show-time":!0,format:"YYYY-MM-DD HH:mm:ss"}})],1),t("a-form-item",{attrs:{label:"完成时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenReceiptTime"],expression:"['betweenReceiptTime']"}],staticClass:"inputW375",attrs:{"show-time":!0,format:"YYYY-MM-DD HH:mm:ss"}})],1),t("a-form-item",{attrs:{label:"快递单号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["expressNo"],expression:"['expressNo']"}],staticClass:"inputW150",attrs:{placeholder:"请输入快递单号"}})],1),t("a-form-item",{attrs:{label:"微信流水号"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["transactionId"],expression:"['transactionId']"}],staticClass:"inputW150",attrs:{placeholder:"请输入微信流水号"}})],1)],1),t("div",{staticClass:"submit_box"},[t("a-row",[t("a-button",{staticClass:"search-btn",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),t("a-button",{staticClass:"search-btn",on:{click:e.handleReset}},[e._v("重置")]),t("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.exportData}},[e._v("导出")]),t("a-button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:function(t){e.expend=!e.expend}}},[e._v(e._s(e.expend?"收起全部搜索":"展开全部搜索"))])],1)],1)],1)],1)],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"clant-table-thead"},[t("tr",[t("th",{staticClass:"width_60"},[t("a-checkbox",{attrs:{checked:e.checkAll},on:{change:e.onCheckAllChange}})],1),e._l(e.columns,(function(a,s){return t("th",{key:s,style:{minWidth:a.width+"px",width:a.w?a.width+"px":"",padding:a.pad?"12px 0":"12px"}},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])}))],2)]),t("tbody",{staticClass:"ant-table-thead"},[e._l(e.orderList.data,(function(a,s){return[t("tr",{key:s},[t("td",{staticClass:"width_60"},[t("a-checkbox",{attrs:{checked:a.checked},on:{change:function(t){return e.onCheckBox(a)}}})],1),t("td",{staticClass:"width_60"},[t("p",[e._v(e._s(a.order_id))])]),t("td",{staticClass:"width_110 textWrap"},[t("router-link",{attrs:{target:"_blank",to:{path:"/order/detail",query:{orderId:a.order_id}}}},[e._v(e._s(a.order_no))])],1),t("td",{staticClass:"goods_name width_180"},e._l(a.goods_list,(function(s,r){return t("div",{key:r,staticClass:"goods_name_info"},e._l(s.goods,(function(i,o){return t("div",{key:o,staticClass:"imgBox name",class:{last:r==a.goods_list.length-1&&o==s.goods.length-1}},[t("div",[t("p",{staticClass:"textSpill3"},[e._v(e._s(i.goods_name))]),1==i.frozen_status?t("p",{staticClass:"frozen_status"},[e._v("冻结状态:已冻结")]):e._e()])])})),0)})),0),t("td",{staticClass:"goods_name"},e._l(a.goods_list,(function(s,r){return t("div",{key:r,staticClass:"goods_name_info"},e._l(s.goods,(function(i,o){return t("div",{key:o,staticClass:"imgBox",class:{last:r==a.goods_list.length-1&&o==s.goods.length-1}},[20==i.spec_type?t("p",[e._v(" "+e._s(i.goods_props?i.goods_props[0].value.name:"--")+" ")]):t("p",[e._v(e._s(i.specs||"--"))])])})),0)})),0),t("td",{staticClass:"goods_name width_60"},e._l(a.goods_list,(function(s,r){return t("div",{key:r,staticClass:"goods_name_info"},e._l(s.goods,(function(i,o){return t("div",{key:o,staticClass:"imgBox",class:{last:r==a.goods_list.length-1&&o==s.goods.length-1}},[t("p",[e._v(e._s(i.total_num))])])})),0)})),0),t("td",[t("p",[e._v("¥"+e._s(a.total_price))])]),t("td",[t("p",[e._v("¥"+e._s(a.pay_price))])]),t("td",[a.address&&a.address.name?t("div",[e._v(e._s(a.address.name))]):e._e(),a.phone&&a.address.phone?t("div",[e._v(e._s(a.address.phone))]):e._e()]),t("td",[a.user&&a.user.nick_name?t("p",{staticClass:"bule",on:{click:function(t){return e.goToUserInfo(a)}}},[e._v(" "+e._s(a.user.nick_name)+" ")]):e._e()]),t("td",[t("p",[e._v(e._s(10==a.delivery_type?"普通配送":"门店自提"))])]),t("td",[10==a.pay_status?t("p",[e._v("待付款")]):e._e(),20==a.pay_status?t("p",[e._v("已付款")]):e._e()]),t("td",[20==a.pay_status&&10==a.delivery_status?t("span",[e._v("待发货")]):20==a.pay_status&&20==a.delivery_status?t("span",[e._v("已发货")]):t("span",[e._v("--")])]),t("td",{staticClass:"width_120"},[t("span",[e._v(e._s({11:"待支付",12:"已付款待发货",13:"已付款待收货",20:"已取消",30:"已完成",40:"已关闭"}[a.state_value]))])]),t("td",{staticClass:"create_time width_120"},[t("span",{domProps:{innerHTML:e._s(e.$options.filters.splitTime(a.create_time))}})]),t("td",[t("div",{staticClass:"actions"},[t("div",{staticClass:"btn flex-c",on:{click:function(t){return e.showModal(a)}}},[e._v("填写备注")])])])])]}))],2)])])])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}}),e.orderList.total>15?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total,"show-total":function(e){return"总共 ".concat(e," 条订单数据")}},on:{change:e.onChangePage}})],1):e._e(),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}}),t("a-modal",{attrs:{title:"备注",footer:null},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[[t("a-checkbox-group",{attrs:{options:e.plainOptions,value:e.colorCheckArr},on:{change:e.onChange}})],t("a-textarea",{staticClass:"remark_textarea",model:{value:e.textarea,callback:function(t){e.textarea=t},expression:"textarea"}}),e.textarea.length>0?t("div",{staticClass:"num"},[e._v(e._s(e.textarea.length))]):e._e(),t("div",{staticClass:"remark_btn"},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v("保存")])],1)],2),t("a-modal",{attrs:{title:"冻结订单",visible:e.freezeVisible},on:{cancel:e.freezeCancel,ok:e.freezeOk}},[t("p",[e._v("冻结后,该订单售后入口暂不关闭,佣金暂不结算")])])],1)],1)},r=[],i=a("3032"),o=a("753f"),n=(a("5d10"),a("9033")),d=(a("9f29"),a("0528"),a("b505"),a("0827"),a("a2bf"),a("ca00")),l=a("3a10"),c=a("ab09"),u=a("4a95"),p=a("ac82"),_=[{title:"序号",align:"center",width:"60",w:"60"},{title:"订单编号",align:"center",width:"110"},{title:"商品信息",align:"center",width:"180",pad:!0},{title:"商品规格",dataIndex:"user",pad:!0},{title:"数量",dataIndex:"user",pad:!0,width:"60",w:"60"},{title:"订单总额",dataIndex:"shop_name"},{title:"实付金额",dataIndex:"staff_user_name"},{title:"收件人信息",dataIndex:"pay_type"},{title:"买家信息",dataIndex:"delivery_type"},{title:"配送方式",dataIndex:"status"},{title:"支付状态",dataIndex:"user"},{title:"发货状态",dataIndex:"user"},{title:"订单状态",dataIndex:"user",width:"120"},{title:"下单时间",dataIndex:"user",width:"120"},{title:"操作",dataIndex:"action"}],m=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30}],f=[{label:"红色",value:"1",background:"#E02727"},{label:"黄色",value:"2",background:"#EF9825"},{label:"绿色",value:"3",background:"#57C972"},{label:"蓝色",value:"4",background:"#3DB7D3"},{label:"紫色",value:"5",background:"#A34ADD"}],h={name:"Index",components:{GoodsItem:c["a"],UserItem:c["c"],DeliveryForm:p["b"],CancelForm:p["a"]},data:function(){return{dataType:this.getDataType(),searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:_,page:1,orderList:{data:[],total:0,per_page:10},item:{},colorArr:[],visible:!1,colorCheckArr:[],textarea:"",stateValue:-1,freezeVisible:!1,expend:!1,checkAll:!1,checkedList:[]}},beforeCreate:function(){Object(d["a"])(this,{inArray:d["e"],DeliveryStatusEnum:u["a"],DeliveryTypeEnum:u["b"],OrderSourceEnum:u["c"],OrderStatusEnum:u["d"],PayStatusEnum:u["e"],PayTypeEnum:u["f"],ReceiptStatusEnum:u["g"],SearchTypeEnum:m,plainOptions:f,simpleImage:n["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init()},watch:{$route:function(){this.init()}},methods:{init:function(){var e=this;if(this.dataType=this.getDataType(),this.searchForm.resetFields(),this.queryParam={},this.$route.query.providerId&&(this.queryParam.providerId=this.$route.query.providerId),this.$route.query.userId&&(this.queryParam.userId=this.$route.query.userId),this.$route.query.shop_id&&(this.queryParam.shop_id=this.$route.query.shop_id),this.$route.query.stateValue){this.queryParam.stateValue=this.$route.query.stateValue;var t=u["c"].data;t.forEach((function(t){t.value==e.$route.query.stateValue&&(e.stateValue=t.name)}))}this.handleRefresh(!0)},getDataType:function(){return this.$route.path.split("/")[3]},getList:function(){var e=this,t=this.queryParam,a=this.page;return this.isLoading=!0,l["d"](Object(o["a"])(Object(o["a"])({},t),{},{page:a})).then((function(t){e.orderList=t.data.list})).finally((function(){e.isLoading=!1}))},renderOrderStatusColor:function(e){var t=this.OrderStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.CANCELLED.value,"red"),t.APPLY_CANCEL.value,"red"),t.COMPLETED.value,"green");return a[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},onChangePage:function(e){this.page=e,this.handleRefresh()},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleCancel:function(e){this.$refs.CancelForm.show(e)},toDetail:function(e){this.$router.push({path:"/order/detail",query:{orderId:e.order_id}})},showModal:function(e){this.visible=!0,this.item=e,this.textarea=e.color_remark;var t=e.color.split(",");t=t.filter((function(e){return e})),this.colorCheckArr=t},handleOk:function(){var e=this,t=this;if(0!=this.colorCheckArr.length){var a=this.colorCheckArr.join(",")||"",s={order_id:this.item.order_id,color:a,color_remark:this.textarea};return this.isLoading=!0,l["l"](Object(o["a"])({},s)).then((function(a){e.$message.success("备注成功",1.5),e.getList(),setTimeout((function(){t.visible=!1,t.item={},t.colorCheckArr=[],t.textarea=""}),400)})).finally((function(){e.isLoading=!1}))}this.$message.error("请先选择颜色",2)},onChange:function(e){this.colorCheckArr=e},freezeOrder:function(e){this.freezeVisible=!0},freezeOk:function(e){this.freezeVisible=!1},freezeCancel:function(e){this.freezeVisible=!1},showAll:function(){this.expend=!0},goToUserInfo:function(e){this.$router.push({path:"/user/grade/index",query:{user_id:e.user_id}})},onCheckAllChange:function(){var e=this;this.checkedList=[],this.checkAll?(this.checkAll=!1,this.orderList.data.forEach((function(e){e.checked=!1}))):(this.checkAll=!0,this.orderList.data.forEach((function(t){t.checked=!0,e.checkedList.push(t.order_id)})))},onCheckBox:function(e){var t=this;if(e.checked=!e.checked,e.checked)this.orderList.data.forEach((function(a){e==a&&t.checkedList.push(e.order_id)}));else{var a=this.checkedList.indexOf(e.order_id);this.checkedList.splice(a,1)}this.$forceUpdate(),this.orderList.data.length==this.checkedList.length?this.checkAll=!0:this.checkAll=!1},exportData:function(){var e=this;!this.checkedList||this.checkedList.length<=0?this.$message.error("请勾选需要导出的订单",2):l["e"]({order_ids:this.checkedList}).then((function(t){var a=document.createElement("a");a.href=t.data.file,a.setAttribute("download",t.data.filename),a.click(),a=null,e.$message.success(t.message)})).finally((function(){e.isLoading=!1}))}}},v=h,g=(a("c1ac"),a("829d")),b=Object(g["a"])(v,s,r,!1,null,"15b69821",null);t["default"]=b.exports}}]);
|