零件工艺制定

This commit is contained in:
zhangdingyu
2019-01-11 15:59:25 +08:00
parent 31f6ddd8b4
commit 79c8ea1d5f

View File

@@ -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() {