徐总多门店
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.
 
 
 
 
 
 
jiuhaoshenghuo/public/view_store/js/chunk-55465d81.fdd2b5f7.js

1 lines
17 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55465d81"],{1796:function(e,t,r){},3353:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("Card",{staticClass:"ivu-mt mt15",attrs:{bordered:!1,"dis-hover":""}},[r("Form",{ref:"pagination",attrs:{model:e.pagination,"label-width":e.labelWidth,"label-position":e.labelPosition},nativeOn:{submit:function(e){e.preventDefault()}}},[r("Row",{staticClass:"mt10",attrs:{type:"flex"}},[r("Col",{staticClass:"ivu-text-left mr"},[r("FormItem",{attrs:{label:"订单状态:"}},[r("Select",{staticStyle:{width:"250px"},on:{"on-change":function(t){return e.selectChange2(e.pagination.refund_type)}},model:{value:e.pagination.refund_type,callback:function(t){e.$set(e.pagination,"refund_type",t)},expression:"pagination.refund_type"}},e._l(e.num,(function(t){return r("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.name))])})),1)],1)],1),r("Col",{staticClass:"ml15 mr"},[r("FormItem",{attrs:{label:"退款时间:"}},[r("DatePicker",{staticStyle:{width:"250px"},attrs:{editable:!1,value:e.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-start",placeholder:"自定义时间",options:e.options},on:{"on-change":e.onchangeTime}})],1)],1),r("Col",{staticClass:"ivu-text-left ml15"},[r("FormItem",{attrs:{label:"订单搜索:","label-for":"title"}},[r("Input",{staticStyle:{width:"250px"},attrs:{"enter-button":"",placeholder:"请输入订单号"},model:{value:e.pagination.order_id,callback:function(t){e.$set(e.pagination,"order_id",t)},expression:"pagination.order_id"}}),r("Button",{staticClass:"ml10 search",attrs:{type:"primary"},on:{click:e.orderSearch}},[e._v("搜索")])],1)],1)],1)],1)],1),r("Card",{staticClass:"ivu-mt mt15",attrs:{bordered:!1,"dis-hover":""}},[r("Table",{ref:"table",staticClass:"mt10",attrs:{columns:e.thead,data:e.tbody,loading:e.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:e._u([{key:"order_id",fn:function(t){var a=t.row;t.index;return[r("span",{staticStyle:{display:"block"},domProps:{textContent:e._s(a.order_id)}}),r("span",{directives:[{name:"show",rawName:"v-show",value:1===a.is_del&&null==a.delete_time,expression:"row.is_del === 1 && row.delete_time == null"}],staticStyle:{color:"#ed4014",display:"block"}},[e._v("用户已删除")])]}},{key:"user",fn:function(t){var a=t.row;t.index;return[r("div",[e._v("用户名:"+e._s(a.nickname))]),r("div",[e._v("用户ID:"+e._s(a.uid))])]}},{key:"apply_type",fn:function(t){var a=t.row;return[1==a.apply_type?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("仅退款")]):e._e(),2==a.apply_type?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("退货退款(快递退回)")]):e._e(),3==a.apply_type?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("退货退款(到店退货)")]):e._e(),4==a.apply_type?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("商家主动退款")]):e._e()]}},{key:"refund_type",fn:function(t){var a=t.row;return[[0,1,2].includes(a.refund_type)?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("待处理")]):e._e(),3==a.refund_type?r("Tag",{attrs:{color:"red",size:"medium"}},[e._v("拒绝退款")]):e._e(),4==a.refund_type?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("商品待退货")]):e._e(),5==a.refund_type?r("Tag",{attrs:{color:"blue",size:"medium"}},[e._v("退货待收货")]):e._e(),6==a.refund_type?r("Tag",{attrs:{color:"green",size:"medium"}},[e._v("已退款")]):e._e()]}},{key:"nickname",fn:function(t){var a=t.row;t.index;return[r("div",[e._v("\n "+e._s(a.uid?a.nickname:"游客")),null!=a.delete_time?r("span",{staticStyle:{color:"#ed4014"}},[e._v("\n (已注销)")]):e._e()])]}},{key:"info",fn:function(t){var a=t.row;t.index;return e._l(a._info,(function(t,a){return r("div",{key:a,staticClass:"tabBox"},[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.cart_info.productInfo.attrInfo?t.cart_info.productInfo.attrInfo.image:t.cart_info.productInfo.image,expression:"\n val.cart_info.productInfo.attrInfo\n ? val.cart_info.productInfo.attrInfo.image\n : val.cart_info.productInfo.image\n "}]})]),r("span",{staticClass:"tabBox_tit"},[e._v(e._s(t.cart_info.productInfo.store_name+" | ")+e._s(t.cart_info.productInfo.attrInfo?t.cart_info.productInfo.attrInfo.suk:""))]),r("span",{staticClass:"tabBox_pice"},[e._v(e._s("¥"+t.cart_info.truePrice+" x "+t.cart_info.cart_num))])])}))}},{key:"order_info",fn:function(t){var a=t.row;t.index;return[r("div",[e._v("订单金额:¥"+e._s(a.pay_price))]),r("div",[e._v("付款方式:"+e._s(a.pay_type_name))]),r("div",[e._v("\n 订单状态:"),r("span",{domProps:{innerHTML:e._s(a.status_name.status_name)}})])]}},{key:"statusName",fn:function(t){var a=t.row;t.index;return[r("div",{staticClass:"pt5",domProps:{innerHTML:e._s(a.refund_reason)}}),r("div",{staticClass:"pt5",domProps:{innerHTML:e._s(a.refund_explain)}}),r("div",{staticClass:"pictrue-box"},e._l(a.refund_img||[],(function(t,n){return a.refund_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:n},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:t}})]):e._e()})),0)]}},{key:"statusGoodName",fn:function(t){var a=t.row;t.index;return[r("div",{staticClass:"pt5",domProps:{innerHTML:e._s(a.refund_goods_explain)}}),r("div",{staticClass:"pictrue-box"},e._l(a.refund_goods_img||[],(function(t,n){return a.refund_goods_img?r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:n},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:t}})]):e._e()})),0)]}},{key:"action",fn:function(t){var a=t.row;t.index;return[r("a",{directives:[{name:"show",rawName:"v-show",value:(1==a.apply_type||5==a.refund_type||4==a.refund_type&&3==a.apply_type)&&![3,6].includes(a.refund_type)&&(parseFloat(a.pay_price)>parseFloat(a.refunded_price)||0==a.pay_price),expression:"\n (row.apply_type == 1 || row.refund_type == 5 || (row.refund_type == 4 && row.apply_type == 3)) &&\n ![3, 6].includes(row.refund_type) &&\n (parseFloat(row.pay_price) > parseFloat(row.refunded_price) || row.pay_price == 0)\n "}],attrs:{disabled:e.openErp},on:{click:function(t){return e.changeMenu(a,"5")}}},[e._v("立即退款")]),r("Divider",{directives:[{name:"show",rawName:"v-show",value:(1==a.apply_type||5==a.refund_type||4==a.refund_type&&3==a.apply_type)&&![3,6].includes(a.refund_type)&&(parseFloat(a.pay_price)>parseFloat(a.refunded_price)||0==a.pay_price),expression:"\n (row.apply_type == 1 || row.refund_type == 5 || (row.refund_type == 4 && row.apply_type == 3)) &&\n ![3, 6].includes(row.refund_type) &&\n (parseFloat(row.pay_price) > parseFloat(row.refunded_price) || row.pay_price == 0)\n "}],attrs:{type:"vertical"}}),r("a",{directives:[{name:"show",rawName:"v-show",value:[2,3].includes(a.apply_type)&&[0,1,2].includes(a.refund_type),expression:"\n [2, 3].includes(row.apply_type) && [0, 1, 2].includes(row.refund_type)"}],attrs:{disabled:e.openErp},on:{click:function(t){return e.changeMenu(a,"55")}}},[e._v("同意退货")]),r("Divider",{directives:[{name:"show",rawName:"v-show",value:[2,3].includes(a.apply_type)&&[0,1,2].includes(a.refund_type),expression:"[2, 3].includes(row.apply_type) && [0, 1, 2].includes(row.refund_type)"}],attrs:{type:"vertical"}}),r("a",{on:{click:function(t){return e.changeMenu(a,"2")}}},[e._v("订单详情")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:e.total,current:e.pagination.page,"show-elevator":"","show-total":"","page-size":e.pagination.limit},on:{"on-change":e.pageChange}})],1)],1),r("edit-from",{ref:"edits",attrs:{FromData:e.FromData},on:{submitFail:e.submitFail}}),r("details-from",{ref:"detailss",attrs:{orderDatalist:e.orderDatalist,orderId:e.orderId,rowActive:e.rowActive}}),r("order-remark",{ref:"remarks",attrs:{remarkType:"refund",orderId:e.orderId},on:{submitFail:e.submitFail}}),r("order-record",{ref:"record"})],1)},n=[],i=r("a34a"),o=r.n(i),s=r("2f62"),c=r("f8b7"),d=r("31b4"),l=r("91b4"),u=r("7dc5"),p=r("5465");function m(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(d){return void r(d)}s.done?t(c):Promise.resolve(c).then(a,n)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function o(e){m(i,a,n,o,s,"next",e)}function s(e){m(i,a,n,o,s,"throw",e)}o(void 0)}))}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(r,!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v={components:{editFrom:d["a"],detailsFrom:l["a"],orderRemark:u["a"],orderRecord:p["a"]},data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},thead:[{title:"订单号",align:"center",slot:"order_id",minWidth:150},{title:"用户信息",slot:"nickname",minWidth:130},{title:"商品信息",slot:"info",minWidth:300},{title:"实际支付",key:"pay_price",minWidth:70},{title:"发起退款时间",key:"add_time",minWidth:100},{title:"退款状态",slot:"refund_type",minWidth:100},{title:"退款信息",slot:"statusName",minWidth:100},{title:"退货信息",slot:"statusGoodName",minWidth:100},{title:"售后备注",key:"remark",minWidth:80},{title:"操作",slot:"action",minWidth:150,align:"center"}],tbody:[],num:[],orderDatalist:null,loading:!1,FromData:null,total:0,orderId:0,animal:1,pagination:{page:1,limit:15,order_id:"",time:"",refund_type:0},options:{shortcuts:[{text:"今天",value:function(){var e=new Date,t=new Date;return t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[t,e]}},{text:"昨天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[t,e]}},{text:"最近7天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[t,e]}},{text:"最近30天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[t,e]}},{text:"上月",value:function(){var e=new Date,t=new Date,r=new Date(t.getFullYear(),t.getMonth(),0).getDate();return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,r))),[t,e]}},{text:"本月",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[t,e]}},{text:"本年",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),0,1))),[t,e]}}]},timeVal:[],modal:!1,qrcode:null,name:"",spin:!1,rowActive:{}}},computed:h({},Object(s["e"])("order",["orderChartType"]),{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getOrderList()},methods:{onchangeCode:function(e){this.animal=e,this.qrcodeShow()},onchangeTime:function(e){this.pagination.page=1,this.timeVal=e,this.pagination.time=this.timeVal[0]?this.timeVal.join("-"):"",this.getOrderList()},changeMenu:function(e,t){var r=this;switch(this.orderId=e.id,t){case"1":this.delfromData={title:"修改立即支付",url:"/order/pay_offline/".concat(e.id),method:"post",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$Message.success(e.msg),r.getOrderList()})).catch((function(e){console.log(e),r.$Message.error(e.msg)}));break;case"2":this.rowActive=e,this.getData(e.id);break;case"3":this.$refs.record.modals=!0,this.$refs.record.getList(e.store_order_id);break;case"4":this.$refs.remarks.modals=!0,this.$refs.remarks.formValidate.remark=e.remark;break;case"5":this.getRefundData(e.id,e.refund_type);break;case"55":this.getRefundGoodsData(e.id,e.refund_type);break;case"6":this.getRefundIntegral(e.id);break;case"7":this.getNoRefundData(e.id);break;case"8":this.delfromData={title:"修改确认收货",url:"/order/take/".concat(e.id),method:"put",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$Message.success(e.msg),r.getOrderList()})).catch((function(e){r.$Message.error(e.msg)}));break;case"10":this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"/order/print/".concat(e.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$Message.success(e.msg),r.$emit("changeGetTabs"),r.getOrderList()})).catch((function(e){console.log(e),r.$Message.error(e.msg)}));break;case"11":this.delfromData={title:"立即打印电子面单",info:"您确认打印此电子面单吗?",url:"/order/order_dump/".concat(e.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$Message.success(e.msg),r.getOrderList()})).catch((function(e){r.$Message.error(e.msg)}));break;default:this.delfromData={title:"删除订单",url:"/order/del/".concat(e.id),method:"DELETE",ids:""},this.delOrder(e,this.delfromData)}},getRefundData:function(e,t){var r=this;2==t?(this.delfromData={title:"立即退货",url:"/refund/agree/".concat(e),method:"get"},this.$modalSure(this.delfromData).then((function(e){r.$Message.success(e.msg),r.getOrderList(),r.getData(r.orderId,1)})).catch((function(e){r.$Message.error(e.msg)}))):this.$modalForm(Object(c["C"])(e)).then((function(){r.getOrderList(),r.getData(r.orderId,1),r.$emit("changeGetTabs")}))},getRefundGoodsData:function(e){var t=this;this.delfromData={title:"是否立即退货",url:"/refund/agree/".concat(e),method:"get"},this.$modalSure(this.delfromData).then((function(e){t.$Message.success(e.msg),t.getOrderList(),t.getData(t.orderId,1)})).catch((function(e){t.$Message.error(e.msg)}))},getRefundIntegral:function(e){var t=this;Object(c["Z"])(e).then(function(){var e=f(o.a.mark((function e(r){return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FromData=r.data,t.$refs.edits.modals=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getData:function(e,t){var r=this;Object(c["A"])(e).then(function(){var e=f(o.a.mark((function e(a){return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t||(r.$refs.detailss.modals=!0),r.$refs.detailss.activeName="detail",r.orderDatalist=a.data;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){r.$Message.error(e.msg)}))},delOrder:function(e,t){var r=this;if(1===e.is_del)this.$modalSure(t).then((function(e){r.$Message.success(e.msg),r.getOrderList()})).catch((function(e){r.$Message.error(e.msg)}));else{var a="错误!",n="<p>您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!</p>";this.$Modal.error({title:a,content:n})}},submitFail:function(){this.getOrderList(),this.getData(this.orderId,1)},selectChange2:function(e){this.pagination.page=1,this.pagination.refund_type=e,this.getOrderList(e)},getNoRefundData:function(e){var t=this;this.$modalForm(Object(c["D"])(e)).then((function(){t.getOrderList(),t.getData(t.orderId,1),t.$emit("changeGetTabs")}))},getOrderList:function(){var e=this;this.loading=!0,Object(c["L"])(this.pagination).then((function(t){e.loading=!1;var r=t.data,a=r.count,n=r.list,i=r.num;e.total=a,e.tbody=n,i.forEach((function(e,t){i[t]=Object.assign({},e,{value:t})})),e.num=i,n.forEach((function(t){t.id==e.orderId&&(e.rowActive=t)}))})).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},pageChange:function(e){this.pagination.page=e,this.getOrderList()},nameSearch:function(){this.pagination.page=1,this.getOrderList()},orderSearch:function(){this.pagination.page=1,console.log(111),this.getOrderList()},delivery:function(e){var t=this;Object(c["s"])(e.id).then(function(){var e=f(o.a.mark((function e(r){return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FromData=r.data,t.$refs.edits.modals=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}}},w=v,y=(r("85e5"),r("2877")),D=Object(y["a"])(w,a,n,!1,null,"449d1980",null);t["default"]=D.exports},"85e5":function(e,t,r){"use strict";var a=r("1796"),n=r.n(a);n.a}}]);