微信小程序
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

125 рядки
4.7 KiB

  1. <!--pages/billUse/flowAdd/flowAdd.wxml-->
  2. <view class="ns" id="top_ban" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">新增票据使用</text>
  5. </view>
  6. <view class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};">
  7. <view class="headTit"><text>结算票据</text></view>
  8. <view class="flex-block">
  9. <text class="rules">票据编号</text>
  10. <view bindtap="onpjbhShow" class="wrap">
  11. <text wx:if="{{!formData.billNum}}" class="color-gray">请选择票据编号</text>
  12. <text wx:else>{{formData.billNum}}</text>
  13. </view>
  14. </view>
  15. <van-popup
  16. show="{{ pjbhShow }}"
  17. position="bottom"
  18. bind:close="onCancelcrlx"
  19. >
  20. <van-picker
  21. columns="{{ pjbhOptions }}"
  22. value-key="billNum"
  23. bind:cancel="onCancelcrlx"
  24. show-toolbar="{{true}}"
  25. bind:confirm="bindPickerChange"/>
  26. </van-popup>
  27. <view class="flex-block">
  28. <text class="rules">开票日期</text>
  29. <view class="wrap" bindtap="onsrDate" >
  30. {{formData.billDate}}
  31. </view>
  32. <van-calendar
  33. show="{{ srShow }}"
  34. min-date="{{ minDate }}"
  35. max-date="{{ maxDate }}"
  36. bind:close="onClose"
  37. bind:confirm="onConfirm"
  38. />
  39. </view>
  40. <view class="payerBox" style="border: 1px dashed #DCDCDC;padding: 20px;">
  41. <view class="flex-block">
  42. <text class="rules">收款方</text>
  43. <input class="wrap" value="{{formData.payee}}" data-name="formData.payee" bindinput="inputChange" placeholder="请输入收款方"/>
  44. </view>
  45. <view class="flex-block">
  46. <text class="rules">付款方</text>
  47. <input class="wrap" value="{{formData.payer}}" data-name="formData.payer" bindinput="inputChange" placeholder="请输入付款方"/>
  48. </view>
  49. <view class="flex-block">
  50. <text class="rules">结算事项</text>
  51. <input class="wrap" value="{{formData.accountSummary}}" data-name="formData.accountSummary" bindinput="inputChange" placeholder="请输入结算事项"/>
  52. </view>
  53. <view class="flex-block">
  54. <text>收支类型</text>
  55. <van-radio-group
  56. value="{{ formData.incomeExpensesType }}"
  57. bind:change="onChange"
  58. direction="horizontal"
  59. data-value="formData.incomeExpensesType"
  60. style="padding: 10px 0;"
  61. >
  62. <van-radio name="1" checked-color="#2C8E68">收入</van-radio>
  63. <van-radio name="2" checked-color="#2C8E68">支出</van-radio>
  64. </van-radio-group>
  65. </view>
  66. <view class="flex-block">
  67. <text>结算方式</text>
  68. <view bindtap="onjsfsShow" class="wrap">
  69. <text wx:if="{{!formData.settleStyle}}" class="color-gray">请选择结算方式</text>
  70. <text wx:else>{{formData.settleStyleText}}</text>
  71. </view>
  72. <van-popup
  73. show="{{ jsfsShow }}"
  74. position="bottom"
  75. bind:close="onCanceljsfs"
  76. >
  77. <van-picker
  78. columns="{{ jsfsOptions }}"
  79. value-key="dictLabel"
  80. bind:cancel="onCanceljsfs"
  81. show-toolbar="{{true}}"
  82. bind:confirm="bindPickerChangeJsfs"/>
  83. </van-popup>
  84. </view>
  85. <view class="flex-block" wx:if="{{ formData.incomeExpensesType == 1 }}">
  86. <text>收入金额</text>
  87. <input class="wrap" value="{{formData.jieAmount}}" data-name="formData.jieAmount" bindinput="inputChange" placeholder="请输入收入金额"/>
  88. </view>
  89. <view class="flex-block" wx:if="{{ formData.incomeExpensesType == 2 }}">
  90. <text>支出金额</text>
  91. <input class="wrap" value="{{formData.daiAmount}}" data-name="formData.daiAmount" bindinput="inputChange" placeholder="请输入支出金额"/>
  92. </view>
  93. </view>
  94. <view class="flex-block" style="margin-top: 15px;">
  95. <text class="rules">出纳账户</text>
  96. <view bindtap="oncnzhShow" class="wrap">
  97. <text wx:if="{{!formData.accountName}}" class="color-gray">请选择出纳账户</text>
  98. <text wx:else>{{formData.accountName}}</text>
  99. </view>
  100. </view>
  101. <van-popup
  102. show="{{ cnzhShow }}"
  103. position="bottom"
  104. bind:close="onCancelcrcnzh"
  105. >
  106. <van-picker
  107. columns="{{ accountList }}"
  108. value-key="accountName"
  109. bind:cancel="onCancelcrcnzh"
  110. show-toolbar="{{true}}"
  111. bind:confirm="bindPickerChangeCnzh"/>
  112. </van-popup>
  113. <view class="flex-block"><text>经办人</text> <input class="wrap" data-name="formData.preparedBy" bindinput="inputChange" data-prop="formData.billNum" value="{{formData.preparedBy}}" placeholder="请输入经办人"/></view>
  114. </view>
  115. <view class="bottom">
  116. <view class="btn2" data-code="2" bindtap="swichAccounting">保存</view>
  117. </view>