You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
22 KiB
1 line
22 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-orderDetail-index"],{1744:function(e,t,r){"use strict";r("7a82");var o=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r("c7eb")),a=o(r("1da1"));r("d81d"),r("99af"),r("a9e3");var n=o(r("6d52")),d=o(r("5fa0")),s=r("ed0f"),c=r("3c86"),l=r("8342"),v={name:"AdminOrder",components:{PriceChange:n.default},props:{},data:function(){return{order:!1,change:!1,order_id:"",mer_id:"",orderInfo:{_status:{},user:{}},domain:l.HTTP_REQUEST_URL,status:"",title:"",payType:"",types:"",clickNum:1,goname:""}},watch:{"$route.params.oid":function(e){void 0!=e&&(this.order_id=e,this.getIndex())}},onLoad:function(e){var t=this;this.order_id=e.id,this.mer_id=e.mer_id,this.goname=e.goname,this.getIndex(),this.$nextTick((function(){var e=new d.default(".copy-data");e.on("success",(function(e){t.$util.Tips({title:"复制成功"})})),e.on("error",(function(e){t.$util.Tips({title:"复制失败"})}))}))},methods:{more:function(){this.order=!this.order},modify:function(e){this.change=!0,this.status=e},changeclose:function(e){this.change=e},getPhotoClickIdx:function(e,t){uni.previewImage({current:e[t],urls:e})},copyText:function(e){var t=[{name:"收货人姓名",value:this.orderInfo.real_name},{name:"收货人电话",value:this.orderInfo.user_phone},{name:"收货人地址",value:this.orderInfo.user_address}];wx.setClipboardData({data:"".concat(t.map((function(e){return"".concat(e.name,": ").concat(e.value)})).join("\n")),success:function(e){wx.getClipboardData({success:function(e){wx.showToast({title:"复制成功"})}})}})},getIndex:function(){var e=this;(0,s.getAdminOrderDetail)(e.mer_id,e.order_id).then((function(t){e.orderInfo=t.data}),(function(t){e.$util.Tips({title:t},{tab:3,url:1})}))},goCancellation:function(){uni.navigateTo({url:"/pages/admin/cancellate_result/index?mer_id="+this.mer_id+"&code="+this.orderInfo.verify_code})},savePrice:function(e){var t=this;return(0,a.default)((0,i.default)().mark((function r(){var o,a,n,d,l,v,u;return(0,i.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o=t,a={},n=e.price,d=e.refund_price,l=o.orderInfo.refund_status,v=e.remark,a.order_id=o.orderInfo.order_id,0!=o.status){r.next=8;break}a.price=n,u={pay_postage:e.orderInfo.pay_postage,coupon_price:e.orderInfo.coupon_price,total_price:Number(e.orderInfo.total_price)},(0,s.setAdminOrderPrice)(o.mer_id,a.order_id,u).then((function(e){o.change=!1,o.$util.Tips({title:"改价成功",icon:"success"}),o.getIndex()}),(function(e){o.change=!1,o.$util.Tips({title:e})})),r.next=20;break;case 8:if(0!=o.status||1!==l){r.next=16;break}if((0,c.isMoney)(d)){r.next=11;break}return r.abrupt("return",o.$util.Tips({title:"请输入正确的金额"}));case 11:a.price=d,a.type=e.type,(0,s.setOrderRefund)(o.mer_id,a).then((function(e){o.change=!1,o.$util.Tips({title:e.message}),o.getIndex()}),(function(e){o.change=!1,o.$util.Tips({title:e})})),r.next=20;break;case 16:if(v){r.next=18;break}return r.abrupt("return",t.$util.Tips({title:"请输入备注"}));case 18:(0,s.setAdminOrderRemark)(o.mer_id,a.order_id,{remark:v}).then((function(e){o.change=!1,t.$util.Tips({title:e.message,icon:"success"}),o.getIndex()}),(function(e){o.change=!1,o.$util.Tips({title:e})}));case 20:case"end":return r.stop()}}),r)})))()},offlinePay:function(){var e=this;(0,s.setOfflinePay)(this.mer_id,{order_id:this.orderInfo.order_id}).then((function(t){e.$util.Tips({title:t.msg,icon:"success"}),e.getIndex()}),(function(t){e.$util.Tips({title:t})}))},copyNum:function(e){uni.setClipboardData({data:e,success:function(){}})},copyData:function(e){uni.setClipboardData({data:e,success:function(){}})},webCopy:function(e,t){var r=e,o=t;1==this.clickNum&&(this.clickNum+=1,this.webCopy(r,o))}}};t.default=v},"20c0":function(e,t,r){"use strict";r.r(t);var o=r("1744"),i=r.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){r.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"214f":function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return i})),r.d(t,"a"
|