deposit_list.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  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" v-if="!isCustomer">
  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="HOME">家用工程</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. >清空
  248. </el-button>
  249. <el-button
  250. size="mini"
  251. type="primary"
  252. @click="submitScreenForm"
  253. >搜索
  254. </el-button>
  255. </el-form-item>
  256. </el-col>
  257. </el-row>
  258. </el-form>
  259. </div>
  260. <!-- 按钮 -->
  261. <div class="btn-group clearfix" style="display: flex">
  262. <el-button
  263. type="primary"
  264. size="mini"
  265. @click="hanleDownloadFiles"
  266. >导出
  267. </el-button>
  268. <el-upload
  269. v-if="$checkBtnRole('import', $route.meta.roles)"
  270. class="import-btn"
  271. :action="baseURL + 'student/import'"
  272. :http-request="handleImport"
  273. :file-list="importFileList"
  274. :show-file-list="false"
  275. >
  276. <el-button size="mini">导入</el-button>
  277. </el-upload>
  278. </div>
  279. <!-- 列表 -->
  280. <div class="mymain-container">
  281. <div class="table">
  282. <el-table
  283. v-loading="listLoading"
  284. :data="dataList"
  285. element-loading-text="Loading"
  286. border
  287. fit
  288. highlight-current-row
  289. stripe
  290. show-summary
  291. :summary-method="$getSummaries"
  292. @select-all="handleSelectionAllChange"
  293. @selection-change="handleSelectionAllChange"
  294. >
  295. <el-table-column align="left" type="selection" width="55"/>
  296. <el-table-column
  297. align="left"
  298. label="工程登录编号"
  299. prop="refEnginRecordNo"
  300. min-width="160"
  301. show-overflow-tooltip
  302. />
  303. <el-table-column v-if="!isCustomer" align="right" label="跨区厂编号" min-width="160" show-overflow-tooltip>
  304. <template slot-scope="scope">
  305. <CopyButton :copyText="scope.row.refFactoryNo" />
  306. <span>{{scope.row.refFactoryNo}}</span>
  307. </template>
  308. </el-table-column>
  309. <el-table-column v-if="!isCustomer" align="right" label="安装日期" prop="installDate" min-width="160" show-overflow-tooltip>
  310. </el-table-column>
  311. <el-table-column v-if="!isCustomer" align="right" label="厂编号" prop="factoryNo" min-width="160" show-overflow-tooltip>
  312. </el-table-column>
  313. <el-table-column v-if="!isCustomer" align="right" label="特价编号" prop="specialNo" min-width="160" show-overflow-tooltip>
  314. </el-table-column>
  315. <el-table-column align="left" label="行业类别" prop="refTradeCategory" min-width="160" show-overflow-tooltip>
  316. <template slot-scope="scope">
  317. <CopyButton :copyText="scope.row.refTradeCategory" />
  318. <span>{{scope.row.refTradeCategory}}</span>
  319. </template>
  320. </el-table-column>
  321. <el-table-column
  322. align="left"
  323. label="使用单位"
  324. prop="refUseUnit"
  325. min-width="160"
  326. show-overflow-tooltip
  327. />
  328. <el-table-column align="left" label="区域" prop="refRegionWork" min-width="160" show-overflow-tooltip>
  329. <template slot-scope="scope">
  330. <CopyButton :copyText="scope.row.refRegionWork" />
  331. <span>{{scope.row.refRegionWork}}</span>
  332. </template>
  333. </el-table-column>
  334. <el-table-column
  335. align="left"
  336. label="申请日期"
  337. prop="submitTime"
  338. min-width="160"
  339. show-overflow-tooltip
  340. />
  341. <el-table-column
  342. align="left"
  343. label="受理日期"
  344. prop="checkDate"
  345. min-width="160"
  346. show-overflow-tooltip
  347. />
  348. <el-table-column
  349. align="left"
  350. label="经销商编码"
  351. prop="customerNumber"
  352. min-width="160"
  353. show-overflow-tooltip
  354. >
  355. <template slot-scope="scope">
  356. <CopyButton :copy-text="scope.row.customerNumber"/>
  357. <span>{{ scope.row.customerNumber }}</span>
  358. </template>
  359. </el-table-column>
  360. <el-table-column
  361. align="left"
  362. label="经销商名称"
  363. prop="customerName"
  364. min-width="300"
  365. show-overflow-tooltip
  366. >
  367. <template slot-scope="scope">
  368. <CopyButton :copy-text="scope.row.customerName"/>
  369. <span>{{ scope.row.customerName }}</span>
  370. </template>
  371. </el-table-column>
  372. <el-table-column v-if="!isCustomer" align="left" label="格力内部备注" prop="geLiInerNote" min-width="160" show-overflow-tooltip>
  373. <template slot-scope="scope">
  374. <span>{{scope.row.geLiInerNote}}</span>
  375. </template>
  376. </el-table-column>
  377. <el-table-column
  378. align="left"
  379. label="规格型号"
  380. prop="specification"
  381. min-width="300"
  382. show-overflow-tooltip
  383. >
  384. <template slot-scope="scope">
  385. <CopyButton :copy-text="scope.row.specification"/>
  386. <span>{{ scope.row.specification }}</span>
  387. </template>
  388. </el-table-column>
  389. <el-table-column
  390. align="left"
  391. label="是否退押"
  392. prop="isRefundDeposit"
  393. min-width="160"
  394. show-overflow-tooltip
  395. >
  396. <template slot-scope="scope">
  397. <el-tag
  398. v-if="scope.row.isRefundDeposit"
  399. type="success"
  400. size="small"
  401. >是
  402. </el-tag>
  403. <el-tag v-else type="warning" size="small">否</el-tag>
  404. </template>
  405. </el-table-column>
  406. <!-- <el-table-column
  407. align="left"
  408. label="押金比例"
  409. prop=""
  410. min-width="160"
  411. show-overflow-tooltip
  412. ></el-table-column> -->
  413. <el-table-column
  414. align="right"
  415. label="押金金额"
  416. prop="itemDepositAmount"
  417. min-width="160"
  418. show-overflow-tooltip
  419. >
  420. <template slot-scope="scope">
  421. {{ scope.row.itemDepositAmount | numToFixed }}
  422. </template>
  423. </el-table-column>
  424. <el-table-column
  425. align="left"
  426. label="状态"
  427. prop="examineStatus"
  428. min-width="160"
  429. show-overflow-tooltip
  430. >
  431. <template slot-scope="scope">
  432. <el-tag
  433. v-if="scope.row.examineStatus == 'SAVE'"
  434. type="success"
  435. size="small"
  436. >保存
  437. </el-tag>
  438. <el-tag
  439. v-if="scope.row.examineStatus == 'WAIT'"
  440. type="warning"
  441. size="small"
  442. >待审核
  443. </el-tag>
  444. <el-tag
  445. v-if="scope.row.examineStatus == 'OK'"
  446. type="warning"
  447. size="mini"
  448. >通过
  449. </el-tag>
  450. <el-tag
  451. v-if="scope.row.examineStatus == 'FAIL'"
  452. type="warning"
  453. size="small"
  454. >不通过
  455. </el-tag>
  456. <el-tag
  457. v-if="scope.row.examineStatus == 'CLOSE'"
  458. type="warning"
  459. size="small"
  460. >关闭
  461. </el-tag>
  462. </template>
  463. </el-table-column>
  464. <el-table-column
  465. align="right"
  466. label="订单数量"
  467. prop="itemQty"
  468. min-width="160"
  469. show-overflow-tooltip
  470. />
  471. <el-table-column
  472. align="left"
  473. label="资料审核日期"
  474. prop="refDatumAcceptDate"
  475. min-width="160"
  476. show-overflow-tooltip
  477. ></el-table-column>
  478. <el-table-column
  479. align="right"
  480. label="金额"
  481. prop="totalPrice"
  482. min-width="160"
  483. show-overflow-tooltip
  484. >
  485. <template slot-scope="scope">
  486. {{ scope.row.totalPrice | numToFixed}}
  487. </template>
  488. </el-table-column>
  489. <el-table-column
  490. align="right"
  491. label="发货数量"
  492. prop="orderHasSendQty"
  493. min-width="160"
  494. show-overflow-tooltip
  495. />
  496. <el-table-column
  497. align="right"
  498. label="上交资料"
  499. prop="itemDataQty"
  500. min-width="160"
  501. show-overflow-tooltip
  502. />
  503. <el-table-column
  504. align="center"
  505. label="操作"
  506. min-width="160"
  507. fixed="right"
  508. show-overflow-tooltip
  509. >
  510. <template slot-scope="scope">
  511. <el-button
  512. type="text"
  513. class="textColor"
  514. size="mini"
  515. @click="detailFn(scope.row)"
  516. >详情
  517. </el-button>
  518. <el-button
  519. v-if="
  520. scope.row.examineStatus == 'SAVE' &&
  521. $checkBtnRole('apply', $route.meta.roles)
  522. "
  523. type="text"
  524. class="textColor"
  525. @click="surrenderFn(scope.row)"
  526. >申请退押
  527. </el-button>
  528. <!-- <el-button type="text" class="textColor" slot="reference"
  529. >免扣退押</el-button
  530. > -->
  531. </template>
  532. </el-table-column>
  533. </el-table>
  534. </div>
  535. <!-- 分页 -->
  536. <div class="fr">
  537. <el-pagination
  538. :current-page="currentPage"
  539. :page-sizes="[10, 50, 100, 500]"
  540. :page-size="10"
  541. layout="total, sizes, prev, pager, next, jumper"
  542. :total="listTotal"
  543. @size-change="handleSizeChange"
  544. @current-change="handleCurrentChange"
  545. />
  546. </div>
  547. </div>
  548. </div>
  549. <DepositListDetail v-else-if="showPage == 2"/>
  550. <DepositApplyDeduction v-else-if="showPage == 3"/>
  551. <DepositApplySurrender v-else-if="showPage == 4"/>
  552. </div>
  553. </template>
  554. <script>
  555. import DepositListDetail from './components/deposit_list-detail'
  556. import {
  557. getDepositManageDate,
  558. } from "@/api/engin_deposit/refund_list";
  559. import DepositApplyDeduction from './components/deposit-apply-deduction.vue'
  560. import DepositApplySurrender from './components/deposit-apply-surrender.vue'
  561. import {downloadFiles, handleImport} from '@/utils/util'
  562. import {getList} from '@/api/engin_deposit.js'
  563. import Mixin from '@/mixin'
  564. export default {
  565. components: {
  566. DepositListDetail,
  567. DepositApplyDeduction,
  568. DepositApplySurrender
  569. },
  570. mixins: [Mixin],
  571. data() {
  572. return {
  573. currentPage: 1, // 当前页码
  574. pageSize: 10, // 每页数量
  575. listTotal: 0, // 列表总数
  576. dataList: [], // 列表数据
  577. screenForm: {
  578. confirmName: '', // 审核人
  579. createName: '', // 创建人
  580. customerKeyword: '', // 客户编码/客户名称
  581. endDeliverTime: '', // 发货申请日期-结束
  582. enginOrderNo: '', // 工程订单编号
  583. enginOrderType: 'HOME', // 工程订单类型
  584. examineStatus: '', // 状态
  585. refEnginRecordNo: '', // 登录单号
  586. refProjectName: '', // 项目名称
  587. refTradeCategory: '',
  588. refUseUnit: '', // 使用单位
  589. startDeliverTime: '', // 发货申请日期-开始
  590. startSubmitTime: '',
  591. startConfirmTime: '',
  592. isRefundDeposit: null,
  593. endConfirmTime: '',
  594. startInstallTime: '',
  595. endInstallTime: '',
  596. specification: '',
  597. refFactoryNo: '',
  598. factoryNo: '',
  599. specialNo: '',
  600. refRegionWork: '',
  601. endSubmitTime: '',
  602. startAcceptTime: '',
  603. endAcceptTime: '',
  604. geLiInerNote: '',
  605. startFactoryNo:'',
  606. endFactoryNo:''
  607. }, // 搜索表单
  608. listLoading: false, // 列表加载loading
  609. deduction: '全部',
  610. showPage: 1,
  611. importFileList: [],
  612. selectData: [],
  613. baseURL: '',
  614. refundDepositArr: [
  615. {
  616. label: '是',
  617. value: true
  618. },
  619. {
  620. label: '否',
  621. value: false
  622. }
  623. ],
  624. examineStatusArr: [
  625. {
  626. label: '保存',
  627. value: 'SAVE'
  628. },
  629. {
  630. label: '待审核',
  631. value: 'WAIT'
  632. },
  633. {
  634. label: '通过',
  635. value: 'OK'
  636. },
  637. {
  638. label: '关闭',
  639. value: 'CLOSE'
  640. },
  641. ]
  642. }
  643. },
  644. computed: {
  645. isCustomer() {
  646. return this.$store.getters.customerId && this.$store.getters.customerNumber
  647. }
  648. },
  649. methods: {
  650. //同步资料日期
  651. async syncDateFn() {
  652. await getDepositManageDate();
  653. this.$message.success("同步资料日期成功");
  654. },
  655. // 免扣申请
  656. deductionFn() {
  657. this.showPage = 3
  658. },
  659. // 申请退押
  660. surrenderFn(row) {
  661. this.depositManageId = row.depositManageId
  662. this.showPage = 4
  663. },
  664. detailFn(row) {
  665. this.depositManageId = row.depositManageId
  666. this.refEnginRecordNo = row.refEnginRecordNo
  667. this.showPage = 2
  668. },
  669. getList() {
  670. this.listLoading = true
  671. const params = {
  672. pageSize: this.pageSize,
  673. pageNum: this.currentPage,
  674. isRefundDeposit: '',
  675. ...this.screenForm
  676. }
  677. params.isRefundDeposit = this.deduction === '已退押' ? true : ''
  678. if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false) {
  679. params.isRefundDeposit = this.screenForm.isRefundDeposit
  680. }
  681. getList(params).then((res) => {
  682. this.dataList = res.data.records
  683. res.data.records.forEach((item) => {
  684. item.totalPrice = item.itemPrice * item.itemQty
  685. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  686. item.sums1 = ['qty','orderHasSendQty','itemDataQty']
  687. item.sums2 = ['itemDepositAmount', 'diffAmount', 'price','totalAmount','depositAmount','totalPrice']
  688. })
  689. this.listLoading = false
  690. this.listTotal = res.data.total
  691. })
  692. },
  693. handleRadio() {
  694. this.getList()
  695. },
  696. hanleDownloadFiles() {
  697. let isRefundDeposit = this.deduction === '已退押' ? true : ''
  698. if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false ) {
  699. isRefundDeposit =this.screenForm.isRefundDeposit
  700. }
  701. downloadFiles('/deposit-manage/export', {
  702. ...this.screenForm,
  703. isRefundDeposit,
  704. orderType:'HOME' })
  705. },
  706. // 导入
  707. async handleImport(param) {
  708. this.importLoading = true
  709. const file = param.file
  710. console.log(file, 123)
  711. const formData = new FormData()
  712. formData.append('file', file)
  713. // formData.append("policyId", this.screenForm.code);
  714. const result = await handleImport('deposit-manage/import', formData)
  715. this.importLoading = false
  716. this.importFileList = []
  717. if (result.code == 200) {
  718. this.$alert(result.message, '导入成功', {
  719. confirmButtonText: '确定'
  720. })
  721. this.handletwoList()
  722. } else {
  723. this.$alert(result.message, '导入失败', {
  724. confirmButtonText: '确定'
  725. })
  726. }
  727. },
  728. handleSelectionAllChange(e) {
  729. this.selectData = e
  730. }
  731. }
  732. }
  733. </script>
  734. <style lang="scss" scoped>
  735. .app-container{
  736. padding:40px 20px
  737. }
  738. .fanwei {
  739. display: flex;
  740. span {
  741. margin: 0 20px;
  742. }
  743. div {
  744. width: 100%
  745. }
  746. }
  747. .dateStyle {
  748. width: 100%;
  749. }
  750. .import-btn {
  751. margin-left: 10px;
  752. }
  753. </style>