This commit is contained in:
Teo
2025-08-14 01:58:00 +08:00
parent 606722f19e
commit 3158dc84f7
99 changed files with 620 additions and 554 deletions

View File

@ -179,7 +179,7 @@ const dialog = reactive<DialogOption>({
const initFormData: SettlementValueSubcontractForm = {
id: undefined,
projectId: currentProject.value.id,
projectId: currentProject.value?.id,
documentCode: undefined,
settlementDescribe: undefined,
valueType: undefined,
@ -198,7 +198,7 @@ const data = reactive<PageData<SettlementValueSubcontractForm, SettlementValueSu
queryParams: {
pageNum: 1,
pageSize: 10,
projectId: currentProject.value.id,
projectId: currentProject.value?.id,
documentCode: undefined,
settlementDescribe: undefined,
valueType: undefined,
@ -235,7 +235,7 @@ const getList = async () => {
//获取分包单位
const contractorList = ref<ContractorVO[]>([]);
const getContractorList = async () => {
const res = await listContractor({ projectId: currentProject.value.id } as any);
const res = await listContractor({ projectId: currentProject.value?.id } as any);
contractorList.value = res.rows;
};
@ -321,7 +321,7 @@ onMounted(() => {
//监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value.id,
() => currentProject.value?.id,
(nid, oid) => {
queryParams.value.projectId = nid;
form.value.projectId = nid;