微信小程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

227 строки
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="digit" 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">
  49. <text class="rules">收入类型</text>
  50. <view bindtap="oncrlxShow" class="wrap">
  51. <text wx:if="{{incomeTypeText==''}}" class="color-gray">请选择收入类型</text>
  52. <text wx:else>{{incomeTypeText}}</text>
  53. </view>
  54. </view>
  55. <van-popup
  56. show="{{ crlxShow }}"
  57. position="bottom"
  58. bind:close="onCancelcrlx"
  59. >
  60. <van-picker
  61. columns="{{ incomeTypeOptions }}"
  62. value-key="dictLabel"
  63. bind:cancel="onCancelcrlx"
  64. show-toolbar="{{true}}"
  65. bind:confirm="bindPickerChange"/>
  66. <!-- <picker bindchange="bindPickerChange" class="wrap picker_wrap"
  67. value="{{incomeTypeText}}"
  68. range="{{incomeTypeOptions}}"
  69. range-key="dictLabel">
  70. </picker> -->
  71. </van-popup>
  72. <view class="flex-block"><text class="rules no">单据编码</text> <input class="wrap" bindinput="inputChange" data-prop="formData.billNum" value="{{formData.billNum}}" placeholder="请输入单据编码"/></view>
  73. <!-- <view class="flex-block">
  74. <text class="rules no">对方科目</text>
  75. <view class="wrap" bindtap="selectKM">
  76. <text wx:if="{{formData.subjectNameAll==''||formData.subjectNameAll==null}}" class="color-gray">请选择对方科目</text>
  77. <text wx:else>{{formData.subjectNameAll}}</text>
  78. </view>
  79. <van-popup show="{{showKm}}" round position="bottom" bind:close="closeBoxKM" >
  80. <van-picker
  81. columns="{{subjectOptions}}"
  82. show-toolbar
  83. value-key="subjectNameAll"
  84. bind:cancel="closeBoxKM"
  85. bind:confirm="onConfirmContractionKm"
  86. />
  87. </van-popup>
  88. </view> -->
  89. <view class="flex-block"><text class="rules">备注说明</text> <input class="wrap" bindinput="inputChange" data-prop="formData.accountSummary" placeholder="请输入备注说明" value="{{formData.accountSummary}}"/></view>
  90. <view class="flex-block" wx:if="{{formData.checkedStatus == 4}}"><text class="rules">挂起原因</text> <input class="wrap" bindinput="inputChange" data-prop="formData.remark" placeholder="请输入挂起原因" value="{{formData.remark}}"/></view>
  91. </view>
  92. <block wx:if="{{incomeType == 2}}">
  93. <view class="title">
  94. <text>关联合同</text>
  95. </view>
  96. <view class="main-box table-box">
  97. <view class="flex-block">
  98. <text class="rules {{formData.incomeType == '2' ?'':'no'}}">付款人{{}}</text>
  99. <view class="wrap" bindtap="selectContraction">
  100. <text wx:if="{{payerText==''}}" class="color-gray">请选择付款人</text>
  101. <text wx:else>{{payerText}}</text>
  102. </view>
  103. <van-popup show="{{showHt}}" round position="bottom" bind:close="closeBox" >
  104. <van-picker
  105. columns="{{contractionOptions}}"
  106. show-toolbar
  107. value-key="name"
  108. bind:cancel="closeBox"
  109. bind:confirm="onConfirmContraction"
  110. />
  111. </van-popup>
  112. </view>
  113. <view class="flex-block"><text class="rules {{formData.incomeType == '2' ?'':'no'}}">合同编码</text>
  114. <view class="wrap" bindtap="selectContraction">
  115. <text wx:if="{{contractionIdID==''}}" class="color-gray">请选择合同编码</text>
  116. <text wx:else>{{contractionIdID}}</text>
  117. </view>
  118. </view>
  119. </view>
  120. </block>
  121. <view class="main-box table-box" style="margin-top: 15px;">
  122. <van-cell>
  123. <!-- <view slot="icon">
  124. <van-icon class-prefix="my-icon" name="extra" />
  125. </view> -->
  126. <view slot="title">
  127. <view class="van-cell-text">附件<van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag></view>
  128. </view>
  129. <view>
  130. <view class="van-cell-text">总数<van-tag round color="#5CAE77" plain style="margin-left: 10px;"> {{fileNum}}张 </van-tag></view>
  131. </view>
  132. </van-cell>
  133. <view class="fj-box">
  134. <view class="fj-li" wx:for="{{uploadOptions}}" wx:key="index">
  135. <view>
  136. <text>{{item.dictLabel}}</text>
  137. </view>
  138. <view class="img_box">
  139. <view class="img_list" wx:for="{{item.Pics}}" wx:for-index="childrenIndex" wx:for-item="item2" wx:key="childrenIndex">
  140. <image class="img_li" src="{{item2.tempFilePath}}" bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{childrenIndex}}' data-option="{{item.Pics}}" data-index="{{childrenIndex}}" ></image>
  141. <van-icon name="/image/apply/img_delete.png" data-id="{{childrenIndex}}" data-imgid="{{item2.id}}" size="20px" data-status="uploadOptions[{{index}}]" data-index="{{index}}" bindtap="deleteimg" />
  142. </view>
  143. <view class="img_list">
  144. <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="uploadSjPics"></image>
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. <!-- <view style="margin:10px 0 5px;" class="flex-block">
  150. <text class="fjLable">收据</text>
  151. <view class='content'>
  152. <view class='img-box'>
  153. <view class='img-list'>
  154. <block wx:for="{{sjPics}}" wx:for-index="index" wx:key="index">
  155. <view class='img-item'>
  156. <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="sjPics" bindtap="deleteimg" />
  157. <image src='{{item.file}}' class="imagea" bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{index}}'></image>
  158. </view>
  159. </block>
  160. <view class='chooseimg' bindtap='uploadSjPics'>
  161. <view class="weui-uploader__input-box"></view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <view style="margin:10px 0 5px;" class="flex-block">
  168. <text class="fjLable">发票</text>
  169. <view class='content'>
  170. <view class='img-box'>
  171. <view class='img-list'>
  172. <block wx:for="{{fpPics}}" wx:for-index="index" wx:key="index">
  173. <view class='img-item'>
  174. <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="fpPics" bindtap="deleteimg" />
  175. <image src='{{item.file}}' data-status="fpPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  176. </view>
  177. </block>
  178. <view class='chooseimg' bindtap='uploadFpPics'>
  179. <view class="weui-uploader__input-box"></view>
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <view style="margin:10px 0 5px;" class="flex-block">
  186. <text class="fjLable">其他</text>
  187. <view class='content'>
  188. <view class='img-box'>
  189. <view class='img-list'>
  190. <block wx:for="{{qtPics}}" wx:for-index="index" wx:key="index">
  191. <view class='img-item'>
  192. <van-icon class="close-ico" name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="qtPics" bindtap="deleteimg" />
  193. <image src='{{item.file}}' data-status="qtPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  194. </view>
  195. </block>
  196. <view class='chooseimg' bindtap='uploadQtPics'>
  197. <view class="weui-uploader__input-box"></view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </view> -->
  203. </view>
  204. <view class="bottom">
  205. <!-- <view class="btn1" data-type="3" bindtap="goSubmit">提交复核</view> -->
  206. <view class="btn1" data-code="1" bindtap="swichAccounting">保存</view>
  207. <view class="btn2" data-code="2" bindtap="swichAccounting">保存并提交</view>
  208. </view>
  209. <!-- <view class="main-box table-box" style="margin-top: 30rpx;">
  210. <view class="btn flex-block">
  211. <button type="primary" data-code="1" bindtap="swichAccounting" plain="true">暂存</button>
  212. <button type="primary" data-code="2" bindtap="swichAccounting">提交</button>
  213. </view>
  214. </view> -->