微信小程序
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

105 satır
7.2 KiB

  1. <!--pages/Bookkeeping/Bookkeeping.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. <view class="work_plan" style="margin-top:{{isIPX?'88px':'65px'}};">
  7. <!-- <view class="menu_item {{showGroup?'active':''}} " bindtap="switchTab" data-gid='{{true}}'>收入事项<text class="remind">{{flowListSRNum}}</text></view>
  8. <view class="menu_item {{!showGroup?'active':''}} " bindtap="switchTab" data-gid='{{false}}'>支出事项<text class="remind">{{flowListZCNum}}</text></view> -->
  9. <view class="downView" bindtap="openPopup">
  10. <text>{{checkedStatusText}}</text>
  11. <image src="/image/icon/triangle.png"></image>
  12. </view>
  13. <van-popup show="{{showProjectFundType}}" round position="bottom" bind:close="closeBox" data-name="showProjectFundType">
  14. <van-picker
  15. columns="{{capitalExpenditureTypeOptions}}"
  16. show-toolbar
  17. value-key="dictLabel"
  18. bind:cancel="closeBox"
  19. bind:confirm="onConfirmPick"
  20. data-name="showProjectFundType"
  21. data-value="checkedStatusText"
  22. />
  23. </van-popup>
  24. <view class="add_btn" bindtap="goAdd"><text>新增</text></view>
  25. </view>
  26. <van-checkbox-group wx:if="{{showGroup}}" value="{{ result }}" bind:change="onChange">
  27. <van-swipe-cell right-width="{{ item.checkedStatusText == '待审核' || item.checkedStatusText == '已审核' ? 0 : 130 }}" class="workflow" wx:for="{{flowListSR}}" wx:key="index" disabled="{{item.checkedStatusText == '待审核' || item.checkedStatusText == '已审核'}}">
  28. <view class="li" data-id="{{item.id}}" bindtap="{{item.checkedStatusText == '待审核' || item.checkedStatusText == '已审核'?'goSee':''}}">
  29. <!-- <van-checkbox name="{{item.id}}" disabled="{{item.checkedStatusText == '待审核' || item.checkedStatusText == '已审核'}}" shape="square" checked-color="#2C8E68" style="width: 100%;"> -->
  30. <view style="display: flex;justify-content: space-between;">
  31. <text class="tit">{{item.accountSummary}}</text>
  32. <text class="fj_name">附件{{item.enclosureCount}}</text>
  33. <text class="time">{{item.accountDate}}</text>
  34. </view>
  35. <view style="display: flex;margin-top: 15px;justify-content: space-between;">
  36. <view class="fksr">
  37. <image src="/image/icon/inCome.png" style="width: 16px;height: 14px;margin-right: 5px;"></image>
  38. {{item.incomeTypeText}}
  39. </view>
  40. <!-- <view class="wtj {{item.checkedStatusText == '未提交' ? 'no':item.checkedStatusText == '待审核' ? 'white':item.checkedStatusText == '已审核' ? 'yes':item.checkedStatusText == '已挂起' ? 'other':''}}">
  41. <image src="{{item.checkedStatusText == '未提交' ? '/image/icon/icon_no.png':item.checkedStatusText == '待审核' ? '/image/icon/icon_white.png':item.checkedStatusText == '已审核' ? '/image/icon/icon_yes.png':item.checkedStatusText == '已挂起' ? '/image/icon/icon_other.png':''}}" style="width: 12px;height: 12px;margin-right: 5px;"></image>
  42. {{item.checkedStatusText}}
  43. </view> -->
  44. <text class="money">¥{{item.jieAmount}}</text>
  45. </view>
  46. <!-- </van-checkbox> -->
  47. </view>
  48. <view slot="right" class="deleteBox">
  49. <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: space-evenly;background-color: rgb(255,0,0,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="delete">
  50. <view>
  51. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;"></image>
  52. <text style="color: #e90000;">删除</text>
  53. </view>
  54. </view>
  55. <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: space-evenly;background-color: rgb(252, 154, 85,0.2);" data-id="{{item.id}}" data-index="{{index}}" bindtap="goUpdate">
  56. <view>
  57. <image src="../../image/icon/icon_xg.png" style="width: 25px;height: 25px;margin: 0 auto;"></image>
  58. <text style="color: #F5A327;">修改</text>
  59. </view>
  60. </view>
  61. </view>
  62. </van-swipe-cell>
  63. </van-checkbox-group>
  64. <van-checkbox-group wx:if="{{!showGroup}}" value="{{ result2 }}" bind:change="onChange2">
  65. <van-swipe-cell right-width="{{ 130 }}" class="workflow" wx:for="{{flowListZC}}" wx:key="index" disabled="{{item.checkedStatusText == '待审核' || item.checkedStatusText == '已审核'}}">
  66. <view class="li" data-id="{{item.id}}" bindtap="{{item.checkedStatusText == '待审核' || item.checkedStatusText == '已审核'?'goSeeZC':''}}">
  67. <van-checkbox name="{{item.id}}" shape="square" disabled="{{item.checkedStatusText == '待审核' || item.checkedStatusText == '已审核'}}" checked-color="#2C8E68" style="width: 100%;">
  68. <view style="display: flex;justify-content: space-between;">
  69. <text class="tit">{{item.accountSummary}}</text>
  70. <text class="fj_name">附件{{item.enclosureCount}}</text>
  71. <text class="time">{{item.accountDate}}</text>
  72. </view>
  73. <view style="display: flex;margin-top: 15px;justify-content: space-between;">
  74. <view class="fksr">
  75. <image src="/image/icon/inCome.png" style="width: 16px;height: 14px;margin-right: 5px;"></image>
  76. {{item.expenditureTypeText}}
  77. </view>
  78. <!-- <view class="wtj {{item.checkedStatusText == '未提交' ? 'no':item.checkedStatusText == '待审核' ? 'white':item.checkedStatusText == '已审核' ? 'yes':item.checkedStatusText == '已挂起' ? 'other':''}}">
  79. <image src="{{item.checkedStatusText == '未提交' ? '/image/icon/icon_no.png':item.checkedStatusText == '待审核' ? '/image/icon/icon_white.png':item.checkedStatusText == '已审核' ? '/image/icon/icon_yes.png':item.checkedStatusText == '已挂起' ? '/image/icon/icon_other.png':''}}" style="width: 12px;height: 12px;margin-right: 5px;"></image>
  80. {{item.checkedStatusText}}
  81. </view> -->
  82. <text class="money">¥{{item.daiAmount}}</text>
  83. </view>
  84. </van-checkbox>
  85. </view>
  86. <view slot="right" class="deleteBox">
  87. <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: space-evenly;background-color: rgb(255,0,0,0.2);">
  88. <image src="../../image/apply/icon_delete.png" style="width: 25px;height: 25px;margin: 0 auto;" data-id="{{item.id}}" data-index="{{index}}" bindtap="delete2"></image>
  89. </view>
  90. <view style="flex: 1;height: 100%;display: flex;align-items: center;justify-content: space-evenly;background-color: rgb(252, 154, 85,0.2);">
  91. <image src="../../image/icon/icon_xg.png" style="width: 25px;height: 25px;margin: 0 auto;" data-id="{{item.id}}" data-index="{{index}}" bindtap="goUpdateZC"></image>
  92. </view>
  93. </view>
  94. </van-swipe-cell>
  95. </van-checkbox-group>
  96. <van-empty wx:if="{{flowListSRNum == 0 && showGroup}}" description="暂无收入事项数据" />
  97. <van-empty wx:if="{{flowListZCNum == 0 && !showGroup}}" description="暂无支出事项数据" />
  98. <view class="ipXbtn"></view>