uu
This commit is contained in:
parent
0c91627370
commit
56b3998a60
@ -29,8 +29,11 @@
|
|||||||
<tpx-select v-model:value="modelInfo.unit" :list="goodNumUnitList"
|
<tpx-select v-model:value="modelInfo.unit" :list="goodNumUnitList"
|
||||||
mode="drop" :dropRightWidth="300"
|
mode="drop" :dropRightWidth="300"
|
||||||
>
|
>
|
||||||
<u-row custom-style="gap: 20rpx;padding: 0 6rpx;" justify="between">
|
<u-row custom-style="gap: 6rpx;padding: 0 6rpx;" justify="between">
|
||||||
<tpx-text-dic :value="modelInfo.unit" :list="goodNumUnitList" :placeholder="goodNumUnitList[0].title"></tpx-text-dic>
|
<tpx-text-dic :value="modelInfo.unit" :list="goodNumUnitList" :placeholder="goodNumUnitList[0].title"></tpx-text-dic>
|
||||||
|
<u-icon :name="'arrow-down-fill'"
|
||||||
|
size="18" custom-style=""
|
||||||
|
></u-icon>
|
||||||
</u-row>
|
</u-row>
|
||||||
</tpx-select>
|
</tpx-select>
|
||||||
</template>
|
</template>
|
||||||
@ -61,9 +64,10 @@
|
|||||||
let { cargoList, parcelQty } = this.submitVal
|
let { cargoList, parcelQty } = this.submitVal
|
||||||
let curQty = (+this.modelInfo.cargoQty) || 0
|
let curQty = (+this.modelInfo.cargoQty) || 0
|
||||||
let qtMaxNum = parcelQty + curQty
|
let qtMaxNum = parcelQty + curQty
|
||||||
cargoList.map(t=> {
|
cargoList.map(t=> {
|
||||||
if(t.cargoQty) {
|
let _itemQty = (+t.cargoQty) || 0
|
||||||
qtMaxNum = qtMaxNum - t.cargoQty
|
if(_itemQty) {
|
||||||
|
qtMaxNum = qtMaxNum - _itemQty
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(qtMaxNum < 0) {
|
if(qtMaxNum < 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user