add.wxml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!--pages/ship/add.wxml-->
  2. <view class="container">
  3. <form bindsubmit="formSubmit">
  4. <view class="part">
  5. <van-field label="船舶号" required name="shipNumber" input-align="right" placeholder="请输入船舶号" bind:focus="hideKeybord" />
  6. <van-field label="船型" name="shipType" value="{{ shipType }}" required input-align="right" class="radioHeight fieldAutoHeight">
  7. <view slot="input" class="radioHeightBx">
  8. <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="shipType">
  9. <label class="radio" style="margin-right:20rpx;" wx:for="{{ shipTypeArray }}" wx:key="index">
  10. <radio value="{{ item.dictValue }}" checked="{{ shipTypeArray[index].dictValue == shipType }}" color="#1989fa" />{{ item.dictLabel }}
  11. </label>
  12. </radio-group>
  13. </view>
  14. </van-field>
  15. <view class="topItem">
  16. <van-field label="船舶证书" required readonly input-align="right" border="{{false}}" />
  17. <van-field name="" model:value="" label="" class="uploadBox">
  18. <view slot="input" class="uploadboxView">
  19. <van-uploader name="" deletable="{{true}}" data-type="certificatePathList" file-list="{{ certificatePathList }}" bind:after-read="afterRead" bind:delete="deleteImg" max-count="6" preview-size="110" />
  20. </view>
  21. </van-field>
  22. </view>
  23. <van-field label="荷载吨位" name="shipLoad" input-align="right" placeholder="请输入荷载吨位" bind:focus="hideKeybord" />
  24. <van-field label="船舶注册帐号" name="registerNumber" input-align="right" placeholder="请输入船舶注册帐号" bind:focus="hideKeybord" />
  25. <van-field label="船舶所有人" name="shipOwner" input-align="right" placeholder="请输入船舶所有人" bind:focus="hideKeybord" />
  26. </view>
  27. <view class="part">
  28. <!-- 船主 -->
  29. <van-field label="船主" required input-align="right">
  30. <view slot="input" style="width: 100%;">
  31. <input name="shipId" value='{{shipArray[shipIndex].id}}' hidden='true' />
  32. <picker bindchange="bindPickerChange" value="{{shipIndex}}" range="{{shipArray}}" range-key="name" data-pickername='ship'>
  33. <view wx:if="{{shipArray[shipIndex].name}}"> {{shipArray[shipIndex].name}}</view>
  34. <view wx:else class="selectPlaceholder">{{ defaultText }}</view>
  35. </picker>
  36. </view>
  37. <view slot="right-icon">
  38. <van-icon name="arrow" />
  39. </view>
  40. </van-field>
  41. <van-field label="船主电话" wx:if="{{shipArray[shipIndex].id}}" name="shipMobile" readonly value="{{ shipMobile }}" placeholder="选择船主自动填入" input-align="right">
  42. </van-field>
  43. </view>
  44. <view class="part">
  45. <van-field label="船舶身份信息" name="shipIdentity" input-align="right" placeholder="请输入船舶身份信息" bind:focus="hideKeybord" />
  46. <!-- <van-field label="联系人姓名" name="contactName" input-align="right" placeholder="请输入联系人姓名" bind:focus="hideKeybord" />
  47. <van-field label="联系人电话" name="contactPhone" input-align="right" placeholder="请输入联系人电话" bind:focus="hideKeybord" /> -->
  48. <van-field label="收款单位" name="receiveUnit" input-align="right" placeholder="请输入收款单位" bind:focus="hideKeybord" />
  49. <van-field label="收款银行" name="receiveBank" input-align="right" placeholder="请输入收款银行" bind:focus="hideKeybord" />
  50. <van-field label="收款账户" name="receiveAccount" input-align="right" placeholder="请输入收款账户" bind:focus="hideKeybord" />
  51. <view class="topItem">
  52. <van-field label="安全环保合同" readonly input-align="right" border="{{false}}" />
  53. <van-field name="" model:value="" label="" class="uploadBox">
  54. <view slot="input" class="uploadboxView">
  55. <van-uploader name="" deletable="{{true}}" data-type="contractPathList" file-list="{{ contractPathList }}" bind:after-read="afterRead" bind:delete="deleteImg" max-count="6" preview-size="110" />
  56. </view>
  57. </van-field>
  58. </view>
  59. </view>
  60. <view class="submitBtn">
  61. <view style="padding-top: 100rpx;">
  62. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
  63. </van-button>
  64. </view>
  65. </view>
  66. </form>
  67. </view>