edit.wxml 5.4 KB

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