Commit 5f36b447 authored by Marcus's avatar Marcus

后台和pda的入仓体积,最小给个0.01

http://zentao.jdshangmen.com/bug-view-1237.html
parent 613b71f9
...@@ -561,11 +561,14 @@ export default { ...@@ -561,11 +561,14 @@ export default {
}, },
handleVolume(index, val){ handleVolume(index, val){
const {boxGauge1, boxGauge2, boxGauge3} = (val === 1 ? this.tableData1 : this.tableData)[index] const {boxGauge1, boxGauge2, boxGauge3} = (val === 1 ? this.tableData1 : this.tableData)[index]
let result = ''
if (boxGauge1 && boxGauge2 && boxGauge3) { if (boxGauge1 && boxGauge2 && boxGauge3) {
(val === 1 ? this.tableData1 : this.tableData)[index].volume = ((boxGauge1 * boxGauge2 * boxGauge3) / 1000000)?.toFixed(2) || '' result = ((boxGauge1 * boxGauge2 * boxGauge3) / 1000000)?.toFixed(2) || ''
} else { } else {
(val === 1 ? this.tableData1 : this.tableData)[index].volume = 0 result = ''
} }
if (result === '0.00') result = '0.01';
(val === 1 ? this.tableData1 : this.tableData)[index].volume = result
}, },
handleSubmit() { handleSubmit() {
const orderWarehouseInItemDoList = [ const orderWarehouseInItemDoList = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment