(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-04bf106d"],{"0fc4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"b",(function(){return n}));var r=a("b6bd");function i(){return Object(r.a)({url:"erp/config",method:"get"})}function s(t){return Object(r.a)({url:"store/erp/shop",method:"get",params:t})}function n(t){return Object(r.a)({url:"product/import_erp_product",method:"post",data:t})}},1055:function(t,e,a){},1477:function(t,e,a){},"316a":function(t,e,a){"use strict";var r=a("1055");a.n(r).a},"31b4":function(t,e,a){"use strict";var r=a("9860"),i=a.n(r),s=a("b6bd"),n=a("2f62");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var c={name:"edit",components:{formCreate:i.a.$form()},computed:function(t){for(var e=1;e1?a("div",[a("FormItem",{attrs:{label:"分单发货:"}},[a("i-switch",{attrs:{size:"large",disabled:8===t.orderStatus||"offline"===t.pay_type},on:{"on-change":t.changeSplitStatus},model:{value:t.splitSwitch,callback:function(e){t.splitSwitch=e},expression:"splitSwitch"}},[a("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),a("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])]),a("div",{staticClass:"trips"},[a("p",[t._v("\n\t\t\t\t\t\t可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!\n\t\t\t\t\t")])]),t.splitSwitch&&t.manyFormValidate.length?a("Table",{attrs:{data:t.manyFormValidate,columns:t.header,border:""},on:{"on-selection-change":t.selectOne},scopedSlots:t._u([{key:"image",fn:function(e){var r=e.row;return e.index,[a("div",{staticClass:"product-data"},[a("img",{staticClass:"image",attrs:{src:r.cart_info.productInfo.image}}),a("div",{staticClass:"line2"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(r.cart_info.productInfo.store_name)+"\n\t\t\t\t\t\t\t")])])]}},{key:"value",fn:function(e){var r=e.row;return e.index,[a("div",{staticClass:"product-data"},[a("div",[t._v(t._s(r.cart_info.productInfo.attrInfo.suk))])])]}},{key:"price",fn:function(e){var r=e.row;return e.index,[a("div",{staticClass:"product-data"},[a("div",[t._v(t._s(r.cart_info.truePrice))])])]}}],null,!1,3197150676)}):t._e()],1)],1):t._e()],1):t._e(),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:t.cancel}},[t._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:t.putSend}},[t._v("提交")])],1),a("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:t.temp,expression:"temp"}],ref:"viewer"},[a("img",{staticStyle:{display:"none"},attrs:{src:t.temp.pic}})])],1)}),[],!1,null,"70ec9c10",null).exports);function C(t,e,a,r,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void a(t)}o.done?e(l):Promise.resolve(l).then(r,i)}function I(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var s=t.apply(e,a);function n(t){C(s,r,i,n,o,"next",t)}function o(t){C(s,r,i,n,o,"throw",t)}n(void 0)}))}}var w={name:"orderDetails",filters:{invoiceType:function(t){return 1==t?"电子普通发票":"纸质专用发票"},invoiceHeaderType:function(t){return 1==t?"个人":"企业"}},data:function(){return{modal2:!1,modals:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},result:[],columns1:[{title:"商品信息",slot:"product",align:"center",minWidth:400},{title:"价格",key:"truePrice",align:"center"},{title:"数量",key:"cart_num",align:"center"},{title:"小计",align:"center",render:function(t,e){return t("div",e.row.truePrice*e.row.cart_num)}}],columns2:[{title:"订单ID",key:"oid",align:"center",minWidth:40},{title:"操作记录",key:"change_message",align:"center",minWidth:280},{title:"操作时间",key:"change_time",align:"center",minWidth:100}],recordData:[],loading:!1,page:{page:1,limit:10},activeName:"detail"}},props:{orderDatalist:Object,orderId:Number,rowActive:Object,currentTab:String,openErp:{type:Boolean,default:!1}},watch:{orderId:function(t){this.getList(t)}},methods:{openLogistics:function(){this.getOrderData(),this.modal2=!0},getOrderData:function(){var t=this;Object(f.i)(this.orderId).then(function(){var e=I(i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.result=a.data.result;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getList:function(t){var e=this,a={id:t,datas:this.page};this.loading=!0,Object(f.l)(a).then(function(){var t=I(i.a.mark((function t(a){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.recordData=a.data,e.loading=!1;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},distribution:function(){this.$parent.distribution(this.rowActive)},remark:function(){this.$parent.remark(this.rowActive)}},computed:{}},D=(a("d1e2"),a("34c8"),Object(l.a)(w,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Drawer",{attrs:{closable:!1,width:"1000","class-name":"order_box",styles:{padding:0}},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.orderDatalist?r("div",[r("div",{staticClass:"head"},[r("div",{staticClass:"full"},[r("Icon",{attrs:{custom:"iconfont icondingdan",size:"60"}}),r("div",{staticClass:"text"},[r("div",{staticClass:"title"},[t._v(t._s(6==t.currentTab?"收银台订单":7==t.currentTab?"配送订单":"核销订单"))]),r("div",[t._v("订单编号:"+t._s(t.orderDatalist.orderInfo.order_id))])]),r("div",[2==t.rowActive._status||11==t.rowActive._status?r("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.distribution}},[t._v("分配")]):t._e(),r("Button",{on:{click:t.remark}},[t._v("订单备注")])],1)],1),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("订单状态")]),r("div",{staticClass:"value1"},[r("span",{domProps:{innerHTML:t._s(t.orderDatalist.orderInfo.status_name.status_name)}}),!t.orderDatalist.orderInfo.is_all_refund&&t.orderDatalist.orderInfo.refund.length?r("span",[t._v(",部分退款中")]):t._e(),t.orderDatalist.orderInfo.is_all_refund&&t.orderDatalist.orderInfo.refund.length&&6!=t.orderDatalist.orderInfo.refund_type?r("span",[t._v(",退款中")]):t._e()])]),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("实际支付")]),r("div",[t._v("¥"+t._s(t.orderDatalist.orderInfo.paid>0?t.orderDatalist.orderInfo.pay_price:0))])]),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("支付方式")]),r("div",[t._v(t._s(t.orderDatalist.orderInfo._status._payType||"-"))])]),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("支付时间")]),r("div",[t._v(t._s(t.orderDatalist.orderInfo._pay_time||"-"))])])])]),r("Tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[r("TabPane",{attrs:{label:"订单信息",name:"detail"}},[t.orderDatalist.orderInfo.refund_status?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("退款信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("退款原因:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_reason||"-"))])]),parseFloat(t.orderDatalist.orderInfo.refund_price)?r("li",{staticClass:"item"},[r("div",[t._v("退款金额:")]),r("div",{staticClass:"value"},[t._v(t._s(parseFloat(t.orderDatalist.orderInfo.refund_price)||0))])]):t._e(),parseFloat(t.orderDatalist.orderInfo.back_integral)?r("li",{staticClass:"item"},[r("div",[t._v("退回积分:")]),r("div",{staticClass:"value"},[t._v(t._s(parseFloat(t.orderDatalist.orderInfo.back_integral)||"-"))])]):t._e(),r("li",{staticClass:"item"},[r("div",[t._v("退款说明:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_explain||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("退款凭证:")]),r("div",{staticClass:"value"},t._l(t.orderDatalist.orderInfo.refund_img,(function(t,e){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"image"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0)])])]):t._e(),t.orderDatalist.orderInfo.refund_status&&t.orderDatalist.orderInfo.refund_express_name?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("退货物流信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("物流公司:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_express_name||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("物流单号:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_express||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("联系电话:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_phone||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("退货说明:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_goods_explain||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("退货凭证:")]),r("div",{staticClass:"value"},t._l(t.orderDatalist.orderInfo.refund_goods_img,(function(t,e){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"image"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0)])])]):t._e(),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("用户信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("用户昵称:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.userInfo.uid?t.orderDatalist.userInfo.nickname:"游客"))])]),r("li",{staticClass:"item"},[r("div",[t._v("绑定电话:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.userInfo.phone||"-"))])])])]),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("收货信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("收货人:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.real_name||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("收货电话:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.user_phone||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("收货地址:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.user_address||"-"))])])])]),t.orderDatalist.orderInfo.fictitious_content&&1!=t.orderDatalist.orderInfo.cartInfo[0].product_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("虚拟发货")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.fictitious_content))])])])]):t._e(),1==t.orderDatalist.orderInfo.cartInfo[0].product_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("卡密发货")]),t.orderDatalist.orderInfo.virtual.length?r("div",t._l(t.orderDatalist.orderInfo.virtual,(function(e,a){return r("div",{key:a,staticClass:"list"},[r("div",{staticClass:"item"},[r("div",[t._v("卡号"+t._s(a+1)+":")]),r("div",{staticClass:"value"},[t._v(t._s(e.card_no))])]),r("div",{staticClass:"item"},[r("div",[t._v("密码"+t._s(a+1)+":")]),r("div",{staticClass:"value"},[t._v(t._s(e.card_pwd))])])])})),0):r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.virtual_info||"-"))])])])]):t._e(),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("订单信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("创建时间:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo._add_time||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("商品总数:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.total_num||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("商品总价:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.total_price))])]),r("li",{staticClass:"item"},[r("div",[t._v("优惠券金额:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.coupon_price||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("积分抵扣:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.deduction_price||0))])]),parseFloat(t.orderDatalist.orderInfo.use_integral)?r("li",{staticClass:"item"},[r("div",[t._v("使用积分:")]),r("div",{staticClass:"value"},[t._v(t._s(parseFloat(t.orderDatalist.orderInfo.use_integral)))])]):t._e(),r("li",{staticClass:"item"},[r("div",[t._v("支付邮费:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.pay_postage))])]),r("li",{staticClass:"item"},[r("div",[t._v("会员商品优惠:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.vip_true_price||0))])]),0!=t.orderDatalist.orderInfo.first_order_price?r("li",{staticClass:"item"},[r("div",[t._v("新人首单优惠:")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.first_order_price))])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?r("li",{staticClass:"item"},[r("div",[t._v("门店名称:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo._store_name||"-"))])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?r("li",{staticClass:"item"},[r("div",[t._v("核销码:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.verify_code||"-"))])]):t._e(),r("li",{staticClass:"item"},[r("div",[t._v("推广人:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.userInfo.spread_name)+"/ID:"+t._s(t.orderDatalist.userInfo.spread_uid))])]),t.orderDatalist.orderInfo.store_order_sn?r("li",{staticClass:"item"},[r("div",[t._v("原订单号:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.store_order_sn))])]):t._e(),t._l(t.orderDatalist.orderInfo.promotions_detail,(function(e,a){return r("li",{key:a,staticClass:"item"},[r("div",[t._v(t._s(e.title)+":")]),r("div",{staticClass:"value"},[t._v("¥"+t._s(parseFloat(e.promotions_price).toFixed(2)))])])}))],2)]),"express"===t.orderDatalist.orderInfo.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("物流信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("快递公司:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.delivery_name||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("快递单号:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.delivery_id)),r("span",{staticClass:"logisticsLook",on:{click:t.openLogistics}},[t._v("查询")])])])])]):t._e(),"send"===t.orderDatalist.orderInfo.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("配送信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("送货人姓名:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.delivery_name||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("送货人电话:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.delivery_id||"-"))])])])]):t._e(),t.orderDatalist.orderInfo.custom_form.length?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("自定义留言")]),r("ul",{staticClass:"list"},t._l(t.orderDatalist.orderInfo.custom_form,(function(e,a){return e.value&&-1==["uploadPicture","dateranges"].indexOf(e.name)||e.value.length&&-1!=["uploadPicture","dateranges"].indexOf(e.name)?r("li",{key:a,staticClass:"item"},[r("div",{staticClass:"txtVal"},[t._v(t._s(e.titleConfig.value)+":")]),"dateranges"===e.name?r("div",{staticClass:"value"},[t._v(t._s(e.value[0]+"/"+e.value[1]))]):"uploadPicture"===e.name?r("div",{staticClass:"value"},t._l(e.value,(function(t,e){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"image"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0):r("div",{staticClass:"value"},[t._v(t._s(e.value||"-"))])]):t._e()})),0)]):t._e(),t.orderDatalist.orderInfo.mark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("买家备注")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.mark))])])])]):t._e(),t.orderDatalist.orderInfo.remark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("订单备注")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("备注:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.remark||"-"))])])])]):t._e(),t.orderDatalist.orderInfo.refuse_reason?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("拒绝退款原因")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refuse_reason))])])])]):t._e(),t.orderDatalist.orderInfo.invoice?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("发票信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("发票类型:")]),r("div",{staticClass:"value"},[t._v(t._s(t._f("invoiceType")(t.orderDatalist.orderInfo.invoice.type)))])]),r("li",{staticClass:"item"},[r("div",[t._v("抬头类型:")]),r("div",{staticClass:"value"},[t._v(t._s(t._f("invoiceHeaderType")(t.orderDatalist.orderInfo.invoice.header_type)))])]),r("li",{staticClass:"item"},[r("div",[t._v("发票抬头:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.name||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("税号:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.duty_number||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("邮箱:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.email||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("开户银行:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.bank||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("企业地址:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.address||"-"))])]),r("li",{staticClass:"item"},[r("div",[t._v("企业电话:")]),r("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.drawer_phone||"-"))])])])]):t._e()]),r("TabPane",{attrs:{label:"商品信息",name:"product"}},[r("Table",{attrs:{columns:t.columns1,data:t.orderDatalist.orderInfo.cartInfo,border:"","highlight-row":""},scopedSlots:t._u([{key:"product",fn:function(e){var a=e.row;return[r("div",{staticClass:"product"},[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.productInfo.attrInfo?a.productInfo.attrInfo.image:a.productInfo.image,expression:"row.productInfo.attrInfo ? row.productInfo.attrInfo.image : row.productInfo.image"}]})]),r("div",{staticClass:"title"},[a.is_gift?r("span",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),t._v(t._s(a.productInfo.store_name)+" | "+t._s(a.productInfo.attrInfo?a.productInfo.attrInfo.suk:""))])])]}}],null,!1,517014031)})],1),r("TabPane",{attrs:{label:"订单记录",name:"record"}},[r("Table",{attrs:{columns:t.columns2,border:"",data:t.recordData,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1)],1)],1):t._e()]),r("Modal",{staticClass:"order_box2",attrs:{scrollable:"",title:"物流查询",width:"350"},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[t.orderDatalist?r("div",{staticClass:"logistics acea-row row-top"},[r("div",{staticClass:"logistics_img"},[r("img",{attrs:{src:a("bd9b")}})]),r("div",{staticClass:"logistics_cent"},[r("span",[t._v("物流公司:"+t._s(t.orderDatalist.orderInfo.delivery_name))]),r("span",[t._v("物流单号:"+t._s(t.orderDatalist.orderInfo.delivery_id))])])]):t._e(),r("div",{staticClass:"acea-row row-column-around trees-coadd"},[r("div",{staticClass:"scollhide"},[r("Timeline",t._l(t.result,(function(e,a){return r("TimelineItem",{key:a},[r("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),r("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1)],1)])])],1)}),[],!1,null,"0e1407ac",null).exports);function x(t,e,a,r,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void a(t)}o.done?e(l):Promise.resolve(l).then(r,i)}var k={name:"orderRecord",data:function(){return{modals:!1,loading:!1,recordData:[],page:{page:1,limit:10},columns:[{title:"订单ID",key:"oid",align:"center",minWidth:40},{title:"操作记录",key:"change_message",align:"center",minWidth:280},{title:"操作时间",key:"change_time",align:"center",minWidth:100}]}},methods:{pageChange:function(t){this.page.pageNum=t,this.getList()},getList:function(t){var e=this,a={id:t,datas:this.page};this.loading=!0,Object(f.l)(a).then(function(){var t,a=(t=i.a.mark((function t(a){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.recordData=a.data,e.loading=!1;case 2:case"end":return t.stop()}}),t)})),function(){var e=this,a=arguments;return new Promise((function(r,i){var s=t.apply(e,a);function n(t){x(s,r,i,n,o,"next",t)}function o(t){x(s,r,i,n,o,"throw",t)}n(void 0)}))});return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))}}},O=(a("c6d6"),Object(l.a)(k,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单记录",width:"700","footer-hide":""},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("Table",{attrs:{columns:t.columns,border:"",data:t.recordData,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1)],1)}),[],!1,null,"111ee459",null).exports);function T(t,e,a,r,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void a(t)}o.done?e(l):Promise.resolve(l).then(r,i)}function F(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var s=t.apply(e,a);function n(t){T(s,r,i,n,o,"next",t)}function o(t){T(s,r,i,n,o,"throw",t)}n(void 0)}))}}var M,j={name:"orderMark",data:function(){return{tabs:"",formValidate:{remark:""},modals:!1,ruleValidate:{remark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]}}},props:{orderId:Number,tab:Number},methods:{currentTab:function(t,e){this.tabs=t,this.formValidate.remark=e},cancel:function(t){this.modals=!1},putRemark:function(t){var e=this,a={id:this.orderId,remark:this.formValidate};this.$refs[t].validate((function(r){r?3==e.tabs?Object(n.u)(a).then(function(){var a=F(i.a.mark((function a(r){return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.$Message.success(r.msg),e.modals=!1,e.$refs[t].resetFields(),e.$emit("submitFail");case 4:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)})):4==e.tabs?Object(n.w)(a).then(function(){var a=F(i.a.mark((function a(r){return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.$Message.success(r.msg),e.modals=!1,e.$refs[t].resetFields(),e.$emit("submitFail");case 4:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)})):Object(n.v)(a).then(function(){var a=F(i.a.mark((function a(r){return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.$Message.success(r.msg),e.modals=!1,e.$refs[t].resetFields(),e.$emit("submitFail");case 4:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)})):e.$Message.warning("请填写备注信息")}))}}},P=Object(l.a)(j,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请修改内容",closable:!1},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"备注:",prop:"remark"}},[a("Input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"订单备注"},model:{value:t.formValidate.remark,callback:function(e){t.$set(t.formValidate,"remark",e)},expression:"formValidate.remark"}})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putRemark("formValidate")}}},[t._v("提交")]),a("Button",{on:{click:function(e){return t.cancel("formValidate")}}},[t._v("取消")])],1)],1)}),[],!1,null,"1a5f7936",null).exports,A=a("0fc4"),$=a("0b65"),L=a("d708");function S(t,e,a,r,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void a(t)}o.done?e(l):Promise.resolve(l).then(r,i)}function W(t){return function(){var e=this,a=arguments;return new Promise((function(r,i){var s=t.apply(e,a);function n(t){S(s,r,i,n,o,"next",t)}function o(t){S(s,r,i,n,o,"throw",t)}n(void 0)}))}}function N(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function V(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var E={name:"index",components:{userDetails:m.a,editFrom:v.a,detailsFrom:D,orderRecord:O,orderRemark:P,orderSend:y,expandRow:u,Distribution:c},data:function(){return{roterPre:L.a.roterPre,openErp:!1,distshow:!1,delfromData:{},pay_type:"",status:0,FromData:null,orderDatalist:null,orderId:0,treeSelect:[{id:"free",label:"试用"},{id:"month",label:"月卡"},{id:"quarter",label:"季卡"},{id:"year",label:"年卡"},{id:"ever",label:"永久"},{id:"card",label:"卡密激活"}],staffData:[],tablists:{},orderChartType:{},options:$.a,timeVal:[],orderData:{page:1,limit:10,type:"",status:"",time:"",real_name:"",store_id:"",order_type:6},rechargeData:{nickname:"",limit:15},vipData:{member_type:"",limit:15},currentTab:"6",tableList:[],total:0,loading:!1,rechargeColumns:[{title:"ID",key:"id",width:60},{title:"订单号",key:"order_id",minWidth:180},{title:"用户信息",slot:"userInfo",minWidth:160},{title:"支付金额",key:"price",minWidth:110},{title:"充值类型",key:"_recharge_type",minWidth:100},{title:"支付时间",key:"_pay_time",minWidth:130},{title:"关联店员",key:"_recharge_type",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:200,align:"center"}],vipColumns:[{title:"订单号",key:"order_id",minWidth:180},{title:"用户信息",slot:"userInfo",minWidth:180},{title:"会员类型",key:"member_type",minWidth:100},{title:"有效期限(天)",minWidth:100,render:function(t,e){return t("span",-1===e.row.vip_day?"永久":e.row.vip_day)}},{title:"支付金额",key:"pay_price",minWidth:100},{title:"支付方式",key:"pay_type",minWidth:100},{title:"购买时间",key:"pay_time",minWidth:130},{title:"关联店员",key:"pay_time",minWidth:130},{title:"操作",slot:"action",fixed:"right",minWidth:200,align:"center"}],columns:[{type:"expand",width:30,render:function(t,e){return t(u,{props:{row:e.row}})}},{title:"订单号",slot:"order_id",minWidth:160},{title:"用户信息",slot:"userInfo",minWidth:120},{title:"商品信息",slot:"info",minWidth:350},{title:"实际支付",slot:"pay_price",minWidth:120},{title:"支付方式",key:"pay_type_name",minWidth:120},{title:"收银店员",key:"clerk_name",minWidth:120},{title:"下单时间",key:"add_time",minWidth:150},{title:"订单状态",slot:"statusName",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:200,align:"center"}],rowActive:{}}},computed:function(t){for(var e=1;e您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!

"})},getData:function(t,e){var a=this;Object(n.h)(t).then(function(){var t=W(i.a.mark((function t(r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e||(a.$refs.detailss.modals=!0),a.$refs.detailss.activeName="detail",a.orderDatalist=r.data,a.orderDatalist.orderInfo.refund_reason_wap_img)try{a.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(a.orderDatalist.orderInfo.refund_reason_wap_img)}catch(t){a.orderDatalist.orderInfo.refund_reason_wap_img=[]}case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){a.$Message.error(t.msg)}))},bindWrite:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"确定要核销该订单吗?",cancelText:"取消",closable:!0,maskClosable:!0,onOk:function(){Object(n.P)(t.order_id).then((function(t){e.$Message.success(t.msg),e.getList()}))},onCancel:function(){}})},delivery:function(t){var e=this;Object(n.i)(t.id).then(function(){var t=W(i.a.mark((function t(a){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=a.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},edit:function(t){this.getOrderData(t.id)},getOrderData:function(t){var e=this;Object(n.j)(t).then(function(){var t=W(i.a.mark((function t(a){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==a.data.status){t.next=2;break}return t.abrupt("return",e.$authLapse(a.data));case 2:e.$authLapse(a.data),e.FromData=a.data,e.$refs.edits.modals=!0;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},submitFail:function(){this.status=0,3==this.currentTab?this.getRecharge():4==this.currentTab?this.getVipOrder():(this.getList(),this.getData(this.orderId,1))},sendOrder:function(t){var e=this;this.$store.commit("admin/order/setSplitOrder",t.total_num),this.$refs.send.modals=!0,this.orderId=t.id,this.status=t._status,this.pay_type=t.pay_type,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.$nextTick((function(a){e.$refs.send.getCartInfo(t._status,t.id)}))},showUserInfo:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.activeName="info",this.$refs.userDetails.getDetails(t.uid)},clearData:function(){this.orderData={page:1,limit:15,type:"",status:"",time:"",real_name:"",store_id:"",order_type:6},this.rechargeData={nickname:"",limit:15},this.vipData={member_type:"",limit:15}},staffList:function(){var t=this;Object(n.y)().then((function(e){t.staffData=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getTabs:function(){var t=this;Object(n.q)().then((function(e){t.tablists=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getChart:function(){var t=this;Object(n.n)({type:this.currentTab}).then((function(e){t.orderChartType=e.data})).catch((function(e){t.$Message.error(e.msg)}))}},V(M,"edit",(function(t){this.getOrderData(t.id)})),V(M,"onClickTab",(function(){this.clearData(),this.orderData.order_type=this.currentTab,this.orderData.page=1,this.timeVal=[],this.getChart(),this.searchList()})),V(M,"searchList",(function(){3==this.currentTab?this.getRecharge():4==this.currentTab?this.getVipOrder():this.getList()})),V(M,"userSearchs",(function(){this.orderData.page=1,this.searchList()})),V(M,"selectStatus",(function(){this.orderData.page=1,this.getList()})),V(M,"getVipOrder",(function(){var t=this;this.loading=!0,this.tableList=[],this.vipData.name=this.rechargeData.nickname,this.vipData.add_time=this.orderData.time,this.vipData.store_id=this.orderData.store_id,this.vipData.page=this.orderData.page,Object(n.t)(this.vipData).then((function(e){var a=e.data;t.tableList=a.list,t.total=a.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))})),V(M,"getRecharge",(function(){var t=this;this.loading=!0,this.tableList=[],this.rechargeData.data=this.orderData.time,this.rechargeData.store_id=this.orderData.store_id,this.rechargeData.page=this.orderData.page,Object(n.s)(this.rechargeData).then((function(e){var a=e.data;t.tableList=a.list,t.total=a.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))})),V(M,"getList",(function(){var t=this;this.loading=!0,this.tableList=[],Object(n.r)(this.orderData).then((function(e){var a=e.data;a.data.forEach((function(e){e.id==t.orderId&&(t.rowActive=e)})),t.tableList=a.data,t.total=a.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))})),V(M,"pageChange",(function(t){this.orderData.page=t,this.searchList()})),V(M,"orderSearch",(function(){this.orderData.page=1,this.searchList()})),V(M,"onchangeTime",(function(t){this.timeVal=t,this.orderData.time=this.timeVal[0]?this.timeVal.join("-"):"",this.orderData.page=1,t[0]||(this.orderData.time=""),this.searchList()})),V(M,"selectChange",(function(){this.orderData.page=1,this.timeVal=[],this.searchList()})),V(M,"getExcelData",(function(t){var e=this;return new Promise((function(a,r){var i=1;i=6==e.currentTab||7==e.currentTab||5==e.currentTab?1:3==e.currentTab?2:3,Object(n.p)(t,i).then((function(t){return a(t.data)}))}))})),M)},R=(a("6bb7"),Object(l.a)(E,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"mt15 ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[a("div",{staticClass:"new_card_pd"},[a("Form",{ref:"orderData",staticClass:"tabform",attrs:{model:t.orderData,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"选择门店:"}},[a("Select",{staticClass:"input-add",attrs:{clearable:"",filterable:""},on:{"on-change":t.userSearchs},model:{value:t.orderData.store_id,callback:function(e){t.$set(t.orderData,"store_id",e)},expression:"orderData.store_id"}},t._l(t.staffData,(function(e){return a("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),1)],1),a("FormItem",{attrs:{label:"创建时间:"}},[a("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),4==t.currentTab?a("FormItem",{attrs:{label:"会员类型:"}},[a("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.vipData.member_type,callback:function(e){t.$set(t.vipData,"member_type",e)},expression:"vipData.member_type"}},t._l(t.treeSelect,(function(e){return a("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.label))])})),1)],1):t._e(),4!=t.currentTab?a("FormItem",{attrs:{label:"活动类型:"}},[a("Select",{staticClass:"input-add",attrs:{clearable:"",placeholder:"全部"},model:{value:t.orderData.type,callback:function(e){t.$set(t.orderData,"type",e)},expression:"orderData.type"}},[a("Option",{attrs:{value:"0"}},[t._v("普通订单")]),a("Option",{attrs:{value:"1"}},[t._v("秒杀订单")]),a("Option",{attrs:{value:"2"}},[t._v("砍价订单")]),a("Option",{attrs:{value:"3"}},[t._v("拼团订单")]),a("Option",{attrs:{value:"4"}},[t._v("套餐订单")]),a("Option",{attrs:{value:"8"}},[t._v("预售订单")]),a("Option",{attrs:{value:"9"}},[t._v("新人订单")]),a("Option",{attrs:{value:"10"}},[t._v("抽奖订单")]),a("Option",{attrs:{value:"11"}},[t._v("拼单订单")]),a("Option",{attrs:{value:"12"}},[t._v("桌码订单")])],1)],1):t._e(),a("FormItem",{attrs:{label:"订单状态:"}},[a("Select",{staticClass:"input-add",model:{value:t.orderData.status,callback:function(e){t.$set(t.orderData,"status",e)},expression:"orderData.status"}},[a("Option",{attrs:{value:""}},[t._v("全部")]),a("Option",{attrs:{value:"0"}},[t._v("未支付")]),a("Option",{attrs:{value:"1"}},[t._v("待配送")]),a("Option",{attrs:{value:"2"}},[t._v("配送中")]),a("Option",{attrs:{value:"3"}},[t._v("待评价")]),a("Option",{attrs:{value:"5"}},[t._v("待核销")]),a("Option",{attrs:{value:"6"}},[t._v("已核销")]),a("Option",{attrs:{value:"4"}},[t._v("已完成")]),a("Option",{attrs:{value:"-4"}},[t._v("已删除")])],1)],1),6==t.currentTab||7==t.currentTab||5==t.currentTab?a("FormItem",{attrs:{label:"订单搜索:","label-for":"real_name"}},[a("Input",{staticClass:"input-add",attrs:{placeholder:"订单号/商品名称"},model:{value:t.orderData.real_name,callback:function(e){t.$set(t.orderData,"real_name",e)},expression:"orderData.real_name"}})],1):t._e(),3==t.currentTab||4==t.currentTab?a("FormItem",{attrs:{label:"用户搜索:","label-for":"nickname"}},[a("Input",{staticClass:"input-add",attrs:{placeholder:"请输入用户名"},model:{value:t.rechargeData.nickname,callback:function(e){t.$set(t.rechargeData,"nickname",e)},expression:"rechargeData.nickname"}})],1):t._e(),a("FormItem",[a("Button",{staticClass:"ml75",attrs:{type:"primary"},on:{click:function(e){return t.orderSearch()}}},[t._v("查询")])],1)],1)],1)]),a("Card",{staticClass:"mt15 ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"new_tab"},[a("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},[a("TabPane",{attrs:{label:"收银台订单",name:"6"}}),a("TabPane",{attrs:{label:"配送订单",name:"7"}}),a("TabPane",{attrs:{label:"核销订单",name:"5"}}),a("TabPane",{attrs:{label:"充值订单",name:"3"}}),a("TabPane",{attrs:{label:"付费会员订单",name:"4"}})],1)],1),a("Table",{ref:"table",attrs:{columns:6==t.currentTab||7==t.currentTab||5==t.currentTab?t.columns:3==t.currentTab?t.rechargeColumns:t.vipColumns,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"order_id",fn:function(e){var r=e.row;return[a("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(r.order_id)}}),a("span",{directives:[{name:"show",rawName:"v-show",value:1===r.is_del,expression:"row.is_del === 1"}],staticClass:"span-del"},[t._v("用户已删除")])]}},{key:"userInfo",fn:function(e){var r=e.row;return[6==t.currentTab||7==t.currentTab||5==t.currentTab?a("div",[r.uid?a("a",{on:{click:function(e){return t.showUserInfo(r)}}},[t._v("\n "+t._s(r.nickname)+"\n "),a("span",{staticClass:"ml5"},[t._v("/"+t._s(r.uid))])]):a("span",[t._v("游客"),a("span",{staticClass:"ml5"},[t._v("/"+t._s(r.uid))])])]):t._e(),3==t.currentTab?a("div",{staticClass:"tabBox"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.avatar,expression:"row.avatar"}]})]),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(r.nickname))])]):t._e(),4==t.currentTab&&r.user?a("div",{staticClass:"tabBox"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.user.avatar,expression:"row.user.avatar"}]})]),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(r.user.nickname))])]):t._e()]}},{key:"info",fn:function(e){var r=e.row;return[a("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[t._l(r._info,(function(e,r){return a("div",{key:r,staticClass:"tabBox"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.image:e.cart_info.productInfo.image,expression:"\n val.cart_info.productInfo.attrInfo\n ? val.cart_info.productInfo.attrInfo.image\n : val.cart_info.productInfo.image\n "}]})]),a("span",{staticClass:"info_title line1"},[e.cart_info.is_gift?a("span",{staticClass:"font-color-red"},[t._v("赠品")]):t._e(),t._v("\n "+t._s(e.cart_info.productInfo.store_name+" | ")+"\n "+t._s(e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.suk:"")+"\n ")])])})),a("div",{attrs:{slot:"content"},slot:"content"},t._l(r._info,(function(e,r){return a("div",{key:r},[e.cart_info.is_gift?a("p",{staticClass:"font-color-red"},[t._v("赠品")]):t._e(),a("p",[t._v(t._s(e.cart_info.productInfo.store_name))]),a("p",[t._v(" "+t._s(e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.suk:""))]),a("p",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.cart_info.truePrice+" x "+e.cart_info.cart_num))])])})),0)],2)]}},{key:"statusName",fn:function(e){var r=e.row;return[r.status_name&&0==r.status?a("Tag",{attrs:{color:"red",size:"medium"}},[t._v(t._s(r.status_name.status_name))]):t._e(),r.status_name&&0!==r.status?a("Tag",{attrs:{color:"green",size:"medium"}},[t._v(t._s(r.status_name.status_name))]):t._e(),a("br"),!r.is_all_refund&&r.refund.length?a("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("部分退款中")]):t._e(),r.is_all_refund&&r.refund.length&&6!=r.refund_type?a("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("退款中")]):t._e()]}},{key:"pay_price",fn:function(e){var a=e.row;return[t._v("\n "+t._s(a.paid>0?a.pay_price:0)+"\n ")]}},{key:"action",fn:function(e){var r=e.row;return[6==t.currentTab?a("span",[a("a",{on:{click:function(e){return t.detail(r)}}},[t._v("订单详情")])]):t._e(),7==t.currentTab?a("span",[2==r._status?a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.distribution(r)}}},[t._v("分配")]):t._e(),2==r._status?a("Divider",{attrs:{type:"vertical"}}):t._e(),a("a",{on:{click:function(e){return t.detail(r)}}},[t._v("详情")])],1):t._e(),5==t.currentTab?a("span",[11==r._status?a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.distribution(r)}}},[t._v("分配")]):t._e(),11==r._status?a("Divider",{attrs:{type:"vertical"}}):t._e(),a("a",{on:{click:function(e){return t.detail(r)}}},[t._v("详情")])],1):t._e(),3==t.currentTab||4==t.currentTab?a("a",{on:{click:function(e){return t.remark(r)}}},[t._v("备注")]):t._e()]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.orderData.page,"show-elevator":"","show-total":"","page-size":t.orderData.limit},on:{"on-change":t.pageChange}})],1)],1),a("Distribution",{ref:"distshow"}),a("user-details",{ref:"userDetails",attrs:{fromType:"order"}}),a("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),a("details-from",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId,"row-active":t.rowActive,currentTab:t.currentTab,openErp:t.openErp}}),a("order-remark",{ref:"remarks",attrs:{orderId:t.orderId},on:{submitFail:t.submitFail}}),a("order-record",{ref:"record"}),a("order-send",{ref:"send",attrs:{orderId:t.orderId,status:t.status,pay_type:t.pay_type},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"17e2baaa",null));e.default=R.exports},fcc4:function(t,e,a){}}]);