warehouse.html 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=0.5">
  6. <title>仓库管理看板</title>
  7. <link href="/lib/bootstrap/bootstrap.min.css" rel="stylesheet" />
  8. <link href="/css/dashboard.css" rel="stylesheet" />
  9. <script type="text/javascript" src="/js/service.js"></script>
  10. <script type="text/javascript" src="/js/session.js"></script>
  11. <script type="text/javascript" src="/js/getService.js"></script>
  12. <script type="text/javascript" src="/js/service/method-get-service.js"></script>
  13. <script type="text/javascript" src="/lib/jquery-3.4.1.js"></script>
  14. <script type="text/javascript" src="/lib/jquery-3.4.1.min.js"></script>
  15. </head>
  16. <body id="container" class="container-fluid">
  17. <div class="row no-padding head-bar" style="height:81px">
  18. <div class="col-lg-1 col-md-1">
  19. </div>
  20. <div class="col-lg-4 col-md-4 page-title">
  21. 仓库管理看板
  22. </div>
  23. <div class="col-lg-4 col-md-4 block-padding">
  24. <button type="button" class="btn btn-warning"
  25. onclick="window.location.replace('/pages/dashboard/produce.html');">制造看板</button>
  26. <button type="button" class="btn btn-warning"
  27. onclick="window.location.replace('/pages/dashboard/line.html');">产线看板</button>
  28. <button type="button" class="btn btn-warning"
  29. onclick="window.location.replace('/pages/dashboard/quality.html');">品质看板</button>
  30. <button type="button" class="btn btn-warning"
  31. onclick="window.location.replace('/pages/dashboard/esop.html');">E-SOP</button>
  32. <button type="button" class="btn btn-warning"
  33. onclick="window.location.replace('/pages/dashboard/video1.html');">云看板</button>
  34. </div>
  35. <div class="col-lg-4 col-md-4">
  36. </div>
  37. </div>
  38. <div class="my-container" id="div-main">
  39. <div class="row">
  40. <div class="col-lg-3 col-md-3" style="width: 28%;">
  41. <!--人员信息-->
  42. <div class="row block-padding">
  43. <div class="col-lg-12 col-md-12">
  44. <span class="block-title-important">仓库人员信息</span>
  45. &nbsp;&nbsp;
  46. <span class="block-title-important">{{userSum}}</span>
  47. </div>
  48. </div>
  49. <div class="row" style="height: 20%;min-height: 145px;height: 145px">
  50. <div class="person-div" v-for="user in userList" style="text-align: center;">
  51. <div style="width:110px;margin-right: 5px">
  52. <img height="140" width="110" v-bind:src="'/upPersonnel/warehouse/'+user.fileName" border="0" />
  53. </div>
  54. <div style="width: 110px; overflow:hidden; word-break:break-all;white-space:nowrap">
  55. {{user.fileRealName}}
  56. </div>
  57. <!-- <div>
  58. {{user.fileName}}&nbsp;&nbsp;{{user.fileName}}
  59. </div> -->
  60. </div>
  61. </div>
  62. <!--收料待检-->
  63. <div class="row block-padding">
  64. <div class="col-lg-12 col-md-12">
  65. <span class="block-title-important">待入库</span>
  66. &nbsp;&nbsp;
  67. <span class="block-title-important">{{waitingcheckMaterialSum}}</span>
  68. </div>
  69. </div>
  70. <div class="row">
  71. <div style="width: 13%;" class="col-lg-2 col-md-2 center no-padding padding-line">供方名称</div>
  72. <div style="width: 12%;" class="col-lg-2 col-md-2 center no-padding padding-line">物料编码</div>
  73. <div class="col-lg-2 col-md-2 center no-padding padding-line" style="width: 19%;">物料名称</div>
  74. <!-- <div class="col-lg-2 col-md-2 center no-padding padding-line">规格</div> -->
  75. <div style="width: 9%;" class="col-lg-2 col-md-2 center no-padding padding-line">订单数</div>
  76. <div style="width: 8%;" class="col-lg-2 col-md-2 center no-padding padding-line">到货数</div>
  77. <div style="width: 9%;" class="col-lg-2 col-md-2 center no-padding padding-line">入库数</div>
  78. <div style="width: 15%;" class="col-lg-2 col-md-2 center no-padding padding-line">订单日期</div>
  79. <div style="width: 15%;" class="col-lg-2 col-md-2 center no-padding padding-line">到货日期</div>
  80. </div>
  81. <div class="row" style="height: 30%;overflow:hidden;min-height:145px;height:145px">
  82. <div class="col-lg-12 col-md-12" >
  83. <div class="row" v-for="material in waitingcheckMaterialList">
  84. <div style="width: 13%;" class="col-lg-2 col-md-2 center no-padding">{{material.vendorName}}</div>
  85. <div style="width: 12%;" class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
  86. <div style="width: 19%;overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-2 col-md-2 left">{{material.materialName}}</div>
  87. <!-- <div class="col-lg-2 col-md-2 center no-padding">{{material.specs}}</div> -->
  88. <div style="width: 9%;" class="col-lg-2 col-md-2 center no-padding">{{material.iuantity}}</div>
  89. <div style="width: 8%;" class="col-lg-2 col-md-2 center no-padding">{{material.iarrQTY}}</div>
  90. <div style="width: 9%;" class="col-lg-2 col-md-2 center no-padding">{{material.freceivedqty}}</div>
  91. <div style="width: 15%;" class="col-lg-2 col-md-2 center no-padding">{{material.dPODate}}</div>
  92. <div style="width: 15%;" class="col-lg-2 col-md-2 center no-padding">{{material.arriveDate}}</div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="row">
  97. <div class="col-lg-12 col-md-12 progress no-padding">
  98. <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="60"
  99. aria-valuemin="0" aria-valuemax="100" :style="{width:checkedMaterialSumPercent}">
  100. 已完成:{{checkedMaterialSum}}
  101. </div>
  102. <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60"
  103. aria-valuemin="0" aria-valuemax="100" :style="{width:waitingcheckMaterialSumPercent}">
  104. 未完成:{{waitingcheckMaterialSum}}
  105. </div>
  106. </div>
  107. </div>
  108. <!--安全库存-->
  109. <div class="row block-padding">
  110. <div class="col-lg-12 col-md-12 block-title-important">安全库存</div>
  111. </div>
  112. <div class="row">
  113. <div style="width: 20%;" class="col-lg-2 col-md-2 center no-padding">物料编码</div>
  114. <div style="width: 42%;" class="col-lg-4 col-md-4 center no-padding">物料名称</div>
  115. <div style="width: 25%;" class="col-lg-2 col-md-2 center no-padding">现存量</div>
  116. <div style="width: 13%;" class="col-lg-2 col-md-2 center no-padding">安全库存</div>
  117. <!-- <div class="col-lg-2 col-md-2 center no-padding">总数量</div> -->
  118. </div>
  119. <div class="row">
  120. <div class="col-lg-12 col-md-12" style="height: 30%;min-height:140px;height:140px">
  121. <div class="row" v-for="material in materialStockList">
  122. <div style="width: 20%;" class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
  123. <div style="width: 42%;overflow:hidden; word-break:break-all;white-space:nowrap;padding-left: 40px;" class="col-lg-4 col-md-4 left no-padding">{{material.materialName}}</div>
  124. <div style="width: 25%;" class="col-lg-2 col-md-2 center no-padding"
  125. :class="getMaterialStockNotEnoughClass(material)">
  126. {{material.realStockSum}}</div>
  127. <div style="width: 13%;" class="col-lg-2 col-md-2 center no-padding">{{material.safeStockSum}}</div>
  128. <!-- <div class="col-lg-2 col-md-2 center no-padding">{{material.realStockSum+material.safeStockSum}}</div> -->
  129. </div>
  130. </div>
  131. </div>
  132. <!--待入库-->
  133. <!-- <div class="row block-padding">
  134. <div class="col-lg-12 ">
  135. <span class="block-title">待入库</span>
  136. &nbsp;&nbsp;
  137. <span class="block-title-important">{{waitinginMaterialSum}}</span>
  138. </div>
  139. </div>
  140. <div class="row">
  141. <div class="col-lg-2 col-md-2 center no-padding padding-line">供方名称</div>
  142. <div class="col-lg-2 col-md-2 center no-padding padding-line">物料编码</div>
  143. <div class="col-lg-3 col-md-3 center no-padding padding-line">名称</div>
  144. <div class="col-lg-1 col-md-1 center no-padding">到货数量</div>
  145. <div class="col-lg-2 col-md-2 center no-padding padding-line">到货日期</div>
  146. </div>
  147. <div class="row">
  148. <div class="col-lg-12 col-md-12" style="height: 160px;">
  149. <div class="row" v-for="material in waitinginMaterialList">
  150. <div class="col-lg-2 col-md-2 center no-padding">{{material.vendorName}}</div>
  151. <div class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
  152. <div class="col-lg-3 col-md-3 center no-padding">{{material.materialName}}</div>
  153. <div class="col-lg-1 col-md-1 center no-padding">{{material.arriveSum}}</div>
  154. <div class="col-lg-2 col-md-2 center no-padding">{{material.arriveDate}}</div>
  155. </div>
  156. </div>
  157. </div>
  158. <div class="row">
  159. <div class="col-lg-12 col-md-12 progress no-padding">
  160. <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="60"
  161. aria-valuemin="0" aria-valuemax="100" :style="{width:inMaterialSumPercent}">
  162. 已完成:{{inMaterialSum}}
  163. </div>
  164. <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60"
  165. aria-valuemin="0" aria-valuemax="100" :style="{width:waitinginMaterialSumPercent}">
  166. 未完成:{{waitinginMaterialSum}}
  167. </div>
  168. </div>
  169. </div> -->
  170. <!--发货通知-->
  171. <div class="row block-padding">
  172. <div class="col-lg-12 col-md-12" style="margin-top:10px;">
  173. <span class="block-title-important">发货通知</span>
  174. &nbsp;&nbsp;
  175. <span class="block-title-important">{{waitingSendProductSum}}</span>
  176. </div>
  177. </div>
  178. <div class="row">
  179. <div style="width: 20%;" class="col-lg-2 col-md-2 center no-padding padding-line">项目编码</div>
  180. <div style="width: 25%;" class="col-lg-2 col-md-2 center no-padding padding-line">项目名称</div>
  181. <div style="width: 20%;" class="col-lg-2 col-md-2 center no-padding padding-line">仓库</div>
  182. <!-- <div style="width: 15%;" class="col-lg-2 col-md-2 center no-padding padding-line">物料编码</div>
  183. <div style="width: 28%;" class="col-lg-3 col-md-3 center no-padding padding-line">物料名称</div> -->
  184. <!-- <div class="col-lg-2 col-md-2 center no-padding padding-line">规格</div> -->
  185. <div style="width: 17%;" class="col-lg-1 col-md-1 center no-padding padding-line">发货数</div>
  186. <div style="width: 18%;" class="col-lg-2 col-md-2 center no-padding padding-line">发货日期</div>
  187. </div>
  188. <div class="row" style="min-height:150px;height:150px">
  189. <div class="col-lg-12 col-md-12">
  190. <div class="row" v-for="product in waitingSendProductList">
  191. <div style="width: 20%;" class="col-lg-2 col-md-2 center no-padding">{{product.cItemCode}}</div>
  192. <div style="width: 25%;overflow:hidden; word-break:break-all;white-space:nowrap;" class="col-lg-2 col-md-2 center no-padding">{{product.cItemName}}</div>
  193. <div style="width: 20%;" class="col-lg-2 col-md-2 center no-padding">{{product.warehouseName}}</div>
  194. <!-- <div style="width: 15%;" class="col-lg-2 col-md-2 center no-padding">{{product.materialCode}}</div>
  195. <div style="width: 28%;overflow:hidden; word-break:break-all;white-space:nowrap;" class="col-lg-3 col-md-3 left no-padding">{{product.materialName}}</div> -->
  196. <!-- <div class="col-lg-2 col-md-2 center no-padding">{{product.specs}}</div> -->
  197. <div style="width: 17%;" class="col-lg-1 col-md-1 center no-padding">{{product.sendSum}}</div>
  198. <div style="width: 18%;" class="col-lg-2 col-md-2 center no-padding">{{product.planSendDate}}</div>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="row">
  203. <div class="col-lg-12 col-md-12 progress no-padding">
  204. <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="60"
  205. aria-valuemin="0" aria-valuemax="100" :style="{width:sendProductSumPercent}">
  206. 已完成:{{sendProductSum}}
  207. </div>
  208. <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60"
  209. aria-valuemin="0" aria-valuemax="100" :style="{width:waitingSendProductSumPercent}">
  210. 未完成:{{waitingSendProductSum}}
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="col-lg-6" style="width: 40%;">
  216. <div class="row block-padding" style="height: 49%;width: 100%;margin-left: 2%;">
  217. <div class="row">
  218. <div class="row">
  219. <!-- <div class="col-lg-12 col-md-12 center block-title">月成品出货统计</div> -->
  220. <div class="col-lg-12 col-md-12 center block-title-important">项目发货统计</div>
  221. </div>
  222. <div class="row">
  223. <div class="col-lg-12 col-md-12" style="height:420px" id="charts_11"></div>
  224. </div>
  225. </div>
  226. <!-- <div class="col-lg-6">
  227. <div class="row">
  228. <div class="col-lg-12 col-md-12 center block-title">项目月发货统计</div>
  229. </div>
  230. <div class="row">
  231. <div class="col-lg-12 col-md-12" style="height:440px" id="charts_12"></div>
  232. </div>
  233. </div> -->
  234. </div>
  235. <div class="row block-padding" style="height: 49%;width: 100%;;margin-left: 2%;">
  236. <!-- <div class="col-lg-6 col-md-6" style="padding-left:30px;">
  237. <div class="row ">
  238. <div class="col-lg-12 col-md-12 center block-title">安全库存</div>
  239. </div>
  240. <div class="row block-padding">
  241. <div class="col-lg-2 col-md-2 center no-padding">物料编码</div>
  242. <div class="col-lg-4 col-md-4 center no-padding">名称</div>
  243. <div class="col-lg-2 col-md-2 center no-padding">现存量</div>
  244. <div class="col-lg-2 col-md-2 center no-padding">安全库存</div>
  245. <div class="col-lg-2 col-md-2 center no-padding">总数量</div>
  246. </div>
  247. <div class="row">
  248. <div class="col-lg-12 col-md-12" style="height: 300px;">
  249. <div class="row" v-for="material in materialStockList">
  250. <div class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
  251. <div class="col-lg-4 col-md-4 center no-padding">{{material.materialName}}</div>
  252. <div class="col-lg-2 col-md-2 center no-padding"
  253. :class="getMaterialStockNotEnoughClass(material)">
  254. {{material.realStockSum}}</div>
  255. <div class="col-lg-2 col-md-2 center no-padding">{{material.safeStockSum}}</div>
  256. <div class="col-lg-2 col-md-2 center no-padding">{{material.realStockSum+material.safeStockSum}}</div>
  257. </div>
  258. </div>
  259. </div>
  260. </div> -->
  261. <div class="row" style="height: 49%;">
  262. <div class="row">
  263. <div class="col-lg-12 col-md-12 center block-title-important">成品库存</div>
  264. </div>
  265. <div class="row">
  266. <div class="col-lg-12 col-md-2" style="height:480px" id="charts_22"></div>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. <div class="col-lg-3" style="width: 32%;height: 100%;">
  272. <!--工单备料-->
  273. <!-- <div class="row block-padding">
  274. <div class="col-lg-12 col-md-12">
  275. <span class="block-title-important">工单</span>
  276. &nbsp;&nbsp;
  277. <span class="block-title-important">{{orderSheetMaterialNeedSum}}</span>
  278. &nbsp;&nbsp;
  279. </div>
  280. </div>
  281. <div class="row block-padding" >
  282. <div class="col-lg-2 col-md-2 center no-padding">工单号</div>
  283. <div class="col-lg-2 col-md-2 center no-padding">物料编码</div>
  284. <div class="col-lg-3 col-md-3 center no-padding">物料名称</div>
  285. <div class="col-lg-2 col-md-2 center no-padding">数量</div>
  286. <div class="col-lg-2 col-md-2 center no-padding">已备数</div>
  287. <div class="col-lg-1 col-md-1 center no-padding">缺料</div>
  288. </div>
  289. <div class="row" style="overflow:hidden;min-height:160px;height:160px">
  290. <div class="col-lg-12 col-md-12">
  291. <div class="row" v-for="material in orderSheetMaterialList">
  292. <div class="col-lg-2 col-md-2 center no-padding">{{material.orderSheetCode}}</div>
  293. <div class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
  294. <div style="overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-3 col-md-3 left no-padding">{{material.materialName}}</div>
  295. <div class="col-lg-2 col-md-2 center no-padding"
  296. >
  297. {{material.needSum}}</div>
  298. <div class="col-lg-2 col-md-2 center no-padding">{{material.stockSum}}</div>
  299. <div class="col-lg-1 col-md-1 center no-padding error-font" :class="getshortageQuantity(material)">{{material.shortageQuantity}}</div>
  300. </div>
  301. </div>
  302. </div> -->
  303. <div class="row block-padding">
  304. <div class="col-lg-12 col-md-12">
  305. <span class="block-title-important">生产工单配料</span>
  306. &nbsp;&nbsp;
  307. <span class="block-title-important">{{orderSheetMaterialNeedSum}}</span>
  308. &nbsp;&nbsp;
  309. </div>
  310. </div>
  311. <div class="row block-padding" style="padding-bottom: 4%;">
  312. <div class="col-lg-2 col-md-2 left no-padding">工单号</div>
  313. <div class="col-lg-3 col-md-3 center no-padding">产品编码</div>
  314. <div class="col-lg-4 col-md-4 left no-padding">产品名称</div>
  315. <div class="col-lg-2 col-md-2 center no-padding">产品数量</div>
  316. </div>
  317. <div class="row" style="overflow:hidden;min-height:30px;height:30px">
  318. <div class="col-lg-12 col-md-12">
  319. <div class="row" v-for="material in orderSheetMaterialNotEnoughList">
  320. <div v-if="material.free1=='1'" class="col-lg-2 col-md-2 left no-padding">{{material.mocode}}</div>
  321. <div v-if="material.free1=='1'" class="col-lg-3 col-md-3 center no-padding">{{material.invcode}}</div>
  322. <div v-if="material.free1=='1'" style="overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-4 col-md-4 left no-padding">{{material.cinvname}}</div>
  323. <div v-if="material.free1=='1'" class="col-lg-2 col-md-2 center no-padding">{{material.modQty}}</div>
  324. </div>
  325. </div>
  326. </div>
  327. <!--工单齐套-->
  328. <!-- <div class="row block-padding">
  329. <div class="col-lg-12 ">
  330. <span class="block-title-important">工单齐套通知</span>
  331. &nbsp;&nbsp;
  332. <span class="block-title-important">{{orderSheetMaterialEnoughSum}}</span>
  333. </div>
  334. </div>
  335. <div class="row block-padding">
  336. <div class="col-lg-2 col-md-2 center no-padding">工单号</div>
  337. <div class="col-lg-2 col-md-2 center no-padding">物料编码</div>
  338. <div class="col-lg-3 col-md-3 center no-padding">物料名称</div>
  339. <div class="col-lg-2 col-md-2 center no-padding">数量</div>
  340. <div class="col-lg-2 col-md-2 center no-padding">已备数</div>
  341. </div>
  342. <div class="row">
  343. <div class="col-lg-12 col-md-12" style="height: 21%;overflow:hidden;min-height:160px;height:160px">
  344. <div class="row" v-for="material in orderSheetMaterialEnoughList">
  345. <div class="col-lg-2 col-md-2 center no-padding">{{material.orderSheetCode}}</div>
  346. <div class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
  347. <div style="overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-3 col-md-3 left no-padding">{{material.materialName}}</div>
  348. <div class="col-lg-2 col-md-2 center no-padding">{{material.needSum}}</div>
  349. <div class="col-lg-2 col-md-2 center no-padding">{{material.stockSum}}</div>
  350. </div>
  351. </div>
  352. </div> -->
  353. <!--工单缺料-->
  354. <div class="row"><hr></div>
  355. <div class="row block-padding">
  356. <!-- <div class="col-lg-2 col-md-2 center no-padding">工单号</div>
  357. <div class="col-lg-2 col-md-3 center no-padding">产品名称</div> -->
  358. <div class="col-lg-2 col-md-2 left no-padding">物料编码</div>
  359. <div class="col-lg-4 col-md-4 center no-padding">物料名称</div>
  360. <!-- <div class="col-lg-2 col-md-2 center no-padding">规格</div> -->
  361. <div class="col-lg-2 col-md-2 center no-padding">应发</div>
  362. <div class="col-lg-2 col-md-2 center no-padding">实发</div>
  363. <div class="col-lg-2 col-md-2 center no-padding">库存</div>
  364. <!-- <div class="col-lg-2 col-md-2 center no-padding">已备数</div> -->
  365. </div>
  366. <div class="row" style="height: 44%;overflow:hidden;min-height:160px;height:360px">
  367. <div class="col-lg-12 col-md-12">
  368. <div class="row" v-for="material in orderSheetMaterialNotEnoughList">
  369. <!-- <div class="col-lg-2 col-md-2 center no-padding">{{material.orderSheetCode}}</div>
  370. <div style="overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-2 col-md-2 left no-padding">{{material.cinvname}}</div> -->
  371. <div class="col-lg-2 col-md-2 left no-padding">{{material.minvCode}}</div>
  372. <div style="overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-4 col-md-4 left no-padding">{{material.mcinvname}}</div>
  373. <!-- <div class="col-lg-2 col-md-2 center no-padding">{{material.specs}}</div> -->
  374. <div class="col-lg-2 col-md-2 center no-padding">{{material.qtys}}</div>
  375. <div class="col-lg-2 col-md-2 center no-padding">{{material.issQty}}</div>
  376. <div class="col-lg-2 col-md-2 center no-padding">{{material.materialPreparationTotal}}</div>
  377. <!-- <div class="col-lg-2 col-md-2 center no-padding">{{material.stockSum}}</div> -->
  378. </div>
  379. </div>
  380. </div>
  381. <!--领料申请-->
  382. <div class="row block-padding">
  383. <div class="col-lg-12 col-md-12 ">
  384. <span class="block-title-important">领料申请通知</span>
  385. &nbsp;&nbsp;
  386. <span class="block-title-important">{{applyMaterialSum}}</span>
  387. </div>
  388. </div>
  389. <div class="row block-padding">
  390. <div class="col-lg-2 col-md-2 center no-padding">领料日期</div>
  391. <div class="col-lg-2 col-md-2 center no-padding">物料编码</div>
  392. <div class="col-lg-3 col-md-4 center no-padding">物料名称</div>
  393. <!-- <div class="col-lg-2 col-md-2 center no-padding">规格</div> -->
  394. <div class="col-lg-1 col-md-1 center no-padding">数量</div>
  395. <div class="col-lg-2 col-md-2 center no-padding">部门</div>
  396. <div class="col-lg-2 col-md-2 center no-padding">申请人</div>
  397. </div>
  398. <div class="row">
  399. <div class="col-lg-12 col-md-12" style="height: 23%;overflow:hidden;min-height:290px;height:290px">
  400. <div class="row" v-for="material in applyMaterialList">
  401. <div class="col-lg-2 col-md-2 center no-padding">{{material.ddate}}</div>
  402. <div style="overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-2 col-md-2 center no-padding">{{material.materialCode}}</div>
  403. <div style="overflow:hidden; word-break:break-all;white-space:nowrap" class="col-lg-3 col-md-4 left no-padding">{{material.materialName}}</div>
  404. <!-- <div class="col-lg-2 col-md-2 center no-padding">{{material.specs}}</div> -->
  405. <div class="col-lg-1 col-md-1 center no-padding">{{material.applysum}}</div>
  406. <div class="col-lg-2 col-md-2 center no-padding">{{material.cdepName}}</div>
  407. <div class="col-lg-2 col-md-2 center no-padding">{{material.applyPerson}}</div>
  408. </div>
  409. </div>
  410. </div>
  411. <div class="row">
  412. <div class="col-lg-12 col-md-12 progress no-padding">
  413. <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="60"
  414. aria-valuemin="0" aria-valuemax="100" :style="{width:applyCompleteSumPercent}">
  415. 已完成:{{applyCompleteSum}}
  416. </div>
  417. <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60"
  418. aria-valuemin="0" aria-valuemax="100" :style="{width:applyMaterialSumPercent}">
  419. 未完成:{{applyMaterialSum}}
  420. </div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. <!-- jQuery -->
  427. <script src="/lib/jquery.min.js"></script>
  428. <script src="/lib/vue.min.js"></script>
  429. <script src="/lib/echarts/echarts.min.js"></script>
  430. <script src="/lib/echarts/theme/macarons.js"></script>
  431. <script src="/js/service/person.js?_v=2"></script>
  432. <script src="/js/service/material.js?_v=2"></script>
  433. <script src="/js/service/product.js?_v=2"></script>
  434. <script src="/js/content/mycharts.js?_v=2"></script>
  435. <script type="text/javascript">
  436. // 参数说明:beginFun("图表ID","list形式数据","翻页时间(毫秒)","本页面唯一id(不可重复)")
  437. const monthSend = ServiceProduct.getMonthSend();
  438. const stockDate = ServiceProduct.getStockList();
  439. setTimeout(beginFun("charts_11",monthSend,10000,"charts_11",ChartsService.getGridSpanSmall()),500);
  440. setTimeout(beginFunA("charts_22",stockDate,10000,"charts_22",ChartsService.getGridSpanSmall()),500);
  441. // var interval = setInterval(getMonthSendData,10000);//项目月发货统计
  442. // var interval1 = setInterval(getMonthSendData1,10000);//成品库存
  443. var initSize = 5;
  444. var pageSize = 5;
  445. var pageIndex = 0;
  446. var pageSizeA = 5;
  447. var pageIndexA = 0;
  448. // const monthSend = ServiceProduct.getMonthSend();
  449. // let monthSendList = [];
  450. // for(let key in monthSend) {
  451. // monthSendList.push([key, monthSend[key]]);
  452. // }
  453. // var pageSize1 = 5;
  454. // var pageIndex1 = 0;
  455. // // const stockDate = ServiceProduct.getStockList();
  456. // let stockList = [];
  457. // for(let key in stockDate) {
  458. // stockList.push([key, stockDate[key]]);
  459. // }
  460. // function getMonthSendData(){
  461. // if(monthSendList.length <= initSize){
  462. // clearInterval(interval);
  463. // }
  464. // if(pageIndex >= monthSendList.length){
  465. // pageSize = 5;
  466. // pageIndex = 0;
  467. // }
  468. // let lsit = monthSendList.slice(pageIndex, pageSize);
  469. // pageIndex = pageSize;
  470. // pageSize = pageSize + initSize;
  471. // let map = {}
  472. // for(let key in lsit) {
  473. // map[lsit[key][0]] = lsit[key][1];
  474. // }
  475. // ChartsService.initCommonBar("charts_11",map);
  476. // }
  477. // function getMonthSendData1(){
  478. // if(stockList.length <= initSize){
  479. // clearInterval(interval1);
  480. // }
  481. // if(pageIndex1 >= stockList.length){
  482. // pageSize1 = 8;
  483. // pageIndex1 = 0;
  484. // }
  485. // let lsit1 = stockList.slice(pageIndex1, pageSize1);
  486. // pageIndex1 = pageSize1;
  487. // pageSize1 = pageSize1 + initSize;
  488. // let map = {}
  489. // for(let key in lsit1) {
  490. // map[lsit1[key][0]] = lsit1[key][1];
  491. // }
  492. // ChartsService.initCommonBar("charts_22",map);
  493. // }
  494. var vm = new Vue({
  495. el: '#div-main',
  496. data: {
  497. userList: [],
  498. userSum: 0,
  499. waitinginMaterialList: [],
  500. waitinginMaterialSum: 0,
  501. inMaterialSum: 0,
  502. waitinginMaterialSumPercent: '0%',
  503. inMaterialSumPercent: '0%',
  504. waitingcheckMaterialList: [],
  505. waitingcheckMaterialSum: 0,
  506. checkedMaterialSum: 0,
  507. checkedMaterialSumPercent: '0%',
  508. waitingcheckMaterialSumPercent: '0%',
  509. waitingSendProductList: [],
  510. waitingSendProductSum: 0,
  511. sendProductSum: 0,
  512. waitingSendProductSumPercent: '0%',
  513. sendProductSumPercent: '0%',
  514. materialStockList: [],
  515. orderSheetMaterialList: [],
  516. orderSheetMaterialNeedSum: 0,
  517. orderSheetMaterialPercent: 0,
  518. orderSheetMaterialEnoughList: [],
  519. orderSheetMaterialEnoughSum: 0,
  520. orderSheetMaterialNotEnoughSum: 0,
  521. orderSheetMaterialNotEnoughList: [],
  522. applyMaterialList: [],
  523. applyCompleteSum: 0,
  524. applyMaterialSum: 0,
  525. applyCompleteSumPercent: '0%',
  526. applyMaterialSumPercent: '0%',
  527. cacheDataObject: {}, // 从服务器加载的全数据,界面只取某几条
  528. timer_long: '', // 定时取服务器数据
  529. timer_short: '' // 数据超长定时轮播
  530. },
  531. methods: {
  532. // 安全库存不足时class
  533. getMaterialStockNotEnoughClass: function (material) {
  534. if (material.realStockSum * 1 < material.safeStockSum * 1) {
  535. return "error-font";
  536. }
  537. return "";
  538. },
  539. getOrderSheetStockNotEnoughClass: function (material) {
  540. if (material.needSum * 1 > material.stockSum * 1) {
  541. return "error-font";
  542. }
  543. return "";
  544. },
  545. //缺料
  546. getshortageQuantity:function(material){
  547. if(material.shortageQuantity*1>0){
  548. return "error-font";
  549. }
  550. return "";
  551. },
  552. // 从服务器加载数据并显示
  553. refreshData: function () {
  554. // 关闭定时器
  555. clearInterval(this.timer_short);
  556. // 刷新报表
  557. // ChartsService.initCommonBar("charts_11", ServiceProduct.getMonthSend());
  558. // ChartsService.initLineWithShade("charts_12", ServiceProduct.getMonthSendByProject());
  559. // ChartsService.initCommonBar("charts_22", ServiceProduct.getStockList());
  560. this.loadData();
  561. // 开启定时器
  562. this.timer_short = setInterval(this.scrollData, 20000);
  563. },
  564. // 轮播数据
  565. scrollData: function () {
  566. for (var key in this.cacheDataObject) {
  567. const dataList = this.cacheDataObject[key].data;
  568. const pagesize = this.cacheDataObject[key].pagesize;
  569. var pageindex = this.cacheDataObject[key].pageindex + 1;
  570. if (dataList.length > pagesize) {
  571. const pagesum = (dataList.length / pagesize).toFixed(0) * 1 + (dataList.length %
  572. pagesize > 0 ? 1 : 0);
  573. if (pageindex >= pagesum)
  574. pageindex = 0;
  575. this.cacheDataObject[key].pageindex = pageindex;
  576. const startIndex = pageindex * pagesize;
  577. const remainSum = dataList.length - startIndex;
  578. const recordSum = remainSum >= pagesize ? pagesize : remainSum;
  579. const keyPar = dataList.slice(startIndex, startIndex + pagesize);
  580. if(keyPar.length < 1){
  581. continue;
  582. }
  583. this[key] = dataList.slice(startIndex, startIndex + pagesize);
  584. }
  585. }
  586. },
  587. // 从服务器加载数据
  588. loadData: function () {
  589. this.cacheDataObject = {};
  590. // 人员信息
  591. const userList = ServicePerson.getWarehousePersonList();
  592. this.userSum = userList.length;
  593. this.cacheDataObject.userList = {
  594. data: userList,
  595. pagesize: 4,
  596. pageindex: 0
  597. }
  598. this.userList = userList.slice(0, this.cacheDataObject.userList.pagesize);
  599. // 待入库
  600. const waitinginMaterialList = ServiceMaterial.getWatingInList();
  601. $.each(waitinginMaterialList,function(index,item){
  602. if (item.specs!=undefined && item.specs!='undefined' && item.specs.length>6)
  603. item.specs = item.specs.substr(0,6);
  604. item.arriveDate = item.arriveDate.replace(/-/g,"");
  605. });
  606. this.waitinginMaterialSum = waitinginMaterialList.length;
  607. this.inMaterialSum = ServiceMaterial.getInSum();
  608. const waitinginMaterialSumPercent = (this.waitinginMaterialSum / (this
  609. .waitinginMaterialSum +
  610. this.inMaterialSum) * 100)
  611. .toFixed(0);
  612. this.inMaterialSumPercent = (100 - waitinginMaterialSumPercent) + '%';
  613. this.waitinginMaterialSumPercent = waitinginMaterialSumPercent + '%';
  614. this.cacheDataObject.waitinginMaterialList = {
  615. data: waitinginMaterialList,
  616. pagesize: 8,
  617. pageindex: 0
  618. }
  619. this.waitinginMaterialList = waitinginMaterialList.slice(0, this.cacheDataObject
  620. .waitinginMaterialList.pagesize);
  621. // 收料待检
  622. const waitingcheckMaterialList = ServiceMaterial.getWatingCheckList();
  623. $.each(waitingcheckMaterialList,function(index,item){
  624. // if (item.specs.length>6)
  625. // item.specs = item.specs.substr(0,6);
  626. // item.arriveDate = item.arriveDate.replace(/-/g,"");
  627. });
  628. this.waitingcheckMaterialSum = waitingcheckMaterialList.length;
  629. this.checkedMaterialSum = ServiceMaterial.getCheckSum();
  630. const checkedMaterialSumPercent = (this.checkedMaterialSum / (this.checkedMaterialSum +
  631. this.waitingcheckMaterialSum) * 100)
  632. .toFixed(2);
  633. this.waitingcheckMaterialSumPercent = (100 - checkedMaterialSumPercent) + '%';
  634. this.checkedMaterialSumPercent = checkedMaterialSumPercent + '%';
  635. this.cacheDataObject.waitingcheckMaterialList = {
  636. data: waitingcheckMaterialList,
  637. pagesize: 7,
  638. pageindex: 0
  639. }
  640. this.waitingcheckMaterialList = waitingcheckMaterialList.slice(0, this.cacheDataObject
  641. .waitingcheckMaterialList.pagesize);
  642. // 发货通知
  643. const waitingSendProductList = ServiceProduct.getWatingSendList();
  644. $.each(waitingSendProductList,function(index,item){
  645. if (item.specs != null && item.specs != undefined && item.specs.length>6)
  646. item.specs = item.specs.substr(0,6);
  647. item.planSendDate = item.planSendDate.replace(/-/g,"");
  648. });
  649. this.waitingSendProductSum = waitingSendProductList.length;
  650. this.sendProductSum = ServiceProduct.getSendSum();
  651. const waitingSendProductSumPercent = (this.waitingSendProductSum / (this
  652. .waitingSendProductSum +
  653. this.sendProductSum) * 100)
  654. .toFixed(0);
  655. this.sendProductSumPercent = (100 - waitingSendProductSumPercent) + '%';
  656. this.waitingSendProductSumPercent = waitingSendProductSumPercent + '%';
  657. this.cacheDataObject.waitingSendProductList = {
  658. data: waitingSendProductList,
  659. pagesize: 8,
  660. pageindex: 0
  661. }
  662. this.waitingSendProductList = waitingSendProductList.slice(0, this.cacheDataObject
  663. .waitingSendProductList.pagesize);
  664. // 库存
  665. const materialStockList = ServiceMaterial.getStockList();
  666. this.cacheDataObject.materialStockList = {
  667. data: materialStockList,
  668. pagesize: 8,
  669. pageindex: 0
  670. }
  671. this.materialStockList = materialStockList.slice(0, this.cacheDataObject
  672. .materialStockList.pagesize);
  673. /** 工单备料 **/
  674. // var orderSheetList=ServiceMaterial.getListByOrderSheet("1");
  675. // const orderSheetMaterialList = ServiceMaterial.getListByOrderSheet1(orderSheetList);
  676. // const orderSheetMaterialList = ServiceMaterial.getOrderDetailList();
  677. // var orderSheetMaterialNeedSum = 0;
  678. // var orderSheetMaterialStockSum = 0;
  679. // this.orderSheetMaterialNeedSum = orderSheetMaterialList.length;
  680. // orderSheetMaterialNeedSum = orderSheetMaterialList.length;
  681. // $.each(orderSheetMaterialList, function (index, item) {
  682. // if (item.needSum * 1 > item.stockSum * 1)
  683. // orderSheetMaterialStockSum++;
  684. // });
  685. // this.orderSheetMaterialPercent = ((orderSheetMaterialNeedSum -
  686. // orderSheetMaterialStockSum) /
  687. // orderSheetMaterialNeedSum * 100).toFixed("0");
  688. // this.cacheDataObject.orderSheetMaterialList = {
  689. // data: orderSheetMaterialList,
  690. // pagesize: 8,
  691. // pageindex: 0
  692. // }
  693. // this.orderSheetMaterialList = orderSheetMaterialList.slice(0, this.cacheDataObject
  694. // .orderSheetMaterialList.pagesize);
  695. /** 工单缺料 **/
  696. // const orderSheetMaterialNotEnoughList = ServiceMaterial.getListByOrderSheetNotEnough();
  697. // const orderSheetMaterialNotEnoughList = ServiceMaterial.getListByOrderSheet3(orderSheetList);
  698. const orderSheetMaterialNotEnoughList = ServiceMaterial.getMoallocateList();
  699. this.orderSheetMaterialNeedSum=ServiceMaterial.getMoallocateListGroupCount();
  700. if(orderSheetMaterialNotEnoughList){
  701. this.orderSheetMaterialNotEnoughSum = orderSheetMaterialNotEnoughList.length;
  702. }else{
  703. this.orderSheetMaterialNotEnoughSum=0;
  704. }
  705. this.cacheDataObject.orderSheetMaterialNotEnoughList = {
  706. data: orderSheetMaterialNotEnoughList,
  707. pagesize: 18,
  708. pageindex: 0
  709. }
  710. this.orderSheetMaterialNotEnoughList = orderSheetMaterialNotEnoughList.slice(0, this
  711. .cacheDataObject.orderSheetMaterialNotEnoughList.pagesize);
  712. /** 工单齐套 **/
  713. // const orderSheetMaterialEnoughList = ServiceMaterial.getListByOrderSheetEnough();
  714. // const orderSheetMaterialEnoughList = ServiceMaterial.getListByOrderSheet2(orderSheetList);
  715. // this.orderSheetMaterialEnoughSum = orderSheetMaterialEnoughList.length;
  716. // this.cacheDataObject.orderSheetMaterialEnoughList = {
  717. // data: orderSheetMaterialEnoughList,
  718. // pagesize: 8,
  719. // pageindex: 0
  720. // }
  721. // this.orderSheetMaterialEnoughList = orderSheetMaterialEnoughList.slice(0, this
  722. // .cacheDataObject.orderSheetMaterialEnoughList.pagesize);
  723. /** 领料申请 **/
  724. const applyMaterialList = ServiceMaterial.getApplyList();
  725. this.applyCompleteSum = ServiceMaterial.getApplyCompleteSum();
  726. this.applyMaterialSum = applyMaterialList.length;
  727. const applyCompleteSumPercent = (this.applyCompleteSum / (this.applyCompleteSum +
  728. this.applyMaterialSum) * 100).toFixed(0);
  729. this.applyMaterialSumPercent = (100 - applyCompleteSumPercent) + '%';
  730. this.applyCompleteSumPercent = applyCompleteSumPercent + '%';
  731. this.cacheDataObject.applyMaterialList = {
  732. data: applyMaterialList,
  733. pagesize: 13,
  734. pageindex: 0
  735. }
  736. this.applyMaterialList = applyMaterialList.slice(0, this.cacheDataObject
  737. .applyMaterialList.pagesize);
  738. }
  739. },
  740. mounted() {
  741. this.timer_long = setInterval(this.refreshData, 600000);
  742. this.refreshData();
  743. },
  744. beforeDestroy() {
  745. clearInterval(this.timer_long);
  746. clearInterval(this.timer_short);
  747. }
  748. });
  749. </script>
  750. </body>
  751. </html>