|
|
@ -11,7 +11,7 @@
|
|
|
|
<a-form :form="form" class="CsForm">
|
|
|
|
<a-form :form="form" class="CsForm">
|
|
|
|
<a-row type="flex" justify="end">
|
|
|
|
<a-row type="flex" justify="end">
|
|
|
|
<a-col :span="1">
|
|
|
|
<a-col :span="1">
|
|
|
|
<a-button type="primary" @click="handleSubmit">
|
|
|
|
<a-button type="primary" @click="handleSubmit" :loading="SaveLoading">
|
|
|
|
保存
|
|
|
|
保存
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -312,7 +312,8 @@ export default {
|
|
|
|
TypeData: [],
|
|
|
|
TypeData: [],
|
|
|
|
propStringData: [],
|
|
|
|
propStringData: [],
|
|
|
|
saleUserList: [],
|
|
|
|
saleUserList: [],
|
|
|
|
bookingServiceItem: []
|
|
|
|
bookingServiceItem: [],
|
|
|
|
|
|
|
|
SaveLoading: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
@ -462,6 +463,7 @@ export default {
|
|
|
|
this.confirmLoading = true
|
|
|
|
this.confirmLoading = true
|
|
|
|
validateFields((errors, values) => {
|
|
|
|
validateFields((errors, values) => {
|
|
|
|
if (!errors) {
|
|
|
|
if (!errors) {
|
|
|
|
|
|
|
|
this.SaveLoading = true
|
|
|
|
for (const key in values) {
|
|
|
|
for (const key in values) {
|
|
|
|
if (typeof values[key] === 'object' && !(values[key] === null)) {
|
|
|
|
if (typeof values[key] === 'object' && !(values[key] === null)) {
|
|
|
|
values[key] = JSON.stringify(values[key])
|
|
|
|
values[key] = JSON.stringify(values[key])
|
|
|
@ -489,6 +491,7 @@ export default {
|
|
|
|
let Arr = ['sale', 'op', 'doc', 'custservice']
|
|
|
|
let Arr = ['sale', 'op', 'doc', 'custservice']
|
|
|
|
GetSysUserPage()
|
|
|
|
GetSysUserPage()
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
|
|
|
|
this.SaveLoading = false
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
let saleUserList = res.data
|
|
|
|
let saleUserList = res.data
|
|
|
|
Arr.forEach(item => {
|
|
|
|
Arr.forEach(item => {
|
|
|
@ -522,6 +525,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(err => {
|
|
|
|
.catch(err => {
|
|
|
|
|
|
|
|
this.SaveLoading = false
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|