1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <!--pages/car/edit.wxml-->
- <view class="container">
- <form bindsubmit="formSubmit">
- <view class="part">
- <input name="id" value='{{info.id}}' hidden='true' />
- <van-field label="船舶号" required name="shipNumber" model:value="{{info.shipNumber}}" input-align="right" placeholder="请输入船舶号" bind:focus="hideKeybord" />
- <van-field label="船型" name="shipType" value="{{ shipType }}" required input-align="right" class="radioHeight fieldAutoHeight">
- <view slot="input" class="radioHeightBx">
- <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="shipType">
- <label class="radio" style="margin-right:20rpx;" wx:for="{{ shipTypeArray }}" wx:key="index">
- <radio value="{{ item.dictValue }}" checked="{{ shipTypeArray[index].dictValue == shipType }}" color="#1989fa" />{{ item.dictLabel }}
- </label>
- </radio-group>
- </view>
- </van-field>
-
- <view class="topItem">
- <van-field label="船舶证书" required readonly input-align="right" border="{{false}}" />
- <van-field name="" model:value="" label="" class="uploadBox">
- <view slot="input" class="uploadboxView">
- <van-uploader name="" deletable="{{true}}" data-type="certificatePathList" file-list="{{ certificatePathList }}" bind:after-read="afterRead" bind:delete="deleteImg" max-count="6" preview-size="110" />
- </view>
- </van-field>
- </view>
- <van-field label="荷载吨位" name="shipLoad" model:value="{{info.shipLoad}}" input-align="right" placeholder="请输入荷载吨位" bind:focus="hideKeybord" />
- <van-field label="船舶注册帐号" name="registerNumber" model:value="{{info.registerNumber}}" input-align="right" placeholder="请输入船舶注册帐号" bind:focus="hideKeybord" />
- <van-field label="船舶所有人" name="shipOwner" model:value="{{info.shipOwner}}" input-align="right" placeholder="请输入船舶所有人" bind:focus="hideKeybord" />
- </view>
-
- <view class="part">
- <!-- 船主 -->
- <van-field label="船主" required input-align="right">
- <view slot="input" style="width: 100%;">
- <input name="shipId" value='{{shipArray[shipIndex].id}}' hidden='true' />
- <picker bindchange="bindPickerChange" value="{{shipIndex}}" range="{{shipArray}}" range-key="name" data-pickername='ship'>
- <view wx:if="{{shipArray[shipIndex].name}}"> {{shipArray[shipIndex].name}}</view>
- <view wx:else class="selectPlaceholder">{{ defaultText }}</view>
- </picker>
- </view>
- <view slot="right-icon">
- <van-icon name="arrow" />
- </view>
- </van-field>
- <van-field label="船主电话" wx:if="{{shipArray[shipIndex].id}}" name="shipMobile" readonly value="{{ shipMobile }}" placeholder="选择船主自动填入" input-align="right">
- </van-field>
- </view>
- <view class="part">
- <van-field label="船舶身份信息" name="shipIdentity" model:value="{{info.shipIdentity}}" input-align="right" placeholder="请输入船舶身份信息" bind:focus="hideKeybord" />
- <!-- <van-field label="联系人姓名" name="contactName" input-align="right" placeholder="请输入联系人姓名" bind:focus="hideKeybord" />
- <van-field label="联系人电话" name="contactPhone" input-align="right" placeholder="请输入联系人电话" bind:focus="hideKeybord" /> -->
- <van-field label="收款单位" name="receiveUnit" model:value="{{info.receiveUnit}}" input-align="right" placeholder="请输入收款单位" bind:focus="hideKeybord" />
- <van-field label="收款银行" name="receiveBank" model:value="{{info.receiveBank}}" input-align="right" placeholder="请输入收款银行" bind:focus="hideKeybord" />
- <van-field label="收款账户" name="receiveAccount" model:value="{{info.receiveAccount}}" input-align="right" placeholder="请输入收款账户" bind:focus="hideKeybord" />
- <view class="topItem">
- <van-field label="安全环保合同" readonly input-align="right" border="{{false}}" />
- <van-field name="" model:value="" label="" class="uploadBox">
- <view slot="input" class="uploadboxView">
- <van-uploader name="" deletable="{{true}}" data-type="contractPathList" file-list="{{ contractPathList }}" bind:after-read="afterRead" bind:delete="deleteImg" max-count="6" preview-size="110" />
- </view>
- </van-field>
- </view>
-
- <van-field label="是否启用" name="statusFlag" value="{{ statusFlag }}" required input-align="right" class="radioHeight fieldAutoHeight">
- <view slot="input" class="radioHeightBx">
- <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="statusFlag">
- <label class="radio">
- <radio value="true" checked="{{statusFlag=='true'}}" color="#4B70EA" />启用
- </label>
- <label class="radio">
- <radio value="false" checked="{{statusFlag=='false'}}" color="#4B70EA" />关闭
- </label>
- </radio-group>
- </view>
- </van-field>
- </view>
- <view class="submitBtn">
- <view style="padding-top: 100rpx;">
- <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
- </van-button>
- </view>
- </view>
- </form>
- </view>
|