refund_list.vue 25 KB

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