From 5b2efd863c211bb23d494bf46ae6fe00ec166680 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Tue, 20 Aug 2024 11:54:33 +0800 Subject: [PATCH] =?UTF-8?q?20240820=20=E6=8A=A5=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/quote/quote.js | 2 + .../modules/property/propertyTemplate.vue | 6 +- .../quote/detail/primary/quoteDetailBom.vue | 206 +++++++- .../detail/primary/quoteDetailRouting.vue | 461 +++++++++++++++++- .../quote/detail/primary/quoteDetailTool.vue | 2 +- src/views/modules/quote/index.vue | 64 ++- 6 files changed, 716 insertions(+), 25 deletions(-) diff --git a/src/api/quote/quote.js b/src/api/quote/quote.js index dc29e99..ad18480 100644 --- a/src/api/quote/quote.js +++ b/src/api/quote/quote.js @@ -8,3 +8,5 @@ export const updateQuote = (data) => createAPI(`/quote/update`,'post',data) export const removeQuote = (data) => createAPI(`/quote/remove/${data.id}`,'post',data) export const againQuote = (data) => createAPI(`/quote/again`,'post',data) + +export const queryQuoteRoleUser = (data) => createAPI(`/quote/user`,'post',data) diff --git a/src/views/modules/property/propertyTemplate.vue b/src/views/modules/property/propertyTemplate.vue index 641a3d6..fe11ccd 100644 --- a/src/views/modules/property/propertyTemplate.vue +++ b/src/views/modules/property/propertyTemplate.vue @@ -772,6 +772,7 @@ export default { @@ -1034,8 +1035,5 @@ export default { diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue index 3359bb4..eb3bdeb 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue @@ -16,6 +16,196 @@ export default { isAllBom:false, dataList:[], treeData:[], + columns:[ + { + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4LineSequence', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'lineSequence', + headerAlign: "center", + align: "center", + columnLabel: '序号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 50, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4PartNo', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'partNo', + headerAlign: "center", + align: "center", + columnLabel: '产品编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4ComponentPart', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'componentPart', + headerAlign: "center", + align: "center", + columnLabel: '零部件编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4ComponentPartDesc', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'componentPartDesc', + headerAlign: "center", + align: "left", + columnLabel: '物料名称', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 140, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4QtyPerAssembly', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'qtyPerAssembly', + headerAlign: "center", + align: "right", + columnLabel: '单位用量', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 90, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4ComponentScrap', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'componentScrap', + headerAlign: "center", + align: "right", + columnLabel: '调机用量', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 90, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4ShrinkageFactor', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'shrinkageFactor', + headerAlign: "center", + align: "right", + columnLabel: '损耗率%', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 90, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4PrintUnitName', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'printUnit', + headerAlign: "center", + align: "center", + columnLabel: '单位', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 90, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4NoteText', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'noteText', + headerAlign: "center", + align: "left", + columnLabel: '备注', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 90, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4UnitCost', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'unitCost', + headerAlign: "center", + align: "right", + columnLabel: '单位成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 90, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table4QuoteUnitCost', + tableId: "5011Table4", + tableName: "报价材料信息", + columnProp: 'quoteUnitCost', + headerAlign: "center", + align: "right", + columnLabel: '单位报价成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: 'right', + columnWidth: 90, + }, + ], } }, methods:{ @@ -51,7 +241,21 @@ export default { - + + + diff --git a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue index 522f5d7..223ba7b 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue @@ -16,6 +16,451 @@ export default { isAllBom:false, dataList:[], treeData:[], + columns: [ + { + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5OperationNo', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'operationNo', + headerAlign: "center", + align: "center", + columnLabel: '工序号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 60, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5OperationName', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'operationName', + headerAlign: "center", + align: "left", + columnLabel: '工序名称', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5PartNo', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'partNo', + headerAlign: "center", + align: "left", + columnLabel: '物料编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5PartDesc', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'partDesc', + headerAlign: "center", + align: "left", + columnLabel: '物料描述', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 200, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5Version', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'version', + headerAlign: "center", + align: "center", + columnLabel: '版本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 80, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5AlternativeNo', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'alternativeNo', + headerAlign: "center", + align: "left", + columnLabel: '替代编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5AlternativeDesc', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'alternativeDesc', + headerAlign: "center", + align: "left", + columnLabel: '替代描述', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5WorkCenterNo', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'workCenterNo', + headerAlign: "center", + align: "left", + columnLabel: '加工中心编码', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5WorkCenterDesc', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'workCenterDesc', + headerAlign: "center", + align: "left", + columnLabel: '加工中心名称', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 200, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5WorkCenterCost', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'workCenterCost', + headerAlign: "center", + align: "left", + columnLabel: '加工中心成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5EfficiencyFactor', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'efficiencyFactor', + headerAlign: "center", + align: "right", + columnLabel: '效率%', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5MachRunFactor', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'machRunFactor', + headerAlign: "center", + align: "right", + columnLabel: '机器单位产出', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5MachSetupTime', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'machSetupTime', + headerAlign: "center", + align: "right", + columnLabel: '调机时间', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5RunTimeDesc', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'runTimeDesc', + headerAlign: "center", + align: "center", + columnLabel: '产出单位', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5LaborRunFactor', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'laborRunFactor', + headerAlign: "center", + align: "right", + columnLabel: '人工单位产出', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5LaborSetupTime', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'laborSetupTime', + headerAlign: "center", + align: "right", + columnLabel: '人工调机时间', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5CrewSize', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'crewSize', + headerAlign: "center", + align: "right", + columnLabel: '生产过程人数', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5SetupCrewSize', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'setupCrewSize', + headerAlign: "center", + align: "right", + columnLabel: '调机过程人数', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5LaborClassNo', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'laborClassNo', + headerAlign: "center", + align: "left", + columnLabel: '人员等级', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 100, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5SetupLaborClassNo', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'setupLaborClassNo', + headerAlign: "center", + align: "left", + columnLabel: '调机过程中人员等级', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 140, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5LaborClassCost', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'laborClassCost', + headerAlign: "center", + align: "left", + columnLabel: '人员等级成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5SetupLaborClassCost', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'setupLaborClassCost', + headerAlign: "center", + align: "left", + columnLabel: '调机人员等级成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 120, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5MachineCost', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'machineCost', + headerAlign: "center", + align: "right", + columnLabel: '单位机器成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 140, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5MachineCost', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'unitManufacturingCosts', + headerAlign: "center", + align: "right", + columnLabel: '单位制造成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 140, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5LaborCosts', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'laborCosts', + headerAlign: "center", + align: "right", + columnLabel: '单位人工成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 140, + },{ + userId: this.$store.state.user.name, + functionId: 5011, + serialNumber: '5011Table5QuoteUnitCost', + tableId: "5011Table5", + tableName: "报价工艺信息", + columnProp: 'quoteUnitCost', + headerAlign: "center", + align: "right", + columnLabel: '单位报价成本', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: 'right', + columnWidth: 120, + }, + ], } }, methods:{ @@ -51,7 +496,21 @@ export default { - + + + diff --git a/src/views/modules/quote/detail/primary/quoteDetailTool.vue b/src/views/modules/quote/detail/primary/quoteDetailTool.vue index ee66751..64ac311 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailTool.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailTool.vue @@ -27,7 +27,7 @@ export default { toolDesc:"", toolQty:1, unitCost:0, - expectedServiceLife:0, + expectedServiceLife:1, quoteUnitCost:0, remark:"" }, diff --git a/src/views/modules/quote/index.vue b/src/views/modules/quote/index.vue index 16fbb19..3b5e87a 100644 --- a/src/views/modules/quote/index.vue +++ b/src/views/modules/quote/index.vue @@ -1,7 +1,7 @@