(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-10f3d5f8"],{1206:function(e,t,r){"use strict";var s=r("7406"),a=r.n(s);a.a},"2e61":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"order"},[s("div",{staticClass:"left"},[s("div",{staticClass:"left-top"},[s("div",{staticClass:"title"},[e._v("订单列表")]),s("div",{staticClass:"sx",on:{click:function(t){e.filterModal=!e.filterModal}}},[e._v("\n "+e._s(e.filterModal?"关闭":"筛选")+"\n "),e.filterModal?e._e():s("Icon",{staticClass:"ios-funnel-outline",attrs:{color:"#666",type:"ios-funnel-outline"}})],1)]),s("div",{staticClass:"order-box"},[e.filterModal?e._e():s("div",{staticClass:"search"},[s("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?s("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():s("div",{staticClass:"no-order"},[s("img",{attrs:{src:r("66c9"),alt:""}}),s("span",{staticClass:"trip"},[e._v("噢~目前暂无订单")])]),s("filter-modal",{directives:[{name:"show",rawName:"v-show",value:e.filterModal,expression:"filterModal"}],on:{search:e.searchList}})],1)]),s("div",{staticClass:"order-data"},[s("div",{staticClass:"header"},[e._l(e.tabs,(function(t,r){return s("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)}}},[s("div",{staticClass:"item-wrap"},[e._v("\n "+e._s(t)+"\n ")])])})),s("div",{staticClass:"box",class:2===e.sle?"neighbor-right":""})],2),s("div",{staticClass:"content",class:{"border-radius":e.sle}},[0===e.sle&&e.selectOrderData.id?s("userOrder",{staticClass:"orders",attrs:{canSend:e.canSend,selectData:e.selectOrderData},on:{remarks:e.remarks}}):e._e(),1===e.sle&&e.selectOrderData.id?s("orderDetails",{staticClass:"orders",attrs:{orderDatalist:e.orderInfoData}}):e._e(),2===e.sle&&e.selectOrderData.id?s("orderRecord",{attrs:{id:e.selectOrderData.id}}):e.selectOrderData.id?e._e():s("div",{staticClass:"no-order"},[s("img",{attrs:{src:r("0493"),alt:""}}),s("span",{staticClass:"trip"},[e._v("噢~目前暂无挂单记录")])])],1),e.selectOrderData.order_id?s("div",{staticClass:"footer"},[s("div",{staticClass:"footer-left"},[e.selectOrderData.clerk_name?s("span",{staticClass:"clerk"},[e._v("收银员:"+e._s(e.selectOrderData.clerk_name))]):e._e(),s("span",{staticClass:"pay"},[e._v("实付:")]),s("span",{staticClass:"num"},[e._v("¥"+e._s(e.selectOrderData.pay_price||0))])]),s("div",{staticClass:"footer-right"},[e.open_erp?e._e():s("div",{staticClass:"btn",on:{click:e.remarks}},[e._v("订单备注")]),e.open_erp?e._e():s("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():s("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?s("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():s("div",{staticClass:"btn pay",on:{click:e.openConfirm}},[e._v("\n 确认支付\n ")])])]):e._e()]),s("order-remark",{ref:"remarks",attrs:{orderId:e.selectOrderData.id},on:{submitFail:e.submitFail}}),s("orderSend",{ref:"send",attrs:{orderId:e.orderId,status:e.status,pay_type:e.pay_type},on:{submitFail:e.send}}),s("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"}},[s("Icon",{attrs:{type:"ios-alert"}}),e._v("确认该笔订单要使用线下支付吗?\n ")],1),s("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"}},[s("Form",{attrs:{"label-width":100}},[s("FormItem",{attrs:{label:"退款金额:",required:""}},[s("InputNumber",{staticStyle:{width:"408px"},model:{value:e.refundMoney,callback:function(t){e.refundMoney=t},expression:"refundMoney"}})],1),e.refundProductNum>1?s("FormItem",{attrs:{label:"分单退款:"}},[s("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},model:{value:e.isSplitOrder,callback:function(t){e.isSplitOrder=t},expression:"isSplitOrder"}},[s("span",{attrs:{slot:"open"},slot:"open"},[e._v("开启")]),s("span",{attrs:{slot:"close"},slot:"close"},[e._v("关闭")])]),s("div",{staticClass:"tips"},[e._v("可选择表格中的商品单独退款,退款后且不能撤回,请谨慎操作!")]),s("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[s("div",{directives:[{name:"viewer",rawName:"v-viewer",value:{navbar:!1,toolbar:!1},expression:"{navbar:false,toolbar:false}"}],staticClass:"image-wrap"},[s("img",{staticClass:"image",attrs:{src:r.attrInfo.image}})]),s("div",{staticClass:"title"},[e._v(e._s(r.productInfo.store_name))])]}},{key:"action",fn:function(t){var r=t.row;return[s("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),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("Button",{on:{click:e.cancelRefundModal}},[e._v("取消")]),s("Button",{attrs:{type:"primary"},on:{click:e.submitRefund}},[e._v("提交")])],1)],1)],1)},a=[],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 s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function h(e){for(var t=1;t=r.length-s-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("c48a"),r("2877")),b=Object(y["a"])(g,s,a,!1,null,"a9c30882",null);t["default"]=b.exports},7406:function(e,t,r){},a123:function(e,t,r){"use strict";var s=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,s){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,s){return r("Option",{key:s,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,s){return r("Option",{key:s,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 s=t.row;t.index;return[r("div",{staticClass:"product-data"},[r("img",{staticClass:"image",attrs:{src:s.cart_info.productInfo.image}}),r("div",{staticClass:"name line2"},[e._v("\n "+e._s(s.cart_info.productInfo.store_name)+"\n ")])])]}},{key:"value",fn:function(t){var s=t.row;t.index;return[r("div",[e._v(e._s(s.cart_info.productInfo.attrInfo.suk))])]}},{key:"sellPrice",fn:function(t){var s=t.row;t.index;return[r("div",[e._v(e._s(s.cart_info.productInfo.attrInfo?s.cart_info.productInfo.attrInfo.price:s.cart_info.productInfo.price)+"\n ")])]}},{key:"price",fn:function(t){var s=t.row;t.index;return[r("div",[e._v(e._s(s.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)},a=[],i=r("a34a"),n=r.n(i),o=r("2f62"),c=r("f8b7");function l(e,t,r,s,a,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(s,a)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(s,a){var i=e.apply(t,r);function n(e){l(i,s,a,n,o,"next",e)}function o(e){l(i,s,a,n,o,"throw",e)}n(void 0)}))}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function m(e){for(var t=1;t