员工折扣百分比管理
This commit is contained in:
@@ -180,7 +180,7 @@
|
||||
birthDay: '',
|
||||
balance: '',
|
||||
integral: '',
|
||||
isVip: false,
|
||||
isVip: true,
|
||||
level: 1,
|
||||
sex: 1
|
||||
})
|
||||
@@ -202,16 +202,19 @@
|
||||
|
||||
|
||||
onLoad(params => {
|
||||
console.log(params,'调试111')
|
||||
if (params.id) {
|
||||
let items = params
|
||||
uni.setNavigationBarTitle({
|
||||
title: '编辑用户'
|
||||
})
|
||||
items.phone = items.telephone
|
||||
items.sex = items.sex == '男' ? 1 : 2
|
||||
userForm = items
|
||||
// userForm = items
|
||||
userForm.nickName=items.nickName
|
||||
userForm.birthDay=items.birthDay
|
||||
userForm.id=items.id
|
||||
userForm.phone = items.telephone
|
||||
userForm.sex = items.sex == '男' ? 1 : 2
|
||||
option.type = 'edit'
|
||||
console.log(userForm,'调试111')
|
||||
} else {
|
||||
uni.setNavigationBarTitle({
|
||||
title: '新增用户'
|
||||
@@ -236,6 +239,7 @@
|
||||
status:1,
|
||||
levelConsume:0,
|
||||
shopId: uni.getStorageSync("shopId"),
|
||||
sex:userForm.sex==1?1:2
|
||||
}
|
||||
if (res) {
|
||||
if (option.type == 'add') {
|
||||
@@ -252,6 +256,7 @@
|
||||
<style scoped>
|
||||
page {
|
||||
background: #F9F9F9;
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user