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.
 
 
 
 
 
 
yanzong_vue_store/js/order.fb55af41.js

3 lines
157 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order"],{"0a39":function(e,t,a){"use strict";a("758f")},"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 f(e){return Object(u["b"])({url:m.list,method:"get",params:e})}var h=a("3858"),v=a("4a95"),_=a("3c76"),b=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,pagination:e.pagination},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()])}}])})},g=[],y=a("ade3"),C=a("2af9"),E=a("5c06"),S=new E["a"]([{key:"NORMAL",name:"进行中",value:10},{key:"COMPLETED",name:"已完成",value:20},{key:"FAIL",name:"失败",value:30}]),L=Object(y["a"])(Object(y["a"])(Object(y["a"])({},S.NORMAL.value,""),S.COMPLETED.value,"green"),S.FAIL.value,"red"),w={name:"ExportList",components:{STable:C["d"]},data:function(){return{isLoading:!1,ExportStatusEnum:S,ExportStatusColorEnum:L,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 f(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)}}},x=w,k=a("2877"),R=Object(k["a"])(x,b,g,!1,null,"d26f1df8",null),D=R.exports,O=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"}]),I=["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",P={name:"Export",components:{ExportList:D},data:function(){return{myForm:this.$form.createForm(this),isLoading:!1,isBtnLoading:!1,labelCol:{span:8},wrapperCol:{span:16},columnData:O,columnValue:I,shopList:[]}},created:function(){this.setFieldsValue(),this.getShopList()},beforeCreate:function(){Object(d["a"])(this,{inArray:d["e"],DeliveryTypeEnum:v["c"],OrderSourceEnum:v["d"],OrderStatusEnum:v["e"],PaymentMethodEnum:_["a"],DataTypeEnum:v["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=P,N=(a("c2ab"),Object(k["a"])(F,r,s,!1,null,"637729d7",null));t["default"]=N.exports},"0f57":function(e,t,a){"use strict";a("935b")},1993: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(e){return void a(e)}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)}))}}},"1e4b":function(e,t,a){"use strict";a("2089")},"1fe8":function(e,t,a){"use strict";a("2ce0")},2089:function(e,t,a){},2264:function(e,t,a){"use strict";a.d(t,"a",(function(){return P})),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("4de4"),a("caad"),a("d81d"),a("d3b7"),a("2532"),a("159b"),a("ca00")),c=a("86d6"),u=a("632d"),m=a("4d55"),p=a("ab6f"),f=a("3c76"),h=a("4a95"),v=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 C(){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 E(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 S("loading"==s?"网页还没加载完毕,请稍等一下再操作":"没有加载CLodop的主js,请先调用loadCLodop过程"),!1;if(!a)return w(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){L("getLodop出错:"+d)}}function S(e){g["a"].warning(e,1.5)}function L(e){b["a"].error({title:"打印控件调用错误",content:e})}function w(e){b["a"].confirm({title:"友情提示",content:e,okText:"前往下载",onOk:function(){window.open("http://www.kdniao.com/documents-instrument")}})}y()&&C();var x=[{title:"商品信息",scopedSlots:{customRender:"goods"},width:"50%"},{title:"可发货的数量",scopedSlots:{customRender:"quantity"},width:"20%"},{title:"发货数量",scopedSlots:{customRender:"input"},width:"30%"}],k=[{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"}]},D={components:{GoodsItem:_["a"]},data:function(){return{title:"打印电子面单",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,columns1:x,columns2:k,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!=h["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!=h["b"].NOT_DELIVERED.value&&t.push(e)})),t}}},beforeCreate:function(){Object(d["a"])(this,{ClientEnum:p["a"],PaymentMethodEnum:f["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){E()&&(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:v["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()}}},O=D,I=(a("a58e"),a("2877")),T=Object(I["a"])(O,i,n,!1,null,"3e2eefb2",null),P=T.exports,F=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)},N=[],A={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?E()&&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=A,$=(a("6f0a"),Object(I["a"])(j,F,N,!1,null,"3add4df0",null)),V=$.exports},2670:function(e,t,a){},"26d5":function(e,t,a){},"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})}},"2ce0":function(e,t,a){},"381a":function(e,t,a){},"3a10":function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"e",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"b",(function(){return d})),a.d(t,"a",(function(){return c}));var r=a("b775");function s(e){return Object(r["b"])({url:"/order/updateStandard",method:"post",data:e})}function i(e){return Object(r["b"])({url:"/order/standard",method:"post",data:e})}function n(e){return Object(r["b"])({url:"order/getStandard",method:"get",params:e})}var o={list:"/order/list",detail:"/order/detail",forceCancel:"/order/forceCancel"};function l(e){return Object(r["b"])({url:o.list,method:"get",params:e})}function d(e){return Object(r["b"])({url:o.forceCancel,method:"get",params:e})}function c(e){return Object(r["b"])({url:o.detail,method:"get",params:e})}},"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"},{key:"HUIFU",name:"银联支付",value:"huifu"}])},"3f0a":function(e,t,a){"use strict";a("26d5")},"45ba":function(e,t,a){"use strict";a("9f1b")},"460d":function(e,t,a){"use strict";a("543e")},"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})}},"4f91":function(e,t,a){},"508f":function(e,t,a){},"543e":function(e,t,a){},"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",{staticStyle:{color:"#d6893b",cursor:"pointer"},on:{click:e.handleAuditLook}},[e._v("查看拒绝原因")])]):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,1222868116)})],1)]),e.record.audit_status==e.AuditStatusEnum.REVIEWED.value&&e.record.type!=e.RefundTypeEnum.RETURNPRICE.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("AuditFormLook",{ref:"AuditFormLook",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["c"],AuditFormLook: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=this.AuditStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.WAIT.value,""),t.REVIEWED.value,"green"),t.REJECTED.value,"red");return a[e]},renderRefundStatusColor:function(e){var t=this.RefundStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.REJECTED.value,"red"),t.COMPLETED.value,"green"),t.CANCELLED.value,"red");return a[e]},handleAudit:function(){var e=this.record;this.$refs.AuditForm.show(e)},handleAuditLook:function(){var e=this.record;this.$refs.AuditFormLook.show(e)},handleReceipt:function(){var e=this.record;this.$refs.ReceiptForm.show(e)}}},p=m,f=(a("59c5"),a("2877")),h=Object(f["a"])(p,r,s,!1,null,"15c4a9dc",null);t["default"]=h.exports},"59c5":function(e,t,a){"use strict";a("2670")},6219:function(e,t,a){"use strict";a("4f91")},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},{key:"RETURNPRICE",name:"退款",value:30}])},"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})}},"6f0a":function(e,t,a){"use strict";a("a950")},"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("45ba"),a("2877")),d=Object(l["a"])(o,r,s,!1,null,"61a72b54",null);t["default"]=d.exports},"758f":function(e,t,a){},8005:function(e,t,a){"use strict";var r=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"派单",width:400,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1,destroyOnClose:!0},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[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:["dealer_id",{initialValue:0,rules:[{required:!0,message:"请选择服务人员"}]}],expression:"['dealer_id', { initialValue: 0, rules: [{ required: true, message: '请选择服务人员' }] }]"}]},[t("a-select-option",{attrs:{value:0}},[e._v("选择服务人员")]),e._l(e.engineerList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.user_id}},[e._v(e._s(a.real_name)),a.mobile?t("span",[e._v("("+e._s(a.mobile)+") ")]):e._e()])}))],2)],1)],1)],1)],1)},s=[],i=(a("d3b7"),a("41ed")),n={components:{},props:{},data:function(){return{engineerList:[],title:"",labelCol:{span:7},order_id:"",wrapperCol:{span:13},visible:!1,confirmLoading:!1,form:this.$form.createForm(this)}},methods:{add:function(e){this.getEngineerList(),this.order_id=e,this.visible=!0},getEngineerList:function(){var e=this;this.isLoading=!0,i["l"]().then((function(t){e.engineerList=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||(a.order_id=t.order_id,t.onFormSubmit(a))}))},handleCancel:function(){this.visible=!1,this.form.resetFields()},onFormSubmit:function(e){var t=this;this.confirmLoading=!0,i["i"]({form:e}).then((function(a){t.$message.success(a.message,1.5),t.handleCancel(),t.$emit("handleSubmit",e)})).finally((function(e){t.confirmLoading=!1}))}}},o=n,l=a("2877"),d=Object(l["a"])(o,r,s,!1,null,null,null);t["a"]=d.exports},8170:function(e,t,a){"use strict";a("1993")},"86d6":function(e,t,a){"use strict";a.d(t,"f",(function(){return i})),a.d(t,"e",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return d})),a.d(t,"d",(function(){return c}));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",updateDelivery:"/order/updateDelivery"};function i(e){return Object(r["b"])({url:s.updateDelivery,method:"post",data:e})}function n(e){return Object(r["b"])({url:s.list,method:"get",params:e})}function o(e){return Object(r["b"])({url:s.detail,method:"get",params:{deliveryId:e}})}function l(e){return Object(r["b"])({url:s.delivery,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.batch,method:"post",data:e})}function c(e){return Object(r["b"])({url:s.eorder,method:"post",data:e})}},"884a":function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"f",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"h",(function(){return l})),a.d(t,"i",(function(){return d})),a.d(t,"b",(function(){return c})),a.d(t,"c",(function(){return u})),a.d(t,"e",(function(){return m})),a.d(t,"g",(function(){return p}));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:"/order/disputeStatus",method:"post",data:e})}function n(e){return Object(r["b"])({url:"/order.event/getRemark",method:"get",params:e})}function o(e){return Object(r["b"])({url:"/order.event/addRemark",method:"post",data:e})}function l(e){return Object(r["b"])({url:s.updatePrice,method:"post",data:e})}function d(e){return Object(r["b"])({url:s.updateRemark,method:"post",data:e})}function c(e){return Object(r["b"])({url:s.confirmCancel,method:"post",data:e})}function u(e){return Object(r["b"])({url:s.delete,method:"post",data:{orderId:e}})}function m(e){return Object(r["b"])({url:s.extract,method:"post",data:e})}function p(e){return Object(r["b"])({url:s.printer,method:"post",data:e})}},"8f90":function(e,t,a){},"935b":function(e,t,a){},"94fc":function(e,t,a){"use strict";a.r(t);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",{staticClass:"mt-20",attrs:{bordered:!1}},[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.coupon_money))]),t("a-descriptions-item",{attrs:{label:"实付款金额"}},[e._v("¥"+e._s(e.record.pay_price))]),t("a-descriptions-item",{attrs:{label:"支付方式"}},[e._v(" "+e._s(e.record.pay_method_text)+" ")]),t("a-descriptions-item",{attrs:{label:"订单状态"}},[e._v(" "+e._s(e.record.order_status_text)+" ")]),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.trade_id?e.record.trade_id:"-"))])]),t("a-descriptions-item",{attrs:{label:"服务时间"}},[e._v(e._s(e.record.server_time))]),t("a-descriptions-item",{attrs:{label:"服务地址"}},[e._v(e._s(e.record.server_address))]),t("a-descriptions-item",{attrs:{label:"联系人"}},[e._v(e._s(e.record.username))]),t("a-descriptions-item",{attrs:{label:"联系电话"}},[e._v(e._s(e.record.mobile))]),20==e.record.order_status?t("a-descriptions-item",{attrs:{label:"订单操作"}},[20==e.record.order_status?t("a",{staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleDispatch(e.record.order_id)}}},[e._v("派单")]):e._e()]):e._e()],1)],1),t("a-card",{staticClass:"mt-20",attrs:{bordered:!1}},[t("a-descriptions",{attrs:{title:"服务信息"}},[t("a-descriptions-item",{attrs:{label:"服务ID"}},[e._v(e._s(e.record.server_info.server_id))]),t("a-descriptions-item",{attrs:{label:"服务图片"}},[t("a",{attrs:{title:"点击查看原图",href:e.record.server_image,target:"_blank"}},[t("img",{attrs:{width:"50",height:"50",src:e.record.server_image,alt:"服务图片"}})])]),t("a-descriptions-item",{attrs:{label:"服务名称"}},[e._v(e._s(e.record.server_info.server_name))]),t("a-descriptions-item",{attrs:{label:"服务分类"}},[e._v(e._s(e.record.server_info.server_category))]),t("a-descriptions-item",{attrs:{label:"服务价格"}},[e._v("¥"+e._s(e.record.server_info.server_price))])],1)],1),e.record.dealer?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.dealer_mobile))]),t("a-descriptions-item",{attrs:{label:"工程师名称"}},[e._v(e._s(e.record.dealer_name))])],1)],1):e._e()],1),t("dispatch",{ref:"dispatchRef",on:{handleSubmit:e.handleRefresh}})],1)},s=[],i=(a("d3b7"),a("ca00")),n=a("41ed"),o=a("8005"),l={name:"ServerOrderDetail",components:{Dispatch:o["a"]},data:function(){return{inArray:i["e"],isLoading:!0,orderId:null,record:{}}},created:function(){this.orderId=this.$route.query.orderId,this.handleRefresh()},methods:{handleRefresh:function(){this.getDetail()},handleDispatch:function(e){this.$refs.dispatchRef.add(e)},getDetail:function(){var e=this,t=this.orderId;this.isLoading=!0,n["a"]({orderId:t}).then((function(t){e.record=t.data.detail})).finally((function(){return e.isLoading=!1}))},initData:function(){}}},d=l,c=(a("c40b"),a("2877")),u=Object(c["a"])(d,r,s,!1,null,"1d7e8a7d",null);t["default"]=u.exports},"97da":function(e,t,a){"use strict";a("381a")},"9f1b":function(e,t,a){},a58e:function(e,t,a){"use strict";a("c452")},a950:function(e,t,a){},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.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",{on:{click:e.handleForcecancel}},[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("div",{staticClass:"action-item"},[t("a-button",{on:{click:e.onClickJongDongLink}},[e._v("京东链接")])],1)]),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",{staticStyle:{color:"#d6893b",cursor:"pointer"},on:{click:e.handleLookRemark}},[e._v("查看备注")])]),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,910014169)}),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.record.isLink?t("a",{staticStyle:{"white-space":"pre-wrap",color:"#00acff"},attrs:{href:e.record.express_no,target:"_blank"}},[e._v(e._s(e.record.express_no?"京东物流":"--"))]):t("p",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(e.record.express_no?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:"物流单号"}},[a.isLink?t("a",{staticStyle:{"white-space":"pre-wrap",color:"#00acff"},attrs:{href:a.express_no,target:"_blank"}},[e._v(e._s(a.express_no?"京东物流":"--"))]):t("p",{staticStyle:{"white-space":"pre-wrap"}},[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",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("div",{staticClass:"deliver-goods-list clearfix",staticStyle:{width:"66.66%"}},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_name?a.goods_name:""))]),t("img",{staticClass:"goods-img",attrs:{src:a.goods_image?a.goods_image:"",alt:"商品图片"}}),t("div",{staticClass:"title"},[e._v("共"+e._s(a.delivery_num)+"件")])],2)],1)})),0),e.record.delivery_status==e.DeliveryStatusEnum.DELIVERED.value&&10==a.delivery_method?t("div",{staticClass:"action-item",staticStyle:{width:"33.33%"}},[t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.onClickEditDelivery(a)}}},[e._v("修改物流信息")])],1):e._e()])],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("RemarkFormEdit",{ref:"RemarkFormEdit",on:{handleSubmit:e.handleRefresh}}),t("RemarkFormAdd",{ref:"RemarkFormAdd",on:{handleSubmit:e.handleRefresh}}),t("JingDong",{ref:"JingDong",on:{handleSubmit:e.handleRefresh}}),t("DeliveryFormEdit",{ref:"DeliveryFormEdit",on:{handleSubmit:e.handleRefresh}})],1)},s=[],i=a("ade3"),n=(a("7db0"),a("a15b"),a("d3b7"),a("4d63"),a("ac1f"),a("25f0"),a("159b"),a("ca00")),o=a("3a10"),l=a("ab09"),d=a("ac82"),c=a("2af9"),u=a("4a95"),m=a("3c76"),p=[{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"}}],f={name:"Index",components:{GoodsItem:l["a"],UserItem:l["d"],DeliveryForm:d["b"],ExtractForm:d["f"],CancelForm:d["a"],PrinterForm:d["i"],PriceForm:d["h"],Ueditor:c["q"],JingDong:d["g"],RemarkFormAdd:d["j"],RemarkFormEdit:d["k"],DeliveryFormEdit:d["c"]},data:function(){return{OrderTypeEnum:u["f"],DeliveryStatusEnum:u["b"],DeliveryTypeEnum:u["c"],OrderSourceEnum:u["d"],OrderStatusEnum:u["e"],PayStatusEnum:u["g"],ReceiptStatusEnum:u["h"],PaymentMethodEnum:m["a"],inArray:n["e"],isLoading:!0,orderId:null,record:{},progress:2,goodsColumns:p}},created:function(){this.orderId=this.$route.query.orderId,this.handleRefresh()},methods:{handleRefresh:function(){this.getDetail()},containsLetterMix:function(e,t){return new RegExp(t.split("").join("\\w*")).test(e)},getDetail:function(){var e=this,t=this.orderId;this.isLoading=!0,o["a"]({orderId:t}).then((function(t){e.record=t.data.detail,e.record.delivery.length?e.record.delivery.forEach((function(t){e.containsLetterMix(t.express_no,"http")?t.isLink=!0:t.isLink=!1})):e.containsLetterMix(e.record.express_no,"http")?e.record.isLink=!0:e.record.isLink=!1,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==u["g"].SUCCESS.value&&(this.progress+=1),e.delivery_status!=u["b"].NOT_DELIVERED.value&&(this.progress+=1),e.receipt_status==u["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=this.OrderStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.CANCELLED.value,"red"),t.APPLY_CANCEL.value,"red"),t.COMPLETED.value,"green");return a[e]},onClickEditDelivery:function(e){this.$refs.DeliveryFormEdit.show(e)},handleDelivery:function(){var e=this.record;this.$refs.DeliveryForm.show(e)},handleForcecancel:function(){var e=this,t=this.$confirm({title:"您确定要取消该订单吗",onOk:function(){return o["b"]({orderId:e.orderId}).then((function(t){200==t.status?(e.$message.success(t.message,1.5),e.getDetail()):e.$message.fail(t.message,1.5)})).finally((function(e){return t.destroy()}))}})},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.RemarkFormAdd.show(e)},handleLookRemark:function(){var e=this.record;this.$refs.RemarkFormEdit.show(e)},onClickJongDongLink:function(){var e=this.record;this.$refs.JingDong.show(e)}}},h=f,v=(a("1fe8"),a("2877")),_=Object(v["a"])(h,r,s,!1,null,"acad09a4",null);t["default"]=_.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,"f",(function(){return k})),a.d(t,"a",(function(){return P})),a.d(t,"i",(function(){return M})),a.d(t,"h",(function(){return H})),a.d(t,"k",(function(){return fe})),a.d(t,"j",(function(){return te})),a.d(t,"g",(function(){return ye})),a.d(t,"c",(function(){return ke})),a.d(t,"d",(function(){return Fe})),a.d(t,"e",(function(){return He}));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("4de4"),a("caad"),a("d81d"),a("d3b7"),a("2532"),a("159b"),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%"}],f={expressId:[{required:!0,message:"请选择物流公司",trigger:"blur"}],expressNo:[{required:!0,message:"请填写物流单号",trigger:"blur"}]},h={components:{GoodsItem:u["a"]},data:function(){return{title:"订单发货",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,columns1:m,columns2:p,rules:f,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}))}}},v=h,_=(a("8170"),a("2877")),b=Object(_["a"])(v,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)},C=[],E=a("884a"),S=a("6dd2"),L={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,S["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,E["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}))}}},w=L,x=Object(_["a"])(w,y,C,!1,null,null,null),k=x.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 }] }]"}],on:{change:e.handleStatus}},[t("a-radio",{attrs:{value:1}},[e._v("同意")]),t("a-radio",{attrs:{value:0}},[e._v("拒绝")])],1)],1),e.refuse_show?t("a-form-item",{attrs:{label:"拒绝原因",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{initialValue:"",rules:[{required:!0,message:"拒绝原因不能为空"}]}],expression:"['remark', { initialValue: '', rules: [{ required: true,message: '拒绝原因不能为空' }] }]"}],attrs:{placeholder:"拒绝原因",rows:2}})],1):e._e()],1)],1)],1)},D=[],O={data:function(){return{refuse_show:!1,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},handleStatus:function(e){0===e.target.value?(this.form.setFieldsValue({refuse_text:""}),this.refuse_show=!0):this.refuse_show=!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,E["b"]({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=O,T=Object(_["a"])(I,R,D,!1,null,null,null),P=T.exports,F=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)},N=[],A=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,A["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,E["g"]({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}))}}},$=j,V=Object(_["a"])($,F,N,!1,null,null,null),M=V.exports,q=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)},G=[],z=(a("a9e3"),a("2ef0")),U=a.n(z),W={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,E["h"]({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}))}}},Y=W,K=Object(_["a"])(Y,q,G,!1,null,null,null),H=K.exports,B=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-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{required:!0,message:"备注内容不能为空"}]}],expression:"['remark', { rules: [{ required: true, message: '备注内容不能为空' }] }]"}],attrs:{autoSize:{minRows:4,maxRows:6},autocomplete:"off"}})],1)],1),t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"备注图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],ref:"childComponent",attrs:{multiple:"",maxNum:10}})],1)],1)],1)],1)},X=[],J=a("2af9"),Q={components:{SelectImage:J["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},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,E["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}))}}},Z=Q,ee=Object(_["a"])(Z,B,X,!1,null,null,null),te=ee.exports,ae=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"查看备注",width:800,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,destroyOnClose:!0,footer:null},on:{cancel:e.handleCancel}},[t("a-spin",{staticStyle:{"padding-bottom":"30px"},attrs:{spinning:e.isLoading}},[t("table",{staticStyle:{width:"100%"}},[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.remarkList,(function(a,r){return t("tr",{key:a.id},[t("td",{staticStyle:{"text-align":"center"}},[a.image_url?t("img",{attrs:{width:"50",height:"50",src:a.image_url[0].preview_url,alt:"备注图片"}}):t("span",[e._v("-")])]),t("td",[e._v(e._s(a.remark))]),t("td",[e._v(e._s(a.create_time))]),t("td",[t("a",{on:{click:function(t){return e.handleLookRemarkDetails(a)}}},[e._v("详情")])])])}))],2)])]),t("RemarkFormDetails",{ref:"RemarkFormDetails"})],1)},re=[],se=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:"备注详情",width:560,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1,footer:null},on:{cancel:e.handleCancel}},[t("a-spin",{staticStyle:{"padding-bottom":"30px"},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-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["remark",{rules:[{required:!0,message:"备注内容不能为空"}]}],expression:"['remark', { rules: [{ required: true, message: '备注内容不能为空' }] }]"}],attrs:{autoSize:{minRows:4,maxRows:6},autocomplete:"off"}})],1)],1),t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"备注图片",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("SelectImage",{directives:[{name:"decorator",rawName:"v-decorator",value:["image_id"],expression:"['image_id']"}],ref:"childComponent",attrs:{defaultList:e.record.image_url,multiple:"",maxNum:10}})],1)],1)],1)],1)},ie=[],ne={components:{SelectImage:J["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,t=this.form.setFieldsValue;this.$nextTick((function(){t(U.a.pick(e.record,["remark"]))}))},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},oe=ne,le=Object(_["a"])(oe,se,ie,!1,null,null,null),de=le.exports,ce=[{title:"备注图片",dataIndex:"image_url",scopedSlots:{customRender:"image_url"}},{title:"备注名称",dataIndex:"remark"},{title:"添加时间",width:"180px",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],ue={components:{SelectImage:J["j"],STable:J["d"],RemarkFormDetails:de},data:function(){return{title:"商家备注",labelCol:{span:6},wrapperCol:{span:14},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{},columns:ce,remarkList:[]}},created:function(){},methods:{handleLookRemarkDetails:function(e){this.$refs.RemarkFormDetails.show(e)},show:function(e){this.visible=!0,this.record=e,this.getRemark()},getRemark:function(){var e=this;return this.isLoading=!0,E["f"]({orderId:this.record.order_id}).then((function(t){e.remarkList=t.data.list})).finally((function(){return e.isLoading=!1}))},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},me=ue,pe=Object(_["a"])(me,ae,re,!1,null,null,null),fe=pe.exports,he=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-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["jd_link",{rules:[{required:!0,message:"请输入京东链接"}]}],expression:"['jd_link', { rules: [{ required: true, message: '请输入京东链接' }] }]"}],attrs:{placeholder:"请输入京东链接","auto-size":{minRows:2,maxRows:5}}})],1)],1)],1)],1)},ve=[],_e={components:{Ueditor:J["q"]},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({jd_link:e.jd_link})}))},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,E["i"]({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}))}}},be=_e,ge=Object(_["a"])(be,he,ve,!1,null,null,null),ye=ge.exports,Ce=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.record,rules:e.rules,"label-col":e.labelCol,wrapperCol:e.wrapperCol}},[t("div",[t("a-form-model-item",{attrs:{label:"物流公司",prop:"express_id"}},[t("a-select",{attrs:{placeholder:"请选择物流公司"},model:{value:e.record.express_id,callback:function(t){e.$set(e.record,"express_id",t)},expression:"record.express_id"}},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:"express_no",extra:"请手动录入物流单号或快递单号"}},[t("a-input",{model:{value:e.record.express_no,callback:function(t){e.$set(e.record,"express_no",t)},expression:"record.express_no"}})],1)],1)])],1)],1)},Ee=[],Se={expressId:[{required:!0,message:"请选择物流公司",trigger:"blur"}],expressNo:[{required:!0,message:"请填写物流单号",trigger:"blur"}]},Le={components:{GoodsItem:u["a"]},data:function(){return{title:"订单发货",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,rules:Se,expressList:[],record:{}}},computed:{},beforeCreate:function(){Object(i["a"])(this,{ClientEnum:l["a"],PaymentMethodEnum:d["a"]})},created:function(){this.getExpressList()},methods:{show:function(e){this.record=e,this.visible=!0},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;e.preventDefault(),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["f"]({delivery_id:this.record.delivery_id,form:{express_no:this.record.express_no,express_id:this.record.express_id}}).then((function(t){e.$message.success(t.message,1.5),e.handleCancel(),e.$emit("handleSubmit",!0)})).finally((function(){return e.isLoading=!1}))}}},we=Le,xe=(a("1e4b"),Object(_["a"])(we,Ce,Ee,!1,null,"3eb0d72f",null)),ke=xe.exports,Re=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-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["standard_status",{initialValue:10,rules:[{required:!0}]}],expression:"['standard_status', { initialValue: 10, rules: [{ required: true }] }]"}],on:{change:e.handleStatus}},[t("a-radio",{attrs:{value:10}},[e._v("同意")]),t("a-radio",{attrs:{value:20}},[e._v("拒绝")])],1)],1),e.refuse_show?t("a-form-item",{attrs:{label:"拒绝原因",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["cause",{initialValue:"",rules:[{required:!0,message:"拒绝原因不能为空"}]}],expression:"['cause', { initialValue: '', rules: [{ required: true, message: '拒绝原因不能为空' }] }]"}],attrs:{placeholder:"拒绝原因",rows:2}})],1):e._e()],1)],1)],1)},De=[],Oe=a("3a10"),Ie={data:function(){return{refuse_show:!1,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},handleStatus:function(e){20===e.target.value?(this.form.setFieldsValue({cause:""}),this.refuse_show=!0):this.refuse_show=!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,Oe["f"]({standardId:this.record.id,form:e}).then((function(e){t.$message.success(e.message,1.5),t.handleCancel(),t.$emit("handleSubmit")})).finally((function(){return t.isLoading=!1}))}}},Te=Ie,Pe=Object(_["a"])(Te,Re,De,!1,null,null,null),Fe=Pe.exports,Ne=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:1e3,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1,footer:null},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[e.isLoading?e._e():t("a-table",{attrs:{rowKey:"category_id",columns:e.columns,dataSource:e.documentList,defaultExpandAllRows:!0,expandIconColumnIndex:1,pagination:!1,loading:e.isLoading},scopedSlots:e._u([{key:"transfer_image_url",fn:function(a){return t("span",{},[a?t("a",{attrs:{title:"点击查看原图"}},[t("img",{attrs:{height:"50",src:a[0].preview_url,alt:"转账图片"}})]):e._e()])}},{key:"order_image_url",fn:function(a){return t("span",{},[a?t("a",{attrs:{title:"点击查看原图"}},[t("img",{attrs:{height:"50",src:a[0].preview_url,alt:"聊天截图"}})]):e._e()])}},{key:"is_city",fn:function(a){return t("span",{},[t("a-tag",{attrs:{color:10==a?"green":""}},[e._v(e._s(10==a?"是":"否"))])],1)}},{key:"from",fn:function(a){return t("span",{},[10==a?t("span",[e._v("本地同城线下真实零售客户")]):e._e(),20==a?t("span",[e._v("电商平台客户")]):e._e(),30==a?t("span",[e._v("短视频平台客户")]):e._e()])}},{key:"standard_status",fn:function(a){return t("span",{},[10==a?t("span",[e._v("单审通过")]):e._e(),20==a?t("span",[e._v("审审不通过")]):e._e(),30==a?t("span",[e._v("审核中")]):e._e()])}},{key:"action",fn:function(a,r){return t("span",{},[t("a",{staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.handleEdit(r)}}},[e._v("详情")]),30==r.standard_status?t("a",{on:{click:function(t){return e.onClickRecord(r)}}},[e._v("审单")]):e._e()])}}],null,!1,3865470437)})],1),t("DocumentRecord",{ref:"DocumentRecord",on:{handleSubmit:e.handleRefresh}}),t("DocumentRecordDetails",{ref:"DocumentRecordDetails"})],1)},Ae=[],je=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1,footer:null},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[e.record?t("a-form",{attrs:{form:e.form}},[t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"客户来源",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.isFrom[e.record.from]))])])],1)],1),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"是否同一城市",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v(e._s(e.isYes[e.record.is_city]))])])],1)],1),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[10==e.record.standard_status?t("span",[e._v("审审通过")]):e._e(),20==e.record.standard_status?t("span",[e._v("审审不通过")]):e._e(),30==e.record.standard_status?t("span",[e._v("审核中")]):e._e()])],1)],1),t("a-row",[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"微信聊天截图",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.idOrderShow?t("SelectImage",{ref:"childComponent",attrs:{type:1,multiple:"",source:1,maxNum:10,defaultList:e.record.order_image_url}}):e._e()],1)],1)],1),t("a-row",[t("a-col",{staticStyle:{"margin-bottom":"30px"},attrs:{span:24}},[t("a-form-item",{attrs:{label:"转账截图",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[e.transferShow?t("SelectImage",{ref:"childComponent",attrs:{type:1,multiple:"",source:1,maxNum:10,defaultList:e.record.transfer_image_url}}):e._e()],1)],1)],1)],1):e._e()],1)],1)},$e=[],Ve=(a("fe87"),{10:"本地同城线下真实零售客户",20:"电商平台客户",30:"短视频平台客户"}),Me={10:"是",20:"否"},qe={components:{SelectImage:J["j"]},data:function(){return{isFrom:Ve,isYes:Me,title:"审单详情",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,form:this.$form.createForm(this),record:{},idOrderShow:!1,transferShow:!1}},created:function(){},methods:{details:function(e){this.visible=!0,this.idOrderShow=!1,this.transferShow=!1,this.record=e,this.record&&(this.idOrderShow=!0,this.transferShow=!0)},handleCancel:function(){this.visible=!1,this.idOrderShow=!1,this.transferShow=!1,this.form.resetFields()}}},Ge=qe,ze=(a("97da"),Object(_["a"])(Ge,je,$e,!1,null,"0bbdc41c",null)),Ue=ze.exports,We={components:{DocumentRecord:Fe,DocumentRecordDetails:Ue,STable:J["d"]},data:function(){return{title:"审单记录",labelCol:{span:7},wrapperCol:{span:13},visible:!1,isLoading:!1,record:{},documentList:[],columns:[{title:"审单ID",dataIndex:"id"},{title:"客户来源",width:"120px",dataIndex:"from",scopedSlots:{customRender:"from"}},{title:"是否同一城市",width:"100px",dataIndex:"is_city",scopedSlots:{customRender:"is_city"}},{title:"微信聊天截图",dataIndex:"order_image_url",scopedSlots:{customRender:"order_image_url"}},{title:"转账截图",dataIndex:"transfer_image_url",scopedSlots:{customRender:"transfer_image_url"}},{title:"状态",dataIndex:"standard_status",scopedSlots:{customRender:"standard_status"}},{title:"添加时间",dataIndex:"create_time"},{title:"操作",dataIndex:"action",width:"120px",scopedSlots:{customRender:"action"}}]}},created:function(){},methods:{handleRefresh:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.page=1),this.getDocumentList()},show:function(e){this.visible=!0,this.record=e,this.record&&this.getDocumentList()},getDocumentList:function(e){var t=this;e&&(this.isLoading=!0),Oe["c"]({orderId:this.record.order_id}).then((function(e){t.documentList=e.data.list})).finally((function(){return t.isLoading=!1}))},onClickRecord:function(e){this.$refs.DocumentRecord.show(e)},handleEdit:function(e){this.$refs.DocumentRecordDetails.details(e)},handleCancel:function(){this.visible=!1,this.form.resetFields()}}},Ye=We,Ke=Object(_["a"])(Ye,Ne,Ae,!1,null,null,null),He=Ke.exports},b4a5:function(e,t,a){"use strict";a.d(t,"a",(function(){return h})),a.d(t,"c",(function(){return C})),a.d(t,"b",(function(){return k}));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.record.type==e.RefundTypeEnum.RETURNPRICE.value?t("a-form-item",{attrs:{label:"订单付款的总金额",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("span",[e._v("¥"+e._s(e.record.orderData.pay_price)+"元")])]):e._e(),e.record.type==e.RefundTypeEnum.RETURNPRICE.value&&e.form.getFieldValue("audit_status")==e.AuditStatusEnum.REVIEWED.value?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):e._e(),e.form.getFieldValue("audit_status")!=e.AuditStatusEnum.REVIEWED.value||e.record.type!=e.RefundTypeEnum.RETURN.value&&e.record.type!=e.RefundTypeEnum.EXCHANGE.value?e._e():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.form.getFieldValue("audit_status")==e.AuditStatusEnum.REJECTED.value?t("a-form-item",{attrs:{label:"回复内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["refuse_desc",{rules:[{required:!0,message:"请输入回复内容"}]}],expression:"['refuse_desc', { rules: [{ required: true, message: '请输入回复内容' }] }]"}]})],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=a("2af9"),u={components:{Ueditor:c["q"]},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.setFieldsValue(),this.$nextTick((function(){t.$forceUpdate()}))},setFieldsValue:function(){var e=this.record,t=this.$nextTick,a=this.form.setFieldsValue;t((function(){a({refuse_desc:e.refuse_desc})}))},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}))}}},m=u,p=(a("6219"),a("2877")),f=Object(p["a"])(m,r,s,!1,null,"6a88fa0c",null),h=f.exports,v=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.record.type==e.RefundTypeEnum.EXCHANGE.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)+"元")])]),e.record.type==e.RefundTypeEnum.RETURN.value?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):e._e()],1):e._e()],1)],1)},_=[],b={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.title=this.record.type==l["c"].RETURN.value?"确认收货并退款":"确认收货并换货",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}))}}},g=b,y=(a("0a39"),Object(p["a"])(g,v,_,!1,null,"0887a134",null)),C=y.exports,E=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:560,visible:e.visibleLook,isLoading:e.isLoading,confirmLoading:e.isLoading,maskClosable:!1,footer:"-"},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.isLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("Ueditor",{directives:[{name:"decorator",rawName:"v-decorator",value:["content"],expression:"['content']"}]})],1)],1)],1)],1)},S=[],L=(a("2ef0"),{components:{Ueditor:c["q"]},data:function(){return{title:"拒绝内容",labelCol:{span:6},wrapperCol:{span:14},visibleLook:!1,isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){},methods:{show:function(e){this.visibleLook=!0,this.record=e,this.setFieldsValue()},setFieldsValue:function(){var e=this.record,t=this.$nextTick,a=this.form.setFieldsValue;t((function(){a({content:e.refuse_desc})}))},handleCancel:function(){this.visibleLook=!1,this.form.resetFields()}}}),w=L,x=Object(p["a"])(w,E,S,!1,null,null,null),k=x.exports},bee9:function(e,t,a){"use strict";a.r(t);a("99af"),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:"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,"default-page-size":e.pageSize,pageSizes:e.pageSize,total:e.orderList.total,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:e.pageSizeOptions,layout:"total, sizes, prev, pager, next, jumper",showTotal:e.showTotal},on:{showSizeChange:e.handleSizeChange,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"),f=a("2264"),h=[{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"}}],v=[{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:f["a"]},data:function(){return{dataType:"delivery",searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:h,page:1,pageSize:15,pageSizeOptions:["15","30","50","100","200","300","400","500"],showTotal:function(e){return"共 ".concat(e," 条记录")},orderList:{data:[],total:0}}},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:v,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["d"](Object(i["a"])(Object(i["a"])({dataType:t},a),{},{deliveryType:u["c"].EXPRESS.value,page:r,pageSize:this.pageSize})).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,t){this.page=e,this.pageSize=t,this.handleRefresh()},handleSizeChange:function(e,t){this.page=e,this.pageSize=t,this.handleRefresh()},handleDelivery:function(e){this.$refs.DeliveryForm.show(e)},handleEorder:function(e){this.$refs.EorderForm.handle(e)}}},b=_,g=(a("460d"),a("2877")),y=Object(g["a"])(b,r,s,!1,null,"774d1f2b",null);t["default"]=y.exports},c2ab:function(e,t,a){"use strict";a("ec66")},c40b:function(e,t,a){"use strict";a("508f")},c452:function(e,t,a){},c612:function(e,t,a){"use strict";a("8f90")},c7eb:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("a4d3"),a("e01a"),a("b636"),a("d28b"),a("944a"),a("fb6a"),a("b0c0"),a("0c47"),a("23dc"),a("3410"),a("131a"),a("d3b7"),a("3ca3"),a("159b"),a("ddb0");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 t};var e,t={},a=Object.prototype,i=a.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",d=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,a){return e[t]=a}}function m(e,t,a,r){var s=t&&t.prototype instanceof g?t:g,i=Object.create(s.prototype),o=new T(r||[]);return n(i,"_invoke",{value:R(e,a,o)}),i}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var f="suspendedStart",h="suspendedYield",v="executing",_="completed",b={};function g(){}function y(){}function C(){}var E={};u(E,l,(function(){return this}));var S=Object.getPrototypeOf,L=S&&S(S(P([])));L&&L!==a&&i.call(L,l)&&(E=L);var w=C.prototype=g.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function a(s,n,o,l){var d=p(e[s],e,n);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==Object(r["a"])(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){a("next",e,o,l)}),(function(e){a("throw",e,o,l)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return a("throw",e,o,l)}))}l(d.arg)}var s;n(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,s){a(e,r,t,s)}))}return s=s?s.then(i,i):i()}})}function R(t,a,r){var s=f;return function(i,n){if(s===v)throw Error("Generator is already running");if(s===_){if("throw"===i)throw n;return{value:e,done:!0}}for(r.method=i,r.arg=n;;){var o=r.delegate;if(o){var l=D(o,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(s===f)throw s=_,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);s=v;var d=p(t,a,r);if("normal"===d.type){if(s=r.done?_:h,d.arg===b)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(s=_,r.method="throw",r.arg=d.arg)}}}function D(t,a){var r=a.method,s=t.iterator[r];if(s===e)return a.delegate=null,"throw"===r&&t.iterator["return"]&&(a.method="return",a.arg=e,D(t,a),"throw"===a.method)||"return"!==r&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=p(s,t.iterator,a.arg);if("throw"===i.type)return a.method="throw",a.arg=i.arg,a.delegate=null,b;var n=i.arg;return n?n.done?(a[t.resultName]=n.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,b):n:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,b)}function O(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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(t){if(t||""===t){var a=t[l];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var s=-1,n=function a(){for(;++s<t.length;)if(i.call(t,s))return a.value=t[s],a.done=!1,a;return a.value=e,a.done=!0,a};return n.next=n}}throw new TypeError(Object(r["a"])(t)+" is not iterable")}return y.prototype=C,n(w,"constructor",{value:C,configurable:!0}),n(C,"constructor",{value:y,configurable:!0}),y.displayName=u(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,u(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(k.prototype),u(k.prototype,d,(function(){return this})),t.AsyncIterator=k,t.async=function(e,a,r,s,i){void 0===i&&(i=Promise);var n=new k(m(e,a,r,s),i);return t.isGeneratorFunction(a)?n:n.next().then((function(e){return e.done?e.value:n.next()}))},x(w),u(w,c,"Generator"),u(w,l,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.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}},t.values=P,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function r(r,s){return o.type="throw",o.arg=t,a.next=r,s&&(a.method="next",a.arg=e),!!s}for(var s=this.tryEntries.length-1;s>=0;--s){var n=this.tryEntries[s],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),d=i.call(n,"finallyLoc");if(l&&d){if(this.prev<n.catchLoc)return r(n.catchLoc,!0);if(this.prev<n.finallyLoc)return r(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return r(n.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return r(n.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var n=s?s.completion:{};return n.type=e,n.arg=t,s?(this.method="next",this.next=s.finallyLoc,b):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),b},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),I(a),b}},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;I(a)}return s}}throw Error("illegal catch attempt")},delegateYield:function(t,a,r){return this.delegate={iterator:P(t),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},d409:function(e,t,a){"use strict";a.r(t);a("99af"),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("发货记录(物流配送)")]),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,"default-page-size":e.pageSize,pageSizes:e.pageSize,total:e.orderList.total,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:e.pageSizeOptions,layout:"total, sizes, prev, pager, next, jumper",showTotal:e.showTotal},on:{showSizeChange:e.handleSizeChange,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"),f=[{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"}}],h=[{name:"订单号",value:10}],v={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:f,page:1,pageSize:15,pageSizeOptions:["15","30","50","100","200","300","400","500"],showTotal:function(e){return"共 ".concat(e," 条记录")},orderList:{data:[],total:0}}},beforeCreate:function(){Object(o["a"])(this,{inArray:o["e"],DeliveryMethodEnum:m,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.queryParam,a=this.page;return this.isLoading=!0,l["e"](Object(i["a"])(Object(i["a"])({},t),{},{page:a,pageSize:this.pageSize})).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,t){this.page=e,this.pageSize=t,this.handleRefresh()},handleSizeChange:function(e,t){this.page=e,this.pageSize=t,this.handleRefresh()},handleEorder:function(e){this.$refs.EorderShow.handle(e)}}},_=v,b=(a("c612"),a("2877")),g=Object(b["a"])(_,r,s,!1,null,"a6f9eda4",null);t["default"]=g.exports},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||a.type==e.RefundTypeEnum.EXCHANGE.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||a.type==e.RefundTypeEnum.EXCHANGE.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.type!=e.RefundTypeEnum.EXCHANGE.value||a.audit_status!=e.AuditStatusEnum.REVIEWED.value||!a.is_user_send||a.is_receipt?e._e():t("a",{directives:[{name:"action",rawName:"v-action:receipt",arg:"receipt"}],on:{click:function(t){return e.handleReceipt(a)}}},[e._v("确认收货")])],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,"default-page-size":e.pageSize,pageSizes:e.pageSize,total:e.refundList.total,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:e.pageSizeOptions,layout:"total, sizes, prev, pager, next, jumper",showTotal:e.showTotal},on:{showSizeChange:e.handleSizeChange,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"}}],f=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30}],h={name:"Index",components:{GoodsItem:c["a"],UserItem:c["d"],AuditForm:m["a"],ReceiptForm:m["c"]},data:function(){return{searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:p,page:1,pageSize:15,pageSizeOptions:["15","30","50","100","200","300","400","500"],showTotal:function(e){return"共 ".concat(e," 条记录")},refundList:{data:[],total:0}}},beforeCreate:function(){Object(l["a"])(this,{inArray:l["e"],AuditStatusEnum:u["a"],RefundStatusEnum:u["b"],RefundTypeEnum:u["c"],SearchTypeEnum:f,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,pageSize:this.pageSize})).then((function(t){e.refundList=t.data.list})).finally((function(){return e.isLoading=!1}))},renderAuditStatusColor:function(e){var t=this.AuditStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.WAIT.value,""),t.REVIEWED.value,"green"),t.REJECTED.value,"red");return a[e]},renderRefundStatusColor:function(e){var t=this.RefundStatusEnum,a=Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t.NORMAL.value,""),t.REJECTED.value,"red"),t.COMPLETED.value,"green"),t.CANCELLED.value,"red");return a[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,t){this.page=e,this.pageSize=t,this.handleRefresh()},handleSizeChange:function(e,t){this.page=e,this.pageSize=t,this.handleRefresh()},handleAudit:function(e){this.$refs.AuditForm.show(e)},handleReceipt:function(e){this.$refs.ReceiptForm.show(e)}}},v=h,_=(a("0f57"),a("2877")),b=Object(_["a"])(v,r,s,!1,null,"e5898428",null);t["default"]=b.exports},ec66: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})}},fe87:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a("b775"),s={list:"/store/settleList",detail:"/store/settleDetail"};function i(e){return Object(r["b"])({url:s.list,method:"get",params:e})}},fecbd:function(e,t,a){"use strict";a.r(t);a("99af"),a("caad"),a("b0c0"),a("b64b"),a("2532");var r,s=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",{attrs:{label:"纠纷异议"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["disputeStatus",{initialValue:0}],expression:"['disputeStatus', { initialValue: 0 }]"}]},e._l(e.disputeList,(function(a,r){return t("a-select-option",{key:r,attrs:{value:a.val}},[e._v(e._s(a.name))])})),1)],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}}),20==a.dispute_status?t("a-tag",{staticStyle:{"margin-left":"10px"},attrs:{color:"red"}},[e._v("纠纷订单")]):e._e(),a.merchant?t("div",[a.merchant&&Object.keys(a.merchant).length>0&&a.merchant.logoImage?t("img",{staticStyle:{width:"60px",height:"60px",margin:"0 10px 0 20px","border-radius":"8px"},attrs:{src:a.merchant.logoImage[0].external_url}}):e._e(),a.merchant&&Object.keys(a.merchant).length>0?t("span",{staticClass:"mr-20"},[e._v(e._s(a.merchant.shop_name))]):e._e()]):e._e()],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,isCheck:r.is_check,source:1}}})],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])&&(0===e.storeVersion||1===e.storeVersion&&0===e.isSuper)?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])||0!==e.storeVersion&&(1!==e.storeVersion||0!==e.isSuper)?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&&(0===e.storeVersion||1===e.storeVersion&&0===e.isSuper)?t("a",{directives:[{name:"action",rawName:"v-action:cancel",arg:"cancel"}],on:{click:function(t){return e.handleCancel(a)}}},[e._v("审核取消")]):e._e(),0===e.storeVersion||1===e.storeVersion&&0===e.isSuper?t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")]):e._e(),t("a",{on:{click:function(t){return e.copyText(a.copy_text)}}},[e._v("复制")]),0==a.standard_count&&10==a.delivery_status&&10==a.order_status?t("a",{on:{click:function(t){return e.reviewDocuments(a,1)}}},[e._v("审单")]):e._e(),1==a.standard_count&&10==a.delivery_status&&10==a.order_status?t("a",{staticStyle:{"pointer-events":"none",cursor:"default",color:"gray"}},[e._v("审单")]):e._e(),1==a.standard_count&&10==a.delivery_status&&10==a.order_status?t("a",{on:{click:function(t){return e.reviewDocuments(a,2)}}},[e._v("再次审单")]):e._e(),2==a.standard_count&&10==a.delivery_status&&10==a.order_status?t("a",{staticStyle:{"pointer-events":"none",cursor:"default",color:"gray"}},[e._v("再次审单")]):e._e(),t("a",{on:{click:function(t){return e.documentRecord(a)}}},[e._v("审单记录")]),10==a.dispute_status?t("a",{on:{click:function(t){return e.documentDispute(a)}}},[e._v("设置纠纷订单")]):e._e()],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,"default-page-size":e.pageSizes,pageSizes:e.pageSizes,total:e.orderList.total,showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:e.pageSizeOptions,layout:"total, sizes, prev, pager, next, jumper",showTotal:e.showTotal},on:{showSizeChange:e.handleSizeChange,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}}),t("DocumentRecordList",{ref:"DocumentRecordList",on:{handleSubmit:e.handleRefresh}})],1)],1)},i=[],n=a("ade3"),o=a("5530"),l=a("c7eb"),d=a("1da1"),c=(a("06f4"),a("fc25")),u=(a("d3b7"),a("ac1f"),a("5319"),a("ca00")),m=a("3a10"),p=a("884a"),f=a("3858"),h=a("8d5f"),v=a("ab09"),_=a("4a95"),b=a("3c76"),g=a("ac82"),y=[{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"}}],C=[{name:"订单号",value:10},{name:"会员昵称",value:20},{name:"会员ID",value:30},{name:"收货人姓名",value:40},{name:"收货人电话",value:50}],E={name:"Index",components:{PlatformIcon:h["a"],GoodsItem:v["a"],UserItem:v["d"],DeliveryForm:g["b"],ExtractForm:g["f"],CancelForm:g["a"],DocumentRecordList:g["e"],DocumentRecord:g["d"]},data:function(){return{dataType:this.getDataType(),searchForm:this.$form.createForm(this),queryParam:{},isLoading:!1,columns:y,page:1,pageSizes:15,textToCopy:"",orderList:{data:[],total:0},pageSizeOptions:["15","30","50","100","200","300","400","500"],showTotal:function(e){return"共 ".concat(e," 条记录")},shopList:[],disputeList:[{name:"全部",val:0},{name:"正常",val:10},{name:"纠纷",val:20}]}},beforeCreate:function(){Object(u["a"])(this,{inArray:u["e"],DeliveryStatusEnum:_["b"],DeliveryTypeEnum:_["c"],OrderSourceEnum:_["d"],OrderStatusEnum:_["e"],PayStatusEnum:_["g"],ReceiptStatusEnum:_["h"],PaymentMethodEnum:b["a"],SearchTypeEnum:C,simpleImage:c["a"].PRESENTED_IMAGE_SIMPLE})},computed:{isSuper:function(){return window.localStorage.getItem("roles")?JSON.parse(window.localStorage.getItem("roles")).isSuper:0},storeVersion:function(){return window.localStorage.getItem("storeInfo")?JSON.parse(window.localStorage.getItem("storeInfo")).store_version:0}},watch:{$route:function(){this.init()}},created:function(){this.init(),this.getShopList()},methods:(r={reviewDocuments:function(e,t){if(1==t)var a=this,r=a.$confirm({title:"是否确定审单?",onOk:function(){return m["e"]({orderId:e.order_id,form:{type:10}}).then((function(e){a.$message.success(e.message,1.5),a.handleRefresh()})).finally((function(e){return r.destroy()}))}});if(2==t)var s=this,i=s.$confirm({title:"是否确定再次审单?",onOk:function(){return m["e"]({orderId:e.order_id,form:{type:20}}).then((function(e){s.$message.success(e.message,1.5),s.handleRefresh()})).finally((function(e){return i.destroy()}))}})},init:function(){this.dataType=this.getDataType(),this.searchForm.resetFields(),this.queryParam={},this.handleRefresh(!0)},getShopList:function(){var e=this;f["b"]().then((function(t){return e.shopList=t.data.list}))},getDataType:function(){return this.$route.path.split("/")[3].replace("-","_")}},Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(r,"reviewDocuments",(function(e,t){if(1==t)var a=this,r=a.$confirm({title:"是否确定审单?",onOk:function(){return m["e"]({orderId:e.order_id,form:{type:10}}).then((function(e){a.$message.success(e.message,1.5),a.handleRefresh()})).finally((function(e){return r.destroy()}))}});if(2==t)var s=this,i=s.$confirm({title:"是否确定再次审单?",onOk:function(){return m["e"]({orderId:e.order_id,form:{type:20}}).then((function(e){s.$message.success(e.message,1.5),s.handleRefresh()})).finally((function(e){return i.destroy()}))}})})),"documentRecord",(function(e){this.$refs.DocumentRecordList.show(e)})),"copyText",(function(e){var t=this;return Object(d["a"])(Object(l["a"])().mark((function a(){var r;return Object(l["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,r=e,a.next=4,navigator.clipboard.writeText(r);case 4:t.$message.success("复制成功",1.5),a.next=10;break;case 7:a.prev=7,a.t0=a["catch"](0),t.$message.error("复制失败",1.5);case 10:case"end":return a.stop()}}),a,null,[[0,7]])})))()})),"getList",(function(){var e=this,t=this.dataType,a=this.queryParam,r=this.page;return this.isLoading=!0,m["d"](Object(o["a"])(Object(o["a"])({dataType:t},a),{},{page:r,pageSize:this.pageSizes})).then((function(t){e.orderList=t.data.list})).finally((function(){return e.isLoading=!1}))})),"renderOrderStatusColor",(function(e){var t=this.OrderStatusEnum,a=Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({},t.NORMAL.value,""),t.CANCELLED.value,"red"),t.APPLY_CANCEL.value,"red"),t.COMPLETED.value,"green");return a[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(o["a"])(Object(o["a"])({},t.queryParam),a),t.handleRefresh(!0))}))})),"handleReset",(function(){this.searchForm.resetFields()})),"onChangePage",(function(e,t){this.page=e,this.pageSizes=t,this.handleRefresh()})),"handleSizeChange",(function(e,t){this.page=e,this.pageSizes=t,this.handleRefresh()})),Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(r,"documentDispute",(function(e){var t=this,a=t.$confirm({title:"您确定要该订单记录设置为纠纷订单吗?",content:"设置纠纷订单后不可恢复,请谨慎操作",onOk:function(){return p["d"]({orderId:e.order_id,form:{disputeStatus:20}}).then((function(e){t.$message.success(e.message,1.5),t.handleRefresh()})).finally((function(e){return a.destroy()}))}})})),"handleDelete",(function(e){var t=this,a=t.$confirm({title:"您确定要删除该订单记录吗?",content:"删除后不可恢复,请谨慎操作",onOk:function(){return p["c"](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)})))},S=E,L=(a("3f0a"),a("2877")),w=Object(L["a"])(S,s,i,!1,null,"a7e6d086",null);t["default"]=w.exports}}]);