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.

1530 lines
63 KiB

3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
  1. <template>
  2. <div class="content">
  3. <div class="div-card1">
  4. <el-card class="card1" style="margin-bottom: 0.5vh; min-height: 110px;">
  5. <div class="row">
  6. <div class="rowItem">
  7. <el-text style="width: 4vw;">精网号</el-text>
  8. <el-input v-model="searchData.jwcode" placeholder="请输入精网号" style="width:10vw;"
  9. clearable></el-input>
  10. </div>
  11. <div class="rowItem">
  12. <el-text style="width: 4vw;">客户姓名</el-text>
  13. <el-input v-model="searchData.name" placeholder="请输入客户姓名" style="width:10vw;"
  14. clearable></el-input>
  15. </div>
  16. <div class="rowItem">
  17. <el-text style="width: 4vw;">所属地区</el-text>
  18. <el-select v-model="searchData.market" placeholder="请选择所属地区" style="width:10vw;" clearable>
  19. <el-option v-for="item in marketList" :key="item" :label="item" :value="item" />
  20. </el-select>
  21. </div>
  22. <!-- 地区财务固定显示付款币种删除客服的订单状态 -->
  23. <div class="rowItem">
  24. <el-text style="width: 4vw;">付款币种</el-text>
  25. <el-select v-model="searchData.paymentCurrency" placeholder="请选择付款币种" style="width: 10vw;"
  26. clearable>
  27. <el-option v-for="item in customOptions" :key="item" :label="item" :value="item" />
  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. <!-- 地区财务查询/重置按钮删除客服相关按钮 -->
  58. <div class="buttons">
  59. <el-button type="primary" @click="search">查询</el-button>
  60. <el-button type="success" @click="reset">重置</el-button>
  61. </div>
  62. </div>
  63. </el-card>
  64. </div>
  65. <div class="div-card2">
  66. <el-card class="card2">
  67. <div class="btns">
  68. <!-- 地区财务专属标签页待审核/已通过/已完成/已驳回 -->
  69. <div class="tabs">
  70. <el-button-group>
  71. <el-button class="btnItem"
  72. :style="{ backgroundColor: activeTab === 'wait' ? '#2741DE' : '#E5EBFE', color: activeTab === 'wait' ? 'white' : '#666' }"
  73. @click="navigateTo('wait')">
  74. 待审核
  75. </el-button>
  76. <el-button class="btnItem"
  77. :style="{ backgroundColor: activeTab === 'pass' ? '#2741DE' : '#E5EBFE', color: activeTab === 'pass' ? 'white' : '#666' }"
  78. @click="navigateTo('pass')">
  79. 已通过
  80. </el-button>
  81. <el-button class="btnItem"
  82. :style="{ backgroundColor: activeTab === 'done' ? '#2741DE' : '#E5EBFE', color: activeTab === 'done' ? 'white' : '#666' }"
  83. @click="navigateTo('done')">
  84. 已完成
  85. </el-button>
  86. <el-button class="btnItem"
  87. :style="{ backgroundColor: activeTab === 'reject' ? '#2741DE' : '#E5EBFE', color: activeTab === 'reject' ? 'white' : '#666' }"
  88. @click="navigateTo('reject')">
  89. 已驳回
  90. </el-button>
  91. </el-button-group>
  92. </div>
  93. <!-- 删除客服的添加收款按钮 -->
  94. <div class="btnAdd"></div>
  95. </div>
  96. <div class="table">
  97. <el-table :data="tableData" style="width: 80vw;height:54vh;" @sort-change="handleSortChange"
  98. :row-style="{ height: '60px' }" :header-cell-style="{ textAlign: 'center' }"
  99. :cell-style="{ textAlign: 'center' }">
  100. <el-table-column type="index" label="序号" width="100px" fixed="left">
  101. <template #default="scope">
  102. <span>{{ scope.$index + 1 + (pageInfo.pageNum - 1) * pageInfo.pageSize }}</span>
  103. </template>
  104. </el-table-column>
  105. <el-table-column fixed="left" prop="jwcode" label="Homily ID" width="110px" />
  106. <el-table-column fixed="left" prop="name" label="姓名" width="110px" />
  107. <el-table-column prop="marketName" label="所属地区" width="80px" />
  108. <el-table-column prop="activity" label="活动名称" width="120px" show-overflow-tooltip />
  109. <el-table-column prop="goodsName" label="产品名称" width="120px" />
  110. <el-table-column prop="goodNum" label="产品数量" width="130px">
  111. <template #default="scope">
  112. <span v-if="scope.row.goodsName == '金币充值'">{{ scope.row.permanentGold }}</span>
  113. <span v-else>{{ scope.row.goodNum }}</span>
  114. </template>
  115. </el-table-column>
  116. <el-table-column prop="paymentCurrency" label="付款币种" width="100px" />
  117. <el-table-column prop="paymentAmount" label="付款金额" width="120px" />
  118. <!-- 地区财务显示到账币种/金额/手续费已通过/已完成标签页 -->
  119. <el-table-column prop="receivedCurrency" label="到账币种"
  120. v-if="activeTab == 'pass' || activeTab == 'done'" width="150px"></el-table-column>
  121. <el-table-column prop="receivedAmount" label="到账金额"
  122. v-if="activeTab == 'pass' || activeTab == 'done'" width="150px">
  123. <template #default="scope">
  124. <div v-if="!scope.row.receivedAmount">
  125. <text style="color: #FA5A1E;">待补充</text>
  126. </div>
  127. </template>
  128. </el-table-column>
  129. <el-table-column prop="handlingCharge" label="手续费"
  130. v-if="activeTab == 'pass' || activeTab == 'done'" width="150px">
  131. <template #default="scope">
  132. <div v-if="scope.row.handlingCharge == null">
  133. <text style="color: #FA5A1E;">待补充</text>
  134. </div>
  135. </template>
  136. </el-table-column>
  137. <el-table-column prop="payType" label="支付方式" width="130px" />
  138. <el-table-column prop="payTime" label="付款时间" width="180px" />
  139. <el-table-column prop="voucher" label="转账凭证" width="110px">
  140. <template #default="scope">
  141. <div v-if="scope.row.voucher"
  142. style="display: flex; justify-content: center; align-items: center; cursor: pointer;"
  143. @click="previewImage(scope.row.voucher)">
  144. <img :src="scope.row.voucher" alt="支付凭证" style="width: auto; height: 40px;">
  145. </div>
  146. <div v-else
  147. style="display: flex; justify-content: center; align-items: center; height: 40px;">
  148. </div>
  149. </template>
  150. </el-table-column>
  151. <el-table-column prop="submitterName" label="提交人" width="150px"
  152. show-overflow-tooltip></el-table-column>
  153. <!-- 地区财务显示审核人已通过/已驳回/已完成标签页 -->
  154. <el-table-column prop="auditName" label="审核人"
  155. v-if="activeTab == 'pass' || activeTab == 'reject' || activeTab == 'done'" width="150px"
  156. show-overflow-tooltip></el-table-column>
  157. <el-table-column prop="receivedTime" label="到账时间"
  158. v-if="activeTab == 'pass' || activeTab == 'done'" width="180px" />
  159. <el-table-column prop="remark" label="备注" v-if="activeTab != 'reject'" width="150px"
  160. show-overflow-tooltip></el-table-column>
  161. <el-table-column prop="status" fixed="right" label="订单状态" v-if="activeTab == 'done'" width="150px"
  162. show-overflow-tooltip>
  163. <template #default="scope">
  164. <span style="color: rgb(242, 84, 83);" v-if="scope.row.status == 6">退款</span>
  165. <span style="color: rgb(127,204,133);" v-else>正常</span>
  166. </template>
  167. </el-table-column>
  168. <el-table-column prop="auditTime" label="驳回时间" v-if="activeTab == 'reject'" width="180px"
  169. show-overflow-tooltip></el-table-column>
  170. <el-table-column prop="rejectReason" label="驳回理由" v-if="activeTab == 'reject'" width="150px">
  171. <template #default="scope">
  172. <div class="ellipsis-container"
  173. @mouseenter="handleMouseEnter($event, scope.row.rejectReason)"
  174. @mouseleave="handleMouseLeave" @mousemove="handleMouseMove($event)">
  175. <span class="ellipsis-text">
  176. {{ scope.row.rejectReason || '—' }}
  177. </span>
  178. <!-- 自定义提示框 -->
  179. <div v-if="showTooltip && tooltipContent" class="custom-tooltip" :style="{
  180. left: `${tooltipLeft}px`,
  181. top: `${tooltipTop}px`
  182. }">
  183. {{ tooltipContent }}
  184. </div>
  185. </div>
  186. </template>
  187. </el-table-column>
  188. <!-- 地区财务表格操作待审核审核已通过编辑 -->
  189. <el-table-column fixed="right" label="操作" width="120px" v-if="activeTab != 'reject'">
  190. <template #default=scope>
  191. <el-link v-if="activeTab == 'wait'" style="color: #2741DE;"
  192. @click="openAuditForm(scope.row)">审核
  193. </el-link>
  194. <el-link
  195. v-else-if="activeTab == 'pass' && !(scope.row.status == 6 || scope.row.status == 4)"
  196. style="color: #2741DE;" @click="openEditForm(scope.row)">编辑
  197. </el-link>
  198. <el-link
  199. v-else-if="activeTab == 'done' && scope.row.status == 4 && startsWith(scope.row.orderCode, 'GOLDCOIN')"
  200. style="color: rgb(242, 84, 83);" @click="openRefundConfirm(scope.row)">退款
  201. </el-link>
  202. </template>
  203. </el-table-column>
  204. </el-table>
  205. </div>
  206. <div class="pagination">
  207. <el-pagination background :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize"
  208. :page-sizes="[5, 10, 20, 50, 100]" layout="total, sizes, prev, pager, next, jumper"
  209. :total="total" @size-change="handlePagination('size', $event)"
  210. @current-change="handlePagination('page', $event)"></el-pagination>
  211. </div>
  212. </el-card>
  213. </div>
  214. <!-- 退款确认弹窗 -->
  215. <div class="recallDialog" v-show="refundConfirmDialog">
  216. <div class="close">
  217. <button @click="closeConfirmRefund" class="Btn">关闭</button>
  218. </div>
  219. <div class="text">
  220. <text class="txt">{{ textContent }}</text>
  221. </div>
  222. <div class="cancle">
  223. <button @click="closeConfirmRefund" class="Btn">取消</button>
  224. </div>
  225. <div class="confirm">
  226. <button @click="openRefundDialog" class="Btn">确定</button>
  227. </div>
  228. </div>
  229. <!-- 仅保留地区财务相关弹窗审核弹窗编辑手续费弹窗 -->
  230. <!-- 审核弹窗 -->
  231. <el-dialog class="adddialog" v-model="auditFormisible" width="20vw" :before-close="closeAuditForm">
  232. <el-form class="addForm" label-width="4vw" label-position="left">
  233. <el-form-item label="精网号">
  234. <el-input disabled="true" v-model="auditFormData.jwcode" placeholder="请输入驳回理由" />
  235. </el-form-item>
  236. <el-form-item label="客户姓名">
  237. <el-input disabled="true" v-model="auditFormData.name" placeholder="请输入客户姓名" />
  238. </el-form-item>
  239. <el-form-item label="所属地区">
  240. <el-input disabled="true" v-model="auditFormData.market" />
  241. </el-form-item>
  242. <el-form-item label="活动名称">
  243. <el-input disabled="true" v-model="auditFormData.activity" placeholder="请输入活动名称" />
  244. </el-form-item>
  245. <el-form-item label="产品名称">
  246. <el-select disabled="true" v-model="auditFormData.goodsName" />
  247. </el-form-item>
  248. <el-form-item v-if="!isGold" label="产品数量">
  249. <div style="display: flex;">
  250. <el-input disabled="true" style="padding-right: 30px; flex: 3;" v-model="auditFormData.goodNum"
  251. placeholder="请输入产品数量" />
  252. <CurrencySelect disabled="true" v-model="auditFormData.numUnit" :items="numUnitList"
  253. style="flex: 1.5;" placeholder="单位" @change="handleCurrencyChange" />
  254. </div>
  255. </el-form-item>
  256. <div v-show="isGold" style="margin-bottom: 15px; display: flex;">
  257. <div style=" display: flex; ">
  258. <span
  259. style="color: #999999; display: flex; white-space: nowrap;align-items: center;">永久金币</span>
  260. <el-input disabled="true"
  261. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  262. v-model="auditFormData.permanentGold" />
  263. </div>
  264. <div style="padding-right: 5px; display: flex;">
  265. <span
  266. style="color: #999999; display: flex; white-space: nowrap;align-items: center;">免费金币</span>
  267. <el-input disabled="true"
  268. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  269. v-model="auditFormData.freeGold" />
  270. </div>
  271. </div>
  272. <el-form-item label="付款币种">
  273. <el-select disabled="true" v-model="auditFormData.paymentCurrency" placeholder="请选择付款币种"
  274. @change="handleCurrencyChange" />
  275. </el-form-item>
  276. <el-form-item label="付款金额">
  277. <el-input disabled="true" v-model="auditFormData.paymentAmount" placeholder="请输入付款金额" />
  278. </el-form-item>
  279. <el-form-item label="支付方式">
  280. <el-select disabled="true" v-model="auditFormData.payType" :items="paytypeOptions"
  281. placeholder="请选择支付方式" />
  282. </el-form-item>
  283. <el-form-item label="到账地区">
  284. <el-select disabled="true" v-model="auditFormData.receivedMarket" placeholder="到账地区" />
  285. </el-form-item>
  286. <el-form-item label="付款时间">
  287. <el-date-picker disabled="true" type="datetime" v-model="auditFormData.payTime"
  288. placeholder="请选择付款时间" />
  289. </el-form-item>
  290. <el-form-item label="转账凭证">
  291. <div class="pic">
  292. <el-upload disabled="true" ref="uploadRef" class="uploader" :show-file-list="false"
  293. list-type="picture-card" :auto-upload="false" :before-upload="beforeUpload"
  294. :on-error="handelImgErr" :on-change="handleImageChange" :http-request="customUpload">
  295. <img v-if="auditFormData.voucher" :src="auditFormData.voucher" class="avatar"
  296. style="height: 100%; width: 100%; object-fit: cover;" />
  297. <el-icon v-else class="avatar-uploader-icon">
  298. <Plus />
  299. </el-icon>
  300. </el-upload>
  301. <el-text class="picText">
  302. 仅支持.jpg .png格式文件 1 MB
  303. </el-text>
  304. </div>
  305. </el-form-item>
  306. <el-form-item label="备注">
  307. <el-input disabled="true" v-model="auditFormData.remark" type="textarea" :rows="3"
  308. placeholder="请输入备注" maxlength="100" show-word-limit />
  309. </el-form-item>
  310. <el-form-item label="驳回理由" v-if="ifReject" required>
  311. <el-input v-model="auditFormData.rejectReason" type="textarea" :rows="3" placeholder="请输入驳回理由"
  312. maxlength="100" show-word-limit />
  313. </el-form-item>
  314. </el-form>
  315. <template #footer>
  316. <span class="dialog-footer" v-if="!ifReject">
  317. <el-button style="background-color: #7E91FF;" @click="ifReject = true">驳回</el-button>
  318. <el-button :style="{
  319. backgroundColor: isBtnDisabled ? '#E5E5E5FF' : '#2741DEFF',
  320. marginLeft: '60px',
  321. color: isBtnDisabled ? '#8A8A8A' : '#F3FAFE'
  322. }" @click="handelAudit" :disabled="isBtnDisabled">{{ btnText }}</el-button>
  323. </span>
  324. <span class="dialog-footer" v-if="ifReject">
  325. <el-button style="background-color: #7E91FF;" @click="closeAuditForm">取消</el-button>
  326. <el-button style="background-color: #2741DE; margin-left: 2.5vw;" type="primary"
  327. @click="throttledhandelAuditReject">确定</el-button>
  328. </span>
  329. </template>
  330. </el-dialog>
  331. <!-- 编辑填手续费弹窗地区财务核心编辑功能 -->
  332. <el-dialog class="editdialog" v-model="editFormisible" width="20vw" :before-close="closeEditForm">
  333. <div class="content">
  334. <div class="left">
  335. <el-form class="editForm" label-width="4.5vw" label-position="left">
  336. <el-form-item label="精网号">
  337. <el-input disabled="true" v-model="editFormData.jwcode" placeholder="精网号" />
  338. </el-form-item>
  339. <el-form-item label="客户姓名">
  340. <el-input disabled="true" v-model="editFormData.name" placeholder="客户姓名" />
  341. </el-form-item>
  342. <el-form-item label="所属地区">
  343. <el-input disabled="true" v-model="editFormData.marketName" placeholder="所属地区" />
  344. </el-form-item>
  345. <el-form-item label="活动名称">
  346. <el-input disabled="true" v-model="editFormData.activity" placeholder="活动名称" />
  347. </el-form-item>
  348. <el-form-item label="产品名称">
  349. <el-select disabled="true" v-model="editFormData.goodsName" placeholder="产品名称"
  350. clearable></el-select>
  351. </el-form-item>
  352. <!-- 金币产品特殊显示 -->
  353. <el-form-item v-show="!isEditGold" label="产品数量">
  354. <div style="display: flex;">
  355. <el-input disabled="true" style="padding-right: 30px; flex: 3;"
  356. v-model="editFormData.goodNum" placeholder="请输入产品数量" />
  357. <CurrencySelect disabled="true" v-model="editFormData.numUnit" :items="numUnitList"
  358. style="flex: 1.5;" placeholder="单位" @change="handleCurrencyChange" />
  359. </div>
  360. </el-form-item>
  361. <div v-show="isEditGold" style="margin-bottom: 15px; display: flex;">
  362. <div style=" display: flex; margin-right: 10px;">
  363. <span
  364. style="color: #999999; display: flex; white-space: nowrap;align-items: center;">永久金币</span>
  365. <el-input disabled="true"
  366. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  367. v-model="editFormData.permanentGold" />
  368. </div>
  369. <div style="padding-right: 5px; display: flex;">
  370. <span
  371. style="color: #999999; display: flex; white-space: nowrap;align-items: center;">免费金币</span>
  372. <el-input disabled="true"
  373. style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
  374. v-model="editFormData.freeGold" />
  375. </div>
  376. </div>
  377. <el-form-item label="付款币种">
  378. <CurrencySelect :disabled="!ifOnline" v-model="editFormData.paymentCurrency"
  379. :items="customOptions" placeholder="付款币种" />
  380. </el-form-item>
  381. <el-form-item label="付款金额">
  382. <el-input :disabled="!ifOnline" v-model="editFormData.paymentAmount" placeholder="付款金额" />
  383. </el-form-item>
  384. <el-form-item label="支付方式">
  385. <el-select disabled="true" v-model="editFormData.payType" placeholder="支付方式"
  386. clearable></el-select>
  387. </el-form-item>
  388. <el-form-item label="到账地区">
  389. <el-select disabled="true" v-model="editFormData.receivedMarket" placeholder="到账地区"
  390. clearable></el-select>
  391. </el-form-item>
  392. <el-form-item label="付款时间">
  393. <el-date-picker disabled="true" type="datetime" v-model="editFormData.payTime"
  394. placeholder="付款时间" />
  395. </el-form-item>
  396. <el-form-item label="转账凭证">
  397. <div class="pic">
  398. <el-upload disabled="true" ref="uploadRef" class="uploader" :show-file-list="false"
  399. list-type="picture-card" :auto-upload="false" :before-upload="beforeUpload"
  400. :on-error="handelImgErr" :on-change="handleImageChange"
  401. :http-request="customUpload">
  402. <img v-if="editFormData.voucher" :src="editFormData.voucher" class="avatar"
  403. style="height: 100%; width: 100%; object-fit: cover;" />
  404. <el-icon v-else class="avatar-uploader-icon">
  405. <Plus />
  406. </el-icon>
  407. </el-upload>
  408. <el-text class="picText">仅支持.jpg .png格式文件 1 MB</el-text>
  409. </div>
  410. </el-form-item>
  411. <el-form-item label="备注">
  412. <el-input disabled="true" v-model="editFormData.remark" type="textarea" :rows="4"
  413. placeholder="备注" maxlength="100" show-word-limit />
  414. </el-form-item>
  415. </el-form>
  416. </div>
  417. <div class="right">
  418. <!-- 地区财务可编辑项仅到账相关信息 -->
  419. <el-form ref="editFormRef" :rules="editFormRule" :model="editFormData" class="editFormRighrt"
  420. label-width="4.5vw" label-position="left">
  421. <el-form-item label="到账货币" required>
  422. <CurrencySelect v-model="editFormData.receivedCurrency" :items="customOptions"
  423. placeholder="请选择到账货币" />
  424. </el-form-item>
  425. <el-form-item label="到账金额" prop="receivedAmount">
  426. <el-input v-model="editFormData.receivedAmount" placeholder="请输入到账金额" type="number" />
  427. </el-form-item>
  428. <el-form-item label="手续费" prop="handlingCharge">
  429. <el-input v-model="editFormData.handlingCharge" placeholder="请输入手续费" type="number" />
  430. </el-form-item>
  431. <el-form-item label="到账时间" required>
  432. <el-date-picker type="datetime" v-model="editFormData.receivedTime" placeholder="请选择到账时间" />
  433. </el-form-item>
  434. </el-form>
  435. <span class="editBtns">
  436. <button class="editBtn1" @click="closeEditForm">
  437. <text class="txt">取消</text>
  438. </button>
  439. <button class="editBtn2" @click="throttledsubmitEditForm">
  440. <text class="txt">提交</text>
  441. </button>
  442. </span>
  443. </div>
  444. </div>
  445. </el-dialog>
  446. <!-- 新增退款 -->
  447. <el-dialog v-model="refundDialog" title="退款" class="refundDialog" overflow draggable style="width: 40vw;"
  448. :before-close="closeRefundForm">
  449. <div style="display: flex;">
  450. <div class="left">
  451. <div class="add-item">
  452. <el-text style="width:4vw;">精网号</el-text>
  453. <el-input v-model="refundFormData.jwcode" style="width:10vw;" disabled />
  454. </div>
  455. <div class="add-item">
  456. <el-text style="width:4vw;">客户姓名</el-text>
  457. <el-input v-model="refundFormData.name" style="width:10vw;" disabled />
  458. </div>
  459. <div class="add-item">
  460. <el-text style="width:4vw;">所属地区</el-text>
  461. <el-input v-model="refundFormData.marketName" style="width:10vw;" disabled />
  462. </div>
  463. <div class="add-item">
  464. <el-text style="width:4vw;">活动名称</el-text>
  465. <el-input v-model="refundFormData.activity" style="width:10vw;" disabled />
  466. </div>
  467. <div class="add-item">
  468. <el-text style="width:4vw;">产品名称</el-text>
  469. <el-input v-model="refundFormData.goodsName" style="width:10vw;" disabled />
  470. </div>
  471. <div v-show="!isRefundGold" class="add-item">
  472. <el-text style="width:4vw;">产品数量</el-text>
  473. <el-input style="padding-right: 10px; width:6.5vw;" v-model="refundFormData.goodNum"
  474. placeholder="请输入产品数量" disabled />
  475. <CurrencySelect disabled="true" v-model="refundFormData.numUnit" :items="numUnitList"
  476. style=" width: 3.5vw;" placeholder="单位" @change="handleCurrencyChange" />
  477. </div>
  478. <div v-show="isRefundGold" style="display: flex; margin-bottom: 10px;">
  479. <div style=" display: flex; align-items: center;justify-content: center; ">
  480. <span style="color: #999999; white-space: nowrap;">永久金币</span>
  481. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  482. v-model="refundFormData.permanentGold" disabled />
  483. </div>
  484. <div style=" display: flex; align-items: center;justify-content: center; ">
  485. <span style="color: #999999; white-space: nowrap;">免费金币</span>
  486. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  487. v-model="refundFormData.freeGold" disabled />
  488. </div>
  489. </div>
  490. <div class="add-item">
  491. <el-text style="width:4vw;">付款币种</el-text>
  492. <el-input v-model="refundFormData.paymentCurrency" style="width:10vw;" disabled />
  493. </div>
  494. <div class="add-item">
  495. <el-text style="width:4vw;">付款金额</el-text>
  496. <el-input v-model="refundFormData.paymentAmount" style="width:10vw;" disabled />
  497. </div>
  498. <div class="add-item">
  499. <el-text style="width:4vw;">支付方式</el-text>
  500. <el-input v-model="refundFormData.payType" style="width:10vw;" disabled />
  501. </div>
  502. <div class="add-item">
  503. <el-text style="width:4vw;">付款时间</el-text>
  504. <el-date-picker v-model="refundFormData.payTime" type="datetime" style="width:10vw;" disabled />
  505. </div>
  506. <div class="add-item">
  507. <el-text style="width:4vw;" size="small">转账凭证</el-text>
  508. <el-form-item :rules="{ required: true, message: '请上传图片', trigger: 'change' }">
  509. <el-upload ref="uploadRef" :auto-upload="false" list-type="picture-card"
  510. :show-file-list="false">
  511. <template #default>
  512. <img v-if="refundFormData.voucher" :src="refundFormData.voucher"
  513. style="width: 100%; height: 100%; object-fit: cover;">
  514. <el-icon v-else>
  515. <Plus />
  516. </el-icon>
  517. </template>
  518. </el-upload>
  519. </el-form-item>
  520. </div>
  521. <div class="add-item">
  522. <el-text style="width:4vw;">备注</el-text>
  523. <el-input v-model="refundFormData.remark" style="width:10vw;" :rows="2" type="textarea"
  524. maxLength="100" disabled show-word-limit />
  525. </div>
  526. </div>
  527. <div class="right">
  528. <div class="add-item">
  529. <el-text style="width:4vw;">退款模式</el-text>
  530. <el-radio-group v-model="refundFormData.refundModel">
  531. <el-radio value="0">全部退款</el-radio>
  532. <el-radio value="1">部分退款</el-radio>
  533. </el-radio-group>
  534. </div>
  535. <div v-show="refundFormData.refundModel == '1'" style="display: flex; margin-bottom: 10px;">
  536. <div style=" display: flex; align-items: center;justify-content: center; ">
  537. <span style="color: #999999; white-space: nowrap;">永久金币</span>
  538. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  539. v-model="refundCoinData.permanentGold" dsabled />
  540. </div>
  541. <div style=" display: flex; align-items: center;justify-content: center; ">
  542. <span style="color: #999999; white-space: nowrap;">免费金币</span>
  543. <el-input style="padding-right: 10px; height: 30px; width: 70px;"
  544. v-model="refundCoinData.freeGold" />
  545. </div>
  546. </div>
  547. <div class="add-item">
  548. <el-text style="width:4vw;">退款理由</el-text>
  549. <el-input v-model="refundFormData.refundReason" style="width:10vw;" :rows="5" maxlength="150"
  550. show-word-limit type="textarea" />
  551. </div>
  552. <div>ps:请在退款理由表明用户的退款需求</div>
  553. <div style="display:flex;justify-content: center;margin-top: 5vh;">
  554. <el-button type="default" @click="resetRefund">重置</el-button>
  555. <el-button type="primary" @click="throttledsubmitRefund">提交</el-button>
  556. </div>
  557. </div>
  558. </div>
  559. </el-dialog>
  560. </div>
  561. </template>
  562. <script setup>
  563. // 仅导入地区财务所需依赖
  564. import { ref, watch, onMounted } from 'vue';
  565. import { storeToRefs } from 'pinia';
  566. import { ElMessage, ElMessageBox } from 'element-plus';
  567. import API from '@/util/http.js';
  568. import request from '@/util/http.js';
  569. import moment from 'moment';
  570. import _ from 'lodash';
  571. import { Plus } from '@element-plus/icons-vue';
  572. import { startsWith } from './utils/util.js'
  573. // 地区财务专属组件
  574. import CurrencySelect from '@/components/MoneyManage/CurrencySelect.vue';
  575. // 静态数据与规则(仅保留必要项)
  576. import { editFormRule } from './utils/recriveFormRules.js';
  577. import { productList, MarketNameForId, CurrencyForId, marketList } from './utils/staticData.js';
  578. import { useAdminStore } from '@/store/index.js';
  579. import { hasMenuPermission } from '@/utils/menuTreePermission.js';
  580. // ===================== 1. 核心状态管理(仅地区财务) =====================
  581. const adminStore = useAdminStore();
  582. const { menuTree } = storeToRefs(adminStore);
  583. // 角色固定:地区财务(caiwu=true,其他角色关闭)
  584. const kefu = ref(false);
  585. const caiwu = ref(true);
  586. const HQcaiwu = ref(false);
  587. const superAdmin = ref(false);
  588. // 表格与分页数据
  589. const tableData = ref([]);
  590. const total = ref(0);
  591. const pageInfo = ref({ pageSize: 10, pageNum: 1 });
  592. // 搜索条件
  593. const searchData = ref({});
  594. const defaultTime = [new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)];
  595. const getTime = ref([]);
  596. // 标签页:默认“待审核”
  597. const activeTab = ref('wait');
  598. // 审核弹窗状态
  599. const auditFormisible = ref(false);
  600. const auditFormData = ref({});
  601. const ifReject = ref(false);
  602. const countdown = ref(0);
  603. const isBtnDisabled = ref(false);
  604. const btnText = ref('通过(3)');
  605. // 编辑弹窗状态
  606. const editFormisible = ref(false);
  607. const editFormData = ref({});
  608. const editFormRef = ref(null);
  609. const isEditGold = ref(false); // 金币产品标记
  610. const ifOnline = ref(false); // 在线支付标记
  611. // 辅助状态:图片上传、悬浮提示
  612. const uploadRef = ref(null);
  613. const showTooltip = ref(false);
  614. const tooltipContent = ref('');
  615. const tooltipLeft = ref(0);
  616. const tooltipTop = ref(0);
  617. // 退款确认弹窗
  618. const refundConfirmDialog = ref(false)
  619. const textContent = ref('')
  620. //退款弹窗
  621. const refundDialog = ref(false)
  622. const refundFormData = ref({})
  623. const openRefundDialog = () => {
  624. refundDialog.value = true
  625. closeConfirmRefund()
  626. }
  627. const closeRefundForm = () => {
  628. refundDialog.value = false
  629. refundFormData.value = {}
  630. refundCoinData.value = {
  631. permanentGold: 0,
  632. freeGold: 0
  633. }
  634. }
  635. const refundCoinData = ref({
  636. permanentGold: 0,
  637. freeGold: 0
  638. })
  639. const isRefundGold = ref(false)
  640. const ifRefundGold = () => {
  641. if (refundFormData.value.goodsName === '金币充值') {
  642. isRefundGold.value = true
  643. refundFormData.value.goodNum = 0
  644. } else {
  645. isRefundGold.value = false
  646. }
  647. }
  648. // 基础数据
  649. const adminData = ref({});
  650. const activityList = ref([]);
  651. const customOptions = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)']);
  652. const paytypeList = ["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"];
  653. const paytypeOptions = ref([...paytypeList]);
  654. // ===================== 2. 核心功能函数(仅地区财务) =====================
  655. //确认退款弹窗
  656. const openRefundConfirm = (row) => {
  657. textContent.value = '将要对该订单退款!'
  658. refundConfirmDialog.value = true
  659. refundFormData.value = { ...row }
  660. ifRefundGold()
  661. console.log(row);
  662. }
  663. const closeConfirmRefund = () => {
  664. refundConfirmDialog.value = false
  665. textContent.value = ''
  666. }
  667. // 2.1 数据加载:获取地区财务订单列表
  668. const getlist = async () => {
  669. try {
  670. let payCurrencySelect = '';
  671. let goodsName = '';
  672. // 处理时间范围
  673. if (getTime.value && getTime.value.length === 2) {
  674. searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss');
  675. searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss');
  676. } else {
  677. searchData.value.startTime = '';
  678. searchData.value.endTime = '';
  679. }
  680. // 处理产品名称(级联选择取最后一级)
  681. if (searchData.value.goodsName) {
  682. goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1];
  683. }
  684. // 处理付款币种(转ID)
  685. if (searchData.value.paymentCurrency) {
  686. payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency);
  687. }
  688. // 地区财务固定参数:角色ID=1,按标签页筛选状态
  689. const cashRoleId = '1';
  690. const receivedMarket = adminData.value.markets;
  691. if (activeTab.value === 'wait') searchData.value.status = 0;
  692. else if (activeTab.value === 'pass') searchData.value.status = 13;
  693. else if (activeTab.value === 'done') searchData.value.status = 46;
  694. else if (activeTab.value === 'reject') searchData.value.status = 2;
  695. const result = await request({
  696. url: '/cashCollection/selectCollection',
  697. data: {
  698. ...pageInfo.value,
  699. cashCollection: {
  700. ...searchData.value,
  701. submitterId: adminData.value.id,
  702. receivedMarket: MarketNameForId(receivedMarket),
  703. cashRoleId: cashRoleId,
  704. paymentCurrency: payCurrencySelect,
  705. submitterMarket: receivedMarket,
  706. goodsName: goodsName,
  707. market: MarketNameForId(searchData.value.market)
  708. }
  709. }
  710. });
  711. if (result.code === 200) {
  712. tableData.value = result.data.list;
  713. total.value = result.data.total;
  714. } else {
  715. ElMessage.error('订单数据加载失败');
  716. }
  717. } catch (error) {
  718. console.error('地区财务订单列表请求异常:', error);
  719. ElMessage.error('网络异常,请重试');
  720. }
  721. };
  722. //重置退款
  723. const resetRefund = () => {
  724. refundFormData.value.refundModel = ''
  725. refundFormData.value.refundReason = ''
  726. refundCoinData.value = {
  727. permanentGold: 0,
  728. freeGold: 0
  729. }
  730. }
  731. //提交退款
  732. const submitRefund = async () => {
  733. try {
  734. if (refundFormData.value.goodsName != '金币充值') {
  735. return ElMessage.error('线上数据仅支持金币充值退款');
  736. }
  737. if (!refundFormData.value.refundModel) {
  738. return ElMessage.error('请选择退款方式');
  739. }
  740. if (!refundFormData.value.refundReason) {
  741. return ElMessage.error('请输入退款原因');
  742. }
  743. if(refundFormData.value.refundReason){
  744. }
  745. const result = await request({
  746. url: '/Money/addOnline',
  747. data: {
  748. jwcode: refundFormData.value.jwcode, // 精网号(必填)
  749. name: refundFormData.value.name, // 姓名(必填)
  750. market: refundFormData.value.marketName, // 所属地区(必填)
  751. submitterMarket:adminData.value.markets,
  752. submitterId: adminData.value.id,
  753. remark: refundFormData.value.remark, // 备注信息(可选)
  754. refundReason: refundFormData.value.refundReason, // 退款备注-客服填写(可选)
  755. refundModel: refundFormData.value.refundModel, // 退款方式:0-全额,1-部分(可选)
  756. id: refundFormData.value.id, //订单id
  757. orderCode: refundFormData.value.orderCode,
  758. permanentGold: (refundCoinData.value.permanentGold) * 100 || 0,
  759. freeGold: (refundCoinData.value.freeGold) * 100 || 0
  760. }
  761. })
  762. if (result.code == 200) {
  763. ElMessage.success('新增退款成功')
  764. getlist()
  765. closeRefundForm()
  766. } else {
  767. ElMessage.error(result.msg)
  768. getlist()
  769. }
  770. console.log('返回参数:', result);
  771. } catch (error) {
  772. console.log(error);
  773. }
  774. }
  775. // 2.2 搜索与重置
  776. const search = () => {
  777. getlist();
  778. ElMessage.success('查询成功');
  779. };
  780. const reset = () => {
  781. searchData.value = {};
  782. // 重置页码
  783. pageInfo.value.pageNum = 1;
  784. getlist();
  785. };
  786. // 2.3 标签页切换
  787. const navigateTo = async (tab) => {
  788. activeTab.value = tab;
  789. await getlist();
  790. };
  791. // 2.4 审核功能
  792. // 打开审核弹窗
  793. const openAuditForm = (row) => {
  794. auditFormData.value = { ...row, market: row.marketName };
  795. ifGold(auditFormData.value)
  796. console.log('isGold', isGold.value);
  797. auditFormisible.value = true;
  798. };
  799. // 关闭审核弹窗
  800. const closeAuditForm = () => {
  801. ifReject.value = false;
  802. auditFormisible.value = false;
  803. auditFormData.value = {};
  804. };
  805. // 审核通过
  806. const handelAudit = async () => {
  807. try {
  808. const result = await request({
  809. url: '/cashAudit/collectionAudit',
  810. data: {
  811. orderCode: auditFormData.value.orderCode,
  812. action: 1,
  813. auditId: adminData.value.id
  814. }
  815. });
  816. if (result.code === 200) {
  817. ElMessage.success('审核通过');
  818. getlist();
  819. closeAuditForm();
  820. } else {
  821. ElMessage.error(result.msg || '审核失败');
  822. }
  823. } catch (error) {
  824. console.error('审核通过请求异常:', error);
  825. ElMessage.error('网络异常,请重试');
  826. }
  827. };
  828. // 审核驳回
  829. const handelAuditReject = async () => {
  830. if (!auditFormData.value.rejectReason) {
  831. ElMessage.warning('请输入驳回理由');
  832. return;
  833. }
  834. try {
  835. const result = await request({
  836. url: '/cashAudit/collectionAudit',
  837. data: {
  838. orderCode: auditFormData.value.orderCode,
  839. rejectReason: auditFormData.value.rejectReason,
  840. action: 2,
  841. auditId: adminData.value.id
  842. }
  843. });
  844. if (result.code === 200) {
  845. ElMessage.success('驳回成功');
  846. getlist();
  847. closeAuditForm();
  848. } else {
  849. ElMessage.error(result.msg || '驳回失败');
  850. }
  851. } catch (error) {
  852. console.error('审核驳回请求异常:', error);
  853. ElMessage.error('网络异常,请重试');
  854. }
  855. };
  856. //判断产品类型
  857. const isGold = ref(false)
  858. const ifGold = (data) => {
  859. console.log('data', data);
  860. if (data.goodsName === '金币充值') {
  861. isGold.value = true
  862. } else {
  863. isGold.value = false
  864. }
  865. }
  866. // 审核按钮倒计时(防止误操作)
  867. watch(auditFormisible, (val) => {
  868. if (val) {
  869. countdown.value = 3;
  870. isBtnDisabled.value = true;
  871. btnText.value = `通过(${countdown.value})`;
  872. const timer = setInterval(() => {
  873. countdown.value--;
  874. btnText.value = `通过(${countdown.value})`;
  875. if (countdown.value <= 0) {
  876. isBtnDisabled.value = false;
  877. clearInterval(timer);
  878. btnText.value = '通过';
  879. }
  880. }, 1000);
  881. }
  882. });
  883. // 2.5 编辑手续费功能
  884. // 打开编辑弹窗
  885. const openEditForm = (row) => {
  886. editFormData.value = { ...row };
  887. // 区分金币产品与普通产品
  888. if (row.goodsName === '金币充值') isEditGold.value = true;
  889. else isEditGold.value = false;
  890. // 在线支付订单允许修改付款信息
  891. if (row.status === 3) ifOnline.value = true;
  892. else ifOnline.value = false;
  893. editFormisible.value = true;
  894. };
  895. // 关闭编辑弹窗
  896. const closeEditForm = () => {
  897. editFormisible.value = false;
  898. editFormData.value = {};
  899. editFormRef.value.resetFields();
  900. };
  901. // 提交编辑(补充手续费)
  902. const submitEditForm = async () => {
  903. try {
  904. await editFormRef.value.validate();
  905. // 处理时间格式
  906. if (editFormData.value.receivedTime) {
  907. editFormData.value.receivedTime = moment(editFormData.value.receivedTime).format('YYYY-MM-DD HH:mm:ss');
  908. }
  909. const result = await request({
  910. url: '/cashCollection/complete',
  911. data: {
  912. orderCode: editFormData.value.orderCode,
  913. handlingCharge: editFormData.value.handlingCharge * 100, // 转为分单位
  914. paymentCurrency: CurrencyForId(editFormData.value.paymentCurrency),
  915. paymentAmount: editFormData.value.paymentAmount * 100, // 转为分单位
  916. receivedCurrency: CurrencyForId(editFormData.value.receivedCurrency),
  917. receivedAmount: editFormData.value.receivedAmount * 100, // 转为分单位
  918. receivedTime: editFormData.value.receivedTime,
  919. receivedRemark: editFormData.value.receivedRemark || ''
  920. }
  921. });
  922. if (result.code === 200) {
  923. ElMessage.success('编辑提交成功');
  924. getlist();
  925. closeEditForm();
  926. } else {
  927. ElMessage.error(result.msg || '提交失败');
  928. }
  929. } catch (error) {
  930. console.error('编辑提交请求异常:', error);
  931. ElMessage.error('表单验证失败,请检查数据格式');
  932. }
  933. };
  934. // 2.6 辅助功能
  935. // 图片预览
  936. const previewImage = (imageUrl) => {
  937. if (!imageUrl) return;
  938. const imageElement = document.createElement('img');
  939. imageElement.src = imageUrl;
  940. imageElement.style.maxWidth = '80vw';
  941. imageElement.style.maxHeight = '80vh';
  942. imageElement.style.objectFit = 'contain';
  943. const viewer = document.createElement('div');
  944. viewer.style.position = 'fixed';
  945. viewer.style.top = '0';
  946. viewer.style.left = '0';
  947. viewer.style.width = '100vw';
  948. viewer.style.height = '100vh';
  949. viewer.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
  950. viewer.style.display = 'flex';
  951. viewer.style.justifyContent = 'center';
  952. viewer.style.alignItems = 'center';
  953. viewer.style.zIndex = '9999';
  954. viewer.appendChild(imageElement);
  955. // 点击关闭预览
  956. viewer.addEventListener('click', () => {
  957. document.body.removeChild(viewer);
  958. });
  959. document.body.appendChild(viewer);
  960. };
  961. // 驳回理由悬浮提示
  962. const handleMouseEnter = (e, content) => {
  963. if (!content) return;
  964. showTooltip.value = true;
  965. tooltipContent.value = content;
  966. handleMouseMove(e);
  967. };
  968. const handleMouseLeave = () => {
  969. showTooltip.value = false;
  970. tooltipContent.value = '';
  971. };
  972. const handleMouseMove = (e) => {
  973. // 提示框显示在鼠标左侧,避免遮挡
  974. tooltipLeft.value = e.clientX - 210;
  975. tooltipTop.value = e.clientY - 10;
  976. };
  977. // 2.7 基础数据加载(初始化)
  978. // 获取管理员信息
  979. const getAdminData = async () => {
  980. try {
  981. const result = await API({ url: '/admin/userinfo', data: {} });
  982. adminData.value = result;
  983. // 超级管理员判断(仅用于角色切换权限)
  984. if (adminData.value.roleId === 2) {
  985. superAdmin.value = true;
  986. // 管理员所属地区提示
  987. if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') {
  988. ElMessageBox.alert(
  989. '管理员账号仅显示所属地区的财务数据,请确认地区设置',
  990. '温馨提示',
  991. { type: 'warning' }
  992. );
  993. }
  994. }
  995. } catch (error) {
  996. console.error('管理员信息获取失败:', error);
  997. ElMessage.error('管理员信息加载异常');
  998. }
  999. };
  1000. // 获取活动列表
  1001. const getActivitys = async () => {
  1002. try {
  1003. const result = await API({ url: '/cashCollection/getActivityList', data: {} });
  1004. if (result.code === 200) {
  1005. activityList.value = result.data;
  1006. } else {
  1007. ElMessage.error('活动列表加载失败');
  1008. }
  1009. } catch (error) {
  1010. console.error('活动列表获取失败:', error);
  1011. ElMessage.error('活动数据加载异常');
  1012. }
  1013. };
  1014. // 2.8 节流函数(防止重复提交)
  1015. const throttledhandelAuditReject = _.throttle(handelAuditReject, 3000, { trailing: false });
  1016. const throttledsubmitEditForm = _.throttle(submitEditForm, 3000, { trailing: false });
  1017. const throttledsubmitRefund = _.throttle(submitRefund, 5000, {
  1018. trailing: false
  1019. })
  1020. // 2.9 页面初始化
  1021. onMounted(async () => {
  1022. await getAdminData();
  1023. await getActivitys();
  1024. // 初始化加载地区财务订单数据
  1025. await getlist();
  1026. // 菜单权限校验(确保地区财务权限)
  1027. if (!hasMenuPermission(menuTree.value, 78)) {
  1028. ElMessageBox.alert(
  1029. '您暂无地区财务操作权限,请联系管理员',
  1030. '权限提示',
  1031. { type: 'error' }
  1032. ).then(() => {
  1033. window.history.back();
  1034. });
  1035. }
  1036. //背景预加载
  1037. const bgImg = new Image();
  1038. bgImg.src = '/src/assets/receive-recall.png';
  1039. });
  1040. // 2.10 未使用函数占位(避免报错)
  1041. const handleCurrencyChange = () => { };
  1042. const beforeUpload = () => true;
  1043. const handelImgErr = () => { };
  1044. const handleImageChange = () => { };
  1045. const customUpload = () => { };
  1046. const handleDatePickerChange = () => { };
  1047. const disabledDate = () => false;
  1048. const handleSortChange = () => { };
  1049. const handlePagination = (type, val) => {
  1050. if (type === 'size') pageInfo.value.pageSize = val;
  1051. else pageInfo.value.pageNum = val;
  1052. getlist();
  1053. };
  1054. </script>
  1055. <style scoped lang="scss">
  1056. .content {
  1057. height: 100%;
  1058. width: 80vw;
  1059. .card1 {
  1060. width: 100%;
  1061. background: #F3FAFE;
  1062. .row {
  1063. height: 4vh;
  1064. width: 80vw;
  1065. display: flex;
  1066. min-height: 40px;
  1067. .rowItem {
  1068. display: flex;
  1069. width: 15vw;
  1070. align-items: center;
  1071. justify-content: center;
  1072. margin-right: 0.5vw;
  1073. }
  1074. .buttons {
  1075. display: flex;
  1076. justify-content: center;
  1077. align-items: center;
  1078. margin-left: 10px;
  1079. }
  1080. }
  1081. }
  1082. .div-card2 {
  1083. width: 100%;
  1084. margin-top: 2vh;
  1085. .card2 {
  1086. background: #E7F4FD;
  1087. }
  1088. .btns {
  1089. display: flex;
  1090. align-items: center;
  1091. justify-content: space-between;
  1092. padding-bottom: 10px;
  1093. .tabs {
  1094. min-width: 300px;
  1095. .btnItem {
  1096. margin-left: 10px;
  1097. border-radius: 5px;
  1098. }
  1099. }
  1100. }
  1101. .table {
  1102. margin: 10px;
  1103. border-radius: 20px;
  1104. .ellipsis-container {
  1105. position: relative;
  1106. width: 100%;
  1107. .ellipsis-text {
  1108. display: inline-block;
  1109. width: 100%;
  1110. white-space: nowrap;
  1111. overflow: hidden;
  1112. text-overflow: ellipsis;
  1113. cursor: pointer;
  1114. }
  1115. .custom-tooltip {
  1116. position: fixed;
  1117. z-index: 9999;
  1118. padding: 8px 12px;
  1119. width: 200px;
  1120. background-color: #E4F0FC;
  1121. color: #333333;
  1122. border: 1px solid #e5e7eb;
  1123. border-radius: 4px;
  1124. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  1125. min-height: 30px;
  1126. max-height: 300px;
  1127. overflow-y: auto;
  1128. font-size: 14px;
  1129. line-height: 1.5;
  1130. }
  1131. }
  1132. }
  1133. .pagination {
  1134. margin-top: 10px;
  1135. padding: 10px 10px;
  1136. }
  1137. }
  1138. :deep(.adddialog) {
  1139. min-width: 500px;
  1140. background-color: #F3FAFE !important;
  1141. margin-top: 8vh;
  1142. border-radius: 8px;
  1143. .addForm {
  1144. padding: 0 60px 1vh 60px;
  1145. .el-date-editor {
  1146. display: flex;
  1147. flex: 1;
  1148. }
  1149. .pic {
  1150. display: flex;
  1151. align-items: center;
  1152. .uploader {
  1153. height: 80px;
  1154. width: 80px;
  1155. .el-upload {
  1156. height: 100%;
  1157. width: 100%;
  1158. }
  1159. }
  1160. .picText {
  1161. color: #999999;
  1162. font-family: "PingFang SC";
  1163. font-size: 10px;
  1164. font-style: normal;
  1165. font-weight: 400;
  1166. line-height: 20px;
  1167. margin-left: 10px;
  1168. }
  1169. }
  1170. }
  1171. .dialog-footer {
  1172. display: flex;
  1173. justify-content: center;
  1174. padding-bottom: 1.5vh;
  1175. }
  1176. }
  1177. :deep(.editdialog) {
  1178. min-width: 990px;
  1179. background-color: #F3FAFE !important;
  1180. margin-top: 8vh;
  1181. border-radius: 8px;
  1182. .editForm {
  1183. padding: 0 60px 1vh 60px;
  1184. .el-date-editor {
  1185. display: flex;
  1186. flex: 1;
  1187. }
  1188. .pic {
  1189. display: flex;
  1190. align-items: center;
  1191. .uploader {
  1192. height: 80px;
  1193. width: 80px;
  1194. .el-upload {
  1195. height: 100%;
  1196. width: 100%;
  1197. }
  1198. }
  1199. .picText {
  1200. color: #999999;
  1201. font-family: "PingFang SC";
  1202. font-size: 10px;
  1203. font-style: normal;
  1204. font-weight: 400;
  1205. line-height: 20px;
  1206. margin-left: 10px;
  1207. }
  1208. }
  1209. }
  1210. .content {
  1211. display: flex;
  1212. height: 100%;
  1213. width: 100%;
  1214. .left {
  1215. min-width: 500px;
  1216. }
  1217. .right {
  1218. flex: 1;
  1219. .editFormRighrt {
  1220. padding: 0 60px 0 40px;
  1221. .el-date-editor {
  1222. display: flex;
  1223. flex: 1;
  1224. }
  1225. }
  1226. .editBtns {
  1227. display: flex;
  1228. justify-content: center;
  1229. margin-top: 60px;
  1230. .txt {
  1231. color: #f3fafe;
  1232. text-align: center;
  1233. font-family: "PingFang SC";
  1234. font-size: 14px;
  1235. font-style: normal;
  1236. font-weight: 700;
  1237. line-height: 22px;
  1238. }
  1239. .editBtn1 {
  1240. min-width: 80px;
  1241. padding: 5px 12px;
  1242. justify-content: center;
  1243. align-items: center;
  1244. gap: 4px;
  1245. border-radius: 4px;
  1246. background: #7E91FF;
  1247. border: none;
  1248. box-shadow: 0 0 4px 0 #00000040;
  1249. }
  1250. .editBtn2 {
  1251. display: flex;
  1252. width: 80px;
  1253. min-width: 80px;
  1254. padding: 5px 12px;
  1255. justify-content: center;
  1256. align-items: center;
  1257. gap: 4px;
  1258. border-radius: 4px;
  1259. background: #2741DE;
  1260. border: none;
  1261. box-shadow: 0 0 4px 0 #00000040;
  1262. margin-left: 60px;
  1263. }
  1264. }
  1265. }
  1266. }
  1267. }
  1268. :deep(.adddialog .el-form-item__label) {
  1269. min-width: 80px;
  1270. width: auto;
  1271. font-weight: 800;
  1272. padding-bottom: 15px;
  1273. }
  1274. .refundDialog {
  1275. .left {
  1276. width: 50%;
  1277. height: 70vh;
  1278. min-height: 700px;
  1279. padding: 0 2vw;
  1280. .add-item {
  1281. display: flex;
  1282. align-items: center;
  1283. margin-bottom: 1vh;
  1284. }
  1285. .image {
  1286. width: 4vw !important;
  1287. height: 4vw !important;
  1288. }
  1289. }
  1290. .right {
  1291. width: 50%;
  1292. height: 50vh;
  1293. .add-item {
  1294. display: flex;
  1295. align-items: center;
  1296. margin-bottom: 1vh;
  1297. }
  1298. }
  1299. }
  1300. }
  1301. // 表格样式统一
  1302. :deep(.el-table__header-wrapper),
  1303. :deep(.el-table__body-wrapper),
  1304. :deep(.el-table__cell),
  1305. :deep(.el-table__body td) {
  1306. background-color: #F3FAFE !important;
  1307. }
  1308. :deep(.el-table__header th) {
  1309. background-color: #F3FAFE !important;
  1310. }
  1311. :deep(.el-table__row:hover > .el-table__cell) {
  1312. background-color: #E5EBFE !important;
  1313. }
  1314. // 驳回理由弹窗样式
  1315. .reject-reason-box {
  1316. --el-message-box-height: 500px;
  1317. }
  1318. .reject-reason-box .el-message-box__content {
  1319. max-height: 350px;
  1320. overflow-y: auto;
  1321. white-space: pre-wrap;
  1322. }
  1323. .recallDialog {
  1324. //撤回弹窗提示
  1325. height: 392px;
  1326. width: 700px;
  1327. background-image: url('/src/assets/receive-recall.png');
  1328. position: fixed; // 固定定位,相对于浏览器窗口
  1329. top: 50%; // 距离顶部50%
  1330. left: 50%; // 距离左侧50%
  1331. transform: translate(-50%, -50%); // 向左、向上平移自身宽高的50%,实现居中
  1332. z-index: 1000; // 确保在其他元素上层显示
  1333. .close {
  1334. position: absolute;
  1335. left: 625px;
  1336. top: 20px;
  1337. height: 38px;
  1338. width: 38px;
  1339. opacity: 0;
  1340. .Btn {
  1341. height: 100%;
  1342. width: 100%;
  1343. border-radius: 10px;
  1344. }
  1345. }
  1346. .text {
  1347. position: absolute;
  1348. left: 185px;
  1349. top: 190px;
  1350. height: 67px;
  1351. width: 500px;
  1352. .txt {
  1353. height: 100%;
  1354. width: 100%;
  1355. color: #001a42;
  1356. font-family: "PingFang SC";
  1357. font-size: 48px;
  1358. font-style: normal;
  1359. font-weight: 900;
  1360. line-height: normal;
  1361. }
  1362. }
  1363. .cancle {
  1364. position: absolute;
  1365. left: 185px;
  1366. top: 304px;
  1367. height: 55px;
  1368. width: 150px;
  1369. opacity: 0;
  1370. .Btn {
  1371. height: 100%;
  1372. width: 100%;
  1373. border-radius: 20px;
  1374. }
  1375. }
  1376. .confirm {
  1377. position: absolute;
  1378. left: 375px;
  1379. top: 304px;
  1380. height: 55px;
  1381. width: 150px;
  1382. opacity: 0;
  1383. .Btn {
  1384. height: 100%;
  1385. width: 100%;
  1386. border-radius: 20px;
  1387. }
  1388. }
  1389. }
  1390. </style>