refund_list.vue 25 KB

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