This commit is contained in:
aihe 2024-05-26 23:38:06 +08:00
parent 70d4609cbc
commit 732b1f9c64
4 changed files with 20 additions and 10 deletions

View File

@ -15,7 +15,8 @@
</view>
</u-row>
<view class="mt-20 clr-sub">
当前件: 重量 <text class="clr-prm pr-40">1.2KG</text> 体积: <text class="clr-prm">0.1m³</text>
当前件: 重量 <text class="clr-prm pr-40">{{curScanItem.billWeight || 0}}KG</text>
数量: <text class="clr-prm">{{curScanItem.parcelQty || 0}}件</text>
</view>
<view class="mt-30">
@ -98,7 +99,8 @@
},
resData: {
list: []
}
},
curScanItem: {},
}
},
onShareAppMessage() {
@ -129,7 +131,8 @@
let paiRes = await apiService.scanRecord({...paiParam, _loading: true})
let { bl, resItem } = ansScanResponse({ res: paiRes, title: "到派件" })
if(bl) {
this.resData.list.push({ ...resItem })
this.curScanItem = resItem
this.resData.list.unshift({ ...resItem })
this.resetForm()
}
}

View File

@ -85,7 +85,8 @@
},
resData: {
list: []
}
},
curScanItem: {},
}
},
onShareAppMessage() {
@ -112,7 +113,8 @@
let res = await apiService.scanRecord({...scnParam, _loading: true})
let { bl, resItem } = ansScanResponse({ res, title: "到件" })
if(bl) {
this.resData.list.push({ ...resItem })
this.curScanItem = resItem
this.resData.list.unshift({ ...resItem })
this.resetForm()
}
},

View File

@ -15,7 +15,8 @@
</view>
</u-row>
<view class="mt-20 clr-sub">
当前件: 重量 <text class="clr-prm pr-40">1.2KG</text> 体积: <text class="clr-prm">0.1m³</text>
当前件: 重量 <text class="clr-prm pr-40">{{curScanItem.billWeight || 0}}KG</text>
数量: <text class="clr-prm">{{curScanItem.parcelQty || 0}}件</text>
</view>
<view class="mt-30">
@ -98,7 +99,8 @@
},
resData: {
list: []
}
},
curScanItem: {},
}
},
onShareAppMessage() {
@ -125,7 +127,8 @@
let res = await apiService.scanRecord({...scnParam, _loading: true})
let { bl, resItem } = ansScanResponse({ res, title: "派件" })
if(bl) {
this.resData.list.push({ ...resItem })
this.curScanItem = resItem
this.resData.list.unshift({ ...resItem })
this.resetForm()
}
},

View File

@ -97,7 +97,8 @@
},
siteRes: {
list: []
}
},
curScanItem: {},
}
},
onShareAppMessage() {
@ -123,7 +124,8 @@
let res = await apiService.scanRecord({...scnParam, _loading: true})
let { bl, resItem } = ansScanResponse({ res, title: "发件" })
if(bl) {
this.resData.list.push({ ...resItem })
this.curScanItem = resItem
this.resData.list.unshift({ ...resItem })
this.resetForm()
}
},