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
28 KiB
1 line
28 KiB
|
2 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/AI/AIHangOrderList"],{"00c1":function(t,e,i){"use strict";(function(t,s){var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(i("7eb4")),o=a(i("af34")),n=a(i("ee10")),u=a(i("b9aa")),l=requirePlugin("WechatSI"),c=l.getRecordRecognitionManager(),d={components:{},data:function(){return{khName:[],isVoice:!1,regList:[],pageNumber:1,status:"loadmore",recordState:!1,voiceText:" ",list:[],linshiPrice:0,value:"",isInventory:!1,returnNum:0,returnPrice:0,temporaryNum:0,customPrice:0,goodsDetail:[],attrNameList:[],temporaryList:[],carList:[],returnList:new Map,specsList:[],evalue:[],attributeList:[],purchasePrice:0,zPrice:0,zNum:0,storageType:0,hangId:"",bigImg:"",productId:"",productNum:null,pageOldTemList:[],oldTemList:[],goodsList:[],newTemList:[],pecsList:[],dataObj:new Map,yanseList:new Map,chimaList:new Map,allChangeNum:0,isPlusAndMinus:!1,shopName:"",pages:1,sales:{}}},filters:{sliceMsg:function(t){var e="";if("string"==typeof t){var i=JSON.parse(t);for(var s in i)e+=i[s]+"/"}return e}},onPullDownRefresh:function(){this.pageNumber=1,this.regList=[],this.getRegList()},onReachBottom:function(){this.pageNumber>=this.pages||(this.status="loading",this.pageNumber++,this.getRegList())},onShareAppMessage:function(){var e=this;return(0,n.default)(r.default.mark((function i(){var s,a,o;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return s=null==e.sales.shopName?t.getStorageSync("shopName"):e.sales.shopName,a=s+" "+e.sales.createTime.split(" ")[0]+"\n销售单",i.next=4,e.senrPath();case 4:return o=i.sent,e.$refs.sharePopup.close(),i.abrupt("return",{title:a,imageUrl:o,path:"/package1/index/orderDetail?popleType=khName&id="+e.sales.id+"&shopId="+t.getStorageSync("shopId")+"&shopName="+e.sales.shopName+"&shopOwnerPhone="+e.shopOwnerPhone+"&mini_program_openid="+e.mini_program_openid+"&unionid="+e.unionid+"&official_account_openid="+e.official_account_openid+"&userId="+e.sales.userId});case 7:case"end":return i.stop()}}),i)})))()},onShow:function(){if(this.khName=JSON.parse(JSON.stringify(this.khName))||"","scanCode"==t.getStorageSync("hangOrderType"))return""!=this.khName&&this.addReg(),void t.removeStorageSync("hangOrderType");"changeGoods"!=t.getStorageSync("hangOrderType")?(""!=this.khName&&t.navigateTo({url:"/package1/AI/AiChat?khName="+JSON.stringify(this.khName)}),this.khName=[],this.pageNumber=1,this.regList=[],this.getRegList()):t.removeStorageSync("hangOrderType")},onLoad:function(){this.shopName=t.getStorageSync("shopName"),this.initRecord()},methods:{goDetail:function(e,i){t.navigateTo({url:"/package1/index/orderDetail?id="+e+"&userId="+i})},senrPath:function(){var e=this;return new Promise(function(){var i=(0,n.default)(r.default.mark((function i(s,a){var o,n;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:o=e,t.showLoading({title:"生成中..."}),n=t.createCanvasContext("myCanvas1",e),"https://jewel-shop.oss-cn-beijing.aliyuncs.com/38568f1580bc423698d2a499197a5b44.png",t.downloadFile({url:"https://jewel-shop.oss-cn-beijing.aliyuncs.com/38568f1580bc423698d2a499197a5b44.png",success:function(e){if(200===e.statusCode){n.drawImage(e.tempFilePath,0,0,1515,1210),n.draw(!0),n.font="bold 80px SimSun",n.fillStyle="#FF5809";var i=450;if(null!=o.sales.productCount&&""!=o.sales.productCount){var a=350;i+=100,n.fillText("销售",a,i),n.draw(!0),n.font="bold 60px SimSun",n.fillStyle="#FF5809",i+=90;var r="总件数:"+o.sales.productCount+" 总金额:"+o.sales.totalAmount;n.fillText(r,a,i),n.draw(!0)}if(null!=o.returnNum&&""!=o.returnNum){i+=110;a=350;n.font="bold 80px SimSun",n.fillStyle="#FF5809",n.fillText("退货",a,i),n.draw(!0),i+=90,n.font="bold 60px SimSun",n.fillStyle="#FF5809";r="总件数:"+o.returnNum+" 总金额:"+o.returnPrice;n.fillText(r,a,i),n.draw(!0)}if(null!=o.sales.realAmount){a=350;i+=120,n.font="bold 80px SimSun",n.fillStyle="black",n.fillText("本单应收:"+o.sales.realAmount,a,i),n.draw(!0)}if(null!=o.sales.alreadyEarn){i+=100;a=350;n.font=
|