|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4a59fbe7"],{"0bce":function(t,e,r){},"0de1":function(t,e,r){"use strict";r("1da3")},"0fc4":function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"b",(function(){return o}));var n=r("b6bd");function a(){return Object(n.a)({url:"erp/config",method:"get"})}function i(t){return Object(n.a)({url:"store/erp/shop",method:"get",params:t})}function o(t){return Object(n.a)({url:"product/import_erp_product",method:"post",data:t})}},"150a":function(t,e,r){"use strict";r.r(e);var n=r("6112"),a=r("a6b9"),i=r("f8b7");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new T(n||[]);return a(o,"_invoke",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",v="suspendedYield",h="executing",_="completed",y={};function g(){}function b(){}function w(){}var I={};d(I,l,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(P([])));C&&C!==r&&n.call(C,l)&&(I=C);var j=w.prototype=g.prototype=Object.create(I);function k(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,s,l){var c=p(t[a],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==o(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function D(e,r,n){var a=m;return function(i,o){if(a===h)throw Error("Generator is already running");if(a===_){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=p(e,r,n);if("normal"===c.type){if(a=n.done?_:v,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=_,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(o(e)+" is not iterable")}return b.prototype=w,a(j,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,d(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},k(O.prototype),d(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new O(f(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(j),d(j,u,"Generator"),d(j,l,(function(){return this})),d(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;E(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function l(t,e,r,n,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,a)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){l(i,n,a,o,s,"next",t)}function s(t){l(i,n,a,o,s,"throw",t)}o(void 0)}))}}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={name:"orderDetails",filters:{invoiceType:function(t){return 1==t?"电子普通发票":"纸质专用发票"},invoiceHeaderType:function(t){return 1==t?"个人":"企业"}},data:function(){var t;return u(u(u(u(u(u(u(u(u(u(t={loading:!1,modal2:!1,isShow:0,img:"https://test.pro.wuht.net/uploads/attach/2022/04/18/11ea015ba627836f564c667c1d53fe2a.jpg"},"modal2",!1),"modals",!1),"grid",{xl:8,lg:8,md:12,sm:24,xs:24}),"result",[]),"logisticsCon",{}),"columns1",[{title:"商品信息",slot:"product",minWidth:400},{title:"售价",key:"sum_price"},{title:"实付金额",key:"truePrice"},{title:"数量",key:"cart_num"},{title:"小计",render:function(t,e){return t("div",(e.row.truePrice*e.row.cart_num).toFixed(2))}}]),"columns2",[{title:"订单ID",key:"oid",minWidth:40},{title:"操作记录",key:"change_message",minWidth:280},{title:"操作时间",key:"change_time",minWidth:100}]),"columnSplit",[{title:"订单号",key:"order_id",minWidth:100},{title:"商品信息",slot:"product",minWidth:250},{title:"发货信息",slot:"deliveryInfo",minWidth:100},{title:"操作",slot:"action",minWidth:90}]),"recordData",[]),"splitList",[]),u(u(t,"activeName","detail"),"orderData",{})},props:{orderDatalist:Object,orderId:Number,rowActive:Object,formType:{type:Number,default:0},openErp:{type:Boolean,default:!1}},watch:{orderDatalist:function(t){this.orderData=t.orderInfo,this.getList(this.formType?t.orderInfo.id:t.orderInfo.store_order_id),this.formType&&this.getSplitOrder(t.orderInfo.id)},orderData:function(t){var e=this;t&&t.custom_form&&t.custom_form.length&&t.custom_form.forEach((function(t){if(t.value)return e.isShow=1}))}},mounted:function(){var t=this;this.orderData&&this.orderData.custom_form&&this.orderData.custom_form.length&&this.orderData.custom_form.forEach((function(e){if(e.value)return t.isShow=1}))},methods:{sendOrder:function(t,e){e?this.$parent.sendOrder(t,e):this.$parent.sendOrder(this.rowActive)},openItemLogistics:function(t){this.modal2=!0,this.getOrderData(t.id)},getOrderData:function(t){var e=this;Object(i.i)(t).then(function(){var t=c(s().mark((function t(r){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.result=r.data.result;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},changeMenu:function(t,e,r,n){n?this.$parent.changeMenu(e,r,n):this.$parent.changeMenu(this.rowActive,t)},distribution:function(t,e){e?this.$parent.distribution(t):this.$parent.distribution(this.rowActive)},openLogistics:function(){this.modal2=!0;var t=this.formType?this.orderDatalist.orderInfo.id:this.orderDatalist.orderInfo.store_order_id;this.getOrderData(t)},edit:function(t,e){e?this.$parent.edit(t):this.$parent.edit(this.rowActive)},delivery:function(t,e){e?this.$parent.delivery(t,e):this.$parent.delivery(this.rowActive)},bindWrite:function(t,e){e?this.$parent.bindWrite(t):this.$parent.bindWrite(this.rowActive)},getSplitOrder:function(t){var e=this;Object(a.B)(t,{status:2}).then((function(t){e.splitList=t.data})).catch((function(t){e.$Message.error(t.msg)}))},getList:function(t){var e=this,r={id:t,datas:this.page};this.loading=!0,Object(a.j)(r).then(function(){var t=c(s().mark((function t(r){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.recordData=r.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)}))}},computed:{}},f=(r("38ca"),r("a26c"),r("2877")),p=Object(f.a)(d,(function(){var t=this,e=t._self._c;return e("div",[e("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?e("div",[e("div",{staticClass:"head"},[e("div",{staticClass:"full"},[e("Icon",{class:{"sale-after":-1===t.orderDatalist.orderInfo._status._type},attrs:{custom:"iconfont icondingdan",size:"60"}}),e("div",{staticClass:"text"},[e("div",{staticClass:"title"},[t._v(t._s(t.orderData.pink_name||"售后订单"))]),e("div",[t._v("订单编号:"+t._s(t.orderDatalist.orderInfo.order_id))])]),null==t.rowActive.delete_time?e("div",[t.orderData._status_new>=2?e("Button",{on:{click:function(e){return t.changeMenu("10")}}},[t._v("小票打印")]):t._e(),1!==t.orderData._status_new&&t.formType?e("Dropdown",{on:{"on-click":t.changeMenu}},[e("Button",{attrs:{icon:"ios-more"}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[1!==t.orderData._status_new||3===t.orderData._status_new&&t.orderData.use_integral>0&&t.orderData.use_integral>=t.orderData.back_integral?e("DropdownItem",{attrs:{name:"4"}},[t._v("订单备注\n ")]):t._e(),(0==t.orderData.refund_type||1==t.orderData.refund_type||5==t.orderData.refund_type)&&1==t.orderData.paid&&2!==t.orderData.refund_status&&parseFloat(t.orderData.pay_price)>0&&(!t.rowActive.split.length||t.rowActive.split.length&&1==t.orderData._status._type)?e("DropdownItem",{attrs:{disabled:t.openErp,name:"5"}},[t._v("立即退款\n ")]):t._e(),4===t.orderData._status_new?e("DropdownItem",{attrs:{disabled:t.openErp,name:"8"}},[t._v("已收货")]):t._e(),t.orderData.paid?e("DropdownItem",{attrs:{name:"12"}},[t._v("打印配货单")]):t._e()],1)],1):t._e()],1):t._e()],1),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("订单状态")]),t.formType?e("div",{staticClass:"value1"},[e("span",{domProps:{innerHTML:t._s(t.orderData.status_name.status_name)}}),!t.orderData.is_all_refund&&t.orderData.refund.length?e("span",[t._v(",部分退款中")]):t._e(),t.orderData.is_all_refund&&t.orderData.refund.length&&6!=t.orderData.refund_type?e("span",[t._v(",退款中")]):t._e()]):e("div",[1==t.orderData.refund_type?e("div",{staticClass:"value1"},[t._v("\n 仅退款\n ")]):2==t.orderData.refund_type?e("div",{staticClass:"value1"},[t._v("\n 退货退款\n ")]):3==t.orderData.refund_type?e("div",{staticClass:"value1"},[t._v("\n 拒绝退款\n ")]):4==t.orderData.refund_type?e("div",{staticClass:"value1"},[t._v("\n 商品待退货\n ")]):5==t.orderData.refund_type?e("div",{staticClass:"value1"},[t._v("\n 退货待收货\n ")]):6==t.orderData.refund_type?e("div",{staticClass:"value2"},[t._v("\n 已退款\n ")]):t._e()])]),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("实际支付")]),e("div",[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.paid>0?t.orderDatalist.orderInfo.pay_price:0)+"\n ")])]),t.formType?e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("支付方式")]),e("div",[t._v(t._s(t.orderDatalist.orderInfo._status._payType||"-"))])]):e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("退款件数")]),e("div",[t._v(t._s(t.orderDatalist.orderInfo.total_num||0))])]),t.formType?e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("支付时间")]),e("div",[t._v(t._s(t.orderDatalist.orderInfo._pay_time||"-"))])]):e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("退款时间")]),e("div",[t._v(t._s(t.orderDatalist.orderInfo._refund_time||"-"))])])])]),e("Tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("TabPane",{attrs:{label:"订单信息",name:"detail"}},[t.formType?t._e():e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("退款信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("退款原因:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_reason||"-")+"\n ")])]),parseFloat(t.orderDatalist.orderInfo.refund_price)?e("li",{staticClass:"item"},[e("div",[t._v("退款金额:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.refund_price)||0)+"\n ")])]):t._e(),parseFloat(t.orderDatalist.orderInfo.back_integral)?e("li",{staticClass:"item"},[e("div",[t._v("退回积分:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.back_integral)||"-")+"\n ")])]):t._e(),e("li",{staticClass:"item"},[e("div",[t._v("退款说明:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_explain||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("退款凭证:")]),e("div",{staticClass:"value"},t._l(t.orderDatalist.orderInfo.refund_img,(function(t,r){return e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:r,staticClass:"image"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0)])])]),!t.formType&&t.orderDatalist.orderInfo.refund_express_name?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("退货物流信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("物流公司:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_express_name||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("物流单号:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_express||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("联系电话:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_phone||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("退货说明:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_goods_explain||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("退货凭证:")]),e("div",{staticClass:"value"},t._l(t.orderDatalist.orderInfo.refund_goods_img,(function(t,r){return e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:r,staticClass:"image"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0)])])]):t._e(),e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("用户信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("用户UID:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.uid?t.orderDatalist.userInfo.uid:"游客")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("用户昵称:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.uid?t.orderDatalist.userInfo.nickname:"游客")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("绑定电话:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.phone||"-")+"\n ")])])])]),0==t.orderDatalist.orderInfo.product_type?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("收货信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n 收货人:"+t._s(t.orderDatalist.orderInfo.real_name||"-")+"\n ")])])]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n 收货电话:"+t._s(t.orderDatalist.orderInfo.user_phone||"-")+"\n ")])])]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n 收货地址:"+t._s(t.orderDatalist.orderInfo.user_address||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.fictitious_content&&1!=t.orderDatalist.orderInfo.cartInfo[0].product_type?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("虚拟发货")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.fictitious_content)+"\n ")])])])]):t._e(),1==t.orderDatalist.orderInfo.cartInfo[0].product_type?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("卡密发货")]),t.orderDatalist.orderInfo.virtual.length?e("div",t._l(t.orderDatalist.orderInfo.virtual,(function(r,n){return e("div",{key:n,staticClass:"list"},[e("div",{staticClass:"item"},[e("div",[t._v("卡号"+t._s(n+1)+":")]),e("div",{staticClass:"value"},[t._v(t._s(r.card_no))])]),e("div",{staticClass:"item"},[e("div",[t._v("密码"+t._s(n+1)+":")]),e("div",{staticClass:"value"},[t._v(t._s(r.card_pwd))])])])})),0):e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.virtual_info||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.supplierInfo?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("供应商信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("供应商:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.supplier_name?t.orderDatalist.orderInfo.supplierInfo.name:"游客")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("供应商姓名:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.name?t.orderDatalist.orderInfo.supplierInfo.name:"游客")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("联系方式:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.phone||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("供应商邮箱:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.email||"-")+"\n ")])])])]):t._e(),e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("订单信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("创建时间:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._add_time||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("商品总数:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.total_num||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("商品总价:")]),e("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.total_price||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("优惠券金额:")]),e("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.coupon_price||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("积分抵扣:")]),e("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.deduction_price||0)+"\n ")])]),parseFloat(t.orderDatalist.orderInfo.use_integral)?e("li",{staticClass:"item"},[e("div",[t._v("使用积分:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.use_integral))+"\n ")])]):t._e(),e("li",{staticClass:"item"},[e("div",[t._v("支付邮费:")]),e("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.pay_postage||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("会员商品优惠:")]),e("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.vip_true_price||0)+"\n ")])]),0!=t.orderDatalist.orderInfo.first_order_price?e("li",{staticClass:"item"},[e("div",[t._v("新人首单优惠:")]),e("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.first_order_price)+"\n ")])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?e("li",{staticClass:"item"},[e("div",[t._v("门店名称:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._store_name||"-")+"\n ")])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?e("li",{staticClass:"item"},[e("div",[t._v("核销码:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.verify_code||"-")+"\n ")])]):t._e(),e("li",{staticClass:"item"},[e("div",[t._v("推广人:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.spread_name)+"/ID:"+t._s(t.orderDatalist.userInfo.spread_uid)+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("支付时间:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._pay_time||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("支付方式:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._status._payType||"-")+"\n ")])]),t.orderDatalist.orderInfo.store_order_sn?e("li",{staticClass:"item"},[e("div",[t._v("原订单号:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.store_order_sn)+"\n ")])]):t._e(),t._l(t.orderDatalist.orderInfo.promotions_detail,(function(r,n){return e("li",{key:n,staticClass:"item"},[e("div",[t._v(t._s(r.title)+":")]),e("div",{staticClass:"value"},[t._v("\n ¥"+t._s(parseFloat(r.promotions_price).toFixed(2))+"\n ")])])}))],2)]),"express"===t.orderDatalist.orderInfo.delivery_type?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("物流信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("快递公司:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_name||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("快递单号:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_id)),e("span",{staticClass:"logisticsLook",on:{click:t.openLogistics}},[t._v("查询")])])])])]):t._e(),"send"===t.orderDatalist.orderInfo.delivery_type?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("配送信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("送货人姓名:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_name||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("送货人电话:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_id||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.custom_form.length&&t.isShow?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("自定义留言")]),e("ul",{staticClass:"list"},t._l(t.orderDatalist.orderInfo.custom_form,(function(r,n){return r.value&&-1==["uploadPicture","dateranges"].indexOf(r.name)||r.value.length&&-1!=["uploadPicture","dateranges"].indexOf(r.name)?e("li",{key:n,staticClass:"item"},[e("div",{staticClass:"txtVal"},[t._v(t._s(r.titleConfig.value)+":")]),"dateranges"===r.name?e("div",{staticClass:"value"},[t._v(t._s(r.value[0]+"/"+r.value[1]))]):"uploadPicture"===r.name?e("div",{staticClass:"value"},t._l(r.value,(function(t,r){return e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:r,staticClass:"image"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0):e("div",{staticClass:"value"},[t._v(t._s(r.value||"-"))])]):t._e()})),0)]):t._e(),t.orderDatalist.orderInfo.mark?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("买家备注")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.mark||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.remark?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("订单备注")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("备注:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.remark||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.refuse_reason?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("拒绝退款原因")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refuse_reason)+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.invoice?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("发票信息")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",[t._v("发票类型:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("invoiceType")(t.orderDatalist.orderInfo.invoice.type))+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("抬头类型:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("invoiceHeaderType")(t.orderDatalist.orderInfo.invoice.header_type))+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("发票抬头:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.name||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("税号:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.duty_number||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("邮箱:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.email||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("开户银行:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.bank||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("企业地址:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.address||"-")+"\n ")])]),e("li",{staticClass:"item"},[e("div",[t._v("企业电话:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.drawer_phone||"-")+"\n ")])])])]):t._e()]),e("TabPane",{attrs:{label:"商品信息",name:"product"}},[e("Table",{attrs:{columns:t.columns1,data:t.orderDatalist.orderInfo.cartInfo,"highlight-row":""},scopedSlots:t._u([{key:"product",fn:function(r){var n=r.row;return[e("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[e("div",{staticClass:"product"},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.productInfo.attrInfo?n.productInfo.attrInfo.image:n.productInfo.image,expression:"\n row.productInfo.attrInfo\n ? row.productInfo.attrInfo.image\n : row.productInfo.image\n "}]})]),e("div",{staticClass:"title"},[e("div",{staticClass:"line2"},[n.is_gift?e("span",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),t._v(t._s(n.productInfo.store_name)+" | "+t._s(n.productInfo.attrInfo?n.productInfo.attrInfo.suk:"")+"\n ")])])]),e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[n.is_gift?e("p",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),e("p",[t._v(t._s(n.productInfo.store_name))]),e("p",[t._v(t._s(n.productInfo.attrInfo?n.productInfo.attrInfo.suk:""))])])])])]}}],null,!1,3823646853)})],1),e("TabPane",{attrs:{label:"订单记录",name:"record"}},[e("Table",{attrs:{columns:t.columns2,data:t.recordData,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1),e("TabPane",{attrs:{label:"发货记录",name:"recordList"}},[e("Table",{attrs:{columns:t.columnSplit,data:t.splitList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"product",fn:function(r){var n=r.row;return[e("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[t._l(n._info,(function(r,n){return e("div",{staticClass:"product productTime"},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.image:r.cart_info.productInfo.image,expression:"\n j.cart_info.productInfo.attrInfo\n ? j.cart_info.productInfo.attrInfo.image\n : j.cart_info.productInfo.image\n "}]})]),e("div",{staticClass:"title"},[e("div",{staticClass:"line2"},[r.cart_info.is_gift?e("span",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),t._v("\n "+t._s(r.cart_info.productInfo.store_name)+" | "+t._s(r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.suk:"")+"\n ")])])])})),e("div",{attrs:{slot:"content"},slot:"content"},t._l(n._info,(function(r,n){return e("div",{key:n},[r.cart_info.is_gift?e("p",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),e("p",[t._v(t._s(r.cart_info.productInfo.store_name))]),e("p",[t._v(t._s(r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.suk:""))]),e("p",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+r.cart_info.sum_price+" x "+r.cart_info.cart_num))])])})),0)],2)]}},{key:"deliveryInfo",fn:function(r){var n=r.row;return[n.add_time?e("div",[e("span",[t._v("创建时间:")]),t._v(t._s(n.add_time))]):t._e(),n.delivery_time?e("div",[e("span",[t._v("发货时间:")]),t._v(t._s(n.delivery_time))]):t._e(),"express"==n.delivery_type||"send"==n.delivery_type||"fictitious"==n.delivery_type?e("div",[t._v("\n 发货方式:\n "),"express"==n.delivery_type?e("span",[t._v("物流发货")]):t._e(),"send"==n.delivery_type?e("span",[t._v("送货")]):t._e(),"fictitious"==n.delivery_type?e("span",[t._v("虚拟发货")]):t._e()]):t._e(),n.delivery_name?e("div",[t._v("\n 配 送 人:"+t._s(n.delivery_name)+"\n ")]):t._e(),n.delivery_id?e("div",{on:{click:function(e){return t.openItemLogistics(n)}}},[t._v("\n 快递单号:"),e("span",{staticStyle:{color:"#1890ff",cursor:"pointer"}},[t._v(t._s(n.delivery_id))])]):t._e()]}},{key:"action",fn:function(r){var n=r.row;return r.index,[e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("3",n)}}},[t._v("订单记录")]),e("Divider",{attrs:{type:"vertical"}}),[e("Dropdown",{attrs:{transfer:!0},on:{"on-click":function(e){return t.changeMenu("",n,e,1)}}},[e("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n 更多\n "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:1===n._status&&0===n.paid&&"offline"===n.pay_type,expression:"\n row._status === 1 &&\n row.paid === 0 &&\n row.pay_type === 'offline'\n "}],ref:"ones",attrs:{disabled:t.openErp,name:"1"}},[t._v("立即支付")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:n._status>=2,expression:"row._status >= 2"}],attrs:{name:"10"}},[t._v("小票打印")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:1!==n._status||3===n._status&&n.use_integral>0&&n.use_integral>=n.back_integral,expression:"\n row._status !== 1 ||\n (row._status === 3 &&\n row.use_integral > 0 &&\n row.use_integral >= row.back_integral)\n "}],attrs:{name:"4"}},[t._v("订单备注")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:2!=n.refund_type&&4!=n.refund_type&&6!=n.refund_type&&1==n.paid&&2!==n.refund_status&&parseFloat(n.pay_price)>0&&(null==n.split||0==n.split.length),expression:"\n row.refund_type != 2 &&\n row.refund_type != 4 &&\n row.refund_type != 6 &&\n row.paid == 1 &&\n row.refund_status !== 2 &&\n parseFloat(row.pay_price) > 0 &&\n (row.split == null || row.split.length == 0)\n "}],attrs:{disabled:t.openErp,name:"5"}},[t._v("立即退款")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:2==n.refund_type,expression:"row.refund_type == 2"}],attrs:{disabled:t.openErp,name:"55"}},[t._v("同意退货")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:4===n._status&&!n.split.length,expression:"row._status === 4 && !row.split.length"}],attrs:{disabled:t.openErp,name:"8"}},[t._v("已收货")]),1==n.is_del?e("DropdownItem",{attrs:{disabled:t.openErp,name:"9"}},[t._v("删除订单")]):t._e()],1)],1)]]}}],null,!1,348285966)})],1)],1)],1):t._e()]),e("Modal",{staticClass:"order_box2",attrs:{scrollable:"",title:"物流查询",width:"350"},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[t.orderDatalist||Object.keys(t.logisticsCon).length?e("div",{staticClass:"logistics acea-row row-top"},[e("div",{staticClass:"logistics_img"},[e("img",{attrs:{src:r("bd9b")}})]),e("div",{staticClass:"logistics_cent"},[e("span",[t._v("物流公司:"+t._s(Object.keys(t.logisticsCon).length?t.logisticsCon.delivery_name:t.orderDatalist.orderInfo.delivery_name))]),e("span",[t._v("物流单号:"+t._s(Object.keys(t.logisticsCon).length?t.logisticsCon.delivery_id:t.orderDatalist.orderInfo.delivery_id))])])]):t._e(),e("div",{staticClass:"acea-row row-column-around trees-coadd"},[e("div",{staticClass:"scollhide"},[e("Timeline",t._l(t.result,(function(r,n){return e("TimelineItem",{key:n},[e("p",{staticClass:"time",domProps:{textContent:t._s(r.time)}}),e("p",{staticClass:"content",domProps:{textContent:t._s(r.status)}})])})),1)],1)])])],1)}),[],!1,null,"6266ecfd",null).exports,m=r("d616"),v=r("417c"),h=r("61f8"),_=r("6683"),y=r("a464"),g=r("a716"),b=r("0fc4"),w=r("d708");function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */x=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,o=Object.create(i.prototype),s=new T(n||[]);return a(o,"_invoke",{value:D(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",v="completed",h={};function _(){}function y(){}function g(){}var b={};c(b,o,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(P([])));C&&C!==r&&n.call(C,o)&&(b=C);var j=g.prototype=_.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,o,s){var l=d(t[a],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==I(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function D(e,r,n){var a=f;return function(i,o){if(a===m)throw Error("Generator is already running");if(a===v){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=d(e,r,n);if("normal"===c.type){if(a=n.done?v:p,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(I(e)+" is not iterable")}return y.prototype=g,a(j,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:y,configurable:!0}),y.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},k(O.prototype),c(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new O(u(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(j),c(j,l,"Generator"),c(j,o,(function(){return this})),c(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;E(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}function C(t,e,r,n,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,a)}function j(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){C(i,n,a,o,s,"next",t)}function s(t){C(i,n,a,o,s,"throw",t)}o(void 0)}))}}var k={name:"",components:{Template:n.default,Supplierdetails:p,orderSend:m.a,orderRemark:h.a,Distribution:_.a,expandRow:y.a,userDetails:g.a,orderRecord:v.a},props:{orderList:{type:Array,default:[]},columns:{type:Array,default:[]},page:{type:Object,default:{}}},data:function(){return{roterPre:w.a.roterPre,delfromData:{},FromData:{},rowActive:{},orderDatalist:null,orderId:0,remind:1,openErp:!1}},computed:{},watch:{},created:function(){this.getErpConfig()},mounted:function(){},methods:{pageChange:function(t){this.page.pageNum=t,this.$emit("getList")},limitChange:function(t){this.page.pageSize=t,this.$emit("getList")},getErpConfig:function(){var t=this;Object(b.a)().then((function(e){t.openErp=e.data.open_erp})).catch((function(e){t.$Message.error(e.msg)}))},submitFail:function(t){this.status=0,this.$emit("getList"),1!=this.orderConNum?this.getData(this.orderId,1):this.$refs.detailss.getSplitOrder(this.orderConId),t&&this.$emit("changeGetTabs")},showUserInfo:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.activeName="info",this.$refs.userDetails.getDetails(t.uid)},btnClick:function(t){var e=this,r={supplier_id:t.supplier_id,id:t.id};Object(a.b)(r).then(function(){var t=j(x().mark((function t(r){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg),e.$emit("getList");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(r){e.$Message.error(r.msg),"400"==r.status&&(t.remind=2)}))},distributionInfo:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){distributionInfo(t).then(function(){var t=j(x().mark((function t(e){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch()})),changeMenu:function(t,e,r){var n=this;switch(this.orderId=t.id,this.orderConId=t.pid>0?t.pid:t.id,this.orderConNum=r,e){case"1":this.delfromData={title:"修改立即支付",url:"/supplier/order/pay_offline/".concat(t.id),method:"post",ids:""},this.$modalSure(this.delfromData).then((function(e){n.$Message.success(e.msg),n.getData(t.id,1),n.$emit("getList")})).catch((function(t){n.$Message.error(t.msg)}));break;case"2":this.rowActive=t,this.getData(t.id);break;case"3":this.$refs.record.modals=!0,this.$refs.record.getList(t.id);break;case"4":this.$refs.remarks.formValidate.remark=t.remark,this.$refs.remarks.modals=!0,this.$emit("getList");break;case"5":this.getOnlyRefundData(t.id,t.refund_type);break;case"55":this.getRefundData(t.id,t.refund_type);break;case"7":this.distributionInfo(t.id);break;case"9":this.getRefundData(t.id,t.refund_type);break;case"8":this.delfromData={title:"修改确认收货",url:"/supplier/order/take/".concat(t.id),method:"put",ids:""},this.$modalSure(this.delfromData).then((function(e){n.$Message.success(e.msg),n.$emit("changeGetTabs"),n.$emit("getList"),r?n.$refs.detailss.getSplitOrder(t.pid):n.getData(t.id,1)})).catch((function(t){n.$Message.error(t.msg)}));break;case"12":var a=this.$router.resolve({path:this.roterPre+"/supplier/order/distribution",query:{id:t.id,status:1}});window.open(a.href,"_blank");break;case"10":this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"/supplier/order/print/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){n.$Message.success(t.msg),n.$emit("getList")})).catch((function(t){n.$Message.error(t.msg)}))}},getOnlyRefundData:function(t,e){var r=this;this.$modalForm(Object(a.l)(t)).then((function(){r.$emit("getList"),r.$emit("changeGetTabs"),r.$refs.detailss.modals=!1}))},getRefundData:function(t,e){var r=this;this.delfromData={title:"是否立即退货退款",url:"/supplier/refund/agree/".concat(t),method:"get"},this.$modalSure(this.delfromData).then((function(t){r.$Message.success(t.msg),r.$emit("getList"),r.$emit("changeGetTabs")})).catch((function(t){r.$Message.error(t.msg)}))},getData:function(t,e){var r=this;Object(a.v)(t).then(function(){var t=j(x().mark((function t(n){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e||(r.$refs.detailss.modals=!0),r.$refs.detailss.activeName="detail",r.orderDatalist=n.data,r.orderDatalist.orderInfo.refund_reason_wap_img)try{r.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(r.orderDatalist.orderInfo.refund_reason_wap_img)}catch(t){r.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){r.$Message.error(t.msg)}))}}},O=(r("9d84"),Object(f.a)(k,(function(){var t=this,e=t._self._c;return e("div",[e("Table",{ref:"table",staticClass:"orderData ivu-mt",attrs:{columns:t.columns,data:t.orderList,"highlight-row":"","no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"order_id",fn:function(r){var n=r.row;return[1===n.is_del&&null==n.delete_time?e("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600,content:"用户已删除"}},[e("span",{staticStyle:{color:"#ed4014",display:"block"}},[t._v(t._s(n.order_id))])]):e("span",{staticStyle:{color:"#2d8cf0",display:"block",cursor:"pointer"},on:{click:function(e){return t.changeMenu(n,"2")}}},[t._v(t._s(n.order_id))])]}},{key:"info",fn:function(r){var n=r.row;return[e("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[t._l(n._info,(function(r,n){return e("div",{key:n,staticClass:"tabBox"},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.image:r.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 "}]})]),e("span",{staticClass:"tabBox_tit line1"},[r.cart_info.is_gift?e("span",{staticClass:"font-color-red"},[t._v("赠品")]):t._e(),t._v("\n "+t._s(r.cart_info.productInfo.store_name+" | ")+"\n "+t._s(r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.suk:"")+"\n ")])])})),e("div",{attrs:{slot:"content"},slot:"content"},t._l(n._info,(function(r,n){return e("div",{key:n},[r.cart_info.is_gift?e("p",{staticClass:"font-color-red"},[t._v("赠品")]):t._e(),e("p",[t._v(t._s(r.cart_info.productInfo.store_name))]),e("p",[t._v(t._s(r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.suk:""))]),e("p",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+r.cart_info.sum_price+" x "+r.cart_info.cart_num))])])})),0)],2)]}},{key:"nickname",fn:function(r){var n=r.row;return[e("a",{on:{click:function(e){return t.showUserInfo(n)}}},[t._v(t._s(n.nickname))]),null!=n.delete_time?e("span",{staticStyle:{color:"#ed4014"}},[t._v("\n (已注销)")]):t._e()]}},{key:"statusName",fn:function(r){var n=r.row;return[e("Tag",{directives:[{name:"show",rawName:"v-show",value:3==n.status,expression:"row.status == 3"}],attrs:{color:"default",size:"medium"}},[t._v(t._s(n.status_name.status_name))]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:4==n.status,expression:"row.status == 4"}],attrs:{color:"orange",size:"medium"}},[t._v(t._s(n.status_name.status_name))]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:1==n.status||2==n.status||5==n.status,expression:"row.status == 1 || row.status == 2 || row.status == 5"}],attrs:{color:"orange",size:"medium"}},[/<\/?[a-z][\s\S]*>/i.test(n.status_name.status_name)?e("span",{domProps:{innerHTML:t._s(n.status_name.status_name)}}):e("span",[t._v(t._s(n.status_name.status_name))])]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:0==n.status,expression:"row.status == 0"}],attrs:{color:"red",size:"medium"}},[/<\/?[a-z][\s\S]*>/i.test(n.status_name.status_name)?e("span",{domProps:{innerHTML:t._s(n.status_name.status_name)}}):e("span",[t._v(t._s(n.status_name.status_name))])]),!n.is_all_refund&&n.refund.length?e("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("部分退款中")]):t._e(),n.is_all_refund&&n.refund.length&&6!=n.refund_type?e("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("退款中")]):t._e(),n.status_name.pics?e("div",{staticClass:"pictrue-box",attrs:{size:"medium"}},t._l(n.status_name.pics||[],(function(t,r){return e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:r},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:t}})])})),0):t._e()]}},{key:"refund_type",fn:function(r){var n=r.row;return[1==n.refund_type?e("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("仅退款")]):t._e(),2==n.refund_type?e("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("退货退款")]):t._e(),3==n.refund_type?e("Tag",{attrs:{color:"red",size:"medium"}},[t._v("拒绝退款")]):t._e(),4==n.refund_type?e("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("商品待退货")]):t._e(),5==n.refund_type?e("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("退货待收货")]):t._e(),6==n.refund_type?e("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已退款")]):t._e()]}},{key:"action",fn:function(r){var n=r.row;return[e("a",{on:{click:function(e){return t.changeMenu(n,"2")}}},[t._v("详情")]),"未发货"===n.status_name.status_name?e("Divider",{attrs:{type:"vertical"}}):t._e(),"未发货"===n.status_name.status_name?e("a",{on:{click:function(e){return t.btnClick(n)}}},[t._v("提醒发货")]):t._e()]}},{key:"refund_action",fn:function(r){var n=r.row;return[e("a",[t._v("立即退款")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.actionFn(n)}}},[t._v("详情")])]}}])},[e("template",{slot:"refundStatus"},[e("Tag",{attrs:{type:"border",color:"red"}},[t._v("仅退款")])],1)],2),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.page.total,current:t.page.pageNum,"show-elevator":"","show-total":"","page-size":t.page.pageSize,"show-sizer":""},on:{"on-change":t.pageChange,"on-page-size-change":t.limitChange}})],1),e("Supplierdetails",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId,"row-active":t.rowActive,openErp:t.openErp,formType:1}}),e("Distribution",{ref:"distshow"}),e("order-send",{ref:"send"}),e("order-remark",{ref:"remarks",attrs:{orderId:t.orderId},on:{submitFail:t.submitFail}}),e("user-details",{ref:"userDetails",attrs:{fromType:"order"}}),e("order-record",{ref:"record"})],1)}),[],!1,null,"8d7a32ec",null).exports),D=r("2f62"),L=r("0b65");function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */E=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,o=Object.create(i.prototype),s=new T(n||[]);return a(o,"_invoke",{value:k(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",v="completed",h={};function _(){}function y(){}function g(){}var b={};c(b,o,(function(){return this}));var w=Object.getPrototypeOf,I=w&&w(w(P([])));I&&I!==r&&n.call(I,o)&&(b=I);var x=g.prototype=_.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(a,i,o,s){var l=d(t[a],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==S(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function k(e,r,n){var a=f;return function(i,o){if(a===m)throw Error("Generator is already running");if(a===v){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var l=O(s,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=d(e,r,n);if("normal"===c.type){if(a=n.done?v:p,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(S(e)+" is not iterable")}return y.prototype=g,a(x,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:y,configurable:!0}),y.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},C(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new j(u(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},C(x),c(x,l,"Generator"),c(x,o,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}function T(t,e,r,n,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,a)}function P(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){T(i,n,a,o,s,"next",t)}function s(t){T(i,n,a,o,s,"throw",t)}o(void 0)}))}}function $(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach((function(e){M(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function M(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==S(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var F={name:"",components:{tabList:O,expandRow:y.a},props:{},data:function(){return{options:L.a,ruleValidate:{},formValidate:{status:"",pay_type:"",data:"",field_key:"",real_name:"",type:"",supplier_id:""},page:{total:0,pageNum:1,pageSize:10},grid:{xl:7,lg:12,md:24,sm:24,xs:24},timeVal:[],supplierName:[],typeList:[{label:"全部订单",val:""},{label:"普通订单",val:"0"},{label:"秒杀订单",val:"1"},{label:"拼团订单",val:"3"},{label:"砍价订单",val:"2"},{label:"预售商品",val:"8"}],payList:[{label:"全部",val:""},{label:"微信支付",val:"1"},{label:"支付宝支付",val:"4"},{label:"余额支付",val:"2"},{label:"线下支付",val:"3"}],cityList:[{value:"beijing",label:"北京市"},{value:"shanghai",label:"上海市"},{value:"shenzhen",label:"深圳市"},{value:"hangzhou",label:"杭州市"}],orderList:[],columns:[{type:"expand",width:30,render:function(t,e){return t(y.a,{props:{row:e.row}})}},{title:"订单号",align:"center",slot:"order_id",minWidth:180},{title:"商品信息",slot:"info",minWidth:330,align:"left"},{title:"供应商名称",key:"supplier_name",minWidth:80},{title:"用户信息",slot:"nickname",minWidth:100},{title:"实际支付",key:"pay_price",minWidth:70},{title:"支付方式",key:"pay_type_name",minWidth:110},{title:"支付时间",key:"_pay_time",minWidth:150},{title:"订单类型",key:"pink_name",minWidth:120},{title:"订单状态",slot:"statusName",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:170,align:"left"}]}},computed:N(N({},Object(D.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),watch:{},created:function(){this.getSupplierList(),this.getList()},mounted:function(){},methods:{searchOrder:function(){this.page.pageNum=1,this.getList()},onchangeTime:function(t){"00:00:00"===t[1].slice(-8)?(t[1]=t[1].slice(0,-8)+"23:59:59",this.timeVal=t):this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.searchOrder()},changeGetTabs:function(){this.$refs.table.getTabs()},getSupplierList:function(){var t=this;Object(a.o)().then(function(){var e=P(E().mark((function e(r){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.supplierName=r.data;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(){var t=this,e={status:this.formValidate.status,pay_type:this.formValidate.pay_type,data:this.formValidate.data,field_key:this.formValidate.field_key,real_name:this.formValidate.real_name,supplier_id:this.formValidate.supplier_id,type:this.formValidate.type,page:this.page.pageNum,limit:this.page.pageSize};Object(a.h)(e).then(function(){var e=P(E().mark((function e(r){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.orderList=r.data.data,t.page.total=r.data.count;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},reset:function(){this.formValidate={},this.formValidate.data="",this.timeVal=[],this.page.pageNum=1,this.getList()}}},V=(r("94c2"),Object(f.a)(F,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:10}},[e("Form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition}},[e("Row",[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"时间选择:"}},[e("Date-picker",{staticClass:"input-add mr20",attrs:{editable:!1,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd HH:mm:ss",type:"datetimerange",placement:"bottom-start",placeholder:"选择时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1),e("Col",t._b({staticClass:"colhsh"},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"供应商:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.searchOrder},model:{value:t.formValidate.supplier_id,callback:function(e){t.$set(t.formValidate,"supplier_id",e)},expression:"formValidate.supplier_id"}},t._l(t.supplierName,(function(r){return e("Option",{key:r.id,attrs:{value:r.id}},[t._v(t._s(r.supplier_name))])})),1)],1)],1),e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"订单类型:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.searchOrder},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.typeList,(function(r){return e("Option",{key:r.label,attrs:{value:r.val}},[t._v(t._s(r.label))])})),1)],1)],1)],1),e("Row",[e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"订单搜索:"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入","element-id":"name",clearable:"",maxlength:"20"},model:{value:t.formValidate.real_name,callback:function(e){t.$set(t.formValidate,"real_name",e)},expression:"formValidate.real_name"}},[e("Select",{staticStyle:{width:"70px"},attrs:{slot:"prepend",clearable:"","default-label":"全部"},slot:"prepend",model:{value:t.formValidate.field_key,callback:function(e){t.$set(t.formValidate,"field_key",e)},expression:"formValidate.field_key"}},[e("Option",{attrs:{value:"all"}},[t._v("全部")]),e("Option",{attrs:{value:"order_id"}},[t._v("订单号")]),e("Option",{attrs:{value:"uid"}},[t._v("用户UID")]),e("Option",{attrs:{value:"real_name"}},[t._v("用户姓名")]),e("Option",{attrs:{value:"user_phone"}},[t._v("用户电话")]),e("Option",{attrs:{value:"title"}},[t._v("商品名称")]),e("Option",{attrs:{value:"total_num"}},[t._v("商品件数")])],1)],1)],1)],1),e("Col",t._b({},"Col",t.grid,!1),[e("FormItem",{attrs:{label:"订单状态:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.searchOrder},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[e("Option",{attrs:{value:""}},[t._v("全部")]),e("Option",{attrs:{value:"0"}},[t._v("未支付")]),e("Option",{attrs:{value:"1"}},[t._v("未发货")]),e("Option",{attrs:{value:"2"}},[t._v("待收货")]),e("Option",{attrs:{value:"3"}},[t._v("待评价")]),e("Option",{attrs:{value:"4"}},[t._v("交易完成")]),e("Option",{attrs:{value:"-4"}},[t._v("已删除")])],1)],1)],1),e("Col",{attrs:{span:"10"}},[e("FormItem",{attrs:{label:"支付方式:",prop:"real_name","label-for":"real_name"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.searchOrder},model:{value:t.formValidate.pay_type,callback:function(e){t.$set(t.formValidate,"pay_type",e)},expression:"formValidate.pay_type"}},t._l(t.payList,(function(r){return e("Option",{key:r.val,attrs:{value:r.val}},[t._v(t._s(r.label))])})),1),e("Button",{staticClass:"btn",attrs:{type:"primary"},on:{click:t.searchOrder}},[t._v("查询")]),e("Button",{staticClass:"clickBtn",on:{click:t.reset}},[t._v("重置")])],1)],1),e("Col")],1)],1)],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("tabList",{attrs:{orderList:t.orderList,columns:t.columns,page:t.page},on:{getList:t.getList,changeGetTabs:t.changeGetTabs}})],1)],1)}),[],!1,null,"7daa90c3",null));e.default=V.exports},"1da3":function(t,e,r){},"38ca":function(t,e,r){"use strict";r("63f4")},6351:function(t,e,r){},"63f4":function(t,e,r){},6683:function(t,e,r){"use strict";var n=r("73f5"),a={name:"distshow",data:function(){var t=this;return{id:0,currentid:0,modals:!1,loading:!1,orderList:[],total:0,formValidate:{page:1,limit:15,keywords:"",id:0},columns:[{title:"选择",width:60,align:"center",render:function(e,r){var a=r.row.id,i=!1;i=t.currentid===a;var o=t;return e("div",[e("Radio",{props:{value:i},on:{"on-change":function(){o.currentid=a,Object(n.R)({oid:t.id,store_id:r.row.id}).then((function(e){t.$Message.success(e.msg),t.modals=!1,o.currentid=0,t.$parent.getList(),t.$parent.closeDetail()})).catch((function(e){t.modals=!1,t.$Message.error(e.msg),o.currentid=0}))}}})])}},{title:"ID",key:"id",minWidth:50},{title:"门店图片",slot:"image",minWidth:80},{title:"门店名称",key:"name",minWidth:80},{title:"联系电话",key:"phone",minWidth:80},{title:"门店地址",key:"address",ellipsis:!0,minWidth:150},{title:"营业时间",key:"day_time",minWidth:120},{title:"营业状态",key:"status_name",minWidth:80}]}},props:{},mounted:function(){},methods:{userSearchs:function(){this.formValidate.page=1,this.getList(this.id)},getList:function(t){var e=this;this.id=t,this.formValidate.id=t,this.loading=!0,Object(n.O)(this.formValidate).then((function(t){e.orderList=t.data.list,e.total=t.data.count,e.loading=!1}))},cancel:function(t){this.modals=!1},putRemark:function(){},pageChange:function(t){this.formValidate.page=t,this.getList(this.id)}}},i=(r("c705"),r("2877")),o=Object(i.a)(a,(function(){var t=this,e=t._self._c;return e("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请选择门店",width:"850"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("div",{staticClass:"table"},[e("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":100},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"门店搜索:"}},[e("Input",{staticStyle:{width:"300px"},attrs:{search:"","enter-button":"",placeholder:"请输入门店名称/电话/地址"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.keywords,callback:function(e){t.$set(t.formValidate,"keywords",e)},expression:"formValidate.keywords"}})],1)],1),e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var r=t.row;return t.index,[e("img",{attrs:{src:r.image}})]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"})])}),[],!1,null,"13880a88",null);e.a=o.exports},"93b4":function(t,e,r){},"94c2":function(t,e,r){"use strict";r("e935")},"9d84":function(t,e,r){"use strict";r("93b4")},a26c:function(t,e,r){"use strict";r("d6d2")},a3fe:function(t,e,r){"use strict";r("0bce")},a464:function(t,e,r){"use strict";var n={name:"table-expand",props:{row:Object}},a=(r("0de1"),r("2877")),i=Object(a.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"tdinfo"},[e("Row",{staticClass:"expand-row"},[e("Col",{attrs:{span:"8"}},[e("span",{staticClass:"expand-key"},[t._v("商品总价:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.total_price)}})]),e("Col",{attrs:{span:"8"}},[e("span",{staticClass:"expand-key"},[t._v("下单时间:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.add_time)}})]),e("Col",{attrs:{span:"8"}},[e("span",{staticClass:"expand-key"},[t._v("推广人:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.spread_nickname?t.row.spread_nickname:"无")}})])],1),e("Row",[e("Col",{attrs:{span:"8"}},[e("span",{staticClass:"expand-key"},[t._v("用户备注:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.mark?t.row.mark:"无")}})]),e("Col",{attrs:{span:"8"}},[e("span",{staticClass:"expand-key"},[t._v("商家备注:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.remark?t.row.remark:"无")}})])],1)],1)}),[],!1,null,"b662070e",null);e.a=i.exports},a6b9:function(t,e,r){"use strict";r.d(e,"J",(function(){return a})),r.d(e,"n",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"y",(function(){return s})),r.d(e,"z",(function(){return l})),r.d(e,"o",(function(){return c})),r.d(e,"h",(function(){return u})),r.d(e,"b",(function(){return d})),r.d(e,"v",(function(){return f})),r.d(e,"c",(function(){return p})),r.d(e,"B",(function(){return m})),r.d(e,"j",(function(){return v})),r.d(e,"l",(function(){return h})),r.d(e,"w",(function(){return _})),r.d(e,"r",(function(){return y})),r.d(e,"s",(function(){return g})),r.d(e,"u",(function(){return b})),r.d(e,"x",(function(){return w})),r.d(e,"K",(function(){return I})),r.d(e,"t",(function(){return x})),r.d(e,"k",(function(){return C})),r.d(e,"m",(function(){return j})),r.d(e,"q",(function(){return k})),r.d(e,"A",(function(){return O})),r.d(e,"g",(function(){return D})),r.d(e,"f",(function(){return L})),r.d(e,"p",(function(){return S})),r.d(e,"i",(function(){return E})),r.d(e,"F",(function(){return T})),r.d(e,"G",(function(){return P})),r.d(e,"I",(function(){return $})),r.d(e,"d",(function(){return N})),r.d(e,"H",(function(){return M})),r.d(e,"e",(function(){return F})),r.d(e,"C",(function(){return V})),r.d(e,"E",(function(){return z})),r.d(e,"L",(function(){return A})),r.d(e,"D",(function(){return R}));var n=r("b6bd");function a(t){return Object(n.a)({url:"supplier/supplier",method:"get",params:t})}function i(t){return Object(n.a)({url:"/supplier/supplier/".concat(t),method:"get"})}function o(t){return Object(n.a)({url:"supplier/supplier",method:"post",data:t})}function s(t,e){return Object(n.a)({url:"supplier/supplier/".concat(t),method:"put",data:e})}function l(t,e){return Object(n.a)({url:"/supplier/supplier/set_status/".concat(t,"/").concat(e),method:"put"})}function c(t){return Object(n.a)({url:"/supplier/list",method:"get",params:t})}function u(t){return Object(n.a)({url:"/supplier/order/list",method:"get",params:t})}function d(t){return Object(n.a)({url:"/supplier/order/deliver_remind/".concat(t.supplier_id,"/").concat(t.id),method:"put"})}function f(t){return Object(n.a)({url:"/supplier/order/info/".concat(t),method:"get"})}function p(t){return Object(n.a)({url:"/supplier/order/distribution_info",method:"get",params:{ids:t}})}function m(t,e){return Object(n.a)({url:"/supplier/order/split_order/"+t,method:"get",params:e})}function v(t){return Object(n.a)({url:"/supplier/order/status/".concat(t.id),method:"get",params:t.datas})}function h(t){return Object(n.a)({url:"/supplier/order/refund/".concat(t),method:"get"})}function _(t){return Object(n.a)({url:"/supplier/refund/list",method:"get",params:t})}function y(t){return Object(n.a)({url:"/supplier/home/header",method:"get",params:t})}function g(t){return Object(n.a)({url:"/supplier/home/order",method:"get",params:t})}function b(t){return Object(n.a)({url:"/supplier/home/order_channel",method:"get",params:t})}function w(t){return Object(n.a)({url:"/supplier/home/order_type",method:"get",params:t})}function I(t){return Object(n.a)({url:"/supplier/supplier/login/".concat(t),method:"get"})}function x(t){return Object(n.a)({url:"/supplier/home/supplier",method:"get",params:t})}function C(t){return Object(n.a)({url:"/supplier/refund/detail/".concat(t),method:"get"})}function j(t){return Object(n.a)({url:"/supplier/refund/refund/".concat(t),method:"get"})}function k(t){return Object(n.a)({url:"/supplier/order/no_refund/".concat(t),method:"get"})}function O(t){return Object(n.a)({url:"/supplier/order/refund_integral/".concat(t),method:"get"})}function D(t){return Object(n.a)({url:"/supplier/order/distribution/".concat(t),method:"get"})}function L(t){return Object(n.a)({url:"/supplier/apply/list",method:"get",params:t})}function S(t){return Object(n.a)({url:"/supplier/apply/verify/form/".concat(t),method:"get"})}function E(t){return Object(n.a)({url:"/supplier/apply/mark/form/".concat(t),method:"get"})}function T(t){return Object(n.a)({url:"/supplier/flowing_water/fund_record_info",method:"get",params:t})}function P(t){return Object(n.a)({url:"/supplier/flowing_water/list",method:"get",params:t})}function $(t,e){return Object(n.a)({url:"/supplier/flowing_water/mark/".concat(t),method:"put",params:e})}function N(t){return Object(n.a)({url:"/export/supplierWaterExport",method:"get",params:t})}function M(t){return Object(n.a)({url:"/supplier/flowing_water/fund_record",method:"get",params:t})}function F(t){return Object(n.a)({url:"/export/supplierWaterRecord",method:"get",params:t})}function V(t){return Object(n.a)({url:"/supplier/extract/list",method:"get",params:t})}function z(t,e){return Object(n.a)({url:"/supplier/extract/verify/".concat(t),method:"post",data:e})}function A(t){return Object(n.a)({url:"/supplier/extract/transfer/".concat(t),method:"get"})}function R(t,e){return Object(n.a)({url:"/supplier/extract/mark/".concat(t),method:"post",data:e})}},add5:function(t,e,r){var n;window,n=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}({"./src/index.js":
|
|
|
/*! no static exports found */function(t,e,r){t.exports=r(/*! ./src/index.js */"./src/index.js")}}).default},t.exports=n()},c705:function(t,e,r){"use strict";r("6351")},d616:function(t,e,r){"use strict";var n=r("2f62"),a=r("add5"),i=r.n(a),o=r("f8b7");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new T(n||[]);return a(o,"_invoke",{value:D(t,r,s)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var m="suspendedStart",v="suspendedYield",h="executing",_="completed",y={};function g(){}function b(){}function w(){}var I={};d(I,o,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(P([])));C&&C!==r&&n.call(C,o)&&(I=C);var j=w.prototype=g.prototype=Object.create(I);function k(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,o,l){var c=p(t[a],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==s(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,l)}),(function(t){r("throw",t,o,l)})):e.resolve(d).then((function(t){u.value=t,o(u)}),(function(t){return r("throw",t,o,l)}))}l(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function D(e,r,n){var a=m;return function(i,o){if(a===h)throw Error("Generator is already running");if(a===_){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=p(e,r,n);if("normal"===c.type){if(a=n.done?_:v,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=_,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(s(e)+" is not iterable")}return b.prototype=w,a(j,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,d(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},k(O.prototype),d(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new O(f(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(j),d(j,u,"Generator"),d(j,o,(function(){return this})),d(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;E(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function c(t,e,r,n,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,a)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){c(i,n,a,o,s,"next",t)}function s(t){c(i,n,a,o,s,"throw",t)}o(void 0)}))}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={name:"orderSend",props:{orderId:Number,status:Number,pay_type:String},data:function(){var t=this;return{productType:0,orderStatus:0,splitSwitch:!1,formItem:{type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:"",station_type:1,delivery_type:"1",cargo_weight:0,remark:"",mark:""},modals:!1,express:[],expressTemp:[],deliveryList:[],temp:{},export_open:!0,manyFormValidate:[],stopSubmit:!1,header:[{type:"selection",width:60,align:"center"},{title:"商品信息",slot:"image",width:200,align:"center"},{title:"规格",slot:"value",align:"center",minWidth:120},{title:"商品售价",slot:"sellPrice",align:"center",minWidth:100},{title:"商品优惠价",slot:"price",align:"center",minWidth:100},{title:"总数",key:"cart_num",align:"center",minWidth:80},{title:"待发数量",key:"surplus_num",align:"center",width:180,render:function(e,r){return e("div",[e("InputNumber",{props:{min:1,max:r.row.numShow,value:r.row.surplus_num||1},on:{"on-change":function(e){r.row.surplus_num=e||1,t.manyFormValidate[r.index]=r.row,t.selectData.forEach((function(e,n){e.cart_id===r.row.cart_id&&t.selectData.splice(n,1,r.row)}))}}})])}}],selectData:[],sheetInfo:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(n.e)("admin/order",["splitOrder"])),methods:{printImg:function(t){i()({printable:t,type:"image",documentTitle:"快递信息",style:"img{\n width: 100%;\n height: 476px;\n }"})},changeDelivery:function(t){},selectOne:function(t){this.selectData=t},changeModal:function(t){t||this.cancel()},changeSplitStatus:function(t){var e=this;t&&Object(o.R)(this.orderId).then((function(t){var r=t.data;r.forEach((function(t){t.numShow=t.surplus_num})),e.manyFormValidate=r}))},changeRadio:function(t){switch(this.$refs.formItem.resetFields(),t){case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.formItem.express_temp_id="",this.formItem.express_record_type="1",this.expressTemp=[];break;case"2":this.formItem.sh_delivery="",this.sheetInfo.self_delivery_status?this.formItem.delivery_type="1":this.formItem.delivery_type="2",this.sheetInfo.dada_delivery_status?this.formItem.station_type=1:this.formItem.station_type=2;break;case"3":this.formItem.fictitious_content=""}},changeExpress:function(t){switch(t){case"2":this.formItem.delivery_name="",this.formItem.express_temp_id="",this.expressTemp=[],this.getList(2);break;case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.getList(1)}},reset:function(){this.formItem={type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",expressTemp:[],to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:"",station_type:1,delivery_type:"1",cargo_weight:0,remark:"",mark:""}},getList:function(t){var e=this,r=2===t?1:"";Object(o.j)(r).then(function(){var t=u(l().mark((function t(r){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.express=r.data,e.getSheetInfo();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)}))},putSend:function(t){var e=this,r={id:this.orderId,datas:this.formItem};if("1"===this.formItem.type&&"2"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$Message.error("快递公司不能为空");if(""===this.formItem.express_temp_id)return this.$Message.error("电子面单不能为空");if(""===this.formItem.to_name)return this.$Message.error("寄件人姓名不能为空");if(""===this.formItem.to_tel)return this.$Message.error("寄件人电话不能为空");if(!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.formItem.to_tel))return this.$Message.error("请输入正确的手机号码");if(""===this.formItem.to_addr)return this.$Message.error("寄件人地址不能为空")}if("1"===this.formItem.type&&"1"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$Message.error("快递公司不能为空");if(""===this.formItem.delivery_id)return this.$Message.error("快递单号不能为空")}if("2"===this.formItem.type){if("1"===this.formItem.delivery_type&&""===this.formItem.sh_delivery)return this.$Message.error("送货人不能为空");if("2"===this.formItem.delivery_type&&this.formItem.cargo_weight<=0)return this.$Message.error("请输入有效的重量")}this.splitSwitch?(r.datas.cart_ids=[],this.selectData.forEach((function(t){r.datas.cart_ids.push({cart_id:t.cart_id,cart_num:t.surplus_num})})),Object(o.S)(r).then((function(t){e.modals=!1,e.$Message.success(t.msg),e.$emit("submitFail"),e.reset(),e.splitSwitch=!1,t.data.dump.label&&e.printImg(t.data.dump.label)})).catch((function(t){e.$Message.error(t.msg)}))):Object(o.H)(r).then(function(){var t=u(l().mark((function t(r){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.modals=!1,e.$Message.success(r.msg),e.splitSwitch=!1,e.$emit("submitFail"),e.reset(),r.data.dump.label&&e.printImg(r.data.dump.label);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},cancel:function(t){this.modals=!1,this.orderStatus=0,this.splitSwitch=!1,this.selectData=[],this.reset()},expressChange:function(t){var e=this,r=this.express.find((function(e){return e.value===t}));void 0!==r&&(this.formItem.delivery_code=r.code,"2"===this.formItem.express_record_type&&(this.expressTemp=[],this.formItem.express_temp_id="",Object(o.w)({com:this.formItem.delivery_code}).then((function(t){e.expressTemp=t.data,t.data.length||e.$Message.error("请配置你所选快递公司的电子面单")})).catch((function(t){e.$Message.error(t.msg)}))))},getCartInfo:function(){var t=this;Object(o.R)(this.orderId).then((function(e){var r=e.data;r.forEach((function(t){t.numShow=t.surplus_num})),t.manyFormValidate=r,t.productType=r[0].product_type,3==t.productType&&(t.formItem.type="3",t.formItem.fictitious_content="")}))},getDeliveryList:function(){var t=this;Object(o.u)().then((function(e){t.deliveryList=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},getSheetInfo:function(){var t=this;Object(o.F)().then((function(e){var r=e.data;for(var n in r)r.hasOwnProperty(n)&&(t.formItem[n]=r[n]);t.export_open=void 0===r.export_open||r.export_open,t.export_open||(t.formItem.express_record_type="1"),t.formItem.to_addr=r.to_add,t.sheetInfo=r})).catch((function(e){t.$Message.error(e.msg)}))},shDeliveryChange:function(t){if(t){var e=this.deliveryList.find((function(e){return e.id===t}));this.formItem.sh_delivery_name=e.wx_name,this.formItem.sh_delivery_id=e.phone,this.formItem.sh_delivery_uid=e.uid}},expressTempChange:function(t){this.temp=this.expressTemp.find((function(e){return t===e.temp_id})),void 0===this.temp&&(this.temp={})},preview:function(){this.$refs.viewer.$viewer.show()}}},m=(r("a3fe"),r("2877")),v=Object(m.a)(p,(function(){var t=this,e=t._self._c;return e("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单发送货",closable:!1,width:"1000"},on:{"on-visible-change":t.changeModal},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?e("Form",{ref:"formItem",attrs:{model:t.formItem,"label-width":100},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"选择类型:"}},[e("RadioGroup",{on:{"on-change":t.changeRadio},model:{value:t.formItem.type,callback:function(e){t.$set(t.formItem,"type",e)},expression:"formItem.type"}},[t.productType?t._e():e("Radio",{attrs:{label:"1"}},[t._v("发货")]),!t.productType&&t.sheetInfo.city_delivery_status?e("Radio",{attrs:{label:"2"}},[t._v("送货")]):t._e(),e("Radio",{attrs:{label:"3"}},[t._v("无需配送")])],1)],1),1==t.formItem.type?e("FormItem",{directives:[{name:"show",rawName:"v-show",value:t.export_open,expression:"export_open"}],attrs:{label:"发货类型:"}},[e("RadioGroup",{on:{"on-change":t.changeExpress},model:{value:t.formItem.express_record_type,callback:function(e){t.$set(t.formItem,"express_record_type",e)},expression:"formItem.express_record_type"}},[e("Radio",{attrs:{label:"1"}},[t._v("手动填写")]),e("Radio",{attrs:{label:"2"}},[t._v("电子面单打印")])],1)],1):t._e(),e("div",[1==t.formItem.type?e("FormItem",{attrs:{label:"快递公司:",required:""}},[e("Select",{staticClass:"input-add",attrs:{filterable:"",placeholder:"请选择快递公司"},on:{"on-change":t.expressChange},model:{value:t.formItem.delivery_name,callback:function(e){t.$set(t.formItem,"delivery_name",e)},expression:"formItem.delivery_name"}},t._l(t.express,(function(r,n){return e("Option",{key:r.value,attrs:{value:r.value}},[t._v(t._s(r.value))])})),1)],1):t._e(),"1"===t.formItem.express_record_type&&1==t.formItem.type?e("FormItem",{attrs:{label:"快递单号:",required:""}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入快递单号"},model:{value:t.formItem.delivery_id,callback:function(e){t.$set(t.formItem,"delivery_id",e)},expression:"formItem.delivery_id"}}),"顺丰速运"==t.formItem.delivery_name?e("div",{staticClass:"trips"},[e("p",[t._v("顺丰请输入单号 :收件人或寄件人手机号后四位,")]),e("p",[t._v("例如:SF000000000000:3941")])]):t._e()],1):t._e(),"2"===t.formItem.express_record_type&&"1"===t.formItem.type?[e("FormItem",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择电子面单"},on:{"on-change":t.expressTempChange},model:{value:t.formItem.express_temp_id,callback:function(e){t.$set(t.formItem,"express_temp_id",e)},expression:"formItem.express_temp_id"}},t._l(t.expressTemp,(function(r,n){return e("Option",{key:n,attrs:{value:r.temp_id}},[t._v(t._s(r.title))])})),1),t.formItem.express_temp_id?e("Button",{attrs:{type:"text"},on:{click:t.preview}},[t._v("预览")]):t._e()],1),e("FormItem",{attrs:{label:"寄件人姓名:"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入寄件人姓名"},model:{value:t.formItem.to_name,callback:function(e){t.$set(t.formItem,"to_name",e)},expression:"formItem.to_name"}})],1),e("FormItem",{attrs:{label:"寄件人电话:"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入寄件人电话"},model:{value:t.formItem.to_tel,callback:function(e){t.$set(t.formItem,"to_tel",e)},expression:"formItem.to_tel"}})],1),e("FormItem",{attrs:{label:"寄件人地址:"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入寄件人地址"},model:{value:t.formItem.to_addr,callback:function(e){t.$set(t.formItem,"to_addr",e)},expression:"formItem.to_addr"}})],1)]:t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:"2"===t.formItem.type,expression:"formItem.type === '2'"}]},[e("FormItem",{attrs:{label:"配送类型:"}},[e("RadioGroup",{on:{"on-change":t.changeDelivery},model:{value:t.formItem.delivery_type,callback:function(e){t.$set(t.formItem,"delivery_type",e)},expression:"formItem.delivery_type"}},[t.sheetInfo.self_delivery_status?e("Radio",{attrs:{label:"1"}},[t._v("商家配送")]):t._e(),t.sheetInfo.dada_delivery_status||t.sheetInfo.uu_delivery_status?e("Radio",{attrs:{label:"2"}},[t._v("第三方配送")]):t._e()],1)],1),"1"===t.formItem.delivery_type?e("FormItem",{attrs:{label:"送货人:",required:""}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择送货人"},on:{"on-change":t.shDeliveryChange},model:{value:t.formItem.sh_delivery,callback:function(e){t.$set(t.formItem,"sh_delivery",e)},expression:"formItem.sh_delivery"}},t._l(t.deliveryList,(function(r,n){return e("Option",{key:n,attrs:{value:r.id}},[t._v(t._s(r.wx_name)+"("+t._s(r.phone)+")")])})),1)],1):t._e(),"2"===t.formItem.delivery_type?e("div",[e("FormItem",{attrs:{label:"配送平台:"}},[e("RadioGroup",{model:{value:t.formItem.station_type,callback:function(e){t.$set(t.formItem,"station_type",e)},expression:"formItem.station_type"}},[t.sheetInfo.dada_delivery_status?e("Radio",{attrs:{label:1}},[t._v("达达")]):t._e(),t.sheetInfo.uu_delivery_status?e("Radio",{attrs:{label:2}},[t._v("uu跑腿")]):t._e()],1)],1),e("FormItem",{attrs:{label:"包裹重量:",required:""}},[e("InputNumber",{staticClass:"input-add",attrs:{min:0},model:{value:t.formItem.cargo_weight,callback:function(e){t.$set(t.formItem,"cargo_weight",e)},expression:"formItem.cargo_weight"}}),e("span",{staticStyle:{"margin-left":"10px"}},[t._v("kg")])],1),e("FormItem",{attrs:{label:"配送备注:"}},[e("Input",{staticClass:"input-add",attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"配送备注"},model:{value:t.formItem.remark,callback:function(e){t.$set(t.formItem,"remark",e)},expression:"formItem.remark"}})],1),e("FormItem",{attrs:{label:"备注:"}},[e("Input",{staticClass:"input-add",attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:t.formItem.mark,callback:function(e){t.$set(t.formItem,"mark",e)},expression:"formItem.mark"}})],1)],1):t._e()],1),e("div",{directives:[{name:"show",rawName:"v-show",value:"3"===t.formItem.type,expression:"formItem.type === '3'"}]},[e("FormItem",{attrs:{label:"备注:"}},[e("Input",{staticClass:"input-add",attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:t.formItem.fictitious_content,callback:function(e){t.$set(t.formItem,"fictitious_content",e)},expression:"formItem.fictitious_content"}})],1)],1),t.splitOrder>1&&"3"!==t.formItem.type?e("div",[e("FormItem",{attrs:{label:"分单发货:"}},[e("i-switch",{attrs:{size:"large",disabled:8===t.orderStatus},on:{"on-change":t.changeSplitStatus},model:{value:t.splitSwitch,callback:function(e){t.splitSwitch=e},expression:"splitSwitch"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])]),e("div",{staticClass:"trips"},[e("p",[t._v("\n 可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!\n ")])]),t.splitSwitch&&t.manyFormValidate.length?e("Table",{attrs:{data:t.manyFormValidate,columns:t.header,border:""},on:{"on-selection-change":t.selectOne},scopedSlots:t._u([{key:"image",fn:function(r){var n=r.row;return r.index,[e("div",{staticClass:"product-data"},[e("img",{staticClass:"image",attrs:{src:n.cart_info.productInfo.image}}),e("div",{staticClass:"line2"},[t._v("\n "+t._s(n.cart_info.productInfo.store_name)+"\n ")])])]}},{key:"value",fn:function(r){var n=r.row;return r.index,[e("div",[t._v(t._s(n.cart_info.productInfo.attrInfo.suk))])]}},{key:"sellPrice",fn:function(r){var n=r.row;return r.index,[e("div",[t._v("\n "+t._s(n.cart_info.productInfo.attrInfo?n.cart_info.productInfo.attrInfo.price:n.cart_info.productInfo.price)+"\n ")])]}},{key:"price",fn:function(r){var n=r.row;return r.index,[e("div",[e("div",[t._v(t._s(n.cart_info.truePrice))])])]}}],null,!1,1129913299)}):t._e()],1)],1):t._e()],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:t.cancel}},[t._v("取消")]),t.stopSubmit?e("Button",{attrs:{type:"warning"}},[t._v("存在售后待处理订单")]):e("Button",{attrs:{type:"primary"},on:{click:t.putSend}},[t._v("提交")])],1),e("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:t.temp,expression:"temp"}],ref:"viewer"},[e("img",{staticClass:"display-add",attrs:{src:t.temp.pic}})])],1)}),[],!1,null,"778eb31a",null);e.a=v.exports},d6d2:function(t,e,r){},e935:function(t,e,r){}}]); |