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

billUse.wxml 8.4 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年前
3年前
3年前
3年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <!--pages/regular/index.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="search_box" style="margin-top:{{isIPX?'88px':'64px'}};">
  7. <van-search
  8. value="{{ value }}"
  9. shape="round"
  10. background="transparent"
  11. placeholder="请输入票据编号搜索"
  12. clearable
  13. bind:change="goSearch"
  14. />
  15. <view class="add_btn" bindtap="goAdd"><text>新增</text></view>
  16. </view>
  17. <view class="top_view">
  18. <van-dropdown-menu active-color="#5CAE77" bind:change="changeTab" id="top_view1" style="flex: 1;">
  19. <van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" bind:change="changeTab1" />
  20. <van-dropdown-item value="{{ value2 }}" options="{{ option2 }}" bind:change="changeTab2" />
  21. <van-dropdown-item value="{{ value3 }}" options="{{ option3 }}" bind:change="changeTab3" />
  22. </van-dropdown-menu>
  23. <view class="sx_view" bindtap="showPopup">
  24. <text>筛选</text>
  25. <image src="/image/icon/icon_sx.png" style="width: 15px;height: 15px;margin-left: 5px;"></image>
  26. </view>
  27. </view>
  28. <scroll-view scroll-y refresher-threshold="0" style="height:100%" bindscrolltolower="paging" lower-threshold="100">
  29. <!-- wx:for="{{list}}" wx:key="index" wx:for-item="item" right-width="{{ 50 }}" -->
  30. <van-swipe-cell right-width="{{ item.billType != '5' ? 165 : 0 }}" class="workflow" wx:for="{{billList}}" wx:key="index">
  31. <view class="li" >
  32. <view style="width:70%;flex:7;">
  33. <view class="tit_box">
  34. <image src="/image/apply/icon_text.png" style="width: 16px;height: 19px;margin-right: 2px;"></image>
  35. <text class="tit">{{item.billNum}}</text>
  36. <text class="tit_tab5">{{item.billTypeText}}</text>
  37. </view>
  38. <view class="money_box">
  39. <view style="width: 50%;">
  40. <text>支出(元)</text>
  41. <text style="color: #E90000;font-size: 22px;margin-top: 10px;">{{item.daiAmount ? item.daiAmount : '0.00'}}</text>
  42. <view style="display: flex;align-items: center;margin-top: 10px;">
  43. <image src="/image/icon/clock_icon.png" style="width: 15px;height: 15px;border-radius:5px;margin-right: 5px;"></image>
  44. <text>{{item.billDate}}</text>
  45. </view>
  46. </view>
  47. <view style="width: 50%;">
  48. <text>收入(元)</text>
  49. <text style="color: #5CAE77;font-size: 22px;margin-top: 10px;">{{item.jieAmount ? item.jieAmount : '0.00'}}</text>
  50. <view style="display: flex;align-items: center;margin-top: 10px;justify-content: space-between;">
  51. <text style="border-bottom: 1px solid;">{{item.cashierFlowId ? item.cashierFlowId : ''}}</text>
  52. <text style="color: #B3DB62;">{{item.incomeExpensesTypeText}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="list_btn">
  58. <view>
  59. <view class="btn btn_xf" data-id="{{item.id}}" bindtap="goHX" wx:if="{{item.billType == '4'}}">核销</view>
  60. <view class="btn btn_qs" data-options="{{item}}" bindtap="goSCLS" wx:if="{{item.cashierFlowId == null && item.billType == '4' && item.accountId != null}}">生成流水</view>
  61. <view class="btn btn_zf" data-id="{{item.id}}" bindtap="goZF">作废</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view slot="right" class="cell_right" wx:if="{{item.billType != '5'}}">
  66. <!-- <view class="button_box"><view></view></view> -->
  67. <view class="button_box" data-id="{{item.id}}" bindtap="goYS">
  68. <view>
  69. <image src="/image/icon/icon_ys.png" style="width: 20.55px;height: 20.55px;"></image>
  70. <text>遗失</text>
  71. </view>
  72. </view>
  73. <view class="button_box" data-id="{{item.id}}" data-index="{{index}}" bindtap="upload">
  74. <view>
  75. <image src="/image/icon/icon_scfj.png" style="width: 20.55px;height: 20.55px;"></image>
  76. <text>附件</text>
  77. </view>
  78. </view>
  79. <view class="button_box" data-options="{{item}}" bindtap="goEdit" wx:if="{{item.cashierFlowId == null && item.billType == '4'}}">
  80. <view>
  81. <image src="/image/icon/icon_xg2.png" style="width: 20.55px;height: 20.55px;"></image>
  82. <text>修改</text>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- <view slot="right" class="deleteBox">
  87. <view style="flex: 1;height: 100%;display: flex;align-items: center;flex-direction: column;justify-content: center;background-color: rgb(98,173,102,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="upload">
  88. <view>
  89. <image src="../../image/icon/upload_icon.png" style="width: 25px;height: 25px;margin: 0 auto;display: block;" ></image>
  90. </view>
  91. <view>
  92. <text style="color: #62AD66;">附件</text>
  93. </view>
  94. </view>
  95. </view> -->
  96. </van-swipe-cell>
  97. </scroll-view>
  98. <van-action-sheet show="{{showUpload}}" title="附件" bind:close="closeBox">
  99. <scroll-view scroll-y="true" style="height: 600rpx;" scroll-top="0">
  100. <view class="fj-box">
  101. <view class="fj-li" wx:for="{{fileList}}" wx:key="index" wx:for-item="item" >
  102. <view>
  103. <text>{{item.dictLabel}}</text>
  104. </view>
  105. <view class="img_box">
  106. <view class="img_li">
  107. <van-upload file-list="{{ item.list }}" bind:after-read="afterRead" bind:delete="deleteImg" data-idx="{{index}}" bind:click-preview="lookDown">
  108. </van-upload>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. </scroll-view>
  114. </van-action-sheet>
  115. <modal hidden="{{!showPopup2}}" title="是否删除?" confirm-text="是" cancel-text="否" bindcancel="cancelTem" bindconfirm="confirmTem">
  116. </modal>
  117. <van-popup
  118. show="{{ showPopup }}"
  119. round
  120. position="right"
  121. custom-style="height: 100%;width:90%;"
  122. bind:close="onClose"
  123. >
  124. <view class="sx_box" style="margin-top:{{isIPX?'88px':'64px'}};">
  125. <text class="sx_tit">收支类型</text>
  126. <van-radio-group value="{{ result1 }}" bind:change="onChangeSZ">
  127. <van-radio use-icon-slot name="{{item.value}}" wx:for="{{option1}}" wx:key="index">
  128. <view slot="icon" class="{{result1 == item.value ? 'ys_checkbox_icon':'checkbox_icon'}}">
  129. {{item.text}}
  130. </view>
  131. </van-radio>
  132. </van-radio-group>
  133. <text class="sx_tit">结算方式</text>
  134. <van-radio-group value="{{ result2 }}" bind:change="onChangeJS">
  135. <van-radio use-icon-slot name="{{item.value}}" wx:for="{{option2}}" wx:key="index">
  136. <view slot="icon" class="{{result2 == item.value ? 'ys_checkbox_icon':'checkbox_icon'}}">
  137. {{item.text}}
  138. </view>
  139. </van-radio>
  140. </van-radio-group>
  141. <text class="sx_tit">票据状态</text>
  142. <van-radio-group value="{{ result3 }}" bind:change="onChangePJ">
  143. <van-radio use-icon-slot name="{{item.value}}" wx:for="{{option3}}" wx:key="index">
  144. <view slot="icon" class="{{result3 == item.value ? 'ys_checkbox_icon':'checkbox_icon'}}">
  145. {{item.text}}
  146. </view>
  147. </van-radio>
  148. </van-radio-group>
  149. <text class="sx_tit">开票日期</text>
  150. <view class="sx_input_box">
  151. <picker mode="date" value="{{billDate}}" bindchange="bindDateBeginChange">
  152. <view class="picker">
  153. <input disabled placeholder="开始日期" value="{{billDate}}" />
  154. </view>
  155. </picker>
  156. </view>
  157. <view class="bottom">
  158. <!-- <view class="btn1" data-type="3" bindtap="goSubmit">提交复核</view> -->
  159. <view class="btn1" bindtap="reset">重置</view>
  160. <view class="btn2" data-type="0" bindtap="goSubmit" hover-class="btnView">确定</view>
  161. </view>
  162. </view>
  163. </van-popup>
  164. <van-dialog
  165. use-slot
  166. show="{{ showReceiptDialog }}"
  167. bind:close="onClose"
  168. theme='round-button'
  169. confirmButtonText="票本下发"
  170. data-type="1"
  171. bind:confirm="edit"
  172. before-close="{{beforeClose}}"
  173. closeOnClickOverlay="{{ true }}"
  174. >
  175. <!-- <image src="/image/icon/icon_delete.png" style="width: 20px; height: 20px;position: absolute;top: 0;"></image> -->
  176. <view style="text-align: center;padding: 20px;border-bottom: 1px dashed #e6e6e6;width: 92%;margin: 0 auto;color: #2C8E68;font-size: 18px;">查询回单明细参数</view>
  177. <van-field value="{{ value }}" required label="下发单位" placeholder="请选择下发单位" input-align="right" is-link arrow-direction="down" bind:change="onChange" />
  178. </van-dialog>