deposit_list.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  1. <template>
  2. <div class="app-container">
  3. <div v-if="showPage == 1">
  4. <el-radio-group v-model="deduction" size="mini" @change="handleRadio">
  5. <el-radio-button label="全部"/>
  6. <el-radio-button label="已退押"/>
  7. </el-radio-group>
  8. <br><br>
  9. <!-- 筛选条件 -->
  10. <div>
  11. <el-form
  12. ref="screenForm"
  13. :model="screenForm"
  14. label-width="140px"
  15. size="mini"
  16. label-position="left"
  17. >
  18. <el-row :gutter="20">
  19. <el-col :xs="24" :sm="12" :lg="6">
  20. <el-form-item label="工程登录编号" prop="refEnginRecordNo">
  21. <el-input
  22. v-model="screenForm.refEnginRecordNo"
  23. placeholder="请输入"
  24. />
  25. </el-form-item>
  26. </el-col>
  27. <el-col :xs="24" :sm="12" :lg="6">
  28. <el-form-item label="经销商编码/名称" prop="customerKeyword">
  29. <el-input
  30. v-model="screenForm.customerKeyword"
  31. placeholder="请输入"
  32. />
  33. </el-form-item>
  34. </el-col>
  35. <!-- <el-col :xs="24" :sm="12" :lg="6">
  36. <el-form-item label="经销商名称" prop="customerKeyword">
  37. <el-input
  38. v-model="screenForm.customerKeyword"
  39. placeholder="请输入"
  40. ></el-input>
  41. </el-form-item>
  42. </el-col> -->
  43. <el-col :xs="24" :sm="12" :lg="6">
  44. <el-form-item label="行业类别" prop="refTradeCategory">
  45. <el-input v-model="screenForm.refTradeCategory" placeholder="请输入"></el-input>
  46. </el-form-item>
  47. </el-col>
  48. <el-col :xs="24" :sm="12" :lg="6">
  49. <el-form-item label="使用单位" prop="refUseUnit">
  50. <el-input
  51. v-model="screenForm.refUseUnit"
  52. placeholder="请输入使用单位"
  53. />
  54. </el-form-item>
  55. </el-col>
  56. <el-col :xs="24" :sm="12" :lg="6">
  57. <el-form-item label="开始申请日期" prop="startSubmitTime">
  58. <el-date-picker
  59. v-model="screenForm.startSubmitTime"
  60. value-format="yyyy-MM-dd HH:mm:ss"
  61. class="dateStyle"
  62. type="datetime"
  63. placeholder="选择日期"
  64. />
  65. </el-form-item>
  66. </el-col>
  67. <el-col :xs="24" :sm="12" :lg="6">
  68. <el-form-item label="结束申请日期" prop="endSubmitTime">
  69. <el-date-picker
  70. v-model="screenForm.endSubmitTime"
  71. value-format="yyyy-MM-dd HH:mm:ss"
  72. class="dateStyle"
  73. type="datetime"
  74. placeholder="选择日期"
  75. />
  76. </el-form-item>
  77. </el-col>
  78. <el-col :xs="24" :sm="12" :lg="6">
  79. <el-form-item label="开始受理日期" prop="startConfirmTime">
  80. <el-date-picker
  81. v-model="screenForm.startConfirmTime"
  82. value-format="yyyy-MM-dd HH:mm:ss"
  83. class="dateStyle"
  84. type="datetime"
  85. placeholder="选择日期"
  86. />
  87. </el-form-item>
  88. </el-col>
  89. <el-col :xs="24" :sm="12" :lg="6">
  90. <el-form-item label="结束受理日期" prop="endConfirmTime">
  91. <el-date-picker
  92. v-model="screenForm.endConfirmTime"
  93. value-format="yyyy-MM-dd HH:mm:ss"
  94. class="dateStyle"
  95. type="datetime"
  96. placeholder="选择日期"
  97. />
  98. </el-form-item>
  99. </el-col>
  100. <el-col :xs="24" :sm="12" :lg="6">
  101. <el-form-item label="是否退押 " prop="isRefundDeposit">
  102. <el-select style="width:100%" v-model="screenForm.isRefundDeposit" clearable placeholder="请选择是否退押 ">
  103. <el-option v-for="item in refundDepositArr"
  104. :key="item.value"
  105. :label="item.label"
  106. :value="item.value">
  107. </el-option>
  108. </el-select>
  109. </el-form-item>
  110. </el-col>
  111. <el-col :xs="24" :sm="12" :lg="6">
  112. <el-form-item label="状态 " prop="examineStatus">
  113. <el-select style="width:100%" v-model="screenForm.examineStatus" clearable placeholder="请选择状态 ">
  114. <el-option v-for="item in examineStatusArr"
  115. :key="item.value"
  116. :label="item.label"
  117. :value="item.value">
  118. </el-option>
  119. </el-select>
  120. </el-form-item>
  121. </el-col>
  122. <!-- <el-col :xs="24" :sm="12" :lg="6">
  123. <el-form-item label="产品名称" prop="">
  124. <el-input placeholder="请输入"></el-input>
  125. </el-form-item>
  126. </el-col>
  127. <el-col :xs="24" :sm="12" :lg="6">
  128. <el-form-item label="规格型号" prop="">
  129. <el-input placeholder="请输入"></el-input>
  130. </el-form-item>
  131. </el-col> -->
  132. <template v-if="!isCustomer">
  133. <el-col :xs="24" :sm="12" :lg="6">
  134. <el-form-item label="审核人" prop="confirmName">
  135. <el-input
  136. v-model="screenForm.confirmName"
  137. placeholder="请输入审核人"
  138. />
  139. </el-form-item>
  140. </el-col>
  141. <el-col :xs="24" :sm="12" :lg="6">
  142. <el-form-item label="区域" prop="refRegionWork">
  143. <el-input
  144. v-model="screenForm.refRegionWork"
  145. placeholder="请输入区域"
  146. />
  147. </el-form-item>
  148. </el-col>
  149. <el-col :xs="24" :sm="12" :lg="6">
  150. <el-form-item label="安装日期" style="margin-bottom:0">
  151. <div class="fanwei">
  152. <el-form-item prop="startInstallTime">
  153. <el-date-picker
  154. v-model="screenForm.startInstallTime"
  155. value-format="yyyy-MM-dd HH:mm:ss"
  156. class="dateStyle"
  157. type="datetime"
  158. placeholder="选择日期"
  159. />
  160. </el-form-item>
  161. <span>-</span>
  162. <el-form-item prop="endInstallTime">
  163. <el-date-picker
  164. v-model="screenForm.endInstallTime"
  165. value-format="yyyy-MM-dd HH:mm:ss"
  166. class="dateStyle"
  167. type="datetime"
  168. placeholder="选择日期"
  169. />
  170. </el-form-item>
  171. </div>
  172. </el-form-item>
  173. </el-col>
  174. <el-col :xs="24" :sm="12" :lg="6">
  175. <el-form-item label="规格型号" prop="specification">
  176. <el-input v-model="screenForm.specification" placeholder="请输入规格型号"></el-input>
  177. </el-form-item>
  178. </el-col>
  179. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  180. <el-form-item label="特价编号" prop="specialNo">
  181. <el-input v-model="screenForm.specialNo" placeholder="请输入特价编号"></el-input>
  182. </el-form-item>
  183. </el-col>
  184. <el-col :xs="24" :sm="12" :lg="6">
  185. <el-form-item label="跨区厂编号" prop="refFactoryNo">
  186. <el-input v-model="screenForm.refFactoryNo" placeholder="请输入跨区厂编号"></el-input>
  187. </el-form-item>
  188. </el-col>
  189. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  190. <el-form-item label="格力内部备注" prop="geLiInerNote">
  191. <el-input v-model="screenForm.geLiInerNote" placeholder="请输入格力内部备注"></el-input>
  192. </el-form-item>
  193. </el-col>
  194. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  195. <el-form-item label="厂编号" prop="factoryNo">
  196. <el-input v-model="screenForm.factoryNo" placeholder="请输入厂编号"></el-input>
  197. </el-form-item>
  198. </el-col>
  199. <el-col :xs="24" :sm="12" :lg="6">
  200. <el-form-item label="资料审核开始日期" prop="startAcceptTime">
  201. <el-date-picker
  202. v-model="screenForm.startAcceptTime"
  203. value-format="yyyy-MM-dd HH:mm:ss"
  204. class="dateStyle"
  205. type="datetime"
  206. placeholder="选择日期"
  207. />
  208. </el-form-item>
  209. </el-col>
  210. <el-col :xs="24" :sm="12" :lg="6">
  211. <el-form-item label="资料审核结束日期" prop="endAcceptTime">
  212. <el-date-picker
  213. v-model="screenForm.endAcceptTime"
  214. value-format="yyyy-MM-dd HH:mm:ss"
  215. class="dateStyle"
  216. type="datetime"
  217. placeholder="选择日期"
  218. />
  219. </el-form-item>
  220. </el-col>
  221. </template>
  222. <el-col :xs="24" :sm="24" :lg="24">
  223. <div class="fl">
  224. <!-- <el-radio-group @change="changeEnginOrderTypeFn" v-model="enginOrderType" size="mini">
  225. <el-radio-button label="HOME">家用工程</el-radio-button>
  226. <el-radio-button label="TRADE">商用工程</el-radio-button>
  227. </el-radio-group> -->
  228. <el-button type="primary" size="mini" @click="syncDateFn">同步资料日期</el-button>
  229. </div>
  230. <el-form-item label="" class="fr">
  231. <el-button
  232. size="mini"
  233. @click="resetScreenForm"
  234. >清空
  235. </el-button>
  236. <el-button
  237. size="mini"
  238. type="primary"
  239. @click="submitScreenForm"
  240. >搜索
  241. </el-button>
  242. </el-form-item>
  243. </el-col>
  244. </el-row>
  245. </el-form>
  246. </div>
  247. <!-- 按钮 -->
  248. <div class="btn-group clearfix" style="display: flex">
  249. <el-button
  250. type="primary"
  251. size="mini"
  252. @click="hanleDownloadFiles"
  253. >导出
  254. </el-button>
  255. <el-upload
  256. v-if="$checkBtnRole('import', $route.meta.roles)"
  257. class="import-btn"
  258. :action="baseURL + 'student/import'"
  259. :http-request="handleImport"
  260. :file-list="importFileList"
  261. :show-file-list="false"
  262. >
  263. <el-button size="mini">导入</el-button>
  264. </el-upload>
  265. </div>
  266. <!-- 列表 -->
  267. <div class="mymain-container">
  268. <div class="table">
  269. <el-table
  270. v-loading="listLoading"
  271. :data="dataList"
  272. element-loading-text="Loading"
  273. border
  274. fit
  275. highlight-current-row
  276. stripe
  277. show-summary
  278. :summary-method="$getSummaries"
  279. @select-all="handleSelectionAllChange"
  280. @selection-change="handleSelectionAllChange"
  281. >
  282. <el-table-column align="left" type="selection" width="55"/>
  283. <el-table-column
  284. align="left"
  285. label="工程登录编号"
  286. prop="refEnginRecordNo"
  287. min-width="160"
  288. show-overflow-tooltip
  289. />
  290. <el-table-column v-if="!isCustomer" align="right" label="跨区厂编号" min-width="160" show-overflow-tooltip>
  291. <template slot-scope="scope">
  292. <CopyButton :copyText="scope.row.refFactoryNo" />
  293. <span>{{scope.row.refFactoryNo}}</span>
  294. </template>
  295. </el-table-column>
  296. <el-table-column v-if="!isCustomer" align="right" label="安装日期" prop="installDate" min-width="160" show-overflow-tooltip>
  297. </el-table-column>
  298. <el-table-column v-if="!isCustomer" align="right" label="厂编号" prop="factoryNo" min-width="160" show-overflow-tooltip>
  299. </el-table-column>
  300. <el-table-column v-if="!isCustomer" align="right" label="特价编号" prop="specialNo" min-width="160" show-overflow-tooltip>
  301. </el-table-column>
  302. <el-table-column align="left" label="行业类别" prop="refTradeCategory" min-width="160" show-overflow-tooltip>
  303. <template slot-scope="scope">
  304. <CopyButton :copyText="scope.row.refTradeCategory" />
  305. <span>{{scope.row.refTradeCategory}}</span>
  306. </template>
  307. </el-table-column>
  308. <el-table-column
  309. align="left"
  310. label="使用单位"
  311. prop="refUseUnit"
  312. min-width="160"
  313. show-overflow-tooltip
  314. />
  315. <el-table-column align="left" label="区域" prop="refRegionWork" min-width="160" show-overflow-tooltip>
  316. <template slot-scope="scope">
  317. <CopyButton :copyText="scope.row.refRegionWork" />
  318. <span>{{scope.row.refRegionWork}}</span>
  319. </template>
  320. </el-table-column>
  321. <el-table-column
  322. align="left"
  323. label="申请日期"
  324. prop="submitTime"
  325. min-width="160"
  326. show-overflow-tooltip
  327. />
  328. <el-table-column
  329. align="left"
  330. label="受理日期"
  331. prop="checkDate"
  332. min-width="160"
  333. show-overflow-tooltip
  334. />
  335. <el-table-column
  336. align="left"
  337. label="经销商编码"
  338. prop="customerNumber"
  339. min-width="160"
  340. show-overflow-tooltip
  341. >
  342. <template slot-scope="scope">
  343. <CopyButton :copy-text="scope.row.customerNumber"/>
  344. <span>{{ scope.row.customerNumber }}</span>
  345. </template>
  346. </el-table-column>
  347. <el-table-column
  348. align="left"
  349. label="经销商名称"
  350. prop="customerName"
  351. min-width="300"
  352. show-overflow-tooltip
  353. >
  354. <template slot-scope="scope">
  355. <CopyButton :copy-text="scope.row.customerName"/>
  356. <span>{{ scope.row.customerName }}</span>
  357. </template>
  358. </el-table-column>
  359. <el-table-column v-if="!isCustomer" align="left" label="格力内部备注" prop="geLiInerNote" min-width="160" show-overflow-tooltip>
  360. <template slot-scope="scope">
  361. <span>{{scope.row.geLiInerNote}}</span>
  362. </template>
  363. </el-table-column>
  364. <el-table-column
  365. align="left"
  366. label="规格型号"
  367. prop="specification"
  368. min-width="300"
  369. show-overflow-tooltip
  370. >
  371. <template slot-scope="scope">
  372. <CopyButton :copy-text="scope.row.specification"/>
  373. <span>{{ scope.row.specification }}</span>
  374. </template>
  375. </el-table-column>
  376. <el-table-column
  377. align="left"
  378. label="是否退押"
  379. prop="isRefundDeposit"
  380. min-width="160"
  381. show-overflow-tooltip
  382. >
  383. <template slot-scope="scope">
  384. <el-tag
  385. v-if="scope.row.isRefundDeposit"
  386. type="success"
  387. size="small"
  388. >是
  389. </el-tag>
  390. <el-tag v-else type="warning" size="small">否</el-tag>
  391. </template>
  392. </el-table-column>
  393. <!-- <el-table-column
  394. align="left"
  395. label="押金比例"
  396. prop=""
  397. min-width="160"
  398. show-overflow-tooltip
  399. ></el-table-column> -->
  400. <el-table-column
  401. align="right"
  402. label="押金金额"
  403. prop="itemDepositAmount"
  404. min-width="160"
  405. show-overflow-tooltip
  406. >
  407. <template slot-scope="scope">
  408. {{ scope.row.itemDepositAmount | numToFixed }}
  409. </template>
  410. </el-table-column>
  411. <el-table-column
  412. align="left"
  413. label="状态"
  414. prop="examineStatus"
  415. min-width="160"
  416. show-overflow-tooltip
  417. >
  418. <template slot-scope="scope">
  419. <el-tag
  420. v-if="scope.row.examineStatus == 'SAVE'"
  421. type="success"
  422. size="small"
  423. >保存
  424. </el-tag>
  425. <el-tag
  426. v-if="scope.row.examineStatus == 'WAIT'"
  427. type="warning"
  428. size="small"
  429. >待审核
  430. </el-tag>
  431. <el-tag
  432. v-if="scope.row.examineStatus == 'OK'"
  433. type="warning"
  434. size="mini"
  435. >通过
  436. </el-tag>
  437. <el-tag
  438. v-if="scope.row.examineStatus == 'FAIL'"
  439. type="warning"
  440. size="small"
  441. >不通过
  442. </el-tag>
  443. <el-tag
  444. v-if="scope.row.examineStatus == 'CLOSE'"
  445. type="warning"
  446. size="small"
  447. >关闭
  448. </el-tag>
  449. </template>
  450. </el-table-column>
  451. <el-table-column
  452. align="right"
  453. label="订单数量"
  454. prop="qty"
  455. min-width="160"
  456. show-overflow-tooltip
  457. />
  458. <el-table-column
  459. align="left"
  460. label="资料审核日期"
  461. prop="refDatumAcceptDate"
  462. min-width="160"
  463. show-overflow-tooltip
  464. ></el-table-column>
  465. <el-table-column
  466. align="center"
  467. label="操作"
  468. min-width="160"
  469. fixed="right"
  470. show-overflow-tooltip
  471. >
  472. <template slot-scope="scope">
  473. <el-button
  474. type="text"
  475. class="textColor"
  476. size="mini"
  477. @click="detailFn(scope.row)"
  478. >详情
  479. </el-button>
  480. <el-button
  481. v-if="
  482. scope.row.examineStatus == 'SAVE' &&
  483. $checkBtnRole('apply', $route.meta.roles)
  484. "
  485. type="text"
  486. class="textColor"
  487. @click="surrenderFn(scope.row)"
  488. >申请退押
  489. </el-button>
  490. <!-- <el-button type="text" class="textColor" slot="reference"
  491. >免扣退押</el-button
  492. > -->
  493. </template>
  494. </el-table-column>
  495. </el-table>
  496. </div>
  497. <!-- 分页 -->
  498. <div class="fr">
  499. <el-pagination
  500. :current-page="currentPage"
  501. :page-sizes="[10, 50, 100, 500]"
  502. :page-size="10"
  503. layout="total, sizes, prev, pager, next, jumper"
  504. :total="listTotal"
  505. @size-change="handleSizeChange"
  506. @current-change="handleCurrentChange"
  507. />
  508. </div>
  509. </div>
  510. </div>
  511. <DepositListDetail v-else-if="showPage == 2"/>
  512. <DepositApplyDeduction v-else-if="showPage == 3"/>
  513. <DepositApplySurrender v-else-if="showPage == 4"/>
  514. </div>
  515. </template>
  516. <script>
  517. import DepositListDetail from './components/deposit_list-detail'
  518. import {
  519. getDepositManageDate,
  520. } from "@/api/engin_deposit/refund_list";
  521. import DepositApplyDeduction from './components/deposit-apply-deduction.vue'
  522. import DepositApplySurrender from './components/deposit-apply-surrender.vue'
  523. import {downloadFiles, handleImport} from '@/utils/util'
  524. import {getList} from '@/api/engin_deposit.js'
  525. import Mixin from '@/mixin'
  526. export default {
  527. components: {
  528. DepositListDetail,
  529. DepositApplyDeduction,
  530. DepositApplySurrender
  531. },
  532. mixins: [Mixin],
  533. data() {
  534. return {
  535. currentPage: 1, // 当前页码
  536. pageSize: 10, // 每页数量
  537. listTotal: 0, // 列表总数
  538. dataList: [], // 列表数据
  539. screenForm: {
  540. confirmName: '', // 审核人
  541. createName: '', // 创建人
  542. customerKeyword: '', // 客户编码/客户名称
  543. endDeliverTime: '', // 发货申请日期-结束
  544. enginOrderNo: '', // 工程订单编号
  545. enginOrderType: 'HOME', // 工程订单类型
  546. examineStatus: '', // 状态
  547. refEnginRecordNo: '', // 登录单号
  548. refProjectName: '', // 项目名称
  549. refTradeCategory: '',
  550. refUseUnit: '', // 使用单位
  551. startDeliverTime: '', // 发货申请日期-开始
  552. startSubmitTime: '',
  553. startConfirmTime: '',
  554. isRefundDeposit: null,
  555. endConfirmTime: '',
  556. startInstallTime: '',
  557. endInstallTime: '',
  558. specification: '',
  559. refFactoryNo: '',
  560. factoryNo: '',
  561. specialNo: '',
  562. refRegionWork: '',
  563. endSubmitTime: '',
  564. startAcceptTime: '',
  565. endAcceptTime: '',
  566. geLiInerNote: '',
  567. }, // 搜索表单
  568. listLoading: false, // 列表加载loading
  569. deduction: '全部',
  570. showPage: 1,
  571. importFileList: [],
  572. selectData: [],
  573. baseURL: '',
  574. refundDepositArr: [
  575. {
  576. label: '是',
  577. value: true
  578. },
  579. {
  580. label: '否',
  581. value: false
  582. }
  583. ],
  584. examineStatusArr: [
  585. {
  586. label: '保存',
  587. value: 'SAVE'
  588. },
  589. {
  590. label: '待审核',
  591. value: 'WAIT'
  592. },
  593. {
  594. label: '通过',
  595. value: 'OK'
  596. },
  597. {
  598. label: '关闭',
  599. value: 'CLOSE'
  600. },
  601. ]
  602. }
  603. },
  604. computed: {
  605. isCustomer() {
  606. return this.$store.getters.customerId && this.$store.getters.customerNumber
  607. }
  608. },
  609. methods: {
  610. //同步资料日期
  611. async syncDateFn() {
  612. await getDepositManageDate();
  613. this.$message.success("同步资料日期成功");
  614. },
  615. // 免扣申请
  616. deductionFn() {
  617. this.showPage = 3
  618. },
  619. // 申请退押
  620. surrenderFn(row) {
  621. this.depositManageId = row.depositManageId
  622. this.showPage = 4
  623. },
  624. detailFn(row) {
  625. this.depositManageId = row.depositManageId
  626. this.refEnginRecordNo = row.refEnginRecordNo
  627. this.showPage = 2
  628. },
  629. getList() {
  630. this.listLoading = true
  631. const params = {
  632. pageSize: this.pageSize,
  633. pageNum: this.currentPage,
  634. isRefundDeposit: '',
  635. ...this.screenForm
  636. }
  637. params.isRefundDeposit = this.deduction === '已退押' ? true : ''
  638. if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false) {
  639. params.isRefundDeposit = this.screenForm.isRefundDeposit
  640. }
  641. getList(params).then((res) => {
  642. this.dataList = res.data.records
  643. res.data.records.forEach((item) => {
  644. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  645. item.sums1 = ['qty']
  646. item.sums2 = ['itemDepositAmount', 'diffAmount', 'price']
  647. })
  648. this.listLoading = false
  649. this.listTotal = res.data.total
  650. })
  651. },
  652. handleRadio() {
  653. this.getList()
  654. },
  655. hanleDownloadFiles() {
  656. if (this.selectData.length) {
  657. const arr = []
  658. for (let i = 0; i < this.selectData.length; i++) {
  659. arr.push(this.selectData[i].depositManageId)
  660. }
  661. downloadFiles('/deposit-manage/export', {id: arr, orderType: 'HOME'})
  662. } else {
  663. this.$errorMsg('请选择押金项')
  664. }
  665. },
  666. // 导入
  667. async handleImport(param) {
  668. this.importLoading = true
  669. const file = param.file
  670. console.log(file, 123)
  671. const formData = new FormData()
  672. formData.append('file', file)
  673. // formData.append("policyId", this.screenForm.code);
  674. const result = await handleImport('deposit-manage/import', formData)
  675. this.importLoading = false
  676. this.importFileList = []
  677. if (result.code == 200) {
  678. this.$alert(result.message, '导入成功', {
  679. confirmButtonText: '确定'
  680. })
  681. this.handletwoList()
  682. } else {
  683. this.$alert(result.message, '导入失败', {
  684. confirmButtonText: '确定'
  685. })
  686. }
  687. },
  688. handleSelectionAllChange(e) {
  689. this.selectData = e
  690. }
  691. }
  692. }
  693. </script>
  694. <style lang="scss" scoped>
  695. .fanwei {
  696. display: flex;
  697. span {
  698. margin: 0 20px;
  699. }
  700. div {
  701. width: 100%
  702. }
  703. }
  704. .dateStyle {
  705. width: 100%;
  706. }
  707. .import-btn {
  708. margin-left: 10px;
  709. }
  710. </style>