9.22
This commit is contained in:
parent
fab329dec1
commit
d108e3b5de
@ -291,7 +291,7 @@
|
|||||||
|
|
||||||
this.getUserAuthority();
|
this.getUserAuthority();
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/refuel/refuel?staffId='+staffId
|
url: '/pages/refuel/refuel?storeId=' + storeId + '?staffId=' + staffId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
error: (res) => {
|
error: (res) => {
|
||||||
|
@ -519,20 +519,27 @@
|
|||||||
this.staffId = uni.getStorageSync("inviteStaffId")
|
this.staffId = uni.getStorageSync("inviteStaffId")
|
||||||
if (uni.getStorageSync("storeId")) {
|
if (uni.getStorageSync("storeId")) {
|
||||||
this.getStore(uni.getStorageSync("storeId"));
|
this.getStore(uni.getStorageSync("storeId"));
|
||||||
// this.getStaffList(uni.getStorageSync("storeId"));
|
this.getStaffList(uni.getStorageSync("storeId"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (uni.getStorageSync("storeId")) {
|
if (uni.getStorageSync("storeId")) {
|
||||||
this.getStore(uni.getStorageSync("storeId"));
|
this.getStore(uni.getStorageSync("storeId"));
|
||||||
// this.getStaffList(uni.getStorageSync("storeId"));
|
this.getStaffList(uni.getStorageSync("storeId"));
|
||||||
} else {
|
} else {
|
||||||
this.getStoreIdBySn(uni.getStorageSync("sn"));
|
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() {
|
onShow() {
|
||||||
@ -693,7 +700,7 @@
|
|||||||
isExistStoreId() {
|
isExistStoreId() {
|
||||||
if (uni.getStorageSync("storeId") != "") {
|
if (uni.getStorageSync("storeId") != "") {
|
||||||
this.getStore(uni.getStorageSync("storeId"));
|
this.getStore(uni.getStorageSync("storeId"));
|
||||||
// this.getStaffList(uni.getStorageSync("storeId"));
|
this.getStaffList(uni.getStorageSync("storeId"));
|
||||||
} else {
|
} else {
|
||||||
this.getAddress();
|
this.getAddress();
|
||||||
}
|
}
|
||||||
@ -715,7 +722,7 @@
|
|||||||
},
|
},
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
_this.getOilNumber(id);
|
_this.getOilNumber(id);
|
||||||
// _this.getStaffList(id)
|
_this.getStaffList(id)
|
||||||
_this.store = res.data
|
_this.store = res.data
|
||||||
_this.storeId = res.data.id;
|
_this.storeId = res.data.id;
|
||||||
uni.setStorageSync("storeId", _this.store.id)
|
uni.setStorageSync("storeId", _this.store.id)
|
||||||
@ -755,7 +762,7 @@
|
|||||||
_this.store = response.data.store;
|
_this.store = response.data.store;
|
||||||
_this.storeId = response.data.store.id;
|
_this.storeId = response.data.store.id;
|
||||||
_this.getOilNumber(_this.storeId);
|
_this.getOilNumber(_this.storeId);
|
||||||
// _this.getStaffList(_this.storeId)
|
_this.getStaffList(_this.storeId)
|
||||||
if (response.data.store.welfare) {
|
if (response.data.store.welfare) {
|
||||||
if (response.data.store.welfare.includes(",")) {
|
if (response.data.store.welfare.includes(",")) {
|
||||||
_this.welfare = response.data.store.welfare.split(",");
|
_this.welfare = response.data.store.welfare.split(",");
|
||||||
|
Loading…
Reference in New Issue
Block a user