From a1a80fa77f4929c0a65c598d5425a8d0451c3d66 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Fri, 26 Apr 2024 18:04:09 +0800 Subject: [PATCH] 11 --- package1/AI/AIHangOrderList.vue | 18 ++++++++--------- package1/AI/AIInventoryList.vue | 9 ++++----- package1/AI/AIPicture.vue | 6 +++--- package1/AI/AiChat.vue | 10 +++++----- package1/inventory/addGoods.vue | 1 - package1/inventory/batchPrint.vue | 20 +++++++++---------- package1/inventory/gategory.vue | 24 +++++++++++------------ package1/inventory/getProductIdToList.vue | 1 - package1/inventory/inventoryConfirm.vue | 4 +--- package1/other/customDetail.vue | 6 +++--- package1/other/logistics.vue | 12 ++++++------ package1/other/logisticsAddress.vue | 1 - package1/staff/clock.vue | 3 +-- package1/stock/addStock.vue | 6 +++--- package1/stock/addStockList.vue | 1 - package1/stock/stockDetail.vue | 2 -- 16 files changed, 57 insertions(+), 67 deletions(-) diff --git a/package1/AI/AIHangOrderList.vue b/package1/AI/AIHangOrderList.vue index edf708c..a6edd2f 100644 --- a/package1/AI/AIHangOrderList.vue +++ b/package1/AI/AIHangOrderList.vue @@ -539,14 +539,14 @@ value.push(value1) evalue.push(name) } - console.log(jishuqi) + // if (jishuqi == 0) { // this.oldTemList = [] // } // if (this.temporaryList.length == 0) { if (jishuqi == this.goodsList.length) { - console.log('value',value) - console.log('temporaryList',this.temporaryList) + + for (var i = 0; i < value.length; i++) { let isTrue = false for (var m = 0; m < this.temporaryList.length; m++) { @@ -620,7 +620,7 @@ for (var i = 0; i < this.temporaryList.length; i++) { for (var m = 0; m < this.pecsList.length; m++) { if (this.temporaryList[i].attributeList == this.pecsList[m].attributeList) { - console.log('走进来',this.pecsList[m].stockCount) + this.temporaryList[i].productNum = this.pecsList[m].stockCount } } @@ -806,7 +806,7 @@ //带参数跳转到开单页 goSaleGoods(item) { let dataList = [] - console.log('11',item); + if(item.saleDetailDTOList){ for (let i = 0; i < item.saleDetailDTOList.length; i++) { @@ -828,7 +828,7 @@ } } - console.log(newSaleDetailDTOList.length) + if(newSaleDetailDTOList.length != 0){ obj.saleDetailQueryDTO = newSaleDetailDTOList obj.num = 0 @@ -1073,9 +1073,9 @@ }, //删除商品下的单条规格 delGoodsPrecs(item, index, index1) { - console.log(item); - console.log(index); - console.log(index1); + + + let that = this; this.hangId = item.id; uni.showModal({ diff --git a/package1/AI/AIInventoryList.vue b/package1/AI/AIInventoryList.vue index 8ec4da8..f8e9ed3 100644 --- a/package1/AI/AIInventoryList.vue +++ b/package1/AI/AIInventoryList.vue @@ -41,10 +41,10 @@ 识别中... - 识别完成 - 识别失败 - 去入库 - + 识别完成 + 识别失败 + 去入库 + 删除 @@ -165,7 +165,6 @@ }, goInventory(){ - console.log('来来',this.carList1) uni.setStorageSync('carList1', this.carList1) uni.navigateTo({ url: '/pages/inventory/AIInventory' diff --git a/package1/AI/AIPicture.vue b/package1/AI/AIPicture.vue index 87b2e17..460885b 100644 --- a/package1/AI/AIPicture.vue +++ b/package1/AI/AIPicture.vue @@ -150,7 +150,7 @@ } } } - console.log(this.newSubmit) + this.tui.request("/purchaseOcrPicture/batchSave", "POST", { orderId: "", purchaseOcrPictureList: this.newSubmit @@ -271,7 +271,7 @@ that.purchaseOcrPictureList.push(data) } - console.log('查看图片', that.purchaseOcrPictureList) + }, fail: (err) => { uni.showToast({ @@ -295,7 +295,7 @@ }, delSonImage(index,indexs) { let that = this; - console.log(that.purchaseOcrPictureList) + uni.showModal({ title: "提示", content: "确定删除该子图吗?", diff --git a/package1/AI/AiChat.vue b/package1/AI/AiChat.vue index 7c51422..032aa90 100644 --- a/package1/AI/AiChat.vue +++ b/package1/AI/AiChat.vue @@ -108,7 +108,7 @@ this.height = wx.getSystemInfoSync().windowHeight this.khName = JSON.parse(option.khName) - console.log(this.khName) + this.initRecord(); }, methods: { @@ -173,7 +173,7 @@ manager.stop() // 识别结束事件 manager.onStop = (res) => { - console.log(res) + if (res.result == '') { uni.showToast({ title: "请重新说一遍", @@ -181,13 +181,13 @@ }) return } - console.log('语音',res) + let data = { text:this.spliceMsg(res.result) } that.msgList.push(data) that.$forceUpdate() - console.log('语音',that.msgList) + } // 识别错误事件 @@ -230,7 +230,7 @@ this.msgList[i].text text += this.msgList[i].text + ' ' } - console.log(text) + this.tui.request("/app/sale/buyAiSync", "POST", { aiMsg:text, saleId:saleId, diff --git a/package1/inventory/addGoods.vue b/package1/inventory/addGoods.vue index 983083d..fe319e9 100644 --- a/package1/inventory/addGoods.vue +++ b/package1/inventory/addGoods.vue @@ -267,7 +267,6 @@ uni.scanCode({ scanType: ['barCode'], success: (res) => { - console.log(res) that.tui.request('/app/product/getByBarcode', "post", { barcode:res.result }, false, true).then((res1) => { diff --git a/package1/inventory/batchPrint.vue b/package1/inventory/batchPrint.vue index 1f6007e..fd2c33d 100644 --- a/package1/inventory/batchPrint.vue +++ b/package1/inventory/batchPrint.vue @@ -154,10 +154,10 @@ this.purchase = JSON.parse(options.purchase) this.goodsList = JSON.parse(options.purchaseDetails) - console.log("新增入库打印"); - console.log(this.goodsList); + + }else{ - console.log("普通批量打印"); + this.type = uni.getStorageSync('type') this.getGategoryList() } @@ -258,7 +258,7 @@ } } } - console.log(this.carList) + }, //选中商品 checkboxChange(item) { @@ -279,7 +279,7 @@ } } } - console.log(this.carList) + }, //点击批量打印按钮 clickPrint() { @@ -319,7 +319,7 @@ } } - console.log(this.multipleList); + }, //点击打印按钮 goPrint(){ @@ -330,19 +330,19 @@ let strCmd = blesdk.CreatCPCLPage(440, 320, 1, 0); strCmd += blesdk.addCPCLText('0', '30', '24', '0', 0, '商品名:'+item.productName) if(this.multipleList.indexOf('货号') != -1){ - console.log(this.multipleList.indexOf('货号')) + strCmd += blesdk.addCPCLText('0', '80', '24', '0', 0, '货 号:'+item.productSn) } if(this.multipleList.indexOf('供应商') != -1){ - console.log(this.multipleList.indexOf('供应商')) + strCmd += blesdk.addCPCLText('0', '130', '24', '0', 0, '供应商:'+(this.purchase !=''?this.purchase.supplierName:item.supplierName)) } if(this.multipleList.indexOf('批发价') != -1){ - console.log(this.multipleList.indexOf('批发价')) + strCmd += blesdk.addCPCLText('0', '180', '24', '0', 0, '批发价:'+item.wholesalePrice) } if(this.multipleList.indexOf('零售价') != -1){ - console.log(this.multipleList.indexOf('零售价')) + strCmd += blesdk.addCPCLText('0', '230', '24', '0', 0, '零售价:'+(item.lsprice || item.price)) } strCmd += blesdk.addCPCLQRCode(200, 140, 'H', '1', 6, [this.purchase!=''?item.productId:item.id,this.shopId]) //二维码 diff --git a/package1/inventory/gategory.vue b/package1/inventory/gategory.vue index 1eac875..c65a3df 100644 --- a/package1/inventory/gategory.vue +++ b/package1/inventory/gategory.vue @@ -348,7 +348,7 @@ this.$refs.addDialog.open() }, addSpec(e){ - console.log(e) + let data = { value:e, checked:false @@ -519,12 +519,12 @@ }, //选择多个规格保存 addMultipleType(item,item1,index){ - console.log(item); - console.log(item1); + + item.list[index].checked = !item.list[index].checked var list = [] if(this.multipleList == ''){ - console.log("首次"); + list.push(item.list[index]) var data = { attributeName:item.name, @@ -535,25 +535,25 @@ for(var i=0;i {}) }) @@ -320,7 +320,7 @@ this.tui.toast(res.message) } }) - console.log('刷新',that.list) + }, //点击图片放大 showImage() { diff --git a/package1/other/logistics.vue b/package1/other/logistics.vue index e15b9d6..9e2eb5c 100644 --- a/package1/other/logistics.vue +++ b/package1/other/logistics.vue @@ -304,7 +304,7 @@ }) }, copyText(text,type){ - console.log('这里',text) + if(type == 'orderAddress'){ let data = "" if(text.indexOf("-") == -1){ @@ -315,14 +315,14 @@ uni.setClipboardData({ data: data, success: function () { - console.log('复制成功'); + } }); }else{ uni.setClipboardData({ data: text, success: function () { - console.log('复制成功'); + } }); } @@ -330,14 +330,14 @@ }, //复制地址 copyAddress(item,type){ - console.log(item); + this.copyType = type this.copyItem = item this.$refs.copyPopup.open() }, //复制地址 upDoorCopyAddress(item,type){ - console.log(item); + this.copeType = type this.copeItem = item this.$refs.copyPopup.open() @@ -447,7 +447,7 @@ } this.totalPages = res.data.result.totalPages } - console.log('bList',this.bList) + }, fail: (res) => { this.tui.toast("网络不给力,请稍后再试~") diff --git a/package1/other/logisticsAddress.vue b/package1/other/logisticsAddress.vue index 9c9184e..0e5ce8f 100644 --- a/package1/other/logisticsAddress.vue +++ b/package1/other/logisticsAddress.vue @@ -112,7 +112,6 @@ }, methods: { priceDetail(item){ - console.log(item) this.chargingStandard = item.chargingStandard this.$refs.payDialog.open() }, diff --git a/package1/staff/clock.vue b/package1/staff/clock.vue index 65ad392..da66499 100644 --- a/package1/staff/clock.vue +++ b/package1/staff/clock.vue @@ -79,8 +79,7 @@ isHighAccuracy:true, accuracy:'best', success: function (res) { - console.log('当前位置的经度:' + res.longitude); - console.log('当前位置的纬度:' + res.latitude); + } }); // if (!this.isClock) { diff --git a/package1/stock/addStock.vue b/package1/stock/addStock.vue index df54d61..b97e0b5 100644 --- a/package1/stock/addStock.vue +++ b/package1/stock/addStock.vue @@ -229,7 +229,7 @@ } } } - console.log(this.carList) + }, onLoad() { this.height = wx.getSystemInfoSync().windowHeight @@ -260,7 +260,7 @@ backPrevPage() { var data = [] this.carList.forEach(item => { - console.log(item) + data.push(item) item.stockLogList1 = [] item.stockLogList.forEach(item1 => { @@ -403,7 +403,7 @@ //删除整条商品 delShop(item) { var that = this; - console.log(item) + let dataList = [] var itemData; itemData = { diff --git a/package1/stock/addStockList.vue b/package1/stock/addStockList.vue index 3acce8c..b7c57b3 100644 --- a/package1/stock/addStockList.vue +++ b/package1/stock/addStockList.vue @@ -230,7 +230,6 @@ //删除整条商品 delShop(item) { var that = this; - console.log(item) let dataList = [] var itemData; itemData = { diff --git a/package1/stock/stockDetail.vue b/package1/stock/stockDetail.vue index eb21356..16f2d9e 100644 --- a/package1/stock/stockDetail.vue +++ b/package1/stock/stockDetail.vue @@ -105,9 +105,7 @@ data.push(item) } } - console.log('第一个',data) this.dataList.checkStockAttributeVos = data - console.log('二个',this.dataList) let dataList = [] var itemData; itemData = {