|
|
@ -473,7 +473,7 @@ export default { |
|
|
|
} |
|
|
|
// 处理其他输入必填校验 |
|
|
|
const validateOtherInput = (rule, value, callback) => { |
|
|
|
debugger |
|
|
|
|
|
|
|
// 0 等于选中其他 |
|
|
|
if (value == 0 || (Array.isArray(value) && value.includes(0))) { |
|
|
|
if (!this[this.formConf.labelFormModel][`${rule.field}other`]) { |
|
|
@ -486,6 +486,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
if (Array.isArray(config.regList)) { |
|
|
|
debugger |
|
|
|
// 必填其他输入框校验 |
|
|
|
if (['RADIO', 'CHECKBOX'].includes(cur.typeId)) { |
|
|
|
const required = { validator: validateOtherInput, message: cur.placeholder } |
|
|
|