This commit is contained in:
cun-nan 2024-03-18 09:54:31 +08:00
parent 13211d382d
commit 8c86c0a780
3 changed files with 5 additions and 1 deletions

View File

@ -1192,6 +1192,7 @@ export default {
}); });
this.loading = true; this.loading = true;
// this.addDateRange(this.queryParams, this.dateRange) // this.addDateRange(this.queryParams, this.dateRange)
console.log(this.queryParams,111)
listUser(this.queryParams).then(response => { listUser(this.queryParams).then(response => {
this.userList = response.data.records; this.userList = response.data.records;
this.total = response.data.total; this.total = response.data.total;
@ -1207,6 +1208,7 @@ export default {
onlyGetUser(){ onlyGetUser(){
this.loading = true; this.loading = true;
console.log(this.queryParams,222)
// this.addDateRange(this.queryParams, this.dateRange) // this.addDateRange(this.queryParams, this.dateRange)
listUser(this.queryParams).then(response => { listUser(this.queryParams).then(response => {
this.userList = response.data.records; this.userList = response.data.records;

View File

@ -488,8 +488,8 @@
submitForm: function() { submitForm: function() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
this.form.storeId = this.id;
if (!this.form.id) { if (!this.form.id) {
this.form.storeId = this.id;
this.form.posPrem = JSON.stringify(this.form.posPrem); this.form.posPrem = JSON.stringify(this.form.posPrem);
this.form.appletPrem = JSON.stringify(this.form.appletPrem); this.form.appletPrem = JSON.stringify(this.form.appletPrem);
addStaff(this.form).then(response => { addStaff(this.form).then(response => {

View File

@ -218,6 +218,8 @@ public class LJStaffServiceImpl extends ServiceImpl<LJStaffMapper, LJStaff> impl
account.setCreateTime(new Date()); account.setCreateTime(new Date());
account.setUpdateTime(new Date()); account.setUpdateTime(new Date());
account.setStoreId(storeId); account.setStoreId(storeId);
LJStore store = storeService.selectStoreByStoreId(storeId);
account.setDeptId(store.getContractDeptId());
if (StringUtils.isNotEmpty(staff.getRefundPassword())){ if (StringUtils.isNotEmpty(staff.getRefundPassword())){
account.setPassword(staff.getPassword()); account.setPassword(staff.getPassword());