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

@ -293,7 +293,7 @@ const initFormData: any = {
unit: undefined,
plan: undefined,
realQuantity: undefined,
projectId: currentProject.value.id,
projectId: currentProject.value?.id,
approvalProject: undefined,
listOfMaterialInventory: [],
@ -308,7 +308,7 @@ const data = reactive<PageData<any, any>>({
supplierId: undefined,
supplier: undefined,
name: undefined,
projectId: currentProject.value.id,
projectId: currentProject.value?.id,
supply: undefined,
specification: undefined,
signalment: undefined,
@ -485,7 +485,7 @@ const handleAudit = async () => {
const supplierOptions = ref([]);
const getSupplierList = async () => {
const res = await listContractor({
projectId: currentProject.value.id,
projectId: currentProject.value?.id,
pageNum: 1,
pageSize: 10000
});
@ -499,7 +499,7 @@ onMounted(() => {
//监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value.id,
() => currentProject.value?.id,
(nid, oid) => {
queryParams.value.projectId = nid;
form.value.projectId = nid;