uu
This commit is contained in:
parent
70d4609cbc
commit
732b1f9c64
@ -15,7 +15,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<view class="mt-20 clr-sub">
|
<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>
|
||||||
|
|
||||||
<view class="mt-30">
|
<view class="mt-30">
|
||||||
@ -98,7 +99,8 @@
|
|||||||
},
|
},
|
||||||
resData: {
|
resData: {
|
||||||
list: []
|
list: []
|
||||||
}
|
},
|
||||||
|
curScanItem: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
@ -129,7 +131,8 @@
|
|||||||
let paiRes = await apiService.scanRecord({...paiParam, _loading: true})
|
let paiRes = await apiService.scanRecord({...paiParam, _loading: true})
|
||||||
let { bl, resItem } = ansScanResponse({ res: paiRes, title: "到派件" })
|
let { bl, resItem } = ansScanResponse({ res: paiRes, title: "到派件" })
|
||||||
if(bl) {
|
if(bl) {
|
||||||
this.resData.list.push({ ...resItem })
|
this.curScanItem = resItem
|
||||||
|
this.resData.list.unshift({ ...resItem })
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -85,7 +85,8 @@
|
|||||||
},
|
},
|
||||||
resData: {
|
resData: {
|
||||||
list: []
|
list: []
|
||||||
}
|
},
|
||||||
|
curScanItem: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
@ -112,7 +113,8 @@
|
|||||||
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
let { bl, resItem } = ansScanResponse({ res, title: "到件" })
|
let { bl, resItem } = ansScanResponse({ res, title: "到件" })
|
||||||
if(bl) {
|
if(bl) {
|
||||||
this.resData.list.push({ ...resItem })
|
this.curScanItem = resItem
|
||||||
|
this.resData.list.unshift({ ...resItem })
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -15,7 +15,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<view class="mt-20 clr-sub">
|
<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>
|
||||||
|
|
||||||
<view class="mt-30">
|
<view class="mt-30">
|
||||||
@ -98,7 +99,8 @@
|
|||||||
},
|
},
|
||||||
resData: {
|
resData: {
|
||||||
list: []
|
list: []
|
||||||
}
|
},
|
||||||
|
curScanItem: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
@ -125,7 +127,8 @@
|
|||||||
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
let { bl, resItem } = ansScanResponse({ res, title: "派件" })
|
let { bl, resItem } = ansScanResponse({ res, title: "派件" })
|
||||||
if(bl) {
|
if(bl) {
|
||||||
this.resData.list.push({ ...resItem })
|
this.curScanItem = resItem
|
||||||
|
this.resData.list.unshift({ ...resItem })
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -97,7 +97,8 @@
|
|||||||
},
|
},
|
||||||
siteRes: {
|
siteRes: {
|
||||||
list: []
|
list: []
|
||||||
}
|
},
|
||||||
|
curScanItem: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
@ -123,7 +124,8 @@
|
|||||||
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
let { bl, resItem } = ansScanResponse({ res, title: "发件" })
|
let { bl, resItem } = ansScanResponse({ res, title: "发件" })
|
||||||
if(bl) {
|
if(bl) {
|
||||||
this.resData.list.push({ ...resItem })
|
this.curScanItem = resItem
|
||||||
|
this.resData.list.unshift({ ...resItem })
|
||||||
this.resetForm()
|
this.resetForm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user