微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
3.6 KiB

  1. <!--pages/payee/add/add.wxml-->
  2. <view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">{{form.id?"查看":"新增"}}银行汇票</text>
  5. </view>
  6. <view class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};">
  7. <van-field label="汇票号码" value="{{ form.orderNum }}" placeholder="汇票号码" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.orderNum"/>
  8. <van-popup show="{{showOrderType}}" round position="bottom" bind:close="closeBox" data-name="showOrderType">
  9. <van-picker
  10. columns="{{orderTypeOptions}}"
  11. show-toolbar
  12. value-key="dictLabel"
  13. bind:cancel="closeBox"
  14. bind:confirm="onConfirmOrderType"
  15. data-name="showOrderType"
  16. data-value="form.orderType"
  17. />
  18. </van-popup>
  19. <van-field label="汇票类型" value="{{ form.orderTypeText }}" placeholder="汇票类型" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.orderType" is-link arrow-direction ="down" bindtap="openBox" data-name="showOrderType"/>
  20. <van-field label="出票金额" value="{{ form.orderAmount }}" placeholder="请选择" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.orderAmount"/>
  21. <van-field label="付票单位" value="{{ form.billPayUnit }}" placeholder="付票单位" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.billPayUnit" />
  22. <van-field label="收票单位" value="{{ form.billReceiveUnit }}" placeholder="收票单位" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.billReceiveUnit"/>
  23. <van-field readonly label="开票日期" value="{{ form.startTime }}" placeholder="开票日期" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.startTime" bindtap="openBox" data-name="showStartTime"/>
  24. <van-calendar show="{{ showStartTime }}" bind:close="closeBox" data-name="showStartTime" bind:confirm="onConfirmTime" data-value="form.startTime" show-confirm="{{ false }}" />
  25. <van-field readonly label="到期日期" value="{{ form.endTime }}" placeholder="到期日期" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.endTime" bindtap="openBox" data-name="showEndTime"/>
  26. <van-calendar show="{{ showEndTime }}" bind:close="closeBox" data-name="showEndTime" bind:confirm="onConfirmTime" data-value="form.endTime" show-confirm="{{ false }}" />
  27. <van-popup show="{{showOrderStatus}}" round position="bottom" bind:close="closeBox" data-name="showOrderStatus">
  28. <van-picker
  29. columns="{{orderStatusOptions}}"
  30. show-toolbar
  31. value-key="dictLabel"
  32. bind:cancel="closeBox"
  33. bind:confirm="onConfirmOrderType"
  34. data-name="showOrderStatus"
  35. data-value="form.orderStatus"
  36. />
  37. </van-popup>
  38. <van-field label="汇票状态" value="{{ form.orderStatusText }}" placeholder="汇票状态" border="{{ false }}" bind:change="onChange" input-align="right" required data-value="form.orderStatus" is-link arrow-direction ="down" bindtap="openBox" data-name="showOrderStatus"/>
  39. <van-field label="备注" value="{{ form.remark }}" placeholder="备注" border="{{ false }}" bind:change="onChange" input-align="right" data-value="form.remark"/>
  40. </view>
  41. <view class="bottom" wx:if="{{showBtn}}">
  42. <view class="btn2" bindtap="goSubmit">确认</view>
  43. </view>