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.

1910 lines
79 KiB

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