From 55027fe0cdbaaefa8c5c61ecd64b46b571dfcadf Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Thu, 18 Jan 2024 23:16:50 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project_cost_budget.ts | 2 +- src/api/project_cost_budget_detail.ts | 26 ++ src/api/project_equipment_budget.ts | 26 ++ .../project_equipment_budget_detail/index.vue | 68 ++++ .../project_labor_contract/index.vue | 69 ++++ src/views/custom_contacts/edit.vue | 40 +-- src/views/custom_follow/edit.vue | 60 ++-- src/views/project_cost_budget/edit.vue | 287 +++++++++++++++++ src/views/project_cost_budget/index.vue | 128 ++++++++ src/views/project_cost_budget_detail/edit.vue | 146 +++++++++ .../project_cost_budget_detail/index.vue | 120 +++++++ src/views/project_equipment_budget/edit.vue | 297 ++++++++++++++++++ src/views/project_equipment_budget/index.vue | 125 ++++++++ .../project_equipment_budget_detail/edit.vue | 192 +++++++++++ .../project_equipment_budget_detail/index.vue | 132 ++++++++ .../project_labor_budget_detail/edit.vue | 51 +-- .../project_labor_budget_detail/index.vue | 2 - 17 files changed, 1682 insertions(+), 89 deletions(-) create mode 100644 src/api/project_cost_budget_detail.ts create mode 100644 src/api/project_equipment_budget.ts create mode 100644 src/components/project_equipment_budget_detail/index.vue create mode 100644 src/components/project_labor_contract/index.vue create mode 100644 src/views/project_cost_budget/edit.vue create mode 100644 src/views/project_cost_budget/index.vue create mode 100644 src/views/project_cost_budget_detail/edit.vue create mode 100644 src/views/project_cost_budget_detail/index.vue create mode 100644 src/views/project_equipment_budget/edit.vue create mode 100644 src/views/project_equipment_budget/index.vue create mode 100644 src/views/project_equipment_budget_detail/edit.vue create mode 100644 src/views/project_equipment_budget_detail/index.vue diff --git a/src/api/project_cost_budget.ts b/src/api/project_cost_budget.ts index fa948ae..2f18242 100644 --- a/src/api/project_cost_budget.ts +++ b/src/api/project_cost_budget.ts @@ -2,7 +2,7 @@ import request from '@/utils/request' // 费用预算列表 export function apiProjectCostBudgetLists(params: any) { - return request.get({ url: '/project.project_cost_budget_detail/lists', params }) + return request.get({ url: '/project.project_cost_budget/lists', params }) } // 添加费用预算 diff --git a/src/api/project_cost_budget_detail.ts b/src/api/project_cost_budget_detail.ts new file mode 100644 index 0000000..8e9d2ba --- /dev/null +++ b/src/api/project_cost_budget_detail.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 费用预算明细列表 +export function apiProjectCostBudgetDetailLists(params: any) { + return request.get({ url: '/project.project_cost_budget_detail/lists', params }) +} + +// 添加费用预算明细 +export function apiProjectCostBudgetDetailAdd(params: any) { + return request.post({ url: '/project.project_cost_budget_detail/add', params }) +} + +// 编辑费用预算明细 +export function apiProjectCostBudgetDetailEdit(params: any) { + return request.post({ url: '/project.project_cost_budget_detail/edit', params }) +} + +// 删除费用预算明细 +export function apiProjectCostBudgetDetailDelete(params: any) { + return request.post({ url: '/project.project_cost_budget_detail/delete', params }) +} + +// 费用预算明细详情 +export function apiProjectCostBudgetDetailDetail(params: any) { + return request.get({ url: '/project.project_cost_budget_detail/detail', params }) +} \ No newline at end of file diff --git a/src/api/project_equipment_budget.ts b/src/api/project_equipment_budget.ts new file mode 100644 index 0000000..1100a00 --- /dev/null +++ b/src/api/project_equipment_budget.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 机具预算列表 +export function apiProjectEquipmentBudgetLists(params: any) { + return request.get({ url: '/project.project_equipment_budget/lists', params }) +} + +// 添加机具预算 +export function apiProjectEquipmentBudgetAdd(params: any) { + return request.post({ url: '/project.project_equipment_budget/add', params }) +} + +// 编辑机具预算 +export function apiProjectEquipmentBudgetEdit(params: any) { + return request.post({ url: '/project.project_equipment_budget/edit', params }) +} + +// 删除机具预算 +export function apiProjectEquipmentBudgetDelete(params: any) { + return request.post({ url: '/project.project_equipment_budget/delete', params }) +} + +// 机具预算详情 +export function apiProjectEquipmentBudgetDetail(params: any) { + return request.get({ url: '/project.project_equipment_budget/detail', params }) +} \ No newline at end of file diff --git a/src/components/project_equipment_budget_detail/index.vue b/src/components/project_equipment_budget_detail/index.vue new file mode 100644 index 0000000..c22e5a0 --- /dev/null +++ b/src/components/project_equipment_budget_detail/index.vue @@ -0,0 +1,68 @@ + + + \ No newline at end of file diff --git a/src/components/project_labor_contract/index.vue b/src/components/project_labor_contract/index.vue new file mode 100644 index 0000000..e376ac8 --- /dev/null +++ b/src/components/project_labor_contract/index.vue @@ -0,0 +1,69 @@ + + + \ No newline at end of file diff --git a/src/views/custom_contacts/edit.vue b/src/views/custom_contacts/edit.vue index 71d48bb..b2adb02 100644 --- a/src/views/custom_contacts/edit.vue +++ b/src/views/custom_contacts/edit.vue @@ -1,12 +1,12 @@ @@ -40,6 +44,7 @@ import Popup from '@/components/popup/index.vue' import { apiProjectLaborBudgetDetailAdd, apiProjectLaborBudgetDetailEdit, apiProjectLaborBudgetDetailDetail } from '@/api/project_labor_budget_detail' import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' +import projectDialog from "@/components/project_labor_contract/index.vue" defineProps({ dictData: { type: Object as PropType>, @@ -50,7 +55,7 @@ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') - +const showDialog = ref(false) // 弹窗标题 const popupTitle = computed(() => { @@ -59,18 +64,22 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ - id: '', - project_id: '', - labor_budget_id: '', - job_type_id: '', - desc: '', - unit: '', - num: '', - price: '', - amount: '', - remark: '', + id: "", + "labor_budget_id": 0, + project_name: "", + "job_type_id": '', + "desc": "", + "unit": "", + "num": 0, + "price": 0, + "remark": "" }) +const customEvent = (e) => { + formData.labor_budget_id = e.id + formData.project_name = e.project_name + showDialog.value = false +} // 表单验证 const formRules = reactive({ diff --git a/src/views/project_labor_budget_detail/index.vue b/src/views/project_labor_budget_detail/index.vue index 18012bf..4a1cdec 100644 --- a/src/views/project_labor_budget_detail/index.vue +++ b/src/views/project_labor_budget_detail/index.vue @@ -28,8 +28,6 @@
- -