deposit_replenish.vue 52 KB

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