(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3877d9ab"],{"1dd0":function(e,t,r){"use strict";var a=r("7437"),s=r.n(a);s.a},"2e61":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"order"},[a("div",{staticClass:"left"},[a("div",{staticClass:"left-top"},[a("div",{staticClass:"title"},[e._v("订单列表")]),a("div",{staticClass:"sx",on:{click:function(t){e.filterModal=!e.filterModal}}},[e._v("\n "+e._s(e.filterModal?"关闭":"筛选")+"\n "),e.filterModal?e._e():a("Icon",{staticClass:"ios-funnel-outline",attrs:{color:"#666",type:"ios-funnel-outline"}})],1)]),a("div",{staticClass:"order-box"},[e.filterModal?e._e():a("div",{staticClass:"search"},[a("Input",{attrs:{search:"","enter-button":"搜索",size:"large",placeholder:"搜索订单编号"},on:{"on-search":e.search},model:{value:e.orderData.keyword,callback:function(t){e.$set(e.orderData,"keyword",t)},expression:"orderData.keyword"}})],1),e.orderListData.length?a("orderList",{directives:[{name:"show",rawName:"v-show",value:!e.filterModal,expression:"!filterModal"}],staticClass:"order-list",attrs:{total:e.count,orderData:e.orderListData},on:{addPage:e.addPage,selectOrder:e.selectOrder}}):e.orderListData.length||e.filterModal?e._e():a("div",{staticClass:"no-order"},[a("img",{attrs:{src:r("66c9"),alt:""}}),a("span",{staticClass:"trip"},[e._v("噢~目前暂无订单")])]),a("filter-modal",{directives:[{name:"show",rawName:"v-show",value:e.filterModal,expression:"filterModal"}],on:{search:e.searchList}})],1)]),a("div",{staticClass:"order-data"},[a("div",{staticClass:"header"},[e._l(e.tabs,(function(t,r){return a("div",{key:r,staticClass:"item",class:e.sle===r?"sel":r===e.sle-1?"neighbor-left":r===e.sle+1?"neighbor-right":"def",on:{click:function(t){return e.tabClick(r)}}},[a("div",{staticClass:"item-wrap"},[e._v("\n "+e._s(t)+"\n ")])])})),a("div",{staticClass:"box",class:2===e.sle?"neighbor-right":""})],2),a("div",{staticClass:"content",class:{"border-radius":e.sle}},[0===e.sle&&e.selectOrderData.id?a("userOrder",{staticClass:"orders",attrs:{canSend:e.canSend,selectData:e.selectOrderData},on:{remarks:e.remarks}}):e._e(),1===e.sle&&e.selectOrderData.id?a("orderDetails",{staticClass:"orders",attrs:{orderDatalist:e.orderInfoData}}):e._e(),2===e.sle&&e.selectOrderData.id?a("orderRecord",{attrs:{id:e.selectOrderData.id}}):e.selectOrderData.id?e._e():a("div",{staticClass:"no-order"},[a("img",{attrs:{src:r("0493"),alt:""}}),a("span",{staticClass:"trip"},[e._v("噢~目前暂无挂单记录")])])],1),e.selectOrderData.order_id?a("div",{staticClass:"footer"},[a("div",{staticClass:"footer-left"},[e.selectOrderData.clerk_name?a("span",{staticClass:"clerk"},[e._v("收银员:"+e._s(e.selectOrderData.clerk_name))]):e._e(),a("span",{staticClass:"pay"},[e._v("实付:")]),a("span",{staticClass:"num"},[e._v("¥"+e._s(e.selectOrderData.pay_price||0))])]),a("div",{staticClass:"footer-right"},[e.open_erp?e._e():a("div",{staticClass:"btn",on:{click:e.remarks}},[e._v("订单备注")]),e.open_erp?e._e():a("div",{staticClass:"btn",on:{click:e.point}},[e._v("小票打印")]),2!==e.selectOrderData._status&&8!==e.selectOrderData._status&&4!==e.selectOrderData.status||3!==e.selectOrderData.shipping_type||null!==e.selectOrderData.pinkStatus&&2!==e.selectOrderData.pinkStatus?e._e():a("div",{staticClass:"btn pay",on:{click:e.orderSend}},[e._v("\n 发送货\n ")]),[0,1,2,5].includes(e.selectOrderData.refund_type)&&(parseFloat(e.selectOrderData.pay_price)>parseFloat(e.selectOrderData.refund_price)||0==e.selectOrderData.pay_price)&&!e.selectOrderData.refund.length&&1==e.selectOrderData.paid?a("div",{staticClass:"btn pay",on:{click:e.getRefundData}},[e._v("\n "+e._s(2==e.selectOrderData.refund_type?"同意退货":"立即退款")+"\n ")]):e._e(),e.selectOrderData.is_del||e.selectOrderData.paid||"offline"!=e.selectOrderData.pay_type?e._e():a("div",{staticClass:"btn pay",on:{click:e.openConfirm}},[e._v("\n 确认支付\n ")])])]):e._e()]),a("order-remark",{ref:"remarks",attrs:{orderId:e.selectOrderData.id},on:{submitFail:e.submitFail}}),a("orderSend",{ref:"send",attrs:{orderId:e.orderId,status:e.status,pay_type:e.pay_type},on:{submitFail:e.send}}),a("Modal",{attrs:{title:"确认支付",width:"450","class-name":"confirm-modal"},on:{"on-ok":e.payOffline},model:{value:e.confirmVisible,callback:function(t){e.confirmVisible=t},expression:"confirmVisible"}},[a("Icon",{attrs:{type:"ios-alert"}}),e._v("确认该笔订单要使用线下支付吗?\n ")],1),a("Modal",{attrs:{title:"手动退款",width:"960","class-name":"refund-modal"},on:{"on-visible-change":e.visibleChange},model:{value:e.refundModal,callback:function(t){e.refundModal=t},expression:"refundModal"}},[a("Form",{attrs:{"label-width":100}},[a("FormItem",{attrs:{label:"退款金额:",required:""}},[a("InputNumber",{staticStyle:{width:"408px"},model:{value:e.refundMoney,callback:function(t){e.refundMoney=t},expression:"refundMoney"}})],1),e.refundProductNum>1?a("FormItem",{attrs:{label:"分单退款:"}},[a("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},model:{value:e.isSplitOrder,callback:function(t){e.isSplitOrder=t},expression:"isSplitOrder"}},[a("span",{attrs:{slot:"open"},slot:"open"},[e._v("开启")]),a("span",{attrs:{slot:"close"},slot:"close"},[e._v("关闭")])]),a("div",{staticClass:"tips"},[e._v("可选择表格中的商品单独退款,退款后且不能撤回,请谨慎操作!")]),a("Table",{directives:[{name:"show",rawName:"v-show",value:e.isSplitOrder,expression:"isSplitOrder"}],ref:"refundTable",attrs:{"max-height":"500",columns:e.refundColumns,data:e.refundProduct},on:{"on-selection-change":e.selectionChange},scopedSlots:e._u([{key:"product",fn:function(t){var r=t.row;return[a("div",{directives:[{name:"viewer",rawName:"v-viewer",value:{navbar:!1,toolbar:!1},expression:"{navbar:false,toolbar:false}"}],staticClass:"image-wrap"},[a("img",{staticClass:"image",attrs:{src:r.attrInfo.image}})]),a("div",{staticClass:"title"},[e._v(e._s(r.productInfo.store_name))])]}},{key:"action",fn:function(t){var r=t.row;return[a("InputNumber",{attrs:{value:r.refundNum,max:r.cart_num-r.refund_num,min:1,precision:0,"controls-outside":""},on:{"on-change":function(t){return e.refundNumChange(r.id,t)}}})]}}],null,!1,3257685656)})],1):e._e()],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:e.cancelRefundModal}},[e._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:e.submitRefund}},[e._v("提交")])],1)],1)],1)},s=[],i=r("d487"),n=r("9568"),o=r("ea47"),c=r("bd57"),l=r("6dc2"),d=r("22f89"),u=r("a464"),m=r("a123"),f=r("f8b7");function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function h(e){for(var t=1;t=r.length-a-1?t.refundProduct.refund_price=Number(r):t.refundProduct.refund_price=Number(Number(r).toFixed(2))}))},openConfirm:function(){this.confirmVisible=!0},payOffline:function(){var e=this;Object(f["Q"])(this.selectOrderData.id).then((function(){e.$Message.success("支付成功"),e.reloading=!0,e.limitTemp=e.orderData.limit,e.pageTemp=e.orderData.page,e.orderData.limit*=e.orderData.page,e.orderData.page=1,e.getOrderList()})).catch((function(t){e.$Message.error(t.msg)}))},orderSend:function(){var e=this;this.$store.commit("store/order/setSplitOrder",this.selectOrderData.total_num),this.$refs.send.modals=!0,this.orderId=this.selectOrderData.id,this.status=this.selectOrderData._status,this.pay_type=this.selectOrderData.pay_type,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.$nextTick((function(t){e.$refs.send.getCartInfo(e.selectOrderData._status,e.selectOrderData.id)}))},addPage:function(){this.orderListData.lengtht.data.list.length&&r--,e.orderListData=t.data.list,e.selectOrderData=e.orderListData[r]}else e.selectOrderData={};else e.selectOrderData=t.data.list.length&&1==e.orderData.page?t.data.list[0]:e.selectOrderData,e.orderListData=e.orderListData.concat(t.data.list);e.count=t.data.count})).catch((function(t){e.$Message.error(t.msg)}))},getErpConfig:function(){var e=this;Object(f["u"])().then((function(t){e.open_erp=t.data.open_erp,e.tengxun_map_key=t.data.tengxun_map_key})).catch((function(t){e.$Message.error(t.msg)}))},visibleChange:function(e){this.isSplitOrder=0,e||(this.refundSelection=[])},cancelRefundModal:function(){this.refundModal=!1},submitRefund:function(){var e=this,t={refund_price:this.refundMoney,is_split_order:this.isSplitOrder};if(this.isSplitOrder){if(!this.refundSelection.length)return this.$Message.warning("请选择需要退款的商品");t.cart_ids=this.refundSelection.map((function(e){var t=e.id,r=e.refundNum;return{cart_id:t,cart_num:r}}))}Object(f["K"])(this.selectOrderData.id,t).then((function(t){e.$Message.success(t.msg),e.refundModal=!1,e.reloading=!0,e.limitTemp=e.orderData.limit,e.pageTemp=e.orderData.page,e.orderData.limit*=e.orderData.page,e.orderData.page=1,e.getOrderList()})).catch((function(t){e.$Message.error(t.msg)}))},selectionChange:function(e){this.refundSelection=e},refundNumChange:function(e,t){var r=this.refundSelection.find((function(t){return t.id===e}));r&&(r.refundNum=t)}}},g=v,y=(r("329d"),r("2877")),b=Object(y["a"])(g,a,s,!1,null,"4fe2ffda",null);t["default"]=b.exports},"329d":function(e,t,r){"use strict";var a=r("6aac"),s=r.n(a);s.a},"6aac":function(e,t,r){},7437:function(e,t,r){},a123:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单发送货",closable:!1,width:"1000"},on:{"on-visible-change":e.changeModal},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[e.modals?r("Form",{ref:"formItem",attrs:{model:e.formItem,"label-width":100},nativeOn:{submit:function(e){e.preventDefault()}}},[r("FormItem",{attrs:{label:"选择类型:"}},[r("RadioGroup",{on:{"on-change":e.changeRadio},model:{value:e.formItem.type,callback:function(t){e.$set(e.formItem,"type",t)},expression:"formItem.type"}},[e.productType?e._e():r("Radio",{attrs:{label:"1"}},[e._v("发货")]),e.productType?e._e():r("Radio",{attrs:{label:"2"}},[e._v("送货")]),r("Radio",{attrs:{label:"3"}},[e._v("无需配送")])],1)],1),1==e.formItem.type?r("FormItem",{directives:[{name:"show",rawName:"v-show",value:e.export_open,expression:"export_open"}],attrs:{label:"发货类型:"}},[r("RadioGroup",{on:{"on-change":e.changeExpress},model:{value:e.formItem.express_record_type,callback:function(t){e.$set(e.formItem,"express_record_type",t)},expression:"formItem.express_record_type"}},[r("Radio",{attrs:{label:"1"}},[e._v("手动填写")]),r("Radio",{attrs:{label:"2"}},[e._v("电子面单打印")])],1)],1):e._e(),r("div",[1==e.formItem.type?r("FormItem",{attrs:{label:"快递公司:"}},[r("Select",{staticStyle:{width:"80%"},attrs:{filterable:"",placeholder:"请选择快递公司"},on:{"on-change":e.expressChange},model:{value:e.formItem.delivery_name,callback:function(t){e.$set(e.formItem,"delivery_name",t)},expression:"formItem.delivery_name"}},e._l(e.express,(function(t,a){return r("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.value)+"\n ")])})),1)],1):e._e(),"1"===e.formItem.express_record_type&&1==e.formItem.type?r("FormItem",{attrs:{label:"快递单号:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入快递单号"},model:{value:e.formItem.delivery_id,callback:function(t){e.$set(e.formItem,"delivery_id",t)},expression:"formItem.delivery_id"}}),"顺丰速运"==e.formItem.delivery_name?r("div",{staticClass:"trips"},[r("p",[e._v("顺丰请输入单号 :收件人或寄件人手机号后四位,")]),r("p",[e._v("例如:SF000000000000:3941")])]):e._e()],1):e._e(),"2"===e.formItem.express_record_type?[r("FormItem",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[r("Select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择电子面单"},on:{"on-change":e.expressTempChange},model:{value:e.formItem.express_temp_id,callback:function(t){e.$set(e.formItem,"express_temp_id",t)},expression:"formItem.express_temp_id"}},e._l(e.expressTemp,(function(t,a){return r("Option",{key:a,attrs:{value:t.temp_id}},[e._v(e._s(t.title)+"\n ")])})),1),e.formItem.express_temp_id?r("Button",{attrs:{type:"text"},on:{click:e.preview}},[e._v("预览")]):e._e()],1),r("FormItem",{attrs:{label:"寄件人姓名:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人姓名"},model:{value:e.formItem.to_name,callback:function(t){e.$set(e.formItem,"to_name",t)},expression:"formItem.to_name"}})],1),r("FormItem",{attrs:{label:"寄件人电话:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人电话"},model:{value:e.formItem.to_tel,callback:function(t){e.$set(e.formItem,"to_tel",t)},expression:"formItem.to_tel"}})],1),r("FormItem",{attrs:{label:"寄件人地址:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人地址"},model:{value:e.formItem.to_addr,callback:function(t){e.$set(e.formItem,"to_addr",t)},expression:"formItem.to_addr"}})],1)]:e._e()],2),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"===e.formItem.type,expression:"formItem.type === '2'"}]},[r("FormItem",{attrs:{label:"送货人:"}},[r("Select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择送货人"},on:{"on-change":e.shDeliveryChange},model:{value:e.formItem.sh_delivery,callback:function(t){e.$set(e.formItem,"sh_delivery",t)},expression:"formItem.sh_delivery"}},e._l(e.deliveryList,(function(t,a){return r("Option",{key:a,attrs:{value:t.id}},[e._v("\n "+e._s(t.wx_name)+"("+e._s(t.phone)+")\n ")])})),1)],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:"3"===e.formItem.type,expression:"formItem.type === '3'"}]},[r("FormItem",{attrs:{label:"备注:"}},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:e.formItem.fictitious_content,callback:function(t){e.$set(e.formItem,"fictitious_content",t)},expression:"formItem.fictitious_content"}})],1)],1),e.splitOrder>1&&"3"!==e.formItem.type?r("div",[r("FormItem",{attrs:{label:"分单发货:"}},[r("i-switch",{attrs:{size:"large",disabled:8===e.orderStatus},on:{"on-change":e.changeSplitStatus},model:{value:e.splitSwitch,callback:function(t){e.splitSwitch=t},expression:"splitSwitch"}},[r("span",{attrs:{slot:"open"},slot:"open"},[e._v("开启")]),r("span",{attrs:{slot:"close"},slot:"close"},[e._v("关闭")])]),r("div",{staticClass:"trips"},[r("p",[e._v("\n 可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!\n ")])]),e.splitSwitch&&e.manyFormValidate.length?r("Table",{attrs:{data:e.manyFormValidate,columns:e.header},on:{"on-selection-change":e.selectOne},scopedSlots:e._u([{key:"image",fn:function(t){var a=t.row;t.index;return[r("div",{staticClass:"product-data"},[r("img",{staticClass:"image",attrs:{src:a.cart_info.productInfo.image}}),r("div",{staticClass:"name line2"},[e._v("\n "+e._s(a.cart_info.productInfo.store_name)+"\n ")])])]}},{key:"value",fn:function(t){var a=t.row;t.index;return[r("div",[e._v(e._s(a.cart_info.productInfo.attrInfo.suk))])]}},{key:"sellPrice",fn:function(t){var a=t.row;t.index;return[r("div",[e._v(e._s(a.cart_info.productInfo.attrInfo?a.cart_info.productInfo.attrInfo.price:a.cart_info.productInfo.price)+"\n ")])]}},{key:"price",fn:function(t){var a=t.row;t.index;return[r("div",[e._v(e._s(a.cart_info.truePrice))])]}}],null,!1,409803649)}):e._e()],1)],1):e._e()],1):e._e(),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{on:{click:e.cancel}},[e._v("取消")]),r("Button",{attrs:{type:"primary"},on:{click:e.putSend}},[e._v("提交")])],1),r("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:e.temp,expression:"temp"}],ref:"viewer"},[r("img",{staticStyle:{display:"none"},attrs:{src:e.temp.pic}})])],1)},s=[],i=r("a34a"),n=r.n(i),o=r("2f62"),c=r("f8b7");function l(e,t,r,a,s,i,n){try{var o=e[i](n),c=o.value}catch(l){return void r(l)}o.done?t(c):Promise.resolve(c).then(a,s)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(a,s){var i=e.apply(t,r);function n(e){l(i,a,s,n,o,"next",e)}function o(e){l(i,a,s,n,o,"throw",e)}n(void 0)}))}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function m(e){for(var t=1;t