From f60d8558440b1dd956c35ef61850f3aeda98ba1c Mon Sep 17 00:00:00 2001
From: qiezi <15576055375@163.com>
Date: Wed, 7 May 2025 13:10:19 +0800
Subject: [PATCH] 20240507
---
.../modules/quote/detail/quoteDetail.vue | 56 +++--
.../modules/quote/detail/quoteGroupDetail.vue | 55 +++--
src/views/modules/quote/detail/tpCost.vue | 198 ++++++++++--------
3 files changed, 181 insertions(+), 128 deletions(-)
diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue
index 10d4215..6a274d5 100644
--- a/src/views/modules/quote/detail/quoteDetail.vue
+++ b/src/views/modules/quote/detail/quoteDetail.vue
@@ -129,7 +129,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 100
+ columnWidth: 68
},
{
userId: this.$store.state.user.name,
@@ -147,7 +147,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 170
+ columnWidth: 180
},
{
userId: this.$store.state.user.name,
@@ -165,7 +165,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 48
},
{
userId: this.$store.state.user.name,
@@ -201,7 +201,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 100
+ columnWidth: 60
},
{
userId: this.$store.state.user.name,
@@ -219,7 +219,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 55
},
{
userId: this.$store.state.user.name,
@@ -237,7 +237,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 55
},
{
userId: this.$store.state.user.name,
@@ -255,9 +255,27 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
- }
- ,{
+ columnWidth: 55
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5011,
+ serialNumber: '5011Table2AdjustToolCost',
+ tableId: '5011Table2',
+ tableName: '报价详情信息表',
+ columnProp: 'adjustToolCost',
+ headerAlign: 'center',
+ align: 'right',
+ columnLabel: 'Tooling Cost',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 55
+ },
+ {
userId: this.$store.state.user.name,
functionId: 5011,
serialNumber: '5011Table2TotalCost',
@@ -266,14 +284,14 @@ export default {
columnProp: 'totalCost',
headerAlign: 'center',
align: 'right',
- columnLabel: 'Total Cost',
+ columnLabel: 'Total Cost(RMB/KCT)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 70
+ columnWidth: 75
},
{
userId: this.$store.state.user.name,
@@ -284,14 +302,14 @@ export default {
columnProp: 'quoteProfitRate',
headerAlign: 'center',
align: 'right',
- columnLabel: 'markup(%)',
+ columnLabel: 'markup (%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 54
},
{
userId: this.$store.state.user.name,
@@ -309,7 +327,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 65
},
{
userId: this.$store.state.user.name,
@@ -345,7 +363,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 75
},
{
userId: this.$store.state.user.name,
@@ -363,7 +381,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 180
+ columnWidth: 290
},
],
partVisible:false,
@@ -662,8 +680,8 @@ export default {
新增
-
-
+
+
diff --git a/src/views/modules/quote/detail/quoteGroupDetail.vue b/src/views/modules/quote/detail/quoteGroupDetail.vue
index 4e2806a..b3e7115 100644
--- a/src/views/modules/quote/detail/quoteGroupDetail.vue
+++ b/src/views/modules/quote/detail/quoteGroupDetail.vue
@@ -127,7 +127,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 100
+ columnWidth: 68
},
{
userId: this.$store.state.user.name,
@@ -145,7 +145,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 170
+ columnWidth: 180
},
{
userId: this.$store.state.user.name,
@@ -163,7 +163,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 48
},
{
userId: this.$store.state.user.name,
@@ -199,7 +199,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 100
+ columnWidth: 60
},
{
userId: this.$store.state.user.name,
@@ -217,7 +217,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 55
},
{
userId: this.$store.state.user.name,
@@ -235,7 +235,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 55
},
{
userId: this.$store.state.user.name,
@@ -253,9 +253,27 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
- }
- ,{
+ columnWidth: 55
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5011,
+ serialNumber: '5011Table2AdjustToolCost',
+ tableId: '5011Table2',
+ tableName: '报价详情信息表',
+ columnProp: 'adjustToolCost',
+ headerAlign: 'center',
+ align: 'right',
+ columnLabel: 'Tooling Cost',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 55
+ },
+ {
userId: this.$store.state.user.name,
functionId: 5011,
serialNumber: '5011Table2TotalCost',
@@ -264,14 +282,14 @@ export default {
columnProp: 'totalCost',
headerAlign: 'center',
align: 'right',
- columnLabel: 'Total Cost',
+ columnLabel: 'Total Cost(RMB/KCT)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 70
+ columnWidth: 75
},
{
userId: this.$store.state.user.name,
@@ -282,14 +300,14 @@ export default {
columnProp: 'quoteProfitRate',
headerAlign: 'center',
align: 'right',
- columnLabel: 'markup(%)',
+ columnLabel: 'markup (%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 54
},
{
userId: this.$store.state.user.name,
@@ -307,7 +325,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 65
},
{
userId: this.$store.state.user.name,
@@ -343,7 +361,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 75
},
{
userId: this.$store.state.user.name,
@@ -361,7 +379,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 180
+ columnWidth: 290
},
],
partVisible:false,
@@ -645,7 +663,7 @@ export default {
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed === ''?false:item.fixed"
- :min-width="item.columnWidth"
+ :width="item.columnWidth"
:label="item.columnLabel">
@@ -790,7 +808,6 @@ export default {
-
{{ scope.row[item.columnProp] }}
diff --git a/src/views/modules/quote/detail/tpCost.vue b/src/views/modules/quote/detail/tpCost.vue
index 447ce49..86427a3 100644
--- a/src/views/modules/quote/detail/tpCost.vue
+++ b/src/views/modules/quote/detail/tpCost.vue
@@ -37,7 +37,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 100
+ columnWidth: 68
},
{
userId: this.$store.state.user.name,
@@ -55,7 +55,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 210
+ columnWidth: 180
},
{
userId: this.$store.state.user.name,
@@ -73,7 +73,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 48
},
{
userId: this.$store.state.user.name,
@@ -109,7 +109,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 100
+ columnWidth: 60
},
{
userId: this.$store.state.user.name,
@@ -127,7 +127,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 55
},
{
userId: this.$store.state.user.name,
@@ -145,7 +145,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 55
},
{
userId: this.$store.state.user.name,
@@ -163,9 +163,27 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
- }
- ,{
+ columnWidth: 55
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 5011,
+ serialNumber: '5011Table2AdjustToolCost',
+ tableId: '5011Table2',
+ tableName: '报价详情信息表',
+ columnProp: 'adjustToolCost',
+ headerAlign: 'center',
+ align: 'right',
+ columnLabel: 'Tooling Cost',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 55
+ },
+ {
userId: this.$store.state.user.name,
functionId: 5011,
serialNumber: '5011Table2TotalCost',
@@ -174,14 +192,14 @@ export default {
columnProp: 'totalCost',
headerAlign: 'center',
align: 'right',
- columnLabel: 'Total Cost',
+ columnLabel: 'Total Cost(RMB/KCT)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 70
+ columnWidth: 75
},
{
userId: this.$store.state.user.name,
@@ -192,14 +210,14 @@ export default {
columnProp: 'quoteProfitRate',
headerAlign: 'center',
align: 'right',
- columnLabel: 'markup(%)',
+ columnLabel: 'markup (%)',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 60
+ columnWidth: 54
},
{
userId: this.$store.state.user.name,
@@ -217,7 +235,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 65
},
{
userId: this.$store.state.user.name,
@@ -253,7 +271,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 80
+ columnWidth: 75
},
{
userId: this.$store.state.user.name,
@@ -271,7 +289,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 260
+ columnWidth: 448
},
],
}
@@ -303,79 +321,79 @@ export default {
this.$message.error(error);
})
},
- alignIsNan(key,arr){
- for (let i = 0; i < arr.length; i++) {
- let item = arr[i];
- if (isNaN(item[key])){
- return 'left';
- }
- }
- return 'right';
- },
- flexColumnWidth (str, arr1, flag = 'max') {
- str = str + ''
- let columnContent = ''
- if (flag === 'equal') {
- // 获取该列中第一个不为空的数据(内容)
- for (let i = 0; i < arr1.length; i++) {
- if (arr1[i][str].length > 0) {
- // console.log('该列数据[0]:', arr1[0][str])
- columnContent = arr1[i][str]
- break
- }
- }
- } else {
- // 获取该列中最长的数据(内容)
- let index = 0
- for (let i = 0; i < arr1.length; i++) {
- if (arr1[i][str] === null) {
- continue
- }
- const now_temp = arr1[i][str] + ''
- const max_temp = arr1[index][str] + ''
- if (now_temp.length > max_temp.length) {
- index = i
- }
- }
- columnContent = arr1[index][str]+''
- }
- let flexWidth = 0
- if (columnContent && columnContent.length > 0){
- for (const char of columnContent) {
- if ((char >= 'A' && char <= 'Z') || (char >= 'a' && char <= 'z')) {
- // 如果是英文字符,为字符分配8个单位宽度
- flexWidth += 8
- } else if (char >= '\u4e00' && char <= '\u9fa5') {
- // 如果是中文字符,为字符分配15个单位宽度
- flexWidth += 15
- } else {
- // 其他种类字符,为字符分配8个单位宽度
- flexWidth += 8
- }
- }
- }
- let flexWidthStr = 0
- for (const char of str){
- if ((char >= 'A' && char <= 'Z') || (char >= 'a' && char <= 'z')) {
- // 如果是英文字符,为字符分配8个单位宽度
- flexWidthStr += 8
- } else if (char >= '\u4e00' && char <= '\u9fa5') {
- // 如果是中文字符,为字符分配15个单位宽度
- flexWidthStr += 15
- } else {
- // 其他种类字符,为字符分配8个单位宽度
- flexWidthStr += 8
- }
- }
- if (flexWidthStr > flexWidth){
- flexWidth = flexWidthStr
- }
- if (flexWidth < 120) {
- // 设置最小宽度
- flexWidth = 120
- }
- return flexWidth + 'px'
- },
+ // alignIsNan(key,arr){
+ // for (let i = 0; i < arr.length; i++) {
+ // let item = arr[i];
+ // if (isNaN(item[key])){
+ // return 'left';
+ // }
+ // }
+ // return 'right';
+ // },
+ // flexColumnWidth (str, arr1, flag = 'max') {
+ // str = str + ''
+ // let columnContent = ''
+ // if (flag === 'equal') {
+ // // 获取该列中第一个不为空的数据(内容)
+ // for (let i = 0; i < arr1.length; i++) {
+ // if (arr1[i][str].length > 0) {
+ // // console.log('该列数据[0]:', arr1[0][str])
+ // columnContent = arr1[i][str]
+ // break
+ // }
+ // }
+ // } else {
+ // // 获取该列中最长的数据(内容)
+ // let index = 0
+ // for (let i = 0; i < arr1.length; i++) {
+ // if (arr1[i][str] === null) {
+ // continue
+ // }
+ // const now_temp = arr1[i][str] + ''
+ // const max_temp = arr1[index][str] + ''
+ // if (now_temp.length > max_temp.length) {
+ // index = i
+ // }
+ // }
+ // columnContent = arr1[index][str]+''
+ // }
+ // let flexWidth = 0
+ // if (columnContent && columnContent.length > 0){
+ // for (const char of columnContent) {
+ // if ((char >= 'A' && char <= 'Z') || (char >= 'a' && char <= 'z')) {
+ // // 如果是英文字符,为字符分配8个单位宽度
+ // flexWidth += 8
+ // } else if (char >= '\u4e00' && char <= '\u9fa5') {
+ // // 如果是中文字符,为字符分配15个单位宽度
+ // flexWidth += 15
+ // } else {
+ // // 其他种类字符,为字符分配8个单位宽度
+ // flexWidth += 8
+ // }
+ // }
+ // }
+ // let flexWidthStr = 0
+ // for (const char of str){
+ // if ((char >= 'A' && char <= 'Z') || (char >= 'a' && char <= 'z')) {
+ // // 如果是英文字符,为字符分配8个单位宽度
+ // flexWidthStr += 8
+ // } else if (char >= '\u4e00' && char <= '\u9fa5') {
+ // // 如果是中文字符,为字符分配15个单位宽度
+ // flexWidthStr += 15
+ // } else {
+ // // 其他种类字符,为字符分配8个单位宽度
+ // flexWidthStr += 8
+ // }
+ // }
+ // if (flexWidthStr > flexWidth){
+ // flexWidth = flexWidthStr
+ // }
+ // if (flexWidth < 120) {
+ // // 设置最小宽度
+ // flexWidth = 120
+ // }
+ // return flexWidth + 'px'
+ // },
toFixed(val,fixed){
if (!val || isNaN(val) || !fixed){
return val
@@ -414,7 +432,7 @@ export default {
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed === ''?false:item.fixed"
- :min-width="item.columnWidth"
+ :width="item.columnWidth"
:label="item.columnLabel">