From 82359539af65bffe3b01121df5fade053e140e70 Mon Sep 17 00:00:00 2001 From: sdaduanbilei-d1581 Date: Fri, 25 Apr 2025 20:58:01 +0800 Subject: [PATCH] [finish]prod --- src/api/base/customer.js | 2 +- src/api/contract/index.js | 4 + src/views/project/components/attach/index.vue | 21 +- .../contract/components/edit-contract.vue | 357 ++++++++++++++++++ src/views/project/contract/index.vue | 154 ++++++++ src/views/project/index/index.vue | 12 +- src/views/project/task/task-info.vue | 7 +- 7 files changed, 548 insertions(+), 9 deletions(-) create mode 100644 src/views/project/contract/components/edit-contract.vue create mode 100644 src/views/project/contract/index.vue diff --git a/src/api/base/customer.js b/src/api/base/customer.js index 2c88b91..2ab8e44 100644 --- a/src/api/base/customer.js +++ b/src/api/base/customer.js @@ -23,7 +23,7 @@ export default { }, all(params) { - return fetch('/base/customer/all', params) + return fetch('/base/customer/list', params) }, findList(params) { diff --git a/src/api/contract/index.js b/src/api/contract/index.js index 98e813f..4432964 100644 --- a/src/api/contract/index.js +++ b/src/api/contract/index.js @@ -12,5 +12,9 @@ export default { page(params) { return fetch('/contract/page', params) + }, + + info(params){ + return fetch('/contract/info/task', params) } } diff --git a/src/views/project/components/attach/index.vue b/src/views/project/components/attach/index.vue index 6430015..d57dafb 100644 --- a/src/views/project/components/attach/index.vue +++ b/src/views/project/components/attach/index.vue @@ -31,7 +31,7 @@ - + { + this.loading = false if (res.code === 200) { - this.list = res.data.records - this.page.total = res.data.total + this.list = res.data.records + this.page.total = res.data.total } }) }, diff --git a/src/views/project/contract/components/edit-contract.vue b/src/views/project/contract/components/edit-contract.vue new file mode 100644 index 0000000..2847359 --- /dev/null +++ b/src/views/project/contract/components/edit-contract.vue @@ -0,0 +1,357 @@ + + + + + diff --git a/src/views/project/contract/index.vue b/src/views/project/contract/index.vue new file mode 100644 index 0000000..5c021d2 --- /dev/null +++ b/src/views/project/contract/index.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/views/project/index/index.vue b/src/views/project/index/index.vue index 21c0cb9..b5c9c3f 100644 --- a/src/views/project/index/index.vue +++ b/src/views/project/index/index.vue @@ -21,14 +21,24 @@ -
+
+
+ +
+
+
+ + 搜索 +
+
+
+
+ +
@@ -103,12 +106,14 @@ import filePicker from '@/views/project/components/file-picker/index.vue' import preview from '@/components/preview/index.vue' import attach from "@/views/project/components/attach/index.vue"; +import contract from "@/views/project/contract/index.vue" export default { components: { filePicker, preview, - attach + attach, + contract }, props: { id: {