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.

1881 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
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
4 months ago
3 months ago
4 months ago
3 months ago
4 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
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 ref="tableRef" :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, nextTick } 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. const tableRef = ref(null)
  669. const scrollTableTop = () => {
  670. tableRef.value?.setScrollTop?.(0)
  671. }
  672. // 筛选地区树
  673. const market = ref([])
  674. // 搜索条件
  675. const searchData = ref({});
  676. const defaultTime = [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)];
  677. const getTime = ref([]);
  678. // 标签页:默认“待审核”
  679. const activeTab = ref('wait');
  680. const applyTabFromRoute = (tabRaw) => {
  681. const tab = typeof tabRaw === 'string' ? tabRaw : null;
  682. if (tab !== 'wait' && tab !== 'pass' && tab !== 'reject' && tab !== 'done') return false;
  683. if (tab === activeTab.value) return false;
  684. activeTab.value = tab;
  685. pageInfo.value.pageNum = 1;
  686. return true;
  687. };
  688. // 审核弹窗状态
  689. const auditFormisible = ref(false);
  690. const auditFormData = ref({});
  691. const ifReject = ref(false);
  692. const countdown = ref(0);
  693. const isBtnDisabled = ref(false);
  694. const btnText = ref(t('common.pass') + '(3)');
  695. // 编辑弹窗状态
  696. const editFormisible = ref(false);
  697. const editFormData = ref({});
  698. const editFormRef = ref(null);
  699. const isEditGold = ref(false); // 金币产品标记
  700. const ifOnline = ref(false); // 在线支付标记
  701. // 辅助状态:图片上传、悬浮提示
  702. const uploadRef = ref(null);
  703. const showTooltip = ref(false);
  704. const tooltipContent = ref('');
  705. const tooltipLeft = ref(0);
  706. const tooltipTop = ref(0);
  707. // 退款确认弹窗
  708. const refundConfirmDialog = ref(false)
  709. const textContent = ref('')
  710. //退款弹窗
  711. const refundDialog = ref(false)
  712. const refundFormData = ref({})
  713. const openRefundDialog = () => {
  714. refundDialog.value = true
  715. closeConfirmRefund()
  716. }
  717. const closeRefundForm = () => {
  718. refundDialog.value = false
  719. refundFormData.value = {}
  720. }
  721. const isRefundGold = ref(false)
  722. const ifRefundGold = () => {
  723. if (refundFormData.value.goodsName === t('cash.coinRecharge')) {
  724. isRefundGold.value = true
  725. refundFormData.value.goodNum = 0
  726. } else {
  727. isRefundGold.value = false
  728. }
  729. }
  730. // 基础数据
  731. const adminData = ref({});
  732. const activityList = ref([]);
  733. const customOptions = ref([
  734. t('cash.currency.usd'), // 美元(USD)
  735. t('cash.currency.hkd'), // 港币(HKD)
  736. t('cash.currency.sgd'), // 新币(SGD)
  737. t('cash.currency.myr'), // 马币(MYR)
  738. t('cash.currency.thb'), // 泰铢(THB)
  739. t('cash.currency.cad'), // 加币(CAD)
  740. t('cash.currency.vnd'), // 越南盾(VND)
  741. t('cash.currency.krw'), // 韩元(KRW)
  742. t('cash.currency.rmb'), // 人民币(CNY)
  743. ])
  744. const paytypeList = [
  745. t('cash.payMethods.stripe'), // Stripe
  746. t('cash.payMethods.paymentAsia'), // PaymentAsia
  747. t('cash.payMethods.stripe2'), // Stripe2
  748. t('cash.payMethods.ipay88'), // Ipay88
  749. t('cash.payMethods.grabpay'), // Grabpay
  750. t('cash.payMethods.nets'), // Nets
  751. t('cash.payMethods.transfer'), // E-Transfer
  752. t('cash.payMethods.paypal'), // PayPal
  753. t('cash.payMethods.paysolution'), // Paysolution
  754. t('cash.payMethods.bankTransfer'),// 银行转账
  755. t('cash.payMethods.card'), // 刷卡
  756. t('cash.payMethods.cash'), // 现金
  757. t('cash.payMethods.check'), // 支票
  758. ];
  759. const paytypeOptions = ref([...paytypeList]);
  760. // ===================== 2. 核心功能函数(仅地区财务) =====================
  761. //确认退款弹窗
  762. const openRefundConfirm = (row) => {
  763. textContent.value = t('common.willRefundOrder') + '?'
  764. refundConfirmDialog.value = true
  765. refundFormData.value = { ...row }
  766. ifRefundGold()
  767. console.log(row);
  768. }
  769. const closeConfirmRefund = () => {
  770. refundConfirmDialog.value = false
  771. textContent.value = ''
  772. }
  773. //导出相关
  774. const exportListVisible = ref(false)
  775. const exportList = ref([])
  776. const exportListLoading = ref(false)
  777. const exportExcel = async function () {
  778. let payCurrencySelect = '';
  779. let goodsName = '';
  780. // 处理时间范围
  781. if (getTime.value && getTime.value.length === 2) {
  782. searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss');
  783. searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss');
  784. } else {
  785. searchData.value.startTime = '';
  786. searchData.value.endTime = '';
  787. }
  788. // 处理产品名称(级联选择取最后一级)
  789. if (searchData.value.goodsName) {
  790. goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1];
  791. }
  792. // 处理付款币种(转ID)
  793. if (searchData.value.paymentCurrency) {
  794. payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency);
  795. }
  796. // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) {
  797. // ElMessage.error('精网号只能是数字')
  798. // return
  799. // }
  800. const cashRoleId = '1';
  801. const submitterMarket = adminData.value.markets;
  802. searchData.value.status = 46;
  803. const params = {
  804. ...pageInfo.value,
  805. cashCollection: {
  806. ...searchData.value,
  807. submitterId: adminData.value.id,
  808. receivedMarket: MarketNameForId(submitterMarket),
  809. cashRoleId: cashRoleId,
  810. paymentCurrency: payCurrencySelect,
  811. submitterMarket: normalizeSubmitterMarket(adminData.value.markets),
  812. goodsName: goodsName,
  813. market: MarketNameForId(searchData.value.market)
  814. }
  815. }
  816. const res = await API({ url: '/export/exportCash', data: params })
  817. if (res.code === 200) {
  818. ElMessage.success(t('elmessage.exportSuccess'))
  819. } else {
  820. ElMessage.error(res.msg || t('elmessage.exportFailed'))
  821. }
  822. }
  823. const openExportList = () => {
  824. getExportList()
  825. exportListVisible.value = true
  826. }
  827. //获取导出列表
  828. const getExportList = async () => {
  829. exportListLoading.value = true
  830. try {
  831. const result = await API({ url: '/export/export' })
  832. if (result.code === 200) {
  833. const filteredData = result.data.filter(item => {
  834. return item.type === 13
  835. })
  836. exportList.value = filteredData
  837. } else {
  838. ElMessage.error(result.msg || t('elmessage.getExportListError'))
  839. }
  840. } catch (error) {
  841. console.error('获取导出列表出错:', error)
  842. ElMessage.error(t('elmessage.getExportListError'))
  843. } finally {
  844. exportListLoading.value = false
  845. }
  846. }
  847. const downloadExportFile = (item) => {
  848. if (item.state === 2) {
  849. const link = document.createElement('a')
  850. link.href = item.url
  851. link.download = item.fileName
  852. link.click()
  853. } else {
  854. ElMessage.warning(t('elmessage.exportingInProgress'))
  855. }
  856. }
  857. //根据状态返回对应的标签类型
  858. const getTagType = (state) => {
  859. switch (state) {
  860. case 0:
  861. return 'info';
  862. case 1:
  863. return 'primary';
  864. case 2:
  865. return 'success';
  866. case 3:
  867. return 'danger';
  868. default:
  869. return 'info';
  870. }
  871. }
  872. //根据状态返回对应的标签文案
  873. const getTagText = (state) => {
  874. switch (state) {
  875. case 0:
  876. return t('elmessage.pendingExecution');
  877. case 1:
  878. return t('elmessage.executing');
  879. case 2:
  880. return t('elmessage.executed');
  881. case 3:
  882. return t('elmessage.errorExecution');
  883. default:
  884. return t('elmessage.unknownStatus');
  885. }
  886. }
  887. // 2.1 数据加载:获取地区财务订单列表
  888. const getlist = async () => {
  889. try {
  890. let payCurrencySelect = '';
  891. let goodsName = '';
  892. // 处理时间范围
  893. if (getTime.value && getTime.value.length === 2) {
  894. searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss');
  895. searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss');
  896. } else {
  897. searchData.value.startTime = '';
  898. searchData.value.endTime = '';
  899. }
  900. // 处理产品名称(级联选择取最后一级)
  901. if (searchData.value.goodsName) {
  902. goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1];
  903. }
  904. // 处理付款币种(转ID)
  905. if (searchData.value.paymentCurrency) {
  906. payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency);
  907. }
  908. // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) {
  909. // ElMessage.error('精网号只能是数字')
  910. // return
  911. // }
  912. // 地区财务固定参数:角色ID=1,按标签页筛选状态
  913. const cashRoleId = '1';
  914. const receivedMarket = normalizeSubmitterMarket(adminData.value.markets);
  915. if (activeTab.value === 'wait') searchData.value.status = 0;
  916. else if (activeTab.value === 'pass') searchData.value.status = 13;
  917. else if (activeTab.value === 'done') searchData.value.status = 46;
  918. else if (activeTab.value === 'reject') searchData.value.status = 2;
  919. // 地区处理
  920. const markets = ref(null)
  921. if (searchData.value.markets) {
  922. markets.value = searchData.value.markets[searchData.value.markets.length - 1]
  923. console.log('地区转换', markets.value)
  924. }
  925. if (searchData.value.jwcode) {
  926. const isPositiveInteger = /^[1-9]\d*$/.test(searchData.value.jwcode);
  927. if (!isPositiveInteger) {
  928. ElMessage.error(t('elmessage.checkJwcodeFormat'))
  929. return;
  930. }
  931. // 添加长度验证,超过8位提示错误
  932. if (searchData.value.jwcode.length > 8) {
  933. ElMessage.error(t('elmessage.limitJwcodeLength'))
  934. return;
  935. }
  936. }
  937. const result = await request({
  938. url: '/cashCollection/selectCollection',
  939. data: {
  940. ...pageInfo.value,
  941. cashCollection: {
  942. ...searchData.value,
  943. submitterId: adminData.value.id,
  944. receivedMarket: MarketNameForId(receivedMarket),
  945. cashRoleId: cashRoleId,
  946. paymentCurrency: payCurrencySelect,
  947. submitterMarket: normalizeSubmitterMarket(receivedMarket),
  948. goodsName: goodsName,
  949. // market: MarketNameForId(searchData.value.market)
  950. market: markets.value
  951. }
  952. }
  953. });
  954. if (result.code === 200) {
  955. tableData.value = result.data.list;
  956. await nextTick()
  957. scrollTableTop()
  958. total.value = result.data.total;
  959. } else {
  960. ElMessage.error(t('elmessage.orderDataLoadFailed'));
  961. }
  962. } catch (error) {
  963. console.error('地区财务订单列表请求异常:', error);
  964. ElMessage.error(t('elmessage.inNetworkError'));
  965. }
  966. };
  967. //重置退款
  968. const resetRefund = () => {
  969. refundFormData.value.refundModel = ''
  970. refundFormData.value.refundReason = ''
  971. }
  972. //提交退款
  973. const submitRefund = async () => {
  974. try {
  975. if (refundFormData.value.goodsName != t('cash.coinRecharge')) {
  976. return ElMessage.error(t('elmessage.onlineDataSupport'));
  977. }
  978. if (!refundFormData.value.refundModel) {
  979. return ElMessage.error(t('elmessage.selectRefundModel'));
  980. }
  981. if (!refundFormData.value.refundReason) {
  982. return ElMessage.error(t('elmessage.refundReasonPlaceholder'));
  983. }
  984. // 验证精网号格式和长度
  985. if (refundFormData.value.jwcode) {
  986. const isPositiveInteger = /^[1-9]\d*$/.test(refundFormData.value.jwcode);
  987. if (!isPositiveInteger) {
  988. return ElMessage.error(t('elmessage.checkJwcodeFormat'));
  989. }
  990. if (refundFormData.value.jwcode.length > 8) {
  991. return ElMessage.error(t('elmessage.limitJwcodeLength'));
  992. }
  993. }
  994. if (refundFormData.value.refundModel == 0) {
  995. refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
  996. refundFormData.value.partRefundFree = refundFormData.value.freeGold
  997. }
  998. const result = await request({
  999. url: '/Money/addOnline',
  1000. data: {
  1001. jwcode: refundFormData.value.jwcode,
  1002. name: refundFormData.value.name,
  1003. market: refundFormData.value.marketName,
  1004. submitterId: adminData.value.id,
  1005. submitterMarket: adminData.value.markets,
  1006. remark: refundFormData.value.remark,
  1007. refundReason: refundFormData.value.refundReason,
  1008. refundModel: refundFormData.value.refundModel,
  1009. originalOrderId: refundFormData.value.id,
  1010. orderCode: refundFormData.value.orderCode,
  1011. permanentGold: (refundFormData.value.permanentGold) * 100 || 0,
  1012. freeGold: (refundFormData.value.freeGold) * 100 || 0,
  1013. partRefundGold: (refundFormData.value.partRefundGold) * 100 || 0,
  1014. partRefundFree: (refundFormData.value.partRefundFree) * 100 || 0,
  1015. handlingCharge: refundFormData.value.handlingCharge == null ? null : refundFormData.value.handlingCharge * 100,
  1016. }
  1017. })
  1018. if (result.code == 200) {
  1019. ElMessage.success(t('elmessage.addRefundSuccess'))
  1020. getlist()
  1021. closeRefundForm()
  1022. } else {
  1023. ElMessage.error(result.msg)
  1024. getlist()
  1025. }
  1026. console.log('返回参数:', result);
  1027. } catch (error) {
  1028. console.log(error);
  1029. }
  1030. }
  1031. // 2.2 搜索与重置
  1032. const search = () => {
  1033. getlist();
  1034. };
  1035. const reset = () => {
  1036. searchData.value = {};
  1037. // 重置页码
  1038. pageInfo.value.pageNum = 1;
  1039. getTime.value = []
  1040. getlist();
  1041. };
  1042. // 2.3 标签页切换
  1043. const navigateTo = async (tab) => {
  1044. activeTab.value = tab;
  1045. await getlist();
  1046. };
  1047. watch(() => route.query?.tab, async (tab) => {
  1048. if (applyTabFromRoute(tab)) {
  1049. await getlist();
  1050. }
  1051. });
  1052. // 2.4 审核功能
  1053. // 打开审核弹窗
  1054. const openAuditForm = (row) => {
  1055. auditFormData.value = { ...row, market: row.marketName };
  1056. ifGold(auditFormData.value)
  1057. console.log('isGold', isGold.value);
  1058. auditFormisible.value = true;
  1059. };
  1060. // 关闭审核弹窗
  1061. const closeAuditForm = () => {
  1062. ifReject.value = false;
  1063. auditFormisible.value = false;
  1064. auditFormData.value = {};
  1065. };
  1066. // 审核通过
  1067. const handelAudit = async () => {
  1068. try {
  1069. const result = await request({
  1070. url: '/cashAudit/collectionAudit',
  1071. data: {
  1072. orderCode: auditFormData.value.orderCode,
  1073. action: 1,
  1074. auditId: adminData.value.id
  1075. }
  1076. });
  1077. if (result.code === 200) {
  1078. ElMessage.success(t('elmessage.approveSuccess'));
  1079. getlist();
  1080. closeAuditForm();
  1081. } else {
  1082. ElMessage.error(result.msg || t('elmessage.approveFailed'));
  1083. }
  1084. } catch (error) {
  1085. console.error('审核通过请求异常:', error);
  1086. ElMessage.error(t('elmessage.inNetworkError'));
  1087. }
  1088. };
  1089. // 审核驳回
  1090. const handelAuditReject = async () => {
  1091. if (!auditFormData.value.rejectReason) {
  1092. ElMessage.warning(t('elmessage.rejectReasonPlaceholder'));
  1093. return;
  1094. }
  1095. try {
  1096. const result = await request({
  1097. url: '/cashAudit/collectionAudit',
  1098. data: {
  1099. orderCode: auditFormData.value.orderCode,
  1100. rejectReason: auditFormData.value.rejectReason,
  1101. action: 2,
  1102. auditId: adminData.value.id
  1103. }
  1104. });
  1105. if (result.code === 200) {
  1106. ElMessage.success(t('elmessage.rejectSuccess'));
  1107. getlist();
  1108. closeAuditForm();
  1109. } else {
  1110. ElMessage.error(result.msg || t('elmessage.rejectFailed'));
  1111. }
  1112. } catch (error) {
  1113. console.error('审核驳回请求异常:', error);
  1114. ElMessage.error(t('elmessage.inNetworkError'));
  1115. }
  1116. };
  1117. //判断产品类型
  1118. const isGold = ref(false)
  1119. const ifGold = (data) => {
  1120. console.log('data', data);
  1121. if (data.goodsName === t('cash.coinRecharge')) {
  1122. isGold.value = true
  1123. } else {
  1124. isGold.value = false
  1125. }
  1126. }
  1127. // 审核按钮倒计时(防止误操作)
  1128. watch(auditFormisible, (val) => {
  1129. if (val) {
  1130. countdown.value = 3;
  1131. isBtnDisabled.value = true;
  1132. btnText.value = `${t('common.pass')}(${countdown.value})`;
  1133. const timer = setInterval(() => {
  1134. countdown.value--;
  1135. btnText.value = `${t('common.pass')}(${countdown.value})`;
  1136. if (countdown.value <= 0) {
  1137. isBtnDisabled.value = false;
  1138. clearInterval(timer);
  1139. btnText.value = t('common.pass');
  1140. }
  1141. }, 1000);
  1142. }
  1143. });
  1144. // 2.5 编辑手续费功能
  1145. // 打开编辑弹窗
  1146. const openEditForm = (row) => {
  1147. console.log('row.aaa', row.handlingCharge);
  1148. editFormData.value = {
  1149. ...row,
  1150. paymentCurrencyOrig: row.paymentCurrency,
  1151. paymentAmountOrig: row.paymentAmount,
  1152. };
  1153. // 区分金币产品与普通产品
  1154. if (row.goodsName === t('cash.coinRecharge')) isEditGold.value = true;
  1155. else isEditGold.value = false;
  1156. // 在线支付订单允许修改付款信息
  1157. if (row.status === 3) ifOnline.value = true;
  1158. else ifOnline.value = false;
  1159. editFormisible.value = true;
  1160. };
  1161. // 关闭编辑弹窗
  1162. const closeEditForm = () => {
  1163. editFormisible.value = false;
  1164. editFormData.value = {};
  1165. editFormRef.value.resetFields();
  1166. };
  1167. // 提交编辑(补充手续费)
  1168. const submitEditForm = async () => {
  1169. try {
  1170. await editFormRef.value.validate();
  1171. if (editFormData.value.paymentCurrency != editFormData.value.receivedCurrency) {
  1172. ElMessage.error(t('elmessage.currencyMismatch'))
  1173. return
  1174. }
  1175. // 处理时间格式
  1176. if (editFormData.value.receivedTime) {
  1177. editFormData.value.receivedTime = moment(editFormData.value.receivedTime).format('YYYY-MM-DD HH:mm:ss');
  1178. }
  1179. console.log('editFormData.value.handlingCharge', editFormData.value.handlingCharge);
  1180. const result = await request({
  1181. url: '/cashCollection/complete',
  1182. data: {
  1183. orderCode: editFormData.value.orderCode,
  1184. handlingCharge: editFormData.value.handlingCharge == null ? null : editFormData.value.handlingCharge * 100, // 转为分单位
  1185. paymentCurrency: CurrencyForId(editFormData.value.paymentCurrency),
  1186. paymentAmount: editFormData.value.paymentAmount * 100, // 转为分单位
  1187. receivedCurrency: CurrencyForId(editFormData.value.receivedCurrency),
  1188. receivedAmount: editFormData.value.receivedAmount * 100 || null, // 转为分单位
  1189. receivedTime: editFormData.value.receivedTime,
  1190. receivedRemark: editFormData.value.receivedRemark || '',
  1191. paymentCurrencyOrig: editFormData.value.paymentCurrencyOrig,
  1192. paymentAmountOrig: CurrencyForId(editFormData.value.paymentAmountOrig),
  1193. payType: editFormData.value.payType
  1194. }
  1195. });
  1196. if (result.code === 200) {
  1197. ElMessage.success(t('elmessage.editSuccess'));
  1198. getlist();
  1199. closeEditForm();
  1200. } else {
  1201. ElMessage.error(result.msg || t('elmessage.editFailed'));
  1202. }
  1203. } catch (error) {
  1204. console.error('编辑提交请求异常:', error);
  1205. ElMessage.error(t('elmessage.formValidationFailed'));
  1206. }
  1207. };
  1208. // 2.6 辅助功能
  1209. // 图片预览
  1210. const previewImage = (imageUrl) => {
  1211. if (!imageUrl) return;
  1212. const imageElement = document.createElement('img');
  1213. imageElement.src = imageUrl;
  1214. imageElement.style.maxWidth = '80vw';
  1215. imageElement.style.maxHeight = '80vh';
  1216. imageElement.style.objectFit = 'contain';
  1217. const viewer = document.createElement('div');
  1218. viewer.style.position = 'fixed';
  1219. viewer.style.top = '0';
  1220. viewer.style.left = '0';
  1221. viewer.style.width = '100vw';
  1222. viewer.style.height = '100vh';
  1223. viewer.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
  1224. viewer.style.display = 'flex';
  1225. viewer.style.justifyContent = 'center';
  1226. viewer.style.alignItems = 'center';
  1227. viewer.style.zIndex = '9999';
  1228. viewer.appendChild(imageElement);
  1229. // 点击关闭预览
  1230. viewer.addEventListener('click', () => {
  1231. document.body.removeChild(viewer);
  1232. });
  1233. document.body.appendChild(viewer);
  1234. };
  1235. // 驳回理由悬浮提示
  1236. const handleMouseEnter = (e, content) => {
  1237. if (!content) return;
  1238. showTooltip.value = true;
  1239. tooltipContent.value = content;
  1240. handleMouseMove(e);
  1241. };
  1242. const handleMouseLeave = () => {
  1243. showTooltip.value = false;
  1244. tooltipContent.value = '';
  1245. };
  1246. const handleMouseMove = (e) => {
  1247. // 提示框显示在鼠标左侧,避免遮挡
  1248. tooltipLeft.value = e.clientX - 210;
  1249. tooltipTop.value = e.clientY - 10;
  1250. };
  1251. // 2.7 基础数据加载(初始化)
  1252. // 获取管理员信息
  1253. const getAdminData = async () => {
  1254. try {
  1255. const result = await API({ url: '/admin/userinfo', data: {} });
  1256. adminData.value = result;
  1257. // 超级管理员判断(仅用于角色切换权限)
  1258. // if (adminData.value.roleId === 2) {
  1259. // superAdmin.value = true;
  1260. // // 管理员所属地区提示
  1261. // if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') {
  1262. // ElMessageBox.alert(
  1263. // '管理员账号仅显示所属地区的财务数据,请确认地区设置',
  1264. // '温馨提示',
  1265. // { type: 'warning' }
  1266. // );
  1267. // }
  1268. // }
  1269. } catch (error) {
  1270. console.error('管理员信息获取失败:', error);
  1271. ElMessage.error(t('elmessage.adminInfoLoadFailed'));
  1272. }
  1273. };
  1274. // 获取活动列表
  1275. const getActivitys = async () => {
  1276. try {
  1277. const result = await API({ url: '/cashCollection/getActivityList', data: {} });
  1278. if (result.code === 200) {
  1279. activityList.value = result.data;
  1280. } else {
  1281. ElMessage.error(t('elmessage.activityLoadFailed'));
  1282. }
  1283. } catch (error) {
  1284. console.error('活动列表获取失败:', error);
  1285. ElMessage.error(t('elmessage.activityLoadFailed'));
  1286. }
  1287. };
  1288. // 2.8 节流函数(防止重复提交)
  1289. const throttledhandelAuditReject = _.throttle(handelAuditReject, 3000, { trailing: false });
  1290. const throttledsubmitEditForm = _.throttle(submitEditForm, 3000, { trailing: false });
  1291. const throttledsubmitRefund = _.throttle(submitRefund, 5000, {
  1292. trailing: false
  1293. })
  1294. // 2.9 页面初始化
  1295. onMounted(async () => {
  1296. await getAdminData();
  1297. await getActivitys();
  1298. applyTabFromRoute(route.query?.tab);
  1299. // 初始化加载地区财务订单数据
  1300. await getlist();
  1301. // if (!hasMenuPermission(menuTree.value, 67)) {
  1302. // ElMessageBox.alert(
  1303. // '您暂无该页面操作权限,请联系管理员',
  1304. // '权限提示',
  1305. // { type: 'error' }
  1306. // ).then(() => {
  1307. // window.history.back();
  1308. // });
  1309. // }
  1310. //背景预加载
  1311. const bgImg = new Image();
  1312. bgImg.src = '/src/assets/receive-recall.png';
  1313. getMarket()
  1314. });
  1315. // 2.10 未使用函数占位(避免报错)
  1316. const handleCurrencyChange = () => { };
  1317. const beforeUpload = () => true;
  1318. const handelImgErr = () => { };
  1319. const handleImageChange = () => { };
  1320. const customUpload = () => { };
  1321. const handleDatePickerChange = () => { };
  1322. const disabledDate = () => false;
  1323. const handleSortChange = () => { };
  1324. const getMarket = async function () {
  1325. try {
  1326. const result = await API({
  1327. url: '/market/selectMarket',
  1328. })
  1329. console.log('看看地区树', result)
  1330. const transformTree = (nodes) => {
  1331. const allChildren = nodes.flatMap(node => node.children || []);
  1332. return allChildren.map(child => {
  1333. const grandchildren = child.children && child.children.length
  1334. ? transformTree([child])
  1335. : null;
  1336. return {
  1337. value: child.id,
  1338. label: child.name,
  1339. children: grandchildren
  1340. };
  1341. });
  1342. };
  1343. market.value = transformTree(result.data)
  1344. console.log('转换后的地区树==============', market.value)
  1345. } catch (error) {
  1346. console.log('请求失败', error)
  1347. }
  1348. }
  1349. const handlePagination = (type, val) => {
  1350. if (type === 'size') pageInfo.value.pageSize = val;
  1351. else pageInfo.value.pageNum = val;
  1352. getlist();
  1353. };
  1354. </script>
  1355. <style scoped lang="scss">
  1356. .content {
  1357. height: 100%;
  1358. width: 80vw;
  1359. .card1 {
  1360. width: 100%;
  1361. background: #F3FAFE;
  1362. .rowItem {
  1363. display: flex;
  1364. width: 15vw;
  1365. align-items: center;
  1366. justify-content: center;
  1367. margin-right: 0.5vw;
  1368. }
  1369. el-button {
  1370. margin-left: 10px;
  1371. }
  1372. .row1 {
  1373. height: 4vh;
  1374. width: 80vw;
  1375. display: flex;
  1376. min-height: 40px;
  1377. }
  1378. .row2 {
  1379. height: 4vh;
  1380. width: 80vw;
  1381. display: flex;
  1382. align-items: center;
  1383. min-height: 40px;
  1384. .left {
  1385. height: 4vh;
  1386. width: 58vw;
  1387. display: flex;
  1388. min-height: 40px;
  1389. }
  1390. }
  1391. }
  1392. .div-card2 {
  1393. width: 100%;
  1394. margin-top: 2vh;
  1395. .card2 {
  1396. background: #E7F4FD;
  1397. }
  1398. .btns {
  1399. width: 100%;
  1400. display: flex;
  1401. align-items: center;
  1402. justify-content: space-between;
  1403. padding-bottom: 10px;
  1404. .tabs {
  1405. width: 100%;
  1406. min-width: 300px;
  1407. display: flex;
  1408. align-items: center;
  1409. justify-content: space-between;
  1410. .btnItem {
  1411. margin-left: 10px;
  1412. border-radius: 5px;
  1413. }
  1414. .info-tooltip {
  1415. display: flex;
  1416. align-items: center;
  1417. }
  1418. .service-icon {
  1419. color: #666;
  1420. cursor: pointer;
  1421. font-size: 18px;
  1422. transition: all 0.3s ease;
  1423. padding: 4px;
  1424. border-radius: 50%;
  1425. }
  1426. }
  1427. }
  1428. .table {
  1429. margin: 10px;
  1430. border-radius: 20px;
  1431. .ellipsis-container {
  1432. position: relative;
  1433. width: 100%;
  1434. .ellipsis-text {
  1435. display: inline-block;
  1436. width: 100%;
  1437. white-space: nowrap;
  1438. overflow: hidden;
  1439. text-overflow: ellipsis;
  1440. cursor: pointer;
  1441. }
  1442. .custom-tooltip {
  1443. position: fixed;
  1444. z-index: 9999;
  1445. padding: 8px 12px;
  1446. width: 200px;
  1447. background-color: #E4F0FC;
  1448. color: #333333;
  1449. border: 1px solid #e5e7eb;
  1450. border-radius: 4px;
  1451. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  1452. min-height: 30px;
  1453. max-height: 300px;
  1454. overflow-y: auto;
  1455. font-size: 14px;
  1456. line-height: 1.5;
  1457. }
  1458. }
  1459. }
  1460. .pagination {
  1461. margin-top: 10px;
  1462. padding: 10px 10px;
  1463. }
  1464. }
  1465. :deep(.adddialog) {
  1466. min-width: 500px;
  1467. background-color: #F3FAFE !important;
  1468. margin-top: 8vh;
  1469. border-radius: 8px;
  1470. .addForm {
  1471. padding: 0 60px 1vh 60px;
  1472. .el-date-editor {
  1473. display: flex;
  1474. flex: 1;
  1475. }
  1476. .pic {
  1477. display: flex;
  1478. align-items: center;
  1479. .uploader {
  1480. height: 80px;
  1481. width: 80px;
  1482. .el-upload {
  1483. height: 100%;
  1484. width: 100%;
  1485. }
  1486. }
  1487. .picText {
  1488. color: #999999;
  1489. font-family: "PingFang SC";
  1490. font-size: 10px;
  1491. font-style: normal;
  1492. font-weight: 400;
  1493. line-height: 20px;
  1494. margin-left: 10px;
  1495. }
  1496. }
  1497. }
  1498. .dialog-footer {
  1499. display: flex;
  1500. justify-content: center;
  1501. padding-bottom: 1.5vh;
  1502. }
  1503. }
  1504. :deep(.editdialog) {
  1505. min-width: 990px;
  1506. background-color: #F3FAFE !important;
  1507. margin-top: 8vh;
  1508. border-radius: 8px;
  1509. .editForm {
  1510. padding: 0 60px 1vh 60px;
  1511. .el-date-editor {
  1512. display: flex;
  1513. flex: 1;
  1514. }
  1515. .pic {
  1516. display: flex;
  1517. align-items: center;
  1518. .uploader {
  1519. height: 80px;
  1520. width: 80px;
  1521. .el-upload {
  1522. height: 100%;
  1523. width: 100%;
  1524. }
  1525. }
  1526. .picText {
  1527. color: #999999;
  1528. font-family: "PingFang SC";
  1529. font-size: 10px;
  1530. font-style: normal;
  1531. font-weight: 400;
  1532. line-height: 20px;
  1533. margin-left: 10px;
  1534. }
  1535. }
  1536. }
  1537. .content {
  1538. display: flex;
  1539. height: 100%;
  1540. width: 100%;
  1541. .left {
  1542. min-width: 500px;
  1543. }
  1544. .right {
  1545. flex: 1;
  1546. .editFormRighrt {
  1547. padding: 0 60px 0 40px;
  1548. .el-date-editor {
  1549. display: flex;
  1550. flex: 1;
  1551. }
  1552. }
  1553. .editBtns {
  1554. display: flex;
  1555. justify-content: center;
  1556. margin-top: 60px;
  1557. .txt {
  1558. color: #f3fafe;
  1559. text-align: center;
  1560. font-family: "PingFang SC";
  1561. font-size: 14px;
  1562. font-style: normal;
  1563. font-weight: 700;
  1564. line-height: 22px;
  1565. }
  1566. .editBtn1 {
  1567. min-width: 80px;
  1568. padding: 5px 12px;
  1569. justify-content: center;
  1570. align-items: center;
  1571. gap: 4px;
  1572. border-radius: 4px;
  1573. background: #7E91FF;
  1574. border: none;
  1575. box-shadow: 0 0 4px 0 #00000040;
  1576. }
  1577. .editBtn2 {
  1578. display: flex;
  1579. width: 80px;
  1580. min-width: 80px;
  1581. padding: 5px 12px;
  1582. justify-content: center;
  1583. align-items: center;
  1584. gap: 4px;
  1585. border-radius: 4px;
  1586. background: #2741DE;
  1587. border: none;
  1588. box-shadow: 0 0 4px 0 #00000040;
  1589. margin-left: 60px;
  1590. }
  1591. }
  1592. }
  1593. }
  1594. }
  1595. :deep(.adddialog .el-form-item__label) {
  1596. min-width: 100px;
  1597. width: auto;
  1598. font-weight: 800;
  1599. padding-bottom: 15px;
  1600. }
  1601. .refundDialog {
  1602. .left {
  1603. width: 50%;
  1604. height: 70vh;
  1605. min-height: 700px;
  1606. padding: 0 2vw;
  1607. .add-item {
  1608. display: flex;
  1609. align-items: center;
  1610. margin-bottom: 1vh;
  1611. }
  1612. .image {
  1613. width: 4vw !important;
  1614. height: 4vw !important;
  1615. }
  1616. }
  1617. .right {
  1618. width: 50%;
  1619. height: 50vh;
  1620. .add-item {
  1621. display: flex;
  1622. align-items: center;
  1623. margin-bottom: 1vh;
  1624. }
  1625. }
  1626. }
  1627. }
  1628. // 表格样式统一
  1629. :deep(.el-table__header-wrapper),
  1630. :deep(.el-table__body-wrapper),
  1631. :deep(.el-table__cell),
  1632. :deep(.el-table__body td) {
  1633. background-color: #F3FAFE !important;
  1634. }
  1635. :deep(.el-table__header th) {
  1636. background-color: #F3FAFE !important;
  1637. }
  1638. :deep(.el-table__row:hover > .el-table__cell) {
  1639. background-color: #E5EBFE !important;
  1640. }
  1641. // 驳回理由弹窗样式
  1642. .reject-reason-box {
  1643. --el-message-box-height: 500px;
  1644. }
  1645. .reject-reason-box .el-message-box__content {
  1646. max-height: 350px;
  1647. overflow-y: auto;
  1648. white-space: pre-wrap;
  1649. }
  1650. .recallDialog {
  1651. //撤回弹窗提示
  1652. height: 392px;
  1653. width: 700px;
  1654. background-image: url('/src/assets/receive-recall.png');
  1655. position: fixed; // 固定定位,相对于浏览器窗口
  1656. top: 50%; // 距离顶部50%
  1657. left: 50%; // 距离左侧50%
  1658. transform: translate(-50%, -50%); // 向左、向上平移自身宽高的50%,实现居中
  1659. z-index: 1000; // 确保在其他元素上层显示
  1660. .close {
  1661. position: absolute;
  1662. left: 625px;
  1663. top: 20px;
  1664. height: 38px;
  1665. width: 38px;
  1666. opacity: 0;
  1667. .Btn {
  1668. height: 100%;
  1669. width: 100%;
  1670. border-radius: 10px;
  1671. }
  1672. }
  1673. .text {
  1674. position: absolute;
  1675. left: 185px;
  1676. top: 190px;
  1677. height: 67px;
  1678. width: 500px;
  1679. .txt {
  1680. height: 100%;
  1681. width: 100%;
  1682. color: #001a42;
  1683. font-family: "PingFang SC";
  1684. font-size: 48px;
  1685. font-style: normal;
  1686. font-weight: 900;
  1687. line-height: normal;
  1688. }
  1689. }
  1690. .cancle {
  1691. position: absolute;
  1692. left: 185px;
  1693. top: 304px;
  1694. height: 55px;
  1695. width: 150px;
  1696. opacity: 0;
  1697. .Btn {
  1698. height: 100%;
  1699. width: 100%;
  1700. border-radius: 20px;
  1701. }
  1702. }
  1703. .confirm {
  1704. position: absolute;
  1705. left: 375px;
  1706. top: 304px;
  1707. height: 55px;
  1708. width: 150px;
  1709. opacity: 0;
  1710. .Btn {
  1711. height: 100%;
  1712. width: 100%;
  1713. border-radius: 20px;
  1714. }
  1715. }
  1716. }
  1717. </style>