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.
1 lines
99 KiB
1 lines
99 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d8daf56c"],{"0c3f":function(t,e,r){},"0fc4":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return n})),r.d(e,"b",(function(){return o}));var a=r("b6bd");function i(){return Object(a.a)({url:"erp/config",method:"get"})}function n(t){return Object(a.a)({url:"store/erp/shop",method:"get",params:t})}function o(t){return Object(a.a)({url:"product/import_erp_product",method:"post",data:t})}},2937:function(t,e,r){"use strict";r("4972")},"31b4":function(t,e,r){"use strict";var a=r("9860"),i=r.n(a),n=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 c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function l(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 a=r.call(t,e||"default");if("object"!=s(a))return a;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 u={name:"edit",components:{formCreate:i.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(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(n.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}}},d=(r("c262"),r("2877")),f=Object(d.a)(u,(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},4972:function(t,e,r){},"7c43":function(t,e,r){},8038:function(t,e,r){"use strict";r("b280")},"82e1":function(t,e,r){},a2b4:function(t,e,r){},acee:function(t,e,r){"use strict";r("82e1")},acfa:function(t,e,r){},b280:function(t,e,r){},bc98:function(t,e,r){"use strict";r("a2b4")},bd9b:function(t,e){t.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAKEUlEQVR4nO2de3AV1R3HP3uS8EhCkCSAQCLgRZ6RV7Hgo47hpVNgpp3+UZ2llpbOFIUqdWzR6UzpdOqMqFNHq4KMDzp6a/tHO50B2goIVqmCVV4KymMFTAiPJghXbohJ2O0fZwOX5Jy9e+/dzb0hfGYy9ybn7Hl8c3bPOb9zzm+NeDxOtohERTkwCRgFjHY/hwBlQCFQDDQD54Az7ucpYD/wmfu50zLt+k4vvIvRmQJGoqIQmAFMB6qB8YCRYbIOsAfYAmwG3rJMuzHDNH0TuoCRqBDALGABMA8oCjVDiANrgTXARsu07TAzC03ASFQUAz8BHgSGhZJJco4AzwAvWaZ9LowMAhcwEhW9gSXAL4HyQBNPn3rgSeAPlmmfDzLhQAWMRMXdwArgusASDZYvgGWWaf85qAQDETASFUOBVcBdKV9bAlWlDpG+MLwEhvVxKOsJRQVQXCDjnGuBeCs0NMGRrwwOx8A6C3u/NDh0Nq0ivwn81DLto2ldnUDGAkaiYj7wPFDiJ36vPKge4jCrEm671qGsV0bZ09AEW08YbKyBLccMmi74vjQGLLZM+/VM8k9bwEhU9EIK92M/8atKYf5IhzlDHQrz08oyKY2tsP6owesHDD457fuyV4H7LdNuSifPtASMRMUA4O/Azcni3jQAlo53mDbQSaN46bPtpMEzeww+OOUr+vvAdyzT9hc7gZQFjETFcGAjEPGKV1kMv57iMH1I5wrXns3HDH77oUFN8kGMBcyyTPtwKumnJGAkKsYAm4DBujj5AhaNc7hvnEOvvFSKEh5NF2DlXoNVew1avYfVdcBMy7Q/9Zu2bwEjUTECOV2q0MWpLIanb7WZlCujv3bsqoel/xHJWmMtUG2Z9iE/afoSMBIV/YH3gBG6ODMrHJ682aGkh59ss0esGX7xvsGmWs8p+CHgFsu0/5csPZEsQiQqeiDnllrx7h3lsPL23BcPoKQHrLzd4d5Rns/mEcDaSFT0TJZeUgGBF4CpqgADeGiCw/IpDiJTm0onIgxYPsXhoQmeIk5FDtO80/IKdAfJC3XhD090WFyV3V42ExZXOTw80bP8C10NtGgFdKdn2v+AeYPDonFdV7w27hvnYN7gWY/nXS2UeLXAF9FMz2ZWOCy/qeuL18bymxxmVWrrU4LUQolSQNeqcqcqrKIInrjZIa8LPfOSkWfAimkOFXpT752RqLhHFdBhGOOa3T9FYZIqEPCX2TYTyjIrcK6yqx7u3ihoUQ+2vwDGtF8uUE3rl6Cx591f5fgWL9YCO+ptjjc6ugKFToGAQYUGk8sFJQXJ408sl3V8Zo/y9roOqc0TiX+8rAW6ZvjDKCzJkRJYP8emwMfAJ9YM/6i5QHOWhGtPDwHfrszzNU5tsWHOeoEVUwY3AMMSlwfay/EjNGb4Ryc7vsQD2NFg54x4AM22LJMfCoSsq4YypEYXuSiJu3r2c9VV3xwgjaB+Od6Yez10XQplqh7iMHWANvghVyvg8hY4CxiuuuLB8akJkq1nnhdJrDAdeEBf52HA7LZfEgVcoIo9th+dbgzNBaYNdBjbTxu8oO2LgItDl3mqmPNHdj/x2viB3uAwNxIVRXCpBc5GsWOgdz7MHdp9BZw71KG3ev2mCPnIuyigcjnyjsEORT7GT1cqhflQPVjbgO6CSwJOV8WYobU9dx88NJgOYFy7+vwA4GT7UAPY9j2b8gzWbcv++DUXnOw+AvIMg4YfJrWLaqlvgml/FWhqMTAfmKwKGV5CRuIB9C8KaQG4EynvBdeXoJuZfEMAE1UhE8q6b+fRnvHlWi0mCDRrHaP0Y6Bux+hrtEEjBJrZx/A+YRWn6zFMr8X1As0i+aDCq7dwG4OLtFoMEkCpKqRv+h3XFYeHGaxUAL1VIcVdvwMNDA8tCgWgvMO78wykPR5aFOcjz2F0+p6Ckh4wpwKuKybtBaoLDnxxDtbXSit4NhDAV6qAeEu4Gc+pkD19Jqt7eYZMY15lcOVS4aHFOa2A51rDKo5kSICnRTyWIwMhrteiUStg2LfEsQBPV9SGfNjqrF6L0wJQbuGqi4e7cr6+Fg5/JZ9j6WI7Mo11NcGVS4WHFifykcuYHTiibJfBEWuGNz4PN4+g8NDCEsjNhB347MuwitP12H9GG3RIALtUIbsbrqDNLxmyu16rxR4B7FCFHI5JY2J3p6EJPlfbAgE+FO7ZiA63sQNsPX61FW49Yeis0Qct0z7VtiayWRVjU21IpepCbNL38Jvh0qLSP1Ux3q4zaAx5QJ3LNLbCljrtXfgvuCTgRuRJ78s43wprj3Tf23jdUYPz6gYUR2omBbRMOw6sU8V8/UD3FfC1/dq6r3M1u2xvzBpVzH1fyoN76ZALi3LpngzddtJgn34svKbtS6KAG5A+BjrwrHrHZlKq+mW/9d6YZhk86nwUqRWQIKDr3eL3qiu2n4J/6x+mWhaMzL6A6ZThnTqD7fqDr08negJpv+f0VeQ21g489pGR8r6/6kEGi8ZkT8RFYwyqB6WWf4sNv/tIe00D8HLiHy4T0N37e9km6othMXlkNFWWjhO8cItgan9Dt9MpUHrnw9T+BitvFSwd53NPcgIr9xq6XQgAT7R3n3L1mEMCuxvg+xtSO+bQ4V/kRnhElUKLDQ+8K7K2/hAmsWZZN4/H1KMql1LKNm6Z9htI1yAdqI3Dsm0G9hW07u4g6+Rh2d5gmfafVAFeD4lFSNcgHVOrMfjNf7PfwwbF8g8MNtRo6xNDaqFEK6Bl2keQJ3OURA9KHwRdnVV7DaIHPeuxxMsRhWc3ZZn2a7TrthN5apfB6n1dV8TV+wye3OVZ/ldcDbT46ecXA9tVAQ6wYqfB4zu1NrOcpK3cK3Z6ircdWXdPrjqdUOPb6USqbk/eRrroVFJZDM/eZjM+R8eJHzfAz7YmdXtyDLgjULcnbbiOd94EtJsp8gUsqZLuAPweTgybFlt2Fs99ktTxTg1wZyiOd9qIREUl0ho71iveiL7wq8kOt+vPWXQK79QZPLbDl5u8fcBdlmmntEyfrvOxUqQvmVuSxZ06QB7cy4bzsWf3eFpVEnkPmGeZtn+fby6ZuL/rCTyFx1gxkapSMEc6zA3Z/d26owbR1NzfPQc8bJn21+nkGYQDxu8CrwD6vewJ9M6H6UMcZlTAtwY5lGa4lfj01/DucYO3aqWnNs0ahoozwELLtP+WSf5BugB9EY2nD23mQKQvjC9zGHmNPNBSUeRwTU/oUyDN8a223F4Wa5afx+IGn8fgwBnY02BgnSWdMeibwCJ3tpURQTuhvQd4nNx2QvuIaywJhEAHGm7BRgPLkK6Hc4V6pIludJDiQbiOuPsg/W7lgiPuly3TDmXD3lVX8BmSrZcRzEC+jOBGgnkZwcdI75pvcaW9jMAL10gxCRhJx9dhFHGptcbdnwbkXLXtdRgHkK/DSDrpD4v/AyTig4w83FS9AAAAAElFTkSuQmCC"},c262:function(t,e,r){"use strict";r("c54c")},c54c:function(t,e,r){},d701:function(t,e,r){"use strict";r("0c3f")},ed5d:function(t,e,r){"use strict";r.r(e);var a=r("2f62"),i=r("73f5"),n={name:"distshow",data:function(){var t=this;return{id:0,currentid:0,modals:!1,loading:!1,orderList:[],total:0,formValidate:{page:1,limit:15,id:0},columns:[{title:"选择",width:60,align:"center",render:function(e,r){var a=r.row.id,n=!1;t.currentid,n=t.currentid===a;var o=t;return e("div",[e("Radio",{props:{value:n},on:{"on-change":function(){o.currentid=a,Object(i.R)({oid:t.id,store_id:r.row.id}).then((function(e){t.$Message.success(e.msg),o.currentid=0,t.modals=!1,t.$parent.getChart(),t.$parent.getList()})).catch((function(e){t.modals=!1,t.$Message.error(e.msg),o.currentid=0}))}}})])}},{title:"ID",key:"id",minWidth:50},{title:"门店图片",slot:"image",minWidth:80},{title:"门店名称",key:"name",minWidth:80},{title:"联系电话",key:"phone",minWidth:80},{title:"门店地址",key:"address",ellipsis:!0,minWidth:150},{title:"营业时间",key:"day_time",minWidth:120},{title:"营业状态",key:"status_name",minWidth:80}]}},props:{},mounted:function(){},methods:{getList:function(t){var e=this;this.id=t,this.formValidate.id=t,this.loading=!0,Object(i.O)(this.formValidate).then((function(t){e.orderList=t.data.list,e.total=t.data.count,e.loading=!1}))},cancel:function(t){this.modals=!1},putRemark:function(){},pageChange:function(t){this.formValidate.page=t,this.getList()}}},o=(r("acee"),r("2877")),s=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请选择门店",width:"850"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("div",{staticClass:"table"},[e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var r=t.row;return t.index,[e("img",{attrs:{src:r.image}})]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"})])}),[],!1,null,"6c0cce32",null).exports,c={name:"table-expand",props:{row:Object}},l=(r("d701"),Object(o.a)(c,(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,"2c111d19",null).exports),u=r("a716"),d=r("31b4"),f=r("f8b7");function h(t){return(h="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 p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof g?e:g,o=Object.create(n.prototype),s=new S(a||[]);return i(o,"_invoke",{value:L(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",v="suspendedYield",m="executing",y="completed",_={};function g(){}function b(){}function w(){}var x={};l(x,o,(function(){return this}));var I=Object.getPrototypeOf,C=I&&I(I(F([])));C&&C!==r&&a.call(C,o)&&(x=C);var D=w.prototype=g.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,n,o,s){var c=d(t[i],t,n);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==h(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var n;i(this,"_invoke",{value:function(t,a){function i(){return new e((function(e,i){r(t,a,e,i)}))}return n=n?n.then(i,i):i()}})}function L(e,r,a){var i=f;return function(n,o){if(i===m)throw Error("Generator is already running");if(i===y){if("throw"===n)throw o;return{value:t,done:!0}}for(a.method=n,a.arg=o;;){var s=a.delegate;if(s){var c=j(s,a);if(c){if(c===_)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===f)throw i=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=m;var l=d(e,r,a);if("normal"===l.type){if(i=a.done?y:v,l.arg===_)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=y,a.method="throw",a.arg=l.arg)}}}function j(e,r){var a=r.method,i=e.iterator[a];if(i===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),_;var n=d(i,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,_;var o=n.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,_):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)}function E(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function F(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 i=-1,n=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(h(e)+" is not iterable")}return b.prototype=w,i(D,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,c,"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,l(t,c,"GeneratorFunction")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},O(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var o=new k(u(t,r,a,i),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},O(D),l(D,c,"Generator"),l(D,o,(function(){return this})),l(D,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=F,S.prototype={constructor:S,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(T),!e)for(var r in this)"t"===r.charAt(0)&&a.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 i(a,i){return s.type="throw",s.arg=e,r.next=a,i&&(r.method="next",r.arg=t),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,_):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),_},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),T(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:F(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),_}},e}function v(t,e,r,a,i,n,o){try{var s=t[n](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(a,i)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var n=t.apply(e,r);function o(t){v(n,a,i,o,s,"next",t)}function s(t){v(n,a,i,o,s,"throw",t)}o(void 0)}))}}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function _(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=h(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g={name:"orderSend",props:{orderId:Number,status:Number,pay_type:String},data:function(){var t=this;return{orderStatus:0,splitSwitch:!0,formItem:{type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:""},modals:!1,express:[],expressTemp:[],deliveryList:[],temp:{},export_open:!0,manyFormValidate:[],header:[{type:"selection",width:60,align:"center"},{title:"商品信息",slot:"image",width:200,align:"center"},{title:"规格",slot:"value",align:"center",minWidth:120},{title:"价格",slot:"price",align:"center",minWidth:120},{title:"总数",key:"cart_num",align:"center",minWidth:120},{title:"待发数量",key:"surplus_num",align:"center",width:180,render:function(e,r){return e("div",[e("InputNumber",{props:{min:1,max:r.row.surplus_num,value:r.row.surplus_num},on:{"on-change":function(e){r.row.surplus_num=e||1,t.manyFormValidate[r.index]=r.row,t.selectData.forEach((function(e,a){e.cart_id===r.row.cart_id&&t.selectData.splice(a,1,r.row)}))}}})])}}],selectData:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(a.e)("admin/order",["splitOrder"])),methods:{selectOne:function(t){this.selectData=t},changeModal:function(t){t||this.cancel()},changeSplitStatus:function(t){var e=this;t&&Object(f.R)(this.orderId).then((function(t){e.manyFormValidate=t.data}))},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="";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:""}},getList:function(t){var e=this,r=2===t?1:"";Object(f.j)(r).then(function(){var t=m(p().mark((function t(r){return p().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&&""===this.formItem.sh_delivery)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(f.S)(r).then((function(t){e.modals=!1,e.$Message.success(t.msg),e.$emit("submitFail"),e.reset(),e.splitSwitch=!1})).catch((function(t){e.$Message.error(t.msg)}))):Object(f.H)(r).then(function(){var t=m(p().mark((function t(r){return p().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();case 5: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(f.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(t,e){var r=this;this.$set(this,"orderStatus",t),this.$set(this,"splitSwitch",8===t),Object(f.R)(this.orderId).then((function(t){r.manyFormValidate=t.data}))},getDeliveryList:function(){var t=this;Object(f.u)().then((function(e){t.deliveryList=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},getSheetInfo:function(){var t=this;Object(f.F)().then((function(e){var r=e.data;for(var a in r)r.hasOwnProperty(a)&&(t.formItem[a]=r[a]);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})).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()}}},b=(r("8038"),Object(o.a)(g,(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"}},[e("Radio",{attrs:{label:"1"}},[t._v("发货")]),e("Radio",{attrs:{label:"2"}},[t._v("送货")]),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:"快递公司:"}},[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,a){return e("Option",{key:r.value,attrs:{value:r.value}},[t._v(t._s(r.value)+"\n\t\t\t\t\t")])})),1)],1):t._e(),"1"===t.formItem.express_record_type&&1==t.formItem.type?e("FormItem",{attrs:{label:"快递单号:"}},[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?[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,a){return e("Option",{key:a,attrs:{value:r.temp_id}},[t._v(t._s(r.title)+"\n\t\t\t\t\t\t")])})),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("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,a){return e("Option",{key:a,attrs:{value:r.id}},[t._v("\n\t\t\t\t\t\t"+t._s(r.wx_name)+"("+t._s(r.phone)+")")])})),1)],1)],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?e("div",[e("FormItem",{attrs:{label:"分单发货:"}},[e("i-switch",{attrs:{size:"large",disabled:8===t.orderStatus||"offline"===t.pay_type},on:{"on-change":t.changeSplitStatus},model:{value:t.splitSwitch,callback:function(e){t.splitSwitch=e},expression:"splitSwitch"}},[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\t\t\t\t\t\t可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!\n\t\t\t\t\t")])]),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 a=r.row;return r.index,[e("div",{staticClass:"product-data"},[e("img",{staticClass:"image",attrs:{src:a.cart_info.productInfo.image}}),e("div",{staticClass:"line2"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(a.cart_info.productInfo.store_name)+"\n\t\t\t\t\t\t\t")])])]}},{key:"value",fn:function(r){var a=r.row;return r.index,[e("div",{staticClass:"product-data"},[e("div",[t._v(t._s(a.cart_info.productInfo.attrInfo.suk))])])]}},{key:"price",fn:function(r){var a=r.row;return r.index,[e("div",{staticClass:"product-data"},[e("div",[t._v(t._s(a.cart_info.truePrice))])])]}}],null,!1,3197150676)}):t._e()],1)],1):t._e()],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:t.cancel}},[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",{staticStyle:{display:"none"},attrs:{src:t.temp.pic}})])],1)}),[],!1,null,"70ec9c10",null).exports);function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */x=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new S(a||[]);return i(o,"_invoke",{value:L(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",m={};function y(){}function _(){}function g(){}var b={};l(b,o,(function(){return this}));var I=Object.getPrototypeOf,C=I&&I(I(F([])));C&&C!==r&&a.call(C,o)&&(b=C);var D=g.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,n,o,s){var c=d(t[i],t,n);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==w(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var n;i(this,"_invoke",{value:function(t,a){function i(){return new e((function(e,i){r(t,a,e,i)}))}return n=n?n.then(i,i):i()}})}function L(e,r,a){var i=f;return function(n,o){if(i===p)throw Error("Generator is already running");if(i===v){if("throw"===n)throw o;return{value:t,done:!0}}for(a.method=n,a.arg=o;;){var s=a.delegate;if(s){var c=j(s,a);if(c){if(c===m)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===f)throw i=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=p;var l=d(e,r,a);if("normal"===l.type){if(i=a.done?v:h,l.arg===m)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=v,a.method="throw",a.arg=l.arg)}}}function j(e,r){var a=r.method,i=e.iterator[a];if(i===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),m;var n=d(i,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;var o=n.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,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function E(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function F(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 i=-1,n=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(w(e)+" is not iterable")}return _.prototype=g,i(D,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:_,configurable:!0}),_.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(D),t},e.awrap=function(t){return{__await:t}},O(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var o=new k(u(t,r,a,i),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},O(D),l(D,c,"Generator"),l(D,o,(function(){return this})),l(D,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=F,S.prototype={constructor:S,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(T),!e)for(var r in this)"t"===r.charAt(0)&&a.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 i(a,i){return s.type="throw",s.arg=e,r.next=a,i&&(r.method="next",r.arg=t),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,m):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),m},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),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:F(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),m}},e}function I(t,e,r,a,i,n,o){try{var s=t[n](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(a,i)}function C(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var n=t.apply(e,r);function o(t){I(n,a,i,o,s,"next",t)}function s(t){I(n,a,i,o,s,"throw",t)}o(void 0)}))}}var D={name:"orderDetails",filters:{invoiceType:function(t){return 1==t?"电子普通发票":"纸质专用发票"},invoiceHeaderType:function(t){return 1==t?"个人":"企业"}},data:function(){return{modal2:!1,modals:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},result:[],columns1:[{title:"商品信息",slot:"product",align:"center",minWidth:400},{title:"价格",key:"truePrice",align:"center"},{title:"数量",key:"cart_num",align:"center"},{title:"小计",align:"center",render:function(t,e){return t("div",e.row.truePrice*e.row.cart_num)}}],columns2:[{title:"订单ID",key:"oid",align:"center",minWidth:40},{title:"操作记录",key:"change_message",align:"center",minWidth:280},{title:"操作时间",key:"change_time",align:"center",minWidth:100}],recordData:[],loading:!1,page:{page:1,limit:10},activeName:"detail"}},props:{orderDatalist:Object,orderId:Number,rowActive:Object,currentTab:String,openErp:{type:Boolean,default:!1}},watch:{orderId:function(t){this.getList(t)}},methods:{openLogistics:function(){this.getOrderData(),this.modal2=!0},getOrderData:function(){var t=this;Object(f.i)(this.orderId).then(function(){var e=C(x().mark((function e(r){return x().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)}))},getList:function(t){var e=this,r={id:t,datas:this.page};this.loading=!0,Object(f.l)(r).then(function(){var t=C(x().mark((function t(r){return x().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)}))},distribution:function(){this.$parent.distribution(this.rowActive)},remark:function(){this.$parent.remark(this.rowActive)}},computed:{}},O=(r("bc98"),r("2937"),Object(o.a)(D,(function(){var t=this,e=t._self._c;return e("div",[e("Drawer",{attrs:{closable:!1,width:"1000","class-name":"order_box",styles:{padding:0}},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.orderDatalist?e("div",[e("div",{staticClass:"head"},[e("div",{staticClass:"full"},[e("Icon",{attrs:{custom:"iconfont icondingdan",size:"60"}}),e("div",{staticClass:"text"},[e("div",{staticClass:"title"},[t._v(t._s(6==t.currentTab?"收银台订单":7==t.currentTab?"配送订单":"核销订单"))]),e("div",[t._v("订单编号:"+t._s(t.orderDatalist.orderInfo.order_id))])]),e("div",[2==t.rowActive._status||11==t.rowActive._status?e("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.distribution}},[t._v("分配")]):t._e(),e("Button",{on:{click:t.remark}},[t._v("订单备注")])],1)],1),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("订单状态")]),e("div",{staticClass:"value1"},[e("span",{domProps:{innerHTML:t._s(t.orderDatalist.orderInfo.status_name.status_name)}}),!t.orderDatalist.orderInfo.is_all_refund&&t.orderDatalist.orderInfo.refund.length?e("span",[t._v(",部分退款中")]):t._e(),t.orderDatalist.orderInfo.is_all_refund&&t.orderDatalist.orderInfo.refund.length&&6!=t.orderDatalist.orderInfo.refund_type?e("span",[t._v(",退款中")]):t._e()])]),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("实际支付")]),e("div",[t._v("¥"+t._s(t.orderDatalist.orderInfo.paid>0?t.orderDatalist.orderInfo.pay_price:0))])]),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._pay_time||"-"))])])])]),e("Tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("TabPane",{attrs:{label:"订单信息",name:"detail"}},[t.orderDatalist.orderInfo.refund_status?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(t._s(t.orderDatalist.orderInfo.refund_reason||"-"))])]),parseFloat(t.orderDatalist.orderInfo.refund_price)?e("li",{staticClass:"item"},[e("div",[t._v("退款金额:")]),e("div",{staticClass:"value"},[t._v(t._s(parseFloat(t.orderDatalist.orderInfo.refund_price)||0))])]):t._e(),parseFloat(t.orderDatalist.orderInfo.back_integral)?e("li",{staticClass:"item"},[e("div",[t._v("退回积分:")]),e("div",{staticClass:"value"},[t._v(t._s(parseFloat(t.orderDatalist.orderInfo.back_integral)||"-"))])]):t._e(),e("li",{staticClass:"item"},[e("div",[t._v("退款说明:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_explain||"-"))])]),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._e(),t.orderDatalist.orderInfo.refund_status&&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(t._s(t.orderDatalist.orderInfo.refund_express_name||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("物流单号:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_express||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("联系电话:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_phone||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("退货说明:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.refund_goods_explain||"-"))])]),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("用户昵称:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.userInfo.uid?t.orderDatalist.userInfo.nickname:"游客"))])]),e("li",{staticClass:"item"},[e("div",[t._v("绑定电话:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.userInfo.phone||"-"))])])])]),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(t._s(t.orderDatalist.orderInfo.real_name||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("收货电话:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.user_phone||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("收货地址:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.user_address||"-"))])])])]),t.orderDatalist.orderInfo.fictitious_content&&1!=t.orderDatalist.orderInfo.cartInfo[0].product_type?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("虚拟发货")]),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.fictitious_content))])])])]):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,a){return e("div",{key:a,staticClass:"list"},[e("div",{staticClass:"item"},[e("div",[t._v("卡号"+t._s(a+1)+":")]),e("div",{staticClass:"value"},[t._v(t._s(r.card_no))])]),e("div",{staticClass:"item"},[e("div",[t._v("密码"+t._s(a+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(t._s(t.orderDatalist.orderInfo.virtual_info||"-"))])])])]):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(t._s(t.orderDatalist.orderInfo._add_time||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("商品总数:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.total_num||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("商品总价:")]),e("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.total_price))])]),e("li",{staticClass:"item"},[e("div",[t._v("优惠券金额:")]),e("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.coupon_price||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("积分抵扣:")]),e("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.deduction_price||0))])]),parseFloat(t.orderDatalist.orderInfo.use_integral)?e("li",{staticClass:"item"},[e("div",[t._v("使用积分:")]),e("div",{staticClass:"value"},[t._v(t._s(parseFloat(t.orderDatalist.orderInfo.use_integral)))])]):t._e(),e("li",{staticClass:"item"},[e("div",[t._v("支付邮费:")]),e("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.pay_postage))])]),e("li",{staticClass:"item"},[e("div",[t._v("会员商品优惠:")]),e("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.vip_true_price||0))])]),0!=t.orderDatalist.orderInfo.first_order_price?e("li",{staticClass:"item"},[e("div",[t._v("新人首单优惠:")]),e("div",{staticClass:"value"},[t._v("¥"+t._s(t.orderDatalist.orderInfo.first_order_price))])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?e("li",{staticClass:"item"},[e("div",[t._v("门店名称:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo._store_name||"-"))])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?e("li",{staticClass:"item"},[e("div",[t._v("核销码:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.verify_code||"-"))])]):t._e(),e("li",{staticClass:"item"},[e("div",[t._v("推广人:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.userInfo.spread_name)+"/ID:"+t._s(t.orderDatalist.userInfo.spread_uid))])]),t.orderDatalist.orderInfo.store_order_sn?e("li",{staticClass:"item"},[e("div",[t._v("原订单号:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.store_order_sn))])]):t._e(),t._l(t.orderDatalist.orderInfo.promotions_detail,(function(r,a){return e("li",{key:a,staticClass:"item"},[e("div",[t._v(t._s(r.title)+":")]),e("div",{staticClass:"value"},[t._v("¥"+t._s(parseFloat(r.promotions_price).toFixed(2)))])])}))],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(t._s(t.orderDatalist.orderInfo.delivery_name||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("快递单号:")]),e("div",{staticClass:"value"},[t._v(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(t._s(t.orderDatalist.orderInfo.delivery_name||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("送货人电话:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.delivery_id||"-"))])])])]):t._e(),t.orderDatalist.orderInfo.custom_form.length?e("div",{staticClass:"section"},[e("div",{staticClass:"title"},[t._v("自定义留言")]),e("ul",{staticClass:"list"},t._l(t.orderDatalist.orderInfo.custom_form,(function(r,a){return r.value&&-1==["uploadPicture","dateranges"].indexOf(r.name)||r.value.length&&-1!=["uploadPicture","dateranges"].indexOf(r.name)?e("li",{key:a,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(t._s(t.orderDatalist.orderInfo.mark))])])])]):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(t._s(t.orderDatalist.orderInfo.remark||"-"))])])])]):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(t._s(t.orderDatalist.orderInfo.refuse_reason))])])])]):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(t._s(t._f("invoiceType")(t.orderDatalist.orderInfo.invoice.type)))])]),e("li",{staticClass:"item"},[e("div",[t._v("抬头类型:")]),e("div",{staticClass:"value"},[t._v(t._s(t._f("invoiceHeaderType")(t.orderDatalist.orderInfo.invoice.header_type)))])]),e("li",{staticClass:"item"},[e("div",[t._v("发票抬头:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.name||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("税号:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.duty_number||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("邮箱:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.email||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("开户银行:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.bank||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("企业地址:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.address||"-"))])]),e("li",{staticClass:"item"},[e("div",[t._v("企业电话:")]),e("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.orderInfo.invoice.drawer_phone||"-"))])])])]):t._e()]),e("TabPane",{attrs:{label:"商品信息",name:"product"}},[e("Table",{attrs:{columns:t.columns1,data:t.orderDatalist.orderInfo.cartInfo,border:"","highlight-row":""},scopedSlots:t._u([{key:"product",fn:function(r){var a=r.row;return[e("div",{staticClass:"product"},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.productInfo.attrInfo?a.productInfo.attrInfo.image:a.productInfo.image,expression:"row.productInfo.attrInfo ? row.productInfo.attrInfo.image : row.productInfo.image"}]})]),e("div",{staticClass:"title"},[a.is_gift?e("span",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),t._v(t._s(a.productInfo.store_name)+" | "+t._s(a.productInfo.attrInfo?a.productInfo.attrInfo.suk:""))])])]}}],null,!1,517014031)})],1),e("TabPane",{attrs:{label:"订单记录",name:"record"}},[e("Table",{attrs:{columns:t.columns2,border:"",data:t.recordData,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1)],1)],1):t._e()]),e("Modal",{staticClass:"order_box2",attrs:{scrollable:"",title:"物流查询",width:"350"},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[t.orderDatalist?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.orderDatalist.orderInfo.delivery_name))]),e("span",[t._v("物流单号:"+t._s(t.orderDatalist.orderInfo.delivery_id))])])]):t._e(),e("div",{staticClass:"acea-row row-column-around trees-coadd"},[e("div",{staticClass:"scollhide"},[e("Timeline",t._l(t.result,(function(r,a){return e("TimelineItem",{key:a},[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,"0e1407ac",null).exports);function k(t){return(k="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,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new S(a||[]);return i(o,"_invoke",{value:O(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",m={};function y(){}function _(){}function g(){}var b={};l(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(F([])));x&&x!==r&&a.call(x,o)&&(b=x);var I=g.prototype=y.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,n,o,s){var c=d(t[i],t,n);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==k(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var n;i(this,"_invoke",{value:function(t,a){function i(){return new e((function(e,i){r(t,a,e,i)}))}return n=n?n.then(i,i):i()}})}function O(e,r,a){var i=f;return function(n,o){if(i===p)throw Error("Generator is already running");if(i===v){if("throw"===n)throw o;return{value:t,done:!0}}for(a.method=n,a.arg=o;;){var s=a.delegate;if(s){var c=j(s,a);if(c){if(c===m)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===f)throw i=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=p;var l=d(e,r,a);if("normal"===l.type){if(i=a.done?v:h,l.arg===m)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=v,a.method="throw",a.arg=l.arg)}}}function j(e,r){var a=r.method,i=e.iterator[a];if(i===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),m;var n=d(i,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;var o=n.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,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function E(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function F(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 i=-1,n=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(k(e)+" is not iterable")}return _.prototype=g,i(I,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:_,configurable:!0}),_.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},C(D.prototype),l(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var o=new D(u(t,r,a,i),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},C(I),l(I,c,"Generator"),l(I,o,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=F,S.prototype={constructor:S,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(T),!e)for(var r in this)"t"===r.charAt(0)&&a.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 i(a,i){return s.type="throw",s.arg=e,r.next=a,i&&(r.method="next",r.arg=t),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,m):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),m},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),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:F(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),m}},e}function j(t,e,r,a,i,n,o){try{var s=t[n](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(a,i)}var E={name:"orderRecord",data:function(){return{modals:!1,loading:!1,recordData:[],page:{page:1,limit:10},columns:[{title:"订单ID",key:"oid",align:"center",minWidth:40},{title:"操作记录",key:"change_message",align:"center",minWidth:280},{title:"操作时间",key:"change_time",align:"center",minWidth:100}]}},methods:{pageChange:function(t){this.page.pageNum=t,this.getList()},getList:function(t){var e=this,r={id:t,datas:this.page};this.loading=!0,Object(f.l)(r).then(function(){var t,r=(t=L().mark((function t(r){return L().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)})),function(){var e=this,r=arguments;return new Promise((function(a,i){var n=t.apply(e,r);function o(t){j(n,a,i,o,s,"next",t)}function s(t){j(n,a,i,o,s,"throw",t)}o(void 0)}))});return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))}}},T=(r("fd23"),Object(o.a)(E,(function(){var t=this,e=t._self._c;return e("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单记录",width:"700","footer-hide":""},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("Table",{attrs:{columns:t.columns,border:"",data:t.recordData,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1)],1)}),[],!1,null,"111ee459",null).exports);function 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 F(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */F=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new E(a||[]);return i(o,"_invoke",{value:O(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",m={};function y(){}function _(){}function g(){}var b={};l(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==r&&a.call(x,o)&&(b=x);var I=g.prototype=y.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,n,o,s){var c=d(t[i],t,n);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==S(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var n;i(this,"_invoke",{value:function(t,a){function i(){return new e((function(e,i){r(t,a,e,i)}))}return n=n?n.then(i,i):i()}})}function O(e,r,a){var i=f;return function(n,o){if(i===p)throw Error("Generator is already running");if(i===v){if("throw"===n)throw o;return{value:t,done:!0}}for(a.method=n,a.arg=o;;){var s=a.delegate;if(s){var c=k(s,a);if(c){if(c===m)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===f)throw i=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=p;var l=d(e,r,a);if("normal"===l.type){if(i=a.done?v:h,l.arg===m)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=v,a.method="throw",a.arg=l.arg)}}}function k(e,r){var a=r.method,i=e.iterator[a];if(i===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),m;var n=d(i,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;var o=n.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,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,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 i=-1,n=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(S(e)+" is not iterable")}return _.prototype=g,i(I,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:_,configurable:!0}),_.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},C(D.prototype),l(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var o=new D(u(t,r,a,i),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},C(I),l(I,c,"Generator"),l(I,o,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=T,E.prototype={constructor:E,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(j),!e)for(var r in this)"t"===r.charAt(0)&&a.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 i(a,i){return s.type="throw",s.arg=e,r.next=a,i&&(r.method="next",r.arg=t),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,m):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),m},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),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:T(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),m}},e}function P(t,e,r,a,i,n,o){try{var s=t[n](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(a,i)}function N(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var n=t.apply(e,r);function o(t){P(n,a,i,o,s,"next",t)}function s(t){P(n,a,i,o,s,"throw",t)}o(void 0)}))}}var A,M={name:"orderMark",data:function(){return{tabs:"",formValidate:{remark:""},modals:!1,ruleValidate:{remark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]}}},props:{orderId:Number,tab:Number},methods:{currentTab:function(t,e){this.tabs=t,this.formValidate.remark=e},cancel:function(t){this.modals=!1},putRemark:function(t){var e=this,r={id:this.orderId,remark:this.formValidate};this.$refs[t].validate((function(a){a?3==e.tabs?Object(i.y)(r).then(function(){var r=N(F().mark((function r(a){return F().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$Message.success(a.msg),e.modals=!1,e.$refs[t].resetFields(),e.$emit("submitFail");case 4:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)})):4==e.tabs?Object(i.A)(r).then(function(){var r=N(F().mark((function r(a){return F().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$Message.success(a.msg),e.modals=!1,e.$refs[t].resetFields(),e.$emit("submitFail");case 4:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)})):Object(i.z)(r).then(function(){var r=N(F().mark((function r(a){return F().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$Message.success(a.msg),e.modals=!1,e.$refs[t].resetFields(),e.$emit("submitFail");case 4:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)})):e.$Message.warning("请填写备注信息")}))}}},$=Object(o.a)(M,(function(){var t=this,e=t._self._c;return e("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请修改内容",closable:!1},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"备注:",prop:"remark"}},[e("Input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"订单备注"},model:{value:t.formValidate.remark,callback:function(e){t.$set(t.formValidate,"remark",e)},expression:"formValidate.remark"}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putRemark("formValidate")}}},[t._v("提交")]),e("Button",{on:{click:function(e){return t.cancel("formValidate")}}},[t._v("取消")])],1)],1)}),[],!1,null,"1a5f7936",null).exports,G=r("0fc4"),W=r("0b65"),V=r("d708");function R(t){return(R="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 B(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",s=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof y?e:y,o=Object.create(n.prototype),s=new E(a||[]);return i(o,"_invoke",{value:O(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",m={};function y(){}function _(){}function g(){}var b={};l(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(T([])));x&&x!==r&&a.call(x,o)&&(b=x);var I=g.prototype=y.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function r(i,n,o,s){var c=d(t[i],t,n);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==R(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(u).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}var n;i(this,"_invoke",{value:function(t,a){function i(){return new e((function(e,i){r(t,a,e,i)}))}return n=n?n.then(i,i):i()}})}function O(e,r,a){var i=f;return function(n,o){if(i===p)throw Error("Generator is already running");if(i===v){if("throw"===n)throw o;return{value:t,done:!0}}for(a.method=n,a.arg=o;;){var s=a.delegate;if(s){var c=k(s,a);if(c){if(c===m)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===f)throw i=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=p;var l=d(e,r,a);if("normal"===l.type){if(i=a.done?v:h,l.arg===m)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=v,a.method="throw",a.arg=l.arg)}}}function k(e,r){var a=r.method,i=e.iterator[a];if(i===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),m;var n=d(i,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;var o=n.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,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(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 j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,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 i=-1,n=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(R(e)+" is not iterable")}return _.prototype=g,i(I,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:_,configurable:!0}),_.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},C(D.prototype),l(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var o=new D(u(t,r,a,i),n);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},C(I),l(I,c,"Generator"),l(I,o,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=T,E.prototype={constructor:E,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(j),!e)for(var r in this)"t"===r.charAt(0)&&a.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 i(a,i){return s.type="throw",s.arg=e,r.next=a,i&&(r.method="next",r.arg=t),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=t,o.arg=e,n?(this.method="next",this.next=n.finallyLoc,m):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),m},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),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:T(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),m}},e}function z(t,e,r,a,i,n,o){try{var s=t[n](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(a,i)}function Y(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var n=t.apply(e,r);function o(t){z(n,a,i,o,s,"next",t)}function s(t){z(n,a,i,o,s,"throw",t)}o(void 0)}))}}function q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q(Object(r),!0).forEach((function(e){H(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function H(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=R(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var J={name:"index",components:{userDetails:u.a,editFrom:d.a,detailsFrom:O,orderRecord:T,orderRemark:$,orderSend:b,expandRow:l,Distribution:s},data:function(){return{roterPre:V.a.roterPre,openErp:!1,distshow:!1,delfromData:{},pay_type:"",status:0,FromData:null,orderDatalist:null,orderId:0,treeSelect:[{id:"free",label:"试用"},{id:"month",label:"月卡"},{id:"quarter",label:"季卡"},{id:"year",label:"年卡"},{id:"ever",label:"永久"},{id:"card",label:"卡密激活"}],staffData:[],tablists:{},orderChartType:{},options:W.a,timeVal:[],orderData:{page:1,limit:10,type:"",status:"",time:"",real_name:"",store_id:"",order_type:6},rechargeData:{nickname:"",limit:15},vipData:{member_type:"",limit:15},currentTab:"6",tableList:[],total:0,loading:!1,rechargeColumns:[{title:"ID",key:"id",width:60},{title:"订单号",key:"order_id",minWidth:180},{title:"用户信息",slot:"userInfo",minWidth:160},{title:"支付金额",key:"price",minWidth:110},{title:"充值类型",key:"_recharge_type",minWidth:100},{title:"支付时间",key:"_pay_time",minWidth:130},{title:"关联店员",key:"_recharge_type",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:200,align:"center"}],vipColumns:[{title:"订单号",key:"order_id",minWidth:180},{title:"用户信息",slot:"userInfo",minWidth:180},{title:"会员类型",key:"member_type",minWidth:100},{title:"有效期限(天)",minWidth:100,render:function(t,e){return t("span",-1===e.row.vip_day?"永久":e.row.vip_day)}},{title:"支付金额",key:"pay_price",minWidth:100},{title:"支付方式",key:"pay_type",minWidth:100},{title:"购买时间",key:"pay_time",minWidth:130},{title:"关联店员",key:"pay_time",minWidth:130},{title:"操作",slot:"action",fixed:"right",minWidth:200,align:"center"}],columns:[{type:"expand",width:30,render:function(t,e){return t(l,{props:{row:e.row}})}},{title:"订单号",slot:"order_id",minWidth:160},{title:"用户信息",slot:"userInfo",minWidth:120},{title:"商品信息",slot:"info",minWidth:350},{title:"实际支付",slot:"pay_price",minWidth:120},{title:"支付方式",key:"pay_type_name",minWidth:120},{title:"收银店员",key:"clerk_name",minWidth:120},{title:"下单时间",key:"add_time",minWidth:150},{title:"订单状态",slot:"statusName",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:200,align:"center"}],rowActive:{}}},computed:Q(Q({},Object(a.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getErpConfig(),this.getTabs(),this.getChart(),this.staffList(),this.getList()},mounted:function(){},methods:(A={getErpConfig:function(){var t=this;Object(G.a)().then((function(e){t.openErp=e.data.open_erp})).catch((function(e){t.$Message.error(e.msg)}))},remark:function(t){switch(this.orderId=t.id,this.$refs.remarks.modals=!0,this.currentTab){case"3":case"4":this.$refs.remarks.currentTab(this.currentTab,t.remarks);break;default:this.$refs.remarks.currentTab(this.currentTab,t.remark)}},detail:function(t){this.orderId=t.id,this.getData(t.id),this.rowActive=t},distribution:function(t){this.$refs.distshow.modals=!0,this.$refs.distshow.getList(t.id)},record:function(t){this.orderId=t.id,this.$refs.record.modals=!0,this.$refs.record.getList(t.id)},splitOrderDetail:function(t){this.$router.push({path:this.roterPre+"split_list",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>"})},getData:function(t,e){var r=this;Object(i.h)(t).then(function(){var t=Y(B().mark((function t(a){return B().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e||(r.$refs.detailss.modals=!0),r.$refs.detailss.activeName="detail",r.orderDatalist=a.data,r.orderDatalist.orderInfo.refund_reason_wap_img)try{r.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(r.orderDatalist.orderInfo.refund_reason_wap_img)}catch(t){r.orderDatalist.orderInfo.refund_reason_wap_img=[]}case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){r.$Message.error(t.msg)}))},bindWrite:function(t){var e=this;this.$Modal.confirm({title:"提示",content:"确定要核销该订单吗?",cancelText:"取消",closable:!0,maskClosable:!0,onOk:function(){Object(i.U)(t.order_id).then((function(t){e.$Message.success(t.msg),e.getList()}))},onCancel:function(){}})},delivery:function(t){var e=this;Object(i.i)(t.id).then(function(){var t=Y(B().mark((function t(r){return B().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)}))},edit:function(t){this.getOrderData(t.id)},getOrderData:function(t){var e=this;Object(i.j)(t).then(function(){var t=Y(B().mark((function t(r){return B().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)}))},submitFail:function(){this.status=0,3==this.currentTab?this.getRecharge():4==this.currentTab?this.getVipOrder():(this.getList(),this.getData(this.orderId,1))},sendOrder:function(t){var e=this;this.$store.commit("admin/order/setSplitOrder",t.total_num),this.$refs.send.modals=!0,this.orderId=t.id,this.status=t._status,this.pay_type=t.pay_type,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.$nextTick((function(r){e.$refs.send.getCartInfo(t._status,t.id)}))},showUserInfo:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.activeName="info",this.$refs.userDetails.getDetails(t.uid)},clearData:function(){this.orderData={page:1,limit:15,type:"",status:"",time:"",real_name:"",store_id:"",order_type:6},this.rechargeData={nickname:"",limit:15},this.vipData={member_type:"",limit:15}},staffList:function(){var t=this;Object(i.D)().then((function(e){t.staffData=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getTabs:function(){var t=this;Object(i.t)().then((function(e){t.tablists=e.data})).catch((function(e){t.$Message.error(e.msg)}))},getChart:function(){var t=this;Object(i.q)({type:this.currentTab}).then((function(e){t.orderChartType=e.data})).catch((function(e){t.$Message.error(e.msg)}))}},H(H(H(H(H(H(H(H(H(H(A,"edit",(function(t){this.getOrderData(t.id)})),"onClickTab",(function(){this.clearData(),this.orderData.order_type=this.currentTab,this.orderData.page=1,this.timeVal=[],this.getChart(),this.searchList()})),"searchList",(function(){3==this.currentTab?this.getRecharge():4==this.currentTab?this.getVipOrder():this.getList()})),"userSearchs",(function(){this.orderData.page=1,this.searchList()})),"selectStatus",(function(){this.orderData.page=1,this.getList()})),"getVipOrder",(function(){var t=this;this.loading=!0,this.tableList=[],this.vipData.name=this.rechargeData.nickname,this.vipData.add_time=this.orderData.time,this.vipData.store_id=this.orderData.store_id,this.vipData.page=this.orderData.page,Object(i.x)(this.vipData).then((function(e){var r=e.data;t.tableList=r.list,t.total=r.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))})),"getRecharge",(function(){var t=this;this.loading=!0,this.tableList=[],this.rechargeData.data=this.orderData.time,this.rechargeData.store_id=this.orderData.store_id,this.rechargeData.page=this.orderData.page,Object(i.v)(this.rechargeData).then((function(e){var r=e.data;t.tableList=r.list,t.total=r.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))})),"getList",(function(){var t=this;this.loading=!0,this.tableList=[],Object(i.u)(this.orderData).then((function(e){var r=e.data;r.data.forEach((function(e){e.id==t.orderId&&(t.rowActive=e)})),t.tableList=r.data,t.total=r.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))})),"pageChange",(function(t){this.orderData.page=t,this.searchList()})),"orderSearch",(function(){this.orderData.page=1,this.searchList()})),H(H(H(A,"onchangeTime",(function(t){this.timeVal=t,this.orderData.time=this.timeVal[0]?this.timeVal.join("-"):"",this.orderData.page=1,t[0]||(this.orderData.time=""),this.searchList()})),"selectChange",(function(){this.orderData.page=1,this.timeVal=[],this.searchList()})),"getExcelData",(function(t){var e=this;return new Promise((function(r,a){var n=1;n=6==e.currentTab||7==e.currentTab||5==e.currentTab?1:3==e.currentTab?2:3,Object(i.s)(t,n).then((function(t){return r(t.data)}))}))})))},U=(r("f88a"),Object(o.a)(J,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"mt15 ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"orderData",staticClass:"tabform",attrs:{model:t.orderData,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"选择门店:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:"",filterable:""},on:{"on-change":t.userSearchs},model:{value:t.orderData.store_id,callback:function(e){t.$set(t.orderData,"store_id",e)},expression:"orderData.store_id"}},t._l(t.staffData,(function(r){return e("Option",{key:r.id,attrs:{value:r.id}},[t._v(t._s(r.name)+"\n ")])})),1)],1),e("FormItem",{attrs:{label:"创建时间:"}},[e("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),4==t.currentTab?e("FormItem",{attrs:{label:"会员类型:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.vipData.member_type,callback:function(e){t.$set(t.vipData,"member_type",e)},expression:"vipData.member_type"}},t._l(t.treeSelect,(function(r){return e("Option",{key:r.id,attrs:{value:r.id}},[t._v(t._s(r.label))])})),1)],1):t._e(),4!=t.currentTab?e("FormItem",{attrs:{label:"活动类型:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:"",placeholder:"全部"},on:{"on-change":t.orderSearch},model:{value:t.orderData.type,callback:function(e){t.$set(t.orderData,"type",e)},expression:"orderData.type"}},[e("Option",{attrs:{value:"0"}},[t._v("普通订单")]),e("Option",{attrs:{value:"1"}},[t._v("秒杀订单")]),e("Option",{attrs:{value:"2"}},[t._v("砍价订单")]),e("Option",{attrs:{value:"3"}},[t._v("拼团订单")]),e("Option",{attrs:{value:"4"}},[t._v("积分订单")]),e("Option",{attrs:{value:"5"}},[t._v("套餐订单")]),e("Option",{attrs:{value:"6"}},[t._v("预售订单")]),e("Option",{attrs:{value:"7"}},[t._v("新人订单")]),e("Option",{attrs:{value:"8"}},[t._v("抽奖订单")]),e("Option",{attrs:{value:"9"}},[t._v("拼单订单")]),e("Option",{attrs:{value:"10"}},[t._v("桌码订单")])],1)],1):t._e(),e("FormItem",{attrs:{label:"订单状态:"}},[e("Select",{staticClass:"input-add",on:{"on-change":t.orderSearch},model:{value:t.orderData.status,callback:function(e){t.$set(t.orderData,"status",e)},expression:"orderData.status"}},[e("Option",{attrs:{value:""}},[t._v("全部")]),e("Option",{attrs:{value:"0"}},[t._v("未支付")]),e("Option",{attrs:{value:"1"}},[t._v("待配送")]),e("Option",{attrs:{value:"2"}},[t._v("配送中")]),e("Option",{attrs:{value:"3"}},[t._v("待评价")]),e("Option",{attrs:{value:"5"}},[t._v("待核销")]),e("Option",{attrs:{value:"6"}},[t._v("已核销")]),e("Option",{attrs:{value:"4"}},[t._v("已完成")]),e("Option",{attrs:{value:"-4"}},[t._v("已删除")])],1)],1),6==t.currentTab||7==t.currentTab||5==t.currentTab?e("FormItem",{attrs:{label:"订单搜索:","label-for":"real_name"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"订单号/商品名称"},model:{value:t.orderData.real_name,callback:function(e){t.$set(t.orderData,"real_name",e)},expression:"orderData.real_name"}})],1):t._e(),3==t.currentTab||4==t.currentTab?e("FormItem",{attrs:{label:"用户搜索:","label-for":"nickname"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入用户名"},model:{value:t.rechargeData.nickname,callback:function(e){t.$set(t.rechargeData,"nickname",e)},expression:"rechargeData.nickname"}})],1):t._e(),e("FormItem",[e("Button",{staticClass:"ml75",attrs:{type:"primary"},on:{click:function(e){return t.orderSearch()}}},[t._v("查询")])],1)],1)],1)]),e("Card",{staticClass:"mt15 ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"new_tab"},[e("Tabs",{on:{"on-click":t.onClickTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},[e("TabPane",{attrs:{label:"收银台订单",name:"6"}}),e("TabPane",{attrs:{label:"配送订单",name:"7"}}),e("TabPane",{attrs:{label:"核销订单",name:"5"}}),e("TabPane",{attrs:{label:"充值订单",name:"3"}}),e("TabPane",{attrs:{label:"付费会员订单",name:"4"}})],1)],1),e("Table",{ref:"table",attrs:{columns:6==t.currentTab||7==t.currentTab||5==t.currentTab?t.columns:3==t.currentTab?t.rechargeColumns:t.vipColumns,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"order_id",fn:function(r){var a=r.row;return[e("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(a.order_id)}}),e("span",{directives:[{name:"show",rawName:"v-show",value:1===a.is_del,expression:"row.is_del === 1"}],staticClass:"span-del"},[t._v("用户已删除")])]}},{key:"userInfo",fn:function(r){var a=r.row;return[6==t.currentTab||7==t.currentTab||5==t.currentTab?e("div",[a.uid?e("a",{on:{click:function(e){return t.showUserInfo(a)}}},[t._v("\n "+t._s(a.nickname)+"\n "),e("span",{staticClass:"ml5"},[t._v("/"+t._s(a.uid))])]):e("span",[t._v("游客"),e("span",{staticClass:"ml5"},[t._v("/"+t._s(a.uid))])])]):t._e(),3==t.currentTab?e("div",{staticClass:"tabBox"},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.avatar,expression:"row.avatar"}]})]),e("span",{staticClass:"tabBox_tit"},[t._v(t._s(a.nickname))])]):t._e(),4==t.currentTab&&a.user?e("div",{staticClass:"tabBox"},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.user.avatar,expression:"row.user.avatar"}]})]),e("span",{staticClass:"tabBox_tit"},[t._v(t._s(a.user.nickname))])]):t._e()]}},{key:"info",fn:function(r){var a=r.row;return[e("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[t._l(a._info,(function(r,a){return e("div",{key:a,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:"info_title line1"},[r.cart_info.is_gift?e("span",{staticClass:"font-color-red"},[t._v("赠品")]):t._e(),t._v("\n "+t._s(r.cart_info.productInfo.store_name+" | ")+"\n "+t._s(r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.suk:"")+"\n ")])])})),e("div",{attrs:{slot:"content"},slot:"content"},t._l(a._info,(function(r,a){return e("div",{key:a},[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.truePrice+" x "+r.cart_info.cart_num))])])})),0)],2)]}},{key:"statusName",fn:function(r){var a=r.row;return[a.status_name&&0==a.status?e("Tag",{attrs:{color:"red",size:"medium"}},[t._v(t._s(a.status_name.status_name))]):t._e(),a.status_name&&0!==a.status?e("Tag",{attrs:{color:"green",size:"medium"}},[t._v(t._s(a.status_name.status_name))]):t._e(),e("br"),!a.is_all_refund&&a.refund.length?e("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("部分退款中")]):t._e(),a.is_all_refund&&a.refund.length&&6!=a.refund_type?e("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("退款中")]):t._e()]}},{key:"pay_price",fn:function(e){var r=e.row;return[t._v("\n "+t._s(r.paid>0?r.pay_price:0)+"\n ")]}},{key:"action",fn:function(r){var a=r.row;return[6==t.currentTab?e("span",[e("a",{on:{click:function(e){return t.detail(a)}}},[t._v("订单详情")])]):t._e(),7==t.currentTab?e("span",[2==a._status?e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.distribution(a)}}},[t._v("分配")]):t._e(),2==a._status?e("Divider",{attrs:{type:"vertical"}}):t._e(),e("a",{on:{click:function(e){return t.detail(a)}}},[t._v("详情")])],1):t._e(),5==t.currentTab?e("span",[11==a._status?e("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.distribution(a)}}},[t._v("分配")]):t._e(),11==a._status?e("Divider",{attrs:{type:"vertical"}}):t._e(),e("a",{on:{click:function(e){return t.detail(a)}}},[t._v("详情")])],1):t._e(),3==t.currentTab||4==t.currentTab?e("a",{on:{click:function(e){return t.remark(a)}}},[t._v("备注")]):t._e()]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.orderData.page,"show-elevator":"","show-total":"","page-size":t.orderData.limit},on:{"on-change":t.pageChange}})],1)],1),e("Distribution",{ref:"distshow"}),e("user-details",{ref:"userDetails",attrs:{fromType:"order"}}),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),e("details-from",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId,"row-active":t.rowActive,currentTab:t.currentTab,openErp:t.openErp}}),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,pay_type:t.pay_type},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"d8a38f52",null));e.default=U.exports},f88a:function(t,e,r){"use strict";r("acfa")},fd23:function(t,e,r){"use strict";r("7c43")}}]); |