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 @@ -