diff --git a/src/api/quotation/quote.js b/src/api/quotation/quote.js new file mode 100644 index 0000000..95e2b41 --- /dev/null +++ b/src/api/quotation/quote.js @@ -0,0 +1,5 @@ +import {createAPI} from "../../utils/httpRequest"; + +export const getQuoteList = (data)=>createAPI(`/quote/list`,'post',data) + +export const getQuotePage = (data,no,size)=>createAPI(`/quote/page/${no}/${size}`,'post',data) diff --git a/src/api/quotation/quoteDetail.js b/src/api/quotation/quoteDetail.js new file mode 100644 index 0000000..924d6bc --- /dev/null +++ b/src/api/quotation/quoteDetail.js @@ -0,0 +1,9 @@ +import {createAPI} from "../../utils/httpRequest"; + +export const getQuoteDetailList = (data)=>createAPI(`/quote/detail/list`,'post',data) + +export const saveQuoteDetail = (data)=>createAPI(`/quote/detail/save`,'post',data) + +export const updateQuoteDetail = (data)=>createAPI(`/quote/detail/update`,'post',data) + +export const removeQuoteDetail = (data)=>createAPI(`/quote/detail/remove`,'post',data) diff --git a/src/api/quotation/quoteProperties.js b/src/api/quotation/quoteProperties.js new file mode 100644 index 0000000..d51f021 --- /dev/null +++ b/src/api/quotation/quoteProperties.js @@ -0,0 +1,11 @@ +import {createAPI} from "../../utils/httpRequest"; + +export const getQuotePropertiesBaseList = (data) => createAPI(`/quote/detail/properties/base/list`,'post',data) + +export const getQuotePropertiesList = (data) => createAPI(`/quote/detail/properties/list`,'post',data) + +export const saveQuoteProperties = (data) => createAPI(`/quote/detail/properties/save`,'post',data) + +export const removeQuoteProperties = (data) => createAPI(`/quote/detail/properties/remove`,'post',data) + +export const updateQuoteProperties = (data) => createAPI(`/quote/detail/properties/update`,'post',data) diff --git a/src/views/modules/cdc/collectScreen.vue b/src/views/modules/cdc/collectScreen.vue new file mode 100644 index 0000000..49e3584 --- /dev/null +++ b/src/views/modules/cdc/collectScreen.vue @@ -0,0 +1,347 @@ + + + + + CCL Coating 监控大屏/Monitor Platform + + + + 当前时间/Time: + {{dateFormat(this.newTime)}} + + + + + + 涂布设备-大线/Coating Machine-Line 1# + + + + + 静电/xxxx + + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + + + + 浓度/xxxx + + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + + + + 涂布设备-小线/Coating Machine-Line 2# + + + + + 静电/xxxx + + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + + + + 浓度/xxxx + + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + 一放 + xxxx + + 12222 + + + + + + + 配妆间/Adhensive Workshop + + + + + + + + + + + + diff --git a/src/views/modules/proofing/index.vue b/src/views/modules/proofing/index.vue new file mode 100644 index 0000000..57a61e6 --- /dev/null +++ b/src/views/modules/proofing/index.vue @@ -0,0 +1,891 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ optionsButton.query }} + {{ optionsButton.add }} + {{ optionsButton.delete }} + + {{ optionsButton.export }} + + + + + + + + + + + + + {{ scope.row[item.columnProp] }} + + + + + + 编辑 + 下达 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{optionsButton.confirm}} + {{optionsButton.cancel}} + + + + + + diff --git a/src/views/modules/quotation/index.vue b/src/views/modules/quotation/index.vue new file mode 100644 index 0000000..5a8c105 --- /dev/null +++ b/src/views/modules/quotation/index.vue @@ -0,0 +1,578 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查 询 + 新 增 + + + + + + + + + 下达 + 编辑 + 删除 + 重新报价 + + + + + {{scope.row[item.columnProp]}}{{index === 0 ? ("-" + scope.row['versionCode']) : ''}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/modules/quotation/sellForQuotation.vue b/src/views/modules/quotation/sellForQuotation.vue index 17c97e5..112e588 100644 --- a/src/views/modules/quotation/sellForQuotation.vue +++ b/src/views/modules/quotation/sellForQuotation.vue @@ -148,7 +148,7 @@ + style="box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);border: 2px;min-height: 420px;margin-top: 5px;"> @@ -414,7 +414,7 @@ export default { props:{ height:{ type:Number, - default:400 + default:290 } }, data() { @@ -1209,9 +1209,6 @@ export default { }, }, mounted() { - this.$nextTick(() => { - this.height = window.innerHeight / 2 - 240; - }) }, activated() { this.initData();//初始化数据 diff --git a/src/views/modules/quotation/sellForQuotation/quotationCustomerContact.vue b/src/views/modules/quotation/sellForQuotation/quotationCustomerContact.vue index f3d518e..961dff8 100644 --- a/src/views/modules/quotation/sellForQuotation/quotationCustomerContact.vue +++ b/src/views/modules/quotation/sellForQuotation/quotationCustomerContact.vue @@ -24,7 +24,7 @@ @@ -53,7 +53,16 @@ import { } from "@/api/project/project.js" export default { name: "quotationCustomerContact", - props: ['quotationHeader'], + props: { + quotationHeader:{ + type: Object, + default:()=>{} + }, + height: { + type: Number, + default: 300 + } + }, data(){ return{ quotationData: {}, diff --git a/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteBomInfo.vue b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteBomInfo.vue new file mode 100644 index 0000000..762f8fc --- /dev/null +++ b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteBomInfo.vue @@ -0,0 +1,52 @@ + + + + + + 切换版本 + 全级BOM结构 + + + 1 + 2 + + + + + diff --git a/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteCostPrice.vue b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteCostPrice.vue new file mode 100644 index 0000000..bdd6778 --- /dev/null +++ b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteCostPrice.vue @@ -0,0 +1,23 @@ + + + + + + + diff --git a/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteOtherCost.vue b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteOtherCost.vue new file mode 100644 index 0000000..2eef96a --- /dev/null +++ b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteOtherCost.vue @@ -0,0 +1,262 @@ + + + + + + 新增 + {{ updateVisible ? '保存' : '编辑' }} + + + + + + + {{ scope.row[item.columnProp] }} + + + + {{ scope.row.textValue ? scope.row.textValue : scope.row.numValue }} + + + + + + + + + + + {{ scope.row[item.columnProp] }} + + + + + + + + + + + + + + + + + + + + + + + + + 关闭 + + + + + + diff --git a/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue index ae41529..86cbb31 100644 --- a/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue +++ b/src/views/modules/quotation/sellForQuotation/quotationDetail/quoteRouting.vue @@ -658,7 +658,7 @@ export default { unitTime = 0; } } - let laborNeedTime = new Decimal(unitTime).mul(new Decimal(row.efficiencyFactor).div(new Decimal(100))).toNumber(); + let laborNeedTime = new Decimal(unitTime).div(new Decimal(row.efficiencyFactor).div(new Decimal(100))).toNumber(); // 单位人工成本 return new Decimal(new Decimal(row.laborSetupTime) .mul(new Decimal(row.setupLaborClassCost) @@ -685,8 +685,8 @@ export default { unitTime = 0; } } - let manufacturingNeedTime = new Decimal(unitTime).mul(new Decimal(row.efficiencyFactor).div(new Decimal(100))).toNumber(); - return new Decimal(row.workCenterCost).mul(new Decimal(row.machSetupTime)).add(new Decimal(row.workCenterCost).mul(manufacturingNeedTime)).toNumber(); + let manufacturingNeedTime = new Decimal(unitTime).div(new Decimal(row.efficiencyFactor).div(new Decimal(100))).toNumber(); + return new Decimal(row.workCenterCost).mul(new Decimal(row.machSetupTime).div(this.detail.quotationDetailQuantity)).add(new Decimal(row.workCenterCost).mul(manufacturingNeedTime)).toNumber(); }, getMachineCost(row){ // detail.machineCost 机器成本 machRunFactor机器运行速度 @@ -709,9 +709,9 @@ export default { } } // 计算 机器需求生产时间 - let workNeedTime = new Decimal(unitTime).mul(new Decimal(row.efficiencyFactor).div(new Decimal(100))).toNumber(); + let workNeedTime = new Decimal(unitTime).div(new Decimal(row.efficiencyFactor).div(new Decimal(100))).toNumber(); // 单位机器成本 - return new Decimal(row.workCenterCost).mul(new Decimal(row.machSetupTime)).add(new Decimal(row.workCenterCost).mul(workNeedTime)).toNumber(); + return new Decimal(row.workCenterCost).mul(new Decimal(row.machSetupTime).div(this.detail.quotationDetailQuantity)).add(new Decimal(row.workCenterCost).mul(workNeedTime)).toNumber(); }, setRunTimeDesc(i){ switch (this.routingDetailList[i].runTimeCode){ diff --git a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue index 63bfa17..7fc8157 100644 --- a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue +++ b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue @@ -21,7 +21,11 @@ export default { header:{ type:Object, request:true, - } + }, + height:{ + type:Number, + default:300, + }, }, watch:{ header:function (){ @@ -76,7 +80,7 @@ export default { quotationDetailFlag:false, editQuotationDetailLoading:false, no: 1,//当前页 - size: 20,//每页条数 + size: 50,//每页条数 total: 0,//总条数 tableData:[], projectPartTable:[], @@ -1004,7 +1008,7 @@ export default { 新增 - - - 暂无数据 - diff --git a/src/views/modules/quotation/sellForQuotation/quoteDetailInfo.vue b/src/views/modules/quotation/sellForQuotation/quoteDetailInfo.vue new file mode 100644 index 0000000..1c97416 --- /dev/null +++ b/src/views/modules/quotation/sellForQuotation/quoteDetailInfo.vue @@ -0,0 +1,684 @@ + + + + + + 新增 + + + + + 下达 + 编辑 + 删除 + + + + + + + {{ scope.row[item.columnProp]}} + + + + + + + + + + 报价单号 {{this.quote.quotationNo+"-"+this.quote.versionCode+"-"+index}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 确 定 + 取 消 + + + + + +
暂无数据