From e0e37818546b348d9cb63d021bb0640dfb78733d Mon Sep 17 00:00:00 2001
From: qiezi <15576055375@163.com>
Date: Tue, 13 Aug 2024 18:01:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E4=BB=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/customer/customer.js | 7 +
src/api/project/project.js | 4 +
src/api/project/projectPart.js | 5 +
src/assets/scss/_base.scss | 11 +
src/components/selector/select/BuSelect.vue | 50 ++++
.../selector/table/customerTable.vue | 172 +++++++++++
.../selector/table/projectPartTable.vue | 180 ++++++++++++
.../selector/table/projectTable.vue | 209 ++++++++++++++
.../modules/quote/detail/quoteDetail.vue | 159 ++++++++++
src/views/modules/quote/index.vue | 272 +++++++++++++-----
.../modules/quote/primary/quoteSearch.vue | 2 +-
.../modules/quote/primary/quoteTable.vue | 19 +-
12 files changed, 1012 insertions(+), 78 deletions(-)
create mode 100644 src/api/customer/customer.js
create mode 100644 src/api/project/project.js
create mode 100644 src/api/project/projectPart.js
create mode 100644 src/components/selector/select/BuSelect.vue
create mode 100644 src/components/selector/table/customerTable.vue
create mode 100644 src/components/selector/table/projectPartTable.vue
create mode 100644 src/components/selector/table/projectTable.vue
create mode 100644 src/views/modules/quote/detail/quoteDetail.vue
diff --git a/src/api/customer/customer.js b/src/api/customer/customer.js
new file mode 100644
index 0000000..928f2c9
--- /dev/null
+++ b/src/api/customer/customer.js
@@ -0,0 +1,7 @@
+import {createAPI} from "../../utils/httpRequest";
+
+
+export const queryCustomerList = (data) => createAPI(`/customer`,'post',data)
+
+export const queryCustomerListByPage = (data) => createAPI(`/customer/${data.no}/${data.size}`,'post',data)
+
diff --git a/src/api/project/project.js b/src/api/project/project.js
new file mode 100644
index 0000000..fb5df38
--- /dev/null
+++ b/src/api/project/project.js
@@ -0,0 +1,4 @@
+import {createAPI} from "../../utils/httpRequest";
+
+export const queryProjectList = (data) => createAPI("/project", "post", data);
+export const queryProjectListByPage = (data) => createAPI(`/project/${data.no}/${data.size}`, "post", data);
diff --git a/src/api/project/projectPart.js b/src/api/project/projectPart.js
new file mode 100644
index 0000000..9d0efbb
--- /dev/null
+++ b/src/api/project/projectPart.js
@@ -0,0 +1,5 @@
+import {createAPI} from "../../utils/httpRequest";
+
+export const queryProjectPart = (data) => createAPI(`/project/part`,'post',data)
+
+export const queryProjectPartByPage = (data) => createAPI(`/project/part/${data.no}/${data.size}`,'put',data)
diff --git a/src/assets/scss/_base.scss b/src/assets/scss/_base.scss
index cf6feb8..4510759 100644
--- a/src/assets/scss/_base.scss
+++ b/src/assets/scss/_base.scss
@@ -364,3 +364,14 @@ img {
margin-right: 5px;
}
+.el-input-number--medium{
+ line-height: 1.5px;
+ width: 100%;
+}
+
+.el-input-number .el-input__inner{
+ text-align: right;
+ padding-right: 5px !important;
+ padding-left: 0 !important;
+}
+
diff --git a/src/components/selector/select/BuSelect.vue b/src/components/selector/select/BuSelect.vue
new file mode 100644
index 0000000..ac4a54b
--- /dev/null
+++ b/src/components/selector/select/BuSelect.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+ {{ i.sitename }}
+
+ {{ i.buDesc }}
+
+
+
+
+
+
diff --git a/src/components/selector/table/customerTable.vue b/src/components/selector/table/customerTable.vue
new file mode 100644
index 0000000..bff6bec
--- /dev/null
+++ b/src/components/selector/table/customerTable.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/selector/table/projectPartTable.vue b/src/components/selector/table/projectPartTable.vue
new file mode 100644
index 0000000..bec62d7
--- /dev/null
+++ b/src/components/selector/table/projectPartTable.vue
@@ -0,0 +1,180 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/selector/table/projectTable.vue b/src/components/selector/table/projectTable.vue
new file mode 100644
index 0000000..0343b2b
--- /dev/null
+++ b/src/components/selector/table/projectTable.vue
@@ -0,0 +1,209 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue
new file mode 100644
index 0000000..42c6dcc
--- /dev/null
+++ b/src/views/modules/quote/detail/quoteDetail.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
新增
+
+
+
+
+
+
+
+
+
+
+
+ 物料名称
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存进入报价页面
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/quote/index.vue b/src/views/modules/quote/index.vue
index 34a1771..f61f03e 100644
--- a/src/views/modules/quote/index.vue
+++ b/src/views/modules/quote/index.vue
@@ -1,52 +1,52 @@
@@ -521,7 +640,9 @@ export default {
-
+
-
+
+
+
-
+
-
-
- {{ i.sitename }}
-
- {{ i.buDesc }}
-
-
-
+
@@ -571,22 +683,28 @@ export default {
-
+
+ 客户编码
+
+
-
+
-
+
+ 项目编码
+
+
-
+
@@ -623,6 +741,9 @@ export default {
取 消
+
+
+
@@ -631,4 +752,9 @@ export default {
height: auto;
line-height: 1.5;
}
+
+.el-table /deep/ .cell{
+ height: auto;
+ line-height: 1.5;
+}
diff --git a/src/views/modules/quote/primary/quoteSearch.vue b/src/views/modules/quote/primary/quoteSearch.vue
index a8384e6..cb3db4a 100644
--- a/src/views/modules/quote/primary/quoteSearch.vue
+++ b/src/views/modules/quote/primary/quoteSearch.vue
@@ -39,7 +39,7 @@ export default {
-
+
diff --git a/src/views/modules/quote/primary/quoteTable.vue b/src/views/modules/quote/primary/quoteTable.vue
index 8ac727b..29d6590 100644
--- a/src/views/modules/quote/primary/quoteTable.vue
+++ b/src/views/modules/quote/primary/quoteTable.vue
@@ -21,17 +21,27 @@ export default {
},
methods:{
handleRowClick(row, column, event){
- this.$emit('row-click',row)
+ this.$emit('rowClick',row)
},
handleSaveClick(row){
this.$emit('save',row)
- }
+ },
+ handleRemoveClick(row){
+ this.$emit('remove',row)
+ },
+ rowStyle({row}){
+ if(this.currentRow && this.currentRow.id === row.id){
+ return { 'background-color': '#E8F7F6' };
+ }else {
+ return {}
+ }
+ },
}
}
-
+
- 编辑
+ 编辑
+ 删除