refund_list-detail.vue 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954
  1. <template>
  2. <div>
  3. <div class="sty">
  4. <el-page-header :content="title" @back="goBack" />
  5. </div>
  6. <el-divider />
  7. <h3>工程项目信息</h3>
  8. <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. {{ detailList.enginOrderType == 'HOME' ? '工程登录编号' : '工程信息编号' }}
  14. </div>
  15. <div class="value">
  16. <CopyButton :copy-text="detailList.refEnginRecordNo" />
  17. {{ detailList.refEnginRecordNo }}
  18. </div>
  19. </el-col>
  20. <!-- <el-col :xs="12" :sm="24" :lg="8" class="item">
  21. <div class="label">工程信息编号</div>
  22. <div class="value">{{ detailList.refEnginRecordNo }}</div>
  23. </el-col> -->
  24. <el-col :xs="12" :sm="24" :lg="8" class="item">
  25. <div class="label">项目类别</div>
  26. <div class="value">{{ detailList.refProjectCategory }}</div>
  27. </el-col>
  28. <el-col :xs="12" :sm="24" :lg="8" class="item">
  29. <div class="label">行业类别</div>
  30. <div class="value">
  31. {{ detailList.refTradeCategory }}
  32. </div>
  33. </el-col>
  34. <el-col :xs="24" :sm="24" :lg="8" class="item">
  35. <div class="label">跨区厂编号</div>
  36. <div class="value">{{ detailList.refFactoryNo }}</div>
  37. </el-col>
  38. <el-col :xs="24" :sm="24" :lg="8" class="item">
  39. <div class="label">使用单位</div>
  40. <div class="value">{{ detailList.refUseUnit }}</div>
  41. </el-col>
  42. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  43. <div class="label">经销商二级代码</div>
  44. <div class="value">{{detailList.}}</div>
  45. </el-col> -->
  46. <el-col :xs="24" :sm="24" :lg="8" class="item">
  47. <div class="label">业务员</div>
  48. <div class="value">{{ detailList.serviceName }}</div>
  49. </el-col>
  50. <el-col :xs="24" :sm="24" :lg="8" class="item">
  51. <div class="label">联系人</div>
  52. <div class="value">{{ detailList.refLinkman }}</div>
  53. </el-col>
  54. <el-col :xs="24" :sm="24" :lg="8" class="item">
  55. <div class="label">固定电话</div>
  56. <div class="value">{{ detailList.refTel }}</div>
  57. </el-col>
  58. <el-col :xs="24" :sm="24" :lg="8" class="item">
  59. <div class="label">移动电话</div>
  60. <div class="value">{{ detailList.refPhone }}</div>
  61. </el-col>
  62. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  63. <div class="label">移动电话</div>
  64. <div class="value">
  65. <el-input
  66. :readonly="title == '详情'"
  67. placeholder="请输入"
  68. v-model="detailList.refPhone"
  69. ></el-input>
  70. </div>
  71. </el-col> -->
  72. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  73. <div class="label">押金比例</div>
  74. <div class="value">{{detailList.}}</div>
  75. </el-col> -->
  76. <el-col :xs="24" :sm="24" :lg="8" class="item">
  77. <div class="label">单据状态</div>
  78. <div class="value">
  79. {{
  80. detailList.examineStatus == 'SAVE'
  81. ? '保存'
  82. : detailList.examineStatus == 'WAIT'
  83. ? '待审核'
  84. : detailList.examineStatus == 'OK'
  85. ? '通过'
  86. : detailList.examineStatus == 'FAIL'
  87. ? '不通过'
  88. : '关闭'
  89. }}
  90. </div>
  91. </el-col>
  92. <el-col :xs="24" :sm="24" :lg="8" class="item">
  93. <div class="label">销售类型</div>
  94. <div class="value">{{ detailList.saleTypeName }}</div>
  95. </el-col>
  96. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  97. <div class="label">不扣押金</div>
  98. <div class="value">{{ detailList.customerName }}</div>
  99. </el-col> -->
  100. <el-col :xs="24" :sm="24" :lg="8" class="item">
  101. <div class="label">第几申报</div>
  102. <div class="value">{{ detailList.refDeclareNo }}</div>
  103. </el-col>
  104. <el-col :xs="24" :sm="24" :lg="8" class="item">
  105. <div class="label">项目类型</div>
  106. <div class="value">{{ detailList.refProjectType }}</div>
  107. </el-col>
  108. <el-col :xs="24" :sm="24" :lg="8" class="item">
  109. <div class="label">经销商编码</div>
  110. <div class="value">{{ detailList.customerNumber }}</div>
  111. </el-col>
  112. <el-col :xs="24" :sm="24" :lg="8" class="item">
  113. <div class="label">押金总额</div>
  114. <div class="value">{{ detailList.depositAmount }}</div>
  115. </el-col>
  116. <el-col :xs="24" :sm="24" :lg="8" class="item">
  117. <div class="label">安装时间</div>
  118. <div class="value">
  119. <el-date-picker
  120. v-model="detailList.installDate"
  121. prefix-icon="''"
  122. placeholder="请选择安装时间"
  123. :readonly="title == '详情'"
  124. class="selectStyle"
  125. type="datetime"
  126. default-time="00:00:00"
  127. value-format="yyyy-MM-dd HH:mm:ss"
  128. />
  129. </div>
  130. </el-col>
  131. <el-col :xs="24" :sm="24" :lg="16" class="item">
  132. <div class="label">安装地址</div>
  133. <div class="value">{{ detailList.refInstallAddress }}</div>
  134. </el-col>
  135. <el-col :xs="24" :sm="24" :lg="8" class="item">
  136. <div class="label">登录有效期</div>
  137. <div class="value">
  138. {{ detailList.refBillsExpireDate }}
  139. </div>
  140. </el-col>
  141. <el-col :xs="24" :sm="24" :lg="8" class="item">
  142. <div class="label">实际使用单位</div>
  143. <div class="value">
  144. <el-input v-model="detailList.realUseUnit" :readonly="isCustomer" placeholder="实际使用单位" />
  145. </div>
  146. </el-col>
  147. <el-col :xs="24" :sm="24" :lg="8" class="item">
  148. <div class="label">实际安装地址</div>
  149. <div class="value">
  150. <el-input v-model="detailList.realInstallAddress" :readonly="isCustomer" placeholder="实际使用单位" />
  151. </div>
  152. </el-col>
  153. <el-col :xs="24" :sm="24" :lg="8" class="item">
  154. <div class="label">项目编号</div>
  155. <div class="value">
  156. {{ detailList.refProjectNo }}
  157. </div>
  158. </el-col>
  159. <el-col :xs="24" :sm="24" :lg="8" class="item">
  160. <div class="label">购买单位</div>
  161. <div class="value">
  162. <el-input v-model="detailList.refBuyUnitName" :readonly="isCustomer" placeholder="请输入购买单位" />
  163. </div>
  164. </el-col>
  165. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  166. <div class="label">工程订单号</div>
  167. <div class="value">{{ detailList.customerName }}</div>
  168. </el-col> -->
  169. <el-col :xs="24" :sm="24" :lg="8" class="item">
  170. <div class="label">经销商名称</div>
  171. <div class="value">{{ detailList.customerName }}</div>
  172. </el-col>
  173. <el-col :xs="24" :sm="24" :lg="24" class="item">
  174. <div class="label">项目说明</div>
  175. <div class="value">{{ detailList.refProjectNote }}</div>
  176. </el-col>
  177. <el-col :xs="24" :sm="24" :lg="24" class="item">
  178. <div class="label">备注</div>
  179. <!-- <div class="value">{{ detailList.remark }}</div> -->
  180. <div class="value">
  181. <el-input v-model="detailList.remark" placeholder="请输入内容" />
  182. </div>
  183. </el-col>
  184. <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="24" class="item">
  185. <div class="label">格力内部备注</div>
  186. <!-- <div class="value">{{ detailList.geLiInerNote}}</div> -->
  187. <div class="value">
  188. <el-input v-model="detailList.geLiInerNote" placeholder="请输入格力内部备注" />
  189. </div>
  190. </el-col>
  191. <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="24" class="item">
  192. <div class="label">格力内部资料备注</div>
  193. <div class="value">
  194. <el-input v-model="detailList.geLiInnerDataNote" placeholder="请输入格力内部资料备注" />
  195. </div>
  196. </el-col>
  197. <el-col v-if="!isCustomer" :xs="24" :sm="24" :lg="24" class="item">
  198. <div class="label">订单格力内部备注</div>
  199. <div class="value">{{ detailList.orderGeLiInnerNote }}</div>
  200. </el-col>
  201. <el-col :xs="24" :sm="24" :lg="8" class="item">
  202. <div class="label">提交保证函</div>
  203. <!-- <div class="value">{{ detailList.remark }}</div> -->
  204. <div class="value">
  205. <el-input v-model="detailList.refPromiseProvide" readonly />
  206. </div>
  207. </el-col>
  208. <el-col :xs="24" :sm="24" :lg="8" class="item">
  209. <div class="label">跟进函备注</div>
  210. <!-- <div class="value">{{ detailList.remark }}</div> -->
  211. <div class="value">
  212. <el-input v-model="detailList.refFollowAcceptRemark" readonly />
  213. </div>
  214. </el-col>
  215. <el-col :xs="24" :sm="24" :lg="8" class="item">
  216. <div class="label">资料提交日期</div>
  217. <div class="value">{{ detailList.refDatumProvideDate }}</div>
  218. <!-- <div class="value">
  219. <el-date-picker
  220. prefix-icon="''"
  221. placeholder="请选择安装时间"
  222. class="selectStyle"
  223. v-model="detailList.refDatumProvideDate"
  224. type="datetime"
  225. default-time="00:00:00"
  226. value-format="yyyy-MM-dd HH:mm:ss"
  227. >
  228. </el-date-picker>
  229. </div> -->
  230. </el-col>
  231. <el-col :xs="24" :sm="24" :lg="8" class="item">
  232. <div class="label">大额工程</div>
  233. <div class="value">{{ detailList.refIsBigAmounts }}</div>
  234. <!-- <div class="value">
  235. <el-select
  236. v-model="detailList.refIsBigAmounts"
  237. v
  238. clearable
  239. filterable
  240. >
  241. <el-option label="是" value="是"> </el-option>
  242. <el-option label="否" value="否"> </el-option>
  243. </el-select>
  244. </div> -->
  245. </el-col>
  246. <el-col :xs="24" :sm="24" :lg="8" class="item">
  247. <div class="label">合同变更批复结果</div>
  248. <!-- <div class="value">{{ detailList.remark }}</div> -->
  249. <div class="value">
  250. <el-input v-model="detailList.refContractResult" readonly />
  251. </div>
  252. </el-col>
  253. <el-col :xs="24" :sm="24" :lg="8" class="item">
  254. <div class="label">工程机转零售批复结果</div>
  255. <!-- <div class="value">{{ detailList.remark }}</div> -->
  256. <div class="value">
  257. <el-input v-model="detailList.refToRetailResult" readonly />
  258. </div>
  259. </el-col>
  260. <el-col :xs="24" :sm="24" :lg="8" class="item">
  261. <div class="label">资料延期批复结果</div>
  262. <!-- <div class="value">{{ detailList.remark }}</div> -->
  263. <div class="value">
  264. <el-input v-model="detailList.refDataDelayResult" readonly />
  265. </div>
  266. </el-col>
  267. <el-col :xs="24" :sm="24" :lg="8" class="item">
  268. <div class="label">其他附件批复结果</div>
  269. <!-- <div class="value">{{ detailList.remark }}</div> -->
  270. <div class="value">
  271. <el-input v-model="detailList.refOtherAnnexResult" readonly />
  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 v-model="detailList.refPromiseAcceptStatus" readonly />
  279. </div>
  280. </el-col>
  281. <el-col :xs="24" :sm="24" :lg="8" class="item">
  282. <div class="label">保证函备注</div>
  283. <!-- <div class="value">{{ detailList.remark }}</div> -->
  284. <div class="value">
  285. <el-input v-model="detailList.refPromisePriceRemark" readonly />
  286. </div>
  287. </el-col>
  288. <el-col :xs="24" :sm="24" :lg="8" class="item">
  289. <div class="label">附件备注</div>
  290. <!-- <div class="value">{{ detailList.remark }}</div> -->
  291. <div class="value">
  292. <el-input v-model="detailList.refFjShenPiRemark" readonly />
  293. </div>
  294. </el-col>
  295. <el-col :xs="24" :sm="24" :lg="8" class="item">
  296. <div class="label">资料状态</div>
  297. <!-- <div class="value">{{ detailList.remark }}</div> -->
  298. <div class="value">
  299. <el-input v-model="detailList.refDatumProvide" readonly />
  300. </div>
  301. </el-col>
  302. <el-col :xs="24" :sm="24" :lg="8" class="item">
  303. <div class="label">资料审核结果</div>
  304. <!-- <div class="value">{{ detailList.remark }}</div> -->
  305. <div class="value">
  306. <el-input v-model="detailList.refDatumAcceptStatus" readonly />
  307. </div>
  308. </el-col>
  309. <el-col :xs="24" :sm="24" :lg="8" class="item">
  310. <div class="label">合同变更批复意见</div>
  311. <!-- <div class="value">{{ detailList.remark }}</div> -->
  312. <div class="value">
  313. <el-input v-model="detailList.refContractIdea" readonly />
  314. </div>
  315. </el-col>
  316. <el-col :xs="24" :sm="24" :lg="8" class="item">
  317. <div class="label">工程机转零售批复意见</div>
  318. <!-- <div class="value">{{ detailList.remark }}</div> -->
  319. <div class="value">
  320. <el-input v-model="detailList.refToRetailIdea" readonly />
  321. </div>
  322. </el-col>
  323. <el-col :xs="24" :sm="24" :lg="8" class="item">
  324. <div class="label">资料延期批复意见</div>
  325. <!-- <div class="value">{{ detailList.remark }}</div> -->
  326. <div class="value">
  327. <el-input v-model="detailList.refDataDelayIdea" readonly />
  328. </div>
  329. </el-col>
  330. <el-col :xs="24" :sm="24" :lg="8" class="item">
  331. <div class="label">其他附件审批</div>
  332. <!-- <div class="value">{{ detailList.remark }}</div> -->
  333. <div class="value">
  334. <el-input v-model="detailList.refOtherAnnexIdea" readonly />
  335. </div>
  336. </el-col>
  337. <el-col :xs="24" :sm="24" :lg="8" class="item">
  338. <div class="label">资料审核日期</div>
  339. <div class="value">{{ detailList.refDatumAcceptDate }}</div>
  340. <!-- <div class="value">
  341. <el-date-picker
  342. readonly
  343. prefix-icon="''"
  344. placeholder="请选择安装时间"
  345. class="selectStyle"
  346. v-model="detailList.refDatumAcceptDate"
  347. type="datetime"
  348. default-time="00:00:00"
  349. value-format="yyyy-MM-dd HH:mm:ss"
  350. >
  351. </el-date-picker>
  352. </div> -->
  353. </el-col>
  354. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  355. <div class="label">寄厂日期</div>
  356. <div class="value">
  357. <el-date-picker
  358. :readonly="title == '详情'"
  359. class="selectStyle"
  360. v-model="detailList.sendFactoryDate"
  361. type="datetime"
  362. prefix-icon="''"
  363. placeholder="请选择寄厂日期"
  364. default-time="00:00:00"
  365. value-format="yyyy-MM-dd HH:mm:ss"
  366. >
  367. </el-date-picker>
  368. </div>
  369. </el-col> -->
  370. <!-- <el-col :xs="24" :sm="24" :lg="8" class="item">
  371. <div class="label">提货日期</div>
  372. <div class="value">{{detailList.}}</div>
  373. </el-col> -->
  374. </el-row>
  375. </div>
  376. <h3>货品信息</h3>
  377. <el-divider />
  378. <!-- 列表 -->
  379. <div class="mymain-container">
  380. <div class="table">
  381. <div class="table">
  382. <el-table
  383. v-loading="listLoading"
  384. :data="detailList.items"
  385. element-loading-text="Loading"
  386. border
  387. fit
  388. highlight-current-row
  389. stripe
  390. show-summary
  391. :summary-method="$getSummaries"
  392. >
  393. <el-table-column
  394. fixed="left"
  395. label="操作"
  396. width="100"
  397. >
  398. <template slot-scope="scope">
  399. <el-button
  400. v-if="scope.row.isCustom && !scope.row.isSource"
  401. type="text"
  402. size="mini"
  403. @click="()=>{
  404. detailList.items.splice(scope.$index,1)
  405. }"
  406. >删除</el-button>
  407. </template>
  408. </el-table-column>
  409. <template v-if="!isCustomer">
  410. <el-table-column align="left" label="厂编号" prop="factoryNo" min-width="160" show-overflow-tooltip>
  411. <template slot-scope="scope">
  412. <template v-if="scope.row.isCustom">
  413. <el-input v-model="scope.row.factoryNo" size="mini" placeholder="请输入" />
  414. </template>
  415. <template v-else>
  416. <CopyButton :copy-text="scope.row.factoryNo" />
  417. <span>{{ scope.row.factoryNo }}</span>
  418. </template>
  419. </template>
  420. </el-table-column>
  421. <el-table-column
  422. align="left"
  423. label="物料编码"
  424. prop="materialNumber"
  425. min-width="130"
  426. show-overflow-tooltip
  427. >
  428. <template slot-scope="scope">
  429. <template v-if="scope.row.isCustom">
  430. <el-input v-model="scope.row.materialNumber" size="mini" placeholder="请输入" />
  431. </template>
  432. <template v-else>
  433. <CopyButton :copy-text="scope.row.materialNumber" />
  434. <span>{{ scope.row.materialNumber }}</span>
  435. </template>
  436. </template>
  437. </el-table-column>
  438. </template>
  439. <el-table-column
  440. align="left"
  441. label="产品编码"
  442. prop="materialOldNumber"
  443. min-width="130"
  444. show-overflow-tooltip
  445. >
  446. <template slot-scope="scope">
  447. <template v-if="scope.row.isCustom">
  448. <el-input v-model="scope.row.materialOldNumber" size="mini" placeholder="请输入" />
  449. </template>
  450. <template v-else>
  451. <CopyButton :copy-text="scope.row.materialOldNumber" />
  452. <span>{{ scope.row.materialOldNumber }}</span>
  453. </template>
  454. </template>
  455. </el-table-column>
  456. <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
  457. <template slot-scope="scope">
  458. <template v-if="scope.row.isCustom">
  459. <el-input v-model="scope.row.materialName" size="mini" placeholder="请输入" />
  460. </template>
  461. <template v-else>
  462. <CopyButton :copy-text="scope.row.materialName" />
  463. <span>{{ scope.row.materialName }}</span>
  464. </template>
  465. </template>
  466. </el-table-column>
  467. <el-table-column align="left" label="规格型号" prop="specification" min-width="300" show-overflow-tooltip>
  468. <template slot-scope="scope">
  469. <template v-if="scope.row.isCustom">
  470. <el-input v-model="scope.row.specification" size="mini" placeholder="请输入" />
  471. </template>
  472. <template v-else>
  473. <CopyButton :copy-text="scope.row.specification" />
  474. <span>{{ scope.row.specification }}</span>
  475. </template>
  476. </template>
  477. </el-table-column>
  478. <el-table-column
  479. align="left"
  480. label="实装规格型号"
  481. prop="depositSpecification"
  482. min-width="300"
  483. show-overflow-tooltip
  484. >
  485. <template slot-scope="scope">
  486. <!-- <div
  487. v-if="title=='详情' && detailList.examineStatus !== 'OK'"
  488. :class="setColour(scope.row,'specification', 'realSpecification', 'depositSpecification')"
  489. >
  490. {{ scope.row.depositSpecification }}
  491. </div> -->
  492. <template v-if="scope.row.isCustom">
  493. <el-input v-model="scope.row.depositSpecification" size="mini" placeholder="请输入" />
  494. </template>
  495. <template v-else>
  496. <el-input
  497. v-model="scope.row.depositSpecification"
  498. :class="setColour(scope.row, 'specification', 'realSpecification', 'depositSpecification')"
  499. size="mini"
  500. readonly
  501. @click.native="getRealMaterData(scope.$index)"
  502. />
  503. </template>
  504. </template>
  505. </el-table-column>
  506. <el-table-column
  507. align="left"
  508. label="实装物料编号"
  509. prop="depositMaterialNumber"
  510. min-width="150"
  511. show-overflow-tooltip
  512. >
  513. <template slot-scope="scope">
  514. <!-- <div
  515. v-if="title=='详情'&& detailList.examineStatus !== 'OK'"
  516. :class="setColour(scope.row,'materialNumber', 'realMaterialNumber', 'depositMaterialNumber')"
  517. >
  518. {{ scope.row.depositMaterialNumber }}
  519. </div> -->
  520. <template v-if="scope.row.isCustom">
  521. <el-input v-model="scope.row.depositMaterialNumber" size="mini" placeholder="请输入" />
  522. </template>
  523. <template v-else>
  524. <el-input
  525. v-model="scope.row.depositMaterialNumber"
  526. :class="setColour(scope.row, 'materialNumber', 'realMaterialNumber', 'depositMaterialNumber')"
  527. size="mini"
  528. readonly
  529. @click.native="getRealMaterData(scope.$index)"
  530. />
  531. </template>
  532. </template>
  533. </el-table-column>
  534. <el-table-column
  535. align="left"
  536. label="实装厂产品编码"
  537. prop="depositMaterialOldNumber"
  538. min-width="200"
  539. show-overflow-tooltip
  540. >
  541. <template slot-scope="scope">
  542. <!-- <div
  543. v-if="title=='详情'&& detailList.examineStatus !== 'OK'"
  544. :class="setColour(scope.row,'materialOldNumber', 'realMaterialOldNumber', 'depositMaterialOldNumber')"
  545. >
  546. {{ scope.row.depositMaterialOldNumber }}
  547. </div> -->
  548. <template v-if="scope.row.isCustom">
  549. <el-input v-model="scope.row.depositMaterialOldNumber" size="mini" placeholder="请输入" />
  550. </template>
  551. <template v-else>
  552. <el-input
  553. v-model="scope.row.depositMaterialOldNumber"
  554. :class="
  555. setColour(scope.row, 'materialOldNumber', 'realMaterialOldNumber', 'depositMaterialOldNumber')
  556. "
  557. size="mini"
  558. readonly
  559. @click.native="getRealMaterData(scope.$index)"
  560. />
  561. </template>
  562. </template>
  563. </el-table-column>
  564. <el-table-column align="right" label="单价" prop="price" min-width="160" show-overflow-tooltip>
  565. <template slot-scope="scope">
  566. <template v-if="scope.row.isCustom">
  567. <el-input v-model.number="scope.row.price" size="mini" type="number" placeholder="请输入" />
  568. </template>
  569. <template v-else>
  570. {{ scope.row.price | numToFixed }}
  571. </template>
  572. </template>
  573. </el-table-column>
  574. <el-table-column align="right" label="数量" prop="qty" min-width="160" show-overflow-tooltip>
  575. <template slot-scope="scope">
  576. <template v-if="scope.row.isCustom">
  577. <el-input v-model.number="scope.row.qty" size="mini" type="number" placeholder="请输入" />
  578. </template>
  579. <template v-else>
  580. {{ scope.row.qty }}
  581. </template>
  582. </template>
  583. </el-table-column>
  584. <el-table-column align="right" label="金额" prop="totalAmount" min-width="160" show-overflow-tooltip>
  585. <template slot-scope="scope">
  586. <template v-if="scope.row.isCustom">
  587. <el-input v-model.number="scope.row.totalAmount" size="mini" type="number" placeholder="请输入" />
  588. </template>
  589. <template v-else>
  590. {{ scope.row.totalAmount | numToFixed }}
  591. </template>
  592. </template>
  593. </el-table-column>
  594. <el-table-column align="right" label="销售数量" prop="salesQty" min-width="160" show-overflow-tooltip>
  595. <template slot-scope="scope">
  596. <template v-if="scope.row.isCustom">
  597. <el-input v-model.number="scope.row.salesQty" size="mini" type="number" placeholder="请输入" />
  598. </template>
  599. <template v-else>
  600. {{ scope.row.salesQty }}
  601. </template>
  602. </template>
  603. </el-table-column>
  604. <el-table-column align="right" label="销售金额" prop="salesAmount" min-width="160" show-overflow-tooltip>
  605. <template slot-scope="scope">
  606. <template v-if="scope.row.isCustom">
  607. <el-input v-model.number="scope.row.salesAmount" size="mini" type="number" placeholder="请输入" />
  608. </template>
  609. <template v-else>
  610. {{ scope.row.salesAmount | numToFixed }}
  611. </template>
  612. </template>
  613. </el-table-column>
  614. <el-table-column align="right" label="押金数量" prop="hasSendQty" min-width="160" show-overflow-tooltip>
  615. <template slot-scope="scope">
  616. <template v-if="scope.row.isCustom">
  617. <el-input v-model.number="scope.row.hasSendQty" size="mini" type="number" placeholder="请输入" />
  618. </template>
  619. <template v-else>
  620. {{ scope.row.hasSendQty }}
  621. </template>
  622. </template>
  623. </el-table-column>
  624. <el-table-column
  625. align="right"
  626. label="发货数量"
  627. prop="orderHasSendQty"
  628. min-width="160"
  629. show-overflow-tooltip
  630. >
  631. <template slot-scope="scope">
  632. <template v-if="scope.row.isCustom">
  633. <el-input v-model.number="scope.row.orderHasSendQty" size="mini" type="number" placeholder="请输入" />
  634. </template>
  635. <template v-else>
  636. {{ scope.row.orderHasSendQty }}
  637. </template>
  638. </template>
  639. </el-table-column>
  640. <el-table-column align="right" label="押金金额" prop="depositAmount" min-width="160" show-overflow-tooltip>
  641. <template slot-scope="scope">
  642. <template v-if="scope.row.isCustom">
  643. <el-input v-model.number="scope.row.depositAmount" size="mini" type="number" placeholder="请输入" />
  644. </template>
  645. <template v-else>
  646. {{ scope.row.depositAmount | numToFixed }}
  647. </template>
  648. </template>
  649. </el-table-column>
  650. <el-table-column align="right" label="合同数量" prop="contractQty" min-width="160" show-overflow-tooltip>
  651. <template slot-scope="scope">
  652. <template v-if="scope.row.isCustom">
  653. <el-input v-model.number="scope.row.contractQty" size="mini" type="number" placeholder="请输入" />
  654. </template>
  655. <template v-else>
  656. <el-input
  657. v-if="title !== '详情'"
  658. v-model.number="scope.row.contractQty"
  659. class="inpt"
  660. size="mini"
  661. clearable
  662. />
  663. <div v-else>
  664. {{ scope.row.contractQty }}
  665. </div>
  666. </template>
  667. </template>
  668. </el-table-column>
  669. <el-table-column align="right" label="合同单价" prop="contractPrice" min-width="160" show-overflow-tooltip>
  670. <template slot-scope="scope">
  671. <template v-if="scope.row.isCustom">
  672. <el-input v-model.number="scope.row.contractPrice" size="mini" type="number" placeholder="请输入" />
  673. </template>
  674. <template v-else>
  675. <el-input
  676. v-if="title !== '详情'"
  677. v-model.number="scope.row.contractPrice"
  678. class="inpt"
  679. size="mini"
  680. clearable
  681. />
  682. <div v-else>
  683. {{ scope.row.contractPrice }}
  684. </div>
  685. </template>
  686. </template>
  687. </el-table-column>
  688. <el-table-column align="right" label="合同金额" prop="contractAmount" min-width="160" show-overflow-tooltip>
  689. <template slot-scope="scope">
  690. <div>
  691. {{ comTotal(scope.row.contractQty, scope.row.contractPrice) }}
  692. </div>
  693. </template>
  694. </el-table-column>
  695. <el-table-column align="right" label="上交资料数量" prop="dataQty" min-width="160" show-overflow-tooltip>
  696. <template slot-scope="scope">
  697. <template v-if="scope.row.isCustom">
  698. <el-input v-model.number="scope.row.dataQty" size="mini" type="number" placeholder="请输入" />
  699. </template>
  700. <template v-else>
  701. <el-input
  702. v-if="title !== '详情'"
  703. v-model.number.trim="scope.row.dataQty"
  704. class="inpt"
  705. size="mini"
  706. @blur="setDataQty($event, scope.row)"
  707. />
  708. <div v-else>
  709. {{ scope.row.dataQty }}
  710. </div>
  711. </template>
  712. </template>
  713. </el-table-column>
  714. <el-table-column align="right" label="收差金额" prop="diffAmount" min-width="160" show-overflow-tooltip>
  715. <template slot-scope="scope">
  716. <template v-if="scope.row.isCustom">
  717. <el-input v-model.number="scope.row.diffAmount" size="mini" type="number" placeholder="请输入" />
  718. </template>
  719. <template v-else>
  720. {{ scope.row.diffAmount | numToFixed }}
  721. </template>
  722. </template>
  723. </el-table-column>
  724. <el-table-column
  725. align="right"
  726. label="收差政策价格"
  727. prop="diffPolicyPrice"
  728. min-width="200"
  729. show-overflow-tooltip
  730. >
  731. <template slot-scope="scope">
  732. <template v-if="scope.row.isCustom">
  733. <el-input v-model.number="scope.row.diffPolicyPrice" size="mini" type="number" placeholder="请输入" />
  734. </template>
  735. <template v-else>
  736. {{ scope.row.diffPolicyPrice | numToFixed }}
  737. </template>
  738. </template>
  739. </el-table-column>
  740. </el-table>
  741. </div>
  742. </div>
  743. <div v-if="!isCustomer && title != '详情'" style="margin: 20px 0">
  744. <el-button type="primary" size="small" @click="addBlankLine">添加空白行</el-button>
  745. </div>
  746. </div>
  747. <h3>押金货品信息</h3>
  748. <el-divider />
  749. <!-- 列表 -->
  750. <div class="mymain-container">
  751. <div class="table">
  752. <el-table
  753. v-loading="listLoading"
  754. :data="detailList.collectList"
  755. element-loading-text="Loading"
  756. border
  757. fit
  758. highlight-current-row
  759. stripe
  760. show-summary
  761. :summary-method="$getSummaries"
  762. >
  763. <el-table-column
  764. align="left"
  765. label="工程登录单号"
  766. prop="refEnginRecordNo"
  767. min-width="130"
  768. show-overflow-tooltip
  769. >
  770. <template slot-scope="scope">
  771. <CopyButton :copy-text="scope.row.refEnginRecordNo" />
  772. <span>{{ scope.row.refEnginRecordNo }}</span>
  773. </template>
  774. </el-table-column>
  775. <el-table-column align="left" label="规格型号" prop="specification" min-width="130" show-overflow-tooltip>
  776. <template slot-scope="scope">
  777. <CopyButton :copy-text="scope.row.specification" />
  778. <span>{{ scope.row.specification }}</span>
  779. </template>
  780. </el-table-column>
  781. <el-table-column align="left" label="基本单位编码" prop="unit" min-width="130" show-overflow-tooltip>
  782. <template slot-scope="scope">
  783. <CopyButton :copy-text="scope.row.unit" />
  784. <span>{{ scope.row.unit }}</span>
  785. </template>
  786. </el-table-column>
  787. <el-table-column
  788. align="left"
  789. label="现金钱包"
  790. prop="customerWalletName"
  791. min-width="130"
  792. show-overflow-tooltip
  793. >
  794. <template slot-scope="scope">
  795. <CopyButton :copy-text="scope.row.customerWalletName" />
  796. <span>{{ scope.row.customerWalletName }}</span>
  797. </template>
  798. </el-table-column>
  799. <el-table-column
  800. align="left"
  801. label="现金钱包编码"
  802. prop="customerWalletNumber"
  803. min-width="130"
  804. show-overflow-tooltip
  805. >
  806. <template slot-scope="scope">
  807. <CopyButton :copy-text="scope.row.customerWalletNumber" />
  808. <span>{{ scope.row.customerWalletNumber }}</span>
  809. </template>
  810. </el-table-column>
  811. <el-table-column
  812. align="left"
  813. label="金蝶物料类型名称"
  814. prop="k3CategoryName"
  815. min-width="130"
  816. show-overflow-tooltip
  817. >
  818. <template slot-scope="scope">
  819. <CopyButton :copy-text="scope.row.k3CategoryName" />
  820. <span>{{ scope.row.k3CategoryName }}</span>
  821. </template>
  822. </el-table-column>
  823. <el-table-column
  824. align="left"
  825. label="金蝶物料类型编码"
  826. prop="k3CategoryNumber"
  827. min-width="130"
  828. show-overflow-tooltip
  829. >
  830. <template slot-scope="scope">
  831. <CopyButton :copy-text="scope.row.k3CategoryNumber" />
  832. <span>{{ scope.row.k3CategoryNumber }}</span>
  833. </template>
  834. </el-table-column>
  835. <el-table-column align="left" label="金蝶物料名称" prop="materialName" min-width="130" show-overflow-tooltip>
  836. <template slot-scope="scope">
  837. <CopyButton :copy-text="scope.row.materialName" />
  838. <span>{{ scope.row.materialName }}</span>
  839. </template>
  840. </el-table-column>
  841. <el-table-column
  842. align="left"
  843. label="金蝶物料编码"
  844. prop="materialNumber"
  845. min-width="130"
  846. show-overflow-tooltip
  847. >
  848. <template slot-scope="scope">
  849. <CopyButton :copy-text="scope.row.materialNumber" />
  850. <span>{{ scope.row.materialNumber }}</span>
  851. </template>
  852. </el-table-column>
  853. <el-table-column
  854. align="left"
  855. label="金蝶物料旧编码"
  856. prop="materialOldNumber"
  857. min-width="130"
  858. show-overflow-tooltip
  859. >
  860. <template slot-scope="scope">
  861. <CopyButton :copy-text="scope.row.materialOldNumber" />
  862. <span>{{ scope.row.materialOldNumber }}</span>
  863. </template>
  864. </el-table-column>
  865. <el-table-column align="left" label="已发押金数量" prop="hasSendQty" min-width="130" show-overflow-tooltip />
  866. <el-table-column align="left" label="单价" prop="price" min-width="130" show-overflow-tooltip>
  867. <template slot-scope="scope">
  868. {{ scope.row.price | numToFixed }}
  869. </template>
  870. </el-table-column>
  871. <el-table-column
  872. align="left"
  873. label="已退押金金额"
  874. prop="refundDepositAmount"
  875. min-width="130"
  876. show-overflow-tooltip
  877. >
  878. <template slot-scope="scope">
  879. {{ scope.row.refundDepositAmount | numToFixed }}
  880. </template>
  881. </el-table-column>
  882. <el-table-column align="left" label="押金金额" prop="depositAmount" min-width="130" show-overflow-tooltip>
  883. <template slot-scope="scope">
  884. {{ scope.row.depositAmount | numToFixed }}
  885. </template>
  886. </el-table-column>
  887. </el-table>
  888. </div>
  889. </div>
  890. <h3 class="gdzl">工程资料</h3>
  891. <!-- <el-button :readonly="isDis" class="batchDownload" type="primary" size="small" @click="batchDownloadFn"-->
  892. <!-- >批量下载</el-button-->
  893. <!-- >-->
  894. <el-divider />
  895. <!-- 列表 -->
  896. <div class="mymain-container">
  897. <div class="table">
  898. <el-table
  899. v-loading="listLoading"
  900. :data="original"
  901. element-loading-text="Loading"
  902. border
  903. fit
  904. highlight-current-row
  905. stripe
  906. >
  907. <el-table-column align="left" label="资料描述" prop="dataDescribe" min-width="160" show-overflow-tooltip />
  908. <el-table-column align="left" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip />
  909. <el-table-column align="left" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
  910. <template slot-scope="scope">
  911. <el-image
  912. v-if="checkFileType(scope.row.fileUrl) == 'image'"
  913. ref="img"
  914. :src="imageURL + scope.row.fileUrl"
  915. style="width: 120px; height: 120px"
  916. fit="cover"
  917. :preview-src-list="[imageURL + scope.row.fileUrl]"
  918. />
  919. <img v-if="checkFileType(scope.row.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
  920. <img v-if="checkFileType(scope.row.fileUrl) == 'excel'" class="file" src="@/assets/common/excel.png">
  921. <img v-if="checkFileType(scope.row.fileUrl) == 'ppt'" class="file" src="@/assets/common/ppt.png">
  922. <img v-if="checkFileType(scope.row.fileUrl) == 'pdf'" class="file" src="@/assets/common/pdf.png">
  923. <img v-if="checkFileType(scope.row.fileUrl) == 'file'" class="file aaa" src="@/assets/common/zip.jpeg">
  924. </template>
  925. </el-table-column>
  926. <el-table-column align="left" label="下载文件名称" prop="fileName" min-width="160" show-overflow-tooltip>
  927. <template slot-scope="scope">
  928. {{ '资料_' + scope.row.fileName }}
  929. </template>
  930. </el-table-column>
  931. <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
  932. <template slot-scope="scope">
  933. <el-button
  934. type="text"
  935. class="textColor"
  936. @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)"
  937. >下载
  938. </el-button>
  939. </template>
  940. </el-table-column>
  941. </el-table>
  942. </div>
  943. </div>
  944. <el-divider />
  945. <div class="diy-table-1">
  946. <el-row :gutter="0">
  947. <el-col :xs="12" :sm="12" :lg="12" class="item">
  948. <div class="label">申请人</div>
  949. <div class="value">
  950. <div class="flex">
  951. <div>
  952. {{ detailList.submitName }}
  953. </div>
  954. <el-button :readonly="isDis" type="primary" size="mini" @click="batchDownloadFn">批量下载</el-button>
  955. </div>
  956. </div>
  957. </el-col>
  958. <el-col :xs="12" :sm="12" :lg="12" class="item">
  959. <div class="label">申请日期</div>
  960. <div class="value">{{ detailList.submitTime }}</div>
  961. </el-col>
  962. <el-col :xs="12" :sm="24" :lg="24" class="item">
  963. <div class="label">申请退押金</div>
  964. <div class="value">{{ detailList.applyNote }}</div>
  965. </el-col>
  966. </el-row>
  967. </div>
  968. <h3>记录</h3>
  969. <el-divider />
  970. <!-- 列表 -->
  971. <div class="mymain-container">
  972. <div class="table">
  973. <el-table
  974. v-loading="listLoading"
  975. :data="detailList.checkRecordItems"
  976. element-loading-text="Loading"
  977. border
  978. fit
  979. highlight-current-row
  980. stripe
  981. >
  982. <el-table-column align="left" label="申请人" prop="submitName" min-width="160" show-overflow-tooltip />
  983. <el-table-column align="left" label="申请日期" prop="submitTime" min-width="160" show-overflow-tooltip />
  984. <el-table-column align="left" label="申请说明" prop="applyNote" min-width="160" show-overflow-tooltip />
  985. <el-table-column align="left" label="验收人" prop="checkName" min-width="160" show-overflow-tooltip />
  986. <el-table-column align="left" label="受理日期" prop="checkDate" min-width="160" show-overflow-tooltip />
  987. <el-table-column align="left" label="验收说明" prop="checkNote" min-width="160" show-overflow-tooltip />
  988. <el-table-column align="left" label="审批结果" prop="isRefundDeposit" min-width="160" show-overflow-tooltip>
  989. <template slot-scope="scope">
  990. {{ scope.row.isRefundDeposit == false ? '否' : '是' }}
  991. </template>
  992. </el-table-column>
  993. </el-table>
  994. </div>
  995. </div>
  996. <h3
  997. v-if="
  998. detailList.examineStatus == 'WAIT' || detailList.examineStatus == 'FAIL' || detailList.examineStatus == 'OK'
  999. "
  1000. >
  1001. 审批
  1002. </h3>
  1003. <el-divider
  1004. v-if="
  1005. detailList.examineStatus == 'WAIT' || detailList.examineStatus == 'FAIL' || detailList.examineStatus == 'OK'
  1006. "
  1007. />
  1008. <div v-if="detailList.examineStatus == 'WAIT'" class="diy-table-1">
  1009. <el-row :gutter="0">
  1010. <el-col :xs="12" :sm="12" :lg="12" class="item">
  1011. <div class="label">验收人</div>
  1012. <div class="value">{{ this.checkBy }}</div>
  1013. </el-col>
  1014. <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
  1015. <div class="label">受理日期</div>
  1016. <div class="value">
  1017. <el-date-picker
  1018. readonly
  1019. prefix-icon="''"
  1020. class="selectStyle"
  1021. type="datetime"
  1022. placeholder="系统自动生成"
  1023. default-time="00:00:00"
  1024. value-format="yyyy-MM-dd HH:mm:ss"
  1025. />
  1026. </div>
  1027. </el-col>
  1028. <el-col :xs="12" :sm="24" :lg="24" class="item">
  1029. <div class="label">是否退押</div>
  1030. <div class="value">
  1031. <el-radio-group v-model="isRefundDeposit">
  1032. <el-radio :label="true">是</el-radio>
  1033. <el-radio :label="false">否</el-radio>
  1034. </el-radio-group>
  1035. </div>
  1036. </el-col>
  1037. <el-col :xs="12" :sm="24" :lg="24" class="item">
  1038. <div class="label">验收说明</div>
  1039. <div class="value">
  1040. <el-input v-model="checkNote" placeholder="请输入内容" />
  1041. </div>
  1042. </el-col>
  1043. </el-row>
  1044. </div>
  1045. <div v-if="detailList.examineStatus == 'OK' || detailList.examineStatus == 'FAIL'" class="diy-table-1">
  1046. <el-row :gutter="0">
  1047. <el-col :xs="12" :sm="12" :lg="12" class="item">
  1048. <div class="label">验收人</div>
  1049. <div class="value">{{ detailList.checkBy }}</div>
  1050. </el-col>
  1051. <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
  1052. <div class="label">受理日期</div>
  1053. <div class="value">
  1054. <el-date-picker
  1055. v-model="detailList.checkDate"
  1056. readonly
  1057. prefix-icon="''"
  1058. class="selectStyle"
  1059. type="datetime"
  1060. placeholder=""
  1061. default-time="00:00:00"
  1062. value-format="yyyy-MM-dd HH:mm:ss"
  1063. />
  1064. </div>
  1065. </el-col>
  1066. <el-col :xs="12" :sm="24" :lg="24" class="item">
  1067. <div class="label">是否退押</div>
  1068. <div class="value">
  1069. <el-radio-group v-model="detailList.isRefundDeposit">
  1070. <el-radio readonly :label="true">是</el-radio>
  1071. <el-radio readonly :label="false">否</el-radio>
  1072. </el-radio-group>
  1073. </div>
  1074. </el-col>
  1075. <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
  1076. <div class="label">验收说明</div>
  1077. <div class="value">
  1078. <el-input v-model="detailList.checkNote" readonly placeholder="请输入内容" />
  1079. </div>
  1080. </el-col>
  1081. <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
  1082. <div class="label">审批通过后备注</div>
  1083. <div class="value">
  1084. <el-input v-model="detailList.examineAfterRemark" placeholder="请输入内容" />
  1085. </div>
  1086. </el-col>
  1087. </el-row>
  1088. </div>
  1089. <div>
  1090. <div
  1091. v-if="
  1092. detailList.dataState == 'AMEND' || detailList.dataState == 'WAIT_REVIEW' || detailList.dataState == 'REVIEW'
  1093. "
  1094. >
  1095. <h3 class="gdzl">补充资料</h3>
  1096. <el-divider />
  1097. <div class="mymain-container">
  1098. <div class="table">
  1099. <el-table
  1100. v-loading="listLoading"
  1101. :data="amendData"
  1102. element-loading-text="Loading"
  1103. border
  1104. fit
  1105. highlight-current-row
  1106. stripe
  1107. >
  1108. <el-table-column
  1109. align="left"
  1110. label="资料描述"
  1111. prop="dataDescribe"
  1112. min-width="160"
  1113. show-overflow-tooltip
  1114. />
  1115. <el-table-column align="left" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip />
  1116. <el-table-column align="left" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
  1117. <template slot-scope="scope">
  1118. <el-image
  1119. v-if="checkFileType(scope.row.fileUrl) == 'image'"
  1120. ref="img"
  1121. :src="imageURL + scope.row.fileUrl"
  1122. style="width: 120px; height: 120px"
  1123. fit="cover"
  1124. :preview-src-list="[imageURL + scope.row.fileUrl]"
  1125. />
  1126. <img v-if="checkFileType(scope.row.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
  1127. <img
  1128. v-if="checkFileType(scope.row.fileUrl) == 'excel'"
  1129. class="file"
  1130. src="@/assets/common/excel.png"
  1131. >
  1132. <img v-if="checkFileType(scope.row.fileUrl) == 'ppt'" class="file" src="@/assets/common/ppt.png">
  1133. <img v-if="checkFileType(scope.row.fileUrl) == 'pdf'" class="file" src="@/assets/common/pdf.png">
  1134. <img
  1135. v-if="checkFileType(scope.row.fileUrl) == 'file'"
  1136. class="file aaa"
  1137. src="@/assets/common/zip.jpeg"
  1138. >
  1139. </template>
  1140. </el-table-column>
  1141. <el-table-column align="left" label="下载文件名称" prop="fileName" min-width="160" show-overflow-tooltip>
  1142. <template slot-scope="scope">
  1143. {{ '资料_' + scope.row.fileName }}
  1144. </template>
  1145. </el-table-column>
  1146. <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
  1147. <template slot-scope="scope">
  1148. <el-button
  1149. type="text"
  1150. class="textColor"
  1151. @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)"
  1152. >下载
  1153. </el-button>
  1154. </template>
  1155. </el-table-column>
  1156. </el-table>
  1157. </div>
  1158. <div class="diy-table-1">
  1159. <el-row :gutter="0">
  1160. <el-col :xs="12" :sm="12" :lg="12" class="item">
  1161. <div class="label">上传人</div>
  1162. <div class="value">
  1163. {{ detailList.amendBy }}
  1164. </div>
  1165. </el-col>
  1166. <el-col :xs="12" :sm="12" :lg="12" class="item">
  1167. <div class="label">上传时间</div>
  1168. <div class="value">
  1169. {{ detailList.amendTime }}
  1170. </div>
  1171. </el-col>
  1172. <el-col :xs="12" :sm="24" :lg="24" class="item">
  1173. <div class="label">补充说明</div>
  1174. <div class="value">
  1175. {{ detailList.amendRemark }}
  1176. </div>
  1177. </el-col>
  1178. </el-row>
  1179. </div>
  1180. </div>
  1181. </div>
  1182. <div v-if="(detailList.dataState == 'REVIEW' || detailList.dataState == 'AMEND') && isCustomer">
  1183. <h3 class="gdzl">复核</h3>
  1184. <el-divider />
  1185. <div class="diy-table-1">
  1186. <el-row :gutter="0">
  1187. <el-col :xs="12" :sm="12" :lg="12" class="item">
  1188. <div class="label">复核人</div>
  1189. <div class="value">
  1190. {{ detailList.reviewBy }}
  1191. </div>
  1192. </el-col>
  1193. <el-col :xs="12" :sm="12" :lg="12" class="item">
  1194. <div class="label">复核时间</div>
  1195. <div class="value">
  1196. {{ detailList.reviewTime }}
  1197. </div>
  1198. </el-col>
  1199. <el-col :xs="12" :sm="24" :lg="24" class="item dateS">
  1200. <div class="label">复核说明</div>
  1201. <div class="value">
  1202. {{ detailList.reviewRemark }}
  1203. </div>
  1204. </el-col>
  1205. </el-row>
  1206. </div>
  1207. </div>
  1208. </div>
  1209. <br>
  1210. <!-- 按钮 -->
  1211. <!-- detailList.examineStatus != 'OK' || detailList.examineStatus != 'FAIL' -->
  1212. <div class="btn-group clearfix">
  1213. <div class="fl">
  1214. <!-- <el-button type="primary" size="small" @click="handleEdit">保存</el-button> -->
  1215. <el-button
  1216. v-if="detailList.examineStatus == 'WAIT'"
  1217. type="primary"
  1218. size="small"
  1219. @click="adoptFn"
  1220. >审批通过
  1221. </el-button>
  1222. <el-button
  1223. v-if="detailList.examineStatus == 'WAIT'"
  1224. type="primary"
  1225. size="small"
  1226. @click="rejectFn"
  1227. >审批驳回
  1228. </el-button>
  1229. <el-button v-if="title == '详情'" type="primary" size="small" @click="saveFn">保存</el-button>
  1230. </div>
  1231. </div>
  1232. <el-dialog title="添加产品" append-to-body :visible.sync="isSetMaterial" width="80%">
  1233. <el-form ref="goodsScreenForm" :model="goodsScreenForm" size="small" label-position="left">
  1234. <el-row :gutter="20">
  1235. <el-col :xs="12" :sm="6" :lg="6">
  1236. <el-form-item prop="proNum">
  1237. <el-input v-model="goodsScreenForm.proNum" placeholder="请输入物料编码" />
  1238. </el-form-item>
  1239. </el-col>
  1240. <el-col :xs="12" :sm="6" :lg="6">
  1241. <el-form-item prop="proName">
  1242. <el-input v-model="goodsScreenForm.proName" placeholder="请输入产品名称" />
  1243. </el-form-item>
  1244. </el-col>
  1245. <el-col :xs="12" :sm="6" :lg="6">
  1246. <el-form-item prop="proModel">
  1247. <el-input v-model="goodsScreenForm.proModel" placeholder="请输入产品型号" />
  1248. </el-form-item>
  1249. </el-col>
  1250. <el-col :xs="12" :sm="6" :lg="6">
  1251. <el-form-item prop="price1" style="display: flex">
  1252. <el-input v-model="goodsScreenForm.price1" placeholder="请输入价格" style="width: 46%" />
  1253. <span> - </span>
  1254. <el-input v-model="goodsScreenForm.price2" placeholder="请输入价格" style="width: 46%" />
  1255. </el-form-item>
  1256. </el-col>
  1257. <el-col :xs="24" :sm="24" :lg="24" class="tr">
  1258. <el-form-item label="">
  1259. <el-button size="small" @click="resetGoodsScreenForm">清空</el-button>
  1260. <el-button size="small" type="primary" @click="submitGoodsScreenForm">搜索</el-button>
  1261. </el-form-item>
  1262. </el-col>
  1263. </el-row>
  1264. </el-form>
  1265. <div>
  1266. <el-table :data="leftGoodsList" element-loading-text="Loading" border fit stripe height="400">
  1267. <el-table-column align="center" width="55">
  1268. <template slot-scope="scope">
  1269. <el-radio v-model="currentRadio" :label="scope.row.id">{{ '' }}</el-radio>
  1270. </template>
  1271. </el-table-column>
  1272. <el-table-column align="center" label="销售类型" prop="saleName" min-width="100" show-overflow-tooltip />
  1273. <el-table-column align="center" label="物料编码" prop="number" min-width="100" show-overflow-tooltip />
  1274. <el-table-column
  1275. align="center"
  1276. label="产品编码"
  1277. prop="materialOldNumber"
  1278. min-width="100"
  1279. show-overflow-tooltip
  1280. />
  1281. <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip />
  1282. <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip />
  1283. <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip />
  1284. </el-table>
  1285. <div class="pagination clearfix" style="margin-top: 10px">
  1286. <div class="fr">
  1287. <el-pagination
  1288. :current-page="currentPage"
  1289. :page-size="10"
  1290. background
  1291. layout="prev, pager, next"
  1292. :total="listTotal"
  1293. @current-change="handleTableCurrentChange"
  1294. />
  1295. </div>
  1296. </div>
  1297. </div>
  1298. <span slot="footer" class="dialog-footer">
  1299. <el-button @click="closeDialog">取 消</el-button>
  1300. <el-button type="primary" @click="submitPushGoods">确 定</el-button>
  1301. </span>
  1302. </el-dialog>
  1303. </div>
  1304. </template>
  1305. <script>
  1306. import imageUpload from '@/components/Common/image-upload.vue'
  1307. import { downloadFiles } from '@/utils/util'
  1308. import { mapGetters } from 'vuex'
  1309. import {
  1310. getDepositManageDetail,
  1311. getDepositManageExamine,
  1312. editManageExamine,
  1313. getDepositManageEdit
  1314. } from '@/api/engin_deposit/refund_list'
  1315. import { getRetailProductList } from '@/api/supply/engin'
  1316. import { computeDiff } from '@/api/engin_deposit.js'
  1317. export default {
  1318. components: { imageUpload },
  1319. props: {
  1320. detailId: {
  1321. type: String,
  1322. required: true
  1323. }
  1324. },
  1325. computed: {
  1326. ...mapGetters(['name']),
  1327. comTotal() {
  1328. return (qty, price) => {
  1329. return Number(qty) * Number(price)
  1330. }
  1331. },
  1332. setColour() {
  1333. return (row, oldValue, newValue, mostNewValue) => {
  1334. let myCalss = ''
  1335. if (row[newValue] !== row[oldValue]) {
  1336. myCalss = 'input'
  1337. }
  1338. if (row[mostNewValue] !== row[newValue]) {
  1339. myCalss = 'input2'
  1340. }
  1341. console.log(row, 9999, myCalss)
  1342. return myCalss
  1343. }
  1344. }
  1345. },
  1346. data() {
  1347. return {
  1348. isCustomer: JSON.parse(localStorage.getItem('supply_user')).isCustomer,
  1349. isDis: true,
  1350. imageURL: this.$imageUrl,
  1351. title: '审批',
  1352. listLoading: false, // 列表加载loading
  1353. dataList: [], // 列表数据
  1354. detailList: {},
  1355. checkBy: '',
  1356. checkDate: '',
  1357. isRefundDeposit: true,
  1358. baseURL: '',
  1359. fileList: [],
  1360. checkNote: '',
  1361. restrictFilename: ['结算单', '合同', '明细表', '审核表', '收据', '发票', '照片', '相片'],
  1362. datTate: new Date(),
  1363. amendData: [],
  1364. original: [],
  1365. goodsScreenForm: {
  1366. proNum: '',
  1367. proName: '',
  1368. proModel: '',
  1369. price1: '',
  1370. price2: ''
  1371. },
  1372. isSetMaterial: false,
  1373. currentRadio: '',
  1374. currentId: '',
  1375. leftGoodsList: [],
  1376. listTotal: 0,
  1377. currentPage: 1
  1378. }
  1379. },
  1380. watch: {
  1381. 'detailList.items': {
  1382. handler(newValue, oldValue) {
  1383. if (newValue && newValue.length) {
  1384. newValue.forEach((item, index) => {
  1385. item.contractAmount = Number(item.contractQty) * Number(item.contractPrice)
  1386. })
  1387. }
  1388. this.detailList.items = newValue
  1389. },
  1390. immediate: true,
  1391. deep: true
  1392. }
  1393. },
  1394. created() {
  1395. console.log(this.$imageUrl, 8888)
  1396. this.checkBy = this.name
  1397. this.getData({ id: this.detailId })
  1398. },
  1399. methods: {
  1400. // 审批通过后可以编辑
  1401. async saveFn() {
  1402. console.log(this.detailList)
  1403. await getDepositManageEdit(this.detailList)
  1404. this.$message.success('保存成功')
  1405. this.goBack()
  1406. this.$emit('updateList')
  1407. },
  1408. // 批量下载
  1409. async batchDownloadFn() {
  1410. downloadFiles('deposit-manage/downZip', { parentId: this.detailId })
  1411. },
  1412. // 下载
  1413. async downLoadFn(v, name) {
  1414. // getCommonFileGetStream({ key: v, fileName: name }).then((res) => {
  1415. // // window.open(res.data);
  1416. // });
  1417. // // window.open(this.imageURL + v);
  1418. downloadFiles('common/file/getStream', { key: v, fileName: name })
  1419. // await getCommonFileGetStream({ key: v, fileName: name });
  1420. },
  1421. // 检查文件类型
  1422. checkFileType(url) {
  1423. if (!url) return ''
  1424. const fileSuffix = url.substring(url.lastIndexOf('.') + 1)
  1425. if (['jpg', 'jpeg', 'png'].includes(fileSuffix)) {
  1426. return 'image'
  1427. } else if (['doc', 'docx', 'dot', 'wps', 'wpt'].includes(fileSuffix)) {
  1428. return 'word'
  1429. } else if (['xls', 'xlsx', 'xlt', 'et', 'ett'].includes(fileSuffix)) {
  1430. return 'excel'
  1431. } else if (['ppt', 'pptx', 'dps', 'dpt', 'pot', 'pps'].includes(fileSuffix)) {
  1432. return 'ppt'
  1433. } else if (['pdf'].includes(fileSuffix)) {
  1434. return 'pdf'
  1435. } else if (['zip', 'rar', 'gz', 'apk'].includes(fileSuffix)) {
  1436. return 'file'
  1437. } else {
  1438. return ''
  1439. }
  1440. },
  1441. // 计算收差金额
  1442. setDataQty(e, row) {
  1443. // eslint-disable-next-line no-return-assign
  1444. if (!row.dataQty) return (row.dataQty = 0)
  1445. row.saleTypeId = this.detailList.saleTypeId
  1446. computeDiff(row).then(res => {
  1447. row.diffAmount = res.data.diffAmount
  1448. row.diffPolicyPrice = res.data.diffPolicyPrice
  1449. // this.$successMsg('已计算收差金额')
  1450. })
  1451. },
  1452. // 审批驳回
  1453. async rejectFn() {
  1454. this.$confirm('此操作将驳回订单, 是否继续?', '提示', {
  1455. confirmButtonText: '确定',
  1456. cancelButtonText: '取消',
  1457. type: 'warning'
  1458. })
  1459. .then(() => {
  1460. if (this.isCustomer) {
  1461. for (let i = 0; i < this.detailList.items.length; i++) {
  1462. this.detailList.items[i].contractAmount =
  1463. this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
  1464. if (this.detailList.items[i].contractAmount == null) {
  1465. return this.$errorMsg('合同单价、合同数量不能为空')
  1466. }
  1467. }
  1468. }
  1469. // this.detailList.items.map(e=>{
  1470. // e.contractAmount = e.contractQty * e.contractPrice
  1471. // if (!e.contractAmount) {
  1472. // return this.$errorMsg('合同单价、合同数量不能为空')
  1473. // }
  1474. // })
  1475. const data = {
  1476. ...this.detailList,
  1477. checkBy: this.checkBy,
  1478. // checkDate: this.checkDate,
  1479. isRefundDeposit: this.isRefundDeposit,
  1480. checkNote: this.checkNote,
  1481. examineResult: 0
  1482. }
  1483. if (!this.detailList.items.every(e => e.dataQty)) {
  1484. this.$confirm(`上交资料数量为0,是否继续提交`, '提示', {
  1485. confirmButtonText: '确定',
  1486. cancelButtonText: '取消',
  1487. type: 'warning'
  1488. })
  1489. .then(() => {
  1490. getDepositManageExamine(data)
  1491. .then(res => {
  1492. if (!res.data) {
  1493. this.goBack()
  1494. this.$emit('updateList')
  1495. } else {
  1496. this.$confirm('审批成功!是否跳转下一张待审批订单?', '提示', {
  1497. confirmButtonText: '跳转',
  1498. cancelButtonText: '取消',
  1499. type: 'warning'
  1500. })
  1501. .then(() => {
  1502. this.$successMsg('进入下一张待审批订单')
  1503. this.detailList = res.data
  1504. })
  1505. .catch(() => {
  1506. this.goBack()
  1507. this.$emit('updateList')
  1508. })
  1509. }
  1510. })
  1511. .finally(res => {
  1512. })
  1513. })
  1514. .catch(() => {
  1515. })
  1516. } else {
  1517. getDepositManageExamine(data)
  1518. .then(res => {
  1519. if (!res.data) {
  1520. this.goBack()
  1521. this.$emit('updateList')
  1522. } else {
  1523. this.$confirm('审批成功!是否跳转下一张待审批订单?', '提示', {
  1524. confirmButtonText: '跳转',
  1525. cancelButtonText: '取消',
  1526. type: 'warning'
  1527. })
  1528. .then(() => {
  1529. this.$successMsg('进入下一张待审批订单')
  1530. this.detailList = res.data
  1531. })
  1532. .catch(() => {
  1533. this.goBack()
  1534. this.$emit('updateList')
  1535. })
  1536. }
  1537. })
  1538. .finally(res => {
  1539. })
  1540. }
  1541. })
  1542. .catch(() => {
  1543. })
  1544. // if (!this.detailList.installDate) {
  1545. // this.$message.error("请选择安装时间");
  1546. // return;
  1547. // }
  1548. // let data = {
  1549. // ...this.detailList,
  1550. // checkBy: this.checkBy,
  1551. // // checkDate: this.checkDate,
  1552. // isRefundDeposit: this.isRefundDeposit,
  1553. // checkNote: this.checkNote,
  1554. // examineResult: 0,
  1555. // };
  1556. // await getDepositManageExamine(data);
  1557. // this.$message.success("审批驳回");
  1558. // this.goBack();
  1559. // this.$emit("updateList");
  1560. },
  1561. // 审批通过
  1562. async adoptFn() {
  1563. this.$confirm('此操作将审批订单, 是否继续?', '提示', {
  1564. confirmButtonText: '确定',
  1565. cancelButtonText: '取消',
  1566. type: 'warning'
  1567. })
  1568. .then(() => {
  1569. if (!this.detailList.installDate) {
  1570. this.$message.error('请选择安装时间')
  1571. return
  1572. }
  1573. if (this.isCustomer) {
  1574. for (let i = 0; i < this.detailList.items.length; i++) {
  1575. this.detailList.items[i].contractAmount =
  1576. this.detailList.items[i].contractQty * this.detailList.items[i].contractPrice
  1577. if (this.detailList.items[i].contractAmount == null) {
  1578. return this.$errorMsg('合同单价、合同数量不能为空')
  1579. }
  1580. }
  1581. }
  1582. const data = {
  1583. ...this.detailList,
  1584. checkBy: this.checkBy,
  1585. // checkDate: this.checkDate,
  1586. isRefundDeposit: this.isRefundDeposit,
  1587. checkNote: this.checkNote,
  1588. examineResult: 1
  1589. }
  1590. if (!this.detailList.items.every(e => e.dataQty)) {
  1591. this.$confirm(`上交资料数量为0,是否继续提交`, '提示', {
  1592. confirmButtonText: '确定',
  1593. cancelButtonText: '取消',
  1594. type: 'warning'
  1595. })
  1596. .then(() => {
  1597. getDepositManageExamine(data)
  1598. .then(res => {
  1599. if (!res.data) {
  1600. this.goBack()
  1601. this.$emit('updateList')
  1602. } else {
  1603. this.$confirm('审批成功!是否跳转下一张待审批订单?', '提示', {
  1604. confirmButtonText: '跳转',
  1605. cancelButtonText: '取消',
  1606. type: 'warning'
  1607. })
  1608. .then(() => {
  1609. this.$successMsg('进入下一张待审批订单')
  1610. this.amendData = res.data.dataList.filter(k => k.dataPosition == 'AMEND')
  1611. this.original = res.data.dataList.filter(k => k.dataPosition != 'AMEND')
  1612. this.detailList = res.data
  1613. })
  1614. .catch(() => {
  1615. this.goBack()
  1616. this.$emit('updateList')
  1617. })
  1618. }
  1619. })
  1620. .finally(res => {
  1621. })
  1622. })
  1623. .catch(() => {
  1624. })
  1625. } else {
  1626. getDepositManageExamine(data)
  1627. .then(res => {
  1628. if (!res.data) {
  1629. this.goBack()
  1630. this.$emit('updateList')
  1631. } else {
  1632. this.$confirm('审批成功!是否跳转下一张待审批订单?', '提示', {
  1633. confirmButtonText: '跳转',
  1634. cancelButtonText: '取消',
  1635. type: 'warning'
  1636. })
  1637. .then(() => {
  1638. this.$successMsg('进入下一张待审批订单')
  1639. this.amendData = res.data.dataList.filter(k => k.dataPosition == 'AMEND')
  1640. this.original = res.data.dataList.filter(k => k.dataPosition != 'AMEND')
  1641. this.detailList = res.data
  1642. })
  1643. .catch(() => {
  1644. this.goBack()
  1645. this.$emit('updateList')
  1646. })
  1647. }
  1648. })
  1649. .finally(res => {
  1650. })
  1651. }
  1652. })
  1653. .catch(() => {
  1654. })
  1655. // if (!this.detailList.installDate) {
  1656. // this.$message.error("请选择安装时间");
  1657. // return;
  1658. // }
  1659. // let data = {
  1660. // ...this.detailList,
  1661. // checkBy: this.checkBy,
  1662. // // checkDate: this.checkDate,
  1663. // isRefundDeposit: this.isRefundDeposit,
  1664. // checkNote: this.checkNote,
  1665. // examineResult: 1,
  1666. // };
  1667. // await getDepositManageExamine(data);
  1668. // this.$message.success("审批通过");
  1669. // this.goBack();
  1670. // this.$emit("updateList");
  1671. },
  1672. handleEdit() {
  1673. const data = {
  1674. ...this.detailList,
  1675. checkBy: this.checkBy,
  1676. // checkDate: this.checkDate,
  1677. isRefundDeposit: this.isRefundDeposit,
  1678. checkNote: this.checkNote,
  1679. examineResult: 1
  1680. }
  1681. editManageExamine(data).then(res => {
  1682. this.$successMsg('编辑成功')
  1683. this.goBack()
  1684. this.$emit('updateList')
  1685. })
  1686. },
  1687. async getData(data) {
  1688. const res = await getDepositManageDetail(data)
  1689. console.log(res)
  1690. if (res.data.dataList.length == 0) {
  1691. this.isDis = true
  1692. } else {
  1693. this.isDis = false
  1694. }
  1695. const arr = []
  1696. res.data.items.forEach(item => {
  1697. if (Number(item.qty) > 0) {
  1698. arr.push(item)
  1699. }
  1700. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  1701. item.sums1 = ['orderHasSendQty', 'dataQty', 'qty', 'hasSendQty', 'contractQty']
  1702. item.sums2 = [
  1703. 'totalAmount',
  1704. 'diffAmount',
  1705. 'price',
  1706. 'depositAmount',
  1707. 'contractPrice',
  1708. 'comTotal',
  1709. 'contractAmount'
  1710. ]
  1711. })
  1712. res.data.collectList.forEach(item => {
  1713. // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
  1714. item.sums1 = ['orderHasSendQty', 'dataQty', 'hasSendQty']
  1715. item.sums2 = ['price', 'refundDepositAmount', 'depositAmount']
  1716. })
  1717. if (res.data.examineStatus == 'SAVE' || res.data.examineStatus == 'OK' || res.data.examineStatus == 'FAIL') {
  1718. this.title = '详情'
  1719. }
  1720. res.data.items = arr
  1721. this.amendData = res.data.dataList.filter(k => k.dataPosition == 'AMEND')
  1722. this.original = res.data.dataList.filter(k => k.dataPosition != 'AMEND')
  1723. res.data.realUseUnit = res.data.realUseUnit || res.data.refUseUnit
  1724. res.data.realInstallAddress = res.data.realInstallAddress || res.data.refInstallAddress
  1725. this.detailList = res.data
  1726. },
  1727. goBack() {
  1728. this.$emit('setShowPage', 0)
  1729. },
  1730. getRealMaterData(id) {
  1731. this.currentId = id
  1732. this.isSetMaterial = true
  1733. this.getGoodsList()
  1734. },
  1735. // 获取商品列表
  1736. getGoodsList() {
  1737. getRetailProductList({
  1738. pageNum: this.currentPage,
  1739. pageSize: 10,
  1740. saleId: this.detailList.saleTypeId,
  1741. billType: 'HOME',
  1742. materialCode: this.goodsScreenForm.proNum,
  1743. materialName: this.goodsScreenForm.proName,
  1744. specification: this.goodsScreenForm.proModel,
  1745. price1: this.goodsScreenForm.price1,
  1746. price2: this.goodsScreenForm.price2,
  1747. refEnginRecordNo: '',
  1748. customerId: ''
  1749. }).then(res => {
  1750. this.leftGoodsList = res.data.records
  1751. this.listTotal = res.data.total
  1752. })
  1753. },
  1754. submitPushGoods() {
  1755. // realMaterialId
  1756. // 实装金蝶物料id
  1757. // realMaterialName
  1758. // 实装金蝶物料名称
  1759. // realMaterialNumber
  1760. // 实装金蝶物料编码
  1761. // realMaterialOldNumber
  1762. // 实装金蝶物料旧编码
  1763. // realSpecification
  1764. // 实装规格型号
  1765. const currentData = this.leftGoodsList.find(e => e.id === this.currentRadio)
  1766. this.$set(this.detailList.items[this.currentId], 'depositMaterialId', currentData.materialId)
  1767. this.$set(this.detailList.items[this.currentId], 'depositMaterialName', currentData.materialName)
  1768. this.$set(this.detailList.items[this.currentId], 'depositMaterialNumber', currentData.materialNumber)
  1769. this.$set(this.detailList.items[this.currentId], 'depositMaterialOldNumber', currentData.materialOldNumber)
  1770. this.$set(this.detailList.items[this.currentId], 'depositSpecification', currentData.specification)
  1771. this.isSetMaterial = false
  1772. },
  1773. // 关闭 弹窗
  1774. closeDialog() {
  1775. this.isSetMaterial = false
  1776. },
  1777. // 更改列表当前页
  1778. handleTableCurrentChange(val) {
  1779. this.currentPage = val
  1780. this.getGoodsList()
  1781. },
  1782. // 重置筛选表单
  1783. resetGoodsScreenForm() {
  1784. this.$refs.goodsScreenForm.resetFields()
  1785. this.currentRadio = ''
  1786. this.currentPage = 1
  1787. this.getGoodsList()
  1788. },
  1789. // 提交筛选表单
  1790. submitGoodsScreenForm() {
  1791. this.currentPage = 1
  1792. this.getGoodsList()
  1793. },
  1794. addBlankLine() {
  1795. this.detailList.items.push({
  1796. id: null,
  1797. parentId: this.detailId,
  1798. refEnginRecordNo: this.detailList.refEnginRecordNo,
  1799. specialItemNo: null,
  1800. specialItemNoNumber: null,
  1801. factoryNo: null,
  1802. factoryNoNumber: null,
  1803. specialNo: null,
  1804. specialNoNumber: null,
  1805. billNo: null,
  1806. billNoNumber: null,
  1807. materialId: null,
  1808. materialName: null,
  1809. materialNumber: null,
  1810. materialOldNumber: null,
  1811. specification: null,
  1812. unit: null,
  1813. k3CategoryId: null,
  1814. k3CategoryNumber: null,
  1815. k3CategoryName: null,
  1816. enginPrice: null,
  1817. enginTotality: null,
  1818. enginNum: null,
  1819. price: null,
  1820. qty: null,
  1821. totalAmount: null,
  1822. customerWalletId: null,
  1823. customerWalletNumber: null,
  1824. customerWalletName: null,
  1825. tax: null,
  1826. remark: null,
  1827. hasSendQty: null,
  1828. depositAmount: null,
  1829. dataQty: null,
  1830. diffPolicyPrice: null,
  1831. diffPrice: null,
  1832. diffAmount: null,
  1833. realMaterialId: null,
  1834. realMaterialName: null,
  1835. realMaterialNumber: null,
  1836. realMaterialOldNumber: null,
  1837. realSpecification: null,
  1838. contractQty: null,
  1839. contractPrice: null,
  1840. contractAmount: null,
  1841. mailFactoryDate: null,
  1842. mailFactoryYear: null,
  1843. confirmDate: null,
  1844. settlementNo: null,
  1845. settlementDate: null,
  1846. inFactoryDate: null,
  1847. inFactoryType: null,
  1848. salesQty: null,
  1849. salesAmount: null,
  1850. createBy: null,
  1851. createTime: null,
  1852. depositMaterialId: null,
  1853. depositMaterialName: null,
  1854. depositMaterialNumber: null,
  1855. depositMaterialOldNumber: null,
  1856. depositSpecification: null,
  1857. orderHasSendQty: null,
  1858. saleTypeId: null,
  1859. sums1: [],
  1860. sums2: [],
  1861. isCustom: true,
  1862. isSource: false
  1863. })
  1864. }
  1865. }
  1866. }
  1867. </script>
  1868. <style lang="scss" scoped>
  1869. ::v-deep .input .el-input__inner,
  1870. .input {
  1871. color: blue !important;
  1872. }
  1873. ::v-deep .input2 .el-input__inner,
  1874. .input2 {
  1875. color: #f00 !important;
  1876. }
  1877. .inpt {
  1878. ::v-deep .el-input__inner {
  1879. text-align: right;
  1880. }
  1881. }
  1882. .aaa {
  1883. height: 64px;
  1884. width: 64px;
  1885. }
  1886. .dateS {
  1887. .value {
  1888. padding: 0;
  1889. }
  1890. }
  1891. .batchDownload {
  1892. float: right;
  1893. margin-top: 9px;
  1894. }
  1895. .gdzl {
  1896. display: inline-block;
  1897. }
  1898. .dateStyle {
  1899. width: 100%;
  1900. }
  1901. .label {
  1902. width: 150px !important;
  1903. }
  1904. .selectStyle {
  1905. width: 100%;
  1906. }
  1907. .flex {
  1908. width: 100%;
  1909. display: flex;
  1910. justify-content: space-between;
  1911. align-items: center;
  1912. }
  1913. </style>