refundApplicationRecord.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <view class="container">
  3. <view class="content">
  4. <screening :screen="screen" @setScreenData="setScreenData" @queryRecords="queryRecords" @resetScreen="resetScreen" @changeStartDate="changeStartDate" @changeEndDate="changeEndDate"></screening>
  5. <block v-if="!showNoData">
  6. <view class="record_box" v-for="(item, ind) in list" :key="ind">
  7. <view class="header_time border_bottom">
  8. <text>门诊退款申请</text>
  9. <text class="mr10" :class="item.Status=='1'?'colorCustom_F08':item.Status=='3'?'colorRed':'colorCustom'">{{item.Status=='1'?'审核中':item.Status=='2'?'审核通过':'审核驳回'}}</text>
  10. </view>
  11. <view class="main_centent">
  12. <view class="record_info">
  13. <text>申请人</text>
  14. <text>{{item.HandlerReName}}</text>
  15. </view>
  16. <view class="record_info">
  17. <text>退款金额</text>
  18. <text class="colorRed">{{item.RefundMoney/100}}元</text>
  19. </view>
  20. <view class="record_info">
  21. <text>就诊卡号</text>
  22. <text>{{item.CardNo}}</text>
  23. </view>
  24. <view class="record_info">
  25. <text>申请时间</text>
  26. <text>{{item.CreateTime}}</text>
  27. </view>
  28. <view class="record_info border_bottom"></view>
  29. <view class="record_info">
  30. <text>办理类型</text>
  31. <text v-if="item.FilingType == '1'">本人</text>
  32. <text v-if="item.FilingType == '2'">代办</text>
  33. </view>
  34. <view class="record_info">
  35. <text>收款户名</text>
  36. <text>{{item.HandlerReName}}</text>
  37. </view>
  38. <view class="record_info">
  39. <text>收款银行</text>
  40. <text>{{item.HandlerReBankName}}</text>
  41. </view>
  42. <view class="record_info">
  43. <text>开户银行</text>
  44. <text>{{item.HandlerBankName}}</text>
  45. </view>
  46. <view class="record_info">
  47. <text>银行卡号</text>
  48. <text>{{item.HandlerBankCardNo}}</text>
  49. </view>
  50. <block v-if="item.Status=='3'">
  51. <view class="record_info border_bottom"></view>
  52. <view class="record_info">
  53. <text>驳回原因</text>
  54. <text>{{item.AuditOpinion}}</text>
  55. </view>
  56. </block>
  57. </view>
  58. <view class="footerBtn displayFlexRow" v-if="item.Status=='3'">
  59. <text class="backgroundCustom" @click="editRefunInfo(item)">编辑申请信息</text>
  60. </view>
  61. </view>
  62. </block>
  63. <view v-else class="noData">
  64. <noData :value="noDataValue"></noData>
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script setup lang="ts">
  70. import { ref, reactive } from 'vue';
  71. import { onLoad } from '@dcloudio/uni-app';
  72. import { common } from '@/utils';
  73. import icon from '@/utils/icon';
  74. import { refundSelect } from '@/pagesPatient/service/refund/index';
  75. import noData from '@/pages/st1/components/noData/noData.vue';
  76. import screening from '@/pagesPatient/st1/components/screening/screening.vue';
  77. const iconUrl = ref(icon);
  78. const list = ref<any[]>([]); // 记录列表
  79. const showNoData = ref(false);
  80. const noDataValue = ref("暂无门诊退款申请记录");
  81. const PIndex = ref(0);
  82. // 筛选组件参数
  83. const screen = reactive({
  84. screenKey: 'screen',
  85. btnName: '',
  86. startDate: common.dateFormat(new Date(Date.now() - (21 * 24 * 60 * 60 * 1000))).formatYear, //开始时间 yyyy-mm-dd
  87. endDate: common.dateFormat(new Date(Date.now() )).formatYear, //结束时间 yyyy-mm-dd
  88. state: [],
  89. sourceType: [],
  90. memberId: [],
  91. columns: [],
  92. screenTime: [
  93. {label: "三周内",value: "21",check: true},
  94. {label: "两周内",value: "14",check: false},
  95. {label: "一周内",value: "7",check: false},
  96. ]
  97. });
  98. onLoad((options) => {
  99. querDiyRefundSelect();
  100. });
  101. const querDiyRefundSelect = async () => {
  102. let queryData = {
  103. OpenId: uni.getStorageSync('openid'),
  104. StartTime: screen.startDate,
  105. EndTime: screen.endDate,
  106. Page:{PIndex:0,PSize:2000}
  107. };
  108. let resp = await refundSelect(queryData);
  109. if (!common.isEmpty(resp)) {
  110. list.value = resp;
  111. showNoData.value = false;
  112. } else {
  113. list.value = [];
  114. showNoData.value = true;
  115. }
  116. };
  117. // 设置筛选数据
  118. const setScreenData = (e: any) => {
  119. Object.assign(screen, e);
  120. };
  121. // 选择结束时间
  122. const changeEndDate = (e: any) => {
  123. Object.assign(screen, e);
  124. list.value = [];
  125. PIndex.value = 0;
  126. // 查询申请记录
  127. querDiyRefundSelect();
  128. };
  129. // 选择开始时间
  130. const changeStartDate = (e: any) => {
  131. Object.assign(screen, e);
  132. list.value = [];
  133. PIndex.value = 0;
  134. // 查询申请记录
  135. querDiyRefundSelect();
  136. };
  137. // 查询
  138. const queryRecords = (e: any) => {
  139. PIndex.value = 0;
  140. list.value = [];
  141. // 查询申请记录
  142. querDiyRefundSelect();
  143. };
  144. // 重置
  145. const resetScreen = (e: any) => {
  146. let newScreen = common.deepCopy(e);
  147. Object.assign(screen, newScreen);
  148. list.value = [];
  149. PIndex.value = 0;
  150. // 查询申请记录
  151. querDiyRefundSelect();
  152. };
  153. const editRefunInfo = (item: any) => {
  154. common.goToUrl(`/pagesPatient/st1/business/refund/refundApplicationForm/refundApplicationForm?refunInfo=${encodeURIComponent(JSON.stringify(item))}`);
  155. };
  156. </script>
  157. <style>
  158. .record_box {
  159. background: white;
  160. margin: 30upx;
  161. border-radius: 24upx;
  162. }
  163. .header_time {
  164. height: 106upx;
  165. padding: 30upx;
  166. box-sizing: border-box;
  167. display: flex;
  168. flex-direction: row;
  169. justify-content: space-between;
  170. align-items: center;
  171. }
  172. .header_time text{
  173. font-size: 32upx;
  174. }
  175. .header_time text:nth-child(1){
  176. color: #333;
  177. font-weight: bold;
  178. }
  179. .main_centent {
  180. padding: 30upx;
  181. box-sizing: border-box;
  182. }
  183. .record_info {
  184. margin-bottom: 30upx;
  185. display: flex;
  186. flex-direction: row;
  187. justify-content: space-between;
  188. align-items: center;
  189. }
  190. .record_info:last-child{
  191. margin-bottom: 0 !important;
  192. }
  193. .record_info text:nth-child(1){
  194. width: 26%;
  195. display: inline-block;
  196. font-size: 30upx;
  197. color: #666;
  198. }
  199. .record_info text:nth-child(2){
  200. width: 74%;
  201. display: inline-block;
  202. font-size: 30upx;
  203. color: #666;
  204. }
  205. .footerBtn {
  206. justify-content: flex-end;
  207. padding-bottom: 30upx;
  208. }
  209. .footerBtn text {
  210. line-height: 66upx;
  211. display: inline-block;
  212. text-align: center;
  213. font-size: 28upx;
  214. border-radius: 60upx;
  215. position: relative;
  216. margin-right: 20upx;
  217. padding: 0 32upx;
  218. }
  219. </style>