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.

931 lines
32 KiB

1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
  1. <!-- 各地财务 -->
  2. <template>
  3. <el-card style="margin-bottom: 0.5vh;background-color: rgb(243,250,254);">
  4. <div class="condition">
  5. <div class="item1">
  6. <el-text size="large" style="width:4vw;">精网号</el-text>
  7. <el-input v-model="searchForm.jwcode" placeholder="请输入精网号" style="width:9vw;" clearable />
  8. </div>
  9. <div class="item1">
  10. <el-text size="large" style="width:4vw;">客户姓名</el-text>
  11. <el-input v-model="searchForm.name" placeholder="请输入客户姓名" style="width:9vw;" clearable />
  12. </div>
  13. <div class="item1">
  14. <el-text size="large" style="width:4vw;">所属地区</el-text>
  15. <el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区"
  16. clearable @change="handleMarketChange" />
  17. </div>
  18. <div class="item1">
  19. <el-text size="large" style="width:4vw;">产品名称</el-text>
  20. <el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" clearable />
  21. </div>
  22. <div class="item1">
  23. <el-text size="large" style="width:4vw;">订单状态</el-text>
  24. <el-select v-model="searchForm.statuses" style="width:9vw;" clearable>
  25. <el-option v-for="item in statusList" :label="item" :value="item" :key="item" />
  26. </el-select>
  27. </div>
  28. </div>
  29. <div class="condition">
  30. <div class="item2">
  31. <el-text size="large" style="width:4vw;">付款币种</el-text>
  32. <el-select v-model="searchForm.paymentCurrency" style="width:9vw;" clearable>
  33. <el-option v-for="item in currencies" :key="item.value" :label="item.label" :value="item.value" />
  34. </el-select>
  35. </div>
  36. <div class="item2">
  37. <el-text size="large" style="width:4vw;">支付方式</el-text>
  38. <el-select v-model="searchForm.payType" style="width:9vw;" clearable>
  39. <el-option v-for="item in channelOptions" :key="item.value" :label="item.label"
  40. :value="item.value" />
  41. </el-select>
  42. </div>
  43. <div class="item2" style="width: 28.5vw;">
  44. <el-text size="large" style="width:4vw;">付款时间</el-text>
  45. <el-date-picker v-model="dateRange" type="datetimerange" range-separator="" start-placeholder="起始时间"
  46. end-placeholder="结束时间" style="width:22vw;" @change="handleDatePickerChange" clearable
  47. :disabled-date="disabledDate" :default-time="defaultTime" />
  48. </div>
  49. <div>
  50. <el-button type="primary" @click="getRefund">查询</el-button>
  51. <!-- <el-button type="warning">导出excel</el-button>
  52. <el-button type="primary">查看导出列表</el-button> -->
  53. <el-button type="success" @click="reset">重置</el-button>
  54. </div>
  55. </div>
  56. </el-card>
  57. <el-card style="margin-top: 0.5vh;background-color: rgb(231,244,253);">
  58. <el-table :data="tableData" style="height:64vh;width:82vw">
  59. <el-table-column type="index" label="序号" width="60" fixed="left" />
  60. <el-table-column prop="jwcode" label="Homily ID" width="120" fixed="left" />
  61. <el-table-column prop="name" label="姓名" width="120" fixed="left" show-overflow-tooltip />
  62. <el-table-column prop="marketName" label="所属地区" width="120" />
  63. <el-table-column prop="goodsName" label="产品名称" width="130" show-overflow-tooltip />
  64. <el-table-column prop="goodNum" label="产品数量" width="120" />
  65. <el-table-column prop="refundModel" label="退款方式" width="120">
  66. <template #default="scope">
  67. {{ scope.row.refundModel === 1 ? '部分退款' : '全部退款' }}
  68. </template>
  69. </el-table-column>
  70. <el-table-column prop="areaServise" label="提交人" width="120" />
  71. <el-table-column prop="refundReason" label="退款理由" width="120" show-overflow-tooltip />
  72. <el-table-column prop="remark" label="备注" width="150" show-overflow-tooltip />
  73. <el-table-column prop="status" label="订单状态" width="120">
  74. <template #default="scope">
  75. {{
  76. [10].includes(scope.row.status) ? '待审核' :
  77. [20, 30, 40].includes(scope.row.status) ? '审核通过' :
  78. [12, 22, 32].includes(scope.row.status) ? '已驳回' :
  79. [41].includes(scope.row.status) ? '退款成功' : scope.row.status
  80. }}
  81. </template>
  82. </el-table-column>
  83. <el-table-column prop="operation" label="操作" fixed="right" width="100px">
  84. <template #default="scope">
  85. <div class="operation">
  86. <el-button v-if="scope.row.status === 10" type="primary" text @click="showAudit2(scope.row)">
  87. 审核
  88. </el-button>
  89. <el-button v-else type="primary" text @click="showStep(scope.row)">
  90. 查看进度
  91. </el-button>
  92. </div>
  93. </template>
  94. </el-table-column>
  95. </el-table>
  96. <el-pagination v-model:current-page="pagination.pageNum" v-model:page-size="pagination.pageSize"
  97. layout="total, sizes, prev, pager, next, jumper" :total="pagination.total"
  98. @size-change="handlePageSizeChange" @current-change="handleCurrentChange"
  99. style="margin-top: 1vh;"></el-pagination>
  100. </el-card>
  101. <el-dialog v-model="showAudit" title="审核" class="audit" width="35vw" overflow draggable>
  102. <div class="top">
  103. <el-button @click="" class="smallTitle" size="small">退款申请信息</el-button>
  104. <div class="top-item">
  105. <el-text style="width:4vw;" size="small">退款方式</el-text>
  106. <el-select v-model="auditRow.refundModel" size="small" style="width:10vw;" disabled>
  107. <el-option label="全部退款" :value="0"></el-option>
  108. <el-option label="部分退款" :value="1"></el-option>
  109. </el-select>
  110. </div>
  111. <div class="top-item">
  112. <el-text style="width:4vw;" size="small">退款理由</el-text>
  113. <el-input v-model="auditRow.refundReason" size="small" style="width:10vw;" :rows="3" maxlength="100"
  114. show-word-limit type="textarea" disabled />
  115. </div>
  116. </div>
  117. <el-button @click="" class="smallTitle" size="small">原订单信息</el-button>
  118. <div class="center">
  119. <div class="center-left">
  120. <div class="center-item">
  121. <el-text style="width:4vw;" size="small">精网号</el-text>
  122. <el-input v-model="auditRow.jwcode" size="small" style="width:10vw;" disabled />
  123. </div>
  124. <div class="center-item">
  125. <el-text style="width:4vw;" size="small">所属地区</el-text>
  126. <el-input v-model="auditRow.marketName" size="small" style="width:10vw;" disabled />
  127. </div>
  128. <div class="center-item">
  129. <el-text style="width:4vw;" size="small">产品名称</el-text>
  130. <el-input v-model="auditRow.goodsName" size="small" style="width:10vw;" disabled />
  131. </div>
  132. <div class="center-item">
  133. <el-text style="width:4vw;" size="small">付款金额</el-text>
  134. <el-input v-model="auditRow.paymentAmount" size="small" style="width:10vw;" disabled />
  135. </div>
  136. <div class="center-item">
  137. <el-text style="width:4vw;" size="small">到账金额</el-text>
  138. <el-input v-model="auditRow.receivedAmount" size="small" style="width:10vw;" disabled />
  139. </div>
  140. <div class="center-item">
  141. <el-text style="width:4vw;" size="small">支付方式</el-text>
  142. <el-input v-model="auditRow.payType" size="small" style="width:10vw;" disabled />
  143. </div>
  144. <div class="center-item">
  145. <el-text style="width:4vw;">转账凭证</el-text>
  146. <img v-if="auditRow.voucher" :src="auditRow.voucher"
  147. style="width: 80px; height: 80px; object-fit: cover;">
  148. <div v-else>
  149. 无转账凭证
  150. </div>
  151. </div>
  152. </div>
  153. <div class="center-right">
  154. <div class="right-item">
  155. <el-text style="width:4vw;" size="small">客户姓名</el-text>
  156. <el-input v-model="auditRow.name" size="small" style="width:10vw;" disabled />
  157. </div>
  158. <div class="right-item">
  159. <el-text style="width:4vw;" size="small">活动名称</el-text>
  160. <el-input v-model="auditRow.activity" size="small" style="width:10vw;" disabled />
  161. </div>
  162. <div class="right-item">
  163. <el-text style="width:4vw;" size="small">付款币种</el-text>
  164. <el-input v-model="auditRow.paymentCurrency" size="small" style="width:10vw;" disabled />
  165. </div>
  166. <div class="right-item">
  167. <el-text style="width:4vw;" size="small">到账币种</el-text>
  168. <el-input v-model="auditRow.receivedCurrency" size="small" style="width:10vw;" disabled />
  169. </div>
  170. <div class="right-item">
  171. <el-text style="width:4vw;" size="small">手续费</el-text>
  172. <el-input v-model="auditRow.handlingCharge" size="small" style="width:10vw;" disabled />
  173. </div>
  174. <div class="right-item">
  175. <el-text style="width:4vw;" size="small">付款时间</el-text>
  176. <el-input v-model="auditRow.payTime" size="small" style="width:10vw;" disabled />
  177. </div>
  178. <div class="right-item">
  179. <el-text style="width:4vw;" size="small">提交人</el-text>
  180. <el-input v-model="auditRow.submitterName" size="small" style="width:10vw;" disabled />
  181. </div>
  182. <div class="right-item">
  183. <el-text style="width:4vw;" size="small">到账时间</el-text>
  184. <el-input v-model="auditRow.receivedTime" size="small" style="width:10vw;" disabled />
  185. </div>
  186. <div class="right-item">
  187. <el-text style="width:4vw;" size="small">备注</el-text>
  188. <el-input v-model="auditRow.remark" size="small" style="width:10vw;" :row="3" maxlength="100"
  189. type="textarea" show-word-limit disabled />
  190. </div>
  191. </div>
  192. </div>
  193. <div class="bottom">
  194. <el-button class="smallTitle" size="small" v-show="showReject">驳回信息</el-button>
  195. <div class="bottom-item" v-show="showReject">
  196. <el-text style="width:4vw;" size="small">驳回备注</el-text>
  197. <el-input v-model="addForm.remark" placeholder="请输入驳回备注" size="small" style="width:10vw;" :row="3"
  198. maxlength="100" type="textarea" show-word-limit clearable />
  199. </div>
  200. <div style="text-align: center;" v-show="!showReject">
  201. <el-button type="default" @click="showReject = true">驳回</el-button>
  202. <el-button type="primary" @click="handlePass">通过</el-button>
  203. </div>
  204. <div style="text-align: center;" v-show="showReject">
  205. <el-button type="default" @click="hideReject">取消</el-button>
  206. <el-button type="primary" @click="handleReject">确定</el-button>
  207. </div>
  208. </div>
  209. </el-dialog>
  210. <el-dialog v-model="showSteps" title="退款进度" overflow draggable width="1206px" height="506px" :style="{
  211. backgroundImage: 'url(/src/assets/images/背景图.png)',
  212. backgroundSize: 'cover',
  213. backgroundPosition: 'center'
  214. }">
  215. <div class="steps">
  216. <div class="steps-content">
  217. <el-steps :active="currentStep" align-center>
  218. <el-step>
  219. <template #title>
  220. <div>
  221. 提交人<br>{{ submitterName || '未知提交人' }}
  222. </div>
  223. </template>
  224. <template #icon>
  225. <img src="@/assets/images/已审核.png" alt="已完成">
  226. </template>
  227. </el-step>
  228. <el-step>
  229. <template #title>
  230. <div>
  231. 地区财务<br>{{ areaFinance || '未记录审核人' }}
  232. </div>
  233. </template>
  234. <template #icon>
  235. <img v-if="currentStep === 2" src="@/assets/images/已驳回.png" alt="已驳回">
  236. <img v-else-if="currentStep === 1" src="@/assets/images/待审核.png" alt="待审核">
  237. <img v-else-if="currentStep > 2" src="@/assets/images/已审核.png" alt="已审核">
  238. </template>
  239. </el-step>
  240. <el-step>
  241. <template #title>
  242. <div>
  243. 地区负责人<br>{{ areaCharge || '未记录审核人' }}
  244. </div>
  245. </template>
  246. <template #icon>
  247. <img v-if="currentStep === 4" src="@/assets/images/已驳回.png" alt="已驳回">
  248. <img v-else-if="currentStep === 3" src="@/assets/images/待审核.png" alt="待审核">
  249. <img v-else-if="currentStep > 3 && currentStep != 4" src="@/assets/images/已审核.png" alt="已审核">
  250. <img v-else-if="currentStep < 3" src="@/assets/images/还没传到.png" alt="未开始">
  251. </template>
  252. </el-step>
  253. <el-step>
  254. <template #title>
  255. <div>
  256. 总部财务<br>{{ headFinance || '未记录审核人' }}
  257. </div>
  258. </template>
  259. <template #icon>
  260. <img v-if="currentStep === 6" src="@/assets/images/已驳回.png" alt="已驳回">
  261. <img v-else-if="currentStep === 5" src="@/assets/images/待审核.png" alt="待审核">
  262. <img v-else-if="currentStep > 5 && currentStep != 6" src="@/assets/images/已审核.png" alt="已审核">
  263. <img v-else-if="currentStep < 5" src="@/assets/images/还没传到.png" alt="未开始">
  264. </template>
  265. </el-step>
  266. <el-step>
  267. <template #title>
  268. <div>
  269. 指定执行人<br>{{ executor || '未记录执行人' }}
  270. </div>
  271. </template>
  272. <template #icon>
  273. <img v-if="currentStep === 7" src="@/assets/images/待审核.png" alt="待处理">
  274. <img v-else-if="currentStep === 8" src="@/assets/images/已审核.png" alt="已完成">
  275. <img v-else-if="currentStep < 7" src="@/assets/images/还没传到.png" alt="未开始">
  276. </template>
  277. </el-step>
  278. </el-steps>
  279. </div>
  280. <div class="steps-btn">
  281. <el-button type="primary" @click="showSteps = false">确定</el-button>
  282. </div>
  283. </div>
  284. </el-dialog>
  285. </template>
  286. <script setup>
  287. import { ref, onMounted } from 'vue'
  288. import { ElMessage } from 'element-plus'
  289. import API from '@/util/http.js'
  290. const uploadUrl = 'https://api.homilychart.com/hljw/api/aws/upload'
  291. import { useAdminStore } from "@/store/index.js"
  292. import { storeToRefs } from "pinia"
  293. import dayjs from 'dayjs'
  294. const adminStore = useAdminStore()
  295. const { adminData, menuTree } = storeToRefs(adminStore)
  296. import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menuTreePermission.js"
  297. import { get } from 'lodash'
  298. const currentStep = ref(0)// 进度图
  299. const searchForm = ref({
  300. jwcode: '',
  301. markets: []
  302. })
  303. const dateRange = ref([])
  304. const addForm = ref({
  305. remark: ''
  306. })
  307. const auditForm = ref({
  308. refundType: ''
  309. })
  310. const isReject = ref(false)// 进度图有没有驳回状态
  311. const showReject = ref(false)
  312. const pagination = ref({
  313. pageNum: 1,
  314. pageSize: 50,
  315. total: 0
  316. })
  317. const market = ref([])
  318. const tableData = ref([])
  319. const showAudit = ref(false)
  320. const auditRow = ref({})// 审核回显
  321. const showSteps = ref(false)
  322. const uploadRef = ref(null)
  323. const submitterName = ref('')// 提交人
  324. const areaFinance = ref('')// 地区财务
  325. const areaCharge = ref('')// 地区负责人
  326. const headFinance = ref('')// 总部财务
  327. const executor = ref('')// 指定执行人
  328. const payments = ref([{
  329. value: '银行转账',
  330. label: '银行转账'
  331. },
  332. {
  333. value: '现金',
  334. label: '现金'
  335. },
  336. {
  337. value: '支票',
  338. label: '支票'
  339. },
  340. {
  341. value: '刷卡',
  342. label: '刷卡'
  343. },
  344. {
  345. value: 'Grabpay',
  346. label: 'Grabpay'
  347. },
  348. {
  349. value: 'Nets',
  350. label: 'Nets'
  351. },
  352. {
  353. value: 'PayPal',
  354. label: 'PayPal'
  355. },
  356. {
  357. value: 'Stripe-链接收款',
  358. label: 'Stripe-链接收款'
  359. },
  360. {
  361. value: 'Ipay88-链接收款',
  362. label: 'Ipay88-链接收款'
  363. },
  364. {
  365. value: 'PaymentAsia-链接收款',
  366. label: 'PaymentAsia-链接收款'
  367. },
  368. {
  369. value: 'Stripe-Link平台',
  370. label: 'Stripe-Link平台'
  371. },
  372. {
  373. value: 'PaymentAsia-Link平台',
  374. label: 'PaymentAsia-Link平台'
  375. },
  376. {
  377. value: 'FirstData-Link平台-Link平台',
  378. label: 'FirstData-Link平台-Link平台'
  379. },
  380. {
  381. value: 'IOS-Link平台',
  382. label: 'IOS-Link平台'
  383. },
  384. {
  385. value: 'Ipay88-Link平台',
  386. label: 'Ipay88-Link平台'
  387. }
  388. ])
  389. const statusStepMap = {
  390. 10: [1, false],
  391. 12: [2, true],
  392. 20: [3, false],
  393. 22: [4, true],
  394. 30: [5, false],
  395. 32: [6, true],
  396. 40: [7, false],
  397. 41: [8, false]
  398. }
  399. const statusList = ref(['待审核','审核通过','已驳回','退款成功'])
  400. // 查全部
  401. const getRefund = async function () {
  402. if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceShow)) {
  403. ElMessage.error('无此权限')
  404. return
  405. }
  406. try {
  407. const statusParam = ref([])
  408. if (searchForm.value.statuses === '审核通过') {
  409. statusParam.value = [20, 30, 40]
  410. } else if (searchForm.value.statuses === '已驳回') {
  411. statusParam.value = [12, 22, 32]
  412. } else if (searchForm.value.statuses === '待审核') {
  413. statusParam.value = [10]
  414. } else if (searchForm.value.statuses === '退款成功') {
  415. statusParam.value = [41]
  416. } else {
  417. statusParam.value = []
  418. }
  419. const params = {
  420. pageNum: pagination.value.pageNum,
  421. pageSize: pagination.value.pageSize,
  422. cashRecordDone: {
  423. jwcode: searchForm.value.jwcode,//精网号
  424. name: searchForm.value.name,//姓名
  425. markets: searchForm.value.markets,//地区
  426. goodsNames: searchForm.value.goodsName,//商品名
  427. statuses: statusParam.value,//10:地区财务待审核;12:地区财务驳回;
  428. // 20:地区负责人待审核;22:地区负责人驳回;
  429. // 30:总部财务待审核;32:总部财务驳回;
  430. // 40:执行人待处理;41:执行人已处理,退款完成;
  431. paymentCurrency: searchForm.value.paymentCurrency,//付款币种
  432. payType: searchForm.value.payType,//支付方式
  433. startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "",
  434. endTime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "",
  435. adminId: adminData.value.id
  436. }
  437. }
  438. const result = await API({
  439. url: '/Money/select',
  440. method: 'POST',
  441. data: params
  442. })
  443. tableData.value = result.data.list || []
  444. pagination.value.total = result.data.total || 0
  445. } catch (error) {
  446. ElMessage.error(error.message || '查询失败')
  447. }
  448. }
  449. // 审核通过
  450. const handlePass = async function () {
  451. if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceAudit)) {
  452. ElMessage.error('无此权限')
  453. return
  454. }
  455. try {
  456. const params = {
  457. id: auditRow.value.id,
  458. status: 20,
  459. areaFinance: adminData.value.adminName,
  460. auditId: auditRow.value.auditId
  461. }
  462. const result = await API({
  463. url: '/Money/review',
  464. data: params
  465. })
  466. if (result.code === 200) {
  467. ElMessage.success('审核通过')
  468. showAudit.value = false
  469. getRefund()
  470. }
  471. } catch (error) {
  472. ElMessage.error(error.message || '审核失败')
  473. }
  474. }
  475. // 审核驳回
  476. const handleReject = async function () {
  477. if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceAudit)) {
  478. ElMessage.error('无此权限')
  479. return
  480. }
  481. try {
  482. const params = {
  483. id: auditRow.value.id,
  484. status: 12,
  485. rejectReason: addForm.value.remark,
  486. areaFinance: adminData.value.adminName,
  487. auditId: auditRow.value.auditId,
  488. orderCode: auditRow.value.orderCode
  489. }
  490. const result = await API({
  491. url: '/Money/review',
  492. data: params
  493. })
  494. if (result.code === 200) {
  495. ElMessage.success('审核驳回')
  496. showAudit.value = false
  497. getRefund()
  498. addForm.value.remark = ''
  499. showReject.value = false
  500. }
  501. } catch (error) {
  502. ElMessage.error(error.message || '审核失败')
  503. }
  504. }
  505. const currencies = ref([
  506. {
  507. value: '新币',
  508. label: '新币'
  509. },
  510. {
  511. value: '港币',
  512. label: '港币'
  513. },
  514. {
  515. value: '马币',
  516. label: '马币'
  517. },
  518. {
  519. value: '加币',
  520. label: '加币'
  521. },
  522. {
  523. value: '泰铢',
  524. label: '泰铢'
  525. },
  526. {
  527. value: '越南盾',
  528. label: '越南盾'
  529. }
  530. ])
  531. const channelOptions = ref([{
  532. value: '银行转账',
  533. label: '银行转账'
  534. },
  535. {
  536. value: '刷卡',
  537. label: '刷卡'
  538. },
  539. {
  540. value: '现金',
  541. label: '现金'
  542. },
  543. {
  544. value: '支票',
  545. label: '支票'
  546. },
  547. {
  548. value: 'Grabpay',
  549. label: 'Grabpay'
  550. },
  551. {
  552. value: 'Nets',
  553. label: 'Nets'
  554. },
  555. {
  556. value: 'E-Transfer',
  557. label: 'E-Transfer'
  558. },
  559. {
  560. value: 'PayPal',
  561. label: 'PayPal'
  562. },
  563. {
  564. value: 'Stripe-链接收款',
  565. label: 'Stripe-链接收款'
  566. },
  567. {
  568. value: 'PaymentAsia-链接收款',
  569. label: 'PaymentAsia-链接收款'
  570. },
  571. {
  572. value: 'Ipay88-链接收款',
  573. label: 'Ipay88-链接收款'
  574. }
  575. ])
  576. const productList = [
  577. {
  578. "value": "金币产品",
  579. "label": "金币产品",
  580. "children": [
  581. {
  582. "value": "金币充值",
  583. "label": "金币充值",
  584. }
  585. ]
  586. },
  587. {
  588. "value": "软件产品",
  589. "label": "软件产品",
  590. "children": [
  591. {
  592. "value": "美股",
  593. "label": "美股",
  594. "children": [
  595. {
  596. "value": "美股软件",
  597. "label": "美股软件"
  598. }
  599. ]
  600. },
  601. {
  602. "value": "港股",
  603. "label": "港股",
  604. "children": [
  605. {
  606. "value": "港股软件",
  607. "label": "港股软件"
  608. }
  609. ]
  610. },
  611. {
  612. "value": "A股",
  613. "label": "A股",
  614. "children": [
  615. {
  616. "value": "A股软件",
  617. "label": "A股软件"
  618. }
  619. ]
  620. },
  621. {
  622. "value": "新加坡股",
  623. "label": "新加坡股",
  624. "children": [
  625. {
  626. "value": "新加坡股软件",
  627. "label": "新加坡股软件"
  628. }
  629. ]
  630. },
  631. {
  632. "value": "马股",
  633. "label": "马股",
  634. "children": [
  635. {
  636. "value": "马股软件",
  637. "label": "马股软件"
  638. }
  639. ]
  640. },
  641. {
  642. "value": "日本股",
  643. "label": "日本股",
  644. "children": [
  645. {
  646. "value": "日本股软件",
  647. "label": "日本股软件"
  648. }
  649. ]
  650. },
  651. {
  652. "value": "泰股",
  653. "label": "泰股",
  654. "children": [
  655. {
  656. "value": "泰股软件",
  657. "label": "泰股软件"
  658. }
  659. ]
  660. },
  661. {
  662. "value": "越南股",
  663. "label": "越南股",
  664. "children": [
  665. {
  666. "value": "越南股软件",
  667. "label": "越南股软件"
  668. }
  669. ]
  670. },
  671. {
  672. "value": "印尼股",
  673. "label": "印尼股",
  674. "children": [
  675. {
  676. "value": "印尼股软件",
  677. "label": "印尼股软件"
  678. }
  679. ]
  680. },
  681. {
  682. "value": "韩国股",
  683. "label": "韩国股",
  684. "children": [
  685. {
  686. "value": "韩国股软件",
  687. "label": "韩国股软件"
  688. }
  689. ]
  690. },
  691. {
  692. "value": "台湾股",
  693. "label": "台湾股",
  694. "children": [
  695. {
  696. "value": "台湾股软件",
  697. "label": "台湾股软件"
  698. }
  699. ]
  700. }
  701. ]
  702. },
  703. ]
  704. const getMarket = async function () {
  705. try {
  706. const result = await API({
  707. url: '/market/selectMarket',
  708. })
  709. console.log('看看地区树', result)
  710. const transformTree = (nodes) => {
  711. const allChildren = nodes.flatMap(node => node.children || []);
  712. return allChildren.map(child => {
  713. const grandchildren = child.children && child.children.length
  714. ? transformTree([child])
  715. : null;
  716. return {
  717. value: child.id,
  718. label: child.name,
  719. children: grandchildren
  720. };
  721. });
  722. };
  723. market.value = transformTree(result.data)
  724. console.log('转换后的地区树==============', market.value)
  725. } catch (error) {
  726. console.log('请求失败', error)
  727. }
  728. }
  729. const showStep = function (row) {
  730. if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceProgShow)) {
  731. ElMessage.error('无此权限')
  732. return
  733. }
  734. isReject.value = false
  735. submitterName.value = row.areaServise || ''
  736. areaFinance.value = row.areaFinance || ''
  737. areaCharge.value = row.areaCharge || ''
  738. headFinance.value = row.headFinance || ''
  739. executor.value = row.executorName || ''
  740. currentStep.value = 1
  741. const status = row.status
  742. if (statusStepMap[status]) {
  743. const [step, reject] = statusStepMap[status]
  744. currentStep.value = step
  745. isReject.value = reject
  746. }
  747. console.log('步骤条状态', currentStep.value)
  748. showSteps.value = true
  749. }
  750. const showAudit2 = function (row) {
  751. auditRow.value = row
  752. showAudit.value = true
  753. }
  754. const reset = function () {
  755. searchForm.value = {
  756. jwcode: '',
  757. markets: [],
  758. statuses: []
  759. }
  760. dateRange.value = []
  761. getRefund()
  762. }
  763. const hideReject = function () {
  764. showReject.value = false
  765. addForm.value.remark = ''
  766. }
  767. const defaultTime = [
  768. new Date(2000, 1, 1, 0, 0, 0),
  769. new Date(2000, 2, 1, 23, 59, 59),
  770. ]
  771. const disabledDate = (time) => {
  772. const limitDate = new Date(2025, 0, 1);
  773. return time.getTime() < limitDate.getTime();
  774. }
  775. onMounted(() => {
  776. console.log('???????????????????', adminData.value)
  777. getRefund()
  778. getMarket()
  779. })
  780. </script>
  781. <style scoped lang="scss">
  782. :deep(.el-table__header-wrapper),
  783. :deep(.el-table__body-wrapper),
  784. :deep(.el-table__cell),
  785. :deep(.el-table__body td) {
  786. background-color: #F3FAFE !important;
  787. }
  788. :deep(.el-table__header th) {
  789. background-color: #F3FAFE !important;
  790. }
  791. .condition {
  792. width: 82vw;
  793. display: flex;
  794. align-items: center;
  795. height: 4vh;
  796. .item1 {
  797. width: 18%;
  798. display: flex;
  799. align-items: center;
  800. margin-bottom: 1vh;
  801. margin-right: 0.5vw;
  802. }
  803. .item2 {
  804. width: 18%;
  805. display: flex;
  806. align-items: center;
  807. margin-right: 0.5vw;
  808. }
  809. }
  810. .audit {
  811. display: flex;
  812. justify-content: center;
  813. height: auto;
  814. min-height: 40vh;
  815. .top {
  816. width: 30vw;
  817. height: 17vh;
  818. .top-item {
  819. display: flex;
  820. align-items: center;
  821. margin-bottom: 1vh;
  822. }
  823. }
  824. .smallTitle {
  825. background-color: white;
  826. color: rgb(64, 158, 255);
  827. border-color: rgb(64, 158, 255);
  828. margin-bottom: 0.5vh;
  829. }
  830. .center {
  831. display: flex;
  832. width: 30vw;
  833. height: 35vh;
  834. .dialog-item {
  835. display: flex;
  836. align-items: center;
  837. margin-bottom: 1vh;
  838. }
  839. .center-left {
  840. width: 60%;
  841. height: 35vh;
  842. .image {
  843. width: 4vw !important;
  844. height: 4vw !important;
  845. }
  846. :deep(.el-upload--picture-card) {
  847. width: 4vw !important;
  848. height: 4vw !important;
  849. padding: 0 !important;
  850. }
  851. .center-item {
  852. display: flex;
  853. align-items: center;
  854. margin-bottom: 1vh;
  855. }
  856. }
  857. .center-right {
  858. height: 35vh;
  859. .right-item {
  860. display: flex;
  861. align-items: center;
  862. margin-bottom: 1vh;
  863. }
  864. }
  865. }
  866. .bottom {
  867. width: 30vw;
  868. height: auto;
  869. padding-bottom: 1vh;
  870. .bottom-item {
  871. display: flex;
  872. align-items: center;
  873. margin-bottom: 1vh;
  874. }
  875. }
  876. }
  877. .steps {
  878. .steps-content {
  879. padding-top: 15vw;
  880. }
  881. .steps-status {
  882. display: flex;
  883. align-items: center;
  884. justify-content: center;
  885. }
  886. .steps-btn {
  887. height: 15vh;
  888. display: flex;
  889. justify-content: center;
  890. align-items: center;
  891. }
  892. }
  893. </style>