diff --git a/src/views/ManufacturingCenter/ProcessPlanning/index.vue b/src/views/ManufacturingCenter/ProcessPlanning/index.vue index 34b51dc5..ac10d562 100644 --- a/src/views/ManufacturingCenter/ProcessPlanning/index.vue +++ b/src/views/ManufacturingCenter/ProcessPlanning/index.vue @@ -564,6 +564,7 @@ export default { return { Result1: '', Result2: '', + Result3: '', Length: '', Width: '', height1: '', @@ -684,7 +685,7 @@ export default { if (this.partNumValue === '' || this.partNumValue === null) { this.$message.error('请先选择一个零件') } else { - this.Result1 = ' 长:' + this.Length + ' 宽:' + this.Width + ' 高:' + this.height1 + ' 重量:' + parseInt(this.Length) * parseInt(this.Width) * parseFloat(this.height1) + this.Result1 = '长:' + this.Length + ' 宽:' + this.Width + ' 高:' + this.height1 + ' 重量:' + parseInt(this.Length) * parseInt(this.Width) * parseFloat(this.height1) WeightCopy(this.partNumValue, this.Result1).then(response => { this.searchDetail() }) @@ -697,8 +698,10 @@ export default { } else { this.Result2 = Math.pow(parseInt(this.diameter) / 2, 2) * parseFloat(this.height2) * Math.PI this.Result2 = this.Result2.toFixed(2) - console.log(this.Result2) - console.log(Math.PI) + this.Result3 = '直径:' + this.diameter + ' 高:' + this.height2 + ' 重量:' + this.Result2 + WeightCopy(this.partNumValue, this.Result3).then(response => { + this.searchDetail() + }) } }, clearDetail() {