refund_list.vue 26 KB

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