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.

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