|
@@ -378,6 +378,7 @@
|
|
|
import { getEmployeeOrgan } from '@/api/buildTeam'
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
import { vaildStudentUrl } from '@/utils/validate'
|
|
|
+import cleanDeep from 'clean-deep'
|
|
|
import { addZero, getZero, updateZero, removeZero, getBasic, updateOpenFlag, queryOrganMusicInfos, queryUserMusicInfos } from '@/api/zeroManager'
|
|
|
import axios from 'axios'
|
|
|
import qs from 'qs'
|
|
@@ -589,7 +590,7 @@ export default {
|
|
|
maskForm.organId = row.organId
|
|
|
maskForm.money = row.amount
|
|
|
maskForm.subMoney = row.discountAmount
|
|
|
- maskForm.maxNum = row.maxNum
|
|
|
+ maskForm.maxNum = row.maxNum ? row.maxNum : null
|
|
|
maskForm.musicGroupId = row.musicGroupId ? row.musicGroupId : null
|
|
|
// this.$refs['maskForm'].clearValidate()
|
|
|
if (row.userId) {
|
|
@@ -618,14 +619,12 @@ export default {
|
|
|
},
|
|
|
updateZero() {
|
|
|
let maskForm = this.maskForm
|
|
|
- //
|
|
|
- console.log(maskForm)
|
|
|
if(maskForm.type != 12) {
|
|
|
this.zeroVisible = false
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- updateZero({ id: maskForm.id, maxNum: maskForm.maxNum }).then(res => {
|
|
|
+ updateZero(cleanDeep({ id: maskForm.id, maxNum: maskForm.maxNum })).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success('更新成功')
|
|
|
this.zeroVisible = false;
|