From ca185db0a8c196b382966c15316a5d29a79c1fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Wed, 8 Feb 2023 15:45:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E8=90=A5=E8=B5=84=E8=B4=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=20=E8=B5=84=E8=B4=A8=E4=B8=8A=E4=BC=A0=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/basic/companyProductRelevance.js | 46 ++ src/views/purchase/cert/supCertSearch.vue | 721 ++++++++++++++++ src/views/purchase/cert/supCertSet.vue | 771 ++++++++++++++++++ .../company/basicSelectSingleProducts.vue | 583 +++++++++++++ .../purchase/company/companyProducts.vue | 14 +- 6 files changed, 2129 insertions(+), 7 deletions(-) create mode 100644 src/api/basic/companyProductRelevance.js create mode 100644 src/views/purchase/cert/supCertSearch.vue create mode 100644 src/views/purchase/cert/supCertSet.vue create mode 100644 src/views/purchase/company/basicSelectSingleProducts.vue diff --git a/package.json b/package.json index 49e30d97..852b13ec 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "clipboard": "2.0.8", "core-js": "3.19.1", "echarts": "4.9.0", + "element-china-area-data": "^5.0.2", "element-ui": "2.15.8", "file-saver": "2.0.5", "fuse.js": "6.4.3", diff --git a/src/api/basic/companyProductRelevance.js b/src/api/basic/companyProductRelevance.js new file mode 100644 index 00000000..4e095e75 --- /dev/null +++ b/src/api/basic/companyProductRelevance.js @@ -0,0 +1,46 @@ +import axios from "../../utils/request"; + +export function filterCompanyProductRelevance(query) { + return axios( + { + url: "/sale/info/company/product/relevance/filter", + method: "get", + params: query + } + ) +} +export function insertFilter(query) { + return axios( + { + url: "/sale/info/insertFilter", + method: "post", + data: query + } + ); +} + +export function insertCompanyProductRelevance(query) { + return axios( + { + url: "/sale/info/insertCompanyProductRelevance", + method: "post", + data: query + } + ); +} + + +export function deleteCompanyProductRelevance(query) { + return axios( + { + url: "/sale/info/deleteCompanyProductRelevance", + method: "post", + data: query + } + ); +} + + + + + diff --git a/src/views/purchase/cert/supCertSearch.vue b/src/views/purchase/cert/supCertSearch.vue new file mode 100644 index 00000000..ab9f9fb5 --- /dev/null +++ b/src/views/purchase/cert/supCertSearch.vue @@ -0,0 +1,721 @@ + + + diff --git a/src/views/purchase/cert/supCertSet.vue b/src/views/purchase/cert/supCertSet.vue new file mode 100644 index 00000000..9a0ecbcb --- /dev/null +++ b/src/views/purchase/cert/supCertSet.vue @@ -0,0 +1,771 @@ + + + + + + diff --git a/src/views/purchase/company/basicSelectSingleProducts.vue b/src/views/purchase/company/basicSelectSingleProducts.vue new file mode 100644 index 00000000..1fa742bd --- /dev/null +++ b/src/views/purchase/company/basicSelectSingleProducts.vue @@ -0,0 +1,583 @@ + + + + diff --git a/src/views/purchase/company/companyProducts.vue b/src/views/purchase/company/companyProducts.vue index d5688f7d..160e9e05 100644 --- a/src/views/purchase/company/companyProducts.vue +++ b/src/views/purchase/company/companyProducts.vue @@ -243,12 +243,12 @@ - + - + @@ -434,11 +434,11 @@ export default { selectExport() { var selectData = this.multipleSelection; - selectData.forEach((obj) => { - this.filterQuery.rlIds.push(obj.id); - }); - this.filterQuery.unitFk = this.unitFk; - this.allExport(); + if (selectData == null || selectData.length == 0) { + this.$message.warning("请先选入产品!"); + return; + } + this.closeSelDialog(selectData[0].id); }, allExport() {