refund_list.vue 39 KB

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