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
13 KiB
1 line
13 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-OrderDetails-OrderDetails"],{1030:function(t,e,i){var a=i("d982");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("49fde160",a,!0,{sourceMap:!1,shadowMode:!1})},"24f2":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af"),i("d3b7"),i("e25e");var s=a(i("c7eb")),o=a(i("1da1")),r=i("e623"),n=i("afca"),d={data:function(){return{orderInfo:[],warehouse:[],tool:"",orderDetails:{}}},methods:{lookPic:function(t){uni.previewImage({urls:t,success:function(t){}})},afterRead:function(t){var e=this;return(0,o.default)((0,s.default)().mark((function i(){var a,o;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:console.log(t),a=[].concat(t.file),o=0;case 3:if(!(o<a.length)){i.next=12;break}return i.next=6,e.uploadFilePromise(a[o].url);case 6:i.sent,e.$refs.uToast.show({message:"上传成功"}),1==t.name&&e.getOrderDetails();case 9:o++,i.next=3;break;case 12:case"end":return i.stop()}}),i)})))()},uploadFilePromise:function(t){var e=this;return new Promise((function(i,a){uni.uploadFile({url:e.baseUrl+"api/common/upload",filePath:t,name:"file",header:{token:(0,r.getToken)()},formData:{},success:function(t){1==JSON.parse(t.data).code?setTimeout((function(){i(t.data)}),1e3):(uni.$u.toast(JSON.parse(t.data).msg),i(t.data))},fail:function(t){console.log(t,"rrr")}})}))},uploadPay:function(t,e){this.$refs.uploadPay.chooseFile()},confirmPay:function(t){var e=this;if(this.orderDetails.pay_voucher){var i={pay_voucher:this.orderDetails.pay_voucher,id:this.orderDetails.id,status:1};(0,n.orderPay)(i).then((function(t){e.getOrderDetails()}))}else this.$refs.uToast.show({message:"请上传支付凭证"})},goPayHandle:function(){console.log("999"),uni.navigateTo({url:"/pages/warehouse/pay?num="+this.orderDetails.order_amount+"&id="+this.orderDetails.id})},getOrderDetails:function(){var t=this;(0,n.orderDetail)({id:this.id,custom:{auth:!0}}).then((function(e){t.orderDetails=Object.assign({},t.orderDetails,e.data),t.orderInfo=e.data.order_goods,t.warehouse=e.data.warehouse}))},getTime:function(t){var e=t,i=new Date(1e3*parseInt(e)),a=i.getFullYear(),s=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),r=i.getHours()<10?"0"+i.getHours():i.getHours(),n=i.getMinutes()<10?"0"+i.getMinutes():i.getMinutes(),d=i.getSeconds()<10?"0"+i.getSeconds():i.getSeconds(),l=a+"-"+s+"-"+o+" "+r+":"+n+":"+d;return l}},onLoad:function(t){this.tool=t.tool,this.id=t.id,this.getOrderDetails()}};e.default=d},"3d45":function(t,e,i){"use strict";i.r(e);var a=i("a920"),s=i("6f31");for(var o in s)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("bc6b");var r=i("f0c5"),n=Object(r["a"])(s["default"],a["b"],a["c"],!1,null,"01ac08b8",null,!1,a["a"],void 0);e["default"]=n.exports},"6f31":function(t,e,i){"use strict";i.r(e);var a=i("24f2"),s=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=s.a},a920:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uUpload:i("14ce").default,uToast:i("cdc1").default},s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"order-status"},[i("v-uni-view",{staticClass:"status"},[i("v-uni-text",{staticClass:"iconfont icon-zhuyi"}),i("v-uni-text",[t._v(t._s(0==t.orderDetails.status?"待支付":1==t.orderDetails.status?"待确认":2==t.orderDetails.status?"待委托":3==t.orderDetails.status?"已投诉":4==t.orderDetails.status?"待发货":5==t.orderDetails.status?"待收货":-1==t.orderDetails.status?"已取消":""))])],1)],1),i("v-uni-view",{staticClass:"order-goods"},[i("v-uni-view",{staticClass:"goods-list"},t._l(t.orderInfo,(function(e,a){return i("v-uni-view",{key:a,staticClass:"list"},[i("v-uni-view",{stati
|