fix:指纹改用PSI phoneNumber,不再使用kongfz_shop_name
This commit is contained in:
parent
0bb82e5861
commit
5a4968881a
@ -1297,11 +1297,11 @@ export default {
|
|||||||
|
|
||||||
// 页面显示时处理连拍返回的照片
|
// 页面显示时处理连拍返回的照片
|
||||||
onShow() {
|
onShow() {
|
||||||
// 检查孔夫子账号是否切换,切换账号则清空待入库
|
// 检查PSI登录账号是否切换,切换账号则清空待入库
|
||||||
var savedAccount = uni.getStorageSync('pendingAccount') || ''
|
var savedAccount = uni.getStorageSync('pendingAccount') || ''
|
||||||
var currentAccount = uni.getStorageSync('kongfz_shop_name') || ''
|
var currentAccount = uni.getStorageSync('phoneNumber') || ''
|
||||||
if (savedAccount && savedAccount !== currentAccount) {
|
if (savedAccount && savedAccount !== currentAccount) {
|
||||||
// 切换了孔夫子账号,清空待入库
|
// 切换了PSI账号,清空待入库
|
||||||
this.clearPendingData()
|
this.clearPendingData()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2256,8 +2256,8 @@ export default {
|
|||||||
this.pendingProductList.push(entry)
|
this.pendingProductList.push(entry)
|
||||||
this.pendingCount = this.pendingProductList.length
|
this.pendingCount = this.pendingProductList.length
|
||||||
uni.setStorageSync('pendingProductList', this.pendingProductList)
|
uni.setStorageSync('pendingProductList', this.pendingProductList)
|
||||||
var shopName = uni.getStorageSync('kongfz_shop_name') || ''
|
var psiAccount = uni.getStorageSync('phoneNumber') || ''
|
||||||
uni.setStorageSync('pendingAccount', shopName)
|
uni.setStorageSync('pendingAccount', psiAccount)
|
||||||
// 创建/追加波次
|
// 创建/追加波次
|
||||||
await this.appendWaveItem(warehouseData, productId, this.stock ?? '1', salePrice)
|
await this.appendWaveItem(warehouseData, productId, this.stock ?? '1', salePrice)
|
||||||
if (this.pendingCount >= 200) {
|
if (this.pendingCount >= 200) {
|
||||||
@ -2421,8 +2421,8 @@ export default {
|
|||||||
this.pendingProductList.push(entry)
|
this.pendingProductList.push(entry)
|
||||||
this.pendingCount = this.pendingProductList.length
|
this.pendingCount = this.pendingProductList.length
|
||||||
uni.setStorageSync('pendingProductList', this.pendingProductList)
|
uni.setStorageSync('pendingProductList', this.pendingProductList)
|
||||||
var shopName = uni.getStorageSync('kongfz_shop_name') || ''
|
var psiAccount = uni.getStorageSync('phoneNumber') || ''
|
||||||
uni.setStorageSync('pendingAccount', shopName)
|
uni.setStorageSync('pendingAccount', psiAccount)
|
||||||
// 创建/追加波次
|
// 创建/追加波次
|
||||||
await this.appendWaveItem(this.noIsbnWarehouseData, productId, this.noIsbnStock ?? '1', salePrice)
|
await this.appendWaveItem(this.noIsbnWarehouseData, productId, this.noIsbnStock ?? '1', salePrice)
|
||||||
if (this.pendingCount >= 200) {
|
if (this.pendingCount >= 200) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user