This commit is contained in:
cun-nan 2024-09-22 10:37:38 +08:00
parent fab329dec1
commit d108e3b5de
2 changed files with 18 additions and 11 deletions

View File

@ -281,17 +281,17 @@
storeId = item.split("=")[1]
} else if (item.includes("staffId")) {
staffId = item.split("=")[1]
}
}
})
} else {
storeId = str.split("=")[1]
}
console.log(storeId,staffId,289);
console.log(storeId, staffId, 289);
uni.setStorageSync("storeId", storeId)
this.getUserAuthority();
uni.navigateTo({
url: '/pages/refuel/refuel?staffId='+staffId
url: '/pages/refuel/refuel?storeId=' + storeId + '?staffId=' + staffId
})
},
error: (res) => {
@ -1215,4 +1215,4 @@
justify-content: center;
color: #fff;
}
</style>
</style>

View File

@ -519,20 +519,27 @@
this.staffId = uni.getStorageSync("inviteStaffId")
if (uni.getStorageSync("storeId")) {
this.getStore(uni.getStorageSync("storeId"));
// this.getStaffList(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
}
}
} else {
if (uni.getStorageSync("storeId")) {
this.getStore(uni.getStorageSync("storeId"));
// this.getStaffList(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
} else {
this.getStoreIdBySn(uni.getStorageSync("sn"));
}
}
if (query.staffId) {
uni.setStorageSync("inviteStaffId", query.staffId)
uni.setStorageSync("storeId", query.storeId)
this.staffId = query.staffId
this.storeId = query.storeId
this.getStore(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
}
},
onShow() {
@ -693,7 +700,7 @@
isExistStoreId() {
if (uni.getStorageSync("storeId") != "") {
this.getStore(uni.getStorageSync("storeId"));
// this.getStaffList(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
} else {
this.getAddress();
}
@ -715,7 +722,7 @@
},
}).then((res) => {
_this.getOilNumber(id);
// _this.getStaffList(id)
_this.getStaffList(id)
_this.store = res.data
_this.storeId = res.data.id;
uni.setStorageSync("storeId", _this.store.id)
@ -755,7 +762,7 @@
_this.store = response.data.store;
_this.storeId = response.data.store.id;
_this.getOilNumber(_this.storeId);
// _this.getStaffList(_this.storeId)
_this.getStaffList(_this.storeId)
if (response.data.store.welfare) {
if (response.data.store.welfare.includes(",")) {
_this.welfare = response.data.store.welfare.split(",");