数量设备

This commit is contained in:
hongchao 2025-03-14 09:05:15 +08:00
parent a9f7adc541
commit 52f11697b9
3 changed files with 5 additions and 2 deletions

View File

@ -86,6 +86,7 @@
<van-stepper
button-size="16"
:min="goods.num"
:max="goods.deviceCount"
v-model="goods.num"
v-if="!isCartManage"
@ -459,7 +460,7 @@ const getDeviceDetailsData = async () => {
e.devInfoVoList.forEach((j) => {
e.isChecked = false
j.days = 0
j.num = 1
j.num = j.deviceCount ? j.deviceCount: 1
j.costs = 0
j.rentBeginTime = ''
j.rentEndTime = ''

View File

@ -161,6 +161,7 @@ const goodsLabel = ref([
{ goods_label: '装备型号:', label_content: 'typeName' },
{ goods_label: '规格:', label_content: '' },
{ goods_label: '品牌:', label_content: 'brand' },
{ goods_label: '上架数量:', label_content: 'deviceCount' },
{ goods_label: '出厂日期:', label_content: 'productionDate' },
{ goods_label: '功能特点:', label_content: '' },
])

View File

@ -38,6 +38,7 @@
</text>
<van-stepper
button-size="16"
:min="item.num"
:max="item.deviceCount"
v-model="item.num"
/>
@ -293,7 +294,7 @@ const getDeviceDetailsData = async (id) => {
rentBeginTime: '',
rentEndTime: '',
days: 0,
num: 1,
num: res.deviceCount ? res.deviceCount : 1,
checked: false,
...res,
}