From 089c140decdecc99da42e8d6cbd4d5d3199a167f Mon Sep 17 00:00:00 2001
From: jia <1451658316@qq.com>
Date: Tue, 9 Jan 2024 18:14:09 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E7=94=B3=E8=AF=B7=20?=
=?UTF-8?q?=E4=BB=A5=E5=8F=8A=20=E9=A1=B9=E7=9B=AE=E9=A2=84=E7=AE=97?=
=?UTF-8?q?=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/material_purchase_request.ts | 27 ++
src/api/material_purchase_request_detail.ts | 27 ++
src/api/project_material_budget.ts | 26 +
src/api/project_material_budget_detail.ts | 26 +
src/components/material_budget/index.vue | 72 +++
.../material_budget_detail/index.vue | 79 +++
.../purchaserequest/detail.vue | 287 -----------
.../purchaserequest/edit.vue | 315 ------------
.../purchaserequest_detail/detail.vue | 287 -----------
.../purchaserequest_detail/edit.vue | 459 ------------------
.../material_purchase_request/detail.vue | 176 +++++++
src/views/material_purchase_request/edit.vue | 380 +++++++++++++++
.../index.vue | 101 ++--
.../detail.vue | 141 ++++++
.../material_purchase_request_detail/edit.vue | 241 +++++++++
.../index.vue | 103 +---
src/views/project_material_budget/detail.vue | 176 +++++++
src/views/project_material_budget/edit.vue | 373 ++++++++++++++
src/views/project_material_budget/index.vue | 143 ++++++
.../project_material_budget_detail/detail.vue | 141 ++++++
.../project_material_budget_detail/edit.vue | 214 ++++++++
.../project_material_budget_detail/index.vue | 166 +++++++
src/views/project_total_budget/detail.vue | 169 +++----
src/views/project_total_budget/edit.vue | 142 +++++-
src/views/project_total_budget/index.vue | 79 ++-
25 files changed, 2695 insertions(+), 1655 deletions(-)
create mode 100644 src/api/material_purchase_request.ts
create mode 100644 src/api/material_purchase_request_detail.ts
create mode 100644 src/api/project_material_budget.ts
create mode 100644 src/api/project_material_budget_detail.ts
create mode 100644 src/components/material_budget/index.vue
create mode 100644 src/components/material_budget_detail/index.vue
delete mode 100644 src/views/Materialmanagement/purchaserequest/detail.vue
delete mode 100644 src/views/Materialmanagement/purchaserequest/edit.vue
delete mode 100644 src/views/Materialmanagement/purchaserequest_detail/detail.vue
delete mode 100644 src/views/Materialmanagement/purchaserequest_detail/edit.vue
create mode 100644 src/views/material_purchase_request/detail.vue
create mode 100644 src/views/material_purchase_request/edit.vue
rename src/views/{Materialmanagement/purchaserequest => material_purchase_request}/index.vue (58%)
create mode 100644 src/views/material_purchase_request_detail/detail.vue
create mode 100644 src/views/material_purchase_request_detail/edit.vue
rename src/views/{Materialmanagement/purchaserequest_detail => material_purchase_request_detail}/index.vue (54%)
create mode 100644 src/views/project_material_budget/detail.vue
create mode 100644 src/views/project_material_budget/edit.vue
create mode 100644 src/views/project_material_budget/index.vue
create mode 100644 src/views/project_material_budget_detail/detail.vue
create mode 100644 src/views/project_material_budget_detail/edit.vue
create mode 100644 src/views/project_material_budget_detail/index.vue
diff --git a/src/api/material_purchase_request.ts b/src/api/material_purchase_request.ts
new file mode 100644
index 0000000..254cf0f
--- /dev/null
+++ b/src/api/material_purchase_request.ts
@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 材料申购列表
+export function materialrequestLists(params: any) {
+ return request.get({ url: '/material.material_purchase_request/lists', params })
+}
+
+// 添加材料申购
+export function materialrequestAdd(params: any) {
+ return request.post({ url: '/material.material_purchase_request/add', params })
+}
+
+// 编辑材料申购
+export function materialrequestEdit(params: any) {
+ return request.post({ url: '/material.material_purchase_request/edit', params })
+}
+
+// 删除材料申购
+export function materialrequestDelete(params: any) {
+ return request.post({ url: '/material.material_purchase_request/delete', params })
+}
+
+// 材料申购详情
+export function materialrequestDetail(params: any) {
+ return request.get({ url: '/material.material_purchase_request/detail', params })
+}
+
diff --git a/src/api/material_purchase_request_detail.ts b/src/api/material_purchase_request_detail.ts
new file mode 100644
index 0000000..fcf1ab1
--- /dev/null
+++ b/src/api/material_purchase_request_detail.ts
@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 材料申购明细列表
+export function materialrequestDetailLists(params: any) {
+ return request.get({ url: '/material.material_purchase_request_detail/lists', params })
+}
+
+// 添加材料申购明细
+export function materialrequestDetailAdd(params: any) {
+ return request.post({ url: '/material.material_purchase_request_detail/add', params })
+}
+
+// 编辑材料申购明细
+export function materialrequestDetailEdit(params: any) {
+ return request.post({ url: '/material.material_purchase_request_detail/edit', params })
+}
+
+// 删除材料申购明细
+export function materialrequestDetailDelete(params: any) {
+ return request.post({ url: '/material.material_purchase_request_detail/delete', params })
+}
+
+// 材料申购明细详情
+export function materialrequestDetailDetail(params: any) {
+ return request.get({ url: '/material.material_purchase_request_detail/detail', params })
+}
+
diff --git a/src/api/project_material_budget.ts b/src/api/project_material_budget.ts
new file mode 100644
index 0000000..634bfd0
--- /dev/null
+++ b/src/api/project_material_budget.ts
@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 材料预算表列表
+export function apiMaterialbudgetLists(params: any) {
+ return request.get({ url: '/project.project_material_budget/lists', params })
+}
+
+// 添加材料预算
+export function apiMaterialbudgetAdd(params: any) {
+ return request.post({ url: '/project.project_material_budget/add', params })
+}
+
+// 编辑材料预算
+export function apiMaterialbudgetEdit(params: any) {
+ return request.post({ url: '/project.project_material_budget/edit', params })
+}
+
+// 删除材料预算
+export function apiMaterialbudgetDelete(params: any) {
+ return request.post({ url: '/project.project_material_budget/delete', params })
+}
+
+// 材料预算详情
+export function apiMaterialbudgetDetail(params: any) {
+ return request.get({ url: '/project.project_material_budget/detail', params })
+}
diff --git a/src/api/project_material_budget_detail.ts b/src/api/project_material_budget_detail.ts
new file mode 100644
index 0000000..5876cfc
--- /dev/null
+++ b/src/api/project_material_budget_detail.ts
@@ -0,0 +1,26 @@
+import request from '@/utils/request'
+
+// 材料预算明细表列表
+export function MaterialbudgetDetailLists(params: any) {
+ return request.get({ url: '/project.project_material_budget_detail/lists', params })
+}
+
+// 添加材料预算明细
+export function MaterialbudgetDetailAdd(params: any) {
+ return request.post({ url: '/project.project_material_budget_detail/add', params })
+}
+
+// 编辑材料预算明细
+export function MaterialbudgetDetailEdit(params: any) {
+ return request.post({ url: '/project.project_material_budget_detail/edit', params })
+}
+
+// 删除材料预算明细
+export function MaterialbudgetDetailDelete(params: any) {
+ return request.post({ url: '/project.project_material_budget_detail/delete', params })
+}
+
+// 材料预算明细详情
+export function MaterialbudgetDetailDetail(params: any) {
+ return request.get({ url: '/project.project_material_budget_detail/detail', params })
+}
diff --git a/src/components/material_budget/index.vue b/src/components/material_budget/index.vue
new file mode 100644
index 0000000..4fbad30
--- /dev/null
+++ b/src/components/material_budget/index.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/material_budget_detail/index.vue b/src/components/material_budget_detail/index.vue
new file mode 100644
index 0000000..0387f05
--- /dev/null
+++ b/src/components/material_budget_detail/index.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Materialmanagement/purchaserequest/detail.vue b/src/views/Materialmanagement/purchaserequest/detail.vue
deleted file mode 100644
index 5901820..0000000
--- a/src/views/Materialmanagement/purchaserequest/detail.vue
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/views/Materialmanagement/purchaserequest/edit.vue b/src/views/Materialmanagement/purchaserequest/edit.vue
deleted file mode 100644
index 08db186..0000000
--- a/src/views/Materialmanagement/purchaserequest/edit.vue
+++ /dev/null
@@ -1,315 +0,0 @@
-
-
-
-
-
diff --git a/src/views/Materialmanagement/purchaserequest_detail/detail.vue b/src/views/Materialmanagement/purchaserequest_detail/detail.vue
deleted file mode 100644
index 5901820..0000000
--- a/src/views/Materialmanagement/purchaserequest_detail/detail.vue
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/views/Materialmanagement/purchaserequest_detail/edit.vue b/src/views/Materialmanagement/purchaserequest_detail/edit.vue
deleted file mode 100644
index e80c0b6..0000000
--- a/src/views/Materialmanagement/purchaserequest_detail/edit.vue
+++ /dev/null
@@ -1,459 +0,0 @@
-
-
-
-
-
diff --git a/src/views/material_purchase_request/detail.vue b/src/views/material_purchase_request/detail.vue
new file mode 100644
index 0000000..668e557
--- /dev/null
+++ b/src/views/material_purchase_request/detail.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
diff --git a/src/views/material_purchase_request/edit.vue b/src/views/material_purchase_request/edit.vue
new file mode 100644
index 0000000..c9cfb53
--- /dev/null
+++ b/src/views/material_purchase_request/edit.vue
@@ -0,0 +1,380 @@
+
+
+
+
+
diff --git a/src/views/Materialmanagement/purchaserequest/index.vue b/src/views/material_purchase_request/index.vue
similarity index 58%
rename from src/views/Materialmanagement/purchaserequest/index.vue
rename to src/views/material_purchase_request/index.vue
index d5ccab5..09ff7b7 100644
--- a/src/views/Materialmanagement/purchaserequest/index.vue
+++ b/src/views/material_purchase_request/index.vue
@@ -2,24 +2,10 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
查询
重置
@@ -33,9 +19,9 @@
新增
-
+
@@ -43,24 +29,21 @@
-
+
-
-
-
-
-
-
-
+
+
+
+
-
+
详情
@@ -80,11 +63,8 @@
+
diff --git a/src/views/material_purchase_request_detail/edit.vue b/src/views/material_purchase_request_detail/edit.vue
new file mode 100644
index 0000000..14c15d5
--- /dev/null
+++ b/src/views/material_purchase_request_detail/edit.vue
@@ -0,0 +1,241 @@
+
+
+
+
+
diff --git a/src/views/Materialmanagement/purchaserequest_detail/index.vue b/src/views/material_purchase_request_detail/index.vue
similarity index 54%
rename from src/views/Materialmanagement/purchaserequest_detail/index.vue
rename to src/views/material_purchase_request_detail/index.vue
index 680427f..f6694d7 100644
--- a/src/views/Materialmanagement/purchaserequest_detail/index.vue
+++ b/src/views/material_purchase_request_detail/index.vue
@@ -1,41 +1,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
- 新增
-
-
- 删除
-
+
@@ -45,22 +12,21 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,9 +34,9 @@
编辑
-
+
详情
@@ -90,7 +56,7 @@
+
diff --git a/src/views/project_material_budget/edit.vue b/src/views/project_material_budget/edit.vue
new file mode 100644
index 0000000..d0ddcb2
--- /dev/null
+++ b/src/views/project_material_budget/edit.vue
@@ -0,0 +1,373 @@
+
+
+
+
+
diff --git a/src/views/project_material_budget/index.vue b/src/views/project_material_budget/index.vue
new file mode 100644
index 0000000..44bb9c1
--- /dev/null
+++ b/src/views/project_material_budget/index.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/project_material_budget_detail/detail.vue b/src/views/project_material_budget_detail/detail.vue
new file mode 100644
index 0000000..891d129
--- /dev/null
+++ b/src/views/project_material_budget_detail/detail.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
diff --git a/src/views/project_material_budget_detail/edit.vue b/src/views/project_material_budget_detail/edit.vue
new file mode 100644
index 0000000..ed0fb59
--- /dev/null
+++ b/src/views/project_material_budget_detail/edit.vue
@@ -0,0 +1,214 @@
+
+
+
+
+
diff --git a/src/views/project_material_budget_detail/index.vue b/src/views/project_material_budget_detail/index.vue
new file mode 100644
index 0000000..1990b3d
--- /dev/null
+++ b/src/views/project_material_budget_detail/index.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/project_total_budget/detail.vue b/src/views/project_total_budget/detail.vue
index 52e8eca..09c11af 100644
--- a/src/views/project_total_budget/detail.vue
+++ b/src/views/project_total_budget/detail.vue
@@ -1,92 +1,47 @@
@@ -114,7 +69,34 @@ const datas = reactive({
areaOptions: [],
});
+const tableData = reactive([{
+ name: "材料/设备成本(元)",
+ text: '用于控制材料成本',
+ cost: "", rate: "",
+ cl_cost: ''
+},
+{
+ name: "分包成本(元)",
+ text: '用于控制分包成本', cost: "", rate: "",
+ fb_cost: '',
+},
+{
+ name: "人工成本(元)",
+ text: '用于控制工时成本及项目人力成本', cost: "", rate: "",
+ rg_cost: ''
+},
+{
+ name: "费用成本(元)",
+ text: '用于控制费用报销及差旅报销', cost: "", rate: "",
+ fy_cost: ''
+},
+{
+ name: "机械 & 工具成本(元)",
+ text: '用于控制机械及设备成本', cost: "", rate: "",
+ jj_cost: ''
+},
+])
// 表单数据
const formData = reactive({
@@ -125,21 +107,20 @@ const formData = reactive({
// 获取详情
const setFormData = async (data: Record) => {
Object.assign(formData, data)
+ tableData[0].cost = data.cl_cost
+ tableData[1].cost = data.fb_cost
+ tableData[2].cost = data.rg_cost
+ tableData[3].cost = data.fy_cost
+ tableData[4].cost = data.jj_cost
+ tableData[0].rate = (Number(data.cl_cost) / data.total_cost).toFixed(2) + '%'
+ tableData[1].rate = (Number(data.fb_cost) / data.total_cost).toFixed(2) + '%'
+ tableData[2].rate = (Number(data.rg_cost) / data.total_cost).toFixed(2) + '%'
+ tableData[3].rate = (Number(data.fy_cost) / data.total_cost).toFixed(2) + '%'
+ tableData[4].rate = (Number(data.jj_cost) / data.total_cost).toFixed(2) + '%'
- if (data.annex && data.annex.length > 0) {
-
- const arry1 = data.annex.map((item: any, index: any) => {
- return {
- name: `文件${index + 1}`,
- uri: item
- };
- });
- Object.assign(formDataannex, arry1)
-
- }
+ // console.log(tableData)
}
-
const getDetail = async (row: Record) => {
const data = await apiCustomDetail({
id: row.id
diff --git a/src/views/project_total_budget/edit.vue b/src/views/project_total_budget/edit.vue
index a237b62..cccec9a 100644
--- a/src/views/project_total_budget/edit.vue
+++ b/src/views/project_total_budget/edit.vue
@@ -32,23 +32,28 @@
-
-
+
+
-
-
+
+
+
+
+
+
+
+
-
-
+
@@ -62,12 +67,12 @@
-
-
+
+
-
+
{{ row.rate }}
@@ -82,7 +87,7 @@
-
+
@@ -93,13 +98,14 @@
-
-
+
+
+
-
-
+
+
@@ -157,6 +163,7 @@ import { getAll } from '@/api/org/organization'
import type { PropType } from 'vue'
import configs from "@/config"
import useUserStore from "@/stores/modules/user";
+import { number } from 'echarts/core'
const protype = reactive([])
const base_url = configs.baseUrl + configs.urlPrefix
const userStore = useUserStore();
@@ -164,6 +171,11 @@ const active = ref(0)
const formDataannex = reactive([])
const list1 = reactive([])
const list2 = reactive([])
+
+
+const project_amount = ref(0)
+const project_rate = ref(0)
+
const tableData = reactive([{
name: "材料/设备成本(元)",
text: '用于控制材料成本',
@@ -252,9 +264,9 @@ defineProps({
})
const emit = defineEmits(['success', 'close'])
const formRef = shallowRef()
-const popupRef = shallowRef>()
+const popupRef = shallowRef>()
const mode = ref('add')
-const amount_daxie = ref('')
+const totalenum = ref('')
const showDialog = ref(false)
const showDialog1 = ref(false)
const showDialog2 = ref(false)
@@ -277,6 +289,54 @@ const customEvent2 = (e: any) => {
custom_name.value = e.custom_name;
showDialog2.value = false;
};
+const updateCost = () => {
+
+ for (let i = 0; i < tableData.length; i++) {
+ const row = tableData[i];
+
+ if (row.cost && row.cost > 0) {
+ row.rate = (row.cost / Number(totalenum.value)).toFixed(2) + '%';
+ } else {
+ row.rate = ''
+ }
+
+ }
+};
+
+
+//监听合同金额
+// const contractamount = (e) => {
+// console.log(e)
+// if (project_amount.value != 0) {
+// project_amount.value = e - Number(project_amount.value)
+// project_rate.value = (Number(project_amount.value) / Number(e)).toFixed(2) + '%'
+// }
+// console.log(project_rate.value, project_amount.value)
+// }
+
+//监听获取成本%
+const costinput = (row, index) => {
+
+ row.rate = (row.cost / Number(totalenum.value)).toFixed(2) + '%'
+
+ if (index == 0) {
+ formData.cl_cost = row.cost
+ } else if (index == 2) {
+ formData.fb_cost = row.cost
+ } else if (index == 3) {
+ formData.rg_cost = row.cost
+ } else if (index == 4) {
+ formData.fy_cost = row.cost
+ } else if (index == 5) {
+ formData.jj_cost = row.cost
+ }
+
+
+
+
+}
+
+
//打开弹窗
const userclick = () => {
@@ -337,7 +397,9 @@ const getSummaries = (param: SummaryMethodProps) => {
}
})
- console.log(sums)
+ // console.log(sums)
+ totalenum.value = sums[2]
+ project_amount.value = sums[2]
return sums
}
@@ -351,7 +413,7 @@ const amountinput = (e) => {
}
// 弹窗标题
const popupTitle = computed(() => {
- return mode.value == 'edit' ? '编辑项目经理委任表' : '新增项目经理委任表'
+ return mode.value == 'edit' ? '编辑总预算表' : '新增总预算表'
})
// 表单数据
@@ -360,7 +422,7 @@ const formData = reactive({
org_id: "",
dept_id: "",
project_id: "",
- contract_amount: "",
+ contract_amount: 0,
cl_cost: "",
fb_cost: "",
rg_cost: "",
@@ -408,9 +470,9 @@ const getlist1 = (id: any) => {
// 获取详情
const setFormData = async (data: Record) => {
- if (data.annex && data.annex.length > 0) {
+ if (data.budget_list && data.budget_list.length > 0) {
- const arry1 = data.annex.map((item: any, index: any) => {
+ const arry1 = data.budget_list.map((item: any, index: any) => {
return {
name: `文件${index + 1}`,
uri: item
@@ -427,11 +489,20 @@ const setFormData = async (data: Record) => {
formData[key] = data[key]
}
}
- custom_name.value = data.custom_name
+
project_name.value = data.project_name
project_code.value = data.project_code
- contract_no.value = data.contract_code
- manage_name.value = data.project_manager_name
+
+ tableData[0].cost = data.cl_cost
+
+ tableData[1].cost = data.fb_cost
+
+ tableData[2].cost = data.rg_cost
+
+ tableData[3].cost = data.fy_cost
+
+ tableData[4].cost = data.jj_cost
+
if (data && data.contract_name) {
contract_name.value = data.contract_name;
@@ -451,7 +522,7 @@ const getDetail = async (row: Record) => {
// 提交按钮
const handleSubmit = async () => {
if (formDataannex.length > 0) {
- formData.annex = JSON.stringify(formDataannex.map((item: any) => item.uri))
+ formData.budget_list = JSON.stringify(formDataannex.map((item: any) => item.uri))
}
console.log(formRef.value?.validate(), '22222222')
@@ -482,7 +553,28 @@ const handleClose = () => {
emit('close')
}
+watch(
+ [totalenum, project_amount, project_rate,], (newValue, oldValue) => {
+ updateCost();
+ if (formData && formData.contract_amount && project_amount.value) {
+ project_amount.value = Number(formData.contract_amount) - Number(project_amount.value);
+ project_rate.value = (Number(project_amount.value) / Number(formData.contract_amount)).toFixed(2) + '%';
+ }
+ // console.log(formData.contract_amount, project_amount.value)
+ },
+)
+
+watch(
+ () => formData.contract_amount,
+ (newValue, oldValue) => {
+
+ if (project_amount.value) {
+ project_amount.value = Number(formData.contract_amount) - Number(project_amount.value);
+ project_rate.value = (Number(project_amount.value) / Number(formData.contract_amount)).toFixed(2) + '%';
+ }
+ }
+)
defineExpose({
open,
diff --git a/src/views/project_total_budget/index.vue b/src/views/project_total_budget/index.vue
index 7922b6e..3ddc1b3 100644
--- a/src/views/project_total_budget/index.vue
+++ b/src/views/project_total_budget/index.vue
@@ -2,20 +2,18 @@
-
-
-
+
+
+
-
-
-
-
+
+
查询
- 重置
+ 重置
@@ -34,19 +32,36 @@
-
-
-
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 暂无文件
+
+
+
@@ -77,8 +92,8 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiProjectbudgetLists, apiProjectbudgetDelete, apiProjectbudgetDetail } from '@/api/project_total_budget'
import { timeFormat } from '@/utils/util'
-import { getAllProjectTypes } from '@/api/projecttype'
-const protype = reactive([])
+
+
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'
import DetailPopup from './detail.vue'
@@ -87,31 +102,15 @@ const editRef = shallowRef>()
// 是否显示编辑框
const showEdit = ref(false)
const showDtail = ref(false)
-const dtimevalue = ref([])
-//查询
-const dateclick = (e: any) => {
- queryParams.start_date = e[0]
- queryParams.delivery_date = e[1]
-}
// 查询条件
const queryParams = reactive({
- project_approval_date: '',
- start_date: '',
- delivery_date: '',
+ total_budget_code: '',
+ project_manager: '',
})
-//重置
-const reset = () => {
- Object.assign(queryParams, {
- project_approval_date: '',
- start_date: '',
- delivery_date: '',
- })
- dtimevalue.value = ''
- getLists()
-}
+
// 选中数据
const selectData = ref([])