From 13ef22cf933cd1d2a4a2ea1d638be61fb7441a29 Mon Sep 17 00:00:00 2001
From: wangfukang <15630117759@163.com>
Date: Tue, 23 Apr 2024 09:38:23 +0800
Subject: [PATCH] 11
---
package1/AI/AIHangOrderList.vue | 164 ++++++++++++++------
package1/AI/AIInventoryList.vue | 38 +++--
package1/AI/AiChat.vue | 16 +-
package1/inventory/batchPrint.vue | 8 +-
package1/inventory/getProductIdToList.vue | 14 +-
package1/other/logistics.vue | 12 +-
package1/other/tutorialDetail.vue | 173 +++++++++++++++++++++
package1/other/tutorialList.vue | 175 ++++++++++++++++++++++
8 files changed, 525 insertions(+), 75 deletions(-)
create mode 100644 package1/other/tutorialDetail.vue
create mode 100644 package1/other/tutorialList.vue
diff --git a/package1/AI/AIHangOrderList.vue b/package1/AI/AIHangOrderList.vue
index 63ae986..edf708c 100644
--- a/package1/AI/AIHangOrderList.vue
+++ b/package1/AI/AIHangOrderList.vue
@@ -86,14 +86,33 @@
- {{items.productName}}({{items.productSn}})单价:{{items.discountAmount || items.wholesalePrice}}
-
+
+
+ {{items.productName}}({{items.productSn}})
+
+
+ 单价:{{items.discountAmount || items.wholesalePrice}}
+
+
+
+
+
+
+ 操作
+ 规格
+ 数量
-
+
- {{itemss.attributeList | sliceMsg}} * {{itemss.productCount}}
+
+ {{itemss.attributeList | sliceMsg}}
+
+
+ {{itemss.productCount}}
+
@@ -103,6 +122,7 @@
+
+
@@ -57,13 +59,26 @@
aiList:[],
carList1:[],
purchaseDetails:[],
- shopName:''
+ shopName:'',
+ status: 'loadmore',
+ pageNum:1,
+ pages:1,
}
},
onPullDownRefresh(){
+ this.pageNum = 1
+ this.aiList = []
this.getList()
+ },
+ onReachBottom() {
+ if (this.pageNum >= this.pages) return;
+ this.status = 'loading';
+ this.pageNum ++;
+ this.getList();
},
onShow() {
+ this.pageNum = 1
+ this.aiList = []
this.carList1 = []
this.getList()
},
@@ -73,16 +88,21 @@
methods: {
getList(){
this.tui.request("/app/purchase/getPurchaseList", "POST", {
- pageNum: 1,
+ pageNum: this.pageNum,
pageSize: 10,
isAiList: 1
}, false, false).then((res) => {
- this.aiList = res.result.records
- setTimeout(function () {
- uni.stopPullDownRefresh();
- }, 500);
+ this.status = 'nomore';
+ if (this.pages == 1) {
+ this.aiList = res.result.records
+ } else {
+ this.aiList = [...this.aiList, ...res.result.records]
+ }
+ this.pages = res.result.pages
}).catch((res) => {})
- uni.stopPullDownRefresh()
+ setTimeout(function () {
+ uni.stopPullDownRefresh();
+ }, 500);
},
backPage(){
uni.navigateBack({
diff --git a/package1/AI/AiChat.vue b/package1/AI/AiChat.vue
index 4c6141c..d4e91fe 100644
--- a/package1/AI/AiChat.vue
+++ b/package1/AI/AiChat.vue
@@ -21,9 +21,13 @@
欢迎使用Ai助手,为了提高语音及文字识别准确率,建议您按照以下规则操作:
- 1.每张图片建议您裁剪到20个规格或以下
- 2.确保最后一款商品规格截取完整
- 3.每张图片输入对应的规格数量
+ 1.语音规则:(颜色在前,尺码在后)
+ 例1:“货号87-12白色M码10件”
+ 例2:“货号87-12,所有颜色所有尺码10件”
+ 2.建议您不同商品用“货号”两字分隔
+ 例:“货号87-12白色M码10件,货号ZK001黑色L码10件”
+ 3.如需手动输入,则要点击“确认”按钮发送对话
+ 4.录入完成后点击开始识别按钮进行AI识别
@@ -132,9 +136,9 @@
convertChineseToArabic(str) {
const chineseNumToArabic = {
'零': 0, '一': 1, '二': 2, '两': 2, '三': 3,
- '四': 4, '五': 5, '六': 6, '七': 7, '八': 8, '九': 9
+ '四': 4, '五': 5, '六': 6, '七': 7, '八': 8, '九': 9,'杠':'-','刚':'-'
};
- const regex = /(零|一|二|两|三|四|五|六|七|八|九)/g;
+ const regex = /(零|一|二|两|三|四|五|六|七|八|九|杠|刚)/g;
return str.replace(regex, match => chineseNumToArabic[match]);
},
inputSaveText(){
@@ -286,7 +290,7 @@
}
.prompt {
background: #fff;
- width: 70%;
+ width: 75%;
height: auto;
border-radius: 10px;
display: block;
diff --git a/package1/inventory/batchPrint.vue b/package1/inventory/batchPrint.vue
index a108374..1f6007e 100644
--- a/package1/inventory/batchPrint.vue
+++ b/package1/inventory/batchPrint.vue
@@ -134,7 +134,8 @@
checked:false,
}],
multipleList:[],
- purchase:''
+ purchase:'',
+ shopId:''
}
},
components: {
@@ -142,7 +143,8 @@
},
onLoad(options) {
wx.openBluetoothAdapter({mode: 'central'})
- this.height = wx.getSystemInfoSync().windowHeight
+ this.height = wx.getSystemInfoSync().windowHeight
+ this.shopId = uni.getStorageSync('shopId')
if (options.khid != undefined) {
uni.redirectTo({
url: "/pages/index/downStearmList?khid=" + options.khid
@@ -343,7 +345,7 @@
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, [item.id,item.shopId]) //二维码
+ strCmd += blesdk.addCPCLQRCode(200, 140, 'H', '1', 6, [this.purchase!=''?item.productId:item.id,this.shopId]) //二维码
strCmd += blesdk.addCPCLLocation(0); //对齐指令 0-左对齐 1-右对齐 2-居中
strCmd += blesdk.addCPCLPrint();
this.bufferData.push(strCmd);
diff --git a/package1/inventory/getProductIdToList.vue b/package1/inventory/getProductIdToList.vue
index 6b99604..424469e 100644
--- a/package1/inventory/getProductIdToList.vue
+++ b/package1/inventory/getProductIdToList.vue
@@ -1,7 +1,7 @@
-
+
单价:{{item.saleDetailDTOList[0].discountAmount}} 数量:{{item.productCount}}
@@ -9,8 +9,8 @@
商品规格
总数量
-
-
+
+
{{data.attributeList | sliceMsg}}
@@ -21,7 +21,7 @@
-
+
采购价:{{item.purchaseDetails[0].purchasePrice?item.purchaseDetails[0].purchasePrice:'暂无'}} 总数量:{{item.purchase.totalAmount?item.purchase.totalAmount:'暂无'}}
@@ -30,8 +30,8 @@
商品规格
总数量
-
-
+
+
{{data.attributeList | sliceMsg}}
@@ -96,7 +96,7 @@
this.tui.request(url, "post", {
productId: this.productId,
pageSize: 10,
- pageNum: this.pages
+ pageNum: this.pageNum
}, false, false).then((res) => {
this.status = 'nomore';
if (res.code == 200) {
diff --git a/package1/other/logistics.vue b/package1/other/logistics.vue
index ab74d2a..8d803c8 100644
--- a/package1/other/logistics.vue
+++ b/package1/other/logistics.vue
@@ -164,7 +164,11 @@
data: {
companyId:this.id,
modeOfService:2,
- status:8
+ status:8,
+ endDate:this.endDate,
+ startDate:this.startDate,
+ pageNum:this.pages,
+ pageSize:10
},
header: {
'content-type': 'application/json',
@@ -297,6 +301,7 @@
sectionChange(index) {
this.current = index
this.bList = []
+ this.pages = 1
if(index == 2){
this.orderStatus = 3
this.getList()
@@ -365,9 +370,12 @@
uni.request({
url: this.tui.interfaceUrl() + '/app/sale/getSaleByCompanyId',
data: {
+ endDate:this.endDate,
+ startDate:this.startDate,
companyId:this.transCompany,
pageNum:this.pages,
- pageSize:10
+ pageSize:10,
+ transportType:2
},
header: {
'content-type': 'application/json',
diff --git a/package1/other/tutorialDetail.vue b/package1/other/tutorialDetail.vue
new file mode 100644
index 0000000..5ef3177
--- /dev/null
+++ b/package1/other/tutorialDetail.vue
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package1/other/tutorialList.vue b/package1/other/tutorialList.vue
new file mode 100644
index 0000000..27910bc
--- /dev/null
+++ b/package1/other/tutorialList.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file