glhcp/server/public/_nuxt/e5eaf85.js

1 line
6.0 KiB
JavaScript
Raw Normal View History

2023-08-23 02:48:59 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{522:function(e,t,r){var content=r(540);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(18).default)("bc9d2028",content,!0,{sourceMap:!1})},539:function(e,t,r){"use strict";r(522)},540:function(e,t,r){var l=r(17)((function(i){return i[1]}));l.push([e.i,".deliver-search-container .deliver-box .deliver-recode-box[data-v-79dec466]{background-color:#f2f2f2;padding:10px 20px}.deliver-search-container .deliver-box .deliver-recode-box .recode-img[data-v-79dec466]{height:72px;position:relative;width:72px}.deliver-search-container .deliver-box .deliver-recode-box .recode-img .float-count[data-v-79dec466]{background-color:rgba(0,0,0,.5);bottom:0;color:#fff;font-size:12px;height:20px;position:absolute;width:100%}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container[data-v-79dec466]{flex:1}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .recode-label[data-v-79dec466]{width:70px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-79dec466]{border:1px solid #ff2c3c;border-radius:60px;cursor:pointer;font-size:12px;height:20px;margin-left:8px;min-width:42px}.deliver-search-container .deliver-box .deliver-recode-box .recode-info-container .copy-btn[data-v-79dec466]:hover{background-color:#fff}.deliver-search-container .deliver-box .deliver-flow-box[data-v-79dec466]{padding-left:15px}.deliver-search-container .deliver-box .time-line-title[data-v-79dec466]{font-size:16px;font-weight:500px;margin-bottom:10px}",""]),l.locals={},e.exports=l},549:function(e,t,r){"use strict";r.r(t);var l=r(8),d=(r(56),r(300),r(12),{props:{value:{type:Boolean,default:!1},aid:{type:Number|String}},data:function(){return{showDialog:!1,deliverBuy:{},delivery:{},deliverFinish:{},deliverOrder:{},deliverShipment:{},deliverTake:{},timeLineArray:[]}},watch:{value:function(e){console.log(e,"val"),this.showDialog=e},showDialog:function(e){e&&this.aid&&(this.timeLineArray=[],this.getDeliverTraces()),this.$emit("input",e)}},methods:{getDeliverTraces:function(){var e=this;return Object(l.a)(regeneratorRuntime.mark((function t(){var data,r,l,d,o,n,v,c,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return data={id:e.aid},t.next=3,e.$get("order/orderTraces",{params:data});case 3:1==(r=t.sent).code&&(l=r.data,d=l.buy,o=l.delivery,n=l.finish,v=l.order,c=l.shipment,m=l.take,e.deliverBuy=d,e.delivery=o,e.deliverFinish=n,e.deliverOrder=v,e.deliverShipment=c,e.deliverTake=m,e.timeLineArray.push(e.deliverFinish),e.timeLineArray.push(e.delivery),e.timeLineArray.push(e.deliverShipment),e.timeLineArray.push(e.deliverBuy),console.log(e.timeLineArray));case 5:case"end":return t.stop()}}),t)})))()},onCopy:function(){var e=document.createElement("input");e.value=this.deliverOrder.invoice_no,document.body.appendChild(e),e.select(),document.execCommand("Copy"),this.$message.success("复制成功"),e.remove()}}}),o=(r(539),r(9)),component=Object(o.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"deliver-search-container"},[t("el-dialog",{attrs:{visible:e.showDialog,top:"30vh",width:"900px",title:"物流查询"},on:{"update:visible":function(t){e.showDialog=t}}},[t("div",{staticClass:"deliver-box"},[t("div",{staticClass:"deliver-recode-box flex"},[t("div",{staticClass:"recode-img"},[t("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{fit:"cover",src:e.deliverOrder.image}}),e._v(" "),t("div",{staticClass:"float-count flex row-center"},[e._v("共"+e._s(e.deliverOrder.count)+"件商品")])],1),e._v(" "),t("div",{staticClass:"recode-info-container m-l-10"},[t("div",{staticClass:"flex"},[t("div",{staticClass:"recode-label"},[e._v("物流状态:")]),e._v(" "),t("div",{staticClass:"primary lg",staticStyle:{"font-weight":"500"}},[e._v(e._s(e.deliverOrder.tips))])]),e._v(" "),t("div",{staticClass:"flex",staticStyle:{margin:"6px 0"}},[t("div",{staticClass:"recode-label"},[e.