deposit_list.vue 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087
  1. <template>
  2. <div class="app-container">
  3. <div v-if="showPage == 1">
  4. <!-- 筛选条件 -->
  5. <div>
  6. <Collapse :screen-form="screenForm">
  7. <template #right_btn>
  8. <el-button size="mini" @click="resetScreenForm">清空</el-button>
  9. <el-button size="mini" type="primary" @click="submitScreenForm">搜索</el-button>
  10. </template>
  11. <template #left_btn>
  12. <el-radio-group v-model="deduction" size="mini" @change="handleRadio">
  13. <el-radio-button label="全部" />
  14. <el-radio-button label="已退押" />
  15. </el-radio-group>
  16. </template>
  17. <template #search>
  18. <el-form ref="screenForm" :model="screenForm" label-width="140px" size="mini" label-position="left">
  19. <el-row :gutter="20">
  20. <el-col :xs="24" :sm="12" :lg="6">
  21. <el-form-item label="工程登录编号" prop="refEnginRecordNo">
  22. <el-input v-model="screenForm.refEnginRecordNo" placeholder="请输入" />
  23. </el-form-item>
  24. </el-col>
  25. <el-col :xs="24" :sm="12" :lg="6">
  26. <el-form-item label="经销商编码/名称" prop="customerKeyword">
  27. <el-input v-model="screenForm.customerKeyword" placeholder="请输入" />
  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. ></el-input>
  36. </el-form-item>
  37. </el-col> -->
  38. <el-col :xs="24" :sm="12" :lg="6">
  39. <el-form-item label="行业类别" prop="refTradeCategory">
  40. <el-input v-model="screenForm.refTradeCategory" placeholder="请输入" />
  41. </el-form-item>
  42. </el-col>
  43. <el-col :xs="24" :sm="12" :lg="6">
  44. <el-form-item label="使用单位" prop="refUseUnit">
  45. <el-input v-model="screenForm.refUseUnit" placeholder="请输入使用单位" />
  46. </el-form-item>
  47. </el-col>
  48. <el-col :xs="24" :sm="12" :lg="6">
  49. <el-form-item label="开始申请日期" prop="startSubmitTime">
  50. <el-date-picker
  51. v-model="screenForm.startSubmitTime"
  52. value-format="yyyy-MM-dd HH:mm:ss"
  53. class="dateStyle"
  54. type="datetime"
  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="endSubmitTime">
  61. <el-date-picker
  62. v-model="screenForm.endSubmitTime"
  63. value-format="yyyy-MM-dd HH:mm:ss"
  64. class="dateStyle"
  65. type="datetime"
  66. placeholder="选择日期"
  67. />
  68. </el-form-item>
  69. </el-col>
  70. <el-col :xs="24" :sm="12" :lg="6">
  71. <el-form-item label="开始受理日期" prop="startConfirmTime">
  72. <el-date-picker
  73. v-model="screenForm.startConfirmTime"
  74. value-format="yyyy-MM-dd HH:mm:ss"
  75. class="dateStyle"
  76. type="datetime"
  77. placeholder="选择日期"
  78. />
  79. </el-form-item>
  80. </el-col>
  81. <el-col :xs="24" :sm="12" :lg="6">
  82. <el-form-item label="结束受理日期" prop="endConfirmTime">
  83. <el-date-picker
  84. v-model="screenForm.endConfirmTime"
  85. value-format="yyyy-MM-dd HH:mm:ss"
  86. class="dateStyle"
  87. type="datetime"
  88. placeholder="选择日期"
  89. />
  90. </el-form-item>
  91. </el-col>
  92. <el-col :xs="24" :sm="12" :lg="6">
  93. <el-form-item label="是否退押 " prop="isRefundDeposit">
  94. <el-select
  95. v-model="screenForm.isRefundDeposit"
  96. style="width: 100%"
  97. clearable
  98. placeholder="请选择是否退押 "
  99. >
  100. <el-option
  101. v-for="item in refundDepositArr"
  102. :key="item.value"
  103. :label="item.label"
  104. :value="item.value"
  105. />
  106. </el-select>
  107. </el-form-item>
  108. </el-col>
  109. <el-col :xs="24" :sm="12" :lg="6">
  110. <el-form-item label="状态 " prop="examineStatus">
  111. <el-select
  112. v-model="screenForm.examineStatus"
  113. style="width: 100%"
  114. clearable
  115. placeholder="请选择状态 "
  116. >
  117. <el-option
  118. v-for="item in examineStatusArr"
  119. :key="item.value"
  120. :label="item.label"
  121. :value="item.value"
  122. />
  123. </el-select>
  124. </el-form-item>
  125. </el-col>
  126. <!-- <el-col :xs="24" :sm="12" :lg="6">
  127. <el-form-item label="产品名称" prop="">
  128. <el-input placeholder="请输入"></el-input>
  129. </el-form-item>
  130. </el-col>
  131. <el-col :xs="24" :sm="12" :lg="6">
  132. <el-form-item label="规格型号" prop="">
  133. <el-input placeholder="请输入"></el-input>
  134. </el-form-item>
  135. </el-col> -->
  136. <template v-if="!isCustomer">
  137. <el-col :xs="24" :sm="12" :lg="6">
  138. <el-form-item label="审核人" prop="confirmName">
  139. <el-input v-model="screenForm.confirmName" placeholder="请输入审核人" />
  140. </el-form-item>
  141. </el-col>
  142. <el-col :xs="24" :sm="12" :lg="6">
  143. <el-form-item label="区域" prop="refRegionWork">
  144. <el-input v-model="screenForm.refRegionWork" placeholder="请输入区域" />
  145. </el-form-item>
  146. </el-col>
  147. <el-col :xs="24" :sm="12" :lg="6">
  148. <el-form-item label="安装日期" style="margin-bottom: 0">
  149. <div class="fanwei">
  150. <el-form-item prop="startInstallTime">
  151. <el-date-picker
  152. v-model="screenForm.startInstallTime"
  153. value-format="yyyy-MM-dd HH:mm:ss"
  154. class="dateStyle"
  155. type="datetime"
  156. placeholder="选择日期"
  157. />
  158. </el-form-item>
  159. <span>-</span>
  160. <el-form-item prop="endInstallTime">
  161. <el-date-picker
  162. v-model="screenForm.endInstallTime"
  163. value-format="yyyy-MM-dd HH:mm:ss"
  164. class="dateStyle"
  165. type="datetime"
  166. placeholder="选择日期"
  167. />
  168. </el-form-item>
  169. </div>
  170. </el-form-item>
  171. </el-col>
  172. <el-col :xs="24" :sm="12" :lg="6">
  173. <el-form-item label="规格型号" prop="specification">
  174. <el-input v-model="screenForm.specification" placeholder="请输入规格型号" />
  175. </el-form-item>
  176. </el-col>
  177. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  178. <el-form-item label="特价编号" prop="specialNo">
  179. <el-input v-model="screenForm.specialNo" placeholder="请输入特价编号" />
  180. </el-form-item>
  181. </el-col>
  182. <el-col :xs="24" :sm="12" :lg="6">
  183. <el-form-item label="跨区厂编号" prop="refFactoryNo">
  184. <el-input v-model="screenForm.refFactoryNo" placeholder="请输入跨区厂编号" />
  185. </el-form-item>
  186. </el-col>
  187. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  188. <el-form-item label="格力内部备注" prop="geLiInerNote">
  189. <el-input v-model="screenForm.geLiInerNote" placeholder="请输入格力内部备注" />
  190. </el-form-item>
  191. </el-col>
  192. <!-- <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  193. <el-form-item label="厂编号" prop="factoryNo">
  194. <el-input v-model="screenForm.factoryNo" placeholder="请输入厂编号"></el-input>
  195. </el-form-item>
  196. </el-col> -->
  197. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  198. <el-form-item label="厂编号" style="margin-bottom: 0">
  199. <div class="fanwei">
  200. <el-form-item prop="startFactoryNo">
  201. <el-input v-model="screenForm.startFactoryNo" placeholder="厂编号开始" />
  202. </el-form-item>
  203. <span>-</span>
  204. <el-form-item prop="endFactoryNo">
  205. <el-input v-model="screenForm.endFactoryNo" placeholder="厂编号结束" />
  206. </el-form-item>
  207. </div>
  208. </el-form-item>
  209. </el-col>
  210. <el-col :xs="24" :sm="12" :lg="6">
  211. <el-form-item label="资料审核开始日期" prop="startAcceptTime">
  212. <el-date-picker
  213. v-model="screenForm.startAcceptTime"
  214. value-format="yyyy-MM-dd HH:mm:ss"
  215. class="dateStyle"
  216. type="datetime"
  217. placeholder="选择日期"
  218. />
  219. </el-form-item>
  220. </el-col>
  221. <el-col :xs="24" :sm="12" :lg="6">
  222. <el-form-item label="资料审核结束日期" prop="endAcceptTime">
  223. <el-date-picker
  224. v-model="screenForm.endAcceptTime"
  225. value-format="yyyy-MM-dd HH:mm:ss"
  226. class="dateStyle"
  227. type="datetime"
  228. placeholder="选择日期"
  229. />
  230. </el-form-item>
  231. </el-col>
  232. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  233. <el-form-item label="特价编号" style="margin-bottom: 0">
  234. <div class="fanwei">
  235. <el-form-item prop="startSpecialNo">
  236. <el-input v-model="screenForm.startSpecialNo" placeholder="开始" />
  237. </el-form-item>
  238. <span>-</span>
  239. <el-form-item prop="endSpecialNo">
  240. <el-input v-model="screenForm.endSpecialNo" placeholder="结束" />
  241. </el-form-item>
  242. </div>
  243. </el-form-item>
  244. </el-col>
  245. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  246. <el-form-item label="交单编号" style="margin-bottom: 0">
  247. <div class="fanwei">
  248. <el-form-item prop="startBillNo">
  249. <el-input v-model="screenForm.startBillNo" placeholder="开始" />
  250. </el-form-item>
  251. <span>-</span>
  252. <el-form-item prop="endBillNo">
  253. <el-input v-model="screenForm.endBillNo" placeholder="结束" />
  254. </el-form-item>
  255. </div>
  256. </el-form-item>
  257. </el-col>
  258. <el-col :xs="24" :sm="12" :lg="6">
  259. <el-form-item label="寄厂日期" style="margin-bottom: 0">
  260. <div class="fanwei">
  261. <el-form-item prop="startMailFactoryDate">
  262. <el-date-picker
  263. v-model="screenForm.startMailFactoryDate"
  264. value-format="yyyy-MM-dd HH:mm:ss"
  265. class="dateStyle"
  266. type="datetime"
  267. placeholder="选择日期"
  268. />
  269. </el-form-item>
  270. <span>-</span>
  271. <el-form-item prop="endMailFactoryDate">
  272. <el-date-picker
  273. v-model="screenForm.endMailFactoryDate"
  274. value-format="yyyy-MM-dd HH:mm:ss"
  275. class="dateStyle"
  276. type="datetime"
  277. placeholder="选择日期"
  278. />
  279. </el-form-item>
  280. </div>
  281. </el-form-item>
  282. </el-col>
  283. <el-col :xs="24" :sm="12" :lg="6">
  284. <el-form-item label="寄厂年度" prop="mailFactoryYear">
  285. <el-input v-model="screenForm.mailFactoryYear" placeholder="请输入寄厂年度" />
  286. </el-form-item>
  287. </el-col>
  288. <el-col :xs="24" :sm="12" :lg="6">
  289. <el-form-item label="确认日期" style="margin-bottom: 0">
  290. <div class="fanwei">
  291. <el-form-item prop="startConfirmDate">
  292. <el-date-picker
  293. v-model="screenForm.startConfirmDate"
  294. value-format="yyyy-MM-dd HH:mm:ss"
  295. class="dateStyle"
  296. type="datetime"
  297. placeholder="选择日期"
  298. />
  299. </el-form-item>
  300. <span>-</span>
  301. <el-form-item prop="endConfirmDate">
  302. <el-date-picker
  303. v-model="screenForm.endConfirmDate"
  304. value-format="yyyy-MM-dd HH:mm:ss"
  305. class="dateStyle"
  306. type="datetime"
  307. placeholder="选择日期"
  308. />
  309. </el-form-item>
  310. </div>
  311. </el-form-item>
  312. </el-col>
  313. <el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
  314. <el-form-item label="结算编号" style="margin-bottom: 0">
  315. <div class="fanwei">
  316. <el-form-item prop="startSettlementNo">
  317. <el-input v-model="screenForm.startSettlementNo" placeholder="开始" />
  318. </el-form-item>
  319. <span>-</span>
  320. <el-form-item prop="endSettlementNo">
  321. <el-input v-model="screenForm.endSettlementNo" placeholder="结束" />
  322. </el-form-item>
  323. </div>
  324. </el-form-item>
  325. </el-col>
  326. <el-col :xs="24" :sm="12" :lg="6">
  327. <el-form-item label="结算日期" style="margin-bottom: 0">
  328. <div class="fanwei">
  329. <el-form-item prop="startSettlementDate">
  330. <el-date-picker
  331. v-model="screenForm.startSettlementDate"
  332. value-format="yyyy-MM-dd HH:mm:ss"
  333. class="dateStyle"
  334. type="datetime"
  335. placeholder="选择日期"
  336. />
  337. </el-form-item>
  338. <span>-</span>
  339. <el-form-item prop="endSettlementDate">
  340. <el-date-picker
  341. v-model="screenForm.endSettlementDate"
  342. value-format="yyyy-MM-dd HH:mm:ss"
  343. class="dateStyle"
  344. type="datetime"
  345. placeholder="选择日期"
  346. />
  347. </el-form-item>
  348. </div>
  349. </el-form-item>
  350. </el-col>
  351. <el-col :xs="24" :sm="12" :lg="6">
  352. <el-form-item label="订单日期" style="margin-bottom: 0">
  353. <div class="fanwei">
  354. <el-form-item prop="startOrderDate">
  355. <el-date-picker
  356. v-model="screenForm.startOrderDate"
  357. value-format="yyyy-MM-dd HH:mm:ss"
  358. class="dateStyle"
  359. type="datetime"
  360. placeholder="选择日期"
  361. />
  362. </el-form-item>
  363. <span>-</span>
  364. <el-form-item prop="endOrderDate">
  365. <el-date-picker
  366. v-model="screenForm.endOrderDate"
  367. value-format="yyyy-MM-dd HH:mm:ss"
  368. class="dateStyle"
  369. type="datetime"
  370. placeholder="选择日期"
  371. />
  372. </el-form-item>
  373. </div>
  374. </el-form-item>
  375. </el-col>
  376. <el-col :xs="24" :sm="12" :lg="6">
  377. <el-form-item label="入厂日期" style="margin-bottom: 0">
  378. <div class="fanwei">
  379. <el-form-item prop="startInFactoryDate">
  380. <el-date-picker
  381. v-model="screenForm.startInFactoryDate"
  382. value-format="yyyy-MM-dd HH:mm:ss"
  383. class="dateStyle"
  384. type="datetime"
  385. placeholder="选择日期"
  386. />
  387. </el-form-item>
  388. <span>-</span>
  389. <el-form-item prop="endInFactoryDate">
  390. <el-date-picker
  391. v-model="screenForm.endInFactoryDate"
  392. value-format="yyyy-MM-dd HH:mm:ss"
  393. class="dateStyle"
  394. type="datetime"
  395. placeholder="选择日期"
  396. />
  397. </el-form-item>
  398. </div>
  399. </el-form-item>
  400. </el-col>
  401. <el-col :xs="24" :sm="12" :lg="6">
  402. <el-form-item label="入厂类型" prop="inFactoryType">
  403. <el-input v-model="screenForm.inFactoryType" placeholder="请输入入厂类型" />
  404. </el-form-item>
  405. </el-col>
  406. <el-col :xs="24" :sm="12" :lg="6">
  407. <el-form-item label="结算日期 " prop="settlementStatus">
  408. <el-select style="width: 100%" v-model="screenForm.settlementStatus" clearable placeholder="请选择">
  409. <el-option label="为空" :value="1"></el-option>
  410. <el-option label="不为空" :value="0"></el-option>
  411. </el-select>
  412. </el-form-item>
  413. </el-col>
  414. <el-col :xs="24" :sm="12" :lg="6">
  415. <el-form-item label="寄厂日期 " prop="mailFactoryStatus">
  416. <el-select style="width: 100%" v-model="screenForm.mailFactoryStatus" clearable placeholder="请选择">
  417. <el-option label="为空" :value="1"></el-option>
  418. <el-option label="不为空" :value="0"></el-option>
  419. </el-select>
  420. </el-form-item>
  421. </el-col>
  422. </template>
  423. </el-row>
  424. </el-form>
  425. </template>
  426. </Collapse>
  427. </div>
  428. <!-- 按钮 -->
  429. <div class="btn-group clearfix" style="display: flex">
  430. <el-button type="primary" size="mini" @click="hanleDownloadFiles">导出</el-button>
  431. <!-- -->
  432. <el-upload
  433. class="import-btn"
  434. v-if="!isCustomer"
  435. :action="baseURL + 'student/import'"
  436. :http-request="handleImport"
  437. :file-list="importFileList"
  438. :show-file-list="false"
  439. >
  440. <el-button size="mini" type="primary">导入</el-button>
  441. </el-upload>
  442. </div>
  443. <!-- 列表 -->
  444. <div class="mymain-container">
  445. <div class="table">
  446. <el-table
  447. v-loading="listLoading"
  448. :data="dataList"
  449. element-loading-text="Loading"
  450. border
  451. fit
  452. highlight-current-row
  453. stripe
  454. show-summary
  455. :summary-method="$getSummaries"
  456. @select-all="handleSelectionAllChange"
  457. @selection-change="handleSelectionAllChange"
  458. >
  459. <el-table-column align="left" type="selection" width="55" />
  460. <el-table-column
  461. align="left"
  462. label="工程登录编号"
  463. prop="refEnginRecordNo"
  464. min-width="160"
  465. show-overflow-tooltip
  466. >
  467. <template slot-scope="scope">
  468. <CopyButton :copyText="scope.row.refEnginRecordNo" />
  469. <span>{{ scope.row.refEnginRecordNo }}</span>
  470. </template>
  471. </el-table-column>
  472. <el-table-column v-if="!isCustomer" align="right" label="跨区厂编号" min-width="160" show-overflow-tooltip>
  473. <template slot-scope="scope">
  474. <CopyButton :copy-text="scope.row.refFactoryNo" />
  475. <span>{{ scope.row.refFactoryNo }}</span>
  476. </template>
  477. </el-table-column>
  478. <el-table-column
  479. v-if="!isCustomer"
  480. align="right"
  481. label="特价项目编号"
  482. prop="specialItemNo"
  483. min-width="160"
  484. show-overflow-tooltip
  485. />
  486. <el-table-column
  487. v-if="!isCustomer"
  488. align="right"
  489. label="特价编号"
  490. prop="specialNo"
  491. min-width="160"
  492. show-overflow-tooltip
  493. />
  494. <el-table-column
  495. v-if="!isCustomer"
  496. align="right"
  497. label="交单编号"
  498. prop="billNo"
  499. min-width="160"
  500. show-overflow-tooltip
  501. />
  502. <el-table-column
  503. v-if="!isCustomer"
  504. align="right"
  505. label="安装日期"
  506. prop="installDate"
  507. min-width="160"
  508. show-overflow-tooltip
  509. />
  510. <el-table-column
  511. v-if="!isCustomer"
  512. align="right"
  513. label="厂编号"
  514. prop="factoryNo"
  515. min-width="160"
  516. show-overflow-tooltip
  517. />
  518. <!-- <el-table-column-->
  519. <!-- v-if="!isCustomer"-->
  520. <!-- align="right"-->
  521. <!-- label="特价编号"-->
  522. <!-- prop="specialNo"-->
  523. <!-- min-width="160"-->
  524. <!-- show-overflow-tooltip-->
  525. <!-- />-->
  526. <el-table-column
  527. align="left"
  528. label="行业类别"
  529. prop="refTradeCategory"
  530. min-width="160"
  531. show-overflow-tooltip
  532. >
  533. <template slot-scope="scope">
  534. <CopyButton :copy-text="scope.row.refTradeCategory" />
  535. <span>{{ scope.row.refTradeCategory }}</span>
  536. </template>
  537. </el-table-column>
  538. <el-table-column align="left" label="使用单位" prop="refUseUnit" min-width="160" show-overflow-tooltip />
  539. <el-table-column align="left" label="区域" prop="refRegionWork" min-width="160" show-overflow-tooltip>
  540. <template slot-scope="scope">
  541. <CopyButton :copy-text="scope.row.refRegionWork" />
  542. <span>{{ scope.row.refRegionWork }}</span>
  543. </template>
  544. </el-table-column>
  545. <el-table-column align="left" label="申请日期" prop="submitTime" min-width="160" show-overflow-tooltip />
  546. <el-table-column align="left" label="受理日期" prop="checkDate" min-width="160" show-overflow-tooltip />
  547. <el-table-column
  548. align="left"
  549. label="经销商编码"
  550. prop="customerNumber"
  551. min-width="160"
  552. show-overflow-tooltip
  553. >
  554. <template slot-scope="scope">
  555. <CopyButton :copy-text="scope.row.customerNumber" />
  556. <span>{{ scope.row.customerNumber }}</span>
  557. </template>
  558. </el-table-column>
  559. <el-table-column
  560. v-if="!isCustomer"
  561. align="left"
  562. label="寄厂日期"
  563. prop="mailFactoryDate"
  564. min-width="160"
  565. show-overflow-tooltip
  566. />
  567. <el-table-column
  568. v-if="!isCustomer"
  569. align="left"
  570. label="寄厂年度"
  571. prop="mailFactoryYear"
  572. min-width="160"
  573. show-overflow-tooltip
  574. />
  575. <el-table-column
  576. align="left"
  577. v-if="!isCustomer"
  578. label="确认日期"
  579. prop="confirmDate"
  580. min-width="160"
  581. show-overflow-tooltip
  582. />
  583. <el-table-column
  584. align="left"
  585. v-if="!isCustomer"
  586. label="结算编号"
  587. prop="settlementNo"
  588. min-width="160"
  589. show-overflow-tooltip
  590. />
  591. <el-table-column
  592. v-if="!isCustomer"
  593. align="left"
  594. label="结算日期"
  595. prop="settlementDate"
  596. min-width="160"
  597. show-overflow-tooltip
  598. />
  599. <el-table-column
  600. align="left"
  601. v-if="!isCustomer"
  602. label="入厂日期"
  603. prop="inFactoryDate"
  604. min-width="160"
  605. show-overflow-tooltip
  606. />
  607. <el-table-column
  608. align="left"
  609. label="入厂类型"
  610. v-if="!isCustomer"
  611. prop="inFactoryType"
  612. min-width="160"
  613. show-overflow-tooltip
  614. />
  615. <el-table-column align="left" label="经销商名称" prop="customerName" min-width="300" show-overflow-tooltip>
  616. <template slot-scope="scope">
  617. <CopyButton :copy-text="scope.row.customerName" />
  618. <span>{{ scope.row.customerName }}</span>
  619. </template>
  620. </el-table-column>
  621. <el-table-column
  622. v-if="!isCustomer"
  623. align="left"
  624. label="格力内部备注"
  625. prop="geLiInerNote"
  626. min-width="160"
  627. show-overflow-tooltip
  628. >
  629. <template slot-scope="scope">
  630. <span>{{ scope.row.geLiInerNote }}</span>
  631. </template>
  632. </el-table-column>
  633. <el-table-column align="left" label="规格型号" prop="specification" min-width="300" show-overflow-tooltip>
  634. <template slot-scope="scope">
  635. <CopyButton :copy-text="scope.row.specification" />
  636. <span>{{ scope.row.specification }}</span>
  637. </template>
  638. </el-table-column>
  639. <el-table-column
  640. align="left"
  641. label="实装规格型号"
  642. prop="realSpecification"
  643. min-width="300"
  644. show-overflow-tooltip
  645. >
  646. <template slot-scope="scope">
  647. <div :style="scope.row.realSpecification != scope.row.specification ? { color: 'blue' } : ''">
  648. {{ scope.row.realSpecification }}
  649. </div>
  650. </template>
  651. </el-table-column>
  652. <el-table-column
  653. align="left"
  654. label="实装物料编号"
  655. prop="realMaterialNumber"
  656. min-width="150"
  657. show-overflow-tooltip
  658. >
  659. <template slot-scope="scope">
  660. <div :style="scope.row.realMaterialNumber != scope.row.materialNumber ? { color: 'blue' } : ''">
  661. {{ scope.row.realMaterialNumber }}
  662. </div>
  663. </template>
  664. </el-table-column>
  665. <el-table-column
  666. align="left"
  667. label="实装厂产品编码"
  668. prop="realMaterialOldNumber"
  669. min-width="200"
  670. show-overflow-tooltip
  671. >
  672. <template slot-scope="scope">
  673. <div :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber ? { color: 'blue' } : ''">
  674. {{ scope.row.realMaterialOldNumber }}
  675. </div>
  676. </template>
  677. </el-table-column>
  678. <el-table-column align="left" label="是否退押" prop="isRefundDeposit" min-width="160" show-overflow-tooltip>
  679. <template slot-scope="scope">
  680. <el-tag v-if="scope.row.isRefundDeposit" type="success" size="small">是</el-tag>
  681. <el-tag v-else type="warning" size="small">否</el-tag>
  682. </template>
  683. </el-table-column>
  684. <!-- <el-table-column
  685. align="left"
  686. label="押金比例"
  687. prop=""
  688. min-width="160"
  689. show-overflow-tooltip
  690. ></el-table-column> -->
  691. <el-table-column
  692. align="right"
  693. label="押金金额"
  694. prop="itemDepositAmount"
  695. min-width="160"
  696. show-overflow-tooltip
  697. >
  698. <template slot-scope="scope">
  699. {{ scope.row.itemDepositAmount | numToFixed }}
  700. </template>
  701. </el-table-column>
  702. <el-table-column align="left" label="状态" prop="examineStatus" min-width="160" show-overflow-tooltip>
  703. <template slot-scope="scope">
  704. <el-tag v-if="scope.row.examineStatus == 'SAVE'" type="success" size="small">保存</el-tag>
  705. <el-tag v-if="scope.row.examineStatus == 'WAIT'" type="warning" size="small">待审核</el-tag>
  706. <el-tag v-if="scope.row.examineStatus == 'OK'" type="warning" size="mini">通过</el-tag>
  707. <el-tag v-if="scope.row.examineStatus == 'FAIL'" type="warning" size="small">不通过</el-tag>
  708. <el-tag v-if="scope.row.examineStatus == 'CLOSE'" type="warning" size="small">关闭</el-tag>
  709. <el-tag v-if="scope.row.examineStatus == 'AMEND'" type="warning" size="small">补充</el-tag>
  710. <el-tag v-if="scope.row.examineStatus == 'WAIT_REVIEW'" type="warning" size="small">待复核</el-tag>
  711. <el-tag v-if="scope.row.examineStatus == 'REVIEW'" type="warning" size="small">复核</el-tag>
  712. </template>
  713. </el-table-column>
  714. <el-table-column align="left" label="资料状态" prop="dataState" min-width="160" show-overflow-tooltip>
  715. <template slot-scope="scope">
  716. <el-tag v-if="scope.row.dataState == 'NORMAL'" type="warning" size="small">正常</el-tag>
  717. <el-tag v-if="scope.row.dataState == 'AMEND'" type="warning" size="small">补充</el-tag>
  718. <el-tag v-if="scope.row.dataState == 'WAIT_REVIEW'" type="warning" size="small">待复核</el-tag>
  719. <el-tag v-if="scope.row.dataState == 'REVIEW'" type="warning" size="small">复核</el-tag>
  720. </template>
  721. </el-table-column>
  722. <el-table-column align="right" label="订单数量" prop="itemQty" min-width="160" show-overflow-tooltip />
  723. <!-- <el-table-column
  724. align="right"
  725. label="合同数量"
  726. prop="itemContractQty"
  727. min-width="160"
  728. show-overflow-tooltip
  729. >
  730. <template slot-scope="scope">
  731. {{ scope.row.itemContractQty || 0}}
  732. </template>
  733. </el-table-column>
  734. <el-table-column
  735. align="right"
  736. label="合同单价"
  737. prop="itemContractPrice"
  738. min-width="160"
  739. show-overflow-tooltip
  740. >
  741. <template slot-scope="scope">
  742. {{ scope.row.itemContractPrice | numToFixed }}
  743. </template>
  744. </el-table-column>
  745. <el-table-column
  746. align="right"
  747. label="合同金额"
  748. prop="itemContractAmount"
  749. min-width="160"
  750. show-overflow-tooltip
  751. >
  752. <template slot-scope="scope">
  753. {{ scope.row.itemContractAmount | numToFixed }}
  754. </template>
  755. </el-table-column> -->
  756. <el-table-column
  757. align="left"
  758. label="资料审核日期"
  759. prop="refDatumAcceptDate"
  760. min-width="160"
  761. show-overflow-tooltip
  762. />
  763. <el-table-column align="right" label="金额" prop="totalPrice" min-width="160" show-overflow-tooltip>
  764. <template slot-scope="scope">
  765. {{ scope.row.totalPrice | numToFixed }}
  766. </template>
  767. </el-table-column>
  768. <el-table-column
  769. align="right"
  770. label="发货数量"
  771. prop="orderHasSendQty"
  772. min-width="160"
  773. show-overflow-tooltip
  774. />
  775. <el-table-column align="right" label="上交资料" prop="itemDataQty" min-width="160" show-overflow-tooltip />
  776. <el-table-column align="center" label="操作" min-width="160" fixed="right" show-overflow-tooltip>
  777. <template slot-scope="scope">
  778. <el-button type="text" class="textColor" size="mini" @click="detailFn(scope.row)">详情</el-button>
  779. <el-button
  780. v-if="scope.row.examineStatus == 'SAVE' && $checkBtnRole('apply', $route.meta.roles)"
  781. type="text"
  782. class="textColor"
  783. @click="surrenderFn(scope.row)"
  784. >申请退押
  785. </el-button>
  786. <el-button type="text" class="textColor"
  787. v-if="(scope.row.examineStatus == 'OK' ||scope.row.dataState == 'AMEND') && isCustomer"
  788. @click="replenishClick(scope.row.depositManageId)">补充资料</el-button>
  789. <!-- <el-button type="text" class="textColor" slot="reference"
  790. >免扣退押</el-button
  791. > -->
  792. </template>
  793. </el-table-column>
  794. </el-table>
  795. </div>
  796. <!-- 分页 -->
  797. <div class="fr">
  798. <el-pagination
  799. :current-page="currentPage"
  800. :page-sizes="[10, 50, 100, 500]"
  801. :page-size="10"
  802. layout="total, sizes, prev, pager, next, jumper"
  803. :total="listTotal"
  804. @size-change="handleSizeChange"
  805. @current-change="handleCurrentChange"
  806. />
  807. </div>
  808. </div>
  809. </div>
  810. <DepositListDetail v-else-if="showPage == 2" />
  811. <DepositApplyDeduction v-else-if="showPage == 3" />
  812. <DepositApplySurrender v-else-if="showPage == 4" />
  813. <deposit_replenish v-else-if="showPage==5" />
  814. <!--<refund-reexamine v-else-if="(showSurrender==3)" :detail-id="detailId" @updateList="updateList"/> -->
  815. </div>
  816. </template>
  817. <script>
  818. import DepositListDetail from './components/deposit_list-detail'
  819. import { getDepositManageDate } from '@/api/engin_deposit/refund_list'
  820. import DepositApplyDeduction from './components/deposit-apply-deduction.vue'
  821. import DepositApplySurrender from './components/deposit-apply-surrender.vue'
  822. import { downloadFiles, handleImport } from '@/utils/util'
  823. import { getList } from '@/api/engin_deposit.js'
  824. import Mixin from '@/mixin'
  825. import deposit_replenish from './components/deposit_replenish.vue'
  826. export default {
  827. components: {
  828. DepositListDetail,
  829. DepositApplyDeduction,
  830. DepositApplySurrender,
  831. deposit_replenish
  832. },
  833. mixins: [Mixin],
  834. data() {
  835. return {
  836. currentPage: 1, // 当前页码
  837. pageSize: 10, // 每页数量
  838. listTotal: 0, // 列表总数
  839. dataList: [], // 列表数据
  840. screenForm: {
  841. confirmName: '', // 审核人
  842. createName: '', // 创建人
  843. customerKeyword: '', // 客户编码/客户名称
  844. endDeliverTime: '', // 发货申请日期-结束
  845. enginOrderNo: '', // 工程订单编号
  846. enginOrderType: 'HOME', // 工程订单类型
  847. examineStatus: '', // 状态
  848. refEnginRecordNo: '', // 登录单号
  849. refProjectName: '', // 项目名称
  850. refTradeCategory: '',
  851. refUseUnit: '', // 使用单位
  852. startDeliverTime: '', // 发货申请日期-开始
  853. startSubmitTime: '',
  854. startConfirmTime: '',
  855. isRefundDeposit: null,
  856. endConfirmTime: '',
  857. startInstallTime: '',
  858. endInstallTime: '',
  859. specification: '',
  860. refFactoryNo: '',
  861. factoryNo: '',
  862. specialNo: '',
  863. refRegionWork: '',
  864. endSubmitTime: '',
  865. startAcceptTime: '',
  866. endAcceptTime: '',
  867. geLiInerNote: '',
  868. startFactoryNo: '',
  869. endFactoryNo: '',
  870. startSpecialNo: '',
  871. endSpecialNo: '',
  872. startBillNo: '',
  873. endBillNo: '',
  874. mailFactoryYear: '',
  875. startConfirmDate: '',
  876. endConfirmDate: '',
  877. settlementNo: '',
  878. startSettlementDate: '',
  879. endSettlementDate: '',
  880. startInFactoryDate:'',
  881. endInFactoryDate: '',
  882. startSettlementNo: '',
  883. endSettlementNo:'',
  884. inFactoryType: '',
  885. endMailFactoryDate:'',startMailFactoryDate:'',
  886. settlementStatus:'',mailFactoryStatus:'',
  887. endOrderDate:'',
  888. startOrderDate:''
  889. }, // 搜索表单
  890. listLoading: false, // 列表加载loading
  891. deduction: '全部',
  892. showPage: 1,
  893. importFileList: [],
  894. selectData: [],
  895. baseURL: '',
  896. isCollapse: true,
  897. refundDepositArr: [
  898. {
  899. label: '是',
  900. value: true
  901. },
  902. {
  903. label: '否',
  904. value: false
  905. }
  906. ],
  907. mailFactoryStatus:'' ,
  908. settlementStatus:'',
  909. examineStatusArr: [
  910. {
  911. label: '保存',
  912. value: 'SAVE'
  913. },
  914. {
  915. label: '待审核',
  916. value: 'WAIT'
  917. },
  918. {
  919. label: '通过',
  920. value: 'OK'
  921. },
  922. {
  923. label: '关闭',
  924. value: 'CLOSE'
  925. }
  926. ]
  927. }
  928. },
  929. computed: {
  930. isCustomer() {
  931. return this.$store.getters.customerId && this.$store.getters.customerNumber
  932. }
  933. },
  934. methods: {
  935. replenishClick(id){
  936. this.depositManageId = id
  937. this.showPage = 5
  938. },
  939. reexamineClick(id){
  940. this.detailId = id
  941. this.showSurrender = 3
  942. },
  943. // 同步资料日期
  944. async syncDateFn() {
  945. await getDepositManageDate()
  946. this.$message.success('同步资料日期成功')
  947. },
  948. // 免扣申请
  949. deductionFn() {
  950. this.showPage = 3
  951. },
  952. // 申请退押
  953. surrenderFn(row) {
  954. this.depositManageId = row.depositManageId
  955. this.showPage = 4
  956. },
  957. detailFn(row) {
  958. this.depositManageId = row.depositManageId
  959. this.refEnginRecordNo = row.refEnginRecordNo
  960. this.showPage = 2
  961. },
  962. getList() {
  963. this.listLoading = true
  964. const params = {
  965. pageSize: this.pageSize,
  966. pageNum: this.currentPage,
  967. isRefundDeposit: '',
  968. ...this.screenForm
  969. }
  970. params.isRefundDeposit = this.deduction === '已退押' ? true : ''
  971. if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false) {
  972. params.isRefundDeposit = this.screenForm.isRefundDeposit
  973. }
  974. getList(params).then(res => {
  975. this.dataList = res.data.records
  976. res.data.records.forEach(item => {
  977. item.totalPrice = item.itemPrice * item.itemQty
  978. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  979. item.sums1 = ['qty', 'orderHasSendQty', 'itemDataQty', 'itemContractQty']
  980. item.sums2 = [
  981. 'itemDepositAmount',
  982. 'diffAmount',
  983. 'price',
  984. 'totalAmount',
  985. 'depositAmount',
  986. 'totalPrice',
  987. 'itemContractPrice',
  988. 'itemContractAmount'
  989. ]
  990. })
  991. this.listLoading = false
  992. this.listTotal = res.data.total
  993. })
  994. },
  995. handleRadio() {
  996. this.getList()
  997. },
  998. hanleDownloadFiles() {
  999. let isRefundDeposit = this.deduction === '已退押' ? true : ''
  1000. if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false) {
  1001. isRefundDeposit = this.screenForm.isRefundDeposit
  1002. }
  1003. downloadFiles('deposit-manage/export', {
  1004. ...this.screenForm,
  1005. isRefundDeposit,
  1006. orderType: 'HOME'
  1007. })
  1008. },
  1009. // 导入
  1010. async handleImport(param) {
  1011. this.importLoading = true
  1012. const file = param.file
  1013. const formData = new FormData()
  1014. formData.append('file', file)
  1015. // formData.append("policyId", this.screenForm.code);
  1016. const result = await handleImport('deposit-manage/import', formData)
  1017. this.importLoading = false
  1018. this.importFileList = []
  1019. if (result.code == 200) {
  1020. this.$alert(result.message, '导入成功', {
  1021. confirmButtonText: '确定'
  1022. })
  1023. this.getList()
  1024. } else {
  1025. this.$alert(result.message, '导入失败', {
  1026. confirmButtonText: '确定'
  1027. })
  1028. }
  1029. },
  1030. handleSelectionAllChange(e) {
  1031. this.selectData = e
  1032. }
  1033. }
  1034. }
  1035. </script>
  1036. <style lang="scss" scoped>
  1037. .app-container {
  1038. padding: 40px 20px;
  1039. }
  1040. .fanwei {
  1041. display: flex;
  1042. span {
  1043. margin: 0 20px;
  1044. line-height: 28px;
  1045. }
  1046. div {
  1047. width: 100%;
  1048. }
  1049. }
  1050. .dateStyle {
  1051. width: 100%;
  1052. }
  1053. .import-btn {
  1054. margin-left: 10px;
  1055. }
  1056. span {
  1057. line-height: 28px;
  1058. }
  1059. </style>