deposit_list.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  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. class="dateStyle"
  61. value-format="yyyy-MM-dd HH:mm:ss"
  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. class="dateStyle"
  72. value-format="yyyy-MM-dd HH:mm:ss"
  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. class="dateStyle"
  83. value-format="yyyy-MM-dd HH:mm:ss"
  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. class="dateStyle"
  94. value-format="yyyy-MM-dd HH:mm:ss"
  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. class="dateStyle"
  156. value-format="yyyy-MM-dd HH:mm:ss"
  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. class="dateStyle"
  166. type="datetime"
  167. value-format="yyyy-MM-dd HH:mm:ss"
  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 :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 :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 :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="厂编号" style="margin-bottom:0">
  201. <div class="fanwei">
  202. <el-form-item prop="startFactoryNo">
  203. <el-input v-model="screenForm.startFactoryNo" placeholder="厂编号开始" ></el-input>
  204. </el-form-item>
  205. <span>-</span>
  206. <el-form-item prop="endFactoryNo">
  207. <el-input v-model="screenForm.endFactoryNo" placeholder="厂编号结束" ></el-input>
  208. </el-form-item>
  209. </div>
  210. </el-form-item>
  211. </el-col>
  212. <el-col :xs="24" :sm="12" :lg="6">
  213. <el-form-item label="资料审核开始日期" prop="startAcceptTime">
  214. <el-date-picker
  215. v-model="screenForm.startAcceptTime"
  216. value-format="yyyy-MM-dd HH:mm:ss"
  217. class="dateStyle"
  218. type="datetime"
  219. placeholder="选择日期"
  220. />
  221. </el-form-item>
  222. </el-col>
  223. <el-col :xs="24" :sm="12" :lg="6">
  224. <el-form-item label="资料审核结束日期" prop="endAcceptTime">
  225. <el-date-picker
  226. v-model="screenForm.endAcceptTime"
  227. value-format="yyyy-MM-dd HH:mm:ss"
  228. class="dateStyle"
  229. type="datetime"
  230. placeholder="选择日期"
  231. />
  232. </el-form-item>
  233. </el-col>
  234. </template>
  235. <el-col :xs="24" :sm="24" :lg="24">
  236. <div class="fl" v-if="!isCustomer">
  237. <!-- <el-radio-group @change="changeEnginOrderTypeFn" v-model="enginOrderType" size="mini">
  238. <el-radio-button label="TRADE">家用工程</el-radio-button>
  239. <el-radio-button label="TRADE">商用工程</el-radio-button>
  240. </el-radio-group> -->
  241. <!-- <el-button type="primary" size="mini" @click="syncDateFn">同步资料日期</el-button> -->
  242. </div>
  243. <el-form-item label="" class="fr">
  244. <el-button
  245. size="mini"
  246. @click="resetScreenForm"
  247. >清空</el-button>
  248. <el-button
  249. size="mini"
  250. type="primary"
  251. @click="submitScreenForm"
  252. >搜索</el-button>
  253. </el-form-item>
  254. </el-col>
  255. </el-row>
  256. </el-form>
  257. </div>
  258. <!-- 按钮 -->
  259. <div class="btn-group clearfix" style="display: flex">
  260. <el-button
  261. type="primary"
  262. size="mini"
  263. @click="hanleDownloadFiles"
  264. >导出</el-button>
  265. <el-upload
  266. v-if="$checkBtnRole('import', $route.meta.roles)"
  267. class="import-btn"
  268. :action="baseURL + 'student/import'"
  269. :http-request="handleImport"
  270. :file-list="importFileList"
  271. :show-file-list="false"
  272. >
  273. <el-button size="mini">导入</el-button>
  274. </el-upload>
  275. </div>
  276. <!-- 列表 -->
  277. <div class="mymain-container">
  278. <div class="table">
  279. <el-table
  280. v-loading="listLoading"
  281. :data="dataList"
  282. element-loading-text="Loading"
  283. border
  284. fit
  285. highlight-current-row
  286. stripe
  287. show-summary
  288. :summary-method="$getSummaries"
  289. @select-all="handleSelectionAllChange"
  290. @selection-change="handleSelectionAllChange"
  291. >
  292. <el-table-column align="left" type="selection" width="55" />
  293. <el-table-column
  294. align="left"
  295. label="工程登录编号"
  296. prop="refEnginRecordNo"
  297. min-width="160"
  298. show-overflow-tooltip
  299. />
  300. <el-table-column
  301. align="left"
  302. label="使用单位"
  303. prop="refUseUnit"
  304. min-width="160"
  305. show-overflow-tooltip
  306. />
  307. <el-table-column
  308. align="left"
  309. label="申请日期"
  310. prop="submitTime"
  311. min-width="160"
  312. show-overflow-tooltip
  313. />
  314. <el-table-column
  315. align="left"
  316. label="受理日期"
  317. prop="checkDate"
  318. min-width="160"
  319. show-overflow-tooltip
  320. />
  321. <el-table-column
  322. align="left"
  323. label="经销商编码"
  324. prop="customerNumber"
  325. min-width="160"
  326. show-overflow-tooltip
  327. >
  328. <template slot-scope="scope">
  329. <CopyButton :copy-text="scope.row.customerNumber" />
  330. <span>{{ scope.row.customerNumber }}</span>
  331. </template>
  332. </el-table-column>
  333. <el-table-column
  334. align="left"
  335. label="经销商名称"
  336. prop="customerName"
  337. min-width="300"
  338. show-overflow-tooltip
  339. >
  340. <template slot-scope="scope">
  341. <CopyButton :copy-text="scope.row.customerName" />
  342. <span>{{ scope.row.customerName }}</span>
  343. </template>
  344. </el-table-column>
  345. <el-table-column
  346. align="left"
  347. label="规格型号"
  348. prop="specification"
  349. min-width="300"
  350. show-overflow-tooltip
  351. >
  352. <template slot-scope="scope">
  353. <CopyButton :copy-text="scope.row.specification" />
  354. <span>{{ scope.row.specification }}</span>
  355. </template>
  356. </el-table-column>
  357. <el-table-column
  358. align="left"
  359. label="是否退押"
  360. prop="isRefundDeposit"
  361. min-width="160"
  362. show-overflow-tooltip
  363. >
  364. <template slot-scope="scope">
  365. <el-tag
  366. v-if="scope.row.isRefundDeposit"
  367. type="success"
  368. size="small"
  369. >是</el-tag>
  370. <el-tag v-else type="warning" size="small">否</el-tag>
  371. </template>
  372. </el-table-column>
  373. <!-- <el-table-column
  374. align="left"
  375. label="押金比例"
  376. prop=""
  377. min-width="160"
  378. show-overflow-tooltip
  379. ></el-table-column> -->
  380. <el-table-column
  381. align="right"
  382. label="押金金额"
  383. prop="itemDepositAmount"
  384. min-width="160"
  385. show-overflow-tooltip
  386. >
  387. <template slot-scope="scope">
  388. {{ scope.row.itemDepositAmount | numToFixed }}
  389. </template>
  390. </el-table-column>
  391. <el-table-column
  392. align="left"
  393. label="状态"
  394. prop="examineStatus"
  395. min-width="160"
  396. show-overflow-tooltip
  397. >
  398. <template slot-scope="scope">
  399. <el-tag
  400. v-if="scope.row.examineStatus == 'SAVE'"
  401. type="success"
  402. size="small"
  403. >保存
  404. </el-tag>
  405. <el-tag
  406. v-if="scope.row.examineStatus == 'WAIT'"
  407. type="warning"
  408. size="small"
  409. >待审核
  410. </el-tag>
  411. <el-tag
  412. v-if="scope.row.examineStatus == 'OK'"
  413. type="warning"
  414. size="mini"
  415. >通过</el-tag>
  416. <el-tag
  417. v-if="scope.row.examineStatus == 'FAIL'"
  418. type="warning"
  419. size="small"
  420. >不通过</el-tag>
  421. <el-tag
  422. v-if="scope.row.examineStatus == 'CLOSE'"
  423. type="warning"
  424. size="small"
  425. >关闭</el-tag>
  426. </template>
  427. </el-table-column>
  428. <el-table-column
  429. align="right"
  430. label="订单数量"
  431. prop="itemQty"
  432. min-width="160"
  433. show-overflow-tooltip
  434. />
  435. <el-table-column
  436. align="left"
  437. label="资料审核日期"
  438. prop="refDatumAcceptDate"
  439. min-width="160"
  440. show-overflow-tooltip
  441. ></el-table-column>
  442. <el-table-column
  443. align="right"
  444. label="金额"
  445. prop="totalPrice"
  446. min-width="160"
  447. show-overflow-tooltip
  448. >
  449. <template slot-scope="scope">
  450. {{ scope.row.totalPrice | numToFixed}}
  451. </template>
  452. </el-table-column>
  453. <el-table-column
  454. align="right"
  455. label="发货数量"
  456. prop="hasSendQty"
  457. min-width="160"
  458. show-overflow-tooltip
  459. />
  460. <!-- <el-table-column-->
  461. <!-- align="right"-->
  462. <!-- label="上交资料"-->
  463. <!-- prop="itemDataQty"-->
  464. <!-- min-width="160"-->
  465. <!-- show-overflow-tooltip-->
  466. <!-- />-->
  467. <el-table-column
  468. align="center"
  469. label="操作"
  470. min-width="160"
  471. fixed="right"
  472. show-overflow-tooltip
  473. >
  474. <template slot-scope="scope">
  475. <el-button
  476. type="text"
  477. class="textColor"
  478. size="mini"
  479. @click="detailFn(scope.row)"
  480. >详情</el-button>
  481. <el-button
  482. v-if="
  483. scope.row.examineStatus == 'SAVE' &&
  484. $checkBtnRole('apply', $route.meta.roles)
  485. "
  486. type="text"
  487. class="textColor"
  488. @click="surrenderFn(scope.row)"
  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: 'TRADE', // 工程订单类型
  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. ,
  565. startAcceptTime:'', endAcceptTime:'',
  566. geLiInerNote:'',factoryNo:'',
  567. startFactoryNo:'',
  568. endFactoryNo:''
  569. }, // 搜索表单
  570. listLoading: false, // 列表加载loading
  571. deduction: '全部',
  572. showPage: 1,
  573. importFileList: [],
  574. selectData: [],
  575. baseURL: '',
  576. refundDepositArr:[
  577. {
  578. label:'是',
  579. value:true
  580. },
  581. {
  582. label:'否',
  583. value:false
  584. }
  585. ],
  586. examineStatusArr:[
  587. {
  588. label:'保存',
  589. value:'SAVE'
  590. },
  591. {
  592. label:'待审核',
  593. value:'WAIT'
  594. },
  595. {
  596. label:'通过',
  597. value:'OK'
  598. },
  599. {
  600. label:'关闭',
  601. value:'CLOSE'
  602. },
  603. ]
  604. }
  605. },
  606. computed:{
  607. isCustomer(){
  608. return this.$store.getters.customerId && this.$store.getters.customerNumber
  609. }
  610. },
  611. methods: {
  612. //同步资料日期
  613. async syncDateFn() {
  614. await getDepositManageDate();
  615. this.$message.success("同步资料日期成功");
  616. },
  617. // 免扣申请
  618. deductionFn() {
  619. this.showPage = 3
  620. },
  621. // 申请退押
  622. surrenderFn(row) {
  623. this.depositManageId = row.depositManageId
  624. this.showPage = 4
  625. },
  626. detailFn(row) {
  627. this.depositManageId = row.depositManageId
  628. this.refEnginRecordNo = row.refEnginRecordNo
  629. this.showPage = 2
  630. },
  631. getList() {
  632. this.listLoading = true
  633. const params = {
  634. pageSize: this.pageSize,
  635. pageNum: this.currentPage,
  636. isRefundDeposit: '',
  637. ...this.screenForm
  638. }
  639. params.isRefundDeposit = this.deduction === '已退押' ? true : ''
  640. if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false ) {
  641. params.isRefundDeposit =this.screenForm.isRefundDeposit
  642. }
  643. getList(params).then((res) => {
  644. this.dataList = res.data.records
  645. res.data.records.forEach((item) => {
  646. item.totalPrice = item.itemPrice * item.itemQty
  647. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  648. item.sums1 = ['qty','hasSendQty','itemDataQty',"hasSendQty"]
  649. item.sums2 = ['itemDepositAmount', 'diffAmount', 'price','totalAmount','depositAmount','totalPrice']
  650. })
  651. this.listLoading = false
  652. this.listTotal = res.data.total
  653. })
  654. },
  655. handleRadio() {
  656. this.getList()
  657. },
  658. hanleDownloadFiles() {
  659. let isRefundDeposit = this.deduction === '已退押' ? true : ''
  660. if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false ) {
  661. isRefundDeposit =this.screenForm.isRefundDeposit
  662. }
  663. console.log(isRefundDeposit);
  664. downloadFiles('/deposit-manage/export', {
  665. ...this.screenForm,
  666. isRefundDeposit,
  667. orderType:'TRADE' })
  668. },
  669. // 导入
  670. async handleImport(param) {
  671. this.importLoading = true
  672. const file = param.file
  673. console.log(file, 123)
  674. const formData = new FormData()
  675. formData.append('file', file)
  676. // formData.append("policyId", this.screenForm.code);
  677. const result = await handleImport('deposit-manage/import', formData)
  678. this.importLoading = false
  679. this.importFileList = []
  680. if (result.code == 200) {
  681. this.$alert(result.message, '导入成功', {
  682. confirmButtonText: '确定'
  683. })
  684. this.handletwoList()
  685. } else {
  686. this.$alert(result.message, '导入失败', {
  687. confirmButtonText: '确定'
  688. })
  689. }
  690. },
  691. handleSelectionAllChange(e) {
  692. this.selectData = e
  693. }
  694. }
  695. }
  696. </script>
  697. <style lang="scss" scoped>
  698. .app-container{
  699. padding:40px 20px
  700. }
  701. .fanwei {
  702. display: flex;
  703. span {
  704. margin: 0 20px;
  705. }
  706. div{
  707. width:100%
  708. }
  709. }
  710. .dateStyle {
  711. width: 100%;
  712. }
  713. .import-btn {
  714. margin-left: 10px;
  715. }
  716. </style>