微信小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

update.wxml 12 KiB

3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
3年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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.daiAmount}}" 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="{{expenditureTypeText==''}}" class="color-gray">请选择支出类型</text>
  52. <text wx:else>{{expenditureTypeText}}</text>
  53. </view>
  54. </view>
  55. <van-popup
  56. show="{{ crlxShow }}"
  57. position="bottom"
  58. bind:close="onCancelcrlx"
  59. >
  60. <van-picker
  61. columns="{{ expenditureTypeOptions }}"
  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==''}}" 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}}'></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 class="fj-li">
  149. <view>
  150. <text>发\n票</text>
  151. </view>
  152. <view class="img_box">
  153. <view class="img_list" wx:for="{{fpPics}}" wx:for-index="index" wx:key="index">
  154. <image class="img_li" src="{{item.file}}" data-status="fpPics" bindtap="imgPreviewImage" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  155. <van-icon name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="fpPics" bindtap="deleteimg" />
  156. </view>
  157. <view class="img_list">
  158. <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="uploadFpPics"></image>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="fj-li">
  163. <view>
  164. <text>其\n他</text>
  165. </view>
  166. <view class="img_box">
  167. <view class="img_list" wx:for="{{qtPics}}" wx:for-index="index" wx:key="index">
  168. <image class="img_li" src="{{item.file}}" data-status="qtPics" bindtap="imgPreviewImage" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  169. <van-icon name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="qtPics" bindtap="deleteimg" />
  170. </view>
  171. <view class="img_list">
  172. <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="uploadQtPics"></image>
  173. </view>
  174. </view>
  175. </view> -->
  176. </view>
  177. <!-- <view style="margin:10px 0 5px;" class="flex-block">
  178. <text class="fjLable">收据</text>
  179. <view class='content'>
  180. <view class='img-box'>
  181. <view class='img-list'>
  182. <block wx:for="{{sjPics}}" wx:for-index="index" wx:key="index">
  183. <view class='img-item'>
  184. <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="sjPics" bindtap="deleteimg" />
  185. <image src='{{item.file}}' class="imagea" bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{index}}'></image>
  186. </view>
  187. </block>
  188. <view class='chooseimg' bindtap='uploadSjPics'>
  189. <view class="weui-uploader__input-box"></view>
  190. </view>
  191. </view>
  192. </view>
  193. </view>
  194. </view>
  195. <view style="margin:10px 0 5px;" class="flex-block">
  196. <text class="fjLable">发票</text>
  197. <view class='content'>
  198. <view class='img-box'>
  199. <view class='img-list'>
  200. <block wx:for="{{fpPics}}" wx:for-index="index" wx:key="index">
  201. <view class='img-item'>
  202. <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="fpPics" bindtap="deleteimg" />
  203. <image src='{{item.file}}' data-status="fpPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  204. </view>
  205. </block>
  206. <view class='chooseimg' bindtap='uploadFpPics'>
  207. <view class="weui-uploader__input-box"></view>
  208. </view>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. <view style="margin:10px 0 5px;" class="flex-block">
  214. <text class="fjLable">其他</text>
  215. <view class='content'>
  216. <view class='img-box'>
  217. <view class='img-list'>
  218. <block wx:for="{{qtPics}}" wx:for-index="index" wx:key="index">
  219. <view class='img-item'>
  220. <van-icon class="close-ico" name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="qtPics" bindtap="deleteimg" />
  221. <image src='{{item.file}}' data-status="qtPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image>
  222. </view>
  223. </block>
  224. <view class='chooseimg' bindtap='uploadQtPics'>
  225. <view class="weui-uploader__input-box"></view>
  226. </view>
  227. </view>
  228. </view>
  229. </view>
  230. </view> -->
  231. </view>
  232. <view class="bottom">
  233. <!-- <view class="btn1" data-type="3" bindtap="goSubmit">提交复核</view> -->
  234. <view class="btn1" data-code="1" bindtap="swichAccounting">暂存</view>
  235. <view class="btn2" data-code="2" bindtap="swichAccounting">提交</view>
  236. </view>
  237. <!-- <view class="main-box table-box" style="margin-top: 30rpx;">
  238. <view class="btn flex-block">
  239. <button type="primary" data-code="1" bindtap="swichAccounting" plain="true">暂存</button>
  240. <button type="primary" data-code="2" bindtap="swichAccounting">提交</button>
  241. </view>
  242. </view> -->