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.

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