徐总多门店
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-17d89c7b.5fa03211.js

1 line
12 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17d89c7b"],{"2d28":function(t,r,e){"use strict";e.r(r);var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("div",{staticStyle:{"background-color":"#fff"}},t._l(t.newArrayData,(function(r,n){return e("div",{key:n,staticClass:"putSupplier"},[e("div",{staticClass:"header acea-row row-between-wrapper"},[e("div",{staticClass:"left acea-row row-middle"},[e("div",{staticClass:"pictrue",attrs:{id:"qrCodeUrl"+n}}),e("div",{staticClass:"info on"},[e("div",[e("span",{staticClass:"name"},[t._v("收货人:")]),t._v(t._s(r.real_name))]),e("div",[e("span",{staticClass:"name"},[t._v("收货地址:")]),t._v(t._s(r.user_address))]),e("div",[e("span",{staticClass:"name"},[t._v("手机号:")]),e("span",[t._v(t._s(r.user_phone))])])])]),e("div",{staticClass:"info"},[e("div",[e("span",{staticClass:"name"},[t._v("订单编号:")]),t._v(t._s(r.order_id))]),e("div",[e("span",{staticClass:"name"},[t._v("支付时间:")]),t._v(t._s(r.pay_time))]),e("div",[e("span",{staticClass:"name"},[t._v("支付方式:")]),t._v(t._s(r.pay_type_name))])])]),e("div",{staticClass:"mt20"},[e("Table",{attrs:{border:"",columns:t.columns,data:r.goodsList,"disabled-hover":!0},scopedSlots:t._u([{key:"store_name",fn:function(r){var n=r.row;return[e("div",{staticClass:"line1"},[t._v(t._s(n.store_name))])]}},{key:"suk",fn:function(r){var n=r.row;return[e("div",{staticClass:"line1"},[t._v(t._s(n.suk))])]}}],null,!0)})],1),e("div",{staticClass:"bottom acea-row row-between-wrapper"},[e("div",{staticClass:"acea-row row-middle"},[e("div",{staticClass:"item"},[e("span",{staticClass:"name"},[t._v("运费:")]),t._v(t._s(r.freight_price))]),e("div",{staticClass:"item"},[e("span",{staticClass:"name"},[t._v("优惠:")]),t._v(t._s(r.coupon_price))]),e("div",{staticClass:"item"},[e("span",{staticClass:"name"},[t._v("会员折扣:")]),t._v(t._s(r.vip_true_price))]),e("div",{staticClass:"item"},[e("span",{staticClass:"name"},[t._v("积分抵扣:")]),t._v(t._s(r.deduction_price))])]),e("div",{staticClass:"pricePay"},[t._v("实付金额:¥"+t._s(r.pay_price))])]),e("div",{staticClass:"bottom acea-row"},[e("div",{staticClass:"name"},[t._v("用户备注:"),e("span",{staticClass:"con"},[t._v(t._s(r.mark||"-"))])])]),e("div",{staticClass:"h50"},[t.data.site_name||t.data.refund_address||t.data.refund_phone?e("div",{staticClass:"delivery"},[t.data.site_name?e("div",[t._v("店铺信息:"+t._s(t.data.site_name))]):t._e(),t.data.refund_address?e("div",[t._v("地址:"+t._s(t.data.refund_address))]):t._e(),t.data.refund_phone?e("div",[t._v("联系方式:"+t._s(t.data.refund_phone))]):t._e()]):t._e()])])})),0)},a=[],c=e("f8b7"),o=e("d044"),u=e.n(o),i=e("d708"),d={data:function(){return{columns:[{title:"商品编号",key:"index",align:"center",width:60},{title:"商品名称",slot:"store_name",align:"center",width:253},{title:"商品规格",slot:"suk",align:"center",width:219},{title:"单价",key:"truePrice",align:"center",width:100},{title:"数量",key:"cart_num",align:"center",width:60},{title:"金额",key:"subtotal",align:"center",width:100}],data:{},goods:[],BaseURL:i["a"].apiBaseURL.replace(/storeapi/,""),newArrayData:[]}},created:function(){this.getDistribution()},mounted:function(){this.$nextTick((function(){var t=this;setTimeout((function(){t.creatQrCode()}),200)}))},methods:{creatQrCode:function(){var t=this.BaseURL;this.newArrayData.forEach((function(r,e){var n=document.getElementById("qrCodeUrl"+e);new u.a(n,{text:t,width:90,height:90,colorDark:"#000000",colorLight:"#ffffff",correctLevel:u.a.CorrectLevel.H})}))},getDistribution:function(){var t=this;Object(c["t"])(this.$route.query.id).then((function(r){t.data=r.data,t.goods=r.data.list;var e=r.data,n=[];e.list.forEach((function(t,r){for(var e=[],a=t.list,c=Math.ceil(a.length/6),o=0;o<c;o++){var u=a.slice(6*o,6*o+6);u.length&&e.push(u)}var i=6-e[e.length-1].length;if(i)for(var d=0;d<i;d++)e[e.length-1].push({cart_num:"",index:"",store_name:"",subtotal:"",suk:"",truePrice:""});e.forEach((function(r){n.push({real_name:t.real_nam