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.

1395 lines
56 KiB

1 week ago
3 weeks ago
3 weeks ago
2 weeks ago
2 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
2 weeks ago
2 weeks ago
1 week ago
1 week ago
3 weeks ago
2 weeks ago
1 week ago
1 week ago
1 week ago
2 weeks ago
3 weeks ago
1 week ago
1 week ago
1 week ago
1 week ago
2 weeks ago
1 week ago
1 week ago
1 week ago
1 week ago
3 weeks ago
3 weeks ago
3 weeks ago
1 week ago
1 week ago
1 week ago
1 week ago
2 weeks ago
2 weeks ago
  1. <template>
  2. <div class="content">
  3. <!-- 搜索区域仅保留客服相关筛选条件 -->
  4. <div class="div-card1">
  5. <el-card class="card1" style="margin-bottom: 0.5vh; min-height: 110px;">
  6. <div class="row">
  7. <div class="rowItem">
  8. <el-text style="width: 4vw;">精网号</el-text>
  9. <el-input v-model="searchData.jwcode" placeholder="请输入精网号" style="width:10vw;"
  10. clearable></el-input>
  11. </div>
  12. <div class="rowItem">
  13. <el-text style="width: 4vw;">客户姓名</el-text>
  14. <el-input v-model="searchData.name" placeholder="请输入客户姓名" style="width:10vw;"
  15. clearable></el-input>
  16. </div>
  17. <div class="rowItem">
  18. <el-text style="width: 4vw;">所属地区</el-text>
  19. <el-cascader style="width: 9vw;" v-model="searchData.markets" :options="market"
  20. placeholder="请选择所属地区" clearable @change="handleMarketChange" />
  21. </div>
  22. <div class="rowItem">
  23. <el-text style="width: 4vw;">订单状态</el-text>
  24. <el-select v-model="searchData.status" placeholder="请选择订单状态" style="width: 10vw;" clearable>
  25. <el-option v-for="item in statusList" :key="item.name" :label="item.name"
  26. :value="item.value" />
  27. </el-select>
  28. </div>
  29. <div class="rowItem">
  30. <el-text style="width: 4vw;">支付方式</el-text>
  31. <el-select v-model="searchData.payType" placeholder="请选择支付方式" style="width: 10vw;" clearable>
  32. <el-option v-for="item in paytypeList" :key="item" :label="item" :value="item" />
  33. </el-select>
  34. </div>
  35. </div>
  36. <div class="row" style="margin-top: 10px;">
  37. <div class="rowItem">
  38. <el-text style="width: 4vw;">活动名称</el-text>
  39. <el-select v-model="searchData.activity" placeholder="请选择活动方式" style="width: 10vw;" clearable>
  40. <el-option v-for="item in activityList" :key="item.id" :label="item.activityName"
  41. :value="item.id" />
  42. </el-select>
  43. </div>
  44. <div class="rowItem">
  45. <el-text style="width: 4vw;">产品名称</el-text>
  46. <el-cascader v-model="searchData.goodsName" :options="productList" style="width: 10vw;"
  47. clearable />
  48. </div>
  49. <div class="rowItem" style="width: 30vw">
  50. <el-text style="width: 4vw; margin-left: 0.5vw;">付款时间</el-text>
  51. <el-date-picker v-model="getTime" type="datetimerange" range-separator=""
  52. start-placeholder="起始时间" end-placeholder="结束时间" style="width: 22vw; "
  53. @change="handleDatePickerChange" :default-time="defaultTime"
  54. :disabled-date="disabledDate" />
  55. </div>
  56. <div class="buttons">
  57. <el-button type="primary" @click="search">查询</el-button>
  58. <el-button type="success" @click="reset">重置</el-button>
  59. </div>
  60. </div>
  61. </el-card>
  62. </div>
  63. <!-- 表格区域仅保留客服相关列和操作 -->
  64. <div class="div-card2">
  65. <el-card class="card2">
  66. <div class="btns">
  67. <div class="btnAdd">
  68. <el-button @click="openAddForm" type="success">添加收款</el-button>
  69. </div>
  70. <div class="info-tooltip">
  71. <el-popover placement="top" title="数据说明" :width="260" trigger="hover"
  72. content="收款的所有页面:订单记录默认按照付款时间降序排列" popper-class="custom-popover" :show-arrow="false">
  73. <template #reference>
  74. <el-icon class="service-icon">
  75. <Warning />
  76. </el-icon>
  77. </template>
  78. </el-popover>
  79. </div>
  80. </div>
  81. <div class="table">
  82. <el-table :data="tableData" style="width: 80vw;height:64vh;" @sort-change="handleSortChange"
  83. :row-style="{ height: '60px' }" :header-cell-style="{ textAlign: 'center' }"
  84. :cell-style="{ textAlign: 'center' }">
  85. <el-table-column type="index" label="序号" width="100px" fixed="left">
  86. <template #default="scope">
  87. <span>{{ scope.$index + 1 + (pageInfo.pageNum - 1) * pageInfo.pageSize }}</span>
  88. </template>
  89. </el-table-column>
  90. <el-table-column fixed="left" prop="jwcode" label="Homily ID" width="110px" />
  91. <el-table-column fixed="left" prop="name" label="姓名" width="110px" />
  92. <el-table-column prop="marketName" label="所属地区" width="80px" />
  93. <el-table-column prop="activity" label="活动名称" width="120px" show-overflow-tooltip />
  94. <el-table-column prop="goodsName" label="产品名称" width="120px" />
  95. <el-table-column prop="goodNum" label="产品数量" width="130px">
  96. <template #default="scope">
  97. <span v-if="scope.row.goodsName == '金币充值'">{{ scope.row.permanentGold }}</span>
  98. <span v-else>{{ scope.row.goodNum }}</span>
  99. </template>
  100. </el-table-column>
  101. <el-table-column prop="paymentCurrency" label="付款币种" width="100px" />
  102. <el-table-column prop="paymentAmount" label="付款金额" width="120px" />
  103. <el-table-column prop="payType" label="支付方式" width="130px" />
  104. <el-table-column prop="payTime" label="付款时间" width="180px" />
  105. <el-table-column prop="voucher" label="转账凭证" width="110px">
  106. <template #default="scope">
  107. <div v-if="scope.row.voucher"
  108. style="display: flex; justify-content: center; align-items: center; cursor: pointer;"
  109. @click="previewImage(scope.row.voucher)">
  110. <img :src="scope.row.voucher" alt="支付凭证" style="width: auto; height: 40px;">
  111. </div>
  112. <div v-else
  113. style="display: flex; justify-content: center; align-items: center; height: 40px;">
  114. </div>
  115. </template>
  116. </el-table-column>
  117. <el-table-column prop="submitterName" label="提交人" width="150px" show-overflow-tooltip />
  118. <el-table-column prop="remark" label="备注" width="150px" show-overflow-tooltip />
  119. <!-- 客服专属的订单状态列 -->
  120. <el-table-column fixed="right" prop="status" label="订单状态" width="100px">
  121. <template #default="scope">
  122. <span v-if="scope.row.status == 0">待审核</span>
  123. <span v-else-if="scope.row.status == 1 || scope.row.status == 4">已通过</span>
  124. <span v-else-if="scope.row.status == 2">已驳回</span>
  125. <span v-else-if="scope.row.status == 5">已撤回</span>
  126. <span v-else-if="scope.row.status == 6">退款</span>
  127. <span v-else></span>
  128. </template>
  129. </el-table-column>
  130. <el-table-column fixed="right" label="操作" width="120px">
  131. <template #default=scope>
  132. <el-link v-if="scope.row.status == 4" style="color: #FA5A1E;"
  133. @click="openConfirm('refund', scope.row)">退款</el-link>
  134. <el-link v-else-if="scope.row.status == 1" style="color: #2741DE;">待填写手续费</el-link>
  135. <el-link v-else-if="scope.row.status == 5" style="color: #2741DE;"
  136. @click="openAddForm(scope.row)">编辑</el-link>
  137. <el-link v-else-if="scope.row.status == 0" style="color: #FA5A1E;"
  138. @click="openConfirm('recall', scope.row)">撤回</el-link>
  139. <el-link v-else-if="scope.row.status == 2" style="color: #FA5A1E;"
  140. @click="openRejectReason(scope.row.rejectReason)">查看驳回理由</el-link>
  141. </template>
  142. </el-table-column>
  143. </el-table>
  144. </div>
  145. <div class="pagination">
  146. <el-pagination background :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize"
  147. :page-sizes="[5, 10, 20, 50, 100]" layout="total, sizes, prev, pager, next, jumper"
  148. :total="total" @size-change="handlePagination('size', $event)"
  149. @current-change="handlePagination('page', $event)"></el-pagination>
  150. </div>
  151. </el-card>
  152. </div>
  153. <!-- 撤回确认弹窗 -->
  154. <div class="recallDialog" v-show="recallDialog">
  155. <div class="close">
  156. <button @click="closeRecall" class="Btn">关闭</button>
  157. </div>
  158. <div class="text">
  159. <text class="txt">{{ textContent }}</text>
  160. </div>
  161. <div class="cancle">
  162. <button @click="closeRecall" class="Btn">取消</button>
  163. </div>
  164. <div class="confirm">
  165. <button @click="handleRecall" class="Btn">确定</button>
  166. </div>
  167. </div>
  168. <!-- 退款确认弹窗 -->
  169. <div class="recallDialog" v-show="refundConfirmDialog">
  170. <div class="close">
  171. <button @click="closeConfirmRefund" class="Btn">关闭</button>
  172. </div>
  173. <div class="text">
  174. <text class="txt">{{ textContent }}</text>
  175. </div>
  176. <div class="cancle">
  177. <button @click="closeConfirmRefund" class="Btn">取消</button>
  178. </div>
  179. <div class="confirm">
  180. <button @click="openRefundDialog" class="Btn">确定</button>
  181. </div>
  182. </div>
  183. <!-- 客服新增/编辑收款弹窗 -->
  184. <el-dialog class="adddialog" v-model="addFormisible" width="20vw" :before-close="closeAddForm">
  185. <el-form class="addForm" ref="addFormRef" :rules="addFormRule" :model="addFormData" label-width="4vw"
  186. label-position="left">
  187. <el-form-item label="精网号" required prop="jwcode">
  188. <el-input v-model="addFormData.jwcode" placeholder="请输入精网号" @blur="jwcodeSeachMarket" />
  189. </el-form-item>
  190. <el-form-item label="客户姓名" required prop="name">
  191. <el-input disabled v-model="addFormData.name" placeholder="请输入客户姓名" />
  192. </el-form-item>
  193. <el-form-item label="所属地区" prop="market">
  194. <el-input disabled v-model="addFormData.marketName" placeholder="请输入所属地区" />
  195. </el-form-item>
  196. <el-form-item label="活动名称" required prop="activity">
  197. <el-select v-model="addFormData.activity" placeholder="请选择活动方式" clearable>
  198. <el-option v-for="item in activityList" :key="item.id" :label="item.activityName"
  199. :value="item.id" />
  200. </el-select>
  201. </el-form-item>
  202. <el-form-item label="产品名称" required @change="ifGold" prop="goodsName">
  203. <ProductSelect ref="productSelectRef" v-model="addFormData.goodsName"></ProductSelect>
  204. </el-form-item>
  205. <el-form-item v-show="!isGold" label="产品数量" required>
  206. <div style="display: flex;">
  207. <el-input style="padding-right: 30px; flex: 3;" v-model="addFormData.goodNum"
  208. placeholder="请输入产品数量" />
  209. <CurrencySelect v-model="addFormData.numUnit" :items="numUnitList" style="flex: 1.5;"
  210. placeholder="单位" @change="handleCurrencyChange" />
  211. </div>
  212. </el-form-item>
  213. <div v-show="isGold" style="margin-bottom: 15px; display: flex;">
  214. <div style=" display: flex; ">
  215. <span
  216. style="color: #999999; display: flex; white-space: nowrap;align-items: center;">永久金币</span>
  217. <el-input placeholder="0"
  218. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  219. v-model="addFormData.permanentGold" />
  220. </div>
  221. <div style="padding-right: 5px; display: flex;">
  222. <span
  223. style="color: #999999; display: flex; white-space: nowrap;align-items: center;">免费金币</span>
  224. <el-input placeholder="0"
  225. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  226. v-model="addFormData.freeGold" />
  227. </div>
  228. </div>
  229. <el-form-item label="付款币种" required prop="paymentCurrency">
  230. <CurrencySelect v-model="addFormData.paymentCurrency" :items="customOptions" placeholder="请选择付款币种"
  231. @change="handleCurrencyChange" />
  232. </el-form-item>
  233. <el-form-item label="付款金额" required prop="paymentAmount">
  234. <el-input v-model="addFormData.paymentAmount" placeholder="请输入付款金额" />
  235. </el-form-item>
  236. <el-form-item label="支付方式" required prop="payType">
  237. <CurrencySelect v-model="addFormData.payType" :items="paytypeOptions" placeholder="请选择支付方式"
  238. @change="ifGroup">
  239. </CurrencySelect>
  240. </el-form-item>
  241. <el-form-item label="到账地区" prop="receivedMarket">
  242. <CurrencySelect v-model="addFormData.receivedMarket" :items="MoneyAddressOptions"
  243. :disabled="isGroup" placeholder="请选择到账地区">
  244. </CurrencySelect>
  245. </el-form-item>
  246. <el-form-item label="付款时间" required prop="payTime">
  247. <el-date-picker type="datetime" placement="right" v-model="addFormData.payTime"
  248. placeholder="请选择付款时间" />
  249. </el-form-item>
  250. <el-form-item label="转账凭证" prop="voucher">
  251. <div class="pic">
  252. <el-upload ref="uploadRef" class="uploader" :show-file-list="false" list-type="picture-card"
  253. :auto-upload="false" :before-upload="beforeUpload" :on-error="handelImgErr"
  254. :on-change="handleImageChange" :http-request="customUpload">
  255. <img v-if="addFormData.voucher" :src="addFormData.voucher" class="avatar"
  256. style="height: 100%; width: 100%; object-fit: cover;" />
  257. <el-icon v-else class="avatar-uploader-icon">
  258. <Plus />
  259. </el-icon>
  260. </el-upload>
  261. </div>
  262. </el-form-item>
  263. <el-form-item label="备注" prop="remark">
  264. <el-input v-model="addFormData.remark" type="textarea" :rows="4" placeholder="请输入备注" maxlength="100"
  265. show-word-limit />
  266. </el-form-item>
  267. </el-form>
  268. <template #footer>
  269. <span class="dialog-footer">
  270. <el-button style="background-color: #7E91FF;" @click="closeAddForm">取消</el-button>
  271. <el-button v-if="addOrEdit == 1" style="background-color: #2741DE; margin-left: 2.5vw;"
  272. type="primary" @click="throttledhandleAddForm" :disabled="ifAddDone">确定</el-button>
  273. <el-button v-else-if="addOrEdit == 2" style="background-color: #2741DE; margin-left: 2.5vw;"
  274. type="primary" @click="throttledhandleEditForm" :disabled="ifReAddDone">编辑</el-button>
  275. </span>
  276. </template>
  277. </el-dialog>
  278. <!-- 客服新增退款弹窗 -->
  279. <el-dialog v-model="refundDialog" title="退款" class="refundDialog" overflow draggable style="width: 40vw;"
  280. :before-close="closeRefundForm">
  281. <div style="display: flex;">
  282. <div class="left">
  283. <div class="add-item">
  284. <el-text style="width:4vw;">精网号</el-text>
  285. <el-input v-model="refundFormData.jwcode" style="width:10vw;" disabled />
  286. </div>
  287. <div class="add-item">
  288. <el-text style="width:4vw;">客户姓名</el-text>
  289. <el-input v-model="refundFormData.name" style="width:10vw;" disabled />
  290. </div>
  291. <div class="add-item">
  292. <el-text style="width:4vw;">所属地区</el-text>
  293. <el-input v-model="refundFormData.marketName" style="width:10vw;" disabled />
  294. </div>
  295. <div class="add-item">
  296. <el-text style="width:4vw;">活动名称</el-text>
  297. <el-input v-model="refundFormData.activity" style="width:10vw;" disabled />
  298. </div>
  299. <div class="add-item">
  300. <el-text style="width:4vw;">产品名称</el-text>
  301. <el-input v-model="refundFormData.goodsName" style="width:10vw;" disabled />
  302. </div>
  303. <div v-show="!isRefundGold" class="add-item">
  304. <el-text style="width:4vw;">产品数量</el-text>
  305. <el-input style="padding-right: 10px; width:6.5vw;" v-model="refundFormData.goodNum"
  306. placeholder="请输入产品数量" disabled />
  307. <CurrencySelect disabled v-model="refundFormData.numUnit" :items="numUnitList"
  308. style="width: 3.5vw;" placeholder="单位" @change="handleCurrencyChange" />
  309. </div>
  310. <div v-show="isRefundGold" style="margin-bottom: 15px; ">
  311. <div style=" display: flex; ">
  312. <span
  313. style="color: #999999; display: flex; white-space: nowrap;align-items: center;width:4vw;">永久金币</span>
  314. <el-input style="padding-right: 10px; height: 30px; width: 110px; margin-bottom: 10px"
  315. v-model="refundFormData.permanentGold" disabled />
  316. </div>
  317. <div style="padding-right: 5px; display: flex;">
  318. <span
  319. style="color: #999999; display: flex; white-space: nowrap;align-items: center;width:4vw;">免费金币</span>
  320. <el-input style="padding-right: 10px; height: 30px; width: 110px;"
  321. v-model="refundFormData.freeGold" disabled />
  322. </div>
  323. </div>
  324. <div class="add-item">
  325. <el-text style="width:4vw;">付款币种</el-text>
  326. <el-input v-model="refundFormData.paymentCurrency" style="width:10vw;" disabled />
  327. </div>
  328. <div class="add-item">
  329. <el-text style="width:4vw;">付款金额</el-text>
  330. <el-input v-model="refundFormData.paymentAmount" style="width:10vw;" disabled />
  331. </div>
  332. <div class="add-item">
  333. <el-text style="width:4vw;">支付方式</el-text>
  334. <el-input v-model="refundFormData.payType" style="width:10vw;" disabled />
  335. </div>
  336. <div class="add-item">
  337. <el-text style="width:4vw;">付款时间</el-text>
  338. <el-date-picker v-model="refundFormData.payTime" type="datetime" style="width:10vw;" disabled />
  339. </div>
  340. <div class="add-item">
  341. <el-text style="width:4vw;" size="small">转账凭证</el-text>
  342. <el-form-item :rules="{ required: true, message: '请上传图片', trigger: 'change' }">
  343. <el-upload ref="uploadRef" :auto-upload="false" list-type="picture-card"
  344. :show-file-list="false">
  345. <template #default>
  346. <img v-if="refundFormData.voucher" :src="refundFormData.voucher"
  347. style="width: 100%; height: 100%; object-fit: cover;">
  348. <el-icon v-else>
  349. <Plus />
  350. </el-icon>
  351. </template>
  352. </el-upload>
  353. </el-form-item>
  354. </div>
  355. <div class="add-item">
  356. <el-text style="width:4vw;">备注</el-text>
  357. <el-input v-model="refundFormData.remark" style="width:10vw;" :rows="2" type="textarea"
  358. maxLength="100" disabled show-word-limit />
  359. </div>
  360. </div>
  361. <div class="right">
  362. <div class="add-item">
  363. <el-text style="width:4vw;">退款模式</el-text>
  364. <el-radio-group v-model="refundFormData.refundModel">
  365. <el-radio value="0">全部退款</el-radio>
  366. <el-radio value="1">部分退款</el-radio>
  367. </el-radio-group>
  368. </div>
  369. <div class="add-item"
  370. v-show="refundFormData.goodsName === '金币充值' && refundFormData.refundModel === '1'">
  371. <el-text style="width:4vw;">永久金币</el-text>
  372. <el-input v-model="refundFormData.partRefundGold" style="width:5vw;" />&nbsp;&nbsp;
  373. </div>
  374. <div class="add-item"
  375. v-show="refundFormData.goodsName === '金币充值' && refundFormData.refundModel === '1'">
  376. <el-text style="width:4vw;">免费金币</el-text>
  377. <el-input v-model="refundFormData.partRefundFree" style="width:5vw;" />&nbsp;&nbsp;
  378. </div>
  379. <div class="add-item">
  380. <el-text style="width:4vw;">退款理由</el-text>
  381. <el-input v-model="refundFormData.refundReason" style="width:10vw;" :rows="5" maxlength="150"
  382. show-word-limit type="textarea" />
  383. </div>
  384. <div>ps:请在退款理由表明用户的退款需求</div>
  385. <div style="display:flex;justify-content: center;margin-top: 5vh;">
  386. <el-button type="default" @click="closeRefundForm">取消</el-button>
  387. <el-button type="primary" @click="throttledsubmitRefund">提交</el-button>
  388. </div>
  389. </div>
  390. </div>
  391. </el-dialog>
  392. <!-- 查看驳回理由 -->
  393. <el-dialog title="驳回理由" v-model="rejectReasonVisible" width="50%" top="30vh"
  394. style="min-width: 200px; max-width: 500px;" :before-close="closeRejectForm">
  395. <div class="reject-reason-box">
  396. {{ rejectReason }}
  397. </div>
  398. <div class="rejectBtn">
  399. <el-button type="primary" @click="closeRejectForm">确定</el-button>
  400. </div>
  401. </el-dialog>
  402. </div>
  403. </template>
  404. <script setup>
  405. import { ref, watch, onMounted } from 'vue';
  406. import { storeToRefs } from 'pinia';
  407. import { ElMessage, ElMessageBox } from 'element-plus'
  408. import API from '@/util/http.js'
  409. import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue'
  410. import ProductSelect from '@/components/MoneyManage/ProductSelect.vue'
  411. import { Plus } from '@element-plus/icons-vue'; // 补充图标导入(原代码遗漏)
  412. import request from '@/util/http.js'
  413. import moment from 'moment'
  414. import { useAdminStore } from '@/store/index.js'
  415. import { hasMenuPermission } from '@/utils/menuTreePermission.js'
  416. import _ from 'lodash'
  417. import { isNumber } from 'lodash'
  418. // 导入客服相关规则和静态数据
  419. import { addFormRule } from './utils/recriveFormRules.js'
  420. import { productList, MarketNameForId, CurrencyForId, marketList, statusList } from './utils/staticData.js'
  421. // ===================== 基础状态管理(仅保留客服相关) =====================
  422. const adminStore = useAdminStore();
  423. const { menuTree } = storeToRefs(adminStore);
  424. const adminData = ref({}) // 管理员信息
  425. const tableData = ref([]) // 表格数据
  426. const total = ref(0) // 总条数
  427. const pageInfo = ref({ pageSize: 10, pageNum: 1 }) // 分页信息
  428. const numUnitList = ref(['年', '月'])
  429. // 筛选地区树
  430. const market = ref([])
  431. //防止重复点击状态管理
  432. const ifAddDone = ref(false)
  433. const ifReAddDone = ref(false)
  434. // 角色标识:固定为客服(删除财务、总部财务、超级管理员标识)
  435. const kefu = ref(true)
  436. const caiwu = ref(false)
  437. const HQcaiwu = ref(false)
  438. const superAdmin = ref(false)
  439. // ===================== 查询相关 =====================
  440. const searchData = ref({}) // 搜索参数
  441. const getTime = ref([]) // 时间范围
  442. const defaultTime = [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] // 默认时间
  443. // 查询按钮
  444. const search = () => {
  445. getlist()
  446. }
  447. // 重置按钮
  448. const reset = () => {
  449. searchData.value = {}
  450. getTime.value = []
  451. // 重置页码
  452. pageInfo.value.pageNum = 1
  453. getlist()
  454. }
  455. const rejectReasonVisible = ref(false)
  456. const rejectReason = ref('')
  457. const closeRejectForm = () => {
  458. rejectReasonVisible.value = false
  459. }
  460. const openRejectReason = (reason) => {
  461. rejectReason.value = reason
  462. rejectReasonVisible.value = true
  463. }
  464. // 时间选择器变更(原代码声明未实现,保留空函数避免报错)
  465. const handleDatePickerChange = () => { }
  466. // 日期禁用(原代码声明未实现,保留空函数避免报错)
  467. const disabledDate = () => { }
  468. // 表格排序(原代码声明未实现,保留空函数避免报错)
  469. const handleSortChange = () => { }
  470. // 获取表格数据(仅保留客服角色逻辑)
  471. const getlist = async () => {
  472. try {
  473. let payCurrencySelect = ''
  474. let goodsName = ''
  475. // 处理时间范围
  476. if (getTime.value && getTime.value.length === 2) {
  477. searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss')
  478. searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss')
  479. } else {
  480. searchData.value.startTime = ''
  481. searchData.value.endTime = ''
  482. }
  483. // 处理产品名称(级联选择器取最后一级)
  484. if (searchData.value.goodsName) {
  485. goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1]
  486. }
  487. // 处理付款币种
  488. if (searchData.value.paymentCurrency) {
  489. payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency)
  490. }
  491. // 客服角色固定参数:cashRoleId=0,无到账地区筛选
  492. const cashRoleId = '0'
  493. const receivedMarket = ''
  494. // 地区处理
  495. if (searchData.value.markets) {
  496. searchData.value.market = searchData.value.markets[searchData.value.markets.length - 1]
  497. } else {
  498. searchData.value.market = ''
  499. }
  500. if (searchData.value.jwcode) {
  501. const isPositiveInteger = /^[1-9]\d*$/.test(searchData.value.jwcode);
  502. if (!isPositiveInteger) {
  503. ElMessage.error('请输入正确的精网号')
  504. return;
  505. }
  506. // 添加精网号长度验证
  507. if (searchData.value.jwcode.length > 8) {
  508. ElMessage.error('精网号长度不能超过8位')
  509. return;
  510. }
  511. }
  512. // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) {
  513. // ElMessage.error('精网号只能是数字')
  514. // return
  515. // }
  516. const result = await request({
  517. url: '/cashCollection/selectCollection',
  518. data: {
  519. ...pageInfo.value,
  520. cashCollection: {
  521. ...searchData.value,
  522. ...getTime.value,
  523. submitterId: adminData.value.id,
  524. receivedMarket: MarketNameForId(receivedMarket),
  525. cashRoleId: cashRoleId,
  526. paymentCurrency: payCurrencySelect,
  527. submitterMarket: adminData.value.markets,
  528. goodsName: goodsName,
  529. market: MarketNameForId(searchData.value.market)
  530. }
  531. }
  532. })
  533. if (result.code == 200) {
  534. tableData.value = result.data.list
  535. total.value = result.data.total
  536. } else {
  537. ElMessage.error('数据异常')
  538. console.log(result.msg);
  539. }
  540. } catch (error) {
  541. console.log(error);
  542. }
  543. }
  544. // ===================== 分页相关 =====================
  545. const handlePagination = (type, val) => {
  546. if (type === 'size') {
  547. pageInfo.value.pageSize = val
  548. } else {
  549. pageInfo.value.pageNum = val
  550. }
  551. getlist()
  552. }
  553. // ===================== 客服新增/编辑收款弹窗 =====================
  554. const addFormisible = ref(false) // 弹窗显隐
  555. const addFormData = ref({ name: '', market: '', goodsName: '' }) // 表单数据
  556. const addFormRef = ref(null) // 表单引用
  557. const addOrEdit = ref(0) // 1=新增,2=编辑
  558. const isGold = ref(false) // 是否为金币充值产品
  559. const productSelectRef = ref(null) // 产品选择器引用
  560. const uploadRef = ref(null) // 上传组件引用
  561. // 产品选择变更:判断是否为金币充值
  562. const ifGold = () => {
  563. if (addFormData.value.goodsName === '金币充值') {
  564. isGold.value = true
  565. addFormData.value.goodNum = 0
  566. } else {
  567. isGold.value = false
  568. numUnitList.value = ['个', '年', '月']
  569. const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机构活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", 'HC信息费', 'HC信息费', 'AI机构探测神器', '超级机构探测神器']
  570. if (selectItems.includes(addFormData.value.goodsName)) {
  571. if (addOrEdit.value == 1) {
  572. addFormData.value.numUnit = ''
  573. }
  574. numUnitList.value = ['年', '月']
  575. } else if (addFormData.value.goodsName == '静态信息费') {
  576. addFormData.value.numUnit = '年'
  577. numUnitList.value = ['年']
  578. } else {
  579. addFormData.value.numUnit = '个'
  580. numUnitList.value = ['个']
  581. }
  582. }
  583. }
  584. // 支付方式变更:判断是否为默认归属平台
  585. const isGroup = ref(false)
  586. const ifGroup = () => {
  587. if (addFormData.value.payType === 'Stripe-链接收款' || addFormData.value.payType === 'PaymentAsia-链接收款') {
  588. isGroup.value = true
  589. addFormData.value.receivedMarket = '香港'
  590. } else if (addFormData.value.payType === 'Ipay88-链接收款') {
  591. isGroup.value = true
  592. addFormData.value.receivedMarket = '马来西亚'
  593. } else if (addFormData.value.payType === 'E-Transfer') {
  594. isGroup.value = true
  595. addFormData.value.receivedMarket = '加拿大'
  596. } else if (addFormData.value.payType === 'Grabpay' || addFormData.value.payType === 'Nets' || addFormData.value.payType === 'Paypal') {
  597. isGroup.value = true
  598. addFormData.value.receivedMarket = '新加坡'
  599. } else {
  600. isGroup.value = false
  601. }
  602. }
  603. // 精网号失焦:查询客户姓名和地区
  604. const jwcodeSeachMarket = async () => {
  605. try {
  606. const result = await request({
  607. url: '/cashCollection/getNameAndMarket',
  608. data: addFormData.value.jwcode
  609. })
  610. if (result.code == 200) {
  611. ElMessage.success('客户信息查询成功')
  612. addFormData.value.market = result.data.market
  613. addFormData.value.marketName = result.data.marketName
  614. addFormData.value.name = result.data.name
  615. } else {
  616. ElMessage.error('客户不存在')
  617. }
  618. } catch (error) {
  619. console.log(error);
  620. }
  621. }
  622. // 打开新增/编辑弹窗
  623. const openAddForm = (row) => {
  624. productSelectRef.value?.resetSelect();
  625. if (row?.jwcode) {
  626. // 编辑模式
  627. addOrEdit.value = 2
  628. addFormData.value = {
  629. ...row,
  630. }
  631. jwcodeSeachMarket()
  632. ifGold()
  633. } else {
  634. // 新增模式
  635. addOrEdit.value = 1
  636. addFormData.value = { goodsName: '' }
  637. }
  638. addFormisible.value = true
  639. }
  640. // 关闭新增/编辑弹窗
  641. const closeAddForm = () => {
  642. addFormisible.value = false
  643. addFormData.value = {}
  644. addOrEdit.value = 0
  645. isGold.value = false
  646. addFormRef.value?.resetFields();
  647. }
  648. const testGold = () => {
  649. // 转换为数字(处理字符串类型的数字)
  650. if (addFormData.value.goodsName == '金币充值') {
  651. if (addFormData.value.permanentGold == null) {
  652. addFormData.value.permanentGold = 0
  653. }
  654. if (addFormData.value.freeGold == null) {
  655. addFormData.value.freeGold = 0
  656. }
  657. const permanentGold = Number(addFormData.value.permanentGold);
  658. const freeNum = Number(addFormData.value.freeGold);
  659. // 正则:仅允许0-999999的正整数(包括0)
  660. const reg = /^[0-9]{1,6}$/;
  661. if (!reg.test(permanentGold) || permanentGold < 0) {
  662. return { valid: false, message: '请检查永久金币格式' };
  663. }
  664. if (!reg.test(freeNum) || freeNum < 0) {
  665. return { valid: false, message: '请检查免费金币格式' };
  666. }
  667. if (permanentGold == 0 && freeNum == 0) {
  668. return { valid: false, message: '永久金币或免费金币不能同为0' };
  669. }
  670. }
  671. return { valid: true };
  672. }
  673. // 客服新增收款
  674. const handleAddForm = async () => {
  675. try {
  676. await addFormRef.value.validate();
  677. if (!testGold().valid) {
  678. ElMessage.error(testGold().message);
  679. return;
  680. }
  681. //单独校验产品数量
  682. if (!isGold.value) {
  683. if (!addFormData.value.goodNum) {
  684. ElMessage.error('请输入产品数量');
  685. return;
  686. }
  687. const positiveIntReg = /^[1-9]\d*$/;
  688. if (!positiveIntReg.test(addFormData.value.goodNum)) {
  689. ElMessage.error('产品数量必须为正整数');
  690. return;
  691. }
  692. }
  693. if (addFormData.value.numUnit == '') {
  694. ElMessage.error('请选择产品数量单位');
  695. return;
  696. }
  697. // 处理时间格式
  698. if (addFormData.value.payTime) {
  699. addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss')
  700. }
  701. ifAddDone.value = true
  702. const result = await request({
  703. url: '/cashCollection/add',
  704. data: {
  705. ...addFormData.value,
  706. submitterId: adminData.value.id,
  707. permanentGold: (addFormData.value.permanentGold || 0) * 100,
  708. freeGold: (addFormData.value.freeGold || 0) * 100,
  709. goodNum: addFormData.value.goodNum || addFormData.value.permanentGold || 0,
  710. paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '',
  711. receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '',
  712. paymentAmount: (addFormData.value.paymentAmount) * 100,
  713. submitterMarket: adminData.value.markets
  714. }
  715. })
  716. if (result.code == 200) {
  717. ElMessage.success('添加成功')
  718. getlist()
  719. closeAddForm()
  720. }
  721. ifAddDone.value = false
  722. } catch (error) {
  723. console.log('新增报错:', error);
  724. ElMessage.error('请完善表单信息后提交');
  725. ifAddDone.value = false
  726. }
  727. }
  728. // 客服编辑收款(撤回后重新提交)
  729. const handleEditForm = async () => {
  730. try {
  731. await addFormRef.value.validate();
  732. if (!testGold().valid) {
  733. ElMessage.error(testGold().message);
  734. return;
  735. }
  736. if (typeof addFormData.value.activity == 'string') {
  737. console.log('转换前:', addFormData.value.activity);
  738. addFormData.value.activity = activityList.value.find(item => item.activityName === addFormData.value.activity).id
  739. }
  740. //单独校验产品数量
  741. if (!isGold.value) {
  742. if (!addFormData.value.goodNum) {
  743. ElMessage.error('请输入产品数量');
  744. return;
  745. }
  746. const positiveIntReg = /^[1-9]\d*$/;
  747. if (!positiveIntReg.test(addFormData.value.goodNum)) {
  748. ElMessage.error('产品数量必须为正整数');
  749. return;
  750. }
  751. }
  752. if (addFormData.value.numUnit == '') {
  753. ElMessage.error('请选择产品数量单位');
  754. return;
  755. }
  756. // 处理时间格式
  757. if (addFormData.value.payTime) {
  758. addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss')
  759. }
  760. ifReAddDone.value = true
  761. const result = await request({
  762. url: '/cashCollection/reSubmit',
  763. data: {
  764. ...addFormData.value,
  765. submitterId: adminData.value.id,
  766. permanentGold: (addFormData.value.permanentGold || 0) * 100,
  767. freeGold: (addFormData.value.freeGold || 0) * 100,
  768. goodNum: addFormData.value.goodNum || 0,
  769. paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '',
  770. receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '',
  771. paymentAmount: (addFormData.value.paymentAmount) * 100,
  772. }
  773. })
  774. if (result.code == 200) {
  775. ElMessage.success('编辑成功')
  776. getlist()
  777. closeAddForm()
  778. }
  779. ifReAddDone.value = false
  780. } catch (error) {
  781. console.log(error);
  782. ifReAddDone.value = false
  783. }
  784. }
  785. // 付款币种和支付方式选项(客服专用)
  786. const customOptions = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)'])
  787. const paytypeOptions = ref(["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "Grabpay", "Nets", "E-Transfer", "Paypal", "银行转账", "刷卡", "现金", "支票"])
  788. const MoneyAddressOptions = ref(['马来西亚', '香港', '新加坡', '泰国', '越南HCM', '加拿大'])
  789. const handleCurrencyChange = (option) => {
  790. console.log('选中的币种:', option);
  791. };
  792. // 图片上传相关
  793. const handleImgSuccess = (response) => {
  794. try {
  795. addFormData.value.voucher = response.data.url
  796. } catch (error) {
  797. ElMessage.error(response.msg || '图片上传失败')
  798. }
  799. }
  800. const handelImgErr = (err) => {
  801. console.log(err);
  802. addFormData.value.imageUrl = null
  803. ElMessage.error("图片上传失败")
  804. }
  805. const beforeUpload = (rawFile) => {
  806. if (rawFile.type !== 'image/jpeg' && rawFile.type !== 'image/png') {
  807. ElMessage.error('图片必须是jpg或png类型!')
  808. return false
  809. } else if (rawFile.size / 1024 / 1024 > 2) {
  810. ElMessage.error('图片大小不能超过 2MB!')
  811. return false
  812. }
  813. return true
  814. }
  815. const handleImageChange = (file) => {
  816. uploadRef.value.submit()
  817. }
  818. const customUpload = async (options) => {
  819. try {
  820. const formData = new FormData()
  821. formData.append('file', options.file)
  822. const response = await API({
  823. url: 'https://api.homilychart.com/hljw/api/aws/upload',
  824. method: 'POST',
  825. data: formData,
  826. headers: { 'Content-Type': 'multipart/form-data' }
  827. })
  828. if (response.code === 200 && response.data) {
  829. handleImgSuccess(response, options.file)
  830. ElMessage.success('上传成功')
  831. } else {
  832. options.onError(response)
  833. ElMessage.error(response.msg || '上传失败')
  834. }
  835. } catch (error) {
  836. console.error('上传错误:', error)
  837. ElMessage.error(`上传失败: ${error.msg || error.message || '网络异常'}`)
  838. }
  839. }
  840. // 图片预览
  841. const previewImage = (imageUrl) => {
  842. const imageElement = document.createElement('img');
  843. imageElement.src = imageUrl;
  844. imageElement.style.maxWidth = '80vw';
  845. imageElement.style.maxHeight = '80vh';
  846. const viewer = document.createElement('div');
  847. viewer.style.position = 'fixed';
  848. viewer.style.top = '0';
  849. viewer.style.left = '0';
  850. viewer.style.width = '100vw';
  851. viewer.style.height = '100vh';
  852. viewer.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
  853. viewer.style.display = 'flex';
  854. viewer.style.justifyContent = 'center';
  855. viewer.style.alignItems = 'center';
  856. viewer.style.zIndex = '9999';
  857. viewer.style.overflow = 'auto';
  858. viewer.appendChild(imageElement);
  859. document.body.appendChild(viewer);
  860. viewer.addEventListener('click', () => {
  861. document.body.removeChild(viewer);
  862. });
  863. };
  864. // ===================== 客服退款/撤回相关 =====================
  865. // 撤回弹窗
  866. const textContent = ref('')
  867. const recallDialog = ref(false)
  868. const RecallNum = ref('')
  869. // 退款确认弹窗
  870. const refundConfirmDialog = ref(false)
  871. const refundDialog = ref(false) // 退款详情弹窗
  872. const refundFormData = ref({}) // 退款表单数据
  873. const isRefundGold = ref(false) // 退款产品是否为金币
  874. // 判断退款产品类型
  875. const ifRefundGold = () => {
  876. if (refundFormData.value.goodsName === '金币充值') {
  877. isRefundGold.value = true
  878. refundFormData.value.goodNum = 0
  879. } else {
  880. isRefundGold.value = false
  881. }
  882. }
  883. // 打开撤回/退款确认弹窗
  884. const openConfirm = (val, row) => {
  885. if (val === 'refund') {
  886. textContent.value = '将要对该订单退款!'
  887. refundFormData.value = { ...row }
  888. ifRefundGold()
  889. refundConfirmDialog.value = true
  890. } else if (val === 'recall') {
  891. textContent.value = '将要撤回该信息!'
  892. recallDialog.value = true
  893. RecallNum.value = row.orderCode
  894. }
  895. }
  896. // 关闭撤回弹窗
  897. const closeRecall = () => {
  898. recallDialog.value = false
  899. textContent.value = ''
  900. RecallNum.value = ''
  901. }
  902. // 执行撤回
  903. const handleRecall = async () => {
  904. try {
  905. const result = await request({
  906. url: '/cashCollection/cancel',
  907. data: { orderCode: RecallNum.value }
  908. })
  909. if (result.code == 200) {
  910. ElMessage.success('撤回成功')
  911. getlist()
  912. closeRecall()
  913. }
  914. } catch (error) {
  915. console.log(error);
  916. }
  917. }
  918. // 关闭退款确认弹窗
  919. const closeConfirmRefund = () => {
  920. refundConfirmDialog.value = false
  921. textContent.value = ''
  922. }
  923. // 打开退款详情弹窗
  924. const openRefundDialog = () => {
  925. refundDialog.value = true
  926. closeConfirmRefund()
  927. }
  928. // 关闭退款详情弹窗
  929. const closeRefundForm = () => {
  930. refundDialog.value = false
  931. refundFormData.value = {}
  932. }
  933. // 提交退款
  934. const submitRefund = async () => {
  935. try {
  936. if (refundFormData.value.refundModel == 0) {
  937. refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
  938. refundFormData.value.partRefundFree = refundFormData.value.freeGold
  939. } else if (refundFormData.value.refundModel == 1) {
  940. if (refundFormData.value.partRefundGold > refundFormData.value.permanentGold || refundFormData.value.partRefundFree > refundFormData.value.freeGold) {
  941. ElMessage.error('退款金额不能大于订单金额')
  942. return
  943. }
  944. }
  945. // 添加精网号验证
  946. if (refundFormData.value.jwcode) {
  947. const isPositiveInteger = /^[1-9]\d*$/.test(refundFormData.value.jwcode);
  948. if (!isPositiveInteger) {
  949. ElMessage.error('请输入正确的精网号')
  950. return;
  951. }
  952. if (refundFormData.value.jwcode.length > 8) {
  953. ElMessage.error('精网号长度不能超过8位')
  954. return;
  955. }
  956. }
  957. const result = await request({
  958. url: '/Money/add',
  959. data: {
  960. jwcode: refundFormData.value.jwcode,
  961. name: refundFormData.value.name,
  962. market: refundFormData.value.marketName,
  963. submitterId: adminData.value.id,
  964. submitterMarket: adminData.value.markets,
  965. remark: refundFormData.value.remark,
  966. refundReason: refundFormData.value.refundReason,
  967. refundModel: refundFormData.value.refundModel,
  968. originalOrderId: refundFormData.value.id,
  969. orderCode: refundFormData.value.orderCode,
  970. permanentGold: (refundFormData.value.permanentGold) * 100 || 0,
  971. freeGold: (refundFormData.value.freeGold) * 100 || 0,
  972. partRefundGold: (refundFormData.value.partRefundGold) * 100 || 0,
  973. partRefundFree: (refundFormData.value.partRefundFree) * 100 || 0,
  974. handlingCharge: (refundFormData.value.handlingCharge) * 100 || 0,
  975. }
  976. })
  977. if (result.code == 200) {
  978. ElMessage.success('新增退款成功')
  979. getlist()
  980. closeRefundForm()
  981. } else {
  982. ElMessage.error(result.msg)
  983. }
  984. } catch (error) {
  985. console.log(error);
  986. }
  987. }
  988. // ===================== 初始化与节流 =====================
  989. // 节流处理(防止重复提交)
  990. const throttledhandleAddForm = _.throttle(handleAddForm, 5000, { trailing: false })
  991. const throttledhandleEditForm = _.throttle(handleEditForm, 5000, { trailing: false })
  992. const throttledsubmitRefund = _.throttle(submitRefund, 5000, { trailing: false })
  993. // 活动列表(客服需要)
  994. const activityList = ref([])
  995. const getActivitys = async () => {
  996. try {
  997. const result = await API({ url: '/cashCollection/getActivityList', data: {} })
  998. if (result.code == 200) {
  999. activityList.value = result.data
  1000. } else {
  1001. ElMessage.error('活动列表获取失败')
  1002. }
  1003. } catch (error) {
  1004. console.log('活动列表请求失败', error)
  1005. }
  1006. }
  1007. // 获取管理员信息
  1008. const getAdminData = async () => {
  1009. try {
  1010. const result = await API({ url: '/admin/userinfo', data: {} })
  1011. adminData.value = result
  1012. } catch (error) {
  1013. console.log('管理员信息请求失败', error)
  1014. }
  1015. }
  1016. // 支付方式列表(表格筛选用)
  1017. const paytypeList = ["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"]
  1018. const getMarket = async function () {
  1019. try {
  1020. const result = await API({
  1021. url: '/market/selectMarket',
  1022. })
  1023. console.log('看看地区树', result)
  1024. const transformTree = (nodes) => {
  1025. const allChildren = nodes.flatMap(node => node.children || []);
  1026. return allChildren.map(child => {
  1027. const grandchildren = child.children && child.children.length
  1028. ? transformTree([child])
  1029. : null;
  1030. return {
  1031. value: child.id,
  1032. label: child.name,
  1033. children: grandchildren
  1034. };
  1035. });
  1036. };
  1037. market.value = transformTree(result.data)
  1038. console.log('转换后的地区树==============', market.value)
  1039. } catch (error) {
  1040. console.log('请求失败', error)
  1041. }
  1042. }
  1043. // 初始化
  1044. onMounted(async () => {
  1045. await getAdminData()
  1046. await getActivitys()
  1047. // 客服角色默认加载列表
  1048. getlist()
  1049. await getMarket()
  1050. })
  1051. </script>
  1052. <style scoped lang="scss">
  1053. .content {
  1054. height: 100%;
  1055. width: 80vw;
  1056. .card1 {
  1057. width: 100%;
  1058. background: #F3FAFE;
  1059. .row {
  1060. height: 4vh;
  1061. width: 80vw;
  1062. display: flex;
  1063. min-height: 40px;
  1064. .rowItem {
  1065. display: flex;
  1066. width: 15vw;
  1067. align-items: center;
  1068. justify-content: center;
  1069. margin-right: 0.5vw;
  1070. }
  1071. .buttons {
  1072. display: flex;
  1073. justify-content: center;
  1074. align-items: center;
  1075. margin-left: 10px;
  1076. }
  1077. }
  1078. }
  1079. .div-card2 {
  1080. width: 100%;
  1081. margin-top: 2vh;
  1082. .btns {
  1083. display: flex;
  1084. align-items: center;
  1085. justify-content: space-between;
  1086. padding-bottom: 10px;
  1087. .btnAdd {
  1088. padding-left: 10px;
  1089. }
  1090. .info-tooltip {
  1091. display: flex;
  1092. align-items: center;
  1093. }
  1094. .service-icon {
  1095. color: #666;
  1096. cursor: pointer;
  1097. font-size: 18px;
  1098. transition: all 0.3s ease;
  1099. padding: 4px;
  1100. border-radius: 50%;
  1101. }
  1102. }
  1103. .table {
  1104. margin: 10px;
  1105. border-radius: 20px;
  1106. .ellipsis-container {
  1107. position: relative;
  1108. width: 100%;
  1109. .ellipsis-text {
  1110. display: inline-block;
  1111. width: 100%;
  1112. white-space: nowrap;
  1113. overflow: hidden;
  1114. text-overflow: ellipsis;
  1115. cursor: pointer;
  1116. }
  1117. .custom-tooltip {
  1118. position: fixed;
  1119. z-index: 9999;
  1120. padding: 8px 12px;
  1121. width: 200px;
  1122. background-color: #E4F0FC;
  1123. color: #333333;
  1124. border: 1px solid #e5e7eb;
  1125. border-radius: 4px;
  1126. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  1127. min-height: 30px;
  1128. max-height: 300px;
  1129. overflow-y: auto;
  1130. font-size: 14px;
  1131. line-height: 1.5;
  1132. }
  1133. }
  1134. }
  1135. .pagination {
  1136. margin-top: 10px;
  1137. padding: 10px 10px;
  1138. }
  1139. }
  1140. .recallDialog {
  1141. height: 392px;
  1142. width: 700px;
  1143. background-image: url('/src/assets/receive-recall.png');
  1144. position: fixed;
  1145. top: 50%;
  1146. left: 50%;
  1147. transform: translate(-50%, -50%);
  1148. z-index: 1000;
  1149. .close,
  1150. .cancle,
  1151. .confirm {
  1152. opacity: 0;
  1153. .Btn {
  1154. height: 100%;
  1155. width: 100%;
  1156. border-radius: 10px;
  1157. }
  1158. }
  1159. .close {
  1160. position: absolute;
  1161. left: 625px;
  1162. top: 20px;
  1163. height: 38px;
  1164. width: 38px;
  1165. }
  1166. .text {
  1167. position: absolute;
  1168. left: 185px;
  1169. top: 190px;
  1170. height: 67px;
  1171. width: 500px;
  1172. .txt {
  1173. height: 100%;
  1174. width: 100%;
  1175. color: #001a42;
  1176. font-family: "PingFang SC";
  1177. font-size: 48px;
  1178. font-style: normal;
  1179. font-weight: 900;
  1180. line-height: normal;
  1181. }
  1182. }
  1183. .cancle {
  1184. position: absolute;
  1185. left: 185px;
  1186. top: 304px;
  1187. height: 55px;
  1188. width: 150px;
  1189. }
  1190. .confirm {
  1191. position: absolute;
  1192. left: 375px;
  1193. top: 304px;
  1194. height: 55px;
  1195. width: 150px;
  1196. }
  1197. }
  1198. :deep(.adddialog) {
  1199. min-width: 500px;
  1200. background-color: #F3FAFE !important;
  1201. margin-top: 8vh;
  1202. border-radius: 8px;
  1203. .addForm {
  1204. padding: 0 60px 1vh 60px;
  1205. .el-date-editor {
  1206. display: flex;
  1207. flex: 1;
  1208. }
  1209. .pic {
  1210. display: flex;
  1211. align-items: center;
  1212. .uploader {
  1213. height: 80px;
  1214. width: 80px;
  1215. .el-upload {
  1216. height: 100%;
  1217. width: 100%;
  1218. }
  1219. }
  1220. .picText {
  1221. color: #999999;
  1222. font-family: "PingFang SC";
  1223. font-size: 10px;
  1224. font-style: normal;
  1225. font-weight: 400;
  1226. line-height: 20px;
  1227. margin-left: 10px;
  1228. }
  1229. }
  1230. }
  1231. .dialog-footer {
  1232. display: flex;
  1233. justify-content: center;
  1234. padding-bottom: 1.5vh;
  1235. }
  1236. }
  1237. .refundDialog {
  1238. .left {
  1239. width: 50%;
  1240. height: 70vh;
  1241. min-height: 700px;
  1242. padding: 0 2vw;
  1243. .add-item {
  1244. display: flex;
  1245. align-items: center;
  1246. margin-bottom: 1vh;
  1247. }
  1248. .image {
  1249. width: 4vw !important;
  1250. height: 4vw !important;
  1251. }
  1252. }
  1253. .right {
  1254. width: 50%;
  1255. height: 50vh;
  1256. .add-item {
  1257. display: flex;
  1258. align-items: center;
  1259. margin-bottom: 1vh;
  1260. }
  1261. }
  1262. }
  1263. :deep(.adddialog .el-form-item__label) {
  1264. min-width: 80px;
  1265. width: auto;
  1266. font-weight: 800;
  1267. padding-bottom: 15px;
  1268. }
  1269. }
  1270. // 表单卡片样式
  1271. .card2 {
  1272. background: #E7F4FD;
  1273. }
  1274. // 表格样式
  1275. :deep(.el-table__header-wrapper),
  1276. :deep(.el-table__body-wrapper),
  1277. :deep(.el-table__cell),
  1278. :deep(.el-table__body td) {
  1279. background-color: #F3FAFE !important;
  1280. }
  1281. :deep(.el-table__header th) {
  1282. background-color: #F3FAFE !important;
  1283. }
  1284. :deep(.el-table__row:hover > .el-table__cell) {
  1285. background-color: #E5EBFE !important;
  1286. }
  1287. .reject-reason-box {
  1288. width: 80%;
  1289. padding: 20px;
  1290. }
  1291. .rejectBtn {
  1292. margin-top: 20px;
  1293. display: flex;
  1294. justify-content: flex-end;
  1295. }
  1296. </style>