|
@@ -13,25 +13,27 @@
|
|
|
|
|
|
<ItemForm v-if="nurseMethod != 1" label="喂奶量">
|
|
|
<template #default>
|
|
|
- <wd-input
|
|
|
- no-border
|
|
|
- type="number"
|
|
|
- placeholder="请填写"
|
|
|
- size="large"
|
|
|
- maxlength="30"
|
|
|
- v-model="nurseAmount"
|
|
|
- >
|
|
|
- <!-- @input="handleChange" -->
|
|
|
- <template #suffix>ml</template>
|
|
|
- </wd-input>
|
|
|
- <view v-if="nurseAmountList.length" class="px-3 pt-3 flex justify-start">
|
|
|
- <view
|
|
|
- v-for="item in nurseAmountList"
|
|
|
- :key="item"
|
|
|
- @click="nurseAmount = item"
|
|
|
- class="box-border py-[4rpx] px-2 text-xs bg-[#F3F3F3] mr-2 rounded-full"
|
|
|
+ <view class="px-4 pt-2">
|
|
|
+ <wd-input
|
|
|
+ no-border
|
|
|
+ type="number"
|
|
|
+ placeholder="请填写"
|
|
|
+ maxlength="30"
|
|
|
+ v-model="nurseAmount"
|
|
|
>
|
|
|
- {{ item }}
|
|
|
+ <!-- @input="handleChange" -->
|
|
|
+ <template #suffix><text class="text-sm text-[#333]">ml</text></template>
|
|
|
+ </wd-input>
|
|
|
+
|
|
|
+ <view v-if="nurseAmountList.length" class="pt-3 flex justify-start overflow-x-auto">
|
|
|
+ <view
|
|
|
+ v-for="item in nurseAmountList"
|
|
|
+ :key="item"
|
|
|
+ @click="nurseAmount = item"
|
|
|
+ class="box-border py-[4rpx] px-2 text-xs bg-[#F3F3F3] mr-2 rounded-full"
|
|
|
+ >
|
|
|
+ {{ item }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -62,24 +64,25 @@
|
|
|
<template v-if="type == 2">
|
|
|
<ItemForm label="辅食名称">
|
|
|
<template #default>
|
|
|
- <wd-input
|
|
|
- no-border
|
|
|
- type="number"
|
|
|
- placeholder="请填写"
|
|
|
- size="large"
|
|
|
- maxlength="30"
|
|
|
- v-model="complementaryName"
|
|
|
- >
|
|
|
- <!-- @input="handleChange" -->
|
|
|
- </wd-input>
|
|
|
- <view v-if="nurseAmountList.length" class="px-3 pt-3 flex justify-start">
|
|
|
- <view
|
|
|
- v-for="item in nurseAmountList"
|
|
|
- :key="item"
|
|
|
- @click="complementaryName = item"
|
|
|
- class="box-border py-[4rpx] px-2 text-xs bg-[#F3F3F3] mr-2 rounded-full"
|
|
|
+ <view class="px-4 pt-2">
|
|
|
+ <wd-input
|
|
|
+ no-border
|
|
|
+ type="number"
|
|
|
+ placeholder="请填写"
|
|
|
+ maxlength="30"
|
|
|
+ v-model="complementaryName"
|
|
|
>
|
|
|
- {{ item }}
|
|
|
+ <!-- @input="handleChange" -->
|
|
|
+ </wd-input>
|
|
|
+ <view v-if="nurseAmountList.length" class="pt-3 flex justify-start overflow-x-auto">
|
|
|
+ <view
|
|
|
+ v-for="item in nurseAmountList"
|
|
|
+ :key="item"
|
|
|
+ @click="complementaryName = item"
|
|
|
+ class="box-border py-[4rpx] px-2 text-xs bg-[#F3F3F3] mr-2 rounded-full"
|
|
|
+ >
|
|
|
+ {{ item }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -147,26 +150,30 @@
|
|
|
|
|
|
<template v-if="type == 5">
|
|
|
<ItemForm label="吸奶量">
|
|
|
+ <!-- size="large" -->
|
|
|
<template #default>
|
|
|
- <wd-input
|
|
|
- no-border
|
|
|
- type="number"
|
|
|
- placeholder="请填写"
|
|
|
- size="large"
|
|
|
- maxlength="30"
|
|
|
- v-model="milkOutput"
|
|
|
- >
|
|
|
- <!-- @input="handleChange" -->
|
|
|
- <template #suffix>ml</template>
|
|
|
- </wd-input>
|
|
|
- <view v-if="nurseAmountList.length" class="px-3 pt-3 flex justify-start">
|
|
|
- <view
|
|
|
- v-for="item in nurseAmountList"
|
|
|
- :key="item"
|
|
|
- @click="milkOutput = item"
|
|
|
- class="box-border py-[4rpx] px-2 text-xs bg-[#F3F3F3] mr-2 rounded-full"
|
|
|
+ <view class="px-4 pt-2">
|
|
|
+ <wd-input
|
|
|
+ no-border
|
|
|
+ type="number"
|
|
|
+ placeholder="请填写"
|
|
|
+ maxlength="30"
|
|
|
+ v-model="milkOutput"
|
|
|
>
|
|
|
- {{ item }}
|
|
|
+ <!-- @input="handleChange" -->
|
|
|
+ <template #suffix>
|
|
|
+ <text class="text-sm text-[#333]">ml</text>
|
|
|
+ </template>
|
|
|
+ </wd-input>
|
|
|
+ <view v-if="nurseAmountList.length" class="pt-3 flex justify-start overflow-x-auto">
|
|
|
+ <view
|
|
|
+ v-for="item in nurseAmountList"
|
|
|
+ :key="item"
|
|
|
+ @click="milkOutput = item"
|
|
|
+ class="box-border py-[4rpx] px-2 text-xs bg-[#F3F3F3] mr-2 rounded-full"
|
|
|
+ >
|
|
|
+ {{ item }}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -201,7 +208,7 @@
|
|
|
if (type.value == 2) {
|
|
|
data = ['小米粥', '小米粥', '小米粥', '小米粥', '小米粥']
|
|
|
} else {
|
|
|
- data = [50, 100, 200, 300, 600]
|
|
|
+ data = [50, 100, 200, 300, 600, 700, 800, 900, 1000]
|
|
|
}
|
|
|
|
|
|
nurseAmountList.value = data
|