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.

904 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
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
1 month ago
2 months ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month 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
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" :key="item.value" :label="item.label" :value="item.value" />
  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, 30, 40].includes(scope.row.status) ? '审核中' :
  78. [22, 32].includes(scope.row.status) ? '审核驳回' :
  79. scope.row.status === 41 ? '退款完成' : 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 === 20" type="primary" text @click="showAudit(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="showAudit2" title="审核" class="audit2" 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" placeholder="请输入退款备注" size="small" style="width:10vw;"
  114. :rows="3" maxlength="100" 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 === 12" src="@/assets/images/已驳回.png" alt="已驳回">
  236. <img v-else-if="currentStep === 2" src="@/assets/images/待审核.png" alt="待审核">
  237. <img v-else-if="currentStep > 2 && currentStep < 7" src="@/assets/images/已审核.png" alt="已审核">
  238. <img v-else src="@/assets/images/还没传到.png" alt="未开始">
  239. </template>
  240. </el-step>
  241. <el-step>
  242. <template #title>
  243. <div>
  244. 地区负责人<br>{{ areaCharge || '未记录审核人' }}
  245. </div>
  246. </template>
  247. <template #icon>
  248. <img v-if="currentStep === 22" src="@/assets/images/已驳回.png" alt="已驳回">
  249. <img v-else-if="currentStep === 3" src="@/assets/images/待审核.png" alt="待审核">
  250. <img v-else-if="currentStep > 3 && currentStep < 7" src="@/assets/images/已审核.png" alt="已审核">
  251. <img v-else src="@/assets/images/还没传到.png" alt="未开始">
  252. </template>
  253. </el-step>
  254. <el-step>
  255. <template #title>
  256. <div>
  257. 总部财务<br>{{ headFinance || '未记录审核人' }}
  258. </div>
  259. </template>
  260. <template #icon>
  261. <img v-if="currentStep === 32" src="@/assets/images/已驳回.png" alt="已驳回">
  262. <img v-else-if="currentStep === 4" src="@/assets/images/待审核.png" alt="待审核">
  263. <img v-else-if="currentStep > 4 && currentStep < 7" src="@/assets/images/已审核.png" alt="已审核">
  264. <img v-else src="@/assets/images/还没传到.png" alt="未开始">
  265. </template>
  266. </el-step>
  267. <el-step>
  268. <template #title>
  269. <div>
  270. 指定执行人<br>{{ executor || '未记录执行人' }}
  271. </div>
  272. </template>
  273. <template #icon>
  274. <img v-if="currentStep === 5" src="@/assets/images/待审核.png" alt="待处理">
  275. <img v-else-if="currentStep === 6" src="@/assets/images/已审核.png" alt="已完成">
  276. <img v-else src="@/assets/images/还没传到.png" alt="未开始">
  277. </template>
  278. </el-step>
  279. </el-steps>
  280. </div>
  281. <div class="steps-btn">
  282. <el-button type="primary" @click="showSteps = false">确定</el-button>
  283. </div>
  284. </div>
  285. </el-dialog>
  286. </template>
  287. <script setup>
  288. import { ref, onMounted } from 'vue'
  289. import { ElMessage } from 'element-plus'
  290. import API from '@/util/http.js'
  291. const uploadUrl = 'https://api.homilychart.com/hljw/api/aws/upload'
  292. import { useAdminStore } from "@/store/index.js"
  293. import { storeToRefs } from "pinia"
  294. import dayjs from 'dayjs'
  295. const adminStore = useAdminStore()
  296. const { adminData, menuTree } = storeToRefs(adminStore)
  297. import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menuTreePermission.js"
  298. const currentStep = ref(0)// 进度图
  299. const searchForm = ref({
  300. jwcode: '',
  301. markets: []
  302. })
  303. const isReject = ref(false)// 进度图有没有驳回状态
  304. const addForm = ref({
  305. remark: ''
  306. })
  307. const showReject = ref(false)
  308. const auditRow = ref({})// 审核回显
  309. const dateRange = ref([])
  310. const pagination = ref({
  311. pageNum: 1,
  312. pageSize: 50,
  313. total: 0
  314. })
  315. const market = ref([])
  316. const showAudit2 = ref(false)
  317. const tableData = ref([])
  318. const showSteps = ref(false)
  319. const submitterName = ref('')// 提交人
  320. const areaFinance = ref('')// 地区财务
  321. const areaCharge = ref('')// 地区负责人
  322. const headFinance = ref('')// 总部财务
  323. const executor = ref('')// 指定执行人
  324. const uploadRef = ref(null)
  325. const statusStepMap = {
  326. 10: [2, false],
  327. 12: [12, true],
  328. 20: [3, false],
  329. 22: [22, true],
  330. 30: [4, false],
  331. 32: [32, true],
  332. 40: [5, false],
  333. 41: [6, false]
  334. }
  335. const currencies = ref([
  336. {
  337. value: '新币',
  338. label: '新币'
  339. },
  340. {
  341. value: '港币',
  342. label: '港币'
  343. },
  344. {
  345. value: '马币',
  346. label: '马币'
  347. },
  348. {
  349. value: '加币',
  350. label: '加币'
  351. },
  352. {
  353. value: '泰铢',
  354. label: '泰铢'
  355. },
  356. {
  357. value: '越南盾',
  358. label: '越南盾'
  359. }
  360. ])
  361. const channelOptions = ref([{
  362. value: '银行转账',
  363. label: '银行转账'
  364. },
  365. {
  366. value: '现金',
  367. label: '现金'
  368. },
  369. {
  370. value: '支票',
  371. label: '支票'
  372. },
  373. {
  374. value: '刷卡',
  375. label: '刷卡'
  376. },
  377. {
  378. value: 'Grabpay',
  379. label: 'Grabpay'
  380. },
  381. {
  382. value: 'Nets',
  383. label: 'Nets'
  384. },
  385. {
  386. value: 'PayPal',
  387. label: 'PayPal'
  388. },
  389. {
  390. value: 'Stripe-链接收款',
  391. label: 'Stripe-链接收款'
  392. },
  393. {
  394. value: 'Ipay88-链接收款',
  395. label: 'Ipay88-链接收款'
  396. },
  397. {
  398. value: 'PaymentAsia-链接收款',
  399. label: 'PaymentAsia-链接收款'
  400. },
  401. {
  402. value: 'Stripe-Link平台',
  403. label: 'Stripe-Link平台'
  404. },
  405. {
  406. value: 'PaymentAsia-Link平台',
  407. label: 'PaymentAsia-Link平台'
  408. },
  409. {
  410. value: 'FirstData-Link平台-Link平台',
  411. label: 'FirstData-Link平台-Link平台'
  412. },
  413. {
  414. value: 'IOS-Link平台',
  415. label: 'IOS-Link平台'
  416. },
  417. {
  418. value: 'Ipay88-Link平台',
  419. label: 'Ipay88-Link平台'
  420. }
  421. ])
  422. const statusList = ref([
  423. {
  424. value: 20,
  425. label: '待审核',
  426. },
  427. {
  428. value: '审核通过',
  429. label: '审核通过'
  430. },
  431. {
  432. value: '审核驳回',
  433. label: '审核驳回'
  434. },
  435. {
  436. value: 41,
  437. label: '退款完成'
  438. }
  439. ])
  440. // 查全部
  441. const getRefund = async function () {
  442. if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeShow)) {
  443. ElMessage.error('无此权限')
  444. return
  445. }
  446. try {
  447. searchForm.value.statuses = [20, 22, 30, 32, 40, 41] // 看不到进度没到这里的
  448. if (searchForm.value.statuses === '审核通过') {
  449. statuses = [30, 40]
  450. } else if (searchForm.value.statuses === '审核驳回') {
  451. statuses = [22, 32]
  452. }
  453. const params = {
  454. pageNum: pagination.value.pageNum,
  455. pageSize: pagination.value.pageSize,
  456. cashRecordDone: {
  457. jwcode: searchForm.value.jwcode,//精网号
  458. name: searchForm.value.name,//姓名
  459. markets: searchForm.value.markets,//地区
  460. goodsNames: searchForm.value.goodsName,//商品名
  461. statuses: searchForm.value.statuses,//10:地区财务待审核;12:地区财务驳回;
  462. // 20:地区负责人待审核;22:地区负责人驳回;
  463. // 30:总部财务待审核;32:总部财务驳回;
  464. // 40:执行人待处理;41:执行人已处理,退款完成;
  465. paymentCurrency: searchForm.value.paymentCurrency,//付款币种
  466. payType: searchForm.value.payType,//支付方式
  467. startTime: dateRange.value && dateRange.value[0] ? dayjs(dateRange.value[0]).format('YYYY-MM-DD HH:mm:ss') : "",
  468. endTime: dateRange.value && dateRange.value[1] ? dayjs(dateRange.value[1]).format('YYYY-MM-DD HH:mm:ss') : "",
  469. adminId: adminData.value.id
  470. }
  471. }
  472. const result = await API({
  473. url: '/Money/select',
  474. method: 'POST',
  475. data: params
  476. })
  477. tableData.value = result.data.list || []
  478. pagination.value.total = result.data.total || 0
  479. } catch (error) {
  480. ElMessage.error(error.message || '查询失败')
  481. }
  482. }
  483. // 审核通过
  484. const handlePass = async function () {
  485. if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeAudit)) {
  486. ElMessage.error('无此权限')
  487. return
  488. }
  489. try {
  490. const params = {
  491. id: auditRow.value.id,
  492. status: 30,
  493. rejectReason: addForm.value.remark,
  494. areaCharge: adminData.value.adminName,
  495. auditId: auditRow.value.auditId
  496. }
  497. const result = await API({
  498. url: '/Money/review',
  499. data: params
  500. })
  501. if (result.code === 200) {
  502. ElMessage.success('审核通过')
  503. showAudit2.value = false
  504. getRefund()
  505. }
  506. } catch (error) {
  507. ElMessage.error(error.message || '审核失败')
  508. }
  509. }
  510. // 审核驳回
  511. const handleReject = async function () {
  512. if (!hasMenuPermission(menuTree.value, permissionMapping.refundChargeAudit)) {
  513. ElMessage.error('无此权限')
  514. return
  515. }
  516. try {
  517. const params = {
  518. id: auditRow.value.id,
  519. status: 22,
  520. rejectReason: addForm.value.remark,
  521. areaCharge: adminData.value.adminName,
  522. auditId: auditRow.value.auditId,
  523. orderCode:auditRow.value.orderCode
  524. }
  525. const result = await API({
  526. url: '/Money/review',
  527. data: params
  528. })
  529. if (result.code === 200) {
  530. ElMessage.success('审核驳回')
  531. showAudit.value = false
  532. getRefund()
  533. addForm.value.remark = ''
  534. showReject.value = false
  535. }
  536. } catch (error) {
  537. ElMessage.error(error.message || '审核失败')
  538. }
  539. }
  540. const showStep = function (row) {
  541. if (!hasMenuPermission(menuTree.value, permissionMapping.refundFinanceProgShow)) {
  542. ElMessage.error('无此权限')
  543. return
  544. }
  545. isReject.value = false
  546. submitterName.value = row.areaServise || ''
  547. areaFinance.value = row.areaFinance || ''
  548. areaCharge.value = row.areaCharge || ''
  549. headFinance.value = row.headFinance || ''
  550. executor.value = row.executorName || ''
  551. currentStep.value = 1
  552. const status = row.status
  553. if (statusStepMap[status]) {
  554. const [step, reject] = statusStepMap[status]
  555. currentStep.value = step
  556. isReject.value = reject
  557. }
  558. console.log('步骤条状态',currentStep.value)
  559. showSteps.value = true
  560. }
  561. const productList = [
  562. {
  563. "value": "金币产品",
  564. "label": "金币产品",
  565. "children": [
  566. {
  567. "value": "金币充值",
  568. "label": "金币充值",
  569. }
  570. ]
  571. },
  572. {
  573. "value": "软件产品",
  574. "label": "软件产品",
  575. "children": [
  576. {
  577. "value": "美股",
  578. "label": "美股",
  579. "children": [
  580. {
  581. "value": "美股软件",
  582. "label": "美股软件"
  583. }
  584. ]
  585. },
  586. {
  587. "value": "港股",
  588. "label": "港股",
  589. "children": [
  590. {
  591. "value": "港股软件",
  592. "label": "港股软件"
  593. }
  594. ]
  595. },
  596. {
  597. "value": "A股",
  598. "label": "A股",
  599. "children": [
  600. {
  601. "value": "A股软件",
  602. "label": "A股软件"
  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. "value": "台湾股",
  678. "label": "台湾股",
  679. "children": [
  680. {
  681. "value": "台湾股软件",
  682. "label": "台湾股软件"
  683. }
  684. ]
  685. }
  686. ]
  687. },
  688. ]
  689. const getMarket = async function () {
  690. try {
  691. const result = await API({
  692. url: '/market/selectMarket',
  693. })
  694. console.log('看看地区树', result)
  695. const transformTree = (nodes) => {
  696. const allChildren = nodes.flatMap(node => node.children || []);
  697. return allChildren.map(child => {
  698. const grandchildren = child.children && child.children.length
  699. ? transformTree([child])
  700. : null;
  701. return {
  702. value: child.id,
  703. label: child.name,
  704. children: grandchildren
  705. };
  706. });
  707. };
  708. market.value = transformTree(result.data)
  709. console.log('转换后的地区树==============', market.value)
  710. } catch (error) {
  711. console.log('请求失败', error)
  712. }
  713. }
  714. const hideReject = function () {
  715. showReject.value = false
  716. addForm.value.remark = ''
  717. }
  718. const reset = function () {
  719. searchForm.value = {
  720. jwcode: '',
  721. market: searchForm.value.market,
  722. statuses: searchForm.value.statuses
  723. }
  724. dateRange.value = []
  725. getRefund()
  726. }
  727. const showAudit = function (row) {
  728. auditRow.value = row
  729. showAudit2.value = true
  730. }
  731. const defaultTime = [
  732. new Date(2000, 1, 1, 0, 0, 0),
  733. new Date(2000, 2, 1, 23, 59, 59),
  734. ]
  735. const disabledDate = (time) => {
  736. const limitDate = new Date(2025, 0, 1);
  737. return time.getTime() < limitDate.getTime();
  738. }
  739. onMounted(() => {
  740. getRefund()
  741. getMarket()
  742. })
  743. </script>
  744. <style scoped lang="scss">
  745. :deep(.el-table__header-wrapper),
  746. :deep(.el-table__body-wrapper),
  747. :deep(.el-table__cell),
  748. :deep(.el-table__body td) {
  749. background-color: #F3FAFE !important;
  750. }
  751. :deep(.el-table__header th) {
  752. background-color: #F3FAFE !important;
  753. }
  754. .condition {
  755. width: 82vw;
  756. display: flex;
  757. align-items: center;
  758. height: 4vh;
  759. .item1 {
  760. width: 18%;
  761. display: flex;
  762. align-items: center;
  763. margin-bottom: 1vh;
  764. margin-right: 0.5vw;
  765. }
  766. .item2 {
  767. width: 18%;
  768. display: flex;
  769. align-items: center;
  770. margin-right: 0.5vw;
  771. }
  772. }
  773. .audit1 {
  774. height: 47vh;
  775. .audit-item {
  776. display: flex;
  777. align-items: center;
  778. margin-bottom: 1vh;
  779. }
  780. }
  781. .audit2 {
  782. display: flex;
  783. justify-content: center;
  784. height:auto;
  785. min-height:40vh;
  786. .top {
  787. width: 30vw;
  788. height: 17vh;
  789. .top-item {
  790. display: flex;
  791. align-items: center;
  792. margin-bottom: 1vh;
  793. }
  794. }
  795. .smallTitle {
  796. background-color: white;
  797. color: rgb(64, 158, 255);
  798. border-color: rgb(64, 158, 255);
  799. margin-bottom: 0.5vh;
  800. }
  801. .center {
  802. display: flex;
  803. width: 30vw;
  804. height: 35vh;
  805. .dialog-item {
  806. display: flex;
  807. align-items: center;
  808. margin-bottom: 1vh;
  809. }
  810. .center-left {
  811. width: 60%;
  812. height: 35vh;
  813. .image {
  814. width: 4vw !important;
  815. height: 4vw !important;
  816. }
  817. :deep(.el-upload--picture-card) {
  818. width: 4vw !important;
  819. height: 4vw !important;
  820. padding: 0 !important;
  821. }
  822. .center-item {
  823. display: flex;
  824. align-items: center;
  825. margin-bottom: 1vh;
  826. }
  827. }
  828. .center-right {
  829. height: 35vh;
  830. .right-item {
  831. display: flex;
  832. align-items: center;
  833. margin-bottom: 1vh;
  834. }
  835. }
  836. }
  837. .bottom {
  838. width: 30vw;
  839. height: 12vh;
  840. .bottom-item {
  841. display: flex;
  842. align-items: center;
  843. margin-bottom: 1vh;
  844. }
  845. }
  846. }
  847. .steps {
  848. .steps-content {
  849. padding-top: 15vw;
  850. }
  851. .steps-status {
  852. display: flex;
  853. align-items: center;
  854. justify-content: center;
  855. }
  856. .steps-btn {
  857. height: 15vh;
  858. display: flex;
  859. justify-content: center;
  860. align-items: center;
  861. }
  862. }
  863. </style>