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.

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