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
|
2 months ago
|
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package2/other/logisticsOrderDetail"],{"04e5":function(t,e,i){"use strict";(function(t,a){var n=i("47a9"),r=i("3b2d");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(i("60b9"));var d=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var i=o(e);if(i&&i.has(t))return i.get(t);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in t)if("default"!==d&&Object.prototype.hasOwnProperty.call(t,d)){var s=n?Object.getOwnPropertyDescriptor(t,d):null;s&&(s.get||s.set)?Object.defineProperty(a,d,s):a[d]=t[d]}a.default=t,i&&i.set(t,a);return a}(i("769c")),s=n(i("2df0"));i("072a");function o(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(o=function(t){return t?i:e})(t)}var C={data:function(){return{bigImg:[],bufferData:[],deviceType:"ios",itemData:{},changeList:[],bufferDataSmall:[],bufferDataBig:[],shopRemark:[],yNum:0}},components:{kkPrinter:function(){Promise.all([i.e("common/vendor"),i.e("components/kk-printer/index")]).then(function(){return resolve(i("4af3"))}.bind(null,i)).catch(i.oe)}},filters:{sliceMsg:function(t){var e="";if("string"==typeof t){var i=JSON.parse(t);for(var a in i)e+=i[a]+"/"}return e},maxNum:function(t){return t>=10?10:t<0?0:void 0}},onShow:function(){t.openBluetoothAdapter({mode:"central"})},onLoad:function(t){this.itemData=JSON.parse(t.item);var e=this.itemData.orderNumber,i=(this.itemData.shipperName,this.itemData.receiverName),n=this.itemData.arrivalStationName,r=this.itemData.createTime,s=0==this.itemData.count?1:this.itemData.count;if(a.getStorageSync("remark")){var o=a.getStorageSync("remark");this.shopRemark=o.split("\n")}for(var C=1;C<=s;C++){var h=d.CreatCPCLPage(600,480,1,0,0);h+=d.addCPCLBox(10,10,570,450,3),h+=d.addCPCLLocation(2),h+=d.addCPCLSETMAG(2,2),h+=d.addCPCLText("0",20,"24","0",0,this.itemData.companyName),h+=d.addCPCLLine(10,80,570,80,2),h+=d.addCPCLLocation(0),h+=d.addCPCLSETMAG(1,1),h+=d.addCPCLText("20",100,"24","0",0,"开票日期:"+r),h+=d.addCPCLLine(10,140,570,140,2),h+=d.addCPCLLine(382,140,382,316,2),h+=d.addCPCLSETMAG(2,2),h+=d.addCPCLText("20",160,"24","0",0,"到站:"+n),h+=d.addCPCLLine(10,220,382,220,2),h+=d.addCPCLText("20",248,"24","0",0,"收:"+i),h+=d.addCPCLLine(10,316,570,316,2),h+=d.addCPCLSETMAG(1,1),h+=d.addCPCLText("20",336,"24","0",0,"共"+this.itemData.count+"件"),h+=d.addCPCLText("112",336,"24","0",0,"自提"),h+=d.addCPCLLine(170,316,170,450,2),h+=d.addCPCLText("186",336,"24","0",0,"单号:"+e+"-"+C),h+=d.addCPCLLine(10,376,570,376,2),h+=d.addCPCLText("20",396,"24","0",0,"undefined"==this.itemData.receiverMobile||null==this.itemData.receiverMobile?"":this.itemData.receiverMobile),h+=d.addCPCLText("186",396,"24","0",0,"备注:"+this.itemData.remark),h+=d.addCPCLQRCode(400,150,"H","1",4,e),h+=d.addCPCLPrint(),this.bufferDataSmall.push(h)}var c="";if(1==a.getStorageSync("zhiType")){c=d.CreatCPCLPage(600,1800,1,0,0),c+=d.addCPCLSETMAG(2,2),c+=d.addCPCLLocation(2),c+=d.addCPCLText("30","30","24","0","0",this.getPrintByte(this.itemData.companyName)),c+=d.addCPCLSETMAG(1,1),c+=d.addCPCLLocation(0);var u=this.itemData.orderNumber;"1899370468356526080"!=a.getStorageSync("transCompany")&&"1782981706819702784"!=a.getStorageSync("transCompany")||(u=this.itemData.orderNumber.split("-")[1]+this.itemData.orderNumber.split("-")[2].replace("-","")),c+=d.addCPCLSETMAG(2,2),c+=d.addCPCLText("30","150","24","0","0","单号:"+this.getPrintByte(u)),c+=d.addCPCLSETMAG(1,1),c+=d.addCPCLText("30","210","24","0","0",this.timestampToDatetime()),c+=d.addCPCLLine(25,270,1080,270,2),c+=d.addCPCLText("30","290","24","0","0","始发站:"+this.getPrintByte(this.itemData.goStationName)),c+=d.addCPCLText("300","290","24","0","0","到达站:"+this.getPrintByte(this.itemData.arrivalStationName)),c+=d.addCPCLSETMAG(2,2),c+=d.addCPCLText("30","340","24","0","0","收:"+this.getPrintByte(this.itemData.receiverName)),c+=d.addCPCLSETMAG(1,2),c+=d.addCPCLText("300","340
|