diff --git a/src/api/quote/quoteDetail.js b/src/api/quote/quoteDetail.js
index 0d09d42..5699cc3 100644
--- a/src/api/quote/quoteDetail.js
+++ b/src/api/quote/quoteDetail.js
@@ -15,3 +15,7 @@ export const queryQuoteDetailAllCost = (data) => createAPI(`/quote/detail/cost`,
export const queryQuoteDetailYield = (data) => createAPI(`/quote/detail/yield`,'post',data)
export const queryQuoteDetailReport = (data) => createAPI(`/quote/detail/report/${data.no}/${data.size}`,'post',data)
+
+export const queryQuoteDetailReportOverall = (data) => createAPI(`/quote/detail/report/overall`,'post',data)
+export const queryQuoteDetailReportRM = (data) => createAPI(`/quote/detail/report/rm`,'post',data)
+
diff --git a/src/views/modules/fanuc/labor.vue b/src/views/modules/fanuc/labor.vue
index ecca93a..e55c5a1 100644
--- a/src/views/modules/fanuc/labor.vue
+++ b/src/views/modules/fanuc/labor.vue
@@ -220,8 +220,8 @@
width="100"
label="操作">
- 修改
- 删除
+ 修改
+ 删除
@@ -231,12 +231,12 @@
-
-
-
+
+
+
diff --git a/src/views/modules/quote/detail/breakdownCost.vue b/src/views/modules/quote/detail/breakdownCost.vue
new file mode 100644
index 0000000..a4fe201
--- /dev/null
+++ b/src/views/modules/quote/detail/breakdownCost.vue
@@ -0,0 +1,482 @@
+
+
+
+
+
+
+
+
+
+ {{new Decimal(scope.row[item.columnProp] * 100).toFixed(2)}}%
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
+
+
+
+
+
+
+
+ {{new Decimal(scope.row[item.columnProp] * 100).toFixed(2)}}%
+
+
+ {{ new Decimal(scope.row['rmCostStandard']/ subtotalCostStd * 100).toFixed(0)}}%
+
+
+ {{ new Decimal(scope.row['rmCostQuote']/ subtotalCostQuote * 100).toFixed(0)}}%
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue
index edd4a19..008fae3 100644
--- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue
+++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue
@@ -206,24 +206,6 @@ export default {
columnProp: 'actualPrice',
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: '5011Table4QuotePrice',
- tableId: "5011Table4",
- tableName: "报价材料信息",
- columnProp: 'quotePrice',
- headerAlign: "center",
- align: "right",
columnLabel: '单位报价成本',
columnHidden: false,
columnImage: false,
@@ -260,25 +242,7 @@ export default {
columnProp: 'actualQuotePrice',
headerAlign: "center",
align: "right",
- columnLabel: '材料实际总成本',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: 'right',
- columnWidth: 100,
- },
- {
- userId: this.$store.state.user.name,
- functionId: 5011,
- serialNumber: '5011Table4AllQuotePrice',
- tableId: "5011Table4",
- tableName: "报价材料信息",
- columnProp: 'allQuotePrice',
- headerAlign: "center",
- align: "right",
- columnLabel: '报价成本总成本',
+ columnLabel: '材料报价总成本',
columnHidden: false,
columnImage: false,
columnSortable: false,
diff --git a/src/views/modules/quote/detail/primary/quoteDetailCost.vue b/src/views/modules/quote/detail/primary/quoteDetailCost.vue
index b6b03a6..3525dae 100644
--- a/src/views/modules/quote/detail/primary/quoteDetailCost.vue
+++ b/src/views/modules/quote/detail/primary/quoteDetailCost.vue
@@ -55,7 +55,6 @@ export default {
this.quoteDetail.totalCost =
this.quoteDetail.adjustPartCost +
this.quoteDetail.adjustBomUnYield +
- this.quoteDetail.adjustQuoteCost +
this.quoteDetail.adjustMachineCost +
this.quoteDetail.adjustFabricateCost +
this.quoteDetail.adjustLabourCost +
@@ -90,8 +89,6 @@ export default {
this.quoteDetail.adjustPartCost = data.row.unitQuotePrice;
this.quoteDetail.bomUnYield = data.row.actualQuotePrice;
this.quoteDetail.adjustBomUnYield = data.row.actualQuotePrice;
- this.quoteDetail.quoteCost = data.row.quoteCost;
- this.quoteDetail.adjustQuoteCost = data.row.quoteCost;
this.quoteDetail.labourCost = data.row.labourCost;
this.quoteDetail.adjustLabourCost = data.row.labourCost;
this.quoteDetail.machineCost = data.row.machineCost;
@@ -126,12 +123,6 @@ export default {
}
this.computeTotalCost();
},
- 'quoteDetail.adjustQuoteCost'(newValue, oldValue){
- if (newValue === undefined || newValue === null){
- this.quoteDetail.adjustQuoteCost = 0;
- }
- this.computeTotalCost();
- },
'quoteDetail.adjustMachineCost'(newValue, oldValue){
if (newValue === undefined || newValue === null){
this.quoteDetail.adjustMachineCost = 0;
@@ -193,7 +184,7 @@ export default {
diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue
index 9050ee4..4d18e35 100644
--- a/src/views/modules/quote/detail/quoteDetail.vue
+++ b/src/views/modules/quote/detail/quoteDetail.vue
@@ -152,24 +152,6 @@ export default {
columnProp: 'bomUnYield',
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: '5011Table2QuoteCost',
- tableId: '5011Table2',
- tableName: '报价详情信息表',
- columnProp: 'quoteCost',
- headerAlign: 'center',
- align: 'right',
columnLabel: '计算后材料报价成本',
columnHidden: false,
columnImage: false,
@@ -277,24 +259,6 @@ export default {
columnProp: 'adjustBomUnYield',
headerAlign: 'center',
align: 'right',
- columnLabel: '调整后材料实际成本',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 130
- },
- {
- userId: this.$store.state.user.name,
- functionId: 5011,
- serialNumber: '5011Table2AdjustQuoteCost',
- tableId: '5011Table2',
- tableName: '报价详情信息表',
- columnProp: 'adjustQuoteCost',
- headerAlign: 'center',
- align: 'right',
columnLabel: '调整后材料报价成本',
columnHidden: false,
columnImage: false,
diff --git a/src/views/modules/quote/quoteDetailReport.vue b/src/views/modules/quote/quoteDetailReport.vue
index 90d84e3..9f5f476 100644
--- a/src/views/modules/quote/quoteDetailReport.vue
+++ b/src/views/modules/quote/quoteDetailReport.vue
@@ -3,13 +3,15 @@
import {getSiteAndBuByUserName} from "../../../api/qc/qc";
import {queryQuoteDetailReport} from "../../../api/quote/quoteDetail";
import {getItemListByInquiryPartAndCodeNo} from "../../../api/inquiry/inquiryDetail";
+import BreakdownCost from "./detail/breakdownCost.vue";
export default {
name: "quoteDetailReport",
+ components: {BreakdownCost},
props:{
height:{
type:[String,Number],
- default: "40vh"
+ default: "38vh"
}
},
data(){
@@ -582,9 +584,9 @@ export default {
-
-
-
+
+
+