修改加密

This commit is contained in:
haozq 2026-02-12 11:56:26 +08:00
parent b22a5822f3
commit e488e51590
1 changed files with 35 additions and 53 deletions

View File

@ -265,9 +265,9 @@ export default {
return
}
//
const pattern = /^\d+(\.\d{1,2})?$/
const pattern = /^\d+(\.\d{1,3})?$/
if (!pattern.test(value)) {
callback(new Error('请输入正确的金额格式,最多位小数点'))
callback(new Error('请输入正确的金额格式,最多位小数点'))
return
}
//
@ -277,8 +277,8 @@ export default {
return
}
// 0-99999999.99
if (numValue < 0 || numValue > 99999999.99) {
callback(new Error('金额范围应在0-99999999.99元之间'))
if (numValue < 0 || numValue > 99999999.999) {
callback(new Error('金额范围应在0-99999999.999元之间'))
return
}
callback()
@ -364,57 +364,40 @@ export default {
}
try {
let dataUpdateId='';
let dataDelFileId='';
debugger
// id
// idID
if (this.formType === 2 && this.editId) {
dataUpdateId = this.editId
// id
if (Array.isArray(this.allFileList) && this.allFileList.length > 0) {
const delFileList = this.allFileList.filter(
(item) => !this.paymentFailForm.fileList.some((file) => file.id === item.id)
)
dataDelFileId = delFileList.length > 0 ? delFileList.map((item) => item.id).join(',') : ''
}
}
// FormData
const formData = new FormData()
// config.js
formData.append(
'userName',
this.paymentFailForm.userName,
)
formData.append('idCard', this.paymentFailForm.idCard)
formData.append('proName', this.paymentFailForm.proName)
formData.append('subName', this.paymentFailForm.subName)
formData.append(
'failMonth',
this.paymentFailForm.failMonth,
)
formData.append('money', this.paymentFailForm.money)
formData.append(
'failReason',
this.paymentFailForm.failReason,
)
formData.append(
'failStatus',
this.paymentFailForm.failStatus,
)
formData.append(
'remark',
this.paymentFailForm.remark || '',
)
// id
if (this.formType === 2 && this.editId) {
formData.append('id', this.editId)
// id
const delFileList = this.allFileList.filter(
(item) => {
return !this.paymentFailForm.fileList.some(
(file) => file.id === item.id,
)
},
)
if (delFileList.length > 0) {
formData.append(
'delFileId',
delFileList
.map((item) => item.id)
.join(','),
)
}
const params = {
userName:this.paymentFailForm.userName,
idCard: this.paymentFailForm.idCard,
proName:this.paymentFailForm.proName,
subName:this.paymentFailForm.subName,
failMonth:this.paymentFailForm.failMonth,
money:this.paymentFailForm.money,
failStatus:this.paymentFailForm.failStatus,
failReason: this.paymentFailForm.failReason,
remark: this.paymentFailForm.remark || '',
id:dataUpdateId,
delFileId:dataDelFileId
}
console.log(params)
//
formData.append('params', JSON.stringify(params))
//
if (
this.paymentFailForm.fileList &&
@ -426,7 +409,6 @@ export default {
}
})
}
// API
const API =
this.formType === 1