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"> 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 { 显示系统自动计算结果 -
系统自动计算结果(料工费/工具) - + @@ -288,13 +303,13 @@ export default { style="margin-top: 5px;border: 1px solid #777;"> 调整后成本(料工费/工具) - + - + @@ -354,13 +369,13 @@ export default { v-model="quoteDetail.otherCost" :disabled="quoteDetail.status === '下达'" :step="0" :precision="4" :min="0"/> - + - + @@ -371,25 +386,25 @@ export default {
利润 - + - + - + - + @@ -399,7 +414,7 @@ export default {
最终价格 - + - + diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue index f2f2abf..17310f4 100644 --- a/src/views/modules/quote/detail/quoteDetail.vue +++ b/src/views/modules/quote/detail/quoteDetail.vue @@ -847,6 +847,7 @@ export default { }) }, handleSaveQuoteDetailClick(){ + // this.$refs.cost.handleValidate(); this.$refs.saveQuoteDetailForm.validate((valid,obj) => { if (valid){ if (this.saveQuoteDetail.id){ @@ -1030,7 +1031,7 @@ export default { - + @@ -1038,10 +1039,10 @@ export default { - + - + @@ -1050,7 +1051,7 @@ export default { - +