From 79c8ea1d5f9ce2650db147355c1f9d4f637ef7a6 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Fri, 11 Jan 2019 15:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B6=E4=BB=B6=E5=B7=A5=E8=89=BA=E5=88=B6?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ManufacturingCenter/ProcessPlanning/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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() {