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