refund_list-detail.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241
  1. <template>
  2. <div>
  3. <div class="sty">
  4. <el-page-header @back="goBack" :content="title"> </el-page-header>
  5. </div>
  6. <el-divider></el-divider>
  7. <h3>工程项目信息</h3>
  8. <el-divider></el-divider>
  9. <div class="diy-table-1">
  10. <el-row :gutter="0">
  11. <el-col :xs="12" :sm="24" :lg="8" class="item">
  12. <div class="label">
  13. {{
  14. detailList.enginOrderType == "HOME"
  15. ? "工程登录编号"
  16. : "工程信息编号"
  17. }}
  18. </div>
  19. <div class="value">{{ detailList.refEnginRecordNo }}</div>
  20. </el-col>
  21. <!-- <el-col :xs="12" :sm="24" :lg="8" class="item">
  22. <div class="label">工程信息编号</div>
  23. <div class="value">{{ detailList.refEnginRecordNo }}</div>
  24. </el-col> -->
  25. <el-col :xs="12" :sm="24" :lg="8" class="item">
  26. <div class="label">项目类别</div>
  27. <div class="value">{{ detailList.refProjectName }}</div>
  28. </el-col>
  29. <el-col :xs="12" :sm="24" :lg="8" class="item">
  30. <div class="label">行业类别</div>
  31. <div class="value">
  32. {{ detailList.refTradeCategory }}
  33. </div>
  34. </el-col>
  35. <el-col :xs="24" :sm="24" :lg="8" class="item">
  36. <div class="label">跨区厂编号</div>
  37. <div class="value">{{ detailList.refFactoryNo }}</div>
  38. </el-col>
  39. <el-col :xs="24" :sm="24" :lg="8" class="item">
  40. <div class="label">使用单位</div>
  41. <div class="value">{{ detailList.refUseUnit }}</div>
  42. </el-col>
  43. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  44. <div class="label">经销商二级代码</div>
  45. <div class="value">{{detailList.}}</div>
  46. </el-col> -->
  47. <el-col :xs="24" :sm="24" :lg="8" class="item">
  48. <div class="label">业务员</div>
  49. <div class="value">{{ detailList.serviceName }}</div>
  50. </el-col>
  51. <el-col :xs="24" :sm="24" :lg="8" class="item">
  52. <div class="label">联系人</div>
  53. <div class="value">{{ detailList.refLinkman }}</div>
  54. </el-col>
  55. <el-col :xs="24" :sm="24" :lg="8" class="item">
  56. <div class="label">固定电话</div>
  57. <div class="value">{{ detailList.refTel }}</div>
  58. </el-col>
  59. <el-col :xs="24" :sm="24" :lg="8" class="item">
  60. <div class="label">移动电话</div>
  61. <div class="value">{{ detailList.refPhone }}</div>
  62. </el-col>
  63. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  64. <div class="label">移动电话</div>
  65. <div class="value">
  66. <el-input
  67. :readonly="title == '详情'"
  68. placeholder="请输入"
  69. v-model="detailList.refPhone"
  70. ></el-input>
  71. </div>
  72. </el-col> -->
  73. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  74. <div class="label">押金比例</div>
  75. <div class="value">{{detailList.}}</div>
  76. </el-col> -->
  77. <el-col :xs="24" :sm="24" :lg="8" class="item">
  78. <div class="label">单据状态</div>
  79. <div class="value">
  80. {{
  81. detailList.examineStatus == "SAVE"
  82. ? "保存"
  83. : detailList.examineStatus == "WAIT"
  84. ? "待审核"
  85. : detailList.examineStatus == "OK"
  86. ? "通过"
  87. : detailList.examineStatus == "FAIL"
  88. ? "不通过"
  89. : "关闭"
  90. }}
  91. </div>
  92. </el-col>
  93. <el-col :xs="24" :sm="24" :lg="8" class="item">
  94. <div class="label">销售类型</div>
  95. <div class="value">{{ detailList.saleTypeName }}</div>
  96. </el-col>
  97. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  98. <div class="label">不扣押金</div>
  99. <div class="value">{{ detailList.customerName }}</div>
  100. </el-col> -->
  101. <el-col :xs="24" :sm="24" :lg="8" class="item">
  102. <div class="label">第几次申报</div>
  103. <div class="value">{{ detailList.refDeclareNo }}</div>
  104. </el-col>
  105. <el-col :xs="24" :sm="24" :lg="8" class="item">
  106. <div class="label">项目类型</div>
  107. <div class="value">{{ detailList.refProjectType }}</div>
  108. </el-col>
  109. <el-col :xs="24" :sm="24" :lg="8" class="item">
  110. <div class="label">经销商编码</div>
  111. <div class="value">{{ detailList.customerNumber }}</div>
  112. </el-col>
  113. <el-col :xs="24" :sm="24" :lg="8" class="item">
  114. <div class="label">押金总额</div>
  115. <div class="value">{{ detailList.depositAmount }}</div>
  116. </el-col>
  117. <el-col :xs="24" :sm="24" :lg="8" class="item">
  118. <div class="label">安装时间</div>
  119. <div class="value">
  120. <el-date-picker
  121. prefix-icon="''"
  122. placeholder="请选择安装时间"
  123. :readonly="title == '详情'"
  124. class="selectStyle"
  125. v-model="detailList.installDate"
  126. type="datetime"
  127. default-time="00:00:00"
  128. value-format="yyyy-MM-dd HH:mm:ss"
  129. >
  130. </el-date-picker>
  131. </div>
  132. </el-col>
  133. <el-col :xs="24" :sm="24" :lg="16" class="item">
  134. <div class="label">安装地址</div>
  135. <div class="value">{{ detailList.refInstallAddress }}</div>
  136. </el-col>
  137. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  138. <div class="label">工程订单号</div>
  139. <div class="value">{{ detailList.customerName }}</div>
  140. </el-col> -->
  141. <el-col :xs="24" :sm="24" :lg="16" class="item">
  142. <div class="label">经销商名称</div>
  143. <div class="value">{{ detailList.customerName }}</div>
  144. </el-col>
  145. <el-col :xs="24" :sm="24" :lg="16" class="item">
  146. <div class="label">项目说明</div>
  147. <div class="value">{{ detailList.refProjectNote }}</div>
  148. </el-col>
  149. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  150. <div class="label">订单日期</div>
  151. <div class="value">{{ detailList.customerName }}</div>
  152. </el-col> -->
  153. <!-- <el-col :xs="24" :sm="24" :lg="16" class="item">
  154. <div class="label">格力内部备注</div>
  155. <div class="value">{{ detailList.customerName }}</div>
  156. </el-col> -->
  157. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  158. <div class="label">文件编码</div>
  159. <div class="value">{{ detailList.customerName }}</div>
  160. </el-col> -->
  161. <el-col :xs="24" :sm="24" :lg="16" class="item">
  162. <div class="label">备注</div>
  163. <!-- <div class="value">{{ detailList.remark }}</div> -->
  164. <div class="value">
  165. <el-input
  166. :readonly="detailList.examineStatus !== 'WAIT'"
  167. v-model="detailList.remark"
  168. placeholder="请输入内容"
  169. ></el-input>
  170. </div>
  171. </el-col>
  172. <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="16" class="item">
  173. <div class="label">格力内部备注</div>
  174. <!-- <div class="value">{{ detailList.geLiInerNote}}</div> -->
  175. <div class="value">
  176. <el-input
  177. :readonly="detailList.examineStatus !== 'WAIT'"
  178. v-model="detailList.geLiInerNote"
  179. placeholder="请输入内容"
  180. ></el-input>
  181. </div>
  182. </el-col>
  183. <el-col :xs="24" :sm="24" :lg="8" class="item">
  184. <div class="label">提交保证函</div>
  185. <!-- <div class="value">{{ detailList.remark }}</div> -->
  186. <div class="value">
  187. <el-input
  188. readonly
  189. v-model="detailList.refPromiseProvide"
  190. ></el-input>
  191. </div>
  192. </el-col>
  193. <el-col :xs="24" :sm="24" :lg="8" class="item">
  194. <div class="label">跟进函备注</div>
  195. <!-- <div class="value">{{ detailList.remark }}</div> -->
  196. <div class="value">
  197. <el-input
  198. readonly
  199. v-model="detailList.refFollowAcceptRemark"
  200. ></el-input>
  201. </div>
  202. </el-col>
  203. <el-col :xs="24" :sm="24" :lg="8" class="item">
  204. <div class="label">资料提交日期</div>
  205. <div class="value">{{ detailList.refDatumProvideDate }}</div>
  206. <!-- <div class="value">
  207. <el-date-picker
  208. prefix-icon="''"
  209. placeholder="请选择安装时间"
  210. class="selectStyle"
  211. v-model="detailList.refDatumProvideDate"
  212. type="datetime"
  213. default-time="00:00:00"
  214. value-format="yyyy-MM-dd HH:mm:ss"
  215. >
  216. </el-date-picker>
  217. </div> -->
  218. </el-col>
  219. <el-col :xs="24" :sm="24" :lg="8" class="item">
  220. <div class="label">大额工程</div>
  221. <div class="value">{{ detailList.refIsBigAmounts }}</div>
  222. <!-- <div class="value">
  223. <el-select
  224. v-model="detailList.refIsBigAmounts"
  225. v
  226. clearable
  227. filterable
  228. >
  229. <el-option label="是" value="是"> </el-option>
  230. <el-option label="否" value="否"> </el-option>
  231. </el-select>
  232. </div> -->
  233. </el-col>
  234. <el-col :xs="24" :sm="24" :lg="8" class="item">
  235. <div class="label">合同变更批复结果</div>
  236. <!-- <div class="value">{{ detailList.remark }}</div> -->
  237. <div class="value">
  238. <el-input
  239. readonly
  240. v-model="detailList.refContractResult"
  241. ></el-input>
  242. </div>
  243. </el-col>
  244. <el-col :xs="24" :sm="24" :lg="8" class="item">
  245. <div class="label">工程机转零售批复结果</div>
  246. <!-- <div class="value">{{ detailList.remark }}</div> -->
  247. <div class="value">
  248. <el-input
  249. readonly
  250. v-model="detailList.refToRetailResult"
  251. ></el-input>
  252. </div>
  253. </el-col>
  254. <el-col :xs="24" :sm="24" :lg="8" class="item">
  255. <div class="label">资料延期批复结果</div>
  256. <!-- <div class="value">{{ detailList.remark }}</div> -->
  257. <div class="value">
  258. <el-input
  259. readonly
  260. v-model="detailList.refDataDelayResult"
  261. ></el-input>
  262. </div>
  263. </el-col>
  264. <el-col :xs="24" :sm="24" :lg="8" class="item">
  265. <div class="label">其他附件批复结果</div>
  266. <!-- <div class="value">{{ detailList.remark }}</div> -->
  267. <div class="value">
  268. <el-input
  269. readonly
  270. v-model="detailList.refOtherAnnexResult"
  271. ></el-input>
  272. </div>
  273. </el-col>
  274. <el-col :xs="24" :sm="24" :lg="8" class="item">
  275. <div class="label">保证函受理状态</div>
  276. <!-- <div class="value">{{ detailList.remark }}</div> -->
  277. <div class="value">
  278. <el-input
  279. readonly
  280. v-model="detailList.refPromiseAcceptStatus"
  281. ></el-input>
  282. </div>
  283. </el-col>
  284. <el-col :xs="24" :sm="24" :lg="8" class="item">
  285. <div class="label">保证函备注</div>
  286. <!-- <div class="value">{{ detailList.remark }}</div> -->
  287. <div class="value">
  288. <el-input
  289. readonly
  290. v-model="detailList.refPromisePriceRemark"
  291. ></el-input>
  292. </div>
  293. </el-col>
  294. <el-col :xs="24" :sm="24" :lg="8" class="item">
  295. <div class="label">附件备注</div>
  296. <!-- <div class="value">{{ detailList.remark }}</div> -->
  297. <div class="value">
  298. <el-input
  299. readonly
  300. v-model="detailList.refFjShenPiRemark"
  301. ></el-input>
  302. </div>
  303. </el-col>
  304. <el-col :xs="24" :sm="24" :lg="8" class="item">
  305. <div class="label">资料状态</div>
  306. <!-- <div class="value">{{ detailList.remark }}</div> -->
  307. <div class="value">
  308. <el-input readonly v-model="detailList.refDatumProvide"></el-input>
  309. </div>
  310. </el-col>
  311. <el-col :xs="24" :sm="24" :lg="8" class="item">
  312. <div class="label">资料审核结果</div>
  313. <!-- <div class="value">{{ detailList.remark }}</div> -->
  314. <div class="value">
  315. <el-input
  316. readonly
  317. v-model="detailList.refDatumAcceptStatus"
  318. ></el-input>
  319. </div>
  320. </el-col>
  321. <el-col :xs="24" :sm="24" :lg="8" class="item">
  322. <div class="label">合同变更批复意见</div>
  323. <!-- <div class="value">{{ detailList.remark }}</div> -->
  324. <div class="value">
  325. <el-input readonly v-model="detailList.refContractIdea"></el-input>
  326. </div>
  327. </el-col>
  328. <el-col :xs="24" :sm="24" :lg="8" class="item">
  329. <div class="label">工程机转零售批复意见</div>
  330. <!-- <div class="value">{{ detailList.remark }}</div> -->
  331. <div class="value">
  332. <el-input readonly v-model="detailList.refToRetailIdea"></el-input>
  333. </div>
  334. </el-col>
  335. <el-col :xs="24" :sm="24" :lg="8" class="item">
  336. <div class="label">资料延期批复意见</div>
  337. <!-- <div class="value">{{ detailList.remark }}</div> -->
  338. <div class="value">
  339. <el-input readonly v-model="detailList.refDataDelayIdea"></el-input>
  340. </div>
  341. </el-col>
  342. <el-col :xs="24" :sm="24" :lg="8" class="item">
  343. <div class="label">其他附件审批</div>
  344. <!-- <div class="value">{{ detailList.remark }}</div> -->
  345. <div class="value">
  346. <el-input
  347. readonly
  348. v-model="detailList.refOtherAnnexIdea"
  349. ></el-input>
  350. </div>
  351. </el-col>
  352. <el-col :xs="24" :sm="24" :lg="8" class="item">
  353. <div class="label">资料审核日期</div>
  354. <div class="value">{{ detailList.refDatumAcceptDate }}</div>
  355. <!-- <div class="value">
  356. <el-date-picker
  357. readonly
  358. prefix-icon="''"
  359. placeholder="请选择安装时间"
  360. class="selectStyle"
  361. v-model="detailList.refDatumAcceptDate"
  362. type="datetime"
  363. default-time="00:00:00"
  364. value-format="yyyy-MM-dd HH:mm:ss"
  365. >
  366. </el-date-picker>
  367. </div> -->
  368. </el-col>
  369. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  370. <div class="label">寄厂日期</div>
  371. <div class="value">
  372. <el-date-picker
  373. :readonly="title == '详情'"
  374. class="selectStyle"
  375. v-model="detailList.sendFactoryDate"
  376. type="datetime"
  377. prefix-icon="''"
  378. placeholder="请选择寄厂日期"
  379. default-time="00:00:00"
  380. value-format="yyyy-MM-dd HH:mm:ss"
  381. >
  382. </el-date-picker>
  383. </div>
  384. </el-col> -->
  385. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  386. <div class="label">提货日期</div>
  387. <div class="value">{{detailList.}}</div>
  388. </el-col> -->
  389. </el-row>
  390. </div>
  391. <h3>货品信息</h3>
  392. <el-divider></el-divider>
  393. <!-- 列表 -->
  394. <div class="mymain-container">
  395. <div class="table">
  396. <div class="table">
  397. <el-table
  398. v-loading="listLoading"
  399. :data="detailList.items"
  400. element-loading-text="Loading"
  401. border
  402. fit
  403. highlight-current-row
  404. stripe
  405. show-summary
  406. :summary-method="$getSummaries"
  407. >
  408. <template v-if="!isCustomer">
  409. <el-table-column
  410. align="left"
  411. label="厂编号"
  412. prop="factoryNo"
  413. min-width="160"
  414. show-overflow-tooltip
  415. >
  416. <template slot-scope="scope">
  417. <CopyButton :copyText="scope.row.factoryNo" />
  418. <span>{{ scope.row.factoryNo }}</span>
  419. </template>
  420. </el-table-column>
  421. <el-table-column
  422. align="left"
  423. label="物料编码"
  424. prop="materialNumber"
  425. min-width="160"
  426. show-overflow-tooltip
  427. >
  428. <template slot-scope="scope">
  429. <CopyButton :copyText="scope.row.materialNumber" />
  430. <span>{{ scope.row.materialNumber }}</span>
  431. </template>
  432. </el-table-column>
  433. </template>
  434. <el-table-column
  435. align="left"
  436. label="产品编码"
  437. prop="materialOldNumber"
  438. min-width="160"
  439. show-overflow-tooltip
  440. >
  441. <template slot-scope="scope">
  442. <CopyButton :copyText="scope.row.materialOldNumber" />
  443. <span>{{ scope.row.materialOldNumber }}</span>
  444. </template>
  445. </el-table-column>
  446. <el-table-column
  447. align="left"
  448. label="产品名称"
  449. prop="materialName"
  450. min-width="160"
  451. show-overflow-tooltip
  452. >
  453. <template slot-scope="scope">
  454. <CopyButton :copyText="scope.row.materialName" />
  455. <span>{{ scope.row.materialName }}</span>
  456. </template>
  457. </el-table-column>
  458. <el-table-column
  459. align="left"
  460. label="规格型号"
  461. prop="specification"
  462. min-width="160"
  463. show-overflow-tooltip
  464. >
  465. <template slot-scope="scope">
  466. <CopyButton :copyText="scope.row.specification" />
  467. <span>{{ scope.row.specification }}</span>
  468. </template>
  469. </el-table-column>
  470. <el-table-column
  471. align="right"
  472. label="单价"
  473. prop="price"
  474. min-width="160"
  475. show-overflow-tooltip
  476. >
  477. <template slot-scope="scope">
  478. {{ scope.row.price | numToFixed }}
  479. </template>
  480. </el-table-column>
  481. <el-table-column
  482. align="right"
  483. label="数量"
  484. prop="qty"
  485. min-width="160"
  486. show-overflow-tooltip
  487. />
  488. <el-table-column
  489. align="right"
  490. label="金额"
  491. prop="totalAmount"
  492. min-width="160"
  493. show-overflow-tooltip
  494. >
  495. <template slot-scope="scope">
  496. {{ scope.row.totalAmount | numToFixed }}
  497. </template>
  498. </el-table-column>
  499. <el-table-column
  500. align="right"
  501. label="押金数量"
  502. prop="hasSendQty"
  503. min-width="160"
  504. show-overflow-tooltip
  505. />
  506. <el-table-column
  507. align="right"
  508. label="发货数量"
  509. prop="orderHasSendQty"
  510. min-width="160"
  511. show-overflow-tooltip
  512. />
  513. <el-table-column
  514. align="right"
  515. label="押金金额"
  516. prop="depositAmount"
  517. min-width="160"
  518. show-overflow-tooltip
  519. >
  520. <template slot-scope="scope">
  521. {{ scope.row.depositAmount | numToFixed }}
  522. </template>
  523. </el-table-column>
  524. <el-table-column
  525. align="right"
  526. label="合同数量"
  527. prop="contractQty"
  528. min-width="160"
  529. show-overflow-tooltip
  530. >
  531. <template slot-scope="scope">
  532. <template v-if="detailList.examineStatus !== 'WAIT'">
  533. {{ scope.row.contractQty }}
  534. </template>
  535. <el-input
  536. v-else
  537. class="inpt"
  538. v-model="scope.row.contractQty"
  539. size="mini"
  540. clearable
  541. ></el-input>
  542. </template>
  543. </el-table-column>
  544. <el-table-column
  545. align="right"
  546. label="合同价格"
  547. prop="contractPrice"
  548. min-width="160"
  549. show-overflow-tooltip
  550. >
  551. <template slot-scope="scope">
  552. <template v-if="detailList.examineStatus !== 'WAIT'">
  553. {{ scope.row.contractPrice }}
  554. </template>
  555. <el-input
  556. v-else
  557. class="inpt"
  558. v-model="scope.row.contractPrice"
  559. size="mini"
  560. clearable
  561. ></el-input>
  562. </template>
  563. </el-table-column> <el-table-column
  564. align="right"
  565. label="合同金额"
  566. prop="contractAmount"
  567. min-width="160"
  568. show-overflow-tooltip
  569. >
  570. <template slot-scope="scope">
  571. <template v-if="detailList.examineStatus !== 'WAIT'">
  572. {{ scope.row.contractAmount }}
  573. </template>
  574. <el-input
  575. v-else
  576. class="inpt"
  577. v-model="scope.row.contractAmount"
  578. size="mini"
  579. clearable
  580. ></el-input>
  581. </template>
  582. </el-table-column>
  583. <el-table-column
  584. align="right"
  585. label="上交资料"
  586. prop="dataQty"
  587. min-width="160"
  588. show-overflow-tooltip
  589. />
  590. <el-table-column
  591. align="right"
  592. label="收差全额"
  593. prop="diffAmount"
  594. min-width="160"
  595. show-overflow-tooltip
  596. >
  597. <template slot-scope="scope">
  598. {{ scope.row.diffAmount | numToFixed }}
  599. </template>
  600. </el-table-column>
  601. </el-table>
  602. </div>
  603. </div>
  604. </div>
  605. <h3 class="gdzl">工程资料</h3>
  606. <el-button
  607. :readonly="isDis"
  608. class="batchDownload"
  609. type="primary"
  610. size="small"
  611. @click="batchDownloadFn"
  612. >批量下载</el-button
  613. >
  614. <el-divider></el-divider>
  615. <!-- 列表 -->
  616. <div class="mymain-container">
  617. <div class="table">
  618. <el-table
  619. v-loading="listLoading"
  620. :data="detailList.dataList"
  621. element-loading-text="Loading"
  622. border
  623. fit
  624. highlight-current-row
  625. stripe
  626. >
  627. <el-table-column
  628. align="left"
  629. label="资料描述"
  630. prop="dataDescribe"
  631. min-width="160"
  632. show-overflow-tooltip
  633. ></el-table-column>
  634. <el-table-column
  635. align="left"
  636. label="原文件名"
  637. prop="fileName"
  638. min-width="160"
  639. show-overflow-tooltip
  640. ></el-table-column>
  641. <el-table-column
  642. align="left"
  643. label="缩略图"
  644. prop="fileUrl"
  645. min-width="160"
  646. show-overflow-tooltip
  647. >
  648. <template slot-scope="scope">
  649. <el-image
  650. ref="img"
  651. :src="imageURL + scope.row.fileUrl"
  652. v-if="checkFileType(scope.row.fileUrl) == 'image'"
  653. style="width: 120px; height: 120px"
  654. fit="cover"
  655. :preview-src-list="[imageURL + scope.row.fileUrl]"
  656. >
  657. </el-image>
  658. <img
  659. class="file"
  660. src="@/assets/common/word.png"
  661. v-if="checkFileType(scope.row.fileUrl) == 'word'"
  662. />
  663. <img
  664. class="file"
  665. src="@/assets/common/excel.png"
  666. v-if="checkFileType(scope.row.fileUrl) == 'excel'"
  667. />
  668. <img
  669. class="file"
  670. src="@/assets/common/ppt.png"
  671. v-if="checkFileType(scope.row.fileUrl) == 'ppt'"
  672. />
  673. <img
  674. class="file"
  675. src="@/assets/common/pdf.png"
  676. v-if="checkFileType(scope.row.fileUrl) == 'pdf'"
  677. />
  678. <img
  679. v-if="checkFileType(scope.row.fileUrl) == 'file'"
  680. class="file aaa"
  681. src="@/assets/common/zip.jpeg"
  682. />
  683. </template>
  684. </el-table-column>
  685. <el-table-column
  686. align="left"
  687. label="下载文件名称"
  688. prop="fileName"
  689. min-width="160"
  690. show-overflow-tooltip
  691. >
  692. <template slot-scope="scope">
  693. {{ "资料_" + scope.row.fileName }}
  694. </template>
  695. </el-table-column>
  696. <el-table-column
  697. align="center"
  698. label="操作"
  699. min-width="160"
  700. show-overflow-tooltip
  701. >
  702. <template slot-scope="scope">
  703. <el-button
  704. type="text"
  705. class="textColor"
  706. @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)"
  707. >下载</el-button
  708. >
  709. </template>
  710. </el-table-column>
  711. </el-table>
  712. </div>
  713. </div>
  714. <el-divider></el-divider>
  715. <div class="diy-table-1">
  716. <el-row :gutter="0">
  717. <el-col :xs="12" :sm="12" :lg="12" class="item">
  718. <div class="label">申请人</div>
  719. <div class="value">{{ detailList.submitName }}</div>
  720. </el-col>
  721. <el-col :xs="12" :sm="12" :lg="12" class="item">
  722. <div class="label">申请日期</div>
  723. <div class="value">{{ detailList.submitTime }}</div>
  724. </el-col>
  725. <el-col :xs="12" :sm="24" :lg="24" class="item">
  726. <div class="label">申请退押金</div>
  727. <div class="value">{{ detailList.applyNote }}</div>
  728. </el-col>
  729. </el-row>
  730. </div>
  731. <h3>记录</h3>
  732. <el-divider></el-divider>
  733. <!-- 列表 -->
  734. <div class="mymain-container">
  735. <div class="table">
  736. <el-table
  737. v-loading="listLoading"
  738. :data="detailList.checkRecordItems"
  739. element-loading-text="Loading"
  740. border
  741. fit
  742. highlight-current-row
  743. stripe
  744. >
  745. <el-table-column
  746. align="left"
  747. label="申请人"
  748. prop="submitName"
  749. min-width="160"
  750. show-overflow-tooltip
  751. ></el-table-column>
  752. <el-table-column
  753. align="left"
  754. label="申请日期"
  755. prop="submitTime"
  756. min-width="160"
  757. show-overflow-tooltip
  758. ></el-table-column>
  759. <el-table-column
  760. align="left"
  761. label="申请说明"
  762. prop="applyNote"
  763. min-width="160"
  764. show-overflow-tooltip
  765. ></el-table-column>
  766. <el-table-column
  767. align="left"
  768. label="验收人"
  769. prop="checkName"
  770. min-width="160"
  771. show-overflow-tooltip
  772. ></el-table-column>
  773. <el-table-column
  774. align="left"
  775. label="受理日期"
  776. prop="checkDate"
  777. min-width="160"
  778. show-overflow-tooltip
  779. ></el-table-column>
  780. <el-table-column
  781. align="left"
  782. label="验收说明"
  783. prop="checkNote"
  784. min-width="160"
  785. show-overflow-tooltip
  786. ></el-table-column>
  787. <el-table-column
  788. align="left"
  789. label="审批结果"
  790. prop="isRefundDeposit"
  791. min-width="160"
  792. show-overflow-tooltip
  793. >
  794. <template slot-scope="scope">
  795. {{ scope.row.isRefundDeposit == false ? "否" : "是" }}
  796. </template>
  797. </el-table-column>
  798. </el-table>
  799. </div>
  800. </div>
  801. <h3
  802. v-if="
  803. detailList.examineStatus == 'WAIT' ||
  804. detailList.examineStatus == 'FAIL' ||
  805. detailList.examineStatus == 'OK'
  806. "
  807. >
  808. 审批
  809. </h3>
  810. <el-divider
  811. v-if="
  812. detailList.examineStatus == 'WAIT' ||
  813. detailList.examineStatus == 'FAIL' ||
  814. detailList.examineStatus == 'OK'
  815. "
  816. ></el-divider>
  817. <div v-if="detailList.examineStatus == 'WAIT'" class="diy-table-1">
  818. <el-row :gutter="0">
  819. <el-col :xs="12" :sm="12" :lg="12" class="item">
  820. <div class="label">验收人</div>
  821. <div class="value">{{ this.checkBy }}</div>
  822. </el-col>
  823. <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
  824. <div class="label">受理日期</div>
  825. <div class="value">
  826. <el-date-picker
  827. readonly
  828. prefix-icon="''"
  829. class="selectStyle"
  830. type="datetime"
  831. placeholder="系统自动生成"
  832. default-time="00:00:00"
  833. value-format="yyyy-MM-dd HH:mm:ss"
  834. >
  835. </el-date-picker>
  836. </div>
  837. </el-col>
  838. <el-col :xs="12" :sm="24" :lg="24" class="item">
  839. <div class="label">是否退押</div>
  840. <div class="value">
  841. <el-radio-group v-model="isRefundDeposit">
  842. <el-radio :label="true">是</el-radio>
  843. <el-radio :label="false">否</el-radio>
  844. </el-radio-group>
  845. </div>
  846. </el-col>
  847. <el-col :xs="12" :sm="24" :lg="24" class="item">
  848. <div class="label">验收说明</div>
  849. <div class="value">
  850. <el-input v-model="checkNote" placeholder="请输入内容"></el-input>
  851. </div>
  852. </el-col>
  853. </el-row>
  854. </div>
  855. <div
  856. v-if="
  857. detailList.examineStatus == 'OK' || detailList.examineStatus == 'FAIL'
  858. "
  859. class="diy-table-1"
  860. >
  861. <el-row :gutter="0">
  862. <el-col :xs="12" :sm="12" :lg="12" class="item">
  863. <div class="label">验收人</div>
  864. <div class="value">{{ detailList.checkBy }}</div>
  865. </el-col>
  866. <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
  867. <div class="label">受理日期</div>
  868. <div class="value">
  869. <el-date-picker
  870. readonly
  871. prefix-icon="''"
  872. class="selectStyle"
  873. v-model="detailList.checkDate"
  874. type="datetime"
  875. placeholder=""
  876. default-time="00:00:00"
  877. value-format="yyyy-MM-dd HH:mm:ss"
  878. >
  879. </el-date-picker>
  880. </div>
  881. </el-col>
  882. <el-col :xs="12" :sm="24" :lg="24" class="item">
  883. <div class="label">是否退押</div>
  884. <div class="value">
  885. <el-radio-group v-model="detailList.isRefundDeposit">
  886. <el-radio readonly :label="true">是</el-radio>
  887. <el-radio readonly :label="false">否</el-radio>
  888. </el-radio-group>
  889. </div>
  890. </el-col>
  891. <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
  892. <div class="label">验收说明</div>
  893. <div class="value">
  894. <el-input
  895. readonly
  896. v-model="detailList.checkNote"
  897. placeholder="请输入内容"
  898. ></el-input>
  899. </div>
  900. </el-col>
  901. <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
  902. <div class="label">审批通过后备注</div>
  903. <div class="value">
  904. <el-input
  905. v-model="detailList.examineAfterRemark"
  906. placeholder="请输入内容"
  907. ></el-input>
  908. </div>
  909. </el-col>
  910. </el-row>
  911. </div>
  912. <br />
  913. <!-- 按钮 -->
  914. <!-- detailList.examineStatus != 'OK' || detailList.examineStatus != 'FAIL' -->
  915. <div class="btn-group clearfix">
  916. <div class="fl">
  917. <el-button
  918. v-if="detailList.examineStatus == 'WAIT'"
  919. type="primary"
  920. size="small"
  921. @click="adoptFn"
  922. >审批通过</el-button
  923. >
  924. <el-button
  925. v-if="detailList.examineStatus == 'WAIT'"
  926. type="primary"
  927. size="small"
  928. @click="rejectFn"
  929. >审批驳回</el-button
  930. >
  931. <el-button
  932. v-if="detailList.examineStatus == 'OK'"
  933. type="primary"
  934. size="small"
  935. @click="saveFn"
  936. >保存</el-button
  937. >
  938. </div>
  939. </div>
  940. </div>
  941. </template>
  942. <script>
  943. import { downloadFiles } from "@/utils/util";
  944. import IMAGEUPLOAD from "@/components/Common/image-upload.vue";
  945. import { getFileUrl } from "@/api/common";
  946. import { mapGetters } from "vuex";
  947. import {
  948. getDepositManageDetail,
  949. getDepositManageExamine,
  950. getDepositManageDownZip,
  951. getDepositManageEdit,
  952. getCommonFileGetStream,
  953. } from "@/api/engin_deposit/refund_list";
  954. export default {
  955. props: {
  956. detailId: {
  957. type: String,
  958. required: true,
  959. },
  960. },
  961. components: { IMAGEUPLOAD },
  962. computed: {
  963. ...mapGetters(["name"]),
  964. },
  965. data() {
  966. return {
  967. isCustomer: JSON.parse(localStorage.getItem("supply_user")).isCustomer,
  968. isDis: true,
  969. imageURL: this.$imageUrl,
  970. title: "审批",
  971. imageURL: this.$imageUrl,
  972. listLoading: false, // 列表加载loading
  973. dataList: [], // 列表数据
  974. detailList: {},
  975. checkBy: "",
  976. checkDate: "",
  977. isRefundDeposit: true,
  978. checkNote: "",
  979. };
  980. },
  981. created() {
  982. console.log(this.$imageUrl, 8888);
  983. this.checkBy = this.name;
  984. this.getData({ id: this.detailId });
  985. },
  986. methods: {
  987. //审批通过后可以编辑
  988. async saveFn() {
  989. console.log(this.detailList);
  990. await getDepositManageEdit(this.detailList);
  991. this.$message.success("保存成功");
  992. this.goBack();
  993. this.$emit("updateList");
  994. },
  995. //批量下载
  996. async batchDownloadFn() {
  997. downloadFiles("/deposit-manage/downZip", { parentId: this.detailId });
  998. },
  999. //下载
  1000. async downLoadFn(v, name) {
  1001. // getCommonFileGetStream({ key: v, fileName: name }).then((res) => {
  1002. // // window.open(res.data);
  1003. // });
  1004. // // window.open(this.imageURL + v);
  1005. downloadFiles("/common/file/getStream", { key: v, fileName: name });
  1006. // await getCommonFileGetStream({ key: v, fileName: name });
  1007. },
  1008. // 检查文件类型
  1009. checkFileType(url) {
  1010. if (!url) return "";
  1011. const fileSuffix = url.substring(url.lastIndexOf(".") + 1);
  1012. if (["jpg", "jpeg", "png"].includes(fileSuffix)) {
  1013. return "image";
  1014. } else if (["doc", "docx", "dot", "wps", "wpt"].includes(fileSuffix)) {
  1015. return "word";
  1016. } else if (["xls", "xlsx", "xlt", "et", "ett"].includes(fileSuffix)) {
  1017. return "excel";
  1018. } else if (
  1019. ["ppt", "pptx", "dps", "dpt", "pot", "pps"].includes(fileSuffix)
  1020. ) {
  1021. return "ppt";
  1022. } else if (["pdf"].includes(fileSuffix)) {
  1023. return "pdf";
  1024. } else if (["zip", "rar", "gz", "apk"].includes(fileSuffix)) {
  1025. return "file";
  1026. } else {
  1027. return "";
  1028. }
  1029. },
  1030. //审批驳回
  1031. async rejectFn() {
  1032. this.$confirm("此操作将审批订单, 是否继续?", "提示", {
  1033. confirmButtonText: "确定",
  1034. cancelButtonText: "取消",
  1035. type: "warning",
  1036. })
  1037. .then(() => {
  1038. if (!this.detailList.installDate) {
  1039. this.$message.error("请选择安装时间");
  1040. return;
  1041. }
  1042. let data = {
  1043. ...this.detailList,
  1044. checkBy: this.checkBy,
  1045. // checkDate: this.checkDate,
  1046. isRefundDeposit: this.isRefundDeposit,
  1047. checkNote: this.checkNote,
  1048. examineResult: 0,
  1049. };
  1050. getDepositManageExamine(data)
  1051. .then((res) => {
  1052. if (!res.data) {
  1053. this.goBack();
  1054. this.$emit("updateList");
  1055. } else {
  1056. this.$confirm("审批成功!是否跳转下一张待审批订单?", "提示", {
  1057. confirmButtonText: "跳转",
  1058. cancelButtonText: "取消",
  1059. type: "warning",
  1060. })
  1061. .then(() => {
  1062. this.$successMsg("进入下一张待审批订单");
  1063. this.detailList = res.data;
  1064. })
  1065. .catch(() => {
  1066. this.goBack();
  1067. this.$emit("updateList");
  1068. });
  1069. }
  1070. })
  1071. .finally((res) => {});
  1072. })
  1073. .catch(() => {});
  1074. // if (!this.detailList.installDate) {
  1075. // this.$message.error("请选择安装时间");
  1076. // return;
  1077. // }
  1078. // let data = {
  1079. // ...this.detailList,
  1080. // checkBy: this.checkBy,
  1081. // // checkDate: this.checkDate,
  1082. // isRefundDeposit: this.isRefundDeposit,
  1083. // checkNote: this.checkNote,
  1084. // examineResult: 0,
  1085. // };
  1086. // await getDepositManageExamine(data);
  1087. // this.$message.success("审批驳回");
  1088. // this.goBack();
  1089. // this.$emit("updateList");
  1090. },
  1091. //审批通过
  1092. async adoptFn() {
  1093. this.$confirm("此操作将审批订单, 是否继续?", "提示", {
  1094. confirmButtonText: "确定",
  1095. cancelButtonText: "取消",
  1096. type: "warning",
  1097. })
  1098. .then(() => {
  1099. if (!this.detailList.installDate) {
  1100. this.$message.error("请选择安装时间");
  1101. return;
  1102. }
  1103. let data = {
  1104. ...this.detailList,
  1105. checkBy: this.checkBy,
  1106. // checkDate: this.checkDate,
  1107. isRefundDeposit: this.isRefundDeposit,
  1108. checkNote: this.checkNote,
  1109. examineResult: 1,
  1110. };
  1111. getDepositManageExamine(data)
  1112. .then((res) => {
  1113. if (!res.data) {
  1114. this.goBack();
  1115. this.$emit("updateList");
  1116. } else {
  1117. this.$confirm("审批成功!是否跳转下一张待审批订单?", "提示", {
  1118. confirmButtonText: "跳转",
  1119. cancelButtonText: "取消",
  1120. type: "warning",
  1121. })
  1122. .then(() => {
  1123. this.$successMsg("进入下一张待审批订单");
  1124. this.detailList = res.data;
  1125. })
  1126. .catch(() => {
  1127. this.goBack();
  1128. this.$emit("updateList");
  1129. });
  1130. }
  1131. })
  1132. .finally((res) => {});
  1133. })
  1134. .catch(() => {});
  1135. // if (!this.detailList.installDate) {
  1136. // this.$message.error("请选择安装时间");
  1137. // return;
  1138. // }
  1139. // let data = {
  1140. // ...this.detailList,
  1141. // checkBy: this.checkBy,
  1142. // // checkDate: this.checkDate,
  1143. // isRefundDeposit: this.isRefundDeposit,
  1144. // checkNote: this.checkNote,
  1145. // examineResult: 1,
  1146. // };
  1147. // await getDepositManageExamine(data);
  1148. // this.$message.success("审批通过");
  1149. // this.goBack();
  1150. // this.$emit("updateList");
  1151. },
  1152. async getData(data) {
  1153. const res = await getDepositManageDetail(data);
  1154. console.log(res);
  1155. if (res.data.dataList.length == 0) {
  1156. this.isDis = true;
  1157. } else {
  1158. this.isDis = false;
  1159. }
  1160. let arr = [];
  1161. res.data.items.forEach((item) => {
  1162. if (Number(item.qty) > 0) {
  1163. arr.push(item);
  1164. }
  1165. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  1166. item.sums1 = ["orderHasSendQty", "dataQty", "qty", "hasSendQty",
  1167. "contractQty"];
  1168. item.sums2 = [
  1169. "totalAmount",
  1170. "diffAmount",
  1171. "price",
  1172. "depositAmount",
  1173. "contractPrice",
  1174. "contractAmount",
  1175. ];
  1176. });
  1177. res.data.items = arr;
  1178. this.detailList = res.data;
  1179. if (
  1180. res.data.examineStatus == "SAVE" ||
  1181. res.data.examineStatus == "OK" ||
  1182. res.data.examineStatus == "FAIL"
  1183. ) {
  1184. this.title = "详情";
  1185. }
  1186. },
  1187. goBack() {
  1188. this.$parent.showSurrender = true;
  1189. },
  1190. },
  1191. };
  1192. </script>
  1193. <style lang="scss" scoped>
  1194. .inpt {
  1195. ::v-deep .el-input__inner {
  1196. text-align: right;
  1197. }
  1198. }
  1199. .aaa {
  1200. height: 64px;
  1201. width: 64px;
  1202. }
  1203. .dateS {
  1204. .value {
  1205. padding: 0;
  1206. }
  1207. }
  1208. .batchDownload {
  1209. float: right;
  1210. margin-top: 9px;
  1211. }
  1212. .gdzl {
  1213. display: inline-block;
  1214. }
  1215. .dateStyle {
  1216. width: 100%;
  1217. }
  1218. .label {
  1219. width: 150px !important;
  1220. }
  1221. .selectStyle {
  1222. width: 100%;
  1223. }
  1224. </style>