微信小程序
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.

222 lines
10 KiB

  1. <!--pages/apply/index.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'}};">收入登记</text>
  5. </view>
  6. <!-- 付款单位开始 -->
  7. <view class="top" style="margin-top:{{isIPX?'100px':'75px'}};">
  8. <image src="../../image/apply/dress_icon.png" mode="widthFix"></image>
  9. <view class="top-tit">收入单位</view>
  10. <view class="top-title">{{bookName}}</view>
  11. </view>
  12. <text class="title">基础信息</text>
  13. <view class="main-box table-box">
  14. <view class="flex-block">
  15. <text class="rules">收入时间</text>
  16. <view class="wrap" bindtap="onsrDate" >
  17. {{formData.accountDate}}
  18. </view>
  19. <van-calendar
  20. show="{{ srShow }}"
  21. min-date="{{ minDate }}"
  22. max-date="{{ maxDate }}"
  23. bind:close="onClose"
  24. bind:confirm="onConfirm"
  25. />
  26. </view>
  27. <view class="flex-block">
  28. <text class="rules">收入金额</text>
  29. <input class="wrap" data-prop="formData.jieAmount" type="number" value="{{formData.jieAmount}}" bindinput="inputChange" placeholder="请输入收入金额"/>
  30. </view>
  31. <view class="flex-block"><text class="rules">存入账户</text>
  32. <!-- <input class="wrap" type="number" bindinput="inputChange" data-prop="formData.accountName" value="{{formData.accountName}}" placeholder="请输入存入账户"/> -->
  33. <view bindtap="oncrzhShow" class="wrap">
  34. <text wx:if="{{formData.accountName==''}}" class="color-gray">请选择存入账户</text>
  35. <text wx:else>{{formData.accountName}}</text>
  36. </view>
  37. <!-- custom-style="height: 20%;"-->
  38. <van-popup
  39. show="{{ crzhShow }}"
  40. position="bottom"
  41. bind:close="onCancelcrzh"
  42. >
  43. <van-picker columns="{{ accountListOptions }}" value-key="accountName" bind:cancel="onCancelcrzh"
  44. show-toolbar="{{true}}"
  45. bind:confirm="onConfirmcrzh"/>
  46. </van-popup>
  47. </view>
  48. <view class="flex-block"><text class="rules">收入类型</text>
  49. <picker bindchange="bindPickerChange" class="wrap picker_wrap"
  50. value="{{incomeTypeText}}"
  51. range="{{incomeTypeOptions}}"
  52. range-key="dictLabel">
  53. <view class="picker">
  54. {{incomeTypeText}}
  55. </view>
  56. </picker>
  57. </view>
  58. <view class="flex-block"><text class="rules">单据编码</text> <input class="wrap" type="number" bindinput="inputChange" data-prop="formData.billNum" value="{{formData.billNum}}" placeholder="请输入单据编码"/></view>
  59. <view class="flex-block"><text class="rules">备注说明</text> <input class="wrap" type="number" bindinput="inputChange" data-prop="formData.accountSummary" placeholder="请输入备注说明" value="{{formData.accountSummary}}"/></view>
  60. </view>
  61. <view class="title">
  62. <text>关联合同</text>
  63. </view>
  64. <view class="main-box table-box">
  65. <view class="flex-block">
  66. <text class="rules {{formData.incomeType == '2' ?'':'no'}}">付款人{{}}</text>
  67. <view class="wrap" bindtap="selectContraction">
  68. <text wx:if="{{payerText==''}}" class="color-gray">请选择付款人</text>
  69. <text wx:else>{{payerText}}</text>
  70. </view>
  71. <van-popup show="{{showHt}}" round position="bottom" bind:close="closeBox" >
  72. <van-picker
  73. columns="{{contractionOptions}}"
  74. show-toolbar
  75. value-key="name"
  76. bind:cancel="closeBox"
  77. bind:confirm="onConfirmContraction"
  78. />
  79. </van-popup>
  80. </view>
  81. <view class="flex-block"><text class="rules {{formData.incomeType == '2' ?'':'no'}}">合同编码</text>
  82. <view class="wrap" bindtap="selectContraction">
  83. <text wx:if="{{formData.contractionId==''}}" class="color-gray">请选择合同编码</text>
  84. <text wx:else>{{formData.contractionId}}</text>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="main-box table-box" style="margin-top: 15px;">
  89. <van-cell>
  90. <!-- <view slot="icon">
  91. <van-icon class-prefix="my-icon" name="extra" />
  92. </view> -->
  93. <view slot="title">
  94. <view class="van-cell-text">附件<van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag></view>
  95. </view>
  96. <view>
  97. <view class="van-cell-text">总数<van-tag round color="#5CAE77" plain style="margin-left: 10px;"> {{form.transfers[index].fileNum?form.transfers[index].fileNum:0}}张 </van-tag></view>
  98. </view>
  99. </van-cell>
  100. <view class="fj-box">
  101. <view class="fj-li">
  102. <view>
  103. <text>收\n据</text>
  104. </view>
  105. <view class="img_box">
  106. <view class="img_list" wx:for="{{sjPics}}" wx:for-index="index" wx:key="index">
  107. <image class="img_li" src="{{item.file}}"bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{index}}'></image>
  108. <van-icon name="/image/apply/img_delete.png" data-id="{{index}}" size="20px" data-status="sjPics" bindtap="deleteimg" />
  109. </view>
  110. <view class="img_list">
  111. <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="uploadSjPics"></image>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="fj-li">
  116. <view>
  117. <text>发\n票</text>
  118. </view>
  119. <view class="img_box">
  120. <view class="img_list" wx:for="{{fpPics}}" wx:for-index="index" wx:key="index">
  121. <image class="img_li" src="{{item.file}}" data-status="fpPics" bindtap="imgPreviewImage" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  122. <van-icon name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="fpPics" bindtap="deleteimg" />
  123. </view>
  124. <view class="img_list">
  125. <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="uploadFpPics"></image>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="fj-li">
  130. <view>
  131. <text>其\n他</text>
  132. </view>
  133. <view class="img_box">
  134. <view class="img_list" wx:for="{{qtPics}}" wx:for-index="index" wx:key="index">
  135. <image class="img_li" src="{{item.file}}" data-status="qtPics" bindtap="imgPreviewImage" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  136. <van-icon name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="qtPics" bindtap="deleteimg" />
  137. </view>
  138. <view class="img_list">
  139. <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="uploadQtPics"></image>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <!-- <view style="margin:10px 0 5px;" class="flex-block">
  145. <text class="fjLable">收据</text>
  146. <view class='content'>
  147. <view class='img-box'>
  148. <view class='img-list'>
  149. <block wx:for="{{sjPics}}" wx:for-index="index" wx:key="index">
  150. <view class='img-item'>
  151. <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="sjPics" bindtap="deleteimg" />
  152. <image src='{{item.file}}' class="imagea" bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{index}}'></image>
  153. </view>
  154. </block>
  155. <view class='chooseimg' bindtap='uploadSjPics'>
  156. <view class="weui-uploader__input-box"></view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <view style="margin:10px 0 5px;" class="flex-block">
  163. <text class="fjLable">发票</text>
  164. <view class='content'>
  165. <view class='img-box'>
  166. <view class='img-list'>
  167. <block wx:for="{{fpPics}}" wx:for-index="index" wx:key="index">
  168. <view class='img-item'>
  169. <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="fpPics" bindtap="deleteimg" />
  170. <image src='{{item.file}}' data-status="fpPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  171. </view>
  172. </block>
  173. <view class='chooseimg' bindtap='uploadFpPics'>
  174. <view class="weui-uploader__input-box"></view>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. <view style="margin:10px 0 5px;" class="flex-block">
  181. <text class="fjLable">其他</text>
  182. <view class='content'>
  183. <view class='img-box'>
  184. <view class='img-list'>
  185. <block wx:for="{{qtPics}}" wx:for-index="index" wx:key="index">
  186. <view class='img-item'>
  187. <van-icon class="close-ico" name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="qtPics" bindtap="deleteimg" />
  188. <image src='{{item.file}}' data-status="qtPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  189. </view>
  190. </block>
  191. <view class='chooseimg' bindtap='uploadQtPics'>
  192. <view class="weui-uploader__input-box"></view>
  193. </view>
  194. </view>
  195. </view>
  196. </view>
  197. </view> -->
  198. </view>
  199. <view class="bottom">
  200. <!-- <view class="btn1" data-type="3" bindtap="goSubmit">提交复核</view> -->
  201. <view class="btn1" data-code="1" bindtap="swichAccounting">暂存</view>
  202. <view class="btn2" data-code="2" bindtap="swichAccounting">提交</view>
  203. </view>
  204. <!-- <view class="main-box table-box" style="margin-top: 30rpx;">
  205. <view class="btn flex-block">
  206. <button type="primary" data-code="1" bindtap="swichAccounting" plain="true">暂存</button>
  207. <button type="primary" data-code="2" bindtap="swichAccounting">提交</button>
  208. </view>
  209. </view> -->