fix: 修改北向输出
This commit is contained in:
parent
161c9f8ec1
commit
c305f45727
|
@ -619,7 +619,7 @@ const _validator = (_rule: any, value: string): Promise<any> =>
|
|||
const _item = productList.value.find((item) => item.id === value);
|
||||
if(!modelRef.id || modelRef.id === ':id') {
|
||||
return resolve('');
|
||||
} else if (!_item) {
|
||||
} else if (!_item && value) {
|
||||
return reject('关联产品已被删除,请重新选择');
|
||||
}
|
||||
return resolve('');
|
||||
|
|
|
@ -781,13 +781,12 @@ const _validator = (_rule: any, value: string): Promise<any> =>
|
|||
const _item = productList.value.find((item) => item.id === value);
|
||||
if(!modelRef.id || modelRef.id === ':id') {
|
||||
return resolve('');
|
||||
} else if (!_item) {
|
||||
} else if (!_item && value) {
|
||||
productChange(value);
|
||||
return reject('关联产品已被删除,请重新选择');
|
||||
} else {
|
||||
if (!_item?.state) {
|
||||
_error.value = `当前选择的${_item.name}产品为禁用状态`;
|
||||
// return reject(`当前选择的${_item.name}产品为禁用状态`)
|
||||
} else {
|
||||
_error.value = '';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue