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.

1365 lines
55 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
3 weeks ago
2 weeks ago
1 week ago
1 week 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. // 导入客服相关规则和静态数据
  418. import { addFormRule } from './utils/recriveFormRules.js'
  419. import { productList, MarketNameForId, CurrencyForId, marketList, statusList } from './utils/staticData.js'
  420. // ===================== 基础状态管理(仅保留客服相关) =====================
  421. const adminStore = useAdminStore();
  422. const { menuTree } = storeToRefs(adminStore);
  423. const adminData = ref({}) // 管理员信息
  424. const tableData = ref([]) // 表格数据
  425. const total = ref(0) // 总条数
  426. const pageInfo = ref({ pageSize: 10, pageNum: 1 }) // 分页信息
  427. const numUnitList = ref(['年', '月'])
  428. // 筛选地区树
  429. const market = ref([])
  430. //防止重复点击状态管理
  431. const ifAddDone = ref(false)
  432. const ifReAddDone = ref(false)
  433. // 角色标识:固定为客服(删除财务、总部财务、超级管理员标识)
  434. const kefu = ref(true)
  435. const caiwu = ref(false)
  436. const HQcaiwu = ref(false)
  437. const superAdmin = ref(false)
  438. // ===================== 查询相关 =====================
  439. const searchData = ref({}) // 搜索参数
  440. const getTime = ref([]) // 时间范围
  441. const defaultTime = [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)] // 默认时间
  442. // 查询按钮
  443. const search = () => {
  444. getlist()
  445. ElMessage.success('查询成功')
  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. const result = await request({
  501. url: '/cashCollection/selectCollection',
  502. data: {
  503. ...pageInfo.value,
  504. cashCollection: {
  505. ...searchData.value,
  506. ...getTime.value,
  507. submitterId: adminData.value.id,
  508. receivedMarket: MarketNameForId(receivedMarket),
  509. cashRoleId: cashRoleId,
  510. paymentCurrency: payCurrencySelect,
  511. submitterMarket: adminData.value.markets,
  512. goodsName: goodsName,
  513. market: MarketNameForId(searchData.value.market)
  514. }
  515. }
  516. })
  517. if (result.code == 200) {
  518. tableData.value = result.data.list
  519. total.value = result.data.total
  520. } else {
  521. ElMessage.error('数据异常')
  522. console.log(result.msg);
  523. }
  524. } catch (error) {
  525. console.log(error);
  526. }
  527. }
  528. // ===================== 分页相关 =====================
  529. const handlePagination = (type, val) => {
  530. if (type === 'size') {
  531. pageInfo.value.pageSize = val
  532. } else {
  533. pageInfo.value.pageNum = val
  534. }
  535. getlist()
  536. }
  537. // ===================== 客服新增/编辑收款弹窗 =====================
  538. const addFormisible = ref(false) // 弹窗显隐
  539. const addFormData = ref({ name: '', market: '', goodsName: '' }) // 表单数据
  540. const addFormRef = ref(null) // 表单引用
  541. const addOrEdit = ref(0) // 1=新增,2=编辑
  542. const isGold = ref(false) // 是否为金币充值产品
  543. const productSelectRef = ref(null) // 产品选择器引用
  544. const uploadRef = ref(null) // 上传组件引用
  545. // 产品选择变更:判断是否为金币充值
  546. const ifGold = () => {
  547. if (addFormData.value.goodsName === '金币充值') {
  548. isGold.value = true
  549. addFormData.value.goodNum = 0
  550. } else {
  551. isGold.value = false
  552. numUnitList.value = ['个', '年', '月']
  553. const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机构活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", 'HC信息费', 'HC信息费', 'AI机构探测神器', '超级机构探测神器']
  554. if (selectItems.includes(addFormData.value.goodsName)) {
  555. if (addOrEdit.value == 1) {
  556. addFormData.value.numUnit = ''
  557. }
  558. numUnitList.value = ['年', '月']
  559. } else if (addFormData.value.goodsName == '静态信息费') {
  560. addFormData.value.numUnit = '年'
  561. numUnitList.value = ['年']
  562. } else {
  563. addFormData.value.numUnit = '个'
  564. numUnitList.value = ['个']
  565. }
  566. }
  567. }
  568. // 支付方式变更:判断是否为默认归属平台
  569. const isGroup = ref(false)
  570. const ifGroup = () => {
  571. if (addFormData.value.payType === 'Stripe-链接收款' || addFormData.value.payType === 'PaymentAsia-链接收款') {
  572. isGroup.value = true
  573. addFormData.value.receivedMarket = '香港'
  574. } else if (addFormData.value.payType === 'Ipay88-链接收款') {
  575. isGroup.value = true
  576. addFormData.value.receivedMarket = '马来西亚'
  577. } else if (addFormData.value.payType === 'E-Transfer') {
  578. isGroup.value = true
  579. addFormData.value.receivedMarket = '加拿大'
  580. } else if (addFormData.value.payType === 'Grabpay' || addFormData.value.payType === 'Nets' || addFormData.value.payType === 'Paypal') {
  581. isGroup.value = true
  582. addFormData.value.receivedMarket = '新加坡'
  583. } else {
  584. isGroup.value = false
  585. }
  586. }
  587. // 精网号失焦:查询客户姓名和地区
  588. const jwcodeSeachMarket = async () => {
  589. try {
  590. const result = await request({
  591. url: '/cashCollection/getNameAndMarket',
  592. data: addFormData.value.jwcode
  593. })
  594. if (result.code == 200) {
  595. ElMessage.success('客户信息查询成功')
  596. addFormData.value.market = result.data.market
  597. addFormData.value.marketName = result.data.marketName
  598. addFormData.value.name = result.data.name
  599. } else {
  600. ElMessage.error('客户不存在')
  601. }
  602. } catch (error) {
  603. console.log(error);
  604. }
  605. }
  606. // 打开新增/编辑弹窗
  607. const openAddForm = (row) => {
  608. productSelectRef.value?.resetSelect();
  609. if (row?.jwcode) {
  610. // 编辑模式
  611. addOrEdit.value = 2
  612. addFormData.value = {
  613. ...row,
  614. }
  615. jwcodeSeachMarket()
  616. ifGold()
  617. } else {
  618. // 新增模式
  619. addOrEdit.value = 1
  620. addFormData.value = { goodsName: '' }
  621. }
  622. addFormisible.value = true
  623. }
  624. // 关闭新增/编辑弹窗
  625. const closeAddForm = () => {
  626. addFormisible.value = false
  627. addFormData.value = {}
  628. addOrEdit.value = 0
  629. isGold.value = false
  630. addFormRef.value?.resetFields();
  631. }
  632. const testGold = () => {
  633. // 转换为数字(处理字符串类型的数字)
  634. if (addFormData.value.goodsName == '金币充值') {
  635. if (addFormData.value.permanentGold == null) {
  636. addFormData.value.permanentGold = 0
  637. }
  638. if (addFormData.value.freeGold == null) {
  639. addFormData.value.freeGold = 0
  640. }
  641. const permanentGold = Number(addFormData.value.permanentGold);
  642. const freeNum = Number(addFormData.value.freeGold);
  643. // 正则:仅允许0-999999的正整数(包括0)
  644. const reg = /^[0-9]{1,6}$/;
  645. if (!reg.test(permanentGold) || permanentGold < 0) {
  646. return { valid: false, message: '请检查永久金币格式' };
  647. }
  648. if (!reg.test(freeNum) || freeNum < 0) {
  649. return { valid: false, message: '请检查免费金币格式' };
  650. }
  651. if (permanentGold == 0 && freeNum == 0) {
  652. return { valid: false, message: '永久金币或免费金币不能同为0' };
  653. }
  654. }
  655. return { valid: true };
  656. }
  657. // 客服新增收款
  658. const handleAddForm = async () => {
  659. try {
  660. await addFormRef.value.validate();
  661. if (!testGold().valid) {
  662. ElMessage.error(testGold().message);
  663. return;
  664. }
  665. //单独校验产品数量
  666. if (!isGold.value) {
  667. if (!addFormData.value.goodNum) {
  668. ElMessage.error('请输入产品数量');
  669. return;
  670. }
  671. const positiveIntReg = /^[1-9]\d*$/;
  672. if (!positiveIntReg.test(addFormData.value.goodNum)) {
  673. ElMessage.error('产品数量必须为正整数');
  674. return;
  675. }
  676. }
  677. if (addFormData.value.numUnit == '') {
  678. ElMessage.error('请选择产品数量单位');
  679. return;
  680. }
  681. // 处理时间格式
  682. if (addFormData.value.payTime) {
  683. addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss')
  684. }
  685. ifAddDone.value = true
  686. const result = await request({
  687. url: '/cashCollection/add',
  688. data: {
  689. ...addFormData.value,
  690. submitterId: adminData.value.id,
  691. permanentGold: (addFormData.value.permanentGold || 0) * 100,
  692. freeGold: (addFormData.value.freeGold || 0) * 100,
  693. goodNum: addFormData.value.goodNum || addFormData.value.permanentGold || 0,
  694. paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '',
  695. receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '',
  696. paymentAmount: (addFormData.value.paymentAmount) * 100,
  697. submitterMarket: adminData.value.markets
  698. }
  699. })
  700. if (result.code == 200) {
  701. ElMessage.success('添加成功')
  702. getlist()
  703. closeAddForm()
  704. }
  705. ifAddDone.value = false
  706. } catch (error) {
  707. console.log('新增报错:', error);
  708. ElMessage.error('请完善表单信息后提交');
  709. ifAddDone.value = false
  710. }
  711. }
  712. // 客服编辑收款(撤回后重新提交)
  713. const handleEditForm = async () => {
  714. try {
  715. await addFormRef.value.validate();
  716. if (!testGold().valid) {
  717. ElMessage.error(testGold().message);
  718. return;
  719. }
  720. if (typeof addFormData.value.activity == 'string') {
  721. console.log('转换前:', addFormData.value.activity);
  722. addFormData.value.activity = activityList.value.find(item => item.activityName === addFormData.value.activity).id
  723. }
  724. //单独校验产品数量
  725. if (!isGold.value) {
  726. if (!addFormData.value.goodNum) {
  727. ElMessage.error('请输入产品数量');
  728. return;
  729. }
  730. const positiveIntReg = /^[1-9]\d*$/;
  731. if (!positiveIntReg.test(addFormData.value.goodNum)) {
  732. ElMessage.error('产品数量必须为正整数');
  733. return;
  734. }
  735. }
  736. if (addFormData.value.numUnit == '') {
  737. ElMessage.error('请选择产品数量单位');
  738. return;
  739. }
  740. // 处理时间格式
  741. if (addFormData.value.payTime) {
  742. addFormData.value.payTime = moment(addFormData.value.payTime).format('YYYY-MM-DD HH:mm:ss')
  743. }
  744. ifReAddDone.value = true
  745. const result = await request({
  746. url: '/cashCollection/reSubmit',
  747. data: {
  748. ...addFormData.value,
  749. submitterId: adminData.value.id,
  750. permanentGold: (addFormData.value.permanentGold || 0) * 100,
  751. freeGold: (addFormData.value.freeGold || 0) * 100,
  752. goodNum: addFormData.value.goodNum || 0,
  753. paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '',
  754. receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '',
  755. paymentAmount: (addFormData.value.paymentAmount) * 100,
  756. }
  757. })
  758. if (result.code == 200) {
  759. ElMessage.success('编辑成功')
  760. getlist()
  761. closeAddForm()
  762. }
  763. ifReAddDone.value = false
  764. } catch (error) {
  765. console.log(error);
  766. ifReAddDone.value = false
  767. }
  768. }
  769. // 付款币种和支付方式选项(客服专用)
  770. const customOptions = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)'])
  771. const paytypeOptions = ref(["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "Grabpay", "Nets", "E-Transfer", "Paypal", "银行转账", "刷卡", "现金", "支票"])
  772. const MoneyAddressOptions = ref(['马来西亚', '香港', '新加坡', '泰国', '越南HCM', '加拿大'])
  773. const handleCurrencyChange = (option) => {
  774. console.log('选中的币种:', option);
  775. };
  776. // 图片上传相关
  777. const handleImgSuccess = (response) => {
  778. try {
  779. addFormData.value.voucher = response.data.url
  780. } catch (error) {
  781. ElMessage.error(response.msg || '图片上传失败')
  782. }
  783. }
  784. const handelImgErr = (err) => {
  785. console.log(err);
  786. addFormData.value.imageUrl = null
  787. ElMessage.error("图片上传失败")
  788. }
  789. const beforeUpload = (rawFile) => {
  790. if (rawFile.type !== 'image/jpeg' && rawFile.type !== 'image/png') {
  791. ElMessage.error('图片必须是jpg或png类型!')
  792. return false
  793. } else if (rawFile.size / 1024 / 1024 > 2) {
  794. ElMessage.error('图片大小不能超过 2MB!')
  795. return false
  796. }
  797. return true
  798. }
  799. const handleImageChange = (file) => {
  800. uploadRef.value.submit()
  801. }
  802. const customUpload = async (options) => {
  803. try {
  804. const formData = new FormData()
  805. formData.append('file', options.file)
  806. const response = await API({
  807. url: 'https://api.homilychart.com/hljw/api/aws/upload',
  808. method: 'POST',
  809. data: formData,
  810. headers: { 'Content-Type': 'multipart/form-data' }
  811. })
  812. if (response.code === 200 && response.data) {
  813. handleImgSuccess(response, options.file)
  814. ElMessage.success('上传成功')
  815. } else {
  816. options.onError(response)
  817. ElMessage.error(response.msg || '上传失败')
  818. }
  819. } catch (error) {
  820. console.error('上传错误:', error)
  821. ElMessage.error(`上传失败: ${error.msg || error.message || '网络异常'}`)
  822. }
  823. }
  824. // 图片预览
  825. const previewImage = (imageUrl) => {
  826. const imageElement = document.createElement('img');
  827. imageElement.src = imageUrl;
  828. imageElement.style.maxWidth = '80vw';
  829. imageElement.style.maxHeight = '80vh';
  830. const viewer = document.createElement('div');
  831. viewer.style.position = 'fixed';
  832. viewer.style.top = '0';
  833. viewer.style.left = '0';
  834. viewer.style.width = '100vw';
  835. viewer.style.height = '100vh';
  836. viewer.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
  837. viewer.style.display = 'flex';
  838. viewer.style.justifyContent = 'center';
  839. viewer.style.alignItems = 'center';
  840. viewer.style.zIndex = '9999';
  841. viewer.style.overflow = 'auto';
  842. viewer.appendChild(imageElement);
  843. document.body.appendChild(viewer);
  844. viewer.addEventListener('click', () => {
  845. document.body.removeChild(viewer);
  846. });
  847. };
  848. // ===================== 客服退款/撤回相关 =====================
  849. // 撤回弹窗
  850. const textContent = ref('')
  851. const recallDialog = ref(false)
  852. const RecallNum = ref('')
  853. // 退款确认弹窗
  854. const refundConfirmDialog = ref(false)
  855. const refundDialog = ref(false) // 退款详情弹窗
  856. const refundFormData = ref({}) // 退款表单数据
  857. const isRefundGold = ref(false) // 退款产品是否为金币
  858. // 判断退款产品类型
  859. const ifRefundGold = () => {
  860. if (refundFormData.value.goodsName === '金币充值') {
  861. isRefundGold.value = true
  862. refundFormData.value.goodNum = 0
  863. } else {
  864. isRefundGold.value = false
  865. }
  866. }
  867. // 打开撤回/退款确认弹窗
  868. const openConfirm = (val, row) => {
  869. if (val === 'refund') {
  870. textContent.value = '将要对该订单退款!'
  871. refundFormData.value = { ...row }
  872. ifRefundGold()
  873. refundConfirmDialog.value = true
  874. } else if (val === 'recall') {
  875. textContent.value = '将要撤回该信息!'
  876. recallDialog.value = true
  877. RecallNum.value = row.orderCode
  878. }
  879. }
  880. // 关闭撤回弹窗
  881. const closeRecall = () => {
  882. recallDialog.value = false
  883. textContent.value = ''
  884. RecallNum.value = ''
  885. }
  886. // 执行撤回
  887. const handleRecall = async () => {
  888. try {
  889. const result = await request({
  890. url: '/cashCollection/cancel',
  891. data: { orderCode: RecallNum.value }
  892. })
  893. if (result.code == 200) {
  894. ElMessage.success('撤回成功')
  895. getlist()
  896. closeRecall()
  897. }
  898. } catch (error) {
  899. console.log(error);
  900. }
  901. }
  902. // 关闭退款确认弹窗
  903. const closeConfirmRefund = () => {
  904. refundConfirmDialog.value = false
  905. textContent.value = ''
  906. }
  907. // 打开退款详情弹窗
  908. const openRefundDialog = () => {
  909. refundDialog.value = true
  910. closeConfirmRefund()
  911. }
  912. // 关闭退款详情弹窗
  913. const closeRefundForm = () => {
  914. refundDialog.value = false
  915. refundFormData.value = {}
  916. }
  917. // 提交退款
  918. const submitRefund = async () => {
  919. try {
  920. if (refundFormData.value.refundModel == 0) {
  921. refundFormData.value.partRefundGold = refundFormData.value.permanentGold,
  922. refundFormData.value.partRefundFree = refundFormData.value.freeGold
  923. } else if (refundFormData.value.refundModel == 1) {
  924. if (refundFormData.value.partRefundGold > refundFormData.value.permanentGold || refundFormData.value.partRefundFree > refundFormData.value.freeGold) {
  925. ElMessage.error('退款金额不能大于订单金额')
  926. return
  927. }
  928. }
  929. const result = await request({
  930. url: '/Money/add',
  931. data: {
  932. jwcode: refundFormData.value.jwcode,
  933. name: refundFormData.value.name,
  934. market: refundFormData.value.marketName,
  935. submitterId: adminData.value.id,
  936. submitterMarket: adminData.value.markets,
  937. remark: refundFormData.value.remark,
  938. refundReason: refundFormData.value.refundReason,
  939. refundModel: refundFormData.value.refundModel,
  940. originalOrderId: refundFormData.value.id,
  941. orderCode: refundFormData.value.orderCode,
  942. permanentGold: (refundFormData.value.permanentGold) * 100 || 0,
  943. freeGold: (refundFormData.value.freeGold) * 100 || 0,
  944. partRefundGold: (refundFormData.value.partRefundGold) * 100 || 0,
  945. partRefundFree: (refundFormData.value.partRefundFree) * 100 || 0,
  946. handlingCharge: (refundFormData.value.handlingCharge) * 100 || 0,
  947. }
  948. })
  949. if (result.code == 200) {
  950. ElMessage.success('新增退款成功')
  951. getlist()
  952. closeRefundForm()
  953. } else {
  954. ElMessage.error(result.msg)
  955. }
  956. } catch (error) {
  957. console.log(error);
  958. }
  959. }
  960. // ===================== 初始化与节流 =====================
  961. // 节流处理(防止重复提交)
  962. const throttledhandleAddForm = _.throttle(handleAddForm, 5000, { trailing: false })
  963. const throttledhandleEditForm = _.throttle(handleEditForm, 5000, { trailing: false })
  964. const throttledsubmitRefund = _.throttle(submitRefund, 5000, { trailing: false })
  965. // 活动列表(客服需要)
  966. const activityList = ref([])
  967. const getActivitys = async () => {
  968. try {
  969. const result = await API({ url: '/cashCollection/getActivityList', data: {} })
  970. if (result.code == 200) {
  971. activityList.value = result.data
  972. } else {
  973. ElMessage.error('活动列表获取失败')
  974. }
  975. } catch (error) {
  976. console.log('活动列表请求失败', error)
  977. }
  978. }
  979. // 获取管理员信息
  980. const getAdminData = async () => {
  981. try {
  982. const result = await API({ url: '/admin/userinfo', data: {} })
  983. adminData.value = result
  984. } catch (error) {
  985. console.log('管理员信息请求失败', error)
  986. }
  987. }
  988. // 支付方式列表(表格筛选用)
  989. const paytypeList = ["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"]
  990. const getMarket = async function () {
  991. try {
  992. const result = await API({
  993. url: '/market/selectMarket',
  994. })
  995. console.log('看看地区树', result)
  996. const transformTree = (nodes) => {
  997. const allChildren = nodes.flatMap(node => node.children || []);
  998. return allChildren.map(child => {
  999. const grandchildren = child.children && child.children.length
  1000. ? transformTree([child])
  1001. : null;
  1002. return {
  1003. value: child.id,
  1004. label: child.name,
  1005. children: grandchildren
  1006. };
  1007. });
  1008. };
  1009. market.value = transformTree(result.data)
  1010. console.log('转换后的地区树==============', market.value)
  1011. } catch (error) {
  1012. console.log('请求失败', error)
  1013. }
  1014. }
  1015. // 初始化
  1016. onMounted(async () => {
  1017. await getAdminData()
  1018. await getActivitys()
  1019. // 客服角色默认加载列表
  1020. getlist()
  1021. await getMarket()
  1022. })
  1023. </script>
  1024. <style scoped lang="scss">
  1025. .content {
  1026. height: 100%;
  1027. width: 80vw;
  1028. .card1 {
  1029. width: 100%;
  1030. background: #F3FAFE;
  1031. .row {
  1032. height: 4vh;
  1033. width: 80vw;
  1034. display: flex;
  1035. min-height: 40px;
  1036. .rowItem {
  1037. display: flex;
  1038. width: 15vw;
  1039. align-items: center;
  1040. justify-content: center;
  1041. margin-right: 0.5vw;
  1042. }
  1043. .buttons {
  1044. display: flex;
  1045. justify-content: center;
  1046. align-items: center;
  1047. margin-left: 10px;
  1048. }
  1049. }
  1050. }
  1051. .div-card2 {
  1052. width: 100%;
  1053. margin-top: 2vh;
  1054. .btns {
  1055. display: flex;
  1056. align-items: center;
  1057. justify-content: space-between;
  1058. padding-bottom: 10px;
  1059. .btnAdd {
  1060. padding-left: 10px;
  1061. }
  1062. .info-tooltip {
  1063. display: flex;
  1064. align-items: center;
  1065. }
  1066. .service-icon {
  1067. color: #666;
  1068. cursor: pointer;
  1069. font-size: 18px;
  1070. transition: all 0.3s ease;
  1071. padding: 4px;
  1072. border-radius: 50%;
  1073. }
  1074. }
  1075. .table {
  1076. margin: 10px;
  1077. border-radius: 20px;
  1078. .ellipsis-container {
  1079. position: relative;
  1080. width: 100%;
  1081. .ellipsis-text {
  1082. display: inline-block;
  1083. width: 100%;
  1084. white-space: nowrap;
  1085. overflow: hidden;
  1086. text-overflow: ellipsis;
  1087. cursor: pointer;
  1088. }
  1089. .custom-tooltip {
  1090. position: fixed;
  1091. z-index: 9999;
  1092. padding: 8px 12px;
  1093. width: 200px;
  1094. background-color: #E4F0FC;
  1095. color: #333333;
  1096. border: 1px solid #e5e7eb;
  1097. border-radius: 4px;
  1098. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  1099. min-height: 30px;
  1100. max-height: 300px;
  1101. overflow-y: auto;
  1102. font-size: 14px;
  1103. line-height: 1.5;
  1104. }
  1105. }
  1106. }
  1107. .pagination {
  1108. margin-top: 10px;
  1109. padding: 10px 10px;
  1110. }
  1111. }
  1112. .recallDialog {
  1113. height: 392px;
  1114. width: 700px;
  1115. background-image: url('/src/assets/receive-recall.png');
  1116. position: fixed;
  1117. top: 50%;
  1118. left: 50%;
  1119. transform: translate(-50%, -50%);
  1120. z-index: 1000;
  1121. .close,
  1122. .cancle,
  1123. .confirm {
  1124. opacity: 0;
  1125. .Btn {
  1126. height: 100%;
  1127. width: 100%;
  1128. border-radius: 10px;
  1129. }
  1130. }
  1131. .close {
  1132. position: absolute;
  1133. left: 625px;
  1134. top: 20px;
  1135. height: 38px;
  1136. width: 38px;
  1137. }
  1138. .text {
  1139. position: absolute;
  1140. left: 185px;
  1141. top: 190px;
  1142. height: 67px;
  1143. width: 500px;
  1144. .txt {
  1145. height: 100%;
  1146. width: 100%;
  1147. color: #001a42;
  1148. font-family: "PingFang SC";
  1149. font-size: 48px;
  1150. font-style: normal;
  1151. font-weight: 900;
  1152. line-height: normal;
  1153. }
  1154. }
  1155. .cancle {
  1156. position: absolute;
  1157. left: 185px;
  1158. top: 304px;
  1159. height: 55px;
  1160. width: 150px;
  1161. }
  1162. .confirm {
  1163. position: absolute;
  1164. left: 375px;
  1165. top: 304px;
  1166. height: 55px;
  1167. width: 150px;
  1168. }
  1169. }
  1170. :deep(.adddialog) {
  1171. min-width: 500px;
  1172. background-color: #F3FAFE !important;
  1173. margin-top: 8vh;
  1174. border-radius: 8px;
  1175. .addForm {
  1176. padding: 0 60px 1vh 60px;
  1177. .el-date-editor {
  1178. display: flex;
  1179. flex: 1;
  1180. }
  1181. .pic {
  1182. display: flex;
  1183. align-items: center;
  1184. .uploader {
  1185. height: 80px;
  1186. width: 80px;
  1187. .el-upload {
  1188. height: 100%;
  1189. width: 100%;
  1190. }
  1191. }
  1192. .picText {
  1193. color: #999999;
  1194. font-family: "PingFang SC";
  1195. font-size: 10px;
  1196. font-style: normal;
  1197. font-weight: 400;
  1198. line-height: 20px;
  1199. margin-left: 10px;
  1200. }
  1201. }
  1202. }
  1203. .dialog-footer {
  1204. display: flex;
  1205. justify-content: center;
  1206. padding-bottom: 1.5vh;
  1207. }
  1208. }
  1209. .refundDialog {
  1210. .left {
  1211. width: 50%;
  1212. height: 70vh;
  1213. min-height: 700px;
  1214. padding: 0 2vw;
  1215. .add-item {
  1216. display: flex;
  1217. align-items: center;
  1218. margin-bottom: 1vh;
  1219. }
  1220. .image {
  1221. width: 4vw !important;
  1222. height: 4vw !important;
  1223. }
  1224. }
  1225. .right {
  1226. width: 50%;
  1227. height: 50vh;
  1228. .add-item {
  1229. display: flex;
  1230. align-items: center;
  1231. margin-bottom: 1vh;
  1232. }
  1233. }
  1234. }
  1235. :deep(.adddialog .el-form-item__label) {
  1236. min-width: 80px;
  1237. width: auto;
  1238. font-weight: 800;
  1239. padding-bottom: 15px;
  1240. }
  1241. }
  1242. // 表单卡片样式
  1243. .card2 {
  1244. background: #E7F4FD;
  1245. }
  1246. // 表格样式
  1247. :deep(.el-table__header-wrapper),
  1248. :deep(.el-table__body-wrapper),
  1249. :deep(.el-table__cell),
  1250. :deep(.el-table__body td) {
  1251. background-color: #F3FAFE !important;
  1252. }
  1253. :deep(.el-table__header th) {
  1254. background-color: #F3FAFE !important;
  1255. }
  1256. :deep(.el-table__row:hover > .el-table__cell) {
  1257. background-color: #E5EBFE !important;
  1258. }
  1259. .reject-reason-box {
  1260. width: 80%;
  1261. padding: 20px;
  1262. }
  1263. .rejectBtn {
  1264. margin-top: 20px;
  1265. display: flex;
  1266. justify-content: flex-end;
  1267. }
  1268. </style>