| xqd
@@ -36,7 +36,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<van-calendar show="{{ showDate }}" bind:close="switchShowDate" bind:confirm="confirmDate" data-show="{{false}}"
|
|
|
- type="range" class="sg-calendar" default-date="{{default_dates}}" allow-same-day="{{true}}"/>
|
|
|
+ type="range" class="sg-calendar" default-date="{{default_dates}}" allow-same-day="{{true}}" color="#5992fd"/>
|
|
|
<view class="sg-device-box" wx:if="{{tabIndex == 1}}">
|
|
|
<view class="sg-device-list sg-top-border">
|
|
|
<block wx:if="{{devices.length <= 0}}">
|
| xqd
@@ -101,7 +101,7 @@
|
|
|
<van-dialog show="{{ showAdd }}" use-slot title="{{dialog_type == 'create' ? '添加设备' : '修改设备'}}" show-cancel-button
|
|
|
bind:confirm="addDevice" bind:cancel="closeshow" z-index="1" data-show="{{false}}" confirm-button-color="#5693FC">
|
|
|
<view class="sg-add-device-box sg-pad sg-font-small">
|
|
|
- <view class="sg-form-item sg-pad-tb sg-top-border">
|
|
|
+ <view class="sg-form-item sg-pad-tb sg-top-border sg-align-center">
|
|
|
<view class="sg-label">设备类型</view>
|
|
|
<picker bindchange="onChange" value="{{typeIndex}}" range="{{device_types}}" range-key="name"
|
|
|
data-name="typeIndex" class="sg-input">
|
| xqd
@@ -110,7 +110,7 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
|
- <view class="sg-form-item sg-pad-tb sg-top-border">
|
|
|
+ <view class="sg-form-item sg-pad-tb sg-top-border sg-align-center" >
|
|
|
<view class="sg-label">设备名称</view>
|
|
|
<block wx:if="{{customName}}">
|
|
|
<input value="{{customNameVal}}" class="sg-input" bindinput="onChange" data-name="customNameVal"
|
| xqd
@@ -124,11 +124,11 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</block>
|
|
|
- <view class="">
|
|
|
+ <view class="" style="width:132rpx">
|
|
|
<van-checkbox value="{{ customName }}" bind:change="onChange" data-name="customName">自填</van-checkbox>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="sg-form-item sg-pad-tb sg-top-border">
|
|
|
+ <view class="sg-form-item sg-pad-tb sg-top-border sg-align-center">
|
|
|
<view class="sg-label">规格型号</view>
|
|
|
<block wx:if="{{customSpec}}">
|
|
|
<input value="{{customSpecVal}}" class="sg-input" bindinput="onChange" data-name="customSpecVal"
|
| xqd
@@ -142,11 +142,11 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</block>
|
|
|
- <view class="">
|
|
|
+ <view class="" style="width:132rpx">
|
|
|
<van-checkbox value="{{ customSpec }}" bind:change="onChange" data-name="customSpec">自填</van-checkbox>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="sg-form-item sg-pad-tb sg-top-border">
|
|
|
+ <view class="sg-form-item sg-pad-tb sg-top-border sg-align-center">
|
|
|
<view class="sg-label">租赁方式</view>
|
|
|
<block wx:if="{{customRent}}">
|
|
|
<input value="{{customRentVal}}" class="sg-input" bindinput="onChange" data-name="customRentVal"
|
| xqd
@@ -160,21 +160,21 @@
|
|
|
</view>
|
|
|
</picker>
|
|
|
</block>
|
|
|
- <view class="">
|
|
|
+ <view class="" style="width:132rpx">
|
|
|
<van-checkbox value="{{ customRent }}" bind:change="onChange" data-name="customRent">自填</van-checkbox>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="sg-form-item sg-pad-tb sg-top-border">
|
|
|
+ <view class="sg-form-item sg-pad-tb sg-top-border sg-align-center">
|
|
|
<view class="sg-label">租赁时间</view>
|
|
|
<input value="{{ start_date ? start_date + '至' + end_date : '' }}" placeholder="请选择租赁时间" class="sg-input"
|
|
|
disabled="true" bindtap="switchShowDate" data-show="{{true}}"></input>
|
|
|
</view>
|
|
|
- <view class="sg-form-item sg-pad-tb sg-top-border">
|
|
|
+ <view class="sg-form-item sg-pad-tb sg-top-border sg-align-center">
|
|
|
<view class="sg-label">租赁计数</view>
|
|
|
<input value="{{device_quantity}}" class="sg-input" bindinput="onChange" data-name="device_quantity"
|
|
|
placeholder="请输入租赁计数" type="number"></input>
|
|
|
</view>
|
|
|
- <view class="sg-form-item sg-pad-tb sg-top-border">
|
|
|
+ <view class="sg-form-item sg-pad-tb sg-top-border sg-align-center">
|
|
|
<view class="sg-label">租赁单价</view>
|
|
|
<input value="{{device_price}}" class="sg-input" bindinput="onChange" data-name="device_price"
|
|
|
placeholder="请输入设备单价" type="digit"></input>
|