(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e1d7bcd6","chunk-1a1dc154","chunk-2d0da01e"],{2829:function(e,t,o){"use strict";o("33a0")},"33a0":function(e,t,o){},"6a85":function(e,t,o){"use strict";o.r(t),o.d(t,"listMixin",(function(){return a}));const a={data(){return{total:0}},methods:{eleTableDone(e,t,o){this.total=o},reload(){this.$refs.table.reload()},search(){this.$refs.table.reload({page:1})},parseData(e){return console.log("res",e),console.log("res.data.data",e.data.data.length),{code:1==e.code?0:e.code,data:e.data.data,count:e.data.total,msg:e.msg}},handleDelete({id:e}){this.$post(this.deleteUrl,{id:e},!0).then(()=>{this.reload()})},handleDetail(e){this.$refs.addedit.openDetail(e)},reset(){this.whereFormData=JSON.parse(JSON.stringify(this.defaultWhere)),this.$nextTick(()=>{this.reload()})}},created(){this.whereFormData=JSON.parse(JSON.stringify(this.defaultWhere))}}},"87a4":function(e,t,o){"use strict";o.r(t);var a=o("7a23");const c=Object(a["withScopeId"])("data-v-bc2d0708");Object(a["pushScopeId"])("data-v-bc2d0708");const l={style:{margin:"0 30px"}},r={style:{display:"flex"}},d={style:{"font-size":"17px","font-weight":"700"}},n=Object(a["createTextVNode"])("自有商品"),s=Object(a["createTextVNode"])("172商品"),i=Object(a["createTextVNode"])("敢探号商品"),b=Object(a["createTextVNode"])("无效订单"),m={key:0},O=Object(a["createVNode"])("div",null,"身份证人脸照",-1),u=Object(a["createVNode"])("div",null,"身份证国徽照",-1),j=Object(a["createVNode"])("div",null,"本人手持身份证照",-1);Object(a["popScopeId"])();const p=c((e,t,o,p,_,f)=>{const N=Object(a["resolveComponent"])("a-descriptions"),V=Object(a["resolveComponent"])("a-image"),k=Object(a["resolveComponent"])("a-tag"),h=Object(a["resolveComponent"])("a-space"),v=Object(a["resolveComponent"])("a-col"),y=Object(a["resolveComponent"])("a-row"),g=Object(a["resolveComponent"])("a-form-item"),x=Object(a["resolveComponent"])("a-badge"),C=Object(a["resolveComponent"])("InfoCircleOutlined"),S=Object(a["resolveComponent"])("a-tooltip"),w=Object(a["resolveComponent"])("UserOutlined"),B=Object(a["resolveComponent"])("a-avatar"),D=Object(a["resolveComponent"])("a-table"),I=Object(a["resolveComponent"])("a-form"),T=Object(a["resolveComponent"])("a-drawer");return Object(a["openBlock"])(),Object(a["createBlock"])(T,{title:"订单详情",visible:_.modalShow,closable:"",keyboard:"",width:780,onClose:t[1]||(t[1]=e=>_.modalShow=!1)},{default:c(()=>[Object(a["createVNode"])("div",l,[Object(a["createVNode"])(I,{ref:"form",model:_.form,"wrapper-col":{md:{span:18},sm:{span:24}}},{default:c(()=>[Object(a["createVNode"])(N,{title:"商品信息"}),Object(a["createVNode"])(y,{style:{margin:"20px 0"}},{default:c(()=>[Object(a["createVNode"])(v,{span:24},{default:c(()=>[Object(a["createVNode"])("div",r,[Object(a["createVNode"])(V,{src:_.form.orderdetail.cover,width:"80px"},null,8,["src"]),Object(a["createVNode"])(h,{direction:"vertical",style:{"margin-left":"15px"}},{default:c(()=>[Object(a["createVNode"])("div",d,"["+Object(a["toDisplayString"])(_.form.goods_id)+"]"+Object(a["toDisplayString"])(_.form.orderdetail.name||""),1),Object(a["createVNode"])(h,null,{default:c(()=>["platform"==_.form.goods_type?(Object(a["openBlock"])(),Object(a["createBlock"])(k,{key:0,color:"blue"},{default:c(()=>[n]),_:1})):Object(a["createCommentVNode"])("",!0),"172"==_.form.goods_type?(Object(a["openBlock"])(),Object(a["createBlock"])(k,{key:1,color:"pink"},{default:c(()=>[s]),_:1})):Object(a["createCommentVNode"])("",!0),"91"==_.form.goods_type?(Object(a["openBlock"])(),Object(a["createBlock"])(k,{key:2,color:"green"},{default:c(()=>[i]),_:1})):Object(a["createCommentVNode"])("",!0),_.form.orderdetail.product_id?(Object(a["openBlock"])(),Object(a["createBlock"])(k,{key:3},{default:c(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(_.form.orderdetail.product_id),1)]),_:1})):Object(a["createCommentVNode"])("",!0)]),_:1})]),_:1})])]),_:1})]),_:1}),Object(a["createVNode"])(N,{title:"订单信息"}),Object(a["createVNode"])(y,null,{default:c(()=>[Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"订单编号"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.form.order_no),1)]),_:1})]),_:1}),Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"订单状态"},{default:c(()=>[Object(a["createVNode"])(h,null,{default:c(()=>["10"==_.form.status?(Object(a["openBlock"])(),Object(a["createBlock"])(x,{key:0,status:"warning",text:"待审核"})):Object(a["createCommentVNode"])("",!0),"11"==_.form.status?(Object(a["openBlock"])(),Object(a["createBlock"])(x,{key:1,status:"processing",text:"待收货"})):Object(a["createCommentVNode"])("",!0),"12"==_.form.status?(Object(a["openBlock"])(),Object(a["createBlock"])(x,{key:2,status:"processing",text:"待激活"})):Object(a["createCommentVNode"])("",!0),"13"==_.form.status?(Object(a["openBlock"])(),Object(a["createBlock"])(x,{key:3,status:"default",text:"已完成"})):Object(a["createCommentVNode"])("",!0),"14"==_.form.status?(Object(a["openBlock"])(),Object(a["createBlock"])(x,{key:4,status:"default",text:"已失效"})):Object(a["createCommentVNode"])("",!0),"14"==_.form.status?(Object(a["openBlock"])(),Object(a["createBlock"])(S,{key:5,class:"ele-text-primary"},{title:c(()=>[b]),default:c(()=>[Object(a["createVNode"])(C)]),_:1})):Object(a["createCommentVNode"])("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),Object(a["createVNode"])(y,null,{default:c(()=>[Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"下单用户"},{default:c(()=>[Object(a["createVNode"])(h,null,{default:c(()=>{var e;return[Object(a["createVNode"])(B,{src:null===(e=_.form.user)||void 0===e?void 0:e.avatar},{icon:c(()=>[Object(a["createVNode"])(w)]),_:1},8,["src"]),Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.form.user.name||"微信用户"),1)]}),_:1})]),_:1})]),_:1}),Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"手机号码"},{default:c(()=>{var e;return[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])((null===(e=_.form.user)||void 0===e?void 0:e.mobile)||"- -"),1)]}),_:1})]),_:1})]),_:1}),"platform"!=_.form.goods_type?(Object(a["openBlock"])(),Object(a["createBlock"])(y,{key:0},{default:c(()=>[Object(a["createVNode"])(v,{span:24},{default:c(()=>["172"==_.form.goods_type?(Object(a["openBlock"])(),Object(a["createBlock"])(g,{key:0,label:"三方状态"},{default:c(()=>[Object(a["createVNode"])(k,{color:_.form.color},{default:c(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(_.form.sub_status_text),1)]),_:1},8,["color"]),"172"==_.form.goods_type?(Object(a["openBlock"])(),Object(a["createBlock"])("span",m,Object(a["toDisplayString"])(_.sub_170_status[_.form.sub_status]),1)):Object(a["createCommentVNode"])("",!0)]),_:1})):Object(a["createCommentVNode"])("",!0)]),_:1})]),_:1})):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(y,null,{default:c(()=>[Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"下单时间"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.toDateString(_.form.createtime)),1)]),_:1})]),_:1}),Object(a["createVNode"])(v,{span:12},{default:c(()=>[_.form.success_time?(Object(a["openBlock"])(),Object(a["createBlock"])(g,{key:0,label:"完成时间"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.toDateString(_.form.success_time)||"- -"),1)]),_:1})):Object(a["createCommentVNode"])("",!0),_.form.send_time?(Object(a["openBlock"])(),Object(a["createBlock"])(g,{key:1,label:"发货时间"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.toDateString(_.form.send_time)||"- -"),1)]),_:1})):Object(a["createCommentVNode"])("",!0),_.form.commission_time?(Object(a["openBlock"])(),Object(a["createBlock"])(g,{key:2,label:"分佣时间"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.toDateString(_.form.commission_time)||"- -"),1)]),_:1})):Object(a["createCommentVNode"])("",!0),_.form.cancel_time?(Object(a["openBlock"])(),Object(a["createBlock"])(g,{key:3,label:"取消时间"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.toDateString(_.form.cancel_time)||"- -"),1)]),_:1})):Object(a["createCommentVNode"])("",!0)]),_:1})]),_:1}),Object(a["createVNode"])(N,{title:"表单信息"}),Object(a["createVNode"])(y,null,{default:c(()=>[Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"收货人"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.form.orderdetail.receiver_name||"- -"),1)]),_:1})]),_:1}),Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"联系电话"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.form.orderdetail.receiver_phone||"- -"),1)]),_:1})]),_:1}),Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"收货地址"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(f.mergeArea(_.form.orderdetail)||"- -"),1)]),_:1})]),_:1}),Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"详细地址"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.form.orderdetail.receiver_address||"- -"),1)]),_:1})]),_:1}),Object(a["createVNode"])(v,{span:12},{default:c(()=>[Object(a["createVNode"])(g,{label:"身份证号"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(_.form.orderdetail.receiver_id_card||"- -"),1)]),_:1})]),_:1}),_.form.orderdetail.pic_face||_.form.orderdetail.pic_back||_.form.orderdetail.pic_hand?(Object(a["openBlock"])(),Object(a["createBlock"])(v,{key:0,span:24},{default:c(()=>[Object(a["createVNode"])(g,{label:"身份证信息"},{default:c(()=>[Object(a["createVNode"])(h,null,{default:c(()=>[_.form.orderdetail.pic_face?(Object(a["openBlock"])(),Object(a["createBlock"])(h,{key:0,direction:"vertical",align:"center"},{default:c(()=>[Object(a["createVNode"])(V,{src:_.form.orderdetail.pic_face,width:"150px",height:"150px"},null,8,["src"]),O]),_:1})):Object(a["createCommentVNode"])("",!0),_.form.orderdetail.pic_back?(Object(a["openBlock"])(),Object(a["createBlock"])(h,{key:1,direction:"vertical",align:"center"},{default:c(()=>[Object(a["createVNode"])(V,{src:_.form.orderdetail.pic_back,width:"150px",height:"150px"},null,8,["src"]),u]),_:1})):Object(a["createCommentVNode"])("",!0),_.form.orderdetail.pic_hand?(Object(a["openBlock"])(),Object(a["createBlock"])(h,{key:2,direction:"vertical",align:"center"},{default:c(()=>[Object(a["createVNode"])(V,{src:_.form.orderdetail.pic_hand,width:"150px",height:"150px"},null,8,["src"]),j]),_:1})):Object(a["createCommentVNode"])("",!0)]),_:1})]),_:1})]),_:1})):Object(a["createCommentVNode"])("",!0)]),_:1}),Object(a["createVNode"])(N,{title:"佣金信息"}),Object(a["createVNode"])(y,null,{default:c(()=>[Object(a["createVNode"])(D,{class:"ele-fluid",dataSource:_.form.commissionList,size:"small",columns:_.columns,pagination:!1,rowKey:"id"},null,8,["dataSource","columns"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["visible"])});var _=o("2c2a"),f=o("edc4"),N=o("1740"),V=o("5502"),k={name:"addEdit",components:{UserOutlined:f["a"],InfoCircleOutlined:N["a"]},computed:{...Object(V["b"])(["userInfo"])},data(){return{toDateString:_["toDateString"],modalShow:!1,loading:!1,form:{},columns:[{title:"用户ID",dataIndex:"id"},{title:"用户昵称",dataIndex:"name"},{title:"等级",dataIndex:"level"},{title:"佣金类型",dataIndex:"type"},{title:"佣金比例",dataIndex:"level"},{title:"金额",dataIndex:"amount"}],sub_170_status:{1001:"待处理:下单成功,我方尚未提交给运营商",1002:"已提运营商:我方已提运营商",1003:"已发货:运营商已发货",1004:"已完成:这个状态可以按照已发货处理,不是所有订单都有这个状态",1005:"已撤单:我方提运营商失败",1006:"审核不通过:运营商审核失败或用户取消订单",1007:"已取消:用户取消订单",1008:"已结算:订单已结算,佣金已到代理账户",1009:"无法结算:未满足结算要求,结算失败"}}},methods:{mergeArea(e){return e?`${e.receiver_province}/${e.receiver_city}/${e.receiver_area}`:""},openDetail(e){let t=Object.assign({},e);t.commissionList=[{id:t.user_id,name:t.user.nickname,type:"自购佣金",level:t.self_level_name,bili:t.self_buy_bili+"%",amount:t.self_commission+"元"}],t.one&&t.commissionList.push({id:t.one?t.one.id:2,name:t.one?t.one.id.nickname:"",type:"1代佣金",level:t.one_level_name,bili:t.one_bili+"%",amount:t.one_commission+"元"}),t.two&&t.commissionList.push({id:t.two?t.two.id:2,name:t.two?t.two.id.nickname:"",type:"2代佣金",level:t.two_level_name,bili:t.two_bili+"%",amount:t.two_commission+"元"}),this.form=t,console.log("=====this.form: ",this.form),this.modalShow=!0},submit(){this.modalShow=!1}}},h=(o("add1"),o("6b0d")),v=o.n(h);const y=v()(k,[["render",p],["__scopeId","data-v-bc2d0708"]]);t["default"]=y},"9dce":function(e,t,o){},add1:function(e,t,o){"use strict";o("9dce")},f0b2:function(e,t,o){"use strict";o.r(t);var a=o("7a23");const c=Object(a["withScopeId"])("data-v-400f6990");Object(a["pushScopeId"])("data-v-400f6990");const l={class:"ele-body ele-body-card"},r=Object(a["createTextVNode"])("全部"),d=Object(a["createTextVNode"])("待审核"),n=Object(a["createTextVNode"])("待收货"),s=Object(a["createTextVNode"])("待激活"),i=Object(a["createTextVNode"])("已完成"),b=Object(a["createTextVNode"])("已失效"),m=Object(a["createTextVNode"])("查询"),O=Object(a["createTextVNode"])("重置"),u=Object(a["createTextVNode"])("数据共 "),j={class:"ele-text-primary"},p=Object(a["createTextVNode"])(" 条"),_=Object(a["createVNode"])("em",null,null,-1),f={class:"goods-info-wrap"},N={class:"good-name-wrap"},V={class:"goods-name ele-elip"},k={class:"ele-text-delete ele-text-placeholder"},h={key:0,style:{"font-size":"13px"}},v={key:0},y={key:1},g={key:2},x={key:0},C={key:1,class:"ele-text-warning"},S=Object(a["createTextVNode"])("详情"),w=Object(a["createTextVNode"])("确认支付"),B=Object(a["createTextVNode"])("取消订单"),D=Object(a["createTextVNode"])("结算订单"),I=Object(a["createTextVNode"])("设置佣金"),T=Object(a["createTextVNode"])(" 修改状态 "),$=Object(a["createVNode"])("span",null,"佣金金额:",-1),F=Object(a["createVNode"])("span",null,"佣金金额:",-1);Object(a["popScopeId"])();const R=c((e,t,o,R,z,J)=>{const M=Object(a["resolveComponent"])("a-input"),q=Object(a["resolveComponent"])("a-form-item"),U=Object(a["resolveComponent"])("a-col"),L=Object(a["resolveComponent"])("a-select-option"),P=Object(a["resolveComponent"])("a-select"),E=Object(a["resolveComponent"])("a-row"),A=Object(a["resolveComponent"])("a-button"),W=Object(a["resolveComponent"])("a-space"),X=Object(a["resolveComponent"])("a-form"),K=Object(a["resolveComponent"])("a-card"),G=Object(a["resolveComponent"])("a-alert"),H=Object(a["resolveComponent"])("a-image"),Q=Object(a["resolveComponent"])("a-badge"),Y=Object(a["resolveComponent"])("InfoCircleFilled"),Z=Object(a["resolveComponent"])("a-popover"),ee=Object(a["resolveComponent"])("a-avatar"),te=Object(a["resolveComponent"])("a-divider"),oe=Object(a["resolveComponent"])("a-popconfirm"),ae=Object(a["resolveComponent"])("a-menu-item"),ce=Object(a["resolveComponent"])("a-menu"),le=Object(a["resolveComponent"])("a-dropdown"),re=Object(a["resolveComponent"])("DownOutlined"),de=Object(a["resolveComponent"])("ele-pro-table"),ne=Object(a["resolveComponent"])("a-input-number"),se=Object(a["resolveComponent"])("a-modal"),ie=Object(a["resolveComponent"])("add-edit");return Object(a["openBlock"])(),Object(a["createBlock"])("div",l,[Object(a["createVNode"])(K,{bordered:!1,"body-style":{paddingBottom:0}},{default:c(()=>[Object(a["createVNode"])(X,{model:z.whereFormData,"label-col":{md:{span:6},sm:{span:24}},"wrapper-col":{md:{span:18},sm:{span:24}}},{default:c(()=>[Object(a["createVNode"])(E,null,{default:c(()=>[Object(a["createVNode"])(U,{lg:8,md:12,sm:24,xs:24},{default:c(()=>[Object(a["createVNode"])(q,{label:"订单编号:"},{default:c(()=>[Object(a["createVNode"])(M,{value:z.whereFormData.order_no,"onUpdate:value":t[1]||(t[1]=e=>z.whereFormData.order_no=e),onPressEnter:J.search,placeholder:"请输入订单编号","allow-clear":""},null,8,["value","onPressEnter"])]),_:1})]),_:1}),Object(a["createVNode"])(U,{lg:5,md:12,sm:24,xs:24},{default:c(()=>[Object(a["createVNode"])(q,{label:"订单状态:"},{default:c(()=>[Object(a["createVNode"])(P,{value:z.whereFormData.status,"onUpdate:value":t[2]||(t[2]=e=>z.whereFormData.status=e),placeholder:"请选择"},{default:c(()=>[Object(a["createVNode"])(L,{key:""},{default:c(()=>[r]),_:1}),Object(a["createVNode"])(L,{key:"10"},{default:c(()=>[d]),_:1}),Object(a["createVNode"])(L,{key:"11"},{default:c(()=>[n]),_:1}),Object(a["createVNode"])(L,{key:"12"},{default:c(()=>[s]),_:1}),Object(a["createVNode"])(L,{key:"13"},{default:c(()=>[i]),_:1}),Object(a["createVNode"])(L,{key:"14"},{default:c(()=>[b]),_:1})]),_:1},8,["value"])]),_:1})]),_:1})]),_:1}),Object(a["createVNode"])(E,null,{default:c(()=>[Object(a["createVNode"])(U,{lg:4,md:12,sm:24,xs:24},{default:c(()=>[Object(a["createVNode"])(q,{class:"ele-text-right","wrapper-col":{span:24}},{default:c(()=>[Object(a["createVNode"])(W,null,{default:c(()=>[Object(a["createVNode"])(A,{type:"primary",onClick:J.search},{default:c(()=>[m]),_:1},8,["onClick"]),Object(a["createVNode"])(A,{onClick:J.reset},{default:c(()=>[O]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),Object(a["createVNode"])(K,{bordered:!1},{default:c(()=>[Object(a["createVNode"])(G,{type:"info","show-icon":"",style:{"margin-bottom":"16px"}},{message:c(()=>[Object(a["createVNode"])("span",null,[u,Object(a["createVNode"])("b",j,Object(a["toDisplayString"])(z.total),1),p,_])]),_:1}),Object(a["createVNode"])(de,{title:"订单列表",where:z.whereFormData,ref:"table",parseData:e.parseData,"row-key":"id",onDone:J.eleTableDone,datasource:z.url,columns:z.columns,method:"POST"},{line:c(({record:e})=>[Object(a["createVNode"])("div",f,[Object(a["createVNode"])(H,{src:e.orderdetail.route_thum_cover},null,8,["src"]),Object(a["createVNode"])("div",N,[Object(a["createVNode"])("div",V,Object(a["toDisplayString"])(e.orderdetail.route_name),1),Object(a["createVNode"])(W,{class:"goods-price"},{default:c(()=>[Object(a["createVNode"])("span",null,Object(a["toDisplayString"])(e.actual_amount)+"元",1),Object(a["createVNode"])("span",k,Object(a["toDisplayString"])(e.original_amount)+"元",1)]),_:2},1024)])])]),order_no:c(({record:t})=>[Object(a["createVNode"])(W,{direction:"vertical"},{default:c(()=>["owner"==e.userInfo.adminable_type?(Object(a["openBlock"])(),Object(a["createBlock"])("div",h,"平台名称:"+Object(a["toDisplayString"])(t.saas.platform_name),1)):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])("div",null,Object(a["toDisplayString"])(t.order_no),1)]),_:2},1024)]),status:c(({record:e})=>["10"==e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(Q,{key:0,status:"warning",text:"待审核"})):Object(a["createCommentVNode"])("",!0),"11"==e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(Q,{key:1,status:"processing",text:"待收货"})):Object(a["createCommentVNode"])("",!0),"12"==e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(Q,{key:2,status:"processing",text:"待激活"})):Object(a["createCommentVNode"])("",!0),"13"==e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(Q,{key:3,status:"default",text:"已完成"})):Object(a["createCommentVNode"])("",!0),"14"==e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(Q,{key:4,status:"default",text:"已失效"})):Object(a["createCommentVNode"])("",!0),"141"==e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(Q,{key:5,status:"default",text:"已失效"})):Object(a["createCommentVNode"])("",!0),"131"==e.status||"124"==e.status||"1022"==e.status?(Object(a["openBlock"])(),Object(a["createBlock"])(Z,{key:6},{content:c(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.reasons||"未知"),1)]),default:c(()=>[Object(a["createVNode"])(Y,{style:{"margin-left":"5px"},class:"ele-text-warning"})]),_:2},1024)):Object(a["createCommentVNode"])("",!0)]),time_info:c(({record:e})=>[Object(a["createVNode"])("div",null,"下单:"+Object(a["toDisplayString"])(z.toDateString(e.createtime)),1),"13"!=e.status&&"14"!=e.status?(Object(a["openBlock"])(),Object(a["createBlock"])("div",v,"完成:"+Object(a["toDisplayString"])(e.success_time?z.toDateString(e.success_time,"yyyy-MM-dd"):"- -"),1)):(Object(a["openBlock"])(),Object(a["createBlock"])("div",y,"失效:"+Object(a["toDisplayString"])(e.cancel_time?z.toDateString(e.cancel_time,"yyyy-MM-dd"):"- -"),1)),e.commission_time?(Object(a["openBlock"])(),Object(a["createBlock"])("div",g,"结算:"+Object(a["toDisplayString"])(z.toDateString(e.commission_time)),1)):Object(a["createCommentVNode"])("",!0)]),commission:c(({record:e})=>[Number(e.total_commission)>0||"1"==e.is_settled?(Object(a["openBlock"])(),Object(a["createBlock"])("div",x,[Object(a["createVNode"])("div",null,"总佣金:"+Object(a["toDisplayString"])(e.total_commission)+" 元",1),Object(a["createVNode"])("div",null,"代理人:"+Object(a["toDisplayString"])(e.agent_commission)+" 元 ("+Object(a["toDisplayString"])(e.agent_bili)+"%)",1)])):(Object(a["openBlock"])(),Object(a["createBlock"])("div",C,Object(a["toDisplayString"])(" - - ")))]),user:c(({record:e})=>[Object(a["createVNode"])(W,{direction:"vertical"},{default:c(()=>[Object(a["createVNode"])(W,null,{default:c(()=>[Object(a["createVNode"])(ee,{src:e.user.avatar},null,8,["src"]),Object(a["createVNode"])("div",null,Object(a["toDisplayString"])(e.user.name),1)]),_:2},1024),Object(a["createVNode"])("div",null,Object(a["toDisplayString"])(e.user.mobile),1)]),_:2},1024)]),action:c(({record:o})=>[Object(a["createVNode"])(A,{size:"small",type:"link",onClick:e=>J.handleDetail(o)},{default:c(()=>[S]),_:2},1032,["onClick"]),"saas"==e.userInfo.adminable_type?(Object(a["openBlock"])(),Object(a["createBlock"])(te,{key:0,type:"vertical"})):Object(a["createCommentVNode"])("",!0),"saas"==e.userInfo.adminable_type?(Object(a["openBlock"])(),Object(a["createBlock"])(le,{key:1},{overlay:c(()=>[Object(a["createVNode"])(ce,null,{default:c(()=>[Object(a["createVNode"])(ae,{disabled:"101"!==o.status},{default:c(()=>[Object(a["createVNode"])(oe,{title:"确认此订单已支付?","ok-text":"确定","cancel-text":"取消",onConfirm:e=>J.handlePayment(o.order_no)},{default:c(()=>[Object(a["createVNode"])(A,{size:"small",type:"link",disabled:"101"!==o.status},{default:c(()=>[w]),_:2},1032,["disabled"])]),_:2},1032,["onConfirm"])]),_:2},1032,["disabled"]),["11","111"].includes(o.status)?(Object(a["openBlock"])(),Object(a["createBlock"])(ae,{key:0},{default:c(()=>[Object(a["createVNode"])(oe,{title:"确定取消此订单?","ok-text":"确定","cancel-text":"取消",onConfirm:e=>J.handleCancel(o.order_no)},{default:c(()=>[Object(a["createVNode"])(A,{size:"small",type:"link"},{default:c(()=>[B]),_:1})]),_:2},1032,["onConfirm"])]),_:2},1024)):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(ae,{disabled:"12"!==o.status||"1"==o.is_settled,onClick:e=>(z.current_order_no=o.order_no,z.total_commission=o.total_commission||0,z.settleShow=!0)},{default:c(()=>[Object(a["createVNode"])(A,{size:"small",type:"link",disabled:"12"!==o.status||"1"==o.is_settled},{default:c(()=>[D]),_:2},1032,["disabled"])]),_:2},1032,["disabled","onClick"]),Object(a["createVNode"])(ae,{disabled:"1"==o.is_settled||"12"==o.status,onClick:e=>(z.current_order_no=o.order_no,z.total_commission=0,z.commissionShow=!0)},{default:c(()=>[Object(a["createVNode"])(A,{size:"small",type:"link",disabled:"1"==o.is_settled||"12"==o.status},{default:c(()=>[I]),_:2},1032,["disabled"])]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),default:c(()=>[Object(a["createVNode"])("a",{class:"ant-dropdown-link",onClick:t[3]||(t[3]=Object(a["withModifiers"])(()=>{},["prevent"]))}," 订单操作 ")]),_:2},1024)):Object(a["createCommentVNode"])("",!0),"saas"==e.userInfo.adminable_type?(Object(a["openBlock"])(),Object(a["createBlock"])(te,{key:2,type:"vertical"})):Object(a["createCommentVNode"])("",!0),"saas"==e.userInfo.adminable_type?(Object(a["openBlock"])(),Object(a["createBlock"])(le,{key:3},{overlay:c(()=>[Object(a["createVNode"])(ce,null,{default:c(()=>[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(z.actionBtn,(e,t)=>(Object(a["openBlock"])(),Object(a["createBlock"])(ae,{disabled:!e.activeStatus.includes(o.status),key:t},{default:c(()=>[Object(a["createVNode"])(oe,{title:e.question,"ok-text":"确定","cancel-text":"取消",onConfirm:t=>J.updateOrderStatus(o,e.targetStatus)},{default:c(()=>[Object(a["createVNode"])(A,{size:"small",type:"link",disabled:!e.activeStatus.includes(o.status)},{default:c(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.title),1)]),_:2},1032,["disabled"])]),_:2},1032,["title","onConfirm"])]),_:2},1032,["disabled"]))),128))]),_:2},1024)]),default:c(()=>[Object(a["createVNode"])("a",{class:"ant-dropdown-link",onClick:t[4]||(t[4]=Object(a["withModifiers"])(()=>{},["prevent"]))},[T,Object(a["createVNode"])(re)])]),_:2},1024)):Object(a["createCommentVNode"])("",!0)]),_:1},8,["where","parseData","onDone","datasource","columns"])]),_:1}),Object(a["createVNode"])(se,{"wrap-class-name":"ele-modal-movable ele-modal-resizable ele-modal-resizable",visible:z.settleShow,closable:!1,title:"结算金额",width:350,onCancel:t[6]||(t[6]=e=>z.settleShow=!1),onOk:J.handleSettle},{default:c(()=>[Object(a["createVNode"])(W,null,{default:c(()=>[$,Object(a["createVNode"])(ne,{value:z.total_commission,"onUpdate:value":t[5]||(t[5]=e=>z.total_commission=e),style:{width:"200px"},min:0,placeholder:"请输入佣金金额"},null,8,["value"])]),_:1})]),_:1},8,["visible","onOk"]),Object(a["createVNode"])(se,{"wrap-class-name":"ele-modal-movable ele-modal-resizable ele-modal-resizable",visible:z.commissionShow,closable:!1,title:"结算佣金",width:350,onCancel:t[8]||(t[8]=e=>z.commissionShow=!1),onOk:J.handleCommission},{default:c(()=>[Object(a["createVNode"])(W,null,{default:c(()=>[F,Object(a["createVNode"])(ne,{value:z.total_commission,"onUpdate:value":t[7]||(t[7]=e=>z.total_commission=e),style:{width:"200px"},min:0,placeholder:"请输入佣金金额"},null,8,["value"])]),_:1})]),_:1},8,["visible","onOk"]),Object(a["createVNode"])(ie,{ref:"addedit",onReload:J.reload},null,8,["onReload"])])});var z=o("6a85"),J=o("2c2a"),M=o("87a4"),q=o("c1df"),U=o.n(q),L=o("35c8"),P=o("cf3f"),E=o("5502");const A={order_no:"",status:"",time_type:"createtime",travel_team_id:"",start_time:"",end_time:"",partner_id:"",agent_id:""};var W={mixins:[z["listMixin"]],components:{addEdit:M["default"],DownOutlined:L["a"],InfoCircleFilled:P["a"]},computed:{...Object(E["b"])(["userInfo"])},data(){return{actionBtn:[{title:"待出行",question:"确定将此订单改为“待出行”?",activeStatus:["111"],disabledStatus:"",targetStatus:"11"},{title:"出行中",question:"确定将此订单改为“出行中”?",activeStatus:["11"],disabledStatus:"",targetStatus:"111"},{title:"审核通过",question:"确定审核通过此订单?",activeStatus:["102"],disabledStatus:"",targetStatus:"11"},{title:"审核拒绝",question:"确定审核拒绝此订单?",activeStatus:["102"],disabledStatus:"",targetStatus:"103"},{title:"中途离团",question:"确定将此订单改为“中途离团”?",activeStatus:["11","111"],disabledStatus:"",targetStatus:"112"},{title:"完成订单",question:"确定完成此订单",activeStatus:["11","111"],disabledStatus:"",targetStatus:"12"}],settleShow:!1,commissionShow:!1,total_commission:0,current_order_no:"",moment:U.a,agentOptions:[],toDateString:J["toDateString"],whereFormData:JSON.parse(JSON.stringify(A)),total:0,url:"/manager/pcOrder/getList",columns:[{title:"订单编号",width:"170px",dataIndex:"order_no",fixed:"left",slots:{customRender:"order_no"}},{title:"关联线路",dataIndex:"line",width:"185px",slots:{customRender:"line"}},{title:"优惠金额",dataIndex:"discount_amount",width:"80px",customRender:({text:e})=>Number(e)>0?Number(e)+"元":"--"},{title:"实付金额",dataIndex:"pay_actual_amount",width:"80px",customRender:({text:e})=>e+"元"},{title:"购买人",dataIndex:"user",width:"130px",slots:{customRender:"user"}},{title:"关联代理",dataIndex:"agent",width:"130px",slots:{customRender:"agent"}},{title:"旅游团",dataIndex:"travel_team_info",width:"150px",ellipsis:!0,slots:{customRender:"travel_team_info"}},{title:"出行城市",dataIndex:"depart_info",width:"120px",slots:{customRender:"depart_info"}},{title:"兑换卡密",width:"130px",dataIndex:"card",customRender:({text:e})=>(null===e||void 0===e?void 0:e.card_no)||"- -"},{title:"佣金信息",dataIndex:"commission",width:"180px",slots:{customRender:"commission"}},{title:"时间信息",dataIndex:"time_info",width:"245px",slots:{customRender:"time_info"}},{title:"订单状态",dataIndex:"status",width:"120px",fixed:"right",slots:{customRender:"status"}},{title:"操作",dataIndex:"action",fixed:"right",slots:{customRender:"action"}}]}},methods:{updateOrderStatus(e,t){let o=e.id,a={id:o,status:t};this.$post("/manager/travelOrder/updateOrderStatus",a).then(e=>{console.log("res",e),this.reload()})},handleDetail(e){this.$refs.addedit.openDetail(e)},handlePayment(e){this.$post("/manager/travelOrder/payOrder",{order_no:e}).then(()=>{this.$message.success("操作成功!"),this.reload()})},handleCancel(e){this.$post("/manager/travelOrder/cancelOrder",{order_no:e}).then(()=>{this.$message.success("操作成功!"),this.reload()})},handleComplete(e){this.$post("/manager/travelOrder/completeOrder",{order_no:e}).then(()=>{this.$message.success("操作成功!"),this.reload()})},handleSettle(){let e={order_no:this.current_order_no,total_commission:this.total_commission};this.$post("/manager/travelOrder/settledOrder",e).then(()=>{this.settleShow=!1,this.$message.success("操作成功!"),this.reload()})},handleCommission(){let e={order_no:this.current_order_no,total_commission:this.total_commission};this.$post("/manager/travelOrder/setCommission",e).then(()=>{this.commissionShow=!1,this.$message.success("操作成功!"),this.reload()})},reload(){this.$refs.table.reload()},search(){this.$refs.table.reload({page:1})},rangeTimeChange(e){this.whereFormData.start_time=e[0].format("X"),this.whereFormData.end_time=e[1].format("X")},reset(){this.whereFormData=JSON.parse(JSON.stringify(A)),this.$nextTick(()=>{this.reload()})},eleTableDone(e,t,o){this.total=o}}},X=(o("2829"),o("6b0d")),K=o.n(X);const G=K()(W,[["render",R],["__scopeId","data-v-400f6990"]]);t["default"]=G}}]);