You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1841 lines
77 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
  1. <template>
  2. <div class="content">
  3. <div class="div-card1">
  4. <el-card class="card1" style="margin-bottom: 0.5vh; min-height: 110px;">
  5. <div class="row1">
  6. <div class="rowItem">
  7. <el-text style="width: 4vw;">{{ t('common.jwcode') }}</el-text>
  8. <el-input v-model="searchData.jwcode" :placeholder="t('common.jwcodePlaceholder')"
  9. style="width:10vw;" clearable></el-input>
  10. </div>
  11. <div class="rowItem">
  12. <el-text style="width: 4vw;">{{ t('common.customerName') }}</el-text>
  13. <el-input v-model="searchData.name" :placeholder="t('common.customerNamePlaceholder')"
  14. style="width:10vw;" clearable></el-input>
  15. </div>
  16. <div class="rowItem">
  17. <el-text style="width: 4vw;">{{ t('common.market') }}</el-text>
  18. <el-cascader style="width: 9vw;" v-model="searchData.markets" :options="market"
  19. :placeholder="t('common.marketPlaceholder')" clearable @change="handleMarketChange" />
  20. </div>
  21. <!-- 地区财务固定显示付款币种删除客服的订单状态 -->
  22. <div class="rowItem">
  23. <el-text style="width: 4vw;">{{ t('common.payCurrency') }}</el-text>
  24. <el-select v-model="searchData.paymentCurrency"
  25. :placeholder="t('common.payCurrencyPlaceholder')" style="width: 10vw;" clearable>
  26. <el-option v-for="item in customOptions" :key="item" :label="item" :value="item" />
  27. </el-select>
  28. </div>
  29. <div class="rowItem">
  30. <el-text style="width: 4vw;">{{ t('common.payModel') }}</el-text>
  31. <el-select v-model="searchData.payType" :placeholder="t('common.payModelPlaceholder')"
  32. style="width: 10vw;" clearable>
  33. <el-option v-for="item in paytypeList" :key="item" :label="item" :value="item" />
  34. </el-select>
  35. </div>
  36. </div>
  37. <div class="row2" style="margin-top: 10px;">
  38. <div class="left">
  39. <div class="rowItem">
  40. <el-text style="width: 4vw;">{{ t('common.activityName') }}</el-text>
  41. <el-select v-model="searchData.activity" :placeholder="t('common.activityNameChoose')"
  42. style="width: 10vw;" clearable>
  43. <el-option v-for="item in activityList" :key="item.id" :label="item.activityName"
  44. :value="item.id" />
  45. </el-select>
  46. </div>
  47. <div class="rowItem">
  48. <el-text style="width: 4vw;">{{ t('common.productName') }}</el-text>
  49. <el-cascader v-model="searchData.goodsName" :options="productList" style="width: 10vw;"
  50. clearable />
  51. </div>
  52. <div class="rowItem" style="width: 25vw">
  53. <el-text style="width: 4vw; margin-left: 0.5vw;">{{ t('common.payTime') }}</el-text>
  54. <el-date-picker v-model="getTime" type="datetimerange" :range-separator="t('common.to')"
  55. :start-placeholder="t('common.startTime')" :end-placeholder="t('common.endTime')"
  56. style="width: 22vw; " @change="handleDatePickerChange" :default-time="defaultTime"
  57. :disabled-date="disabledDate" />
  58. </div>
  59. </div>
  60. <el-button style="width: 3vw;" type="primary" @click="search">{{ t('common.search') }}</el-button>
  61. <el-button style="width: 3vw;" type="success" @click="reset">{{ t('common.reset') }}</el-button>
  62. <el-button v-if="activeTab == 'done'" style="width: 5vw;" type="warning" @click="exportExcel">{{
  63. t('common.exportExcel') }}</el-button>
  64. <el-button v-if="activeTab == 'done'" style="width: 6vw;" type="primary" @click="openExportList">{{
  65. t('common.viewExportList') }}</el-button>
  66. </div>
  67. </el-card>
  68. </div>
  69. <div class="div-card2">
  70. <el-card class="card2">
  71. <div class="btns">
  72. <!-- 地区财务专属标签页待审核/已通过/已完成/已驳回 -->
  73. <div class="tabs">
  74. <el-button-group>
  75. <el-button class="btnItem"
  76. :style="{ backgroundColor: activeTab === 'wait' ? '#2741DE' : '#E5EBFE', color: activeTab === 'wait' ? 'white' : '#666' }"
  77. @click="navigateTo('wait')">
  78. {{ t('common.pendingAudit') }}
  79. </el-button>
  80. <el-button class="btnItem"
  81. :style="{ backgroundColor: activeTab === 'pass' ? '#2741DE' : '#E5EBFE', color: activeTab === 'pass' ? 'white' : '#666' }"
  82. @click="navigateTo('pass')">
  83. {{ t('common.passed') }}
  84. </el-button>
  85. <el-button class="btnItem"
  86. :style="{ backgroundColor: activeTab === 'done' ? '#2741DE' : '#E5EBFE', color: activeTab === 'done' ? 'white' : '#666' }"
  87. @click="navigateTo('done')">
  88. {{ t('common.completed') }}
  89. </el-button>
  90. <el-button class="btnItem"
  91. :style="{ backgroundColor: activeTab === 'reject' ? '#2741DE' : '#E5EBFE', color: activeTab === 'reject' ? 'white' : '#666' }"
  92. @click="navigateTo('reject')">
  93. {{ t('common.rejected') }}
  94. </el-button>
  95. </el-button-group>
  96. <div class="info-tooltip">
  97. <el-popover placement="top" :title="t('cash.receiveCashDataTitle')" :width="260"
  98. trigger="hover" :content="t('cash.receiveCashDataContent')"
  99. popper-class="custom-popover" :show-arrow="false">
  100. <template #reference>
  101. <el-icon class="service-icon">
  102. <Warning />
  103. </el-icon>
  104. </template>
  105. </el-popover>
  106. </div>
  107. </div>
  108. <!-- 删除客服的添加收款按钮 -->
  109. <div class="btnAdd"></div>
  110. </div>
  111. <div class="table">
  112. <el-table :data="tableData" style="width: 80vw;height:64vh;" @sort-change="handleSortChange"
  113. :row-style="{ height: '60px' }" :header-cell-style="{ textAlign: 'center' }"
  114. :cell-style="{ textAlign: 'center' }">
  115. <el-table-column type="index" :label="t('common_list.id')" width="100px" fixed="left">
  116. <template #default="scope">
  117. <span>{{ scope.$index + 1 + (pageInfo.pageNum - 1) * pageInfo.pageSize }}</span>
  118. </template>
  119. </el-table-column>
  120. <el-table-column fixed="left" prop="jwcode" label="Homily ID" width="110px" />
  121. <el-table-column fixed="left" prop="name" :label="t('common_list.name')" width="110px" />
  122. <el-table-column prop="marketName" :label="t('common_list.market')" width="80px" />
  123. <el-table-column prop="activity" :label="t('common_list.activity')" width="120px"
  124. show-overflow-tooltip />
  125. <el-table-column prop="goodsName" :label="t('common_list.productName')" width="120px" />
  126. <el-table-column prop="goodNum" :label="t('common_list.productNum')" width="130px">
  127. <template #default="scope">
  128. <span v-if="scope.row.goodsName == t('common_list.goldRecharge')">{{
  129. scope.row.permanentGold }}</span>
  130. <span v-else>{{ scope.row.goodNum }}</span>
  131. </template>
  132. </el-table-column>
  133. <el-table-column prop="paymentCurrency" :label="t('common_list.payCurrency')" width="120px" />
  134. <el-table-column prop="paymentAmount" :label="t('common_list.payAmount')" width="120px" />
  135. <!-- 地区财务显示到账币种/金额/手续费已通过/已完成标签页 -->
  136. <el-table-column prop="receivedCurrency" :label="t('common_list.receiveCurrency')"
  137. v-if="activeTab == 'pass' || activeTab == 'done'" width="150px"></el-table-column>
  138. <el-table-column prop="receivedAmount" :label="t('common_list.receiveAmount')"
  139. v-if="activeTab == 'pass' || activeTab == 'done'" width="150px">
  140. <template #default="scope">
  141. <div v-if="!scope.row.receivedAmount">
  142. <text style="color: #FA5A1E;">{{ t('common_list.toSupply') }}</text>
  143. </div>
  144. </template>
  145. </el-table-column>
  146. <el-table-column prop="handlingCharge" :label="t('common_list.fee')"
  147. v-if="activeTab == 'pass' || activeTab == 'done'" width="150px">
  148. <template #default="scope">
  149. <div v-if="scope.row.handlingCharge == null">
  150. <text style="color: #FA5A1E;">{{ t('common_list.toSupply') }}</text>
  151. </div>
  152. </template>
  153. </el-table-column>
  154. <el-table-column prop="payType" :label="t('common_list.payModel')" width="130px" />
  155. <el-table-column prop="payTime" :label="t('common_list.payTime')" width="180px" />
  156. <el-table-column prop="voucher" :label="t('common_list.transferVoucher')" width="110px">
  157. <template #default="scope">
  158. <div v-if="scope.row.voucher"
  159. style="display: flex; justify-content: center; align-items: center; cursor: pointer;"
  160. @click="previewImage(scope.row.voucher)">
  161. <img :src="scope.row.voucher" :alt="t('common_list.payVoucher')"
  162. style="width: auto; height: 40px;">
  163. </div>
  164. <div v-else
  165. style="display: flex; justify-content: center; align-items: center; height: 40px;">
  166. </div>
  167. </template>
  168. </el-table-column>
  169. <el-table-column prop="submitterName" :label="t('common_list.submitter')" width="150px"
  170. show-overflow-tooltip></el-table-column>
  171. <!-- 地区财务显示审核人已通过/已驳回/已完成标签页 -->
  172. <el-table-column prop="auditName" :label="t('common_list.approver')"
  173. v-if="activeTab == 'pass' || activeTab == 'reject' || activeTab == 'done'" width="150px"
  174. show-overflow-tooltip></el-table-column>
  175. <el-table-column prop="receivedTime" :label="t('common_list.receiveTime')"
  176. v-if="activeTab == 'pass' || activeTab == 'done'" width="180px" />
  177. <el-table-column prop="remark" :label="t('common_list.remark')" v-if="activeTab != 'reject'"
  178. width="150px" show-overflow-tooltip></el-table-column>
  179. <el-table-column prop="status" fixed="right" :label="t('common_list.orderStatus')"
  180. v-if="activeTab == 'done'" width="150px" show-overflow-tooltip>
  181. <template #default="scope">
  182. <span style="color: rgb(242, 84, 83);" v-if="scope.row.status == 6">{{
  183. t('common_list.refund') }}</span>
  184. <span style="color: rgb(127,204,133);" v-else>{{ t('common_list.normal') }}</span>
  185. </template>
  186. </el-table-column>
  187. <el-table-column prop="auditTime" :label="t('common_list.rejectTime')"
  188. v-if="activeTab == 'reject'" width="180px" show-overflow-tooltip></el-table-column>
  189. <el-table-column prop="rejectReason" :label="t('common_list.rejectReason')"
  190. v-if="activeTab == 'reject'" width="150px">
  191. <template #default="scope">
  192. <div class="ellipsis-container"
  193. @mouseenter="handleMouseEnter($event, scope.row.rejectReason)"
  194. @mouseleave="handleMouseLeave" @mousemove="handleMouseMove($event)">
  195. <span class="ellipsis-text">
  196. {{ scope.row.rejectReason || '—' }}
  197. </span>
  198. <!-- 自定义提示框 -->
  199. <div v-if="showTooltip && tooltipContent" class="custom-tooltip" :style="{
  200. left: `${tooltipLeft}px`,
  201. top: `${tooltipTop}px`
  202. }">
  203. {{ tooltipContent }}
  204. </div>
  205. </div>
  206. </template>
  207. </el-table-column>
  208. <!-- 地区财务表格操作待审核审核已通过编辑 -->
  209. <el-table-column fixed="right" :label="t('common_list.operation')" width="120px" v-if="activeTab != 'reject'">
  210. <template #default=scope>
  211. <el-link v-if="activeTab == 'wait'" style="color: #2741DE;"
  212. @click="openAuditForm(scope.row)">{{ t('common.audit') }}</el-link>
  213. <el-link
  214. v-else-if="activeTab == 'pass' && !(scope.row.status == 6 || scope.row.status == 4) && scope.row.receivedMarket == adminData.markets"
  215. style="color: #2741DE;" @click="openEditForm(scope.row)">{{ t('common.edit')
  216. }}</el-link>
  217. <el-link
  218. v-else-if="activeTab == 'done' && scope.row.status == 4 && startsWith(scope.row.orderCode, 'GOLDCOIN')"
  219. style="color: rgb(242, 84, 83);" @click="openRefundConfirm(scope.row)">{{
  220. t('common.refund') }}</el-link>
  221. </template>
  222. </el-table-column>
  223. </el-table>
  224. </div>
  225. <div class="pagination">
  226. <el-pagination background :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize"
  227. :page-sizes="[5, 10, 20, 50, 100]" layout="total, sizes, prev, pager, next, jumper"
  228. :total="total" @size-change="handlePagination('size', $event)"
  229. @current-change="handlePagination('page', $event)"></el-pagination>
  230. </div>
  231. </el-card>
  232. </div>
  233. <!-- 退款确认弹窗 -->
  234. <div class="recallDialog" v-show="refundConfirmDialog">
  235. <div class="close">
  236. <button @click="closeConfirmRefund" class="Btn">{{ t('common.close') }}</button>
  237. </div>
  238. <div class="text">
  239. <text class="txt">{{ textContent }}</text>
  240. </div>
  241. <div class="cancle">
  242. <button @click="closeConfirmRefund" class="Btn">{{ t('common.cancel') }}</button>
  243. </div>
  244. <div class="confirm">
  245. <button @click="openRefundDialog" class="Btn">{{ t('common.confirm') }}</button>
  246. </div>
  247. </div>
  248. <!-- 导出列表 -->
  249. <el-dialog v-model="exportListVisible" :title="t('common_export.exportList')" width="60vw">
  250. <el-table :data="exportList" style="width: 100% ;height: 60vh;" :loading="exportListLoading">
  251. <el-table-column prop="fileName" :label="t('common_export.fileName')" />
  252. <el-table-column prop="state" :label="t('common_export.status')">
  253. <template #default="scope">
  254. <el-tag :type="getTagType(scope.row.state)" :effect="scope.row.state === 3 ? 'light' : 'plain'">
  255. {{ getTagText(scope.row.state) }}
  256. </el-tag>
  257. </template>
  258. </el-table-column>
  259. <el-table-column prop="createTime" :label="t('common_export.createTime')">
  260. <template #default="scope">
  261. {{ moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
  262. </template>
  263. </el-table-column>
  264. <el-table-column :label="t('common_export.operation')">
  265. <template #default="scope">
  266. <el-button type="primary" size="small" @click="downloadExportFile(scope.row)"
  267. :disabled="scope.row.state !== 2">
  268. {{ t('common_export.download') }}
  269. </el-button>
  270. </template>
  271. </el-table-column>
  272. </el-table>
  273. <template #footer>
  274. <div class="dialog-footer">
  275. <el-button text @click="exportListVisible = false">{{ t('common_export.close') }}</el-button>
  276. </div>
  277. </template>
  278. </el-dialog>
  279. <!-- 审核弹窗 -->
  280. <el-dialog class="adddialog" v-model="auditFormisible" width="28vw" :before-close="closeAuditForm">
  281. <el-form class="addForm" label-width="4vw" label-position="left">
  282. <el-form-item :label="t('common_add.jwcode')">
  283. <el-input disabled="true" v-model="auditFormData.jwcode"
  284. :placeholder="t('common_add.rejectReasonPlaceholder')" />
  285. </el-form-item>
  286. <el-form-item :label="t('common_add.customerName')">
  287. <el-input disabled="true" v-model="auditFormData.name"
  288. :placeholder="t('common_add.customerNamePlaceholder')" />
  289. </el-form-item>
  290. <el-form-item :label="t('common_add.market')">
  291. <el-input disabled="true" v-model="auditFormData.market" />
  292. </el-form-item>
  293. <el-form-item :label="t('common_add.activity')">
  294. <el-input disabled="true" v-model="auditFormData.activity"
  295. :placeholder="t('common_add.activityPlaceholder')" />
  296. </el-form-item>
  297. <el-form-item :label="t('common_add.productName')">
  298. <el-select disabled="true" v-model="auditFormData.goodsName" />
  299. </el-form-item>
  300. <el-form-item v-if="!isGold" :label="t('common_add.productNum')">
  301. <div style="display: flex;">
  302. <el-input disabled="true" style="padding-right: 30px; flex: 3;" v-model="auditFormData.goodNum"
  303. :placeholder="t('common_add.productNumPlaceholder')" />
  304. <CurrencySelect disabled="true" v-model="auditFormData.numUnit" :items="numUnitList"
  305. style="flex: 1.5;" :placeholder="t('common_add.numUnit')" @change="handleCurrencyChange" />
  306. </div>
  307. </el-form-item>
  308. <div v-show="isGold" style="margin-bottom: 15px; display: flex;">
  309. <div style=" display: flex; ">
  310. <span style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{
  311. t('common_add.permanentGold') }}</span>
  312. <el-input disabled="true"
  313. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  314. v-model="auditFormData.permanentGold" />
  315. </div>
  316. <div style="padding-right: 5px; display: flex;">
  317. <span style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{
  318. t('common_add.freeGold') }}</span>
  319. <el-input disabled="true"
  320. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  321. v-model="auditFormData.freeGold" />
  322. </div>
  323. </div>
  324. <el-form-item :label="t('common_add.payCurrency')">
  325. <el-select disabled="true" v-model="auditFormData.paymentCurrency"
  326. :placeholder="t('common_add.payCurrencyPlaceholder')" @change="handleCurrencyChange" />
  327. </el-form-item>
  328. <el-form-item :label="t('common_add.payAmount')">
  329. <el-input disabled="true" v-model="auditFormData.paymentAmount"
  330. :placeholder="t('common_add.payAmountPlaceholder')" />
  331. </el-form-item>
  332. <el-form-item :label="t('common_add.payMethod')">
  333. <el-select disabled="true" v-model="auditFormData.payType" :items="paytypeOptions"
  334. :placeholder="t('common_add.payMethodPlaceholder')" />
  335. </el-form-item>
  336. <el-form-item :label="t('common_add.receiveArea')">
  337. <el-select disabled="true" v-model="auditFormData.receivedMarket"
  338. :placeholder="t('common_add.receiveArea')" />
  339. </el-form-item>
  340. <el-form-item :label="t('common_add.payTime')">
  341. <el-date-picker disabled="true" type="datetime" v-model="auditFormData.payTime"
  342. :placeholder="t('common_add.payTimePlaceholder')" />
  343. </el-form-item>
  344. <el-form-item :label="t('common_add.transferVoucher')">
  345. <div class="pic">
  346. <el-upload disabled="true" ref="uploadRef" class="uploader" :show-file-list="false"
  347. list-type="picture-card" :auto-upload="false" :before-upload="beforeUpload"
  348. :on-error="handelImgErr" :on-change="handleImageChange" :http-request="customUpload">
  349. <img v-if="auditFormData.voucher" :src="auditFormData.voucher" class="avatar"
  350. style="height: 100%; width: 100%; object-fit: cover;" />
  351. <el-icon v-else class="avatar-uploader-icon">
  352. <Plus />
  353. </el-icon>
  354. </el-upload>
  355. <el-text class="picText">
  356. {{ t('common_add.transferVoucherPlaceholder') }}
  357. </el-text>
  358. </div>
  359. </el-form-item>
  360. <el-form-item :label="t('common_add.remark')">
  361. <el-input disabled="true" v-model="auditFormData.remark" type="textarea" :rows="3" maxlength="100"
  362. show-word-limit />
  363. </el-form-item>
  364. <el-form-item :label="t('common_add.rejectReason')" v-if="ifReject" required>
  365. <el-input v-model="auditFormData.rejectReason" type="textarea" :rows="3"
  366. :placeholder="t('common_add.rejectReasonPlaceholder')" maxlength="100" show-word-limit />
  367. </el-form-item>
  368. </el-form>
  369. <template #footer>
  370. <span class="dialog-footer" v-if="!ifReject">
  371. <el-button style="background-color: #7E91FF;" @click="ifReject = true">{{ t('common.reject')
  372. }}</el-button>
  373. <el-button :style="{
  374. backgroundColor: isBtnDisabled ? '#E5E5E5FF' : '#2741DEFF',
  375. marginLeft: '60px',
  376. color: isBtnDisabled ? '#8A8A8A' : '#F3FAFE'
  377. }" @click="handelAudit" :disabled="isBtnDisabled">{{ btnText }}</el-button>
  378. </span>
  379. <span class="dialog-footer" v-if="ifReject">
  380. <el-button style="background-color: #7E91FF;" @click="closeAuditForm">{{ t('common.cancel')
  381. }}</el-button>
  382. <el-button style="background-color: #2741DE; margin-left: 2.5vw;" type="primary"
  383. @click="throttledhandelAuditReject">{{ t('common.confirm') }}</el-button>
  384. </span>
  385. </template>
  386. </el-dialog>
  387. <!-- 编辑填手续费弹窗 -->
  388. <el-dialog class="editdialog" v-model="editFormisible" width="28vw" :before-close="closeEditForm">
  389. <div class="content">
  390. <div class="left">
  391. <el-form class="editForm" label-width="6vw" label-position="left">
  392. <el-form-item :label="t('common_add.jwcode')">
  393. <el-input disabled="true" v-model="editFormData.jwcode"
  394. :placeholder="t('common_add.jwcode')" />
  395. </el-form-item>
  396. <el-form-item :label="t('common_add.customerName')">
  397. <el-input disabled="true" v-model="editFormData.name"
  398. :placeholder="t('common_add.customerName')" />
  399. </el-form-item>
  400. <el-form-item :label="t('common_add.market')">
  401. <el-input disabled="true" v-model="editFormData.marketName"
  402. :placeholder="t('common_add.market')" />
  403. </el-form-item>
  404. <el-form-item :label="t('common_add.activity')">
  405. <el-input disabled="true" v-model="editFormData.activity"
  406. :placeholder="t('common_add.activity')" />
  407. </el-form-item>
  408. <el-form-item :label="t('common_add.productName')">
  409. <el-select disabled="true" v-model="editFormData.goodsName"
  410. :placeholder="t('common_add.productName')" clearable></el-select>
  411. </el-form-item>
  412. <!-- 金币产品特殊显示 -->
  413. <el-form-item v-show="!isEditGold" :label="t('common_add.productNum')">
  414. <div style="display: flex;">
  415. <el-input disabled="true" style="padding-right: 30px; flex: 3;"
  416. v-model="editFormData.goodNum"
  417. :placeholder="t('common_add.productNumPlaceholder')" />
  418. <CurrencySelect disabled="true" v-model="editFormData.numUnit" :items="numUnitList"
  419. style="flex: 1.5;" :placeholder="t('common_add.numUnit')"
  420. @change="handleCurrencyChange" />
  421. </div>
  422. </el-form-item>
  423. <div v-show="isEditGold" style="margin-bottom: 15px; display: flex;">
  424. <div style=" display: flex; margin-right: 10px;">
  425. <span style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{
  426. t('common_add.permanentGold') }}</span>
  427. <el-input disabled="true"
  428. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  429. v-model="editFormData.permanentGold" />
  430. </div>
  431. <div style="padding-right: 5px; display: flex;">
  432. <span style="color: #999999; display: flex; white-space: nowrap;align-items: center;">{{
  433. t('common_add.freeGold') }}</span>
  434. <el-input disabled="true"
  435. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  436. v-model="editFormData.freeGold" />
  437. </div>
  438. </div>
  439. <el-form-item :label="t('common_add.payCurrency')">
  440. <CurrencySelect :disabled="!ifOnline" v-model="editFormData.paymentCurrency"
  441. :items="customOptions" :placeholder="t('common_add.payCurrency')" />
  442. </el-form-item>
  443. <el-form-item :label="t('common_add.paymentAmount')">
  444. <el-input :disabled="!ifOnline" v-model="editFormData.paymentAmount"
  445. :placeholder="t('common_add.paymentAmount')" />
  446. </el-form-item>
  447. <el-form-item :label="t('common_add.payMethod')">
  448. <el-select disabled="true" v-model="editFormData.payType"
  449. :placeholder="t('common_add.payMethod')" clearable></el-select>
  450. </el-form-item>
  451. <el-form-item :label="t('common_add.receiveArea')">
  452. <el-select disabled="true" v-model="editFormData.receivedMarket"
  453. :placeholder="t('common_add.receiveArea')" clearable></el-select>
  454. </el-form-item>
  455. <el-form-item :label="t('common_add.payTime')">
  456. <el-date-picker disabled="true" type="datetime" v-model="editFormData.payTime"
  457. :placeholder="t('common_add.payTime')" />
  458. </el-form-item>
  459. <el-form-item :label="t('common_add.transferVoucher')">
  460. <div class="pic">
  461. <el-upload disabled="true" ref="uploadRef" class="uploader" :show-file-list="false"
  462. list-type="picture-card" :auto-upload="false" :before-upload="beforeUpload"
  463. :on-error="handelImgErr" :on-change="handleImageChange"
  464. :http-request="customUpload">
  465. <img v-if="editFormData.voucher" :src="editFormData.voucher" class="avatar"
  466. style="height: 100%; width: 100%; object-fit: cover;" />
  467. <el-icon v-else class="avatar-uploader-icon">
  468. <Plus />
  469. </el-icon>
  470. </el-upload>
  471. <el-text class="picText">{{ t('common_add.transferVoucherPlaceholder') }}</el-text>
  472. </div>
  473. </el-form-item>
  474. <el-form-item :label="t('common_add.remark')">
  475. <el-input disabled="true" v-model="editFormData.remark" type="textarea" :rows="4"
  476. :placeholder="t('common_add.remark')" maxlength="100" show-word-limit />
  477. </el-form-item>
  478. </el-form>
  479. </div>
  480. <div class="right">
  481. <el-form ref="editFormRef" :rules="editFormRule" :model="editFormData" class="editFormRighrt"
  482. label-width="6vw" label-position="left">
  483. <el-form-item :label="t('common_add.receiveCurrency')">
  484. <CurrencySelect v-model="editFormData.receivedCurrency" :items="customOptions"
  485. :placeholder="t('common_add.receiveCurrencyPlaceholder')" />
  486. </el-form-item>
  487. <el-form-item :label="t('common_add.receiveAmount')" prop="receivedAmount">
  488. <el-input v-model="editFormData.receivedAmount"
  489. :placeholder="t('common_add.receiveAmountPlaceholder')" type="number" />
  490. </el-form-item>
  491. <el-form-item :label="t('common_add.fee')" prop="handlingCharge">
  492. <el-input v-model="editFormData.handlingCharge"
  493. :placeholder="t('common_add.feePlaceholder')" type="number" />
  494. </el-form-item>
  495. <el-form-item :label="t('common_add.receiveTime')">
  496. <el-date-picker type="datetime" v-model="editFormData.receivedTime"
  497. :placeholder="t('common_add.receiveTimePlaceholder')" />
  498. </el-form-item>
  499. </el-form>
  500. <span class="editBtns">
  501. <button class="editBtn1" @click="closeEditForm">
  502. <text class="txt">{{ t('common.cancel') }}</text>
  503. </button>
  504. <button class="editBtn2" @click="throttledsubmitEditForm">
  505. <text class="txt">{{ t('common.submit') }}</text>
  506. </button>
  507. </span>
  508. </div>
  509. </div>
  510. </el-dialog>
  511. <!-- 新增退款 -->
  512. <el-dialog v-model="refundDialog" :title="t('common_add.refund')" class="refundDialog" overflow draggable style="width: 40vw;"
  513. :before-close="closeRefundForm">
  514. <div style="display: flex;">
  515. <div class="left">
  516. <div class="add-item">
  517. <el-text style="width:4vw;">{{ t('common_add.jwcode') }}</el-text>
  518. <el-input v-model="refundFormData.jwcode" style="width:10vw;" disabled />
  519. </div>
  520. <div class="add-item">
  521. <el-text style="width:4vw;">{{ t('common_add.customerName') }}</el-text>
  522. <el-input v-model="refundFormData.name" style="width:10vw;" disabled />
  523. </div>
  524. <div class="add-item">
  525. <el-text style="width:4vw;">{{ t('common_add.market') }}</el-text>
  526. <el-input v-model="refundFormData.marketName" style="width:10vw;" disabled />
  527. </div>
  528. <div class="add-item">
  529. <el-text style="width:4vw;">{{ t('common_add.activity') }}</el-text>
  530. <el-input v-model="refundFormData.activity" style="width:10vw;" disabled />
  531. </div>
  532. <div class="add-item">
  533. <el-text style="width:4vw;">{{ t('common_add.productName') }}</el-text>
  534. <el-input v-model="refundFormData.goodsName" style="width:10vw;" disabled />
  535. </div>
  536. <div v-show="!isRefundGold" class="add-item">
  537. <el-text style="width:4vw;">{{ t('common_add.productNum') }}</el-text>
  538. <el-input style="padding-right: 10px; width:6.5vw;" v-model="refundFormData.goodNum"
  539. :placeholder="t('common_add.productNumPlaceholder')" disabled />
  540. <CurrencySelect disabled="true" v-model="refundFormData.numUnit" :items="numUnitList"
  541. style=" width: 3.5vw;" :placeholder="t('common_add.numUnit')"
  542. @change="handleCurrencyChange" />
  543. </div>
  544. <div v-show="isRefundGold" style="display: flex; margin-bottom: 10px;">
  545. <div style=" display: flex; align-items: center;justify-content: center; ">
  546. <span style="color: #999999; white-space: nowrap;">{{ t('common_add.permanentGold')
  547. }}</span>
  548. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  549. v-model="refundFormData.permanentGold" disabled />
  550. </div>
  551. <div style=" display: flex; align-items: center;justify-content: center; ">
  552. <span style="color: #999999; white-space: nowrap;">{{ t('common_add.freeGold') }}</span>
  553. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  554. v-model="refundFormData.freeGold" disabled />
  555. </div>
  556. </div>
  557. <div class="add-item">
  558. <el-text style="width:4vw;">{{ t('common_add.payCurrency') }}</el-text>
  559. <el-input v-model="refundFormData.paymentCurrency" style="width:10vw;" disabled />
  560. </div>
  561. <div class="add-item">
  562. <el-text style="width:4vw;">{{ t('common_add.payAmount') }}</el-text>
  563. <el-input v-model="refundFormData.paymentAmount" style="width:10vw;" disabled />
  564. </div>
  565. <div class="add-item">
  566. <el-text style="width:4vw;">{{ t('common_add.payMethod') }}</el-text>
  567. <el-input v-model="refundFormData.payType" style="width:10vw;" disabled />
  568. </div>
  569. <div class="add-item">
  570. <el-text style="width:4vw;">{{ t('common_add.payTime') }}</el-text>
  571. <el-date-picker v-model="refundFormData.payTime" type="datetime" style="width:10vw;" disabled />
  572. </div>
  573. <div class="add-item">
  574. <el-text style="width:4vw;" size="small">{{ t('common_add.transferVoucher') }}</el-text>
  575. <el-form-item
  576. :rules="{ required: true, message: t('common_add.uploadPhoto'), trigger: 'change' }">
  577. <el-upload ref="uploadRef" :auto-upload="false" list-type="picture-card"
  578. :show-file-list="false">
  579. <template #default>
  580. <img v-if="refundFormData.voucher" :src="refundFormData.voucher"
  581. style="width: 100%; height: 100%; object-fit: cover;">
  582. <el-icon v-else>
  583. <Plus />
  584. </el-icon>
  585. </template>
  586. </el-upload>
  587. </el-form-item>
  588. </div>
  589. <div class="add-item">
  590. <el-text style="width:4vw;">{{ t('common_add.remark') }}</el-text>
  591. <el-input v-model="refundFormData.remark" style="width:10vw;" :rows="2" type="textarea"
  592. maxLength="100" disabled show-word-limit />
  593. </div>
  594. </div>
  595. <div class="right">
  596. <div class="add-item">
  597. <el-text style="width:4vw;">{{ t('common_add.refundModel') }}</el-text>
  598. <el-radio-group v-model="refundFormData.refundModel">
  599. <el-radio value="0">{{ t('common_add.refundModelAll') }}</el-radio>
  600. <el-radio value="1">{{ t('common_add.refundModelPart') }}</el-radio>
  601. </el-radio-group>
  602. </div>
  603. <div v-show="refundFormData.refundModel == '1'" style="display: flex; margin-bottom: 10px;">
  604. <div style=" display: flex; align-items: center;justify-content: center; ">
  605. <span style="color: #999999; white-space: nowrap;">{{ t('common_add.permanentGold')
  606. }}</span>
  607. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  608. v-model="refundFormData.partRefundGold" dsabled />
  609. </div>
  610. <div style=" display: flex; align-items: center;justify-content: center; ">
  611. <span style="color: #999999; white-space: nowrap;">{{ t('common_add.freeGold') }}</span>
  612. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  613. v-model="refundFormData.partRefundFree" />
  614. </div>
  615. </div>
  616. <div class="add-item">
  617. <el-text style="width:4vw;">{{ t('common_add.refundReason') }}</el-text>
  618. <el-input v-model="refundFormData.refundReason" style="width:10vw;" :rows="5" maxlength="150"
  619. show-word-limit type="textarea" />
  620. </div>
  621. <div>{{ t('common_add.tip') }}</div>
  622. <div style="display:flex;justify-content: center;margin-top: 5vh;">
  623. <el-button type="default" @click="resetRefund">{{ t('common.reset') }}</el-button>
  624. <el-button type="primary" @click="throttledsubmitRefund">{{ t('common.submit') }}</el-button>
  625. </div>
  626. </div>
  627. </div>
  628. </el-dialog>
  629. </div>
  630. </template>
  631. <script setup>
  632. // 仅导入地区财务所需依赖
  633. import { ref, watch, onMounted } from 'vue';
  634. import { storeToRefs } from 'pinia';
  635. import { ElMessage, ElMessageBox } from 'element-plus';
  636. import API from '@/util/http.js';
  637. import request from '@/util/http.js';
  638. import moment from 'moment';
  639. import _ from 'lodash';
  640. import { Plus } from '@element-plus/icons-vue';
  641. import { startsWith } from './utils/util.js'
  642. import { isNumber } from 'lodash'
  643. // 地区财务专属组件
  644. import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue';
  645. // 静态数据与规则(仅保留必要项)
  646. import { editFormRule } from './utils/recriveFormRules.js';
  647. import { productList, MarketNameForId, CurrencyForId, marketList, normalizeSubmitterMarket } from './utils/staticData.js';
  648. import { useAdminStore } from '@/store/index.js';
  649. import { hasMenuPermission } from '@/utils/menuTreePermission.js';
  650. // 国际化
  651. import { useI18n } from 'vue-i18n'
  652. const { t } = useI18n()
  653. // ===================== 1. 核心状态管理(仅地区财务) =====================
  654. const adminStore = useAdminStore();
  655. const { menuTree } = storeToRefs(adminStore);
  656. // 角色固定:地区财务(caiwu=true,其他角色关闭)
  657. const kefu = ref(false);
  658. const caiwu = ref(true);
  659. const HQcaiwu = ref(false);
  660. const superAdmin = ref(false);
  661. // 表格与分页数据
  662. const tableData = ref([]);
  663. const total = ref(0);
  664. const pageInfo = ref({ pageSize: 10, pageNum: 1 });
  665. // 筛选地区树
  666. const market = ref([])
  667. // 搜索条件
  668. const searchData = ref({});
  669. const defaultTime = [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)];
  670. const getTime = ref([]);
  671. // 标签页:默认“待审核”
  672. const activeTab = ref('wait');
  673. // 审核弹窗状态
  674. const auditFormisible = ref(false);
  675. const auditFormData = ref({});
  676. const ifReject = ref(false);
  677. const countdown = ref(0);
  678. const isBtnDisabled = ref(false);
  679. const btnText = ref(t('common.pass') + '(3)');
  680. // 编辑弹窗状态
  681. const editFormisible = ref(false);
  682. const editFormData = ref({});
  683. const editFormRef = ref(null);
  684. const isEditGold = ref(false); // 金币产品标记
  685. const ifOnline = ref(false); // 在线支付标记
  686. // 辅助状态:图片上传、悬浮提示
  687. const uploadRef = ref(null);
  688. const showTooltip = ref(false);
  689. const tooltipContent = ref('');
  690. const tooltipLeft = ref(0);
  691. const tooltipTop = ref(0);
  692. // 退款确认弹窗
  693. const refundConfirmDialog = ref(false)
  694. const textContent = ref('')
  695. //退款弹窗
  696. const refundDialog = ref(false)
  697. const refundFormData = ref({})
  698. const openRefundDialog = () => {
  699. refundDialog.value = true
  700. closeConfirmRefund()
  701. }
  702. const closeRefundForm = () => {
  703. refundDialog.value = false
  704. refundFormData.value = {}
  705. }
  706. const isRefundGold = ref(false)
  707. const ifRefundGold = () => {
  708. if (refundFormData.value.goodsName === t('cash.coinRecharge')) {
  709. isRefundGold.value = true
  710. refundFormData.value.goodNum = 0
  711. } else {
  712. isRefundGold.value = false
  713. }
  714. }
  715. // 基础数据
  716. const adminData = ref({});
  717. const activityList = ref([]);
  718. const customOptions = ref([
  719. t('cash.currency.usd'), // 美元(USD)
  720. t('cash.currency.hkd'), // 港币(HKD)
  721. t('cash.currency.sgd'), // 新币(SGD)
  722. t('cash.currency.myr'), // 马币(MYR)
  723. t('cash.currency.thb'), // 泰铢(THB)
  724. t('cash.currency.cad'), // 加币(CAD)
  725. t('cash.currency.vnd'), // 越南盾(VND)
  726. t('cash.currency.krw') // 韩元(KRW)
  727. ])
  728. const paytypeList = [
  729. t('cash.payMethods.stripe'),
  730. t('cash.payMethods.paymentAsia'),
  731. t('cash.payMethods.ipay88'),
  732. t('cash.payMethods.bankTransfer'),
  733. t('cash.payMethods.card'),
  734. t('cash.payMethods.cash'),
  735. t('cash.payMethods.check'),
  736. t('cash.payMethods.grabpay'),
  737. t('cash.payMethods.nets'),
  738. t('cash.payMethods.transfer'),
  739. t('cash.payMethods.paypal'),
  740. ];
  741. const paytypeOptions = ref([...paytypeList]);
  742. // ===================== 2. 核心功能函数(仅地区财务) =====================
  743. //确认退款弹窗
  744. const openRefundConfirm = (row) => {
  745. textContent.value = t('common.willRefundOrder') + '?'
  746. refundConfirmDialog.value = true
  747. refundFormData.value = { ...row }
  748. ifRefundGold()
  749. console.log(row);
  750. }
  751. const closeConfirmRefund = () => {
  752. refundConfirmDialog.value = false
  753. textContent.value = ''
  754. }
  755. //导出相关
  756. const exportListVisible = ref(false)
  757. const exportList = ref([])
  758. const exportListLoading = ref(false)
  759. const exportExcel = async function () {
  760. let payCurrencySelect = '';
  761. let goodsName = '';
  762. // 处理时间范围
  763. if (getTime.value && getTime.value.length === 2) {
  764. searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss');
  765. searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss');
  766. } else {
  767. searchData.value.startTime = '';
  768. searchData.value.endTime = '';
  769. }
  770. // 处理产品名称(级联选择取最后一级)
  771. if (searchData.value.goodsName) {
  772. goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1];
  773. }
  774. // 处理付款币种(转ID)
  775. if (searchData.value.paymentCurrency) {
  776. payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency);
  777. }
  778. // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) {
  779. // ElMessage.error('精网号只能是数字')
  780. // return
  781. // }
  782. const cashRoleId = '1';
  783. const submitterMarket = normalizeSubmitterMarket(adminData.value.markets);
  784. searchData.value.status = 46;
  785. const params = {
  786. ...pageInfo.value,
  787. cashCollection: {
  788. ...searchData.value,
  789. submitterId: adminData.value.id,
  790. receivedMarket: MarketNameForId(submitterMarket),
  791. cashRoleId: cashRoleId,
  792. paymentCurrency: payCurrencySelect,
  793. submitterMarket: submitterMarket,
  794. goodsName: goodsName,
  795. market: MarketNameForId(searchData.value.market)
  796. }
  797. }
  798. const res = await API({ url: '/export/exportCash', data: params })
  799. if (res.code === 200) {
  800. ElMessage.success(t('elmessage.exportSuccess'))
  801. } else {
  802. ElMessage.error(res.msg || t('elmessage.exportFailed'))
  803. }
  804. }
  805. const openExportList = () => {
  806. getExportList()
  807. exportListVisible.value = true
  808. }
  809. //获取导出列表
  810. const getExportList = async () => {
  811. exportListLoading.value = true
  812. try {
  813. const result = await API({ url: '/export/export' })
  814. if (result.code === 200) {
  815. const filteredData = result.data.filter(item => {
  816. return item.type === 13
  817. })
  818. exportList.value = filteredData
  819. } else {
  820. ElMessage.error(result.msg || t('elmessage.getExportListError'))
  821. }
  822. } catch (error) {
  823. console.error('获取导出列表出错:', error)
  824. ElMessage.error(t('elmessage.getExportListError'))
  825. } finally {
  826. exportListLoading.value = false
  827. }
  828. }
  829. const downloadExportFile = (item) => {
  830. if (item.state === 2) {
  831. const link = document.createElement('a')
  832. link.href = item.url
  833. link.download = item.fileName
  834. link.click()
  835. } else {
  836. ElMessage.warning(t('elmessage.exportingInProgress'))
  837. }
  838. }
  839. //根据状态返回对应的标签类型
  840. const getTagType = (state) => {
  841. switch (state) {
  842. case 0:
  843. return 'info';
  844. case 1:
  845. return 'primary';
  846. case 2:
  847. return 'success';
  848. case 3:
  849. return 'danger';
  850. default:
  851. return 'info';
  852. }
  853. }
  854. //根据状态返回对应的标签文案
  855. const getTagText = (state) => {
  856. switch (state) {
  857. case 0:
  858. return t('elmessage.pendingExecution');
  859. case 1:
  860. return t('elmessage.executing');
  861. case 2:
  862. return t('elmessage.executed');
  863. case 3:
  864. return t('elmessage.errorExecution');
  865. default:
  866. return t('elmessage.unknownStatus');
  867. }
  868. }
  869. // 2.1 数据加载:获取地区财务订单列表
  870. const getlist = async () => {
  871. try {
  872. let payCurrencySelect = '';
  873. let goodsName = '';
  874. // 处理时间范围
  875. if (getTime.value && getTime.value.length === 2) {
  876. searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss');
  877. searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss');
  878. } else {
  879. searchData.value.startTime = '';
  880. searchData.value.endTime = '';
  881. }
  882. // 处理产品名称(级联选择取最后一级)
  883. if (searchData.value.goodsName) {
  884. goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1];
  885. }
  886. // 处理付款币种(转ID)
  887. if (searchData.value.paymentCurrency) {
  888. payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency);
  889. }
  890. // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) {
  891. // ElMessage.error('精网号只能是数字')
  892. // return
  893. // }
  894. // 地区财务固定参数:角色ID=1,按标签页筛选状态
  895. const cashRoleId = '1';
  896. const receivedMarket = normalizeSubmitterMarket(adminData.value.markets);
  897. if (activeTab.value === 'wait') searchData.value.status = 0;
  898. else if (activeTab.value === 'pass') searchData.value.status = 13;
  899. else if (activeTab.value === 'done') searchData.value.status = 46;
  900. else if (activeTab.value === 'reject') searchData.value.status = 2;
  901. // 地区处理
  902. const markets = ref(null)
  903. if (searchData.value.markets) {
  904. markets.value = searchData.value.markets[searchData.value.markets.length - 1]
  905. console.log('地区转换', markets.value)
  906. }
  907. if (searchData.value.jwcode) {
  908. const isPositiveInteger = /^[1-9]\d*$/.test(searchData.value.jwcode);
  909. if (!isPositiveInteger) {
  910. ElMessage.error(t('elmessage.checkJwcodeFormat'))
  911. return;
  912. }
  913. // 添加长度验证,超过8位提示错误
  914. if (searchData.value.jwcode.length > 8) {
  915. ElMessage.error(t('elmessage.limitJwcodeLength'))
  916. return;
  917. }
  918. }
  919. const result = await request({
  920. url: '/cashCollection/selectCollection',
  921. data: {
  922. ...pageInfo.value,
  923. cashCollection: {
  924. ...searchData.value,
  925. submitterId: adminData.value.id,
  926. receivedMarket: MarketNameForId(receivedMarket),
  927. cashRoleId: cashRoleId,
  928. paymentCurrency: payCurrencySelect,
  929. submitterMarket: normalizeSubmitterMarket(receivedMarket),
  930. goodsName: goodsName,
  931. // market: MarketNameForId(searchData.value.market)
  932. market: markets.value
  933. }
  934. }
  935. });
  936. if (result.code === 200) {
  937. tableData.value = result.data.list;
  938. total.value = result.data.total;
  939. } else {
  940. ElMessage.error(t('elmessage.orderDataLoadFailed'));
  941. }
  942. } catch (error) {
  943. console.error('地区财务订单列表请求异常:', error);
  944. ElMessage.error(t('elmessage.inNetworkError'));
  945. }
  946. };
  947. //重置退款
  948. const resetRefund = () => {
  949. refundFormData.value.refundModel = ''
  950. refundFormData.value.refundReason = ''
  951. }
  952. //提交退款
  953. const submitRefund = async () => {
  954. try {
  955. if (refundFormData.value.goodsName != t('cash.coinRecharge')) {
  956. return ElMessage.error(t('elmessage.onlineDataSupport'));
  957. }
  958. if (!refundFormData.value.refundModel) {
  959. return ElMessage.error(t('elmessage.selectRefundModel'));
  960. }
  961. if (!refundFormData.value.refundReason) {
  962. return ElMessage.error(t('elmessage.refundReasonPlaceholder'));
  963. }
  964. // 验证精网号格式和长度
  965. if (refundFormData.value.jwcode) {
  966. const isPositiveInteger = /^[1-9]\d*$/.test(refundFormData.value.jwcode);
  967. if (!isPositiveInteger) {
  968. return ElMessage.error(t('elmessage.checkJwcodeFormat'));
  969. }
  970. if (refundFormData.value.jwcode.length > 8) {
  971. return ElMessage.error(t('elmessage.limitJwcodeLength'));
  972. }
  973. }
  974. if (refundFormData.value.refundModel == 0) {
  975. refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
  976. refundFormData.value.partRefundFree = refundFormData.value.freeGold
  977. }
  978. const result = await request({
  979. url: '/Money/addOnline',
  980. data: {
  981. jwcode: refundFormData.value.jwcode,
  982. name: refundFormData.value.name,
  983. market: refundFormData.value.marketName,
  984. submitterId: adminData.value.id,
  985. submitterMarket: adminData.value.markets,
  986. remark: refundFormData.value.remark,
  987. refundReason: refundFormData.value.refundReason,
  988. refundModel: refundFormData.value.refundModel,
  989. originalOrderId: refundFormData.value.id,
  990. orderCode: refundFormData.value.orderCode,
  991. permanentGold: (refundFormData.value.permanentGold) * 100 || 0,
  992. freeGold: (refundFormData.value.freeGold) * 100 || 0,
  993. partRefundGold: (refundFormData.value.partRefundGold) * 100 || 0,
  994. partRefundFree: (refundFormData.value.partRefundFree) * 100 || 0,
  995. handlingCharge: refundFormData.value.handlingCharge == null ? null : refundFormData.value.handlingCharge * 100,
  996. }
  997. })
  998. if (result.code == 200) {
  999. ElMessage.success(t('elmessage.addRefundSuccess'))
  1000. getlist()
  1001. closeRefundForm()
  1002. } else {
  1003. ElMessage.error(result.msg)
  1004. getlist()
  1005. }
  1006. console.log('返回参数:', result);
  1007. } catch (error) {
  1008. console.log(error);
  1009. }
  1010. }
  1011. // 2.2 搜索与重置
  1012. const search = () => {
  1013. getlist();
  1014. };
  1015. const reset = () => {
  1016. searchData.value = {};
  1017. // 重置页码
  1018. pageInfo.value.pageNum = 1;
  1019. getTime.value = []
  1020. getlist();
  1021. };
  1022. // 2.3 标签页切换
  1023. const navigateTo = async (tab) => {
  1024. activeTab.value = tab;
  1025. await getlist();
  1026. };
  1027. // 2.4 审核功能
  1028. // 打开审核弹窗
  1029. const openAuditForm = (row) => {
  1030. auditFormData.value = { ...row, market: row.marketName };
  1031. ifGold(auditFormData.value)
  1032. console.log('isGold', isGold.value);
  1033. auditFormisible.value = true;
  1034. };
  1035. // 关闭审核弹窗
  1036. const closeAuditForm = () => {
  1037. ifReject.value = false;
  1038. auditFormisible.value = false;
  1039. auditFormData.value = {};
  1040. };
  1041. // 审核通过
  1042. const handelAudit = async () => {
  1043. try {
  1044. const result = await request({
  1045. url: '/cashAudit/collectionAudit',
  1046. data: {
  1047. orderCode: auditFormData.value.orderCode,
  1048. action: 1,
  1049. auditId: adminData.value.id
  1050. }
  1051. });
  1052. if (result.code === 200) {
  1053. ElMessage.success(t('elmessage.approveSuccess'));
  1054. getlist();
  1055. closeAuditForm();
  1056. } else {
  1057. ElMessage.error(result.msg || t('elmessage.approveFailed'));
  1058. }
  1059. } catch (error) {
  1060. console.error('审核通过请求异常:', error);
  1061. ElMessage.error(t('elmessage.inNetworkError'));
  1062. }
  1063. };
  1064. // 审核驳回
  1065. const handelAuditReject = async () => {
  1066. if (!auditFormData.value.rejectReason) {
  1067. ElMessage.warning(t('elmessage.rejectReasonPlaceholder'));
  1068. return;
  1069. }
  1070. try {
  1071. const result = await request({
  1072. url: '/cashAudit/collectionAudit',
  1073. data: {
  1074. orderCode: auditFormData.value.orderCode,
  1075. rejectReason: auditFormData.value.rejectReason,
  1076. action: 2,
  1077. auditId: adminData.value.id
  1078. }
  1079. });
  1080. if (result.code === 200) {
  1081. ElMessage.success(t('elmessage.rejectSuccess'));
  1082. getlist();
  1083. closeAuditForm();
  1084. } else {
  1085. ElMessage.error(result.msg || t('elmessage.rejectFailed'));
  1086. }
  1087. } catch (error) {
  1088. console.error('审核驳回请求异常:', error);
  1089. ElMessage.error(t('elmessage.inNetworkError'));
  1090. }
  1091. };
  1092. //判断产品类型
  1093. const isGold = ref(false)
  1094. const ifGold = (data) => {
  1095. console.log('data', data);
  1096. if (data.goodsName === t('cash.coinRecharge')) {
  1097. isGold.value = true
  1098. } else {
  1099. isGold.value = false
  1100. }
  1101. }
  1102. // 审核按钮倒计时(防止误操作)
  1103. watch(auditFormisible, (val) => {
  1104. if (val) {
  1105. countdown.value = 3;
  1106. isBtnDisabled.value = true;
  1107. btnText.value = `${t('common.pass')}(${countdown.value})`;
  1108. const timer = setInterval(() => {
  1109. countdown.value--;
  1110. btnText.value = `${t('common.pass')}(${countdown.value})`;
  1111. if (countdown.value <= 0) {
  1112. isBtnDisabled.value = false;
  1113. clearInterval(timer);
  1114. btnText.value = t('common.pass');
  1115. }
  1116. }, 1000);
  1117. }
  1118. });
  1119. // 2.5 编辑手续费功能
  1120. // 打开编辑弹窗
  1121. const openEditForm = (row) => {
  1122. console.log('row.aaa', row.handlingCharge);
  1123. editFormData.value = { ...row };
  1124. // 区分金币产品与普通产品
  1125. if (row.goodsName === t('cash.coinRecharge')) isEditGold.value = true;
  1126. else isEditGold.value = false;
  1127. // 在线支付订单允许修改付款信息
  1128. if (row.status === 3) ifOnline.value = true;
  1129. else ifOnline.value = false;
  1130. editFormisible.value = true;
  1131. };
  1132. // 关闭编辑弹窗
  1133. const closeEditForm = () => {
  1134. editFormisible.value = false;
  1135. editFormData.value = {};
  1136. editFormRef.value.resetFields();
  1137. };
  1138. // 提交编辑(补充手续费)
  1139. const submitEditForm = async () => {
  1140. try {
  1141. await editFormRef.value.validate();
  1142. // 处理时间格式
  1143. if (editFormData.value.receivedTime) {
  1144. editFormData.value.receivedTime = moment(editFormData.value.receivedTime).format('YYYY-MM-DD HH:mm:ss');
  1145. }
  1146. console.log('editFormData.value.handlingCharge', editFormData.value.handlingCharge);
  1147. const result = await request({
  1148. url: '/cashCollection/complete',
  1149. data: {
  1150. orderCode: editFormData.value.orderCode,
  1151. handlingCharge: editFormData.value.handlingCharge == null ? null : editFormData.value.handlingCharge * 100, // 转为分单位
  1152. paymentCurrency: CurrencyForId(editFormData.value.paymentCurrency),
  1153. paymentAmount: editFormData.value.paymentAmount * 100, // 转为分单位
  1154. receivedCurrency: CurrencyForId(editFormData.value.receivedCurrency),
  1155. receivedAmount: editFormData.value.receivedAmount * 100 || null, // 转为分单位
  1156. receivedTime: editFormData.value.receivedTime,
  1157. receivedRemark: editFormData.value.receivedRemark || ''
  1158. }
  1159. });
  1160. if (result.code === 200) {
  1161. ElMessage.success(t('elmessage.editSuccess'));
  1162. getlist();
  1163. closeEditForm();
  1164. } else {
  1165. ElMessage.error(result.msg || t('elmessage.editFailed'));
  1166. }
  1167. } catch (error) {
  1168. console.error('编辑提交请求异常:', error);
  1169. ElMessage.error(t('elmessage.formValidationFailed'));
  1170. }
  1171. };
  1172. // 2.6 辅助功能
  1173. // 图片预览
  1174. const previewImage = (imageUrl) => {
  1175. if (!imageUrl) return;
  1176. const imageElement = document.createElement('img');
  1177. imageElement.src = imageUrl;
  1178. imageElement.style.maxWidth = '80vw';
  1179. imageElement.style.maxHeight = '80vh';
  1180. imageElement.style.objectFit = 'contain';
  1181. const viewer = document.createElement('div');
  1182. viewer.style.position = 'fixed';
  1183. viewer.style.top = '0';
  1184. viewer.style.left = '0';
  1185. viewer.style.width = '100vw';
  1186. viewer.style.height = '100vh';
  1187. viewer.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
  1188. viewer.style.display = 'flex';
  1189. viewer.style.justifyContent = 'center';
  1190. viewer.style.alignItems = 'center';
  1191. viewer.style.zIndex = '9999';
  1192. viewer.appendChild(imageElement);
  1193. // 点击关闭预览
  1194. viewer.addEventListener('click', () => {
  1195. document.body.removeChild(viewer);
  1196. });
  1197. document.body.appendChild(viewer);
  1198. };
  1199. // 驳回理由悬浮提示
  1200. const handleMouseEnter = (e, content) => {
  1201. if (!content) return;
  1202. showTooltip.value = true;
  1203. tooltipContent.value = content;
  1204. handleMouseMove(e);
  1205. };
  1206. const handleMouseLeave = () => {
  1207. showTooltip.value = false;
  1208. tooltipContent.value = '';
  1209. };
  1210. const handleMouseMove = (e) => {
  1211. // 提示框显示在鼠标左侧,避免遮挡
  1212. tooltipLeft.value = e.clientX - 210;
  1213. tooltipTop.value = e.clientY - 10;
  1214. };
  1215. // 2.7 基础数据加载(初始化)
  1216. // 获取管理员信息
  1217. const getAdminData = async () => {
  1218. try {
  1219. const result = await API({ url: '/admin/userinfo', data: {} });
  1220. adminData.value = result;
  1221. // 超级管理员判断(仅用于角色切换权限)
  1222. // if (adminData.value.roleId === 2) {
  1223. // superAdmin.value = true;
  1224. // // 管理员所属地区提示
  1225. // if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') {
  1226. // ElMessageBox.alert(
  1227. // '管理员账号仅显示所属地区的财务数据,请确认地区设置',
  1228. // '温馨提示',
  1229. // { type: 'warning' }
  1230. // );
  1231. // }
  1232. // }
  1233. } catch (error) {
  1234. console.error('管理员信息获取失败:', error);
  1235. ElMessage.error(t('elmessage.adminInfoLoadFailed'));
  1236. }
  1237. };
  1238. // 获取活动列表
  1239. const getActivitys = async () => {
  1240. try {
  1241. const result = await API({ url: '/cashCollection/getActivityList', data: {} });
  1242. if (result.code === 200) {
  1243. activityList.value = result.data;
  1244. } else {
  1245. ElMessage.error(t('elmessage.activityLoadFailed'));
  1246. }
  1247. } catch (error) {
  1248. console.error('活动列表获取失败:', error);
  1249. ElMessage.error(t('elmessage.activityLoadFailed'));
  1250. }
  1251. };
  1252. // 2.8 节流函数(防止重复提交)
  1253. const throttledhandelAuditReject = _.throttle(handelAuditReject, 3000, { trailing: false });
  1254. const throttledsubmitEditForm = _.throttle(submitEditForm, 3000, { trailing: false });
  1255. const throttledsubmitRefund = _.throttle(submitRefund, 5000, {
  1256. trailing: false
  1257. })
  1258. // 2.9 页面初始化
  1259. onMounted(async () => {
  1260. await getAdminData();
  1261. await getActivitys();
  1262. // 初始化加载地区财务订单数据
  1263. await getlist();
  1264. // if (!hasMenuPermission(menuTree.value, 67)) {
  1265. // ElMessageBox.alert(
  1266. // '您暂无该页面操作权限,请联系管理员',
  1267. // '权限提示',
  1268. // { type: 'error' }
  1269. // ).then(() => {
  1270. // window.history.back();
  1271. // });
  1272. // }
  1273. //背景预加载
  1274. const bgImg = new Image();
  1275. bgImg.src = '/src/assets/receive-recall.png';
  1276. getMarket()
  1277. });
  1278. // 2.10 未使用函数占位(避免报错)
  1279. const handleCurrencyChange = () => { };
  1280. const beforeUpload = () => true;
  1281. const handelImgErr = () => { };
  1282. const handleImageChange = () => { };
  1283. const customUpload = () => { };
  1284. const handleDatePickerChange = () => { };
  1285. const disabledDate = () => false;
  1286. const handleSortChange = () => { };
  1287. const getMarket = async function () {
  1288. try {
  1289. const result = await API({
  1290. url: '/market/selectMarket',
  1291. })
  1292. console.log('看看地区树', result)
  1293. const transformTree = (nodes) => {
  1294. const allChildren = nodes.flatMap(node => node.children || []);
  1295. return allChildren.map(child => {
  1296. const grandchildren = child.children && child.children.length
  1297. ? transformTree([child])
  1298. : null;
  1299. return {
  1300. value: child.id,
  1301. label: child.name,
  1302. children: grandchildren
  1303. };
  1304. });
  1305. };
  1306. market.value = transformTree(result.data)
  1307. console.log('转换后的地区树==============', market.value)
  1308. } catch (error) {
  1309. console.log('请求失败', error)
  1310. }
  1311. }
  1312. const handlePagination = (type, val) => {
  1313. if (type === 'size') pageInfo.value.pageSize = val;
  1314. else pageInfo.value.pageNum = val;
  1315. getlist();
  1316. };
  1317. </script>
  1318. <style scoped lang="scss">
  1319. .content {
  1320. height: 100%;
  1321. width: 80vw;
  1322. .card1 {
  1323. width: 100%;
  1324. background: #F3FAFE;
  1325. .rowItem {
  1326. display: flex;
  1327. width: 15vw;
  1328. align-items: center;
  1329. justify-content: center;
  1330. margin-right: 0.5vw;
  1331. }
  1332. el-button {
  1333. margin-left: 10px;
  1334. }
  1335. .row1 {
  1336. height: 4vh;
  1337. width: 80vw;
  1338. display: flex;
  1339. min-height: 40px;
  1340. }
  1341. .row2 {
  1342. height: 4vh;
  1343. width: 80vw;
  1344. display: flex;
  1345. align-items: center;
  1346. min-height: 40px;
  1347. .left {
  1348. height: 4vh;
  1349. width: 58vw;
  1350. display: flex;
  1351. min-height: 40px;
  1352. }
  1353. }
  1354. }
  1355. .div-card2 {
  1356. width: 100%;
  1357. margin-top: 2vh;
  1358. .card2 {
  1359. background: #E7F4FD;
  1360. }
  1361. .btns {
  1362. width: 100%;
  1363. display: flex;
  1364. align-items: center;
  1365. justify-content: space-between;
  1366. padding-bottom: 10px;
  1367. .tabs {
  1368. width: 100%;
  1369. min-width: 300px;
  1370. display: flex;
  1371. align-items: center;
  1372. justify-content: space-between;
  1373. .btnItem {
  1374. margin-left: 10px;
  1375. border-radius: 5px;
  1376. }
  1377. .info-tooltip {
  1378. display: flex;
  1379. align-items: center;
  1380. }
  1381. .service-icon {
  1382. color: #666;
  1383. cursor: pointer;
  1384. font-size: 18px;
  1385. transition: all 0.3s ease;
  1386. padding: 4px;
  1387. border-radius: 50%;
  1388. }
  1389. }
  1390. }
  1391. .table {
  1392. margin: 10px;
  1393. border-radius: 20px;
  1394. .ellipsis-container {
  1395. position: relative;
  1396. width: 100%;
  1397. .ellipsis-text {
  1398. display: inline-block;
  1399. width: 100%;
  1400. white-space: nowrap;
  1401. overflow: hidden;
  1402. text-overflow: ellipsis;
  1403. cursor: pointer;
  1404. }
  1405. .custom-tooltip {
  1406. position: fixed;
  1407. z-index: 9999;
  1408. padding: 8px 12px;
  1409. width: 200px;
  1410. background-color: #E4F0FC;
  1411. color: #333333;
  1412. border: 1px solid #e5e7eb;
  1413. border-radius: 4px;
  1414. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  1415. min-height: 30px;
  1416. max-height: 300px;
  1417. overflow-y: auto;
  1418. font-size: 14px;
  1419. line-height: 1.5;
  1420. }
  1421. }
  1422. }
  1423. .pagination {
  1424. margin-top: 10px;
  1425. padding: 10px 10px;
  1426. }
  1427. }
  1428. :deep(.adddialog) {
  1429. min-width: 500px;
  1430. background-color: #F3FAFE !important;
  1431. margin-top: 8vh;
  1432. border-radius: 8px;
  1433. .addForm {
  1434. padding: 0 60px 1vh 60px;
  1435. .el-date-editor {
  1436. display: flex;
  1437. flex: 1;
  1438. }
  1439. .pic {
  1440. display: flex;
  1441. align-items: center;
  1442. .uploader {
  1443. height: 80px;
  1444. width: 80px;
  1445. .el-upload {
  1446. height: 100%;
  1447. width: 100%;
  1448. }
  1449. }
  1450. .picText {
  1451. color: #999999;
  1452. font-family: "PingFang SC";
  1453. font-size: 10px;
  1454. font-style: normal;
  1455. font-weight: 400;
  1456. line-height: 20px;
  1457. margin-left: 10px;
  1458. }
  1459. }
  1460. }
  1461. .dialog-footer {
  1462. display: flex;
  1463. justify-content: center;
  1464. padding-bottom: 1.5vh;
  1465. }
  1466. }
  1467. :deep(.editdialog) {
  1468. min-width: 990px;
  1469. background-color: #F3FAFE !important;
  1470. margin-top: 8vh;
  1471. border-radius: 8px;
  1472. .editForm {
  1473. padding: 0 60px 1vh 60px;
  1474. .el-date-editor {
  1475. display: flex;
  1476. flex: 1;
  1477. }
  1478. .pic {
  1479. display: flex;
  1480. align-items: center;
  1481. .uploader {
  1482. height: 80px;
  1483. width: 80px;
  1484. .el-upload {
  1485. height: 100%;
  1486. width: 100%;
  1487. }
  1488. }
  1489. .picText {
  1490. color: #999999;
  1491. font-family: "PingFang SC";
  1492. font-size: 10px;
  1493. font-style: normal;
  1494. font-weight: 400;
  1495. line-height: 20px;
  1496. margin-left: 10px;
  1497. }
  1498. }
  1499. }
  1500. .content {
  1501. display: flex;
  1502. height: 100%;
  1503. width: 100%;
  1504. .left {
  1505. min-width: 500px;
  1506. }
  1507. .right {
  1508. flex: 1;
  1509. .editFormRighrt {
  1510. padding: 0 60px 0 40px;
  1511. .el-date-editor {
  1512. display: flex;
  1513. flex: 1;
  1514. }
  1515. }
  1516. .editBtns {
  1517. display: flex;
  1518. justify-content: center;
  1519. margin-top: 60px;
  1520. .txt {
  1521. color: #f3fafe;
  1522. text-align: center;
  1523. font-family: "PingFang SC";
  1524. font-size: 14px;
  1525. font-style: normal;
  1526. font-weight: 700;
  1527. line-height: 22px;
  1528. }
  1529. .editBtn1 {
  1530. min-width: 80px;
  1531. padding: 5px 12px;
  1532. justify-content: center;
  1533. align-items: center;
  1534. gap: 4px;
  1535. border-radius: 4px;
  1536. background: #7E91FF;
  1537. border: none;
  1538. box-shadow: 0 0 4px 0 #00000040;
  1539. }
  1540. .editBtn2 {
  1541. display: flex;
  1542. width: 80px;
  1543. min-width: 80px;
  1544. padding: 5px 12px;
  1545. justify-content: center;
  1546. align-items: center;
  1547. gap: 4px;
  1548. border-radius: 4px;
  1549. background: #2741DE;
  1550. border: none;
  1551. box-shadow: 0 0 4px 0 #00000040;
  1552. margin-left: 60px;
  1553. }
  1554. }
  1555. }
  1556. }
  1557. }
  1558. :deep(.adddialog .el-form-item__label) {
  1559. min-width: 80px;
  1560. width: auto;
  1561. font-weight: 800;
  1562. padding-bottom: 15px;
  1563. }
  1564. .refundDialog {
  1565. .left {
  1566. width: 50%;
  1567. height: 70vh;
  1568. min-height: 700px;
  1569. padding: 0 2vw;
  1570. .add-item {
  1571. display: flex;
  1572. align-items: center;
  1573. margin-bottom: 1vh;
  1574. }
  1575. .image {
  1576. width: 4vw !important;
  1577. height: 4vw !important;
  1578. }
  1579. }
  1580. .right {
  1581. width: 50%;
  1582. height: 50vh;
  1583. .add-item {
  1584. display: flex;
  1585. align-items: center;
  1586. margin-bottom: 1vh;
  1587. }
  1588. }
  1589. }
  1590. }
  1591. // 表格样式统一
  1592. :deep(.el-table__header-wrapper),
  1593. :deep(.el-table__body-wrapper),
  1594. :deep(.el-table__cell),
  1595. :deep(.el-table__body td) {
  1596. background-color: #F3FAFE !important;
  1597. }
  1598. :deep(.el-table__header th) {
  1599. background-color: #F3FAFE !important;
  1600. }
  1601. :deep(.el-table__row:hover > .el-table__cell) {
  1602. background-color: #E5EBFE !important;
  1603. }
  1604. // 驳回理由弹窗样式
  1605. .reject-reason-box {
  1606. --el-message-box-height: 500px;
  1607. }
  1608. .reject-reason-box .el-message-box__content {
  1609. max-height: 350px;
  1610. overflow-y: auto;
  1611. white-space: pre-wrap;
  1612. }
  1613. .recallDialog {
  1614. //撤回弹窗提示
  1615. height: 392px;
  1616. width: 700px;
  1617. background-image: url('/src/assets/receive-recall.png');
  1618. position: fixed; // 固定定位,相对于浏览器窗口
  1619. top: 50%; // 距离顶部50%
  1620. left: 50%; // 距离左侧50%
  1621. transform: translate(-50%, -50%); // 向左、向上平移自身宽高的50%,实现居中
  1622. z-index: 1000; // 确保在其他元素上层显示
  1623. .close {
  1624. position: absolute;
  1625. left: 625px;
  1626. top: 20px;
  1627. height: 38px;
  1628. width: 38px;
  1629. opacity: 0;
  1630. .Btn {
  1631. height: 100%;
  1632. width: 100%;
  1633. border-radius: 10px;
  1634. }
  1635. }
  1636. .text {
  1637. position: absolute;
  1638. left: 185px;
  1639. top: 190px;
  1640. height: 67px;
  1641. width: 500px;
  1642. .txt {
  1643. height: 100%;
  1644. width: 100%;
  1645. color: #001a42;
  1646. font-family: "PingFang SC";
  1647. font-size: 48px;
  1648. font-style: normal;
  1649. font-weight: 900;
  1650. line-height: normal;
  1651. }
  1652. }
  1653. .cancle {
  1654. position: absolute;
  1655. left: 185px;
  1656. top: 304px;
  1657. height: 55px;
  1658. width: 150px;
  1659. opacity: 0;
  1660. .Btn {
  1661. height: 100%;
  1662. width: 100%;
  1663. border-radius: 20px;
  1664. }
  1665. }
  1666. .confirm {
  1667. position: absolute;
  1668. left: 375px;
  1669. top: 304px;
  1670. height: 55px;
  1671. width: 150px;
  1672. opacity: 0;
  1673. .Btn {
  1674. height: 100%;
  1675. width: 100%;
  1676. border-radius: 20px;
  1677. }
  1678. }
  1679. }
  1680. </style>