diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue
index 3e9e1f6..10d4215 100644
--- a/src/views/modules/quote/detail/quoteDetail.vue
+++ b/src/views/modules/quote/detail/quoteDetail.vue
@@ -17,6 +17,7 @@ import PartTable from "../../../../components/selector/table/partTable.vue";
import {handleQueryPart} from "../../../../api/part/partInformation";
import {updateColumnSize} from "../../../../api/table";
import QuoteDetailCalculation from "./primary/quoteDetailCalculation.vue";
+import {Decimal} from "decimal.js";
export default {
name: "quoteDetail",
@@ -40,10 +41,13 @@ export default {
type:Boolean,
default:true
},
+ height:{
+ type:[Number,String],
+ default:300
+ },
},
data(){
return{
- height: 300,
quoteDetail:{
id:null,
partNo:'',
@@ -96,6 +100,7 @@ export default {
saveQuoteDetail:{
},
+ numberProp:['adjustBomUnYield','adjustLabourCost','adjustFabricateCost','adjustMachineCost','totalCost','weighted','weighted2'],
dataList:[],
saveLoading:false,
queryLoading:false,
@@ -117,14 +122,14 @@ export default {
columnProp: 'partNo',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料编码',
+ columnLabel: 'Quotation Code',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 90
+ columnWidth: 100
},
{
userId: this.$store.state.user.name,
@@ -135,7 +140,7 @@ export default {
columnProp: 'partDesc',
headerAlign: 'center',
align: 'left',
- columnLabel: '物料名称',
+ columnLabel: 'Description',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -170,15 +175,15 @@ export default {
tableName: '报价详情信息表',
columnProp: 'qty',
headerAlign: 'center',
- align: 'left',
- columnLabel: '报价数量',
+ align: 'right',
+ columnLabel: 'MOQ',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 70
},
{
userId: this.$store.state.user.name,
@@ -189,14 +194,14 @@ export default {
columnProp: 'adjustBomUnYield',
headerAlign: 'center',
align: 'right',
- columnLabel: '报价成本',
+ columnLabel: 'FG BOM Cost',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 100
},
{
userId: this.$store.state.user.name,
@@ -214,7 +219,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 60
},
{
userId: this.$store.state.user.name,
@@ -232,7 +237,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 60
},
{
userId: this.$store.state.user.name,
@@ -250,7 +255,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 60
}
,{
userId: this.$store.state.user.name,
@@ -261,14 +266,14 @@ export default {
columnProp: 'totalCost',
headerAlign: 'center',
align: 'right',
- columnLabel: 'Total Cost(RMB.KCT)',
+ columnLabel: 'Total Cost',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 90
+ columnWidth: 70
},
{
userId: this.$store.state.user.name,
@@ -286,43 +291,25 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 70
- },
- {
- userId: this.$store.state.user.name,
- functionId: 5011,
- serialNumber: '5011Table2Weighted',
- tableId: '5011Table2',
- tableName: '报价详情信息表',
- columnProp: 'weighted',
- headerAlign: 'center',
- align: 'right',
- columnLabel: 'Weighted TP for MOQ>250K(USD/KCT)',
- columnHidden: false,
- columnImage: false,
- columnSortable: false,
- sortLv: 0,
- status: true,
- fixed: '',
- columnWidth: 130
+ columnWidth: 60
},
{
userId: this.$store.state.user.name,
functionId: 5011,
- serialNumber: '5011Table2Weighted2',
+ serialNumber: '5011Table2Type',
tableId: '5011Table2',
tableName: '报价详情信息表',
- columnProp: 'weighted2',
+ columnProp: 'type',
headerAlign: 'center',
- align: 'right',
- columnLabel: 'Weighted TP for MOQ>5M(USD/KCT)',
+ align: 'center',
+ columnLabel: 'TP',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 130
+ columnWidth: 80
},
{
userId: this.$store.state.user.name,
@@ -333,14 +320,14 @@ export default {
columnProp: 'weighted',
headerAlign: 'center',
align: 'right',
- columnLabel: 'Standard TP for MOQ>250K(USD/KCT)',
+ columnLabel: 'MOQ > 250K(USD/KCT)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 130
+ columnWidth: 83
},
{
userId: this.$store.state.user.name,
@@ -351,14 +338,14 @@ export default {
columnProp: 'weighted2',
headerAlign: 'center',
align: 'right',
- columnLabel: 'Standard TP for MOQ>5M(USD/KCT)',
+ columnLabel: 'MOQ > 5M (USD/KCT)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 130
+ columnWidth: 80
},
{
userId: this.$store.state.user.name,
@@ -368,15 +355,15 @@ export default {
tableName: '报价详情信息表',
columnProp: 'remark',
headerAlign: 'center',
- align: 'center',
- columnLabel: '备注',
+ align: 'left',
+ columnLabel: 'COMMENT',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 70
+ columnWidth: 180
},
],
partVisible:false,
@@ -622,6 +609,12 @@ export default {
this.$emit('close');
this.saveVisible = false
},
+ toFixed(val,fixed){
+ if (!val || isNaN(val) || !fixed){
+ return val
+ }
+ return new Decimal(val).toFixed(fixed)
+ }
},
watch:{
quote(newVal,oldVal){
@@ -659,11 +652,7 @@ export default {
this.handleQueryQuoteDetail();
},
mounted () {
- if (!this.authFlag){
- this.$nextTick(() => {
- this.height = window.innerHeight - 150
- })
- }
+
}
}
@@ -673,8 +662,7 @@ export default {
新增
-
+
·
-
+
-
- {{scope.row[item.columnProp] }}
-
-
- {{scope.row[item.columnProp] }}
+
+ {{ toFixed(scope.row[item.columnProp],scope.row['decimalPlace']) }}
{{ scope.row[item.columnProp] }}
@@ -855,9 +840,8 @@ export default {
.radio /deep/ .el-radio__label{
display: none;
}
-
-
diff --git a/src/views/modules/quote/detail/tpCost.vue b/src/views/modules/quote/detail/tpCost.vue
index 68e645c..447ce49 100644
--- a/src/views/modules/quote/detail/tpCost.vue
+++ b/src/views/modules/quote/detail/tpCost.vue
@@ -1,6 +1,7 @@
@@ -143,11 +405,36 @@ export default {
-
+
+
+
+
+ {{ toFixed(scope.row[item.columnProp],scope.row['decimalPlace']) }}
+
+
+ {{ scope.row[item.columnProp] }}
+
+
+
+
diff --git a/src/views/modules/quote/index.vue b/src/views/modules/quote/index.vue
index a535170..b5e19e6 100644
--- a/src/views/modules/quote/index.vue
+++ b/src/views/modules/quote/index.vue
@@ -898,10 +898,10 @@ export default {
-
+
-
+