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.

1875 lines
78 KiB

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