diff --git a/src/views/modules/part/bomManagement.vue b/src/views/modules/part/bomManagement.vue
index 88a18ee..495437f 100644
--- a/src/views/modules/part/bomManagement.vue
+++ b/src/views/modules/part/bomManagement.vue
@@ -2090,7 +2090,11 @@ export default {
activated () {
if (!this.authSearch) {
- if (this.$route.params.partNo) {
+ if (this.$route.params.type === 'quote'){
+ this.searchData.partNo = this.$route.params.partNo
+ this.searchData.bomType = this.$route.params.bomType
+ this.searchData.engChgLevel = this.$route.params.engChgLevel
+ }else if (this.$route.params.partNo) {
this.searchData.partNo = this.$route.params.partNo
}
this.getDataList()
diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue
index abe6517..6cd0a2f 100644
--- a/src/views/modules/part/routingManagement.vue
+++ b/src/views/modules/part/routingManagement.vue
@@ -2050,7 +2050,11 @@ export default {
activated () {
if (!this.authSearch) {
- if (this.$route.params.partNo) {
+ if (this.$route.params.type === 'quote'){
+ this.searchData.partNo = this.$route.params.partNo
+ this.searchData.routingType = this.$route.params.routingType
+ this.searchData.routingRevision = this.$route.params.routingRevision
+ }else if (this.$route.params.partNo) {
this.searchData.partNo = this.$route.params.partNo
}
this.getDataList()
diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue
index 008fae3..0351ce4 100644
--- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue
+++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue
@@ -50,7 +50,7 @@ export default {
tableName: "报价材料信息",
columnProp: 'partNo',
headerAlign: "center",
- align: "center",
+ align: "left",
columnLabel: '产品编码',
columnHidden: false,
columnImage: false,
@@ -67,7 +67,7 @@ export default {
tableName: "报价材料信息",
columnProp: 'componentPart',
headerAlign: "center",
- align: "center",
+ align: "left",
columnLabel: '零部件编码',
columnHidden: false,
columnImage: false,
@@ -92,7 +92,7 @@ export default {
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 140,
+ columnWidth: 160,
}, {
userId: this.$store.state.user.name,
functionId: 5011,
@@ -423,6 +423,24 @@ export default {
}).catch((error) => {
this.$message.error(error);
})
+ },
+ handleJumpToBom(row){
+ if (this.$router.resolve('part-bomManagement').resolved.name === '404') {
+ this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',});
+ } else {
+ this.$emit('close')
+ let params = {
+ name: "part-bomManagement",
+ params: {
+ type:'quote',
+ partNo:row.partNo,
+ bomType:row.bomType,
+ engChgLevel:row.engChgLevel,
+ alternativeNo:row.alternativeNo,
+ }
+ }
+ this.$router.push(params)
+ }
}
},
created() {
@@ -491,8 +509,13 @@ export default {
:min-width="item.columnWidth"
:label="item.columnLabel">
- {{ scope.row[item.columnProp] }}
-
+
+ {{ scope.row[item.columnProp] }}
+
+
+ {{ scope.row[item.columnProp] }}
+
+
diff --git a/src/views/modules/quote/detail/primary/quoteDetailCost.vue b/src/views/modules/quote/detail/primary/quoteDetailCost.vue
index 4b1482b..d196bf1 100644
--- a/src/views/modules/quote/detail/primary/quoteDetailCost.vue
+++ b/src/views/modules/quote/detail/primary/quoteDetailCost.vue
@@ -144,18 +144,34 @@ export default {
this.$message.error(error);
this.computeLoading = false
})
+ },
+ handleValidate(){
+ this.$refs.costForm.validate((valid,obj)=>{
+ if (!valid){
+ let i = 1;
+ for (let item in obj){
+ this.$message.error(obj[item][0].message);
+ if (i === 1){
+ return
+ }
+ i++;
+ }
+ }
+ })
}
},
watch:{
'quoteDetail.adjustPartCost'(newValue, oldValue){
if (newValue === undefined || newValue === null){
- this.quoteDetail.adjustPartCost = 0;
+ this.$set(this.quoteDetail, 'adjustPartCost', 0);
}
this.computeTotalCost();
},
'quoteDetail.adjustBomUnYield'(newValue, oldValue){
+ console.log(oldValue)
+ console.log(newValue)
if (newValue === undefined || newValue === null){
- this.quoteDetail.adjustPartCost = 0;
+ this.quoteDetail.adjustBomUnYield = 0;
}
this.computeQuoteTotalCost();
},
@@ -242,14 +258,13 @@ export default {
显示系统自动计算结果
-