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.

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