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.

927 lines
32 KiB

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