refund_list.vue 31 KB

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