|
|
@ -14,11 +14,11 @@ |
|
|
|
<view class="uni-flex uni-column" style="background-color: white; height:60%;"> |
|
|
|
<view class="uni-flex uni-column "> |
|
|
|
<view class="uni-flex uni-row space-between padding title "> |
|
|
|
<text>标包个数 : </text> |
|
|
|
<text>包装数量 : </text> |
|
|
|
<view class="uni-flex uni-row u-col-center"> |
|
|
|
<uni-number-box @change="calcQty($event,stdCount)" :value="stdCount"> |
|
|
|
</uni-number-box> |
|
|
|
<uom :uom="dataContent.uom"></uom> |
|
|
|
<!-- <uom :uom="dataContent.uom"></uom --> |
|
|
|
<!-- <uom :uom="dataContent.packUnit"></uom> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -94,9 +94,7 @@ |
|
|
|
maxlength: 10 |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
|
|
|
|
}, |
|
|
@ -119,6 +117,18 @@ |
|
|
|
default: false |
|
|
|
} |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
'allQty'(newVal){ |
|
|
|
if(newVal % Number(this.dataContent.packQty)>0){ |
|
|
|
this.stdCount = Math.floor(Number(newVal)/Number(this.dataContent.packQty))+1 |
|
|
|
|
|
|
|
}else{ |
|
|
|
this.stdCount = Math.floor(Number(newVal)/Number(this.dataContent.packQty)) |
|
|
|
|
|
|
|
} |
|
|
|
console.log('allQty===',newVal) |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
checkNum(e) { |
|
|
|
let value = e.detail.value; |
|
|
|