|
|
@ -20,7 +20,10 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view :class="['line', {err: err === 'periodOfUse' + item.dataOrCourseId + item.authority}]"> |
|
|
|
<view :class="['line', {err: err === 'periodOfUse' + item.dataOrCourseId + item.authority}]"> |
|
|
|
<view class="name">使用期限</view> |
|
|
|
<view class="name">使用期限</view> |
|
|
|
|
|
|
|
<view class="period-wrap"> |
|
|
|
<input class="period" type="number" v-model="item.periodOfUse" placeholder="请输入" :disabled="isEdit" @input="calcDate(item, !item.authority)" @change="handleErr(item, 'periodOfUse')"> |
|
|
|
<input class="period" type="number" v-model="item.periodOfUse" placeholder="请输入" :disabled="isEdit" @input="calcDate(item, !item.authority)" @change="handleErr(item, 'periodOfUse')"> |
|
|
|
|
|
|
|
<uni-icons class="edit" type="compose" size="20" color="#b3b3b3"></uni-icons> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view v-if="isEdit">{{ units.find(e => e.id === item.options).text }}</view> |
|
|
|
<view v-if="isEdit">{{ units.find(e => e.id === item.options).text }}</view> |
|
|
|
<view v-else class="val unit" @click="selectUnit(item)"> |
|
|
|
<view v-else class="val unit" @click="selectUnit(item)"> |
|
|
|
<text>{{ units.find(e => e.id === item.options).text }}</text> |
|
|
|
<text>{{ units.find(e => e.id === item.options).text }}</text> |
|
|
@ -30,11 +33,14 @@ |
|
|
|
<view :class="['line req', {err: err === 'startTime' + item.dataOrCourseId + item.authority}]"> |
|
|
|
<view :class="['line req', {err: err === 'startTime' + item.dataOrCourseId + item.authority}]"> |
|
|
|
<view class="name">起止日期</view> |
|
|
|
<view class="name">起止日期</view> |
|
|
|
<view v-if="isEdit">{{ item.endTime ? item.startTime + ' - ' + item.endTime : item.startTime}}</view> |
|
|
|
<view v-if="isEdit">{{ item.endTime ? item.startTime + ' - ' + item.endTime : item.startTime}}</view> |
|
|
|
<uni-datetime-picker v-else type="date" v-model="item.startTime" :border="false" @change="calcDate(item)"> |
|
|
|
<view v-else class="val unit"> |
|
|
|
|
|
|
|
<uni-datetime-picker type="date" v-model="item.startTime" :border="false" @change="calcDate(item)"> |
|
|
|
<view :class="['ph', {val: item.startTime}]"> |
|
|
|
<view :class="['ph', {val: item.startTime}]"> |
|
|
|
{{ item.endTime ? item.startTime + ' - ' + item.endTime : item.startTime}} |
|
|
|
{{ item.endTime ? item.startTime + ' - ' + item.endTime : item.startTime}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uni-datetime-picker> |
|
|
|
</uni-datetime-picker> |
|
|
|
|
|
|
|
<image class="icon" src="@/static/image/arrow-down.png" mode="widthFix"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view :class="['line req', {err: err === 'accountNum' + item.dataOrCourseId + item.authority}]"> |
|
|
|
<view :class="['line req', {err: err === 'accountNum' + item.dataOrCourseId + item.authority}]"> |
|
|
|
<view class="name">数量</view> |
|
|
|
<view class="name">数量</view> |
|
|
@ -50,6 +56,7 @@ |
|
|
|
<view class="inline"> |
|
|
|
<view class="inline"> |
|
|
|
<input type="number" v-model="item.settlementPrice" placeholder="请输入" @change="handleErr(item, 'settlementPrice')"> |
|
|
|
<input type="number" v-model="item.settlementPrice" placeholder="请输入" @change="handleErr(item, 'settlementPrice')"> |
|
|
|
元 |
|
|
|
元 |
|
|
|
|
|
|
|
<uni-icons class="edit" type="compose" size="20" color="#b3b3b3"></uni-icons> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="line"> |
|
|
|
<view class="line"> |
|
|
@ -65,6 +72,7 @@ |
|
|
|
<view class="inline"> |
|
|
|
<view class="inline"> |
|
|
|
<input type="number" v-model="item.finalPrice" placeholder="请输入" :disabled="isEdit && !item.authority" @input="calcFinalValue(item)" @change="handleErr(item, 'finalPrice')"> |
|
|
|
<input type="number" v-model="item.finalPrice" placeholder="请输入" :disabled="isEdit && !item.authority" @input="calcFinalValue(item)" @change="handleErr(item, 'finalPrice')"> |
|
|
|
元 |
|
|
|
元 |
|
|
|
|
|
|
|
<uni-icons class="edit" type="compose" size="20" color="#b3b3b3"></uni-icons> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -436,7 +444,13 @@ |
|
|
|
.form-list { |
|
|
|
.form-list { |
|
|
|
padding: 0 24rpx; |
|
|
|
padding: 0 24rpx; |
|
|
|
border-top: 0; |
|
|
|
border-top: 0; |
|
|
|
|
|
|
|
.period-wrap { |
|
|
|
|
|
|
|
display: inline-flex; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
} |
|
|
|
.period { |
|
|
|
.period { |
|
|
|
|
|
|
|
flex: none; |
|
|
|
|
|
|
|
width: 100rpx; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
} |
|
|
|
.unit { |
|
|
|
.unit { |
|
|
@ -447,5 +461,8 @@ |
|
|
|
margin-left: 20rpx; |
|
|
|
margin-left: 20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.edit { |
|
|
|
|
|
|
|
margin-left: 10rpx; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|