数量设备
This commit is contained in:
parent
a9f7adc541
commit
52f11697b9
|
|
@ -86,6 +86,7 @@
|
||||||
|
|
||||||
<van-stepper
|
<van-stepper
|
||||||
button-size="16"
|
button-size="16"
|
||||||
|
:min="goods.num"
|
||||||
:max="goods.deviceCount"
|
:max="goods.deviceCount"
|
||||||
v-model="goods.num"
|
v-model="goods.num"
|
||||||
v-if="!isCartManage"
|
v-if="!isCartManage"
|
||||||
|
|
@ -459,7 +460,7 @@ const getDeviceDetailsData = async () => {
|
||||||
e.devInfoVoList.forEach((j) => {
|
e.devInfoVoList.forEach((j) => {
|
||||||
e.isChecked = false
|
e.isChecked = false
|
||||||
j.days = 0
|
j.days = 0
|
||||||
j.num = 1
|
j.num = j.deviceCount ? j.deviceCount: 1
|
||||||
j.costs = 0
|
j.costs = 0
|
||||||
j.rentBeginTime = ''
|
j.rentBeginTime = ''
|
||||||
j.rentEndTime = ''
|
j.rentEndTime = ''
|
||||||
|
|
|
||||||
|
|
@ -161,6 +161,7 @@ const goodsLabel = ref([
|
||||||
{ goods_label: '装备型号:', label_content: 'typeName' },
|
{ goods_label: '装备型号:', label_content: 'typeName' },
|
||||||
{ goods_label: '规格:', label_content: '' },
|
{ goods_label: '规格:', label_content: '' },
|
||||||
{ goods_label: '品牌:', label_content: 'brand' },
|
{ goods_label: '品牌:', label_content: 'brand' },
|
||||||
|
{ goods_label: '上架数量:', label_content: 'deviceCount' },
|
||||||
{ goods_label: '出厂日期:', label_content: 'productionDate' },
|
{ goods_label: '出厂日期:', label_content: 'productionDate' },
|
||||||
{ goods_label: '功能特点:', label_content: '' },
|
{ goods_label: '功能特点:', label_content: '' },
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
</text>
|
</text>
|
||||||
<van-stepper
|
<van-stepper
|
||||||
button-size="16"
|
button-size="16"
|
||||||
|
:min="item.num"
|
||||||
:max="item.deviceCount"
|
:max="item.deviceCount"
|
||||||
v-model="item.num"
|
v-model="item.num"
|
||||||
/>
|
/>
|
||||||
|
|
@ -293,7 +294,7 @@ const getDeviceDetailsData = async (id) => {
|
||||||
rentBeginTime: '',
|
rentBeginTime: '',
|
||||||
rentEndTime: '',
|
rentEndTime: '',
|
||||||
days: 0,
|
days: 0,
|
||||||
num: 1,
|
num: res.deviceCount ? res.deviceCount : 1,
|
||||||
checked: false,
|
checked: false,
|
||||||
...res,
|
...res,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue