|
@ -36,7 +36,7 @@ |
|
|
<text>数量 : </text> |
|
|
<text>数量 : </text> |
|
|
<view class="uni-flex uni-row uni-center" style="align-items: center;"> |
|
|
<view class="uni-flex uni-row uni-center" style="align-items: center;"> |
|
|
<input class="qty_input" v-model="allQty" :focus="true" type="number" |
|
|
<input class="qty_input" v-model="allQty" :focus="true" type="number" |
|
|
@confirm="confirm()" @input="checkNum" :maxlength="maxlength" disabled :style="{background:'#f5f5f5',color:'#bbbbbb'}"/> |
|
|
@confirm="confirm()" @input="checkNum" :maxlength="maxlength" :disabled="!allowEditQty" :style="allowEditQty?{}:{background:'#f5f5f5',color:'#bbbbbb'}"/> |
|
|
<uom :uom="dataContent.uom"></uom> |
|
|
<uom :uom="dataContent.uom"></uom> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -119,7 +119,11 @@ |
|
|
queryBalance: { |
|
|
queryBalance: { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: true |
|
|
default: true |
|
|
} |
|
|
}, |
|
|
|
|
|
allowEditQty: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: true |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
'allQty'(newVal){ |
|
|
'allQty'(newVal){ |
|
|