From d95ac535ad89fd4a79d577a00458c48a0a8e39f9 Mon Sep 17 00:00:00 2001 From: zelian_wu Date: Thu, 14 Mar 2024 17:13:54 +0800 Subject: [PATCH] =?UTF-8?q?2024-03-14=20=E6=8A=A5=E4=BB=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/site.js | 1 + src/api/quotation/quoteOfBom.js | 7 + src/api/quotation/quoteOfRouting.js | 3 + src/views/modules/base/factoryInformation.vue | 14 +- .../modules/quotation/sellForQuotation.vue | 517 +++++++++------ .../quotationDetail/billOfMateriel.vue | 379 +++++++++++ .../quotationDetail/costPrice.vue | 341 ++++++++++ .../quotationDetail/propertyTemplates.vue | 206 ++++++ .../quotationDetail/quoteRouting.vue | 73 +++ .../quotationDetail/toolQuotation.vue | 532 +++++++++++++++ .../sellForQuotation/quoteDetail.vue | 604 ++++++++++++++++++ 11 files changed, 2471 insertions(+), 206 deletions(-) create mode 100644 src/api/quotation/quoteOfBom.js create mode 100644 src/api/quotation/quoteOfRouting.js create mode 100644 src/views/modules/quotation/sellForQuotation/quotationDetail/billOfMateriel.vue create mode 100644 src/views/modules/quotation/sellForQuotation/quotationDetail/costPrice.vue create mode 100644 src/views/modules/quotation/sellForQuotation/quotationDetail/propertyTemplates.vue create mode 100644 src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue create mode 100644 src/views/modules/quotation/sellForQuotation/quotationDetail/toolQuotation.vue create mode 100644 src/views/modules/quotation/sellForQuotation/quoteDetail.vue diff --git a/src/api/base/site.js b/src/api/base/site.js index dc01d09..728ceba 100644 --- a/src/api/base/site.js +++ b/src/api/base/site.js @@ -8,6 +8,7 @@ export const getCompanyData = data => createAPI(`/base/getCompanyData`,'post',da // 保存修改工厂信息数据 export const siteSave = data => createAPI(`/base/siteSave`,'post',data) +export const siteList = data => createAPI(`/base/site/list`,'post',data) //------------物料分类部分---------------- // 获取工厂信息数据 diff --git a/src/api/quotation/quoteOfBom.js b/src/api/quotation/quoteOfBom.js new file mode 100644 index 0000000..eb7c04a --- /dev/null +++ b/src/api/quotation/quoteOfBom.js @@ -0,0 +1,7 @@ +import {createAPI} from "../../utils/httpRequest"; + +export const getBomTreeStructure = (data)=>createAPI(`/quote/bom/tree/list`,'get',data); +export const updateQuoteBomList = (data)=>createAPI(`/quote/bom/update`,'post',data); + +export const searchQuoteBomList = (data)=>createAPI(`/quote/bom/list`,'post',data); +export const searchQuoteBomHeader = (data)=>createAPI(`/quote/bom/header`,'get',data); diff --git a/src/api/quotation/quoteOfRouting.js b/src/api/quotation/quoteOfRouting.js new file mode 100644 index 0000000..b1e69cf --- /dev/null +++ b/src/api/quotation/quoteOfRouting.js @@ -0,0 +1,3 @@ +import {createAPI} from "../../utils/httpRequest"; + +export const getBomTreeStructure = (data)=>createAPI(`/quote/routing/tree/list`,'get',data); diff --git a/src/views/modules/base/factoryInformation.vue b/src/views/modules/base/factoryInformation.vue index 398e79d..659e4c1 100644 --- a/src/views/modules/base/factoryInformation.vue +++ b/src/views/modules/base/factoryInformation.vue @@ -184,6 +184,7 @@ import { getTableUserListLanguage, } from "@/api/table.js" import Chooselist from '@/views/modules/common/Chooselist' +import {siteList} from "../../../api/base/site"; var functionId = '100001002'; @@ -959,7 +960,18 @@ export default { }) }, getSiteDataDemo(params){ - this.$message.success("这里是Site") + params.no = 1 + params.size = 1 + // this.$message.success(params) + siteList(params).then(({data})=>{ + if (data && data.code === 0){ + this.$message.success(data.msg) + }else { + this.$message.warning(data.msg) + } + }).catch((error)=>{ + this.$message.error(error) + }) } }, created() { diff --git a/src/views/modules/quotation/sellForQuotation.vue b/src/views/modules/quotation/sellForQuotation.vue index 059603c..e66a93c 100644 --- a/src/views/modules/quotation/sellForQuotation.vue +++ b/src/views/modules/quotation/sellForQuotation.vue @@ -1,104 +1,67 @@ -