You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
111 KiB
53 lines
111 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3f997e93","chunk-494f1fd6"],{"0584":function(t,e,r){},"0bce":function(t,e,r){},"0de1":function(t,e,r){"use strict";r("1da3")},"1da3":function(t,e,r){},"28a4":function(t,e,r){"use strict";r("86b2")},"28c3":function(t,e,r){},"31b4":function(t,e,r){"use strict";var n=r("9860"),a=r.n(n),i=r("b6bd"),o=r("2f62");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(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 c(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 d={name:"edit",components:{formCreate:a.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(o.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,default:0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e,r=this;(setTimeout((function(){r.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,e=t,Object(i.a)({url:this.FromData.action,method:this.FromData.method,data:e}).then((function(t){r.$parent.getList(),r.$Message.success(t.msg),r.modals=!1,setTimeout((function(){r.$emit("submitFail")}),1e3)})).catch((function(t){r.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},u=(r("c262"),r("2877")),f=Object(u.a)(d,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("Modal",{class:t.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{"on-submit":t.onSubmit}})],2)],1):t._e()}),[],!1,null,"2850396f",null);e.a=f.exports},"370a":function(t,e,r){"use strict";r.r(e);var n=r("a464"),a=r("f8b7"),i=r("2f62"),o=r("31b4"),s=r("fc48"),l=r("61f8"),c=r("417c"),d=r("d616"),u=r("a716"),f=r("d708");function p(t){return(p="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 m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=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 d(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new $(n||[]);return a(o,"_invoke",{value:E(t,r,s)}),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var f="suspendedStart",v="suspendedYield",h="executing",_="completed",y={};function g(){}function b(){}function w(){}var I={};c(I,o,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(T([])));C&&C!==r&&n.call(C,o)&&(I=C);var D=w.prototype=g.prototype=Object.create(I);function k(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=u(t[a],t,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==p(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(d).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 E(e,r,n){var a=f;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=S(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===f)throw a=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=u(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 S(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,S(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=u(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 O(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){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(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(p(e)+" is not iterable")}return b.prototype=w,a(D,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=c(w,l,"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,c(t,l,"GeneratorFunction")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(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(d(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(D),c(D,l,"Generator"),c(D,o,(function(){return this})),c(D,"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=T,$.prototype={constructor:$,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,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),L(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;L(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function v(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 h(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){v(i,n,a,o,s,"next",t)}function s(t){v(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 y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){g(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 g(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b={name:"table_list",components:{expandRow:n.a,editFrom:o.a,detailsFrom:s.a,orderRemark:l.a,orderRecord:c.a,orderSend:d.a,userDetails:u.a},props:["where","isAll"],data:function(){var t=this;return{roterPre:f.a.roterPre,delfromData:{},modal:!1,orderList:[],orderCards:[],loading:!1,orderId:0,columns:[{type:"expand",width:30,render:function(t,e){return t(n.a,{props:{row:e.row}})}},{width:50,align:"center",renderHeader:function(e,r){return e("div",{class:{"select-panel":!0},on:{mouseenter:function(e){t.display="block"},mouseleave:function(e){t.display="none"}}},[e("Checkbox",{props:{value:t.checkBox},on:{"on-change":function(e){t.checkBox=e,t.$refs.table.selectAll(t.checkBox),t.$emit("on-all",e?0:-1)}}}),e("div",{style:{position:"absolute",top:0,zIndex:2,display:t.display,width:"80px",height:"100%",padding:"0px 0",borderRadius:"4px",backgroundColor:"#fff",boxShadow:"0 0px 5px rgba(0, 0, 0, 0.2)",transform:"translateX(25%)"}},[e("div",{class:{"select-item":!0,on:0==t.isAll},style:{padding:"1px 6px",cursor:"pointer",height:"50%"},on:{click:function(e){0===t.isAll?(t.$emit("on-all",-1),t.checkBox=!1,t.$refs.table.selectAll(t.checkBox)):(t.$emit("on-all",0),t.formSelection.length||(t.checkBox=!0,t.$refs.table.selectAll(t.checkBox))),t.display="none"}}},"选择当页"),e("div",{class:{"select-item":!0,on:1==t.isAll},style:{padding:"1px 6px",cursor:"pointer",height:"50%"},on:{click:function(e){1===t.isAll?(t.isAll=-1,t.$emit("on-all",-1),t.checkBox=!1):(t.isAll=1,t.$emit("on-all",1),t.checkBox=!0),t.$refs.table.selectAll(t.checkBox),t.display="none"}}},"选择全部")])])},render:function(e,r){return e("Checkbox",{props:{value:r.row.checkBox},on:{"on-change":function(e){e?t.formSelection.push(r.row):(t.checkBox=!1,t.formSelection.forEach((function(e,n){e.id===r.row.id&&t.formSelection.splice(n,1)}))),t.$emit("on-all",t.formSelection.length?0:-1),r.row.checkBox=e,t.orderList[r.index].checkBox=e}},ref:"checkbox",refInFor:!0})}},{title:"订单号",align:"center",slot:"order_id",minWidth:150},{title:"订单类型",key:"pink_name",minWidth:120},{title:"用户信息",slot:"nickname",minWidth:100},{title:"商品信息",slot:"info",minWidth:330},{title:"实际支付",key:"pay_price",minWidth:70},{title:"支付时间",key:"_pay_time",minWidth:100},{title:"支付状态",key:"pay_type_name",minWidth:80},{title:"订单状态",key:"statusName",slot:"statusName",minWidth:120},{title:"操作",slot:"action",minWidth:150,align:"center"}],page:{total:0,pageNum:1,pageSize:10},data:[],FromData:null,orderDatalist:null,modalTitleSs:"",isDelIdList:[],checkBox:!1,formSelection:[],selectionCopy:[],display:"none",autoDisabled:!1,status:0}},computed:y({},Object(i.e)("admin/order",["orderPayType","orderStatus","orderTime","orderNum","fieldKey","orderType","orderChartType"])),mounted:function(){},created:function(){this.getList()},watch:{orderType:function(){this.page.pageNum=1,this.getList()},formSelection:function(t){this.$emit("order-select",t),t.length?this.$emit("auto-disabled",0):this.$emit("auto-disabled",1);var e=t.some((function(t){return 1===t.is_del}));this.getIsDel(e),this.getisDelIdListl(t)},orderList:{deep:!0,handler:function(t){var e=this;t.forEach((function(t){e.formSelection.forEach((function(e){e.id===t.id&&(t.checkBox=!0)}))}));var r=this.orderList.filter((function(t){return t.checkBox}));this.orderList.length?this.checkBox=this.orderList.length===r.length:this.checkBox=!1}}},methods:y(y({},Object(i.d)("admin/order",["getIsDel","getisDelIdListl"])),{},{selectAll:function(t){var e=this;t.length&&(this.formSelection=t,this.selectionCopy=t),this.selectionCopy.forEach((function(t,r){t.checkBox=e.checkBox,e.$set(e.orderList,r,t)}))},showUserInfo:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.getDetails(t.uid)},changeMenu:function(t,e){var r=this;switch(this.orderId=t.id,e){case"1":this.delfromData={title:"修改立即支付",url:"/order/pay_offline/".concat(t.id),method:"post",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$Message.success(t.msg),r.$emit("changeGetTabs"),r.getList()})).catch((function(t){r.$Message.error(t.msg)}));break;case"2":this.getData(t.id);break;case"3":this.$refs.record.modals=!0,this.$refs.record.getList(t.id);break;case"4":this.$refs.remarks.modals=!0;break;case"5":this.getOnlyRefundData(t.id,t.refund_type);break;case"55":this.getRefundData(t.id,t.refund_type);break;case"6":this.getRefundIntegral(t.id);break;case"7":this.getNoRefundData(t.id);break;case"8":this.delfromData={title:"修改确认收货",url:"/order/take/".concat(t.id),method:"put",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$Message.success(t.msg),r.getList()})).catch((function(t){r.$Message.error(t.msg)}));break;case"10":this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"/order/print/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$Message.success(t.msg),r.$emit("changeGetTabs"),r.getList()})).catch((function(t){r.$Message.error(t.msg)}));break;case"11":this.delfromData={title:"立即打印电子面单",info:"您确认打印此电子面单吗?",url:"/order/order_dump/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$Message.success(t.msg),r.getList()})).catch((function(t){r.$Message.error(t.msg)}));break;default:this.delfromData={title:"删除订单",url:"/order/del/".concat(t.id),method:"DELETE",ids:""},this.delOrder(t,this.delfromData)}},submitModel:function(){this.getList()},pageChange:function(t){this.page.pageNum=t,this.getList()},limitChange:function(t){this.page.pageSize=t,this.getList()},getOrderList:function(t){Object(a.U)(t).then((function(t){}))},getList:function(t){var e=this;this.page.pageNum=1===t?1:this.page.pageNum,this.loading=!0,Object(a.U)(this.$route.query.id).then(function(){var t=h(m().mark((function t(r){var n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.data,e.orderList=n.map((function(t){return 1===e.isAll?t.checkBox=!0:t.checkBox=!1,t})),e.orderCards=n.stat,e.page.total=n.count,e.$emit("on-changeCards",n.stat),e.loading=!1;case 6: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)}))},onSelectTab:function(t){this.formSelection=t;var e=t.some((function(t){return 1===t.is_del}));this.getIsDel(e),this.getisDelIdListl(t)},edit:function(t){this.getOrderData(t.id)},splitOrderDetail:function(t){this.$router.push({path:this.roterPre+"split_order",query:{id:t.id}})},delOrder:function(t,e){var r=this;1===t.is_del?this.$modalSure(e).then((function(t){r.$Message.success(t.msg),r.getList()})).catch((function(t){r.$Message.error(t.msg)})):this.$Modal.error({title:"错误!",content:"<p>您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!</p>"})},getOrderData:function(t){var e=this;Object(a.k)(t).then(function(){var t=h(m().mark((function t(r){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==r.data.status){t.next=2;break}return t.abrupt("return",e.$authLapse(r.data));case 2:e.$authLapse(r.data),e.FromData=r.data,e.$refs.edits.modals=!0;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getData:function(t){var e=this;Object(a.g)(t).then(function(){var t=h(m().mark((function t(r){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$refs.detailss.modals=!0,e.orderDatalist=r.data,e.orderDatalist.orderInfo.refund_reason_wap_img)try{e.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(e.orderDatalist.orderInfo.refund_reason_wap_img)}catch(t){e.orderDatalist.orderInfo.refund_reason_wap_img=[]}case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},submitFail:function(){this.status=0,this.getList()},getOnlyRefundData:function(t,e){var r=this;this.$modalForm(Object(a.o)(t)).then((function(){r.getList(),r.$emit("changeGetTabs")}))},getRefundData:function(t,e){var r=this;this.$route.query.orderChartType,this.delfromData={title:"是否立即退货退款",url:"/refund/agree/".concat(t),method:"get"},this.$modalSure(this.delfromData).then((function(t){r.$Message.success(t.msg),r.getList(),r.$emit("changeGetTabs")})).catch((function(t){r.$Message.error(t.msg)}))},getRefundIntegral:function(t){var e=this;Object(a.P)(t).then(function(){var t=h(m().mark((function t(r){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=r.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getNoRefundData:function(t){var e=this;this.$modalForm(Object(a.q)(t)).then((function(){e.getList(),e.$emit("changeGetTabs")}))},sendOrder:function(t){var e=this;this.$refs.send.modals=!0,this.orderId=t.id,this.status=t._status,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.$nextTick((function(r){e.$refs.send.getCartInfo(t._status,t.id)}))},delivery:function(t){var e=this;Object(a.h)(t.id).then(function(){var t=h(m().mark((function t(r){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=r.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},change:function(t){},exportData:function(){this.$refs.table.exportCsv({filename:"商品列表"})},bindWrite:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"确定要核销该订单吗?",cancelText:"取消",closable:!0,maskClosable:!0,onOk:function(){Object(a.Y)(t.order_id).then((function(t){e.$Message.success(t.msg),e.getList()}))},onCancel:function(){}})},onSelectCancel:function(t,e){}})},w=(r("28a4"),r("2877")),I=Object(w.a)(b,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{title:"子订单列表","hidden-breadcrumb":""}})],1),e("Table",{ref:"table",staticClass:"orderData mt25",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},on:{"on-selection-change":t.onSelectTab,"on-select-all":t.selectAll,"on-select-all-cancel":t.selectAll,"on-select-cancel":t.onSelectCancel},scopedSlots:t._u([{key:"order_id",fn:function(r){var n=r.row;return r.index,[e("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(n.order_id)}}),e("span",{directives:[{name:"show",rawName:"v-show",value:1===n.is_del,expression:"row.is_del === 1"}],staticClass:"span-del"},[t._v("用户已删除")])]}},{key:"nickname",fn:function(r){var n=r.row;return r.index,[e("a",{on:{click:function(e){return t.showUserInfo(n)}}},[t._v(t._s(n.nickname))])]}},{key:"info",fn:function(r){var n=r.row;return r.index,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"},[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("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+r.cart_info.truePrice+" x "+r.cart_info.cart_num))])])}))}},{key:"statusName",fn:function(r){var n=r.row;return r.index,[e("div",{staticClass:"pt5",domProps:{innerHTML:t._s(n.status_name.status_name)}}),e("div",{staticClass:"pictrue-box"},t._l(n.status_name.pics||[],(function(r,a){return n.status_name.pics?e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:a},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:r}})]):t._e()})),0)]}},{key:"action",fn:function(r){var n=r.row;return r.index,[1===n._status?e("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]):t._e(),2!==n._status&&8!==n._status||1!==n.shipping_type||null!==n.pinkStatus&&2!==n.pinkStatus?t._e():e("a",{on:{click:function(e){return t.sendOrder(n)}}},[t._v("发送货")]),4===n._status?e("a",{on:{click:function(e){return t.delivery(n)}}},[t._v("配送信息")]):t._e(),2==n.shipping_type&&0==n.status&&1==n.paid&&0===n.refund_status?e("a",{on:{click:function(e){return t.bindWrite(n)}}},[t._v("立即核销")]):t._e(),2===n._status||8===n._status?e("Divider",{attrs:{type:"vertical"}}):t._e(),8===n._status?e("a",{on:{click:function(e){return t.splitOrderDetail(n)}}},[t._v("查看子订单")]):t._e(),1===n._status||(2===n._status||8===n._status)&&(null===n.pinkStatus||2===n.pinkStatus)||4===n._status||2==n.shipping_type&&0==n.status&&1==n.paid&&0===n.refund_status?e("Divider",{attrs:{type:"vertical"}}):t._e(),[e("Dropdown",{on:{"on-click":function(e){return t.changeMenu(n,e)}}},[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:{name:"1"}},[t._v("立即支付")]),e("DropdownItem",{attrs:{name:"2"}},[t._v("订单详情")]),e("DropdownItem",{attrs:{name:"3"}},[t._v("订单记录")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:n._status>=3&&n.express_dump,expression:"row._status >= 3 && row.express_dump"}],attrs:{name:"11"}},[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,expression:"row.refund_type != 2 && row.refund_type != 4 && row.refund_type != 6 && row.paid==1 && row.refund_status !==2 && parseFloat(row.pay_price) > 0"}],attrs:{name:"5"}},[t._v("立即退款")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:2==n.refund_type,expression:"row.refund_type == 2"}],attrs:{name:"55"}},[t._v("同意退货")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:4===n._status,expression:"row._status === 4"}],attrs:{name:"8"}},[t._v("已收货")]),1==n.is_del?e("DropdownItem",{attrs:{name:"9"}},[t._v("删除订单")]):t._e()],1)],1)]]}}])}),e("div",{staticClass:"acea-row row-right page"}),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),e("user-details",{ref:"userDetails"}),e("details-from",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId}}),e("order-remark",{ref:"remarks",attrs:{orderId:t.orderId},on:{submitFail:t.submitFail}}),e("order-record",{ref:"record"}),e("order-send",{ref:"send",attrs:{orderId:t.orderId,status:t.status},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"3ce73bd8",null);e.default=I.exports},"5d3b":function(t,e,r){"use strict";r("0584")},"86b2":function(t,e,r){},a3fe:function(t,e,r){"use strict";r("0bce")},a461:function(t,e,r){"use strict";r("28c3")},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},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":
|
|
/*!**********************!*\
|
|
!*** ./src/index.js ***!
|
|
\**********************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e),r(/*! ./sass/index.scss */"./src/sass/index.scss");var n=r(/*! ./js/init */"./src/js/init.js").default.init;"undefined"!=typeof window&&(window.printJS=n),e.default=n},"./src/js/browser.js":
|
|
/*!***************************!*\
|
|
!*** ./src/js/browser.js ***!
|
|
\***************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n={isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!n.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}};e.default=n},"./src/js/functions.js":
|
|
/*!*****************************!*\
|
|
!*** ./src/js/functions.js ***!
|
|
\*****************************/
|
|
/*! exports provided: addWrapper, capitalizePrint, collectStyles, addHeader, cleanUp, isRawHTML */function(t,e,r){"use strict";r.r(e),r.d(e,"addWrapper",(function(){return o})),r.d(e,"capitalizePrint",(function(){return s})),r.d(e,"collectStyles",(function(){return l})),r.d(e,"addHeader",(function(){return d})),r.d(e,"cleanUp",(function(){return u})),r.d(e,"isRawHTML",(function(){return f}));var n=r(/*! ./modal */"./src/js/modal.js"),a=r(/*! ./browser */"./src/js/browser.js");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 o(t,e){return'<div style="font-family:'+e.font+" !important; font-size: "+e.font_size+' !important; width:100%;">'+t+"</div>"}function s(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,e){for(var r="",n=(document.defaultView||window).getComputedStyle(t,""),a=0;a<n.length;a++)(-1!==e.targetStyles.indexOf("*")||-1!==e.targetStyle.indexOf(n[a])||c(e.targetStyles,n[a]))&&n.getPropertyValue(n[a])&&(r+=n[a]+":"+n.getPropertyValue(n[a])+";");return r+"max-width: "+e.maxWidth+"px !important; font-size: "+e.font_size+" !important;"}function c(t,e){for(var r=0;r<t.length;r++)if("object"===i(e)&&-1!==e.indexOf(t[r]))return!0;return!1}function d(t,e){var r=document.createElement("div");if(f(e.header))r.innerHTML=e.header;else{var n=document.createElement("h1"),a=document.createTextNode(e.header);n.appendChild(a),n.setAttribute("style",e.headerStyle),r.appendChild(n)}t.insertBefore(r,t.childNodes[0])}function u(t){t.showModal&&n.default.close(),t.onLoadingEnd&&t.onLoadingEnd(),(t.showModal||t.onLoadingStart)&&window.URL.revokeObjectURL(t.printable);var e="mouseover";(a.default.isChrome()||a.default.isFirefox())&&(e="focus"),window.addEventListener(e,(function r(){window.removeEventListener(e,r),t.onPrintDialogClose();var n=document.getElementById(t.frameId);n&&n.remove()}))}function f(t){return new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(t)}},"./src/js/html.js":
|
|
/*!************************!*\
|
|
!*** ./src/js/html.js ***!
|
|
\************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ./functions */"./src/js/functions.js"),a=r(/*! ./print */"./src/js/print.js");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)}e.default={print:function(t,e){var r,o="object"===i(r=t.printable)&&r&&(r instanceof HTMLElement||1===r.nodeType)?t.printable:document.getElementById(t.printable);o?(t.printableElement=function t(e,r){for(var a=e.cloneNode(),i=Array.prototype.slice.call(e.childNodes),o=0;o<i.length;o++)if(-1===r.ignoreElements.indexOf(i[o].id)){var s=t(i[o],r);a.appendChild(s)}switch(r.scanStyles&&1===e.nodeType&&a.setAttribute("style",Object(n.collectStyles)(e,r)),e.tagName){case"SELECT":a.value=e.value;break;case"CANVAS":a.getContext("2d").drawImage(e,0,0)}return a}(o,t),t.header&&Object(n.addHeader)(t.printableElement,t),a.default.send(t,e)):window.console.error("Invalid HTML element id: "+t.printable)}}},"./src/js/image.js":
|
|
/*!*************************!*\
|
|
!*** ./src/js/image.js ***!
|
|
\*************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ./functions */"./src/js/functions.js"),a=r(/*! ./print */"./src/js/print.js"),i=r(/*! ./browser */"./src/js/browser.js");e.default={print:function(t,e){t.printable.constructor!==Array&&(t.printable=[t.printable]),t.printableElement=document.createElement("div"),t.printable.forEach((function(e){var r=document.createElement("img");if(r.setAttribute("style",t.imageStyle),r.src=e,i.default.isFirefox()){var n=r.src;r.src=n}var a=document.createElement("div");a.appendChild(r),t.printableElement.appendChild(a)})),t.header&&Object(n.addHeader)(t.printableElement,t),a.default.send(t,e)}}},"./src/js/init.js":
|
|
/*!************************!*\
|
|
!*** ./src/js/init.js ***!
|
|
\************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ./browser */"./src/js/browser.js"),a=r(/*! ./modal */"./src/js/modal.js"),i=r(/*! ./pdf */"./src/js/pdf.js"),o=r(/*! ./html */"./src/js/html.js"),s=r(/*! ./raw-html */"./src/js/raw-html.js"),l=r(/*! ./image */"./src/js/image.js"),c=r(/*! ./json */"./src/js/json.js");function d(t){return(d="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)}var u=["pdf","html","image","json","raw-html"];e.default={init:function(){var t={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(t){throw t},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},e=arguments[0];if(void 0===e)throw new Error("printJS expects at least 1 attribute.");switch(d(e)){case"string":t.printable=encodeURI(e),t.fallbackPrintable=t.printable,t.type=arguments[1]||t.type;break;case"object":for(var r in t.printable=e.printable,t.fallbackPrintable=void 0!==e.fallbackPrintable?e.fallbackPrintable:t.printable,t.fallbackPrintable=t.base64?"data:application/pdf;base64,".concat(t.fallbackPrintable):t.fallbackPrintable,t)"printable"!==r&&"fallbackPrintable"!==r&&(t[r]=void 0!==e[r]?e[r]:t[r]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+d(e))}if(!t.printable)throw new Error("Missing printable information.");if(!t.type||"string"!=typeof t.type||-1===u.indexOf(t.type.toLowerCase()))throw new Error("Invalid print type. Available types are: pdf, html, image and json.");t.showModal&&a.default.show(t),t.onLoadingStart&&t.onLoadingStart();var f=document.getElementById(t.frameId);f&&f.parentNode.removeChild(f);var p=document.createElement("iframe");switch(n.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",t.frameId),"pdf"!==t.type&&(p.srcdoc="<html><head><title>"+t.documentTitle+"</title>",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach((function(t){p.srcdoc+='<link rel="stylesheet" href="'+t+'">'}))),p.srcdoc+="</head><body></body></html>"),t.type){case"pdf":if(n.default.isIE())try{window.open(t.fallbackPrintable,"_blank").focus(),t.onIncompatibleBrowser()}catch(e){t.onError(e)}finally{t.showModal&&a.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else i.default.print(t,p);break;case"image":l.default.print(t,p);break;case"html":o.default.print(t,p);break;case"raw-html":s.default.print(t,p);break;case"json":c.default.print(t,p)}}}},"./src/js/json.js":
|
|
/*!************************!*\
|
|
!*** ./src/js/json.js ***!
|
|
\************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ./functions */"./src/js/functions.js"),a=r(/*! ./print */"./src/js/print.js");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)}e.default={print:function(t,e){if("object"!==i(t.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!=typeof t.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!t.properties||!Array.isArray(t.properties))throw new Error("Invalid properties array for your JSON data.");t.properties=t.properties.map((function(e){return{field:"object"===i(e)?e.field:e,displayName:"object"===i(e)?e.displayName:e,columnSize:"object"===i(e)&&e.columnSize?e.columnSize+";":100/t.properties.length+"%;"}})),t.printableElement=document.createElement("div"),t.header&&Object(n.addHeader)(t.printableElement,t),t.printableElement.innerHTML+=function(t){var e=t.printable,r=t.properties,a='<table style="border-collapse: collapse; width: 100%;">';t.repeatTableHeader&&(a+="<thead>"),a+="<tr>";for(var i=0;i<r.length;i++)a+='<th style="width:'+r[i].columnSize+";"+t.gridHeaderStyle+'">'+Object(n.capitalizePrint)(r[i].displayName)+"</th>";a+="</tr>",t.repeatTableHeader&&(a+="</thead>"),a+="<tbody>";for(var o=0;o<e.length;o++){a+="<tr>";for(var s=0;s<r.length;s++){var l=e[o],c=r[s].field.split(".");if(c.length>1)for(var d=0;d<c.length;d++)l=l[c[d]];else l=l[r[s].field];a+='<td style="width:'+r[s].columnSize+t.gridStyle+'">'+l+"</td>"}a+="</tr>"}return a+"</tbody></table>"}(t),a.default.send(t,e)}}},"./src/js/modal.js":
|
|
/*!*************************!*\
|
|
!*** ./src/js/modal.js ***!
|
|
\*************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n={show:function(t){var e=document.createElement("div");e.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),e.setAttribute("id","printJS-Modal");var r=document.createElement("div");r.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var a=document.createElement("div");a.setAttribute("class","printClose"),a.setAttribute("id","printClose"),r.appendChild(a);var i=document.createElement("span");i.setAttribute("class","printSpinner"),r.appendChild(i);var o=document.createTextNode(t.modalMessage);r.appendChild(o),e.appendChild(r),document.getElementsByTagName("body")[0].appendChild(e),document.getElementById("printClose").addEventListener("click",(function(){n.close()}))},close:function(){var t=document.getElementById("printJS-Modal");t&&t.parentNode.removeChild(t)}};e.default=n},"./src/js/pdf.js":
|
|
/*!***********************!*\
|
|
!*** ./src/js/pdf.js ***!
|
|
\***********************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ./print */"./src/js/print.js"),a=r(/*! ./functions */"./src/js/functions.js");function i(t,e,r){var a=new window.Blob([r],{type:"application/pdf"});a=window.URL.createObjectURL(a),e.setAttribute("src",a),n.default.send(t,e)}e.default={print:function(t,e){if(t.base64){var r=Uint8Array.from(atob(t.printable),(function(t){return t.charCodeAt(0)}));i(t,e,r)}else{t.printable=/^(blob|http|\/\/)/i.test(t.printable)?t.printable:window.location.origin+("/"!==t.printable.charAt(0)?"/"+t.printable:t.printable);var n=new window.XMLHttpRequest;n.responseType="arraybuffer",n.addEventListener("error",(function(){Object(a.cleanUp)(t),t.onError(n.statusText,n)})),n.addEventListener("load",(function(){if(-1===[200,201].indexOf(n.status))return Object(a.cleanUp)(t),void t.onError(n.statusText,n);i(t,e,n.response)})),n.open("GET",t.printable,!0),n.send()}}}},"./src/js/print.js":
|
|
/*!*************************!*\
|
|
!*** ./src/js/print.js ***!
|
|
\*************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ./browser */"./src/js/browser.js"),a=r(/*! ./functions */"./src/js/functions.js"),i={send:function(t,e){document.getElementsByTagName("body")[0].appendChild(e);var r=document.getElementById(t.frameId);r.onload=function(){if("pdf"!==t.type){var e=r.contentWindow||r.contentDocument;if(e.document&&(e=e.document),e.body.appendChild(t.printableElement),"pdf"!==t.type&&t.style){var a=document.createElement("style");a.innerHTML=t.style,e.head.appendChild(a)}var i=e.getElementsByTagName("img");i.length>0?function(t){var e=t.map((function(t){if(t.src&&t.src!==window.location.href)return function(t){return new Promise((function(e){!function r(){t&&void 0!==t.naturalWidth&&0!==t.naturalWidth&&t.complete?e():setTimeout(r,500)}()}))}(t)}));return Promise.all(e)}(Array.from(i)).then((function(){return o(r,t)})):o(r,t)}else n.default.isFirefox()?setTimeout((function(){return o(r,t)}),1e3):o(r,t)}}};function o(t,e){try{if(t.focus(),n.default.isEdge()||n.default.isIE())try{t.contentWindow.document.execCommand("print",!1,null)}catch(e){t.contentWindow.print()}else t.contentWindow.print()}catch(t){e.onError(t)}finally{n.default.isFirefox()&&(t.style.visibility="hidden",t.style.left="-1px"),Object(a.cleanUp)(e)}}e.default=i},"./src/js/raw-html.js":
|
|
/*!****************************!*\
|
|
!*** ./src/js/raw-html.js ***!
|
|
\****************************/
|
|
/*! exports provided: default */function(t,e,r){"use strict";r.r(e);var n=r(/*! ./print */"./src/js/print.js");e.default={print:function(t,e){t.printableElement=document.createElement("div"),t.printableElement.setAttribute("style","width:100%"),t.printableElement.innerHTML=t.printable,n.default.send(t,e)}}},"./src/sass/index.scss":
|
|
/*!*****************************!*\
|
|
!*** ./src/sass/index.scss ***!
|
|
\*****************************/
|
|
/*! no static exports found */function(t,e,r){},0:
|
|
/*!****************************!*\
|
|
!*** multi ./src/index.js ***!
|
|
\****************************/
|
|
/*! no static exports found */function(t,e,r){t.exports=r(/*! ./src/index.js */"./src/index.js")}}).default},t.exports=n()},c262:function(t,e,r){"use strict";r("c54c")},c54c:function(t,e,r){},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",d=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=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 $(n||[]);return a(o,"_invoke",{value:E(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={};u(I,o,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(T([])));C&&C!==r&&n.call(C,o)&&(I=C);var D=w.prototype=g.prototype=Object.create(I);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(a,i,o,l){var c=p(t[a],t,i);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==s(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,l)}),(function(t){r("throw",t,o,l)})):e.resolve(u).then((function(t){d.value=t,o(d)}),(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 E(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=S(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 S(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,S(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 O(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){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(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(D,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,d,"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,u(t,d,"GeneratorFunction")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new j(f(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(D),u(D,d,"Generator"),u(D,o,(function(){return this})),u(D,"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=T,$.prototype={constructor:$,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,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),L(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;L(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(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 d(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 u(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?u(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(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=d(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=d(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},fc48:function(t,e,r){"use strict";var n=r("f8b7");function a(t){return(a="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 i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),s=new $(n||[]);return o(i,"_invoke",{value:E(t,r,s)}),i}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={};u(I,l,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(T([])));C&&C!==r&&n.call(C,l)&&(I=C);var D=w.prototype=g.prototype=Object.create(I);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(i,o,s,l){var c=p(t[i],t,o);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==a(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(u).then((function(t){d.value=t,s(d)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var i;o(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 E(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=S(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 S(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,S(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 O(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){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(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 i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(a(e)+" is not iterable")}return b.prototype=w,o(D,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,d,"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,u(t,d,"GeneratorFunction")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},k(j.prototype),u(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new j(f(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(D),u(D,d,"Generator"),u(D,l,(function(){return this})),u(D,"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=T,$.prototype={constructor:$,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,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),L(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;L(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function o(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 s(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function s(t){o(i,n,a,s,l,"next",t)}function l(t){o(i,n,a,s,l,"throw",t)}s(void 0)}))}}var l={components:{template:r("6112").default},name:"orderDetails",filters:{invoiceType:function(t){return 1==t?"电子普通发票":"纸质专用发票"},invoiceHeaderType:function(t){return 1==t?"个人":"企业"}},data:function(){return{isShow:0,modal2:!1,modals:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},result:[],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:"订单号",slot:"order_id",minWidth:100},{title:"商品信息",slot:"product",minWidth:250},{title:"发货信息",slot:"deliveryInfo",minWidth:100},{title:"操作",slot:"action",minWidth:90}],recordData:[],activeName:"detail",orderData:{},splitList:[],logisticsChecked:{delivery_name:"",delivery_id:""}}},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:{openItemLogistics:function(t){var e=this;this.logisticsChecked.delivery_name=t.delivery_name,this.logisticsChecked.delivery_id=t.delivery_id,this.modal2=!0,Object(n.i)(t.id).then(function(){var t=s(i().mark((function t(r){return i().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)}))},openLogistics:function(){this.logisticsChecked.delivery_name=this.orderDatalist.orderInfo.delivery_name,this.logisticsChecked.delivery_id=this.orderDatalist.orderInfo.delivery_id,this.modal2=!0,this.getOrderData()},btnClick:function(t){var e=this,r={supplier_id:t.supplier_id,id:t.id};Object(n.Q)(r).then(function(){var t=s(i().mark((function t(r){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getOrderData:function(){var t=this;Object(n.i)(this.formType?this.orderDatalist.orderInfo.id:this.orderDatalist.orderInfo.store_order_id).then(function(){var e=s(i().mark((function e(r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.result=r.data.result;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getSplitOrder:function(t){var e=this;t&&Object(n.T)(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(n.l)(r).then(function(){var t=s(i().mark((function t(r){return i().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)}))},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)},edit:function(t,e){e?this.$parent.edit(t):this.$parent.edit(this.rowActive)},sendOrder:function(t,e){e?this.$parent.sendOrder(t,e):this.$parent.sendOrder(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)}},computed:{}},c=(r("a461"),r("5d3b"),r("2877")),d=Object(c.a)(l,(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",[1===t.orderData._status_new&&0===t.orderData.paid&&"offline"===t.orderData.pay_type?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("1")}}},[t._v("立即支付\n ")]):t._e(),2!=t.orderData._status_new||t.rowActive.split.length||t.formType&&t.orderData.refund.length?t._e():e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.distribution}},[t._v("分配\n ")]),1==t.orderData._status_new?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.edit}},[t._v("编辑\n ")]):t._e(),2!==t.orderData._status_new&&8!==t.orderData._status_new&&4!==t.orderData.status||1!==t.orderData.shipping_type||null!==t.orderData.pinkStatus&&2!==t.orderData.pinkStatus?t._e():e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.sendOrder}},[t._v("发送货\n ")]),4!==t.orderData._status_new||t.rowActive.split.length?t._e():e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.delivery}},[t._v("\n 配送信息\n ")]),2==t.orderData.shipping_type&&0==t.orderData.status&&1==t.orderData.paid&&0===t.orderData.refund_status?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.bindWrite}},[t._v("立即核销\n ")]):t._e(),t.orderData._status_new>=2?e("Button",{on:{click:function(e){return t.changeMenu("10")}}},[t._v("小票打印")]):t._e(),t.orderData._status_new>=3&&t.orderData.express_dump?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("11")}}},[t._v("电子面单打印\n ")]):t._e(),t.orderData.kuaidi_label?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("13")}}},[t._v("快递面单打印\n\t\t\t ")]):t._e(),1!=t.orderData.apply_type&&5!=t.orderData.refund_type&&(4!=t.orderData.refund_type||3!=t.orderData.apply_type)||[3,6].includes(t.orderData.refund_type)||!(parseFloat(t.orderData.pay_price)>parseFloat(t.orderData.refunded_price)||0==t.orderData.pay_price)||t.formType?t._e():e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("5")}}},[t._v("立即退款\n ")]),[2,3].includes(t.orderData.apply_type)&&[0,1,2].includes(t.orderData.refund_type)&&!t.formType?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("55")}}},[t._v("同意退货\n ")]):t._e(),[0,1,2,5].includes(t.orderData.refund_type)&&!t.formType?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("7")}}},[t._v("不退款\n ")]):t._e(),t.formType?t._e():e("Button",{on:{click:function(e){return t.changeMenu("4")}}},[t._v("售后备注")]),1==t.orderData.is_del?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("9")}}},[t._v("删除订单\n ")]):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&&4!=t.orderData.refund_type&&6!=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.pid?t._e():e("DropdownItem",{attrs:{disabled:t.openErp,name:"5"}},[t._v("立即退款\n ")]),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",[0==t.orderData.refund_type&&1==t.orderData.apply_type?e("div",{staticClass:"value1"},[t._v("\n 仅退款\n ")]):0!=t.orderData.refund_type||2!=t.orderData.apply_type&&3!=t.orderData.apply_type?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("div",{staticClass:"value1"},[t._v("\n 退货退款\n ")])])]),t.orderData.orderStatus?e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("主订单状态")]),e("div",[e("div",[t._v("\n "+t._s(t.orderData.orderStatus._title)+"\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)||parseFloat(t.orderDatalist.orderInfo.refunded_price)?e("li",{staticClass:"item"},[e("div",[t._v("退款金额:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.refunded_price)?parseFloat(t.orderDatalist.orderInfo.refunded_price):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:"mt10"},[e("div",{staticClass:"value"},[t._v("\n 收货电话:"+t._s(t.orderDatalist.orderInfo.user_phone||"-")+"\n ")])])]),e("ul",{staticClass:"list"},[e("li",{staticClass:"mt10"},[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.supplier_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 ")])]),2==t.orderDatalist.orderInfo.invoice.type?e("li",{staticClass:"item"},[e("div",[t._v("开户银行:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.bank||"-")+"\n ")])]):t._e(),2==t.orderDatalist.orderInfo.invoice.type?e("li",{staticClass:"item"},[e("div",[t._v("企业地址:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.address||"-")+"\n ")])]):t._e(),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:"row.productInfo.attrInfo ? row.productInfo.attrInfo.image : row.productInfo.image"}]})]),e("div",{staticClass:"title"},[e("div",{staticClass:"line2"},[n.is_gift?e("span",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),t._v("\n "+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,983416924)})],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),t.splitList.length?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:"order_id",fn:function(r){var n=r.row;return[e("div",[t._v(t._s(n.order_id))]),n.supplier_name?e("span",{staticClass:"supplierName"},[t._v("["+t._s(n.supplier_name)+"]")]):t._e(),n.store_name?e("span",{staticClass:"supplierName"},[t._v("["+t._s(n.store_name)+"]")]):t._e()]}},{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",{key:n,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:"j.cart_info.productInfo.attrInfo ? j.cart_info.productInfo.attrInfo.image : j.cart_info.productInfo.image"}]})]),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?["express"==n.delivery_type?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(),"send"==n.delivery_type?e("div",[t._v("\n 快递单号:"),e("span",{staticStyle:{color:"#1890ff"}},[t._v(t._s(n.delivery_id))])]):t._e()]:t._e()]}},{key:"action",fn:function(r){var n=r.row;return r.index,[2!==n._status||n.supplier_name?t._e():e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.distribution(n,1)}}},[t._v("分配")]),2!==n._status||n.supplier_name||0!=n.store_id?t._e():e("Divider",{attrs:{type:"vertical"}}),1===n._status?e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.edit(n,1)}}},[t._v("编辑")]):t._e(),2!==n._status&&8!==n._status&&4!==n.status||1!==n.shipping_type||null!==n.pinkStatus&&2!==n.pinkStatus||n.supplier_name||0!=n.store_id?t._e():e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.sendOrder(n,1)}}},[t._v("发送货")]),4!==n._status||n.split.length?t._e():e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.delivery(n,1)}}},[t._v("配送信息")]),4===n._status&&!n.split.length&&n.supplier_name&&0==n.store_id?e("Divider",{attrs:{type:"vertical"}}):t._e(),2==n.shipping_type&&0==n.status&&1==n.paid&&0===n.refund_status?e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.bindWrite(n,1)}}},[t._v("立即核销")]):t._e(),n.supplier_name&&"未发货"==n.status_name.status_name?e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.btnClick(n)}}},[t._v("提醒发货")]):t._e(),1===n._status||(2===n._status||n.split.length)&&1===n.shipping_type&&(null===n.pinkStatus||2===n.pinkStatus)||4===n._status||2==n.shipping_type&&0==n.status&&1==n.paid&&0===n.refund_status||n.supplier_name&&n.supplier_name&&"未发货"==n.status_name.status_name?e("Divider",{attrs:{type:"vertical"}}):t._e(),[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",{attrs:{disabled:t.openErp,name:"3"}},[t._v("订单记录")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:n._status>=3&&n.express_dump,expression:"row._status >= 3 && row.express_dump"}],attrs:{disabled:t.openErp,name:"11"}},[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,3569045510)})],1):t._e()],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"}},[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(t.logisticsChecked.delivery_name))]),e("span",[t._v("物流单号:"+t._s(t.logisticsChecked.delivery_id))])])]),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,"fb1a2188",null);e.a=d.exports}}]); |