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.

1294 lines
52 KiB

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