Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -380,6 +380,28 @@ watch(
|
|||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// 编辑模式下,applicationListAll 加载完成后重新回显已选项目
|
||||||
|
watch(
|
||||||
|
() => applicationListAll.value,
|
||||||
|
() => {
|
||||||
|
if (!props.editData?.requestFormId) return;
|
||||||
|
if (!props.editData.requestFormDetailList?.length) return;
|
||||||
|
if (!applicationListAll.value.length) return;
|
||||||
|
|
||||||
|
const selectedIds = [];
|
||||||
|
props.editData.requestFormDetailList.forEach((detail) => {
|
||||||
|
const matched = applicationListAll.value.find(
|
||||||
|
(item) => item.adviceName === detail.adviceName
|
||||||
|
);
|
||||||
|
if (matched) {
|
||||||
|
selectedIds.push(matched.adviceDefinitionId);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
transferValue.value = selectedIds;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
if (transferValue.value.length == 0) {
|
if (transferValue.value.length == 0) {
|
||||||
return proxy.$message.error('请选择申请单');
|
return proxy.$message.error('请选择申请单');
|
||||||
|
|||||||
Reference in New Issue
Block a user