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.

1562 lines
61 KiB

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