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.
3 lines
122 KiB
3 lines
122 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order"],{"0447":function(e,t,a){},"0d4b":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container"},[t("a-card",{staticClass:"mb-20",attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-alert",{staticClass:"mb-20",attrs:{showIcon:!0,message:"功能说明:用于订单数据导出,导出后的文件请用Excel打开查看",banner:""}}),t("a-form",{staticClass:"my-form",attrs:{form:e.myForm,layout:"inline"},on:{submit:e.handleSubmit}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime",{rules:[{required:!0,message:"请选择下单时间"}]}],expression:"['betweenTime', { rules: [{ required: true, message: '请选择下单时间' }] }]"}],attrs:{format:"YYYY-MM-DD"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"订单类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["dataType",{initialValue:"all",rules:[{required:!0,message:"请选择订单类型"}]}],expression:"['dataType', { initialValue: 'all', rules: [{ required: true, message: '请选择订单类型' }] }]"}]},e._l(e.DataTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"订单来源"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderSource",{initialValue:-1}],expression:"['orderSource', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OrderSourceEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"支付方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["payMethod",{initialValue:0}],expression:"['payMethod', { initialValue: 0 }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.PaymentMethodEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"配送方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["deliveryType",{initialValue:-1}],expression:"['deliveryType', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.DeliveryTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"自提门店"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["extractShopId",{initialValue:0}],expression:"['extractShopId', { initialValue: 0 }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.shopList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.shop_id}},[e._v(e._s(a.shop_name))])}))],2)],1)],1),t("a-col",{attrs:{span:24}},[t("a-form-item",{staticClass:"item-main",attrs:{label:"导出的字段"}},[t("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["columns",{initialValue:e.columnValue,rules:[{required:!0,message:"请选择导出的字段"}]}],expression:"['columns', { initialValue: columnValue, rules: [{ required: true, message: '请选择导出的字段' }] }]"}],attrs:{options:e.columnData}})],1)],1),t("a-col",{attrs:{span:24}},[t("a-form-item",{staticClass:"form-btn"},[t("a-button",{staticClass:"btn-main",attrs:{type:"primary",icon:"download","html-type":"submit",loading:e.isBtnLoading}},[e._v("导出")]),t("a-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],1)],1)],1)],1),t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v("历史导出记录")]),t("ExportList",{ref:"ExportList"})],1)],1)},s=[],i=(a("d3b7"),a("8ded")),n=a.n(i),o=a("c1df"),l=a.n(o),d=a("ca00"),c=a("fa04"),u=a("b775"),m={exportOrder:"/order.export/exportOrder",list:"/order.export/list"};function p(e){return Object(u["b"])({url:m.exportOrder,method:"get",params:e})}function v(e){return Object(u["b"])({url:m.list,method:"get",params:e})}var f,h=a("3858"),_=a("4a95"),b=a("3c76"),g=function(){var e=this,t=e._self._c;return t("s-table",{ref:"table",attrs:{rowKey:"id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:10},scopedSlots:e._u([{key:"time",fn:function(a){return[t("span",[e._v(e._s(a.start_time))]),t("span",{staticClass:"ml-5 mr-5"},[e._v("到")]),t("span",[e._v(e._s(a.end_time))])]}},{key:"status",fn:function(a){return[t("a-tag",{attrs:{color:e.ExportStatusColorEnum[a]}},[e._v(e._s(e.ExportStatusEnum[a].name))])]}},{key:"action",fn:function(a,r){return t("span",{staticClass:"actions"},[r.status===e.ExportStatusEnum.COMPLETED.value?t("a",{directives:[{name:"action",rawName:"v-action:download",arg:"download"}],attrs:{href:r.download_url,target:"_blank"}},[e._v("下载")]):e._e()])}}])})},y=[],E=a("ade3"),C=a("2af9"),L=a("5c06"),S=new L["a"]([{key:"NORMAL",name:"进行中",value:10},{key:"COMPLETED",name:"已完成",value:20},{key:"FAIL",name:"失败",value:30}]),x=(f={},Object(E["a"])(f,S.NORMAL.value,""),Object(E["a"])(f,S.COMPLETED.value,"green"),Object(E["a"])(f,S.FAIL.value,"red"),f),w={name:"ExportList",components:{STable:C["d"]},data:function(){return{isLoading:!1,ExportStatusEnum:S,ExportStatusColorEnum:x,columns:[{title:"记录ID",dataIndex:"id"},{title:"下单时间",scopedSlots:{customRender:"time"}},{title:"导出时间",dataIndex:"create_time"},{title:"导出状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"操作",width:"180px",scopedSlots:{customRender:"action"}}],loadData:function(e){return v(e).then((function(e){return e.data.list}))}}},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$refs.table.refresh(e)}}},D=w,R=a("2877"),O=Object(R["a"])(D,g,y,!1,null,"7cc988ee",null),k=O.exports,I=Object(c["c"])([{label:"订单ID",value:"order_id"},{label:"订单号",value:"order_no"},{label:"商品信息",value:"goods_detail"},{label:"商品总额",value:"total_price"},{label:"优惠券抵扣金额",value:"coupon_money",moduleKey:"market-coupon"},{label:"积分抵扣金额",value:"points_money",moduleKey:"market-points"},{label:"后台改价",value:"update_price",moduleKey:"order-updatePrice"},{label:"运费金额",value:"express_price"},{label:"订单实付款",value:"pay_price"},{label:"支付方式",value:"pay_method"},{label:"下单时间",value:"create_time"},{label:"买家信息",value:"user_info"},{label:"买家留言",value:"buyer_remark"},{label:"配送方式",value:"delivery_type"},{label:"收货人",value:"receipt_name"},{label:"联系电话",value:"receipt_phone"},{label:"收货地址",value:"receipt_address"},{label:"自提门店名称",value:"extract_shop_name"},{label:"自提联系人",value:"extract_linkman"},{label:"自提联系电话",value:"extract_phone"},{label:"付款状态",value:"pay_status"},{label:"付款时间",value:"pay_time"},{label:"发货状态",value:"delivery_status"},{label:"发货时间",value:"delivery_time"},{label:"收货状态",value:"receipt_status"},{label:"收货时间",value:"receipt_time"},{label:"订单状态",value:"order_status"},{label:"是否已评价",value:"is_comment"},{label:"订单来源",value:"order_source"}]),P=["order_no","goods_detail","total_price","coupon_money","points_money","update_price","express_price","pay_price","pay_method","create_time","user_info","buyer_remark","delivery_type","receipt_name","receipt_phone","receipt_address","pay_status","pay_time","delivery_status","delivery_time","receipt_status","receipt_time","order_status","order_source"],T="order_export_form",A={name:"Export",components:{ExportList:k},data:function(){return{myForm:this.$form.createForm(this),isLoading:!1,isBtnLoading:!1,labelCol:{span:8},wrapperCol:{span:16},columnData:I,columnValue:P,shopList:[]}},created:function(){this.setFieldsValue(),this.getShopList()},beforeCreate:function(){Object(d["a"])(this,{inArray:d["e"],DeliveryTypeEnum:_["c"],OrderSourceEnum:_["d"],OrderStatusEnum:_["e"],PaymentMethodEnum:b["a"],DataTypeEnum:_["a"]})},methods:{getShopList:function(){var e=this;h["b"]().then((function(t){return e.shopList=t.data.list}))},setFieldsValue:function(){var e=n.a.get(T);if(!Object(d["f"])(e)){e.betweenTime=[l()(e.betweenTime[0]),l()(e.betweenTime[1])];var t=this.myForm.setFieldsValue;this.$nextTick((function(){return t(e)}))}},handleSubmit:function(e){var t=this;e.preventDefault(),this.myForm.validateFields((function(e,a){e||(t.onSave2Local(a),t.onFormSubmit(a))}))},onSave2Local:function(e){n.a.set(T,e,1296e6)},onFormSubmit:function(e){var t=this;t.isLoading=!0,t.isBtnLoading=!0,p(e).then((function(e){t.$message.success(e.message,1.5),t.$refs.ExportList.handleRefresh()})).finally((function(e){t.isLoading=!1,t.isBtnLoading=!1}))},handleReset:function(){this.myForm.resetFields(),n.a.remove(T)}}},F=A,N=(a("eb44"),Object(R["a"])(F,r,s,!1,null,"637729d7",null));t["default"]=N.exports},"17ee":function(e,t,a){},"1da1":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("d3b7");function r(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(d){return void a(d)}o.done?t(l):Promise.resolve(l).then(r,s)}function s(e){return function(){var t=this,a=arguments;return new Promise((function(s,i){var n=e.apply(t,a);function o(e){r(n,s,i,o,l,"next",e)}function l(e){r(n,s,i,o,l,"throw",e)}o(void 0)}))}}},2264:function(e,t,a){"use strict";a.d(t,"a",(function(){return T})),a.d(t,"b",(function(){return V}));a("b0c0");var r,s,i=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:680,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-alert",{staticClass:"mb-30",attrs:{showIcon:!0,message:"功能说明",banner:""}},[t("template",{slot:"description"},[t("p",[e._v("1. 用于打印发货物流的电子面单,无需人工录入单号,提升效率;")]),t("p",[e._v("2. 获取电子面单成功后,将自动录入物流单号并更新订单状态为已发货;")])])],2),t("a-form-model",{ref:"ruleForm",attrs:{model:e.formData,rules:e.rules,"label-col":e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tabs",{model:{value:e.tabKey,callback:function(t){e.tabKey=t},expression:"tabKey"}},[t("a-tab-pane",{key:1,attrs:{tab:"未发货的商品"}},[t("a-table",{attrs:{rowKey:"order_goods_id",columns:e.columns1,dataSource:e.notDeliveredList,"row-selection":e.rowSelection,pagination:!1,scroll:{y:"320px",scrollToFirstRowOnChange:!0}},scopedSlots:e._u([{key:"goods",fn:function(e){return[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,goodsProps:e.goods_props,titleWidth:170},subTitleColor:!0}})]}},{key:"quantity",fn:function(a,r){return t("span",{},[e._v(e._s(r.total_num-r.delivery_num))])}},{key:"input",fn:function(a,r,s){return[t("a-input-number",{attrs:{min:1,max:r.total_num-r.delivery_num,precision:0},model:{value:e.packGoodsData[s].deliveryNum,callback:function(t){e.$set(e.packGoodsData[s],"deliveryNum",t)},expression:"packGoodsData[index].deliveryNum"}})]}}])}),t("a-form-model-item",{attrs:{label:"电子面单模板",prop:"templateId"}},[t("a-select",{attrs:{placeholder:"请选择电子面单模板"},model:{value:e.formData.templateId,callback:function(t){e.$set(e.formData,"templateId",t)},expression:"formData.templateId"}},e._l(e.templateList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.template_id}},[e._v(e._s(a.name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{to:{path:"/apps/eorder/template/index"}}},[e._v("模板管理")])],1)],1),t("a-form-model-item",{attrs:{label:"发货地址",prop:"addressId"}},[t("a-select",{attrs:{placeholder:"请选择发货地址"},model:{value:e.formData.addressId,callback:function(t){e.$set(e.formData,"addressId",t)},expression:"formData.addressId"}},e._l(e.addressList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.address_id}},[e._v(e._s(a.full_address))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{to:{path:"/store/address/index"}}},[e._v("地址管理")])],1)],1),e.record.pay_method===e.PaymentMethodEnum.WECHAT.value&&e.record.platform===e.ClientEnum.MP_WEIXIN.value?t("div",[t("a-form-model-item",{attrs:{label:"同步微信平台",prop:"syncMpWeixinShipping",required:""}},[t("a-radio-group",{model:{value:e.formData.syncMpWeixinShipping,callback:function(t){e.$set(e.formData,"syncMpWeixinShipping",t)},expression:"formData.syncMpWeixinShipping"}},[t("a-radio",{attrs:{value:1}},[e._v("同步")]),t("a-radio",{attrs:{value:0}},[e._v("不同步")])],1),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("同步至微信小程序平台的《发货信息录入》")]),t("p",{staticClass:"extra"},[e._v("仅全部发货或最后一次发货时同步")])])],1)],1):e._e()],1),t("a-tab-pane",{key:2,attrs:{tab:"已发货的商品"}},[t("a-table",{attrs:{columns:e.columns2,rowKey:"order_goods_id",dataSource:e.deliveredList,pagination:!1,scroll:{y:"320px",scrollToFirstRowOnChange:!0}},scopedSlots:e._u([{key:"goods",fn:function(e){return[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,goodsProps:e.goods_props,titleWidth:170},subTitleColor:!0}})]}},{key:"total_num",fn:function(a){return t("span",{},[e._v(e._s(a))])}},{key:"quantity",fn:function(a,r){return t("span",{},[e._v(e._s(r.delivery_num))])}}])})],1)],1)],1)],1)],1)},n=[],o=a("c7eb"),l=a("1da1"),d=(a("d3b7"),a("159b"),a("d81d"),a("4de4"),a("caad"),a("2532"),a("ca00")),c=a("86d6"),u=a("632d"),m=a("4d55"),p=a("ab6f"),v=a("3c76"),f=a("4a95"),h=a("6245"),_=a("ab09"),b=(a("cd17"),a("ed3b")),g=(a("3b18"),a("f64c"));a("ac1f"),a("466d");function y(){try{var e=navigator.userAgent;if(e.match(/Windows\sPhone/i))return!0;if(e.match(/iPhone|iPod|iPad/i))return!0;if(e.match(/Android/i))return!0;if(e.match(/Edge\D?\d+/i))return!0;var t=e.match(/Trident\D?\d+/i),a=e.match(/MSIE\D?\d+/i),r=e.match(/OPR\D?\d+/i),s=e.match(/Firefox\D?\d+/i),i=e.match(/x64/i);if(!t&&!a&&i)return!0;if(s){if(s=s[0].match(/\d+/),s[0]>=41||i)return!0}else if(r){if(r=r[0].match(/\d+/),r[0]>=32)return!0}else if(!t&&!a){var n=e.match(/Chrome\D?\d+/i);if(n&&(n=n[0].match(/\d+/),n[0]>=41))return!0}return!1}catch(o){return!0}}function E(){if("loading"!=s&&"complete"!=s){s="loading";var e=document.head||document.getElementsByTagName("head")[0]||document.documentElement,t=document.createElement("script"),a=document.createElement("script");"https:"==window.location.protocol?(t.src="https://localhost.lodop.net:8443/CLodopfuncs.js",a.src="https://localhost.lodop.net:8444/CLodopfuncs.js"):(t.src="http://localhost:8000/CLodopfuncs.js",a.src="http://localhost:18000/CLodopfuncs.js"),t.onload=a.onload=function(){s="complete"},t.onerror=a.onerror=function(e){s="complete"},e.insertBefore(t,e.firstChild),e.insertBefore(a,e.firstChild),!!(t.src+a.src).match(/\/\/localho|\/\/127.0.0./i)}}function C(e,t){var a,i="打印控件CLodop未安装启动,请先下载并执行安装",n=",完成后请刷新或重启浏览器。";try{var o=navigator.userAgent,l=!!o.match(/MSIE/i)||!!o.match(/Trident/i);if(y()){try{a=getCLodop()}catch(d){}if(!a&&"complete"!==s)return L("loading"==s?"网页还没加载完毕,请稍等一下再操作":"没有加载CLodop的主js,请先调用loadCLodop过程"),!1;if(!a)return x(i+n),!1;CLODOP.CVERSION,t&&t.parentNode&&t.parentNode.removeChild(t),e&&e.parentNode&&e.parentNode.removeChild(e)}else e||t?a=l?e:t:r||(a=document.createElement("object"),a.setAttribute("width",0),a.setAttribute("height",0),a.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;"),l?a.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA"):a.setAttribute("type","application/x-print-lodop"),document.documentElement.appendChild(a),r=a);return a.VERSION<"6.2.2.6"&&y(),a.SET_LICENSES("","13528A153BAEE3A0254B9507DCDE2839","EDE92F75B6A3D917F65910","D60BC84D7CF2DE18156A6F88987304CB6D8"),a}catch(d){S("getLodop出错:"+d)}}function L(e){g["a"].warning(e,1.5)}function S(e){b["a"].error({title:"打印控件调用错误",content:e})}function x(e){b["a"].confirm({title:"友情提示",content:e,okText:"前往下载",onOk:function(){window.open("http://www.kdniao.com/documents-instrument")}})}y()&&E();var w=[{title:"商品信息",scopedSlots:{customRender:"goods"},width:"50%"},{title:"可发货的数量",scopedSlots:{customRender:"quantity"},width:"20%"},{title:"发货数量",scopedSlots:{customRender:"input"},width:"30%"}],D=[{title:"商品信息",scopedSlots:{customRender:"goods"},width:"50%"},{title:"购买数量",dataIndex:"total_num",width:"20%"},{title:"已发货的数量",scopedSlots:{customRender:"quantity"},width:"20%"}],R={templateId:[{required:!0,message:"请选择电子面单模板",trigger:"blur"}],addressId:[{required:!0,message:"请选择发货地址",trigger:"blur"}]},O={components:{GoodsItem:_["a"]},data:function(){return{title:"打印电子面单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,columns1:w,columns2:D,rules:R,tabKey:1,LODOP:void 0,formData:{packGoodsData:[],templateId:void 0,addressId:void 0,syncMpWeixinShipping:1},addressList:[],templateList:[],record:{},packGoodsData:[],selectedRowKeys:[]}},computed:{rowSelection:function(){var e=this;return{onChange:function(t,a){e.selectedRowKeys=t},selectedRowKeys:this.selectedRowKeys}},notDeliveredList:function(){var e=this.record;if(e&&e.goods){var t=[];return e.goods.forEach((function(e){e.delivery_status!=f["b"].DELIVERED.value&&t.push(e)})),this.selectedRowKeys=t.map((function(e){return e.order_goods_id})),t}},deliveredList:function(){var e=this.record;if(e&&e.goods){var t=[];return e.goods.forEach((function(e){e.delivery_status!=f["b"].NOT_DELIVERED.value&&t.push(e)})),t}}},beforeCreate:function(){Object(d["a"])(this,{ClientEnum:p["a"],PaymentMethodEnum:v["a"]})},created:function(){var e=this;return Object(l["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.getAddressList();case 3:return t.next=5,e.getTemplateList();case 5:e.isLoading=!1;case 6:case"end":return t.stop()}}),t)})))()},methods:{handle:function(e){C()&&(this.visible=!0,this.record=e,this.initPackGoodsData())},initPackGoodsData:function(){var e=this.notDeliveredList;e&&e.length&&(this.packGoodsData=e.map((function(e){return{orderGoodsId:e.order_goods_id,deliveryNum:e.total_num-e.delivery_num}})))},getAddressList:function(){var e=this;return Object(l["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,m["b"]({type:h["a"].DELIVERY.value}).then((function(t){return e.addressList=t.data.list}));case 2:case"end":return t.stop()}}),t)})))()},getTemplateList:function(){var e=this;return Object(l["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,u["b"]().then((function(t){return e.templateList=t.data.list}));case 2:case"end":return t.stop()}}),t)})))()},handleSubmit:function(e){var t=this;if(e.preventDefault(),this.tabKey=1,!this.selectedRowKeys.length)return this.$message.error("您还没有选择要发货的商品"),!1;this.formData.packGoodsData=this.packGoodsData.filter((function(e){return t.selectedRowKeys.includes(e.orderGoodsId)})),this.$refs.ruleForm.validate((function(e){e&&t.onFormSubmit()}))},handleCancel:function(){this.visible=!1,this.$refs.ruleForm.resetFields()},onFormSubmit:function(){var e=this;this.isLoading=!0,c["d"]({orderId:this.record.order_id,form:this.formData}).then((function(t){e.$message.success(t.message,1.5),e.handleCancel(),e.printEOrder(t.data.template),e.$emit("handleSubmit",!0)})).finally((function(){return e.isLoading=!1}))},printEOrder:function(e){LODOP.PRINT_INIT(),LODOP.SET_PRINT_PAGESIZE(0),LODOP.NewPageA(),LODOP.ADD_PRINT_HTML(0,0,"100%","100%",e),LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW",!0),LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",!0),LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Auto-Width"),LODOP.SET_SHOW_MODE("HIDE_PAGE_PERCENT",!0),LODOP.PREVIEW()}}},k=O,I=(a("25b5"),a("2877")),P=Object(I["a"])(k,i,n,!1,null,"3e2eefb2",null),T=P.exports,A=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:520,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1,okText:"打印"},on:{ok:e.handleOK,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"eorder-content",domProps:{innerHTML:e._s(e.eorderContent)}},[e._v("s")])])],1)},F=[],N={components:{},data:function(){return{title:"查看电子面单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,LODOP:void 0,record:{},eorderContent:""}},methods:{handle:function(e){this.visible=!0,this.record=e,this.getDetail()},getDetail:function(){var e=this;this.isLoading=!0,c["c"](this.record.delivery_id).then((function(t){return e.eorderContent=t.data.detail.eorder_html})).finally((function(){return e.isLoading=!1}))},handleOK:function(e){this.eorderContent?C()&&this.printEOrder(this.eorderContent):this.$message.error("很抱歉,没有电子面单内容",1.2)},handleCancel:function(){this.visible=!1,this.eorderContent=""},printEOrder:function(e){LODOP.PRINT_INIT(),LODOP.SET_PRINT_PAGESIZE(0),LODOP.NewPageA(),LODOP.ADD_PRINT_HTML(0,0,"100%","100%",e),LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW",!0),LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",!0),LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Auto-Width"),LODOP.SET_SHOW_MODE("HIDE_PAGE_PERCENT",!0),LODOP.PREVIEW()}}},j=N,M=(a("42c6"),Object(I["a"])(j,A,F,!1,null,"3add4df0",null)),V=M.exports},"25b5":function(e,t,a){"use strict";a("2f3f")},"2a66":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return d}));var r=a("b775"),s={list:"/setting.express/list",all:"/setting.express/all",add:"/setting.express/add",edit:"/setting.express/edit",delete:"/setting.express/delete"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.all,method:"get",params:e})}function o(e){return Object(r["b"])({url:s.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.edit,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.delete,method:"post",data:e})}},"2dc2":function(e,t,a){},"2f3f":function(e,t,a){},"305d":function(e,t,a){"use strict";a("c6bb")},"36ad":function(e,t,a){"use strict";a("c051")},"3a10":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var r=a("b775"),s={list:"/order/list",detail:"/order/detail"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.detail,method:"get",params:e})}},"3c07":function(e,t,a){"use strict";a("8e58")},"3c76":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r=a("5c06"),s=new r["a"]([{key:"WECHAT",name:"微信支付",value:"wechat"},{key:"ALIPAY",name:"支付宝",value:"alipay"},{key:"BALANCE",name:"余额支付",value:"balance"}])},"42c6":function(e,t,a){"use strict";a("0447")},"4a95":function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"g",(function(){return l})),a.d(t,"h",(function(){return d})),a.d(t,"f",(function(){return c})),a.d(t,"a",(function(){return u}));var r=a("5c06"),s=new r["a"]([{key:"NOT_DELIVERED",name:"未发货",value:10},{key:"DELIVERED",name:"已发货",value:20},{key:"PART_DELIVERED",name:"部分发货",value:30}]),i=new r["a"]([{key:"EXPRESS",name:"快递配送",value:10},{key:"EXTRACT",name:"上门自提",value:20},{key:"NOTHING",name:"无需配送",value:30}]),n=new r["a"]([{key:"MASTER",name:"普通订单",value:10},{key:"BARGAIN",name:"砍价订单",value:20},{key:"SHARP",name:"秒杀订单",value:30},{key:"GROUPON",name:"拼团订单",value:40}]),o=new r["a"]([{key:"NORMAL",name:"进行中",value:10},{key:"CANCELLED",name:"已取消",value:20},{key:"APPLY_CANCEL",name:"待取消",value:21},{key:"COMPLETED",name:"已完成",value:30}]),l=new r["a"]([{key:"PENDING",name:"待支付",value:10},{key:"SUCCESS",name:"已支付",value:20}]),d=new r["a"]([{key:"NOT_RECEIVED",name:"未收货",value:10},{key:"RECEIVED",name:"已收货",value:20}]),c=new r["a"]([{key:"PHYSICAL",name:"实物订单",value:10},{key:"VIRTUAL",name:"虚拟订单",value:20}]),u=new r["a"]([{key:"ALL",name:"全部",value:"all"},{key:"DELIVERY",name:"待发货",value:"delivery"},{key:"RECEIPT",name:"待收货",value:"receipt"},{key:"PAY",name:"待付款",value:"pay"},{key:"COMPLETE",name:"已完成",value:"complete"},{key:"APPLY_CANCEL",name:"待取消",value:"apply_cancel"},{key:"CANCEL",name:"已取消",value:"cancel"}])},"4d55":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return d}));var r=a("b775"),s={list:"/store.address/list",all:"/store.address/all",add:"/store.address/add",edit:"/store.address/edit",delete:"/store.address/delete"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.all,method:"get",params:e})}function o(e){return Object(r["b"])({url:s.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.edit,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.delete,method:"post",data:e})}},"56db":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.isLoading}}),e.isLoading?e._e():t("div",{staticClass:"detail-content"},[t("a-card",{attrs:{bordered:!1}},[e.record.status==e.RefundStatusEnum.NORMAL.value?t("div",{staticClass:"detail-actions"},[t("div",{staticClass:"ant-descriptions-title"},[e._v("售后单操作")]),t("div",{staticClass:"alerts mt-10 mb-15"},[e.record.audit_status==e.AuditStatusEnum.WAIT.value?t("a-alert",{attrs:{message:"当前买家已发起售后申请,请及时审核处理",banner:""}}):e._e()],1),t("div",{staticClass:"actions mt-10"},[e.$auth("/order/refund/index.audit")?t("div",[e.record.audit_status==e.AuditStatusEnum.WAIT.value?t("a-button",{attrs:{type:"primary"},on:{click:e.handleAudit}},[e._v("商家审核")]):e._e()],1):e._e(),e.$auth("/order/refund/index.receipt")?t("div",[e.record.type==e.RefundTypeEnum.RETURN.value&&e.record.audit_status==e.AuditStatusEnum.REVIEWED.value&&e.record.is_user_send&&!e.record.is_receipt?t("a-button",{attrs:{type:"primary"},on:{click:e.handleReceipt}},[e._v("确认收货")]):e._e()],1):e._e()]),t("a-divider",{staticClass:"o-divider"})],1):e._e(),t("a-descriptions",{attrs:{title:"售后单信息"}},[t("a-descriptions-item",{attrs:{label:"订单号"}},[t("router-link",{attrs:{title:"查看订单详情",to:{path:"/order/detail",query:{orderId:e.record.order_id}},target:"_blank"}},[e._v(e._s(e.record.orderData.order_no))])],1),t("a-descriptions-item",{attrs:{label:"买家信息"}},[t("a-tooltip",[t("template",{slot:"title"},[e._v("会员ID: "+e._s(e.record.user.user_id))]),t("span",{staticClass:"c-p"},[e._v(e._s(e.record.user.nick_name))])],2)],1),t("a-descriptions-item",{attrs:{label:"订单支付总额"}},[t("span",{staticClass:"c-p"},[t("span",[e._v("¥")]),t("span",[e._v(e._s(e.record.orderData.pay_price))])])]),t("a-descriptions-item",{attrs:{label:"售后类型"}},[t("a-tag",[e._v(e._s(e.RefundTypeEnum[e.record.type].name))])],1),t("a-descriptions-item",{attrs:{label:"售后单状态"}},[t("a-tag",{attrs:{color:e.renderRefundStatusColor(e.record.status)}},[e._v(e._s(e.RefundStatusEnum[e.record.status].name))])],1),t("a-descriptions-item",{attrs:{label:"申请时间"}},[e._v(e._s(e.record.create_time))])],1),t("a-divider",{staticClass:"o-divider"}),t("a-descriptions",{attrs:{title:"处理进度"}},[t("a-descriptions-item",{attrs:{label:"审核状态 (商家)"}},[t("a-tag",{attrs:{color:e.renderAuditStatusColor(e.record.audit_status)}},[e._v(e._s(e.AuditStatusEnum[e.record.audit_status].name))])],1),e.record.type==e.RefundTypeEnum.RETURN.value?t("a-descriptions-item",{attrs:{label:"发货状态 (买家)"}},[t("a-tag",{attrs:{color:e.record.is_user_send?"green":""}},[e._v(e._s(e.record.is_user_send?"已发货":"待发货"))])],1):e._e(),e.record.type==e.RefundTypeEnum.RETURN.value?t("a-descriptions-item",{attrs:{label:"收货状态 (商家)"}},[t("a-tag",{attrs:{color:e.record.is_receipt?"green":""}},[e._v(e._s(e.record.is_receipt?"已收货":"待收货"))])],1):e._e(),e.record.audit_status==e.AuditStatusEnum.REJECTED.value?t("a-descriptions-item",{attrs:{label:"拒绝原因"}},[t("span",[e._v(e._s(e.record.refuse_desc))])]):e._e()],1)],1),t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("a-descriptions",{attrs:{title:"买家申请原因"}},[t("a-descriptions-item",{attrs:{label:"售后描述"}},[e._v(e._s(e.record.apply_desc?e.record.apply_desc:"--"))])],1),e.record.images.length?[t("a-divider",{staticClass:"o-divider"}),t("a-descriptions",{attrs:{title:"申请凭证"}},[t("a-descriptions-item",[t("div",{staticClass:"image-list"},e._l(e.record.images,(function(e){return t("div",{key:e.image_id,staticClass:"file-item"},[t("a",{attrs:{href:e.image_url,target:"_blank"}},[t("div",{staticClass:"img-cover",style:{backgroundImage:"url('".concat(e.image_url,"')")}})])])})),0)])],1)]:e._e()],2),t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("div",{staticClass:"ant-descriptions-title"},[e._v("售后商品")]),t("div",{staticClass:"goods-list"},[t("a-table",{attrs:{rowKey:"order_goods_id",columns:e.goodsColumns,dataSource:[e.record.orderGoods],pagination:!1},scopedSlots:e._u([{key:"goodsInfo",fn:function(e,a){return[t("GoodsItem",{attrs:{data:{image:a.goods_image,imageAlt:"商品图片",title:a.goods_name,goodsProps:a.goods_props}}})]}},{key:"goods_no",fn:function(a){return t("span",{},[e._v(e._s(a||"--"))])}},{key:"goods_price",fn:function(t){return[e._v("¥"+e._s(t))]}},{key:"total_num",fn:function(a){return t("span",{},[e._v("x"+e._s(a))])}},{key:"total_pay_price",fn:function(a){return t("span",{},[e._v("¥"+e._s(a))])}}],null,!1,113254456)})],1)]),e.record.audit_status==e.AuditStatusEnum.REVIEWED.value?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("a-descriptions",{attrs:{title:"商家退货地址"}},[t("a-descriptions-item",{attrs:{label:"收货人姓名"}},[e._v(e._s(e.record.address.name))]),t("a-descriptions-item",{attrs:{label:"联系电话"}},[e._v(e._s(e.record.address.phone))]),t("a-descriptions-item",{attrs:{label:"所在地区"}},e._l(e.record.address.region,(function(a,r){return t("span",{key:r,staticClass:"region mr-5"},[e._v(e._s(a))])})),0),t("a-descriptions-item",{attrs:{label:"详细地址"}},[e._v(e._s(e.record.address.detail))])],1)],1):e._e(),e.record.type==e.RefundTypeEnum.RETURN.value&&e.record.audit_status==e.AuditStatusEnum.REVIEWED.value&&e.record.is_user_send?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("a-descriptions",{attrs:{title:"退货物流信息"}},[t("a-descriptions-item",{attrs:{label:"物流公司"}},[e._v(e._s(e.record.express.express_name))]),t("a-descriptions-item",{attrs:{label:"物流单号"}},[e._v(e._s(e.record.express_no))]),t("a-descriptions-item",{attrs:{label:"发货状态"}},[t("a-tag",{attrs:{color:e.record.is_user_send?"green":""}},[e._v(e._s(e.record.is_user_send?"已发货":"待发货"))])],1),t("a-descriptions-item",{attrs:{label:"发货时间"}},[e._v(e._s(e.record.send_time))])],1)],1):e._e()],1),t("AuditForm",{ref:"AuditForm",on:{handleSubmit:e.handleRefresh}}),t("ReceiptForm",{ref:"ReceiptForm",on:{handleSubmit:e.handleRefresh}})],1)},s=[],i=a("ade3"),n=(a("d3b7"),a("ca00")),o=a("e585"),l=a("ab09"),d=a("6ab1"),c=a("b4a5"),u=[{title:"商品信息",scopedSlots:{customRender:"goodsInfo"}},{title:"商品编码",dataIndex:"goods_no",scopedSlots:{customRender:"goods_no"}},{title:"重量(Kg)",dataIndex:"goods_weight",scopedSlots:{customRender:"goods_weight"}},{title:"单价",dataIndex:"goods_price",scopedSlots:{customRender:"goods_price"}},{title:"购买数量",dataIndex:"total_num",scopedSlots:{customRender:"total_num"}},{title:"实际付款价",dataIndex:"total_pay_price",scopedSlots:{customRender:"total_pay_price"}}],m={name:"Index",components:{GoodsItem:l["a"],UserItem:l["d"],AuditForm:c["a"],ReceiptForm:c["b"]},data:function(){return{isLoading:!0,orderRefundId:null,record:{},goodsColumns:u,goodsList:[]}},beforeCreate:function(){Object(n["a"])(this,{AuditStatusEnum:d["a"],RefundStatusEnum:d["b"],RefundTypeEnum:d["c"]})},created:function(){this.orderRefundId=this.$route.query.orderRefundId,this.handleRefresh()},methods:{handleRefresh:function(){this.getDetail()},getDetail:function(){var e=this,t=this.orderRefundId;this.isLoading=!0,o["b"]({orderRefundId:t}).then((function(t){e.record=t.data.detail,e.goodsList=[e.record.orderGoods]})).finally((function(){return e.isLoading=!1}))},renderAuditStatusColor:function(e){var t,a=this.AuditStatusEnum,r=(t={},Object(i["a"])(t,a.WAIT.value,""),Object(i["a"])(t,a.REVIEWED.value,"green"),Object(i["a"])(t,a.REJECTED.value,"red"),t);return r[e]},renderRefundStatusColor:function(e){var t,a=this.RefundStatusEnum,r=(t={},Object(i["a"])(t,a.NORMAL.value,""),Object(i["a"])(t,a.REJECTED.value,"red"),Object(i["a"])(t,a.COMPLETED.value,"green"),Object(i["a"])(t,a.CANCELLED.value,"red"),t);return r[e]},handleAudit:function(){var e=this.record;this.$refs.AuditForm.show(e)},handleReceipt:function(){var e=this.record;this.$refs.ReceiptForm.show(e)}}},p=m,v=(a("bcee"),a("2877")),f=Object(v["a"])(p,r,s,!1,null,"22998d64",null);t["default"]=f.exports},6245:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r=a("5c06"),s=new r["a"]([{key:"DELIVERY",name:"发货地址",value:10},{key:"RETURN",name:"退货地址",value:20}])},"632d":function(e,t,a){"use strict";a.d(t,"f",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return l})),a.d(t,"e",(function(){return d})),a.d(t,"c",(function(){return c}));var r=a("b775"),s={list:"/eorder.template/list",all:"/eorder.template/all",detail:"/eorder.template/detail",add:"/eorder.template/add",edit:"/eorder.template/edit",delete:"/eorder.template/delete"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.all,method:"get",params:e})}function o(e,t){return Object(r["b"])({url:s.detail,method:"get",params:{templateId:e,params:t}})}function l(e){return Object(r["b"])({url:s.add,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:s.delete,method:"post",data:e})}},"6ab1":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n}));var r=a("5c06"),s=new r["a"]([{key:"WAIT",name:"待审核",value:0},{key:"REVIEWED",name:"已同意",value:10},{key:"REJECTED",name:"已拒绝",value:20}]),i=new r["a"]([{key:"NORMAL",name:"进行中",value:0},{key:"REJECTED",name:"已拒绝",value:10},{key:"COMPLETED",name:"已完成",value:20},{key:"CANCELLED",name:"已取消",value:30}]),n=new r["a"]([{key:"RETURN",name:"退货退款",value:10},{key:"EXCHANGE",name:"换货",value:20}])},"6dd2":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return d}));var r=a("b775"),s={list:"/shop.clerk/list",all:"/shop.clerk/all",add:"/shop.clerk/add",edit:"/shop.clerk/edit",delete:"/shop.clerk/delete"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.all,method:"get",params:e})}function o(e){return Object(r["b"])({url:s.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.edit,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.delete,method:"post",data:e})}},"70f2":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"upload-dragger"},[t("a-upload-dragger",{attrs:{accept:".xls, .xlsx",multiple:!1,fileList:e.fileList,showUploadList:!1,beforeUpload:e.beforeUpload,remove:e.handleRemove}},[t("p",{staticClass:"ant-upload-drag-icon"},[t("a-icon",{attrs:{type:"inbox"}})],1),e.fileList.length?t("div",[t("p",{staticClass:"ant-upload-text"},[t("span",[e._v(e._s(e.fileList[0].name))]),t("a",{staticClass:"ml-10",attrs:{href:"javascript:void(0);"},on:{click:function(t){return t.stopPropagation(),e.handleRemove(e.fileList[0])}}},[e._v("删除")])]),t("a-button",{staticClass:"mt-20",attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.onFormSubmit.apply(null,arguments)}}},[e._v("立即导入")])],1):t("div",[t("p",{staticClass:"ant-upload-text"},[e._v("点击选择文件,或者将文件拖拽至此区域")]),t("p",{staticClass:"ant-upload-hint"},[e._v("仅支持 .xls, .xlsx 格式,限2M以内")])])])],1),t("div",{staticClass:"upload-rules"},[t("p",{staticClass:"title"},[e._v("导入规则")]),t("p",{staticClass:"text"},[e._v(" 1. 上传前请先按照导入模版格式填写信息; "),t("a",{attrs:{href:"static/template/batch-delivery.xlsx",target:"_blank"}},[e._v("下载模版文件")])]),t("p",{staticClass:"text"},[e._v("2. 导入的订单以订单号做唯一判断,重复数据将无法导入;")]),t("p",{staticClass:"text"},[e._v("3. 单次最多导入200条,超出的部分会被自动删除;")])])])],1)},s=[],i=(a("a434"),a("d3b7"),a("86d6")),n={data:function(){return{isLoading:!1,fileList:[],uploadSizeLimit:"2"}},created:function(){},methods:{beforeUpload:function(e){var t=e.size/1024/1024;return t>this.uploadSizeLimit?(this.$message.error("上传的文件大小不能超出".concat(this.uploadSizeLimit,"MB")),!1):(this.fileList=[e],!1)},handleRemove:function(e){var t=this.fileList,a=t.indexOf(e);a>-1&&t.splice(a,1)},onFormSubmit:function(){var e=this,t=this.fileList,a=new FormData;a.append("file",t[0]),this.isLoading=!0,i["a"](a).then((function(t){e.fileList=[],e.$message.success(t.message,1.5),setTimeout((function(){return e.$router.back()}),1200)})).finally((function(){return e.isLoading=!1}))}}},o=n,l=(a("305d"),a("2877")),d=Object(l["a"])(o,r,s,!1,null,"61a72b54",null);t["default"]=d.exports},"7b77":function(e,t,a){},"7e0c":function(e,t,a){},"86d6":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return d}));var r=a("b775"),s={list:"/order.delivery/list",detail:"/order.delivery/detail",delivery:"/order.delivery/delivery",batch:"/order.delivery/batch",eorder:"/order.delivery/eorder"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.detail,method:"get",params:{deliveryId:e}})}function o(e){return Object(r["b"])({url:s.delivery,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.batch,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.eorder,method:"post",data:e})}},"884a":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"f",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return d})),a.d(t,"d",(function(){return c}));var r=a("b775"),s={updatePrice:"/order.event/updatePrice",updateRemark:"/order.event/updateRemark",confirmCancel:"/order.event/confirmCancel",delete:"/order.event/delete",extract:"/order.event/extract",printer:"/order.event/printer"};function i(e){return Object(r["b"])({url:s.updatePrice,method:"post",data:e})}function n(e){return Object(r["b"])({url:s.updateRemark,method:"post",data:e})}function o(e){return Object(r["b"])({url:s.confirmCancel,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.delete,method:"post",data:{orderId:e}})}function d(e){return Object(r["b"])({url:s.extract,method:"post",data:e})}function c(e){return Object(r["b"])({url:s.printer,method:"post",data:e})}},"8e58":function(e,t,a){},a1ab:function(e,t,a){"use strict";a("7e0c")},ab06:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",[t("a-spin",{attrs:{spinning:e.isLoading}}),e.isLoading?e._e():t("div",{staticClass:"order-content"},[t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"order-progress",class:"progress-".concat(e.progress)},[t("ul",[t("li",[t("span",[e._v("下单时间")]),t("div",{staticClass:"tip"},[e._v(e._s(e.record.create_time))])]),t("li",[t("span",[e._v("付款")]),e.record.pay_status==e.PayStatusEnum.SUCCESS.value?t("div",{staticClass:"tip"},[e._v("付款于 "+e._s(e.record.pay_time))]):e._e()]),t("li",[t("span",[e._v("发货")]),e.record.delivery_status!=e.DeliveryStatusEnum.NOT_DELIVERED.value?t("div",{staticClass:"tip"},[e._v("发货于 "+e._s(e.record.delivery_time))]):e._e()]),t("li",[t("span",[e._v("收货")]),e.record.receipt_status==e.ReceiptStatusEnum.RECEIVED.value?t("div",{staticClass:"tip"},[e._v("收货于 "+e._s(e.record.receipt_time))]):e._e()]),t("li",[t("span",[e._v("完成")]),e.record.order_status==e.OrderStatusEnum.COMPLETED.value?t("div",{staticClass:"tip"},[e._v("完成于 "+e._s(e.record.receipt_time))]):e._e()])])])]),t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[e.record.order_status!=e.OrderStatusEnum.CANCELLED.value?[t("div",{staticClass:"ant-descriptions-title"},[e._v("订单操作")]),t("div",{staticClass:"alerts mt-10 mb-15"},[e.record.order_status==e.OrderStatusEnum.APPLY_CANCEL.value?t("a-alert",{attrs:{message:"当前买家已付款并申请取消订单,请审核是否同意,如同意则自动退回付款金额(原路退款)并关闭订单。",banner:""}}):e._e()],1),t("div",{staticClass:"actions clearfix mt-10"},[e.$module("order-updatePrice")&&e.$auth("/order/detail.updatePrice")?t("div",{staticClass:"action-item"},[e.record.pay_status==e.PayStatusEnum.PENDING.value?t("a-button",{on:{click:e.handleUpdatePrice}},[e._v("订单改价")]):e._e()],1):e._e(),e.$auth("/order/list/all.deliver")?t("div",{staticClass:"action-item"},[e.record.pay_status==e.PayStatusEnum.SUCCESS.value&&e.inArray(e.record.delivery_type,[e.DeliveryTypeEnum.EXPRESS.value,e.DeliveryTypeEnum.NOTHING.value])&&e.record.delivery_status!=e.DeliveryStatusEnum.DELIVERED.value&&!e.inArray(e.record.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?t("a-button",{attrs:{type:"primary"},on:{click:e.handleDelivery}},[e._v("发货")]):e._e()],1):e._e(),e.$auth("/order/list/all.extract")?t("div",{staticClass:"action-item"},[e.record.pay_status!=e.PayStatusEnum.SUCCESS.value||e.record.delivery_type!=e.DeliveryTypeEnum.EXTRACT.value||e.record.delivery_status==e.DeliveryStatusEnum.DELIVERED.value||e.inArray(e.record.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?e._e():t("a-button",{attrs:{type:"primary"},on:{click:e.handleExtract}},[e._v("自提核销")])],1):e._e(),e.$auth("/order/list/all.cancel")?t("div",{staticClass:"action-item"},[e.record.order_status==e.OrderStatusEnum.APPLY_CANCEL.value?t("a-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v("审核取消订单")]):e._e()],1):e._e(),e.$auth("/order/detail.merchantRemark")?t("div",{staticClass:"action-item"},[t("a-button",{on:{click:e.handleMerchantRemark}},[e._v("商家备注")])],1):e._e(),e.$module("order-printer")&&e.$auth("/order/detail.printer")?t("div",{staticClass:"action-item"},[t("a-button",{on:{click:e.handlePrinter}},[e._v("打印小票")])],1):e._e()]),t("a-divider",{staticClass:"o-divider"})]:e._e(),t("a-descriptions",{attrs:{title:"订单信息"}},[t("a-descriptions-item",{attrs:{label:"订单号"}},[e._v(e._s(e.record.order_no))]),t("a-descriptions-item",{attrs:{label:"实付款金额"}},[e._v("¥"+e._s(e.record.pay_price))]),t("a-descriptions-item",{attrs:{label:"支付方式"}},[e.record.pay_method?t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.PaymentMethodEnum[e.record.pay_method].name))]):t("span",[e._v("--")])],1),t("a-descriptions-item",{attrs:{label:"配送方式"}},[t("a-tag",{attrs:{color:"green"}},[e._v(e._s(e.DeliveryTypeEnum[e.record.delivery_type].name))])],1),t("a-descriptions-item",{attrs:{label:"运费金额"}},[e._v("¥"+e._s(e.record.express_price))]),t("a-descriptions-item",{attrs:{label:"订单状态"}},[t("a-tag",{attrs:{color:e.renderOrderStatusColor(e.record.order_status)}},[e._v(e._s(e.OrderStatusEnum[e.record.order_status].name))])],1),t("a-descriptions-item",{attrs:{label:"买家信息"}},[t("a-tooltip",[t("template",{slot:"title"},[e._v("会员ID: "+e._s(e.record.user.user_id))]),t("span",{staticClass:"c-p"},[e._v(e._s(e.record.user.nick_name))])],2)],1),t("a-descriptions-item",{attrs:{label:"买家留言"}},[t("span",[e._v(e._s(e.record.buyer_remark?e.record.buyer_remark:"-"))])]),t("a-descriptions-item",{attrs:{label:"商家备注"}},[t("span",[e._v(e._s(e.record.merchant_remark?e.record.merchant_remark:"-"))])]),e.record.trade?t("a-descriptions-item",{attrs:{label:"第三方支付订单号"}},[t("span",[e._v(e._s(e.record.trade?e.record.trade.out_trade_no:"-"))])]):e._e(),e.record.trade?t("a-descriptions-item",{attrs:{label:"支付流水号"}},[t("span",[e._v(e._s(e.record.trade?e.record.trade.trade_no:"-"))])]):e._e()],1)],2),t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("div",{staticClass:"ant-descriptions-title"},[e._v("订单商品")]),t("div",{staticClass:"goods-list"},[t("a-table",{attrs:{rowKey:"order_goods_id",columns:e.goodsColumns,dataSource:e.record.goods,pagination:!1},scopedSlots:e._u([{key:"goodsInfo",fn:function(e,a){return[t("GoodsItem",{attrs:{data:{image:a.goods_image,imageAlt:"商品图片",title:a.goods_name,goodsProps:a.goods_props}}})]}},{key:"goods_no",fn:function(a){return t("span",{},[e._v(e._s(a||"--"))])}},{key:"goods_price",fn:function(a,r){return[t("p",{class:{"f-through":r.is_user_grade}},[e._v("¥"+e._s(a))]),r.is_user_grade?t("p",[t("a-tooltip",[t("template",{slot:"title"},[t("span",{staticClass:"f-13"},[e._v("会员等级折扣价")])]),t("strong",[e._v("会员价:")]),t("span",[e._v("¥"+e._s(r.grade_goods_price))])],2)],1):e._e()]}},{key:"total_num",fn:function(a){return t("span",{},[e._v("x"+e._s(a))])}},{key:"total_price",fn:function(a){return t("span",{},[e._v("¥"+e._s(a))])}}],null,!1,369901077)}),t("div",{staticClass:"order-price"},[t("table",{staticClass:"fl-r"},[t("tbody",[t("tr",[t("td",[e._v("订单总额:")]),t("td",[e._v("¥"+e._s(e.record.total_price))])]),e.record.coupon_money>0?t("tr",[t("td",[e._v("优惠券抵扣:")]),t("td",[e._v("-¥"+e._s(e.record.coupon_money))])]):e._e(),e.record.points_money>0?t("tr",[t("td",[e._v("积分抵扣:")]),t("td",[e._v("-¥"+e._s(e.record.points_money))])]):e._e(),0!=e.record.update_price.value?t("tr",[t("td",[e._v("商家改价:")]),t("td",[e._v(e._s(e.record.update_price.symbol)+"¥"+e._s(e.record.update_price.value))])]):e._e(),t("tr",[t("td",[e._v("运费金额:")]),t("td",[e._v("+¥"+e._s(e.record.express_price))])]),t("tr",[t("td",[e._v("实付款金额:")]),t("td",[t("strong",[e._v("¥"+e._s(e.record.pay_price))])])])])])])],1)]),e.record.order_type==e.OrderTypeEnum.PHYSICAL.value?[e.record.pay_status!=e.PayStatusEnum.SUCCESS.value||e.record.delivery_status==e.DeliveryStatusEnum.NOT_DELIVERED.value||e.inArray(e.record.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?e._e():t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[!e.record.delivery.length&&e.record.express?t("a-descriptions",{attrs:{title:"配送信息"}},[t("a-descriptions-item",{attrs:{label:"物流公司"}},[e._v(e._s(e.record.express.express_name))]),t("a-descriptions-item",{attrs:{label:"物流单号"}},[e._v(e._s(e.record.express_no))]),t("a-descriptions-item",{attrs:{label:"发货状态"}},[t("a-tag",{attrs:{color:e.record.delivery_status==e.DeliveryStatusEnum.DELIVERED.value?"green":""}},[e._v(e._s(e.DeliveryStatusEnum[e.record.delivery_status].name))])],1),t("a-descriptions-item",{attrs:{label:"发货时间"}},[e._v(e._s(e.record.delivery_time))])],1):e._e(),e.record.delivery.length?t("div",[t("a-descriptions",{attrs:{title:"发货信息"}}),t("a-tabs",{class:{"hide-bar":e.record.delivery.length<2},attrs:{"default-active-key":1}},e._l(e.record.delivery,(function(a,r){return t("a-tab-pane",{key:r+1,attrs:{tab:"包裹".concat(r+1)}},[t("a-descriptions",[t("a-descriptions-item",{attrs:{label:"物流公司"}},[e._v(e._s(20==a.delivery_method?"无需物流":a.express.express_name))]),t("a-descriptions-item",{attrs:{label:"物流单号"}},[e._v(e._s(a.express_no?a.express_no:"--"))]),t("a-descriptions-item",{attrs:{label:"发货状态"}},[t("a-tag",{attrs:{color:"green"}},[e._v("已发货")])],1)],1),t("div",{staticClass:"deliver-goods-list clearfix"},e._l(a.goods,(function(a,r){return t("div",{key:r,staticClass:"goods-item"},[t("a-tooltip",[t("template",{slot:"title"},[e._v(e._s(a.goods.goods_name))]),t("img",{staticClass:"goods-img",attrs:{src:a.goods.goods_image,alt:"商品图片"}}),t("div",{staticClass:"title"},[e._v("共"+e._s(a.delivery_num)+"件")])],2)],1)})),0)],1)})),1)],1):e._e()],1),e.record.delivery_type==e.DeliveryTypeEnum.EXPRESS.value?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("a-descriptions",{attrs:{title:"买家收货地址"}},[t("a-descriptions-item",{attrs:{label:"收货人姓名"}},[e._v(e._s(e.record.address.name))]),t("a-descriptions-item",{attrs:{label:"联系电话"}},[e._v(e._s(e.record.address.phone))]),t("a-descriptions-item",{attrs:{label:"收货地区"}},[e._v(" "+e._s(e.record.address.region.province)+" "+e._s(e.record.address.region.city)+" "+e._s(e.record.address.region.region)+" ")]),t("a-descriptions-item",{attrs:{label:"详细地址"}},[e._v(e._s(e.record.address.detail))])],1)],1):e._e(),e.record.delivery_type==e.DeliveryTypeEnum.EXTRACT.value?t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("a-descriptions",{attrs:{title:"自提信息"}},[t("a-descriptions-item",{attrs:{label:"姓名"}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.extract.linkman))]),t("span",{staticClass:"f-13 ml-5"},[e._v("(取货人)")])]),t("a-descriptions-item",{attrs:{label:"电话"}},[t("span",{staticClass:"c-p"},[e._v(e._s(e.record.extract.phone))]),t("span",{staticClass:"f-12 ml-5"},[e._v("(取货人)")])]),t("a-descriptions-item",{attrs:{label:""}}),t("a-descriptions-item",{attrs:{label:"自提门店"}},[t("a-tooltip",[t("template",{slot:"title"},[e._v("门店ID: "+e._s(e.record.extract_shop.shop_id))]),t("span",[e._v(e._s(e.record.extract_shop.shop_name))])],2)],1),t("a-descriptions-item",{attrs:{label:"门店联系人"}},[e._v(e._s(e.record.extract_shop.linkman))]),t("a-descriptions-item",{attrs:{label:"门店电话"}},[e._v(e._s(e.record.extract_shop.phone))]),t("a-descriptions-item",{attrs:{label:"门店地址"}},[t("span",[e._v(e._s(e.record.extract_shop.region.province))]),t("span",[e._v(e._s(e.record.extract_shop.region.city))]),t("span",[e._v(e._s(e.record.extract_shop.region.region))]),t("span",{staticClass:"ml-5"},[e._v(e._s(e.record.extract_shop.address))])])],1),e.record.pay_status!=e.PayStatusEnum.SUCCESS.value||e.record.delivery_status!=e.DeliveryStatusEnum.DELIVERED.value||e.inArray(e.record.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?e._e():[t("a-divider",{staticClass:"o-divider"}),t("a-descriptions",{attrs:{title:"核销信息"}},[t("a-descriptions-item",{attrs:{label:"门店名称"}},[t("a-tooltip",[t("template",{slot:"title"},[e._v("门店ID: "+e._s(e.record.extract_shop.shop_id))]),t("span",[e._v(e._s(e.record.extract_shop.shop_name))])],2)],1),t("a-descriptions-item",{attrs:{label:"核销员"}},[t("a-tooltip",[t("template",{slot:"title"},[e._v("核销员ID: "+e._s(e.record.extract_clerk.clerk_id))]),t("span",[e._v(e._s(e.record.extract_clerk.real_name))])],2)],1),t("a-descriptions-item",{attrs:{label:"核销状态"}},[t("a-tag",{attrs:{color:e.record.delivery_status==e.DeliveryStatusEnum.DELIVERED.value?"green":""}},[e._v("已核销")])],1),t("a-descriptions-item",{attrs:{label:"核销时间"}},[e._v(e._s(e.record.delivery_time))])],1)]],2):e._e()]:e._e()],2),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("ExtractForm",{ref:"ExtractForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}}),t("PrinterForm",{ref:"PrinterForm",on:{handleSubmit:e.handleRefresh}}),t("PriceForm",{ref:"PriceForm",on:{handleSubmit:e.handleRefresh}}),t("RemarkForm",{ref:"RemarkForm",on:{handleSubmit:e.handleRefresh}})],1)},s=[],i=a("ade3"),n=(a("d3b7"),a("159b"),a("7db0"),a("ca00")),o=a("3a10"),l=a("ab09"),d=a("ac82"),c=a("4a95"),u=a("3c76"),m=[{title:"商品信息",scopedSlots:{customRender:"goodsInfo"}},{title:"商品编码",dataIndex:"goods_no",scopedSlots:{customRender:"goods_no"}},{title:"重量(Kg)",dataIndex:"goods_weight",scopedSlots:{customRender:"goods_weight"}},{title:"单价",dataIndex:"goods_price",scopedSlots:{customRender:"goods_price"}},{title:"购买数量",dataIndex:"total_num",scopedSlots:{customRender:"total_num"}},{title:"商品总价",dataIndex:"total_price",scopedSlots:{customRender:"total_price"}}],p={name:"Index",components:{GoodsItem:l["a"],UserItem:l["d"],DeliveryForm:d["b"],ExtractForm:d["c"],CancelForm:d["a"],PrinterForm:d["e"],PriceForm:d["d"],RemarkForm:d["f"]},data:function(){return{OrderTypeEnum:c["f"],DeliveryStatusEnum:c["b"],DeliveryTypeEnum:c["c"],OrderSourceEnum:c["d"],OrderStatusEnum:c["e"],PayStatusEnum:c["g"],ReceiptStatusEnum:c["h"],PaymentMethodEnum:u["a"],inArray:n["e"],isLoading:!0,orderId:null,record:{},progress:2,goodsColumns:m}},created:function(){this.orderId=this.$route.query.orderId,this.handleRefresh()},methods:{handleRefresh:function(){this.getDetail()},getDetail:function(){var e=this,t=this.orderId;this.isLoading=!0,o["a"]({orderId:t}).then((function(t){e.record=t.data.detail,e.initData()})).finally((function(){return e.isLoading=!1}))},initData:function(){this.initProgress(),this.initDeliveryGoods()},initProgress:function(){var e=this.record;this.progress=2,e.pay_status==c["g"].SUCCESS.value&&(this.progress+=1),e.delivery_status!=c["b"].NOT_DELIVERED.value&&(this.progress+=1),e.receipt_status==c["h"].RECEIVED.value&&(this.progress+=1)},initDeliveryGoods:function(){var e=this.record;e.delivery.length&&e.delivery.forEach((function(t){t.goods.forEach((function(t){t.goods=e.goods.find((function(e){return e.order_goods_id==t.order_goods_id}))}))}))},renderOrderStatusColor:function(e){var t,a=this.OrderStatusEnum,r=(t={},Object(i["a"])(t,a.NORMAL.value,""),Object(i["a"])(t,a.CANCELLED.value,"red"),Object(i["a"])(t,a.APPLY_CANCEL.value,"red"),Object(i["a"])(t,a.COMPLETED.value,"green"),t);return r[e]},handleDelivery:function(){var e=this.record;this.$refs.DeliveryForm.show(e)},handleExtract:function(){var e=this.record;this.$refs.ExtractForm.show(e)},handleCancel:function(){var e=this.record;this.$refs.CancelForm.show(e)},handlePrinter:function(){var e=this.record;this.$refs.PrinterForm.show(e)},handleUpdatePrice:function(){var e=this.record;this.$refs.PriceForm.show(e)},handleMerchantRemark:function(){var e=this.record;this.$refs.RemarkForm.show(e)}}},v=p,f=(a("ebb6"),a("2877")),h=Object(f["a"])(v,r,s,!1,null,"80446ce4",null);t["default"]=h.exports},ab6f:function(e,t,a){"use strict";var r=a("5c06");t["a"]=new r["a"]([{key:"APP",name:"APP端",value:"APP"},{key:"H5",name:"H5端",value:"H5"},{key:"WXOFFICIAL",name:"微信公众号端",value:"WXOFFICIAL"},{key:"MP_WEIXIN",name:"微信小程序端",value:"MP-WEIXIN"},{key:"MP_ALIPAY",name:"支付宝小程序端",value:"MP-ALIPAY"}])},ac82:function(e,t,a){"use strict";a.d(t,"b",(function(){return g})),a.d(t,"c",(function(){return D})),a.d(t,"a",(function(){return T})),a.d(t,"e",(function(){return $})),a.d(t,"d",(function(){return H})),a.d(t,"f",(function(){return ee}));var r=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:680,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form-model",{ref:"ruleForm",attrs:{model:e.formData,rules:e.rules,"label-col":e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tabs",{model:{value:e.tabKey,callback:function(t){e.tabKey=t},expression:"tabKey"}},[t("a-tab-pane",{key:1,attrs:{tab:"未发货的商品"}},[t("a-table",{attrs:{rowKey:"order_goods_id",columns:e.columns1,dataSource:e.notDeliveredList,"row-selection":e.rowSelection,pagination:!1,scroll:{y:"320px",scrollToFirstRowOnChange:!0}},scopedSlots:e._u([{key:"goods",fn:function(e){return[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,goodsProps:e.goods_props,titleWidth:170},subTitleColor:!0}})]}},{key:"quantity",fn:function(a,r){return t("span",{},[e._v(e._s(r.total_num-r.delivery_num))])}},{key:"input",fn:function(a,r,s){return[t("a-input-number",{attrs:{min:1,max:r.total_num-r.delivery_num,precision:0},model:{value:e.packGoodsData[s].deliveryNum,callback:function(t){e.$set(e.packGoodsData[s],"deliveryNum",t)},expression:"packGoodsData[index].deliveryNum"}})]}}])}),t("a-form-model-item",{attrs:{label:"发货方式",prop:"deliveryMethod",required:""}},[t("a-radio-group",{model:{value:e.formData.deliveryMethod,callback:function(t){e.$set(e.formData,"deliveryMethod",t)},expression:"formData.deliveryMethod"}},[t("a-radio",{attrs:{value:10}},[e._v("物流信息")]),t("a-radio",{attrs:{value:20}},[e._v("无需物流")])],1)],1),10==e.formData.deliveryMethod?t("div",[t("a-form-model-item",{attrs:{label:"物流公司",prop:"expressId"}},[t("a-select",{attrs:{placeholder:"请选择物流公司"},model:{value:e.formData.expressId,callback:function(t){e.$set(e.formData,"expressId",t)},expression:"formData.expressId"}},e._l(e.expressList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.express_id}},[e._v(e._s(a.express_name))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/setting/delivery/express/index"}}},[e._v("物流公司管理")])],1)],1),t("a-form-model-item",{attrs:{label:"物流单号",prop:"expressNo",extra:"请手动录入物流单号或快递单号"}},[t("a-input",{model:{value:e.formData.expressNo,callback:function(t){e.$set(e.formData,"expressNo",t)},expression:"formData.expressNo"}})],1)],1):e._e(),e.record.pay_method===e.PaymentMethodEnum.WECHAT.value&&e.record.platform===e.ClientEnum.MP_WEIXIN.value?t("div",[t("a-form-model-item",{attrs:{label:"同步微信平台",prop:"syncMpWeixinShipping",required:""}},[t("a-radio-group",{model:{value:e.formData.syncMpWeixinShipping,callback:function(t){e.$set(e.formData,"syncMpWeixinShipping",t)},expression:"formData.syncMpWeixinShipping"}},[t("a-radio",{attrs:{value:1}},[e._v("同步")]),t("a-radio",{attrs:{value:0}},[e._v("不同步")])],1),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("同步至微信小程序平台的《发货信息录入》")]),t("p",{staticClass:"extra"},[e._v("仅全部发货或最后一次发货时同步")])])],1)],1):e._e()],1),t("a-tab-pane",{key:2,attrs:{tab:"已发货的商品"}},[t("a-table",{attrs:{columns:e.columns2,rowKey:"order_goods_id",dataSource:e.deliveredList,pagination:!1,scroll:{y:"320px",scrollToFirstRowOnChange:!0}},scopedSlots:e._u([{key:"goods",fn:function(e){return[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,goodsProps:e.goods_props,titleWidth:170},subTitleColor:!0}})]}},{key:"total_num",fn:function(a){return t("span",{},[e._v(e._s(a))])}},{key:"quantity",fn:function(a,r){return t("span",{},[e._v(e._s(r.delivery_num))])}}])})],1)],1)],1)],1)],1)},s=[],i=(a("d3b7"),a("159b"),a("d81d"),a("4de4"),a("caad"),a("2532"),a("ca00")),n=a("86d6"),o=a("2a66"),l=a("ab6f"),d=a("3c76"),c=a("4a95"),u=a("ab09"),m=[{title:"商品信息",scopedSlots:{customRender:"goods"},width:"50%"},{title:"可发货的数量",scopedSlots:{customRender:"quantity"},width:"20%"},{title:"发货数量",scopedSlots:{customRender:"input"},width:"30%"}],p=[{title:"商品信息",scopedSlots:{customRender:"goods"},width:"50%"},{title:"购买数量",dataIndex:"total_num",width:"20%"},{title:"已发货的数量",scopedSlots:{customRender:"quantity"},width:"20%"}],v={expressId:[{required:!0,message:"请选择物流公司",trigger:"blur"}],expressNo:[{required:!0,message:"请填写物流单号",trigger:"blur"}]},f={components:{GoodsItem:u["a"]},data:function(){return{title:"订单发货",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,columns1:m,columns2:p,rules:v,tabKey:1,expressList:[],record:{},packGoodsData:[],formData:{deliveryMethod:10,packGoodsData:[],expressId:void 0,expressNo:"",syncMpWeixinShipping:1},selectedRowKeys:[]}},computed:{rowSelection:function(){var e=this;return{onChange:function(t,a){e.selectedRowKeys=t},selectedRowKeys:this.selectedRowKeys}},notDeliveredList:function(){var e=this.record;if(e&&e.goods){var t=[];return e.goods.forEach((function(e){e.delivery_status!=c["b"].DELIVERED.value&&t.push(e)})),this.selectedRowKeys=t.map((function(e){return e.order_goods_id})),t}},deliveredList:function(){var e=this.record;if(e&&e.goods){var t=[];return e.goods.forEach((function(e){e.delivery_status!=c["b"].NOT_DELIVERED.value&&t.push(e)})),t}}},beforeCreate:function(){Object(i["a"])(this,{ClientEnum:l["a"],PaymentMethodEnum:d["a"]})},created:function(){this.getExpressList()},methods:{show:function(e){this.record=e,10==e.order_type?this.showModalByPhysical():20==e.order_type&&this.showModalByVirtual()},showModalByPhysical:function(){this.visible=!0,this.initPackGoodsData()},showModalByVirtual:function(){var e=this;e.formData.deliveryMethod=20,e.$confirm({title:"该订单商品无需配送,是否确认已交付给买家?",onOk:function(){e.onFormSubmit()}})},initPackGoodsData:function(){var e=this.notDeliveredList;e&&e.length&&(this.packGoodsData=e.map((function(e){return{orderGoodsId:e.order_goods_id,deliveryNum:e.total_num-e.delivery_num}})))},getExpressList:function(){var e=this;this.isLoading=!0,o["b"]().then((function(t){return e.expressList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;if(e.preventDefault(),this.tabKey=1,!this.selectedRowKeys.length)return this.$message.error("您还没有选择要发货的商品"),!1;this.formData.packGoodsData=this.packGoodsData.filter((function(e){return t.selectedRowKeys.includes(e.orderGoodsId)})),this.$refs.ruleForm.validate((function(e){e&&t.onFormSubmit()}))},handleCancel:function(){this.visible=!1,this.$refs.ruleForm&&this.$refs.ruleForm.resetFields()},onFormSubmit:function(){var e=this;this.isLoading=!0,n["b"]({orderId:this.record.order_id,form:this.formData}).then((function(t){e.$message.success(t.message,1.5),e.handleCancel(),e.$emit("handleSubmit",!0)})).finally((function(){return e.isLoading=!1}))}}},h=f,_=(a("36ad"),a("2877")),b=Object(_["a"])(h,r,s,!1,null,"3d3a6837",null),g=b.exports,y=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:640,visible:e.visible,isLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"门店核销员",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["clerkId",{rules:[{required:!0,message:"请选择核销员"}]}],expression:"['clerkId', { rules: [{ required: true, message: '请选择核销员' }] }]"}],attrs:{placeholder:"请选择核销员"}},e._l(e.shopClerkList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.clerk_id}},[t("span",[e._v(e._s(a.real_name))]),t("span",{staticClass:"ml-5 f-13"},[e._v("("+e._s(a.shop.shop_name)+")")])])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/store/shop/clerk/index"}}},[e._v("门店店员管理")])],1)],1),t("a-form-item",{attrs:{label:"买家取货状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"买家必须已取货才可确认核销"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("已取货")]),t("a-radio",{attrs:{value:0,disabled:""}},[e._v("未取货")])],1)],1),t("a-form-item",{attrs:{label:"同步微信平台",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["syncMpWeixinShipping",{initialValue:1,rules:[{required:!0}]}],expression:"['syncMpWeixinShipping', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("同步")]),t("a-radio",{attrs:{value:0}},[e._v("不同步")])],1),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("同步至微信小程序平台的《发货信息录入》")]),t("p",{staticClass:"extra"},[e._v("仅全部发货或最后一次发货时同步")])])],1)],1)],1)],1)},E=[],C=a("884a"),L=a("6dd2"),S={data:function(){return{title:"门店自提核销",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),shopClerkList:[],record:{}}},created:function(){this.getShopClerkList()},methods:{show:function(e){this.visible=!0,this.record=e},getShopClerkList:function(){var e=this;this.isLoading=!0,L["b"]().then((function(t){return e.shopClerkList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,C["c"]({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},x=S,w=Object(_["a"])(x,y,E,!1,null,null,null),D=w.exports,R=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"实付款金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v("¥"+e._s(e.record.pay_price))])]),t("a-form-item",{attrs:{label:"审核状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"同意后将退回付款金额并关闭订单"}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["status",{initialValue:1,rules:[{required:!0}]}],expression:"['status', { initialValue: 1, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:1}},[e._v("同意")]),t("a-radio",{attrs:{value:0}},[e._v("拒绝")])],1)],1)],1)],1)],1)},O=[],k={data:function(){return{title:"审核取消订单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,C["a"]({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},I=k,P=Object(_["a"])(I,R,O,!1,null,null,null),T=P.exports,A=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"选择打印机",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["printerId",{rules:[{required:!0,message:"请选择小票打印机"}]}],expression:"['printerId', { rules: [{ required: true, message: '请选择小票打印机' }] }]"}],attrs:{placeholder:"请选择小票打印机"}},e._l(e.printerList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.printer_id}},[t("span",[e._v(e._s(a.printer_name))])])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/setting/printer/index"}}},[e._v("小票打印机管理")])],1)],1)],1)],1)],1)},F=[],N=a("f50c"),j={data:function(){return{title:"小票打印",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),printerList:[],record:{}}},created:function(){this.getPrinterList()},methods:{show:function(e){this.visible=!0,this.record=e},getPrinterList:function(){var e=this;this.isLoading=!0,N["b"]().then((function(t){e.printerList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,C["d"]({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},M=j,V=Object(_["a"])(M,A,F,!1,null,null,null),$=V.exports,G=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"订单金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"最终付款金额 = 订单金额 + 运费金额"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["order_price",{rules:[{required:!0,message:"请输入订单金额"}]}],expression:"['order_price', { rules: [{ required: true, message: '请输入订单金额' }] }]"}],attrs:{min:.01,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1),t("a-form-item",{attrs:{label:"运费金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["express_price",{rules:[{required:!0,message:"请输入运费金额"}]}],expression:"['express_price', { rules: [{ required: true, message: '请输入运费金额' }] }]"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")])],1)],1)],1)],1)},q=[],W=(a("a9e3"),a("2ef0")),U=a.n(W),Y={data:function(){return{title:"修改订单金额",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.$nextTick,a=this.form.setFieldsValue;t((function(){var t=Number(e.update_price.value);"-"===e.update_price.symbol&&(t=-t),a({order_price:U.a.add(Number(e.order_price),t),express_price:Number(e.express_price)})}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,C["e"]({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},K=Y,B=Object(_["a"])(K,G,q,!1,null,null,null),H=B.exports,X=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"备注内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"商家备注内容仅后台可见,用户端不可见"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["content"],expression:"['content']"}]})],1)],1)],1)],1)},z=[],J={data:function(){return{title:"商家备注",labelCol:{span:6},wrapperCol:{span:14},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visible=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.$nextTick,a=this.form.setFieldsValue;t((function(){a({content:e.merchant_remark})}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,C["f"]({orderId:this.record.order_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},Z=J,Q=Object(_["a"])(Z,X,z,!1,null,null,null),ee=Q.exports},afa3:function(e,t,a){"use strict";a("bf2e")},b1e9:function(e,t,a){"use strict";a("cf97")},b4a5:function(e,t,a){"use strict";a.d(t,"a",(function(){return v})),a.d(t,"b",(function(){return y}));a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[e.visible?t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"售后类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tag",[e._v(e._s(e.RefundTypeEnum[e.record.type].name))])],1),t("a-form-item",{attrs:{label:"审核状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["audit_status",{initialValue:10,rules:[{required:!0}]}],expression:"['audit_status', { initialValue: 10, rules: [{ required: true }] }]"}]},[t("a-radio",{attrs:{value:10}},[e._v("同意")]),t("a-radio",{attrs:{value:20}},[e._v("拒绝")])],1)],1),e.form.getFieldValue("audit_status")==e.AuditStatusEnum.REVIEWED.value?t("a-form-item",{attrs:{label:"退货地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["address_id",{rules:[{required:!0,message:"请选择退货地址"}]}],expression:"['address_id', { rules: [{ required: true, message: '请选择退货地址' }] }]"}],attrs:{placeholder:"请选择退货地址"}},e._l(e.addressList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.address_id}},[e._v(e._s(a.full_address))])})),1),t("div",{staticClass:"form-item-help"},[t("router-link",{attrs:{target:"_blank",to:{path:"/store/address/index"}}},[e._v("地址管理")])],1)],1):e._e(),e.form.getFieldValue("audit_status")==e.AuditStatusEnum.REJECTED.value?t("a-form-item",{attrs:{label:"拒绝原因",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["refuse_desc",{rules:[{required:!0,message:"请输入拒绝原因"}]}],expression:"['refuse_desc', { rules: [{ required: true, message: '请输入拒绝原因' }] }]"}],attrs:{autoSize:{minRows:4}}})],1):e._e()],1):e._e()],1)],1)},s=[],i=(a("d3b7"),a("ca00")),n=a("e585"),o=a("4d55"),l=a("6ab1"),d=a("6245"),c={data:function(){return{title:"售后单审核",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),addressList:[],record:{}}},beforeCreate:function(){Object(i["a"])(this,{AuditStatusEnum:l["a"],RefundTypeEnum:l["c"]})},created:function(){this.getAddressList()},methods:{show:function(e){var t=this;this.visible=!0,this.record=e,this.$nextTick((function(){t.$forceUpdate()}))},getAddressList:function(){var e=this;this.isLoading=!0,o["b"]({type:d["a"].RETURN.value}).then((function(t){return e.addressList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,n["a"]({orderRefundId:this.record.order_refund_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},u=c,m=(a("afa3"),a("2877")),p=Object(m["a"])(u,r,s,!1,null,"f7584658",null),v=p.exports,f=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:565,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[e.record.type==e.RefundTypeEnum.RETURN.value?t("a-alert",{attrs:{message:"请确认已收到寄回的商品,确认后自动退回付款金额(原路退款)并关闭当前售后单",banner:""}}):e._e(),e.visible?t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"售后类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-tag",[e._v(e._s(e.RefundTypeEnum[e.record.type].name))])],1),t("a-form-item",{attrs:{label:"订单付款的总金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v("¥"+e._s(e.record.orderData.pay_price)+"元")])]),t("a-form-item",{attrs:{label:"退款的金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["refund_money",{rules:[{required:!0,message:"请输入退款金额"}]}],expression:"['refund_money', { rules: [{ required: true, message: '请输入退款金额' }] }]"}],attrs:{min:0,precision:2}}),t("span",{staticClass:"ml-10"},[e._v("元")]),t("div",{staticClass:"form-item-help"},[t("p",{staticClass:"extra"},[e._v("请输入退款金额,最多"+e._s(Math.min(e.record.orderGoods.total_pay_price,e.record.orderData.pay_price))+"元,最多不能大于订单实际付款的总金额")])])],1)],1):e._e()],1)],1)},h=[],_={data:function(){return{title:"确认收货并退款",labelCol:{span:8},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},beforeCreate:function(){Object(i["a"])(this,{AuditStatusEnum:l["a"],RefundTypeEnum:l["c"]})},methods:{show:function(e){var t=this;this.visible=!0,this.record=e,this.$nextTick((function(){t.$forceUpdate()}))},handleSubmit:function(e){var t=this;e.preventDefault();var a=this.form.validateFields;a((function(e,a){!e&&t.onFormSubmit(a)}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.isLoading=!0,n["d"]({orderRefundId:this.record.order_refund_id,form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(){return t.isLoading=!1}))}}},b=_,g=(a("b1e9"),Object(m["a"])(b,f,h,!1,null,"22eeec16",null)),y=g.exports},bcee:function(e,t,a){"use strict";a("17ee")},bee9:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("99af");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"订单查询"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchValue"],expression:"['searchValue']"}],staticStyle:{width:"337px"},attrs:{placeholder:"请输入关键词"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchType",{initialValue:10}],expression:"['searchType', { initialValue: 10 }]"}],staticStyle:{width:"100px"},attrs:{slot:"addonBefore"},slot:"addonBefore"},e._l(e.SearchTypeEnum,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-form-item",{attrs:{label:"订单来源"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderSource",{initialValue:-1}],expression:"['orderSource', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OrderSourceEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"支付方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["payMethod",{initialValue:""}],expression:"['payMethod', { initialValue: '' }]"}]},[t("a-select-option",{attrs:{value:""}},[e._v("全部")]),e._l(e.PaymentMethodEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{staticClass:"mr-15",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),t("a-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],1)],1),t("a-row",{staticClass:"actions"},[e.$auth("/order/tools/delivery/batch")?t("div",{staticClass:"action-item"},[t("router-link",{attrs:{to:{path:"/order/tools/delivery/batch"}}},[t("a-button",{attrs:{type:"primary"}},[e._v("批量发货")])],1)],1):e._e(),e.$auth("/order/tools/delivery/record")?t("div",{staticClass:"action-item"},[t("router-link",{attrs:{to:{path:"/order/tools/delivery/record"}}},[t("a-button",{attrs:{type:"default"}},[e._v("发货记录")])],1)],1):e._e()])],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.columns,(function(a,r){return t("th",{key:r},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]),t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.orderList.data,(function(a){return[t("tr",{key:"order_".concat(a.order_id,"_1"),staticClass:"order-empty"},[t("td",{attrs:{colspan:"8"}})]),t("tr",{key:"order_".concat(a.order_id,"_2")},[t("td",{attrs:{colspan:"8"}},[t("span",{staticClass:"mr-20"},[e._v(e._s(a.create_time))]),t("span",{staticClass:"mr-20"},[e._v("订单号:"+e._s(a.order_no))]),t("platform-icon",{attrs:{name:a.platform,showTips:!0}})],1)]),e._l(a.goods,(function(r,s){return t("tr",{key:"orderGoods_".concat(a.order_id,"_").concat(s)},[t("td",[t("GoodsItem",{attrs:{data:{image:r.goods_image,imageAlt:"商品图片",title:r.goods_name,goodsProps:r.goods_props}}})],1),t("td",[t("p",[e._v("¥"+e._s(r.goods_price))]),t("p",[e._v("×"+e._s(r.total_num))])]),0===s?[t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v("¥"+e._s(a.pay_price))]),t("p",{staticClass:"c-muted-1"},[e._v("(含运费:¥"+e._s(a.express_price)+")")])]),t("td",{attrs:{rowspan:a.goods.length}},[t("UserItem",{attrs:{user:a.user}})],1),t("td",{attrs:{rowspan:a.goods.length}},[t("a-tag",[e._v(e._s(e.DeliveryTypeEnum[a.delivery_type].name))])],1),t("td",{attrs:{rowspan:a.goods.length}},[t("div",{staticClass:"f-12"},[t("p",[e._v("收货人:"+e._s(a.address.name))]),t("p",[e._v("联系电话:"+e._s(a.address.phone))]),t("p",{staticClass:"oneline-hide",staticStyle:{"max-width":"260px"}},[e._v(" 收货地址: "+e._s(a.address.region.province)+" "+e._s(a.address.region.city)+" "+e._s(a.address.region.region)+" "+e._s(a.address.detail)+" ")])])]),t("td",{attrs:{rowspan:a.goods.length}},[t("p",{staticClass:"mtb-2"},[t("a-tag",{attrs:{color:a.delivery_status==e.DeliveryStatusEnum.DELIVERED.value?"green":""}},[e._v(e._s(e.DeliveryStatusEnum[a.delivery_status].name))])],1)]),t("td",{attrs:{rowspan:a.goods.length}},[t("div",{staticClass:"actions"},[e.$auth("/order/detail")?t("router-link",{attrs:{to:{path:"/order/detail",query:{orderId:a.order_id}}}},[e._v("详情")]):e._e(),a.pay_status!=e.PayStatusEnum.SUCCESS.value||a.delivery_type!=e.DeliveryTypeEnum.EXPRESS.value||a.delivery_status==e.DeliveryStatusEnum.DELIVERED.value||e.inArray(a.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?e._e():[t("a",{directives:[{name:"action",rawName:"v-action:deliver",arg:"deliver"}],on:{click:function(t){return e.handleDelivery(a)}}},[e._v("发货")]),e.$module("order-eorder")?t("a",{directives:[{name:"action",rawName:"v-action:eorder",arg:"eorder"}],on:{click:function(t){return e.handleEorder(a)}}},[e._v("电子面单")]):e._e()]],2)])]:e._e()],2)}))]}))],2)])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.orderList.data.length?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total},on:{change:e.onChangePage}})],1):e._e(),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("EorderForm",{ref:"EorderForm",on:{handleSubmit:e.handleRefresh}})],1)],1)},s=[],i=a("5530"),n=(a("06f4"),a("fc25")),o=(a("d3b7"),a("ca00")),l=a("3a10"),d=a("8d5f"),c=a("ab09"),u=a("4a95"),m=a("3c76"),p=a("ac82"),v=a("2264"),f=[{title:"商品信息",align:"center",dataIndex:"goods",scopedSlots:{customRender:"goods"}},{title:"单价/数量",align:"center",scopedSlots:{customRender:"unit_price"}},{title:"实付款",align:"center",dataIndex:"pay_price",scopedSlots:{customRender:"pay_price"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"配送方式",dataIndex:"delivery_type",scopedSlots:{customRender:"delivery_type"}},{title:"配送信息",dataIndex:"delivery",scopedSlots:{customRender:"delivery"}},{title:"发货状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],h=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30}],_={name:"Index",components:{PlatformIcon:d["a"],GoodsItem:c["a"],UserItem:c["d"],DeliveryForm:p["b"],EorderForm:v["a"]},data:function(){return{dataType:"delivery",searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:f,page:1,orderList:{data:[],total:0,per_page:10}}},beforeCreate:function(){Object(o["a"])(this,{inArray:o["e"],DeliveryStatusEnum:u["b"],DeliveryTypeEnum:u["c"],OrderSourceEnum:u["d"],OrderStatusEnum:u["e"],PayStatusEnum:u["g"],ReceiptStatusEnum:u["h"],PaymentMethodEnum:m["a"],SearchTypeEnum:h,simpleImage:n["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init()},methods:{init:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getList:function(){var e=this,t=this.dataType,a=this.queryParam,r=this.page;return this.isLoading=!0,l["b"](Object(i["a"])(Object(i["a"])({dataType:t},a),{},{deliveryType:u["c"].EXPRESS.value,page:r})).then((function(t){e.orderList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(i["a"])(Object(i["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleEorder:function(e){this.$refs.EorderForm.handle(e)}}},b=_,g=(a("a1ab"),a("2877")),y=Object(g["a"])(b,r,s,!1,null,"18ee4e4f",null);t["default"]=y.exports},bf2e:function(e,t,a){},c051:function(e,t,a){},c2b1:function(e,t,a){},c6bb:function(e,t,a){},c7eb:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),a("b636"),a("944a"),a("0c47"),a("23dc"),a("3410"),a("159b"),a("b0c0"),a("131a"),a("fb6a");var r=a("53ca");function s(){
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
s=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,i=Object.defineProperty||function(e,t,a){e[t]=a.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",d=n.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(k){c=function(e,t,a){return e[t]=a}}function u(e,t,a,r){var s=t&&t.prototype instanceof v?t:v,n=Object.create(s.prototype),o=new D(r||[]);return i(n,"_invoke",{value:L(e,a,o)}),n}function m(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(k){return{type:"throw",arg:k}}}e.wrap=u;var p={};function v(){}function f(){}function h(){}var _={};c(_,o,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(R([])));g&&g!==t&&a.call(g,o)&&(_=g);var y=h.prototype=v.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function s(i,n,o,l){var d=m(e[i],e,n);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==Object(r["a"])(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){s("next",e,o,l)}),(function(e){s("throw",e,o,l)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return s("throw",e,o,l)}))}l(d.arg)}var n;i(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){s(e,a,t,r)}))}return n=n?n.then(r,r):r()}})}function L(e,t,a){var r="suspendedStart";return function(s,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===s)throw i;return O()}for(a.method=s,a.arg=i;;){var n=a.delegate;if(n){var o=S(n,a);if(o){if(o===p)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var l=m(e,t,a);if("normal"===l.type){if(r=a.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(r="completed",a.method="throw",a.arg=l.arg)}}}function S(e,t){var a=t.method,r=e.iterator[a];if(void 0===r)return t.delegate=null,"throw"===a&&e.iterator["return"]&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),p;var s=m(r,e.iterator,t.arg);if("throw"===s.type)return t.method="throw",t.arg=s.arg,t.delegate=null,p;var i=s.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function R(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,s=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return s.next=s}}return{next:O}}function O(){return{value:void 0,done:!0}}return f.prototype=h,i(y,"constructor",{value:h,configurable:!0}),i(h,"constructor",{value:f,configurable:!0}),f.displayName=c(h,d,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,d,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},E(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,a,r,s,i){void 0===i&&(i=Promise);var n=new C(u(t,a,r,s),i);return e.isGeneratorFunction(a)?n:n.next().then((function(e){return e.done?e.value:n.next()}))},E(y),c(y,d,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),a=[];for(var r in t)a.push(r);return a.reverse(),function e(){for(;a.length;){var r=a.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=R,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(a,r){return n.type="throw",n.arg=e,t.next=a,r&&(t.method="next",t.arg=void 0),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var i=this.tryEntries[s],n=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var o=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(o&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r];if(s.tryLoc<=this.prev&&a.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var i=s;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var n=i?i.completion:{};return n.type=e,n.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(n)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),w(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var s=r.arg;w(a)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:R(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),p}},e}},cf97:function(e,t,a){},d409:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("99af");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v("发货记录(物流配送)")]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:""}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchValue"],expression:"['searchValue']"}],staticStyle:{width:"337px"},attrs:{placeholder:"请输入关键词"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchType",{initialValue:10}],expression:"['searchType', { initialValue: 10 }]"}],staticStyle:{width:"100px"},attrs:{slot:"addonBefore"},slot:"addonBefore"},e._l(e.SearchTypeEnum,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-form-item",{attrs:{label:"发货时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{staticClass:"mr-15",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),t("a-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],1)],1)],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.columns,(function(a,r){return t("th",{key:r},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]),t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.orderList.data,(function(a){return[t("tr",{key:"order_".concat(a.delivery_id,"_1"),staticClass:"order-empty"},[t("td",{attrs:{colspan:"8"}})]),t("tr",{key:"order_".concat(a.delivery_id,"_2")},[t("td",{attrs:{colspan:"8"}},[t("span",{staticClass:"mr-20"},[e._v("发货时间:"+e._s(a.create_time))]),t("span",{staticClass:"mr-20"},[e._v("订单号:"+e._s(a.orderData.order_no))]),t("platform-icon",{attrs:{name:a.orderData.platform,showTips:!0}})],1)]),e._l(a.goods,(function(r,s){return t("tr",{key:"orderGoods_".concat(a.delivery_id,"_").concat(s)},[t("td",[t("GoodsItem",{attrs:{data:{image:r.goods.goods_image,imageAlt:"商品图片",title:r.goods.goods_name,goodsProps:r.goods.goods_props}}})],1),t("td",[t("p",[e._v("×"+e._s(r.goods.delivery_num))])]),0===s?[t("td",{attrs:{rowspan:a.goods.length}},[t("UserItem",{attrs:{user:a.orderData.user}})],1),t("td",{attrs:{rowspan:a.goods.length}},[t("a-tag",[e._v(e._s(e.DeliveryMethodEnum[a.delivery_method].name))])],1),t("td",{attrs:{rowspan:a.goods.length}},[a.express?t("div",{staticClass:"f-12"},[t("p",[e._v(e._s(a.express.express_name))]),t("p",[e._v(e._s(a.express_no))])]):t("span",[e._v("--")])]),t("td",{attrs:{rowspan:a.goods.length}},[a.orderData.address?t("div",{staticClass:"f-12"},[t("p",[e._v("收货人:"+e._s(a.orderData.address.name))]),t("p",[e._v("联系电话:"+e._s(a.orderData.address.phone))]),t("p",{staticClass:"oneline-hide",staticStyle:{"max-width":"260px"}},[e._v(" 收货地址: "+e._s(a.orderData.address.region.province)+" "+e._s(a.orderData.address.region.city)+" "+e._s(a.orderData.address.region.region)+" "+e._s(a.orderData.address.detail)+" ")])]):t("span",[e._v("--")])]),t("td",{attrs:{rowspan:a.goods.length}},[t("div",{staticClass:"actions"},[e.$auth("/order/detail")?t("router-link",{attrs:{to:{path:"/order/detail",query:{orderId:a.order_id}},target:"_blank"}},[e._v("订单详情")]):e._e(),a.delivery_method==e.DeliveryMethodEnum.EORDER.value?[e.$auth("/order/tools/delivery.eorder")?t("a",{attrs:{title:"查看电子面单内容"},on:{click:function(t){return e.handleEorder(a)}}},[e._v("电子面单")]):e._e()]:e._e()],2)])]:e._e()],2)}))]}))],2)])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.orderList.data.length?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total},on:{change:e.onChangePage}})],1):e._e(),t("EorderShow",{ref:"EorderShow"})],1)],1)},s=[],i=a("5530"),n=(a("06f4"),a("fc25")),o=(a("d3b7"),a("ca00")),l=a("86d6"),d=a("8d5f"),c=a("ab09"),u=a("5c06"),m=new u["a"]([{key:"MANUAL",name:"手动录入",value:10},{key:"NORMAL",name:"无需物流",value:20},{key:"EORDER",name:"电子面单",value:30}]),p=a("2264"),v=[{title:"商品信息",align:"center",dataIndex:"goods",scopedSlots:{customRender:"goods"}},{title:"发货数量",align:"center",scopedSlots:{customRender:"delivery_num"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"物流方式",dataIndex:"delivery_method",scopedSlots:{customRender:"delivery_method"}},{title:"物流公司/单号",dataIndex:"express",scopedSlots:{customRender:"express"}},{title:"配送信息",dataIndex:"address",scopedSlots:{customRender:"address"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],f=[{name:"订单号",value:10}],h={name:"Index",components:{PlatformIcon:d["a"],GoodsItem:c["a"],UserItem:c["d"],EorderShow:p["b"]},data:function(){return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:v,page:1,orderList:{data:[],total:0,per_page:10}}},beforeCreate:function(){Object(o["a"])(this,{inArray:o["e"],DeliveryMethodEnum:m,SearchTypeEnum:f,simpleImage:n["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init()},methods:{init:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getList:function(){var e=this,t=this.queryParam,a=this.page;return this.isLoading=!0,l["e"](Object(i["a"])(Object(i["a"])({},t),{},{page:a})).then((function(t){e.orderList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(i["a"])(Object(i["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleEorder:function(e){this.$refs.EorderShow.handle(e)}}},_=h,b=(a("3c07"),a("2877")),g=Object(b["a"])(_,r,s,!1,null,"6fce4afe",null);t["default"]=g.exports},dad0:function(e,t,a){"use strict";a("ec43")},e585:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return l}));var r=a("b775"),s={list:"/order.refund/list",detail:"/order.refund/detail",audit:"/order.refund/audit",receipt:"/order.refund/receipt"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.detail,method:"get",params:e})}function o(e){return Object(r["b"])({url:s.audit,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.receipt,method:"post",data:e})}},ea1f:function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"关键词查询"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchValue"],expression:"['searchValue']"}],staticStyle:{width:"342px"},attrs:{placeholder:"请输入关键词"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchType",{initialValue:10}],expression:"['searchType', { initialValue: 10 }]"}],staticStyle:{width:"100px"},attrs:{slot:"addonBefore"},slot:"addonBefore"},e._l(e.SearchTypeEnum,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-form-item",{attrs:{label:"售后类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["refundType",{initialValue:-1}],expression:"['refundType', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.RefundTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"售后单状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["refundStatus",{initialValue:-1}],expression:"['refundStatus', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.RefundStatusEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"申请时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")])],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],1)],1)],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-body"},[t("table",[t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.columns,(function(a,r){return t("th",{key:r},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]),t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.refundList.data,(function(a){return[t("tr",{key:"refund_".concat(a.order_refund_id,"_1"),staticClass:"order-empty"},[t("td",{attrs:{colspan:"8"}})]),t("tr",{key:"refund_".concat(a.order_refund_id,"_2")},[t("td",{attrs:{colspan:"8"}},[t("span",{staticClass:"mr-20"},[e._v(e._s(a.create_time))]),t("span",[e._v("订单号:"+e._s(a.order_no))])])]),t("tr",{key:"refund_".concat(a.order_refund_id,"_3")},[t("td",[t("GoodsItem",{attrs:{data:{image:a.orderGoods.goods_image,imageAlt:"商品图片",title:a.orderGoods.goods_name,goodsProps:a.orderGoods.goods_props}}})],1),t("td",[t("p",[e._v("¥"+e._s(a.orderGoods.goods_price))]),t("p",[e._v("×"+e._s(a.orderGoods.total_num))])]),t("td",[t("p",[e._v("¥"+e._s(a.orderGoods.total_pay_price))])]),t("td",[t("UserItem",{attrs:{user:a.user}})],1),t("td",[t("a-tag",[e._v(e._s(e.RefundTypeEnum[a.type].name))])],1),t("td",[t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("商家审核:")]),t("a-tag",{attrs:{color:e.renderAuditStatusColor(a.audit_status)}},[e._v(e._s(e.AuditStatusEnum[a.audit_status].name))])],1),a.type==e.RefundTypeEnum.RETURN.value?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("用户发货:")]),t("a-tag",{attrs:{color:a.is_user_send?"green":""}},[e._v(e._s(a.is_user_send?"已发货":"待发货"))])],1):e._e(),a.type==e.RefundTypeEnum.RETURN.value?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("商家收货:")]),t("a-tag",{attrs:{color:a.is_receipt?"green":""}},[e._v(e._s(a.is_receipt?"已收货":"待收货"))])],1):e._e()]),t("td",[t("a-tag",{attrs:{color:e.renderRefundStatusColor(a.status)}},[e._v(e._s(e.RefundStatusEnum[a.status].name))])],1),t("td",[t("div",{staticClass:"actions"},[e.$auth("/order/refund/detail")?t("router-link",{attrs:{to:{path:"/order/refund/detail",query:{orderRefundId:a.order_refund_id}}}},[e._v("详情")]):e._e(),a.audit_status==e.AuditStatusEnum.WAIT.value?t("a",{directives:[{name:"action",rawName:"v-action:audit",arg:"audit"}],on:{click:function(t){return e.handleAudit(a)}}},[e._v("审核")]):e._e(),a.type==e.RefundTypeEnum.RETURN.value&&a.audit_status==e.AuditStatusEnum.REVIEWED.value&&a.is_user_send&&!a.is_receipt?t("a",{directives:[{name:"action",rawName:"v-action:receipt",arg:"receipt"}],on:{click:function(t){return e.handleReceipt(a)}}},[e._v("确认收货")]):e._e()],1)])])]}))],2)])]),e.refundList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)]),e.refundList.data.length?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.refundList.per_page,total:e.refundList.total},on:{change:e.onChangePage}})],1):e._e(),t("AuditForm",{ref:"AuditForm",on:{handleSubmit:e.handleRefresh}}),t("ReceiptForm",{ref:"ReceiptForm",on:{handleSubmit:e.handleRefresh}})],1)],1)},s=[],i=a("ade3"),n=a("5530"),o=(a("06f4"),a("fc25")),l=(a("d3b7"),a("ca00")),d=a("e585"),c=a("ab09"),u=a("6ab1"),m=a("b4a5"),p=[{title:"商品信息",align:"center"},{title:"单价/数量",align:"center",scopedSlots:{customRender:"unit_price"}},{title:"付款金额",align:"center",dataIndex:"total_pay_price",scopedSlots:{customRender:"pay_price"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"售后类型",dataIndex:"type",scopedSlots:{customRender:"type"}},{title:"处理进度",dataIndex:"progress",scopedSlots:{customRender:"progress"}},{title:"售后单状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],v=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30}],f={name:"Index",components:{GoodsItem:c["a"],UserItem:c["d"],AuditForm:m["a"],ReceiptForm:m["b"]},data:function(){return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:p,page:1,refundList:{data:[],total:0,per_page:10}}},beforeCreate:function(){Object(l["a"])(this,{inArray:l["e"],AuditStatusEnum:u["a"],RefundStatusEnum:u["b"],RefundTypeEnum:u["c"],SearchTypeEnum:v,simpleImage:o["a"].PRESENTED_IMAGE_SIMPLE})},created:function(){this.init()},methods:{init:function(){this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getList:function(){var e=this,t=this.queryParam,a=this.page;return this.isLoading=!0,d["c"](Object(n["a"])(Object(n["a"])({},t),{},{page:a})).then((function(t){e.refundList=t.data.list})).finally((function(){return e.isLoading=!1}))},renderAuditStatusColor:function(e){var t,a=this.AuditStatusEnum,r=(t={},Object(i["a"])(t,a.WAIT.value,""),Object(i["a"])(t,a.REVIEWED.value,"green"),Object(i["a"])(t,a.REJECTED.value,"red"),t);return r[e]},renderRefundStatusColor:function(e){var t,a=this.RefundStatusEnum,r=(t={},Object(i["a"])(t,a.NORMAL.value,""),Object(i["a"])(t,a.REJECTED.value,"red"),Object(i["a"])(t,a.COMPLETED.value,"green"),Object(i["a"])(t,a.CANCELLED.value,"red"),t);return r[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(n["a"])(Object(n["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleAudit:function(e){this.$refs.AuditForm.show(e)},handleReceipt:function(e){this.$refs.ReceiptForm.show(e)}}},h=f,_=(a("fba8"),a("2877")),b=Object(_["a"])(h,r,s,!1,null,"53d61285",null);t["default"]=b.exports},eb44:function(e,t,a){"use strict";a("7b77")},ebb6:function(e,t,a){"use strict";a("c2b1")},ec43:function(e,t,a){},f50c:function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return d}));var r=a("b775"),s={list:"/setting.printer/list",all:"/setting.printer/all",add:"/setting.printer/add",edit:"/setting.printer/edit",delete:"/setting.printer/delete"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function n(e){return Object(r["b"])({url:s.all,method:"get",params:e})}function o(e){return Object(r["b"])({url:s.add,method:"post",data:e})}function l(e){return Object(r["b"])({url:s.edit,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.delete,method:"post",data:e})}},fba8:function(e,t,a){"use strict";a("2dc2")},fecbd:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("99af"),a("caad"),a("2532");var r=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),t("div",{staticClass:"table-operator"},[t("a-row",{staticClass:"row-item-search"},[t("a-form",{staticClass:"search-form",attrs:{form:e.searchForm,layout:"inline"},on:{submit:e.handleSearch}},[t("a-form-item",{attrs:{label:"关键词"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchValue"],expression:"['searchValue']"}],staticStyle:{width:"337px"},attrs:{placeholder:"请输入关键词"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["searchType",{initialValue:10}],expression:"['searchType', { initialValue: 10 }]"}],staticStyle:{width:"100px"},attrs:{slot:"addonBefore"},slot:"addonBefore"},e._l(e.SearchTypeEnum,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])})),1)],1)],1),t("a-form-item",{attrs:{label:"订单来源"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderSource",{initialValue:-1}],expression:"['orderSource', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.OrderSourceEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"支付方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["payMethod",{initialValue:""}],expression:"['payMethod', { initialValue: '' }]"}]},[t("a-select-option",{attrs:{value:""}},[e._v("全部")]),e._l(e.PaymentMethodEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"配送方式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["deliveryType",{initialValue:-1}],expression:"['deliveryType', { initialValue: -1 }]"}]},[t("a-select-option",{attrs:{value:-1}},[e._v("全部")]),e._l(e.DeliveryTypeEnum.data,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.value}},[e._v(e._s(a.name))])}))],2)],1),t("a-form-item",{attrs:{label:"下单时间"}},[t("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTime"],expression:"['betweenTime']"}],attrs:{format:"YYYY-MM-DD"}})],1),t("a-form-item",{attrs:{label:"自提门店"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["extractShopId",{initialValue:0}],expression:"['extractShopId', { initialValue: 0 }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("全部")]),e._l(e.shopList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.shop_id}},[e._v(e._s(a.shop_name))])}))],2)],1),t("a-form-item",{staticClass:"search-btn"},[t("a-button",{staticClass:"mr-15",attrs:{type:"primary",icon:"search","html-type":"submit"}},[e._v("搜索")]),t("a-button",{on:{click:e.handleReset}},[e._v("重置")])],1)],1)],1)],1),t("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"},[t("div",{staticClass:"ant-table-content"},[t("div",{staticClass:"ant-table-scroll"},[t("div",{staticClass:"ant-table-body",staticStyle:{"overflow-x":"scroll"}},[t("table",{staticStyle:{width:"1450px"}},[t("thead",{staticClass:"ant-table-thead"},[t("tr",e._l(e.columns,(function(a,r){return t("th",{key:r},[t("span",{staticClass:"ant-table-header-column"},[t("div",[t("span",{staticClass:"ant-table-column-title"},[e._v(e._s(a.title))])])])])})),0)]),t("tbody",{staticClass:"ant-table-tbody"},[e._l(e.orderList.data,(function(a){return[t("tr",{key:"order_".concat(a.order_id,"_1"),staticClass:"order-empty"},[t("td",{attrs:{colspan:"8"}})]),t("tr",{key:"order_".concat(a.order_id,"_2")},[t("td",{attrs:{colspan:"8"}},[t("span",{staticClass:"mr-20"},[e._v(e._s(a.create_time))]),t("span",{staticClass:"mr-20"},[e._v("订单号:"+e._s(a.order_no))]),t("platform-icon",{attrs:{name:a.platform,showTips:!0}})],1)]),e._l(a.goods,(function(r,s){return t("tr",{key:"orderGoods_".concat(a.order_id,"_").concat(s)},[t("td",[t("GoodsItem",{attrs:{data:{image:r.goods_image,imageAlt:"商品图片",title:r.goods_name,goodsProps:r.goods_props}}})],1),t("td",[t("p",[e._v("¥"+e._s(r.goods_price))]),t("p",[e._v("×"+e._s(r.total_num))])]),0===s?[t("td",{attrs:{rowspan:a.goods.length}},[t("p",[e._v("¥"+e._s(a.pay_price))]),t("p",{staticClass:"c-muted-1"},[e._v("(含运费:¥"+e._s(a.express_price)+")")])]),t("td",{attrs:{rowspan:a.goods.length}},[t("UserItem",{attrs:{user:a.user}})],1),t("td",{attrs:{rowspan:a.goods.length}},[a.pay_method?t("a-tag",[e._v(e._s(e.PaymentMethodEnum[a.pay_method].name))]):t("span",[e._v("--")])],1),t("td",{attrs:{rowspan:a.goods.length}},[t("a-tag",[e._v(e._s(e.DeliveryTypeEnum[a.delivery_type].name))])],1),t("td",{attrs:{rowspan:a.goods.length}},[t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("付款状态:")]),t("a-tag",{attrs:{color:a.pay_status==e.PayStatusEnum.SUCCESS.value?"green":""}},[e._v(e._s(e.PayStatusEnum[a.pay_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("发货状态:")]),t("a-tag",{attrs:{color:a.delivery_status==e.DeliveryStatusEnum.DELIVERED.value?"green":""}},[e._v(e._s(e.DeliveryStatusEnum[a.delivery_status].name))])],1),t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("收货状态:")]),t("a-tag",{attrs:{color:a.receipt_status==e.ReceiptStatusEnum.RECEIVED.value?"green":""}},[e._v(e._s(e.ReceiptStatusEnum[a.receipt_status].name))])],1),[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value].includes(a.order_status)?t("p",{staticClass:"mtb-2"},[t("span",{staticClass:"f-13"},[e._v("订单状态:")]),t("a-tag",{attrs:{color:e.renderOrderStatusColor(a.order_status)}},[e._v(e._s(e.OrderStatusEnum[a.order_status].name))])],1):e._e()]),t("td",{attrs:{rowspan:a.goods.length}},[t("div",{staticClass:"actions"},[e.$auth("/order/detail")?t("router-link",{attrs:{to:{path:"/order/detail",query:{orderId:a.order_id}},target:"_blank"}},[e._v("详情")]):e._e(),a.pay_status==e.PayStatusEnum.SUCCESS.value&&e.inArray(a.delivery_type,[e.DeliveryTypeEnum.EXPRESS.value,e.DeliveryTypeEnum.NOTHING.value])&&a.delivery_status!=e.DeliveryStatusEnum.DELIVERED.value&&!e.inArray(a.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?t("a",{directives:[{name:"action",rawName:"v-action:deliver",arg:"deliver"}],on:{click:function(t){return e.handleDelivery(a)}}},[e._v("发货")]):e._e(),a.pay_status!=e.PayStatusEnum.SUCCESS.value||a.delivery_type!=e.DeliveryTypeEnum.EXTRACT.value||a.delivery_status==e.DeliveryStatusEnum.DELIVERED.value||e.inArray(a.order_status,[e.OrderStatusEnum.CANCELLED.value,e.OrderStatusEnum.APPLY_CANCEL.value])?e._e():t("a",{directives:[{name:"action",rawName:"v-action:extract",arg:"extract"}],on:{click:function(t){return e.handleExtract(a)}}},[e._v("自提核销")]),a.order_status==e.OrderStatusEnum.APPLY_CANCEL.value?t("a",{directives:[{name:"action",rawName:"v-action:cancel",arg:"cancel"}],on:{click:function(t){return e.handleCancel(a)}}},[e._v("审核取消")]):e._e(),t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])],1)])]:e._e()],2)}))]}))],2)])]),e.orderList.data.length?e._e():t("a-empty",{attrs:{image:e.simpleImage}})],1)])]),e.orderList.data.length?t("div",{staticClass:"pagination"},[t("a-pagination",{attrs:{current:e.page,pageSize:e.orderList.per_page,total:e.orderList.total},on:{change:e.onChangePage}})],1):e._e(),t("DeliveryForm",{ref:"DeliveryForm",on:{handleSubmit:e.handleRefresh}}),t("ExtractForm",{ref:"ExtractForm",on:{handleSubmit:e.handleRefresh}}),t("CancelForm",{ref:"CancelForm",on:{handleSubmit:e.handleRefresh}})],1)],1)},s=[],i=a("ade3"),n=a("5530"),o=(a("06f4"),a("fc25")),l=(a("ac1f"),a("5319"),a("d3b7"),a("ca00")),d=a("3a10"),c=a("884a"),u=a("3858"),m=a("8d5f"),p=a("ab09"),v=a("4a95"),f=a("3c76"),h=a("ac82"),_=[{title:"商品信息",align:"center",dataIndex:"goods",scopedSlots:{customRender:"goods"}},{title:"单价/数量",align:"center",scopedSlots:{customRender:"unit_price"}},{title:"实付款",align:"center",dataIndex:"pay_price",scopedSlots:{customRender:"pay_price"}},{title:"买家",dataIndex:"user",scopedSlots:{customRender:"user"}},{title:"支付方式",dataIndex:"pay_method",scopedSlots:{customRender:"pay_method"}},{title:"配送方式",dataIndex:"delivery_type",scopedSlots:{customRender:"delivery_type"}},{title:"交易状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"操作",dataIndex:"action",width:"180px",scopedSlots:{customRender:"action"}}],b=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30},{name:"收货人姓名",value:40},{name:"收货人电话",value:50}],g={name:"Index",components:{PlatformIcon:m["a"],GoodsItem:p["a"],UserItem:p["d"],DeliveryForm:h["b"],ExtractForm:h["c"],CancelForm:h["a"]},data:function(){return{dataType:this.getDataType(),searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:_,page:1,orderList:{data:[],total:0,per_page:10},shopList:[]}},beforeCreate:function(){Object(l["a"])(this,{inArray:l["e"],DeliveryStatusEnum:v["b"],DeliveryTypeEnum:v["c"],OrderSourceEnum:v["d"],OrderStatusEnum:v["e"],PayStatusEnum:v["g"],ReceiptStatusEnum:v["h"],PaymentMethodEnum:f["a"],SearchTypeEnum:b,simpleImage:o["a"].PRESENTED_IMAGE_SIMPLE})},watch:{$route:function(){this.init()}},created:function(){this.init(),this.getShopList()},methods:{init:function(){this.dataType=this.getDataType(),this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getShopList:function(){var e=this;u["b"]().then((function(t){return e.shopList=t.data.list}))},getDataType:function(){return this.$route.path.split("/")[3].replace("-","_")},getList:function(){var e=this,t=this.dataType,a=this.queryParam,r=this.page;return this.isLoading=!0,d["b"](Object(n["a"])(Object(n["a"])({dataType:t},a),{},{page:r})).then((function(t){e.orderList=t.data.list})).finally((function(){return e.isLoading=!1}))},renderOrderStatusColor:function(e){var t,a=this.OrderStatusEnum,r=(t={},Object(i["a"])(t,a.NORMAL.value,""),Object(i["a"])(t,a.CANCELLED.value,"red"),Object(i["a"])(t,a.APPLY_CANCEL.value,"red"),Object(i["a"])(t,a.COMPLETED.value,"green"),t);return r[e]},handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getList()},handleSearch:function(e){var t=this;e.preventDefault(),this.searchForm.validateFields((function(e,a){e||(t.queryParam=Object(n["a"])(Object(n["a"])({},t.queryParam),a),t.handleRefresh(!0))}))},handleReset:function(){this.searchForm.resetFields()},onChangePage:function(e){this.page=e,this.handleRefresh()},handleDelete:function(e){var t=this,a=t.$confirm({title:"您确定要删除该订单记录吗?",content:"删除后不可恢复,请谨慎操作",onOk:function(){return c["b"](e.order_id).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return a.destroy()}))}})},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleExtract:function(e){this.$refs.ExtractForm.show(e)},handleCancel:function(e){this.$refs.CancelForm.show(e)}}},y=g,E=(a("dad0"),a("2877")),C=Object(E["a"])(y,r,s,!1,null,"ddd4b82e",null);t["default"]=C.exports}}]); |