index.vue 125 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635
  1. <template>
  2. <div class="home">
  3. <div id="mybox" style="display: flex;transform-origin: top left;">
  4. <!--左边的-->
  5. <div class="leftbox">
  6. <!--本金-->
  7. <div class="principalBox" style="background: #f4c179">
  8. <div class="leftimgbox"><img src="../../assets/produceImg/qianbao.png" alt=""></div>
  9. <div class="BoldText">{{TotalMoney}}元</div>
  10. </div>
  11. <!--固定成本-->
  12. <div class="principalBox" style="justify-content: center;background: #d5f593">
  13. <div class="CostTextLeft">固定成本:</div>
  14. <div class="CostTextRight">{{FixedExpenses}}</div>
  15. </div>
  16. <!--时间-->
  17. <div class="principalBox" style="background: #c5fbfe">
  18. <div style="display: flex;align-items: center;margin-right: 18px">
  19. <div class="leftimgbox">
  20. <img src="../../assets/produceImg/shijian.png" alt="">
  21. </div>
  22. <span>{{ DigitalWeekfun(CurrentDays) }}</span>
  23. </div>
  24. <div class="CostTextRight">{{formatdate}}</div>
  25. </div>
  26. <!--下面的员工-->
  27. <div class="PersonnelResources">
  28. <div class="renlitext">人力资源部</div>
  29. <!--深蓝色-->
  30. <div class="staffBox">
  31. <div class="staffBoxren">
  32. <span class="staffBoxtext">{{DarkBlueStaff.postName}}</span>
  33. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/DarkBlue.jpeg" alt=""></div>
  34. <div class="xialawz">
  35. <el-select v-model="DarkBlueStaff.postName"
  36. placeholder="请选择" size="mini"
  37. >
  38. <el-option
  39. v-for="item in DarkBlueOptionalPost"
  40. :key="item.value"
  41. :label="item.name"
  42. :value="item.id">
  43. </el-option>
  44. </el-select>
  45. </div>
  46. </div>
  47. </div>
  48. <!--绿色-->
  49. <div class="staffBox staffBoxflex">
  50. <div class="staffBoxren">
  51. <span class="staffBoxtext">{{GreenStaff1.postName}}</span>
  52. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/Green.jpeg" alt=""></div>
  53. <div class="xialawz">
  54. <el-select v-model="GreenStaff1.postName" placeholder="请选择" size="mini">
  55. <el-option
  56. v-for="item in GreenOptionalPost"
  57. :key="item.value"
  58. :label="item.name"
  59. :value="item.id">
  60. </el-option>
  61. </el-select>
  62. </div>
  63. </div>
  64. <div class="staffBoxren">
  65. <span class="staffBoxtext">{{GreenStaff2.postName}}</span>
  66. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/Green.jpeg" alt=""></div>
  67. <div class="xialawz">
  68. <el-select v-model="GreenStaff2.postName" placeholder="请选择" size="mini">
  69. <el-option
  70. v-for="item in GreenOptionalPost"
  71. :key="item.value"
  72. :label="item.name"
  73. :value="item.id">
  74. </el-option>
  75. </el-select>
  76. </div>
  77. </div>
  78. </div>
  79. <!--褐色-->
  80. <div class="staffBox">
  81. <div class="staffBoxren">
  82. <span class="staffBoxtext">{{BrownStaff.postName}}</span>
  83. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/Brown.jpeg" alt=""></div>
  84. <div class="xialawz">
  85. <el-select v-model="BrownStaff.postName" placeholder="请选择" size="mini">
  86. <el-option
  87. v-for="item in BrownOptionalPost"
  88. :key="item.value"
  89. :label="item.name"
  90. :value="item.id">
  91. </el-option>
  92. </el-select>
  93. </div>
  94. </div>
  95. </div>
  96. <!--蓝色-->
  97. <div class="staffBox staffBoxflex">
  98. <div class="staffBoxren">
  99. <span class="staffBoxtext">{{BlueStaff1.postName}}</span>
  100. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/Blue.jpeg" alt=""></div>
  101. <div class="xialawz">
  102. <el-select v-model="BlueStaff1.postName" placeholder="请选择" size="mini">
  103. <el-option
  104. v-for="item in BlueOptionalPost"
  105. :key="item.value"
  106. :label="item.name"
  107. :value="item.id">
  108. </el-option>
  109. </el-select>
  110. </div>
  111. </div>
  112. <div class="staffBoxren">
  113. <span class="staffBoxtext">{{BlueStaff2.postName}}</span>
  114. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/Blue.jpeg" alt=""></div>
  115. <div class="xialawz">
  116. <el-select v-model="BlueStaff2.postName" placeholder="请选择" size="mini">
  117. <el-option
  118. v-for="item in BlueOptionalPost"
  119. :key="item.value"
  120. :label="item.name"
  121. :value="item.id">
  122. </el-option>
  123. </el-select>
  124. </div>
  125. </div>
  126. </div>
  127. <!--紫色-->
  128. <div class="staffBox staffBoxflex">
  129. <div class="staffBoxren">
  130. <span class="staffBoxtext">{{PurpleStaff1.postName}}</span>
  131. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/Purple.jpeg" alt=""></div>
  132. <div class="xialawz">
  133. <el-select v-model="PurpleStaff1.postName" placeholder="请选择" size="mini">
  134. <el-option
  135. v-for="item in PurpleOptionalPost"
  136. :key="item.value"
  137. :label="item.name"
  138. :value="item.id">
  139. </el-option>
  140. </el-select>
  141. </div>
  142. </div>
  143. <div class="staffBoxren">
  144. <span class="staffBoxtext">{{PurpleStaff2.postName}}</span>
  145. <div class="staffBox-img"><img style="width: 100%;" src="../../assets/produceImg/Purple.jpeg" alt=""></div>
  146. <div class="xialawz">
  147. <el-select v-model="PurpleStaff2.postName" placeholder="请选择" size="mini">
  148. <el-option
  149. v-for="item in PurpleOptionalPost"
  150. :key="item.value"
  151. :label="item.name"
  152. :value="item.id">
  153. </el-option>
  154. </el-select>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <!--倍速播放-->
  160. <div class="MultiplyPlaybackBox">
  161. <div class="speedbox" @click="jiakuai">+</div>
  162. <div style="font-size: 14px">速度{{DoubleSpeed}}</div>
  163. <div class="speedbox" @click="jianman">-</div>
  164. </div>
  165. <!--开始-->
  166. <div class="StartButton"
  167. :style="timerType?'background: #e5b972':'background: #4b6767'"
  168. @click="StartButtonfun">{{timerType?'暂停':'开始'}}</div>
  169. </div>
  170. <!--右边的-->
  171. <div class="rightbox">
  172. <div class="flowChartBox">
  173. <!--卖出-->
  174. <div class="PositionlineBox">
  175. <div class="postBox" style="background: #dfa056">
  176. <div class="postBoxLeft">
  177. <div>tu</div>
  178. <div>P1</div>
  179. </div>
  180. <div class="postBoxRight">
  181. <div>需求:{{demand1.TotalProduction}}</div>
  182. <div>交付:{{demand1.produced}}</div>
  183. </div>
  184. </div>
  185. <div class="postBox"></div>
  186. <div class="postBox"></div>
  187. <div class="postBox" style="background: #dfa056">
  188. <div class="postBoxLeft">
  189. <div>tu</div>
  190. <div>P2</div>
  191. </div>
  192. <div class="postBoxRight">
  193. <div>需求:{{demand2.TotalProduction}}</div>
  194. <div>交付:{{demand2.produced}}</div>
  195. </div>
  196. </div>
  197. <div class="postBox"></div>
  198. <div class="postBox" style="background: #dfa056">
  199. <div class="postBoxLeft">
  200. <div>tu</div>
  201. <div>P3</div>
  202. </div>
  203. <div class="postBoxRight">
  204. <div>需求:{{demand3.TotalProduction}}</div>
  205. <div>交付:{{demand3.produced}}</div>
  206. </div>
  207. </div>
  208. </div>
  209. <!--9行-->
  210. <div class="PositionlineBox">
  211. <div class="stationBox">
  212. <div class="PositionInventory">
  213. <div>图表</div>
  214. <div>库存:{{A9Obj.inventory}}</div>
  215. </div>
  216. <div class="JobInformation" :style="'background:'+ A9Obj.color">
  217. <div class="JobInformation-left">
  218. <div class="postTitle">A9</div>
  219. <div class="limit" @click="xianchanfun('A9')">限</div>
  220. </div>
  221. <div class="JobInformation-right">
  222. <div>生产:{{A9Obj.date}}分</div>
  223. <div>准备:{{A9Obj.PreparationTime}}分</div>
  224. <div>限产:{{A9Obj.ProductionRestriction?A9Obj.LimitedProductionQuantity:'无限'}}分</div>
  225. </div>
  226. </div>
  227. </div>
  228. <div class="stationBox"></div>
  229. <div class="stationBox"></div>
  230. <div class="stationBox">
  231. <div class="PositionInventory">
  232. <div>图表</div>
  233. <div>库存:{{D9Obj.inventory}}</div>
  234. </div>
  235. <div class="JobInformation" :style="'background:'+ D9Obj.color">
  236. <div class="JobInformation-left">
  237. <div class="postTitle">D9</div>
  238. <div class="limit" @click="xianchanfun('D9')">限</div>
  239. </div>
  240. <div class="JobInformation-right">
  241. <div>生产:{{D9Obj.date}}分</div>
  242. <div>准备:{{D9Obj.PreparationTime}}分</div>
  243. <div>限产:{{D9Obj.ProductionRestriction?D9Obj.LimitedProductionQuantity:'无限'}}分</div>
  244. </div>
  245. </div>
  246. </div>
  247. <div class="stationBox"></div>
  248. <div class="stationBox">
  249. <div class="PositionInventory">
  250. <div>图表</div>
  251. <div>库存:{{F9Obj.inventory}}</div>
  252. </div>
  253. <div class="JobInformation" :style="'background:'+ F9Obj.color">
  254. <div class="JobInformation-left">
  255. <div class="postTitle">F9</div>
  256. <div class="limit" @click="xianchanfun('F9')">限</div>
  257. </div>
  258. <div class="JobInformation-right">
  259. <div>生产:{{F9Obj.date}}分</div>
  260. <div>准备:{{F9Obj.PreparationTime}}分</div>
  261. <div>限产:{{F9Obj.ProductionRestriction?F9Obj.LimitedProductionQuantity:'无限'}}分</div>
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. <!--7行-->
  267. <div class="PositionlineBox">
  268. <div class="stationBox">
  269. <div class="PositionInventory">
  270. <div>图表</div>
  271. <div>库存:{{A7Obj.inventory}}</div>
  272. </div>
  273. <div class="JobInformation" :style="'background:'+ A7Obj.color">
  274. <div class="JobInformation-left">
  275. <div class="postTitle">A7</div>
  276. <div class="limit" @click="xianchanfun('A7')">限</div>
  277. </div>
  278. <div class="JobInformation-right">
  279. <div>生产:{{A7Obj.date}}分</div>
  280. <div>准备:{{A7Obj.PreparationTime}}分</div>
  281. <div>限产:{{A7Obj.ProductionRestriction?A7Obj.LimitedProductionQuantity:'无限'}}分</div>
  282. </div>
  283. </div>
  284. </div>
  285. <div class="stationBox"></div>
  286. <div class="stationBox"></div>
  287. <div class="stationBox">
  288. <div class="PositionInventory">
  289. <div>图表</div>
  290. <div>库存:{{D7Obj.inventory}}</div>
  291. </div>
  292. <div class="JobInformation" :style="'background:'+ D7Obj.color">
  293. <div class="JobInformation-left">
  294. <div class="postTitle">D7</div>
  295. <div class="limit" @click="xianchanfun('D7')">限</div>
  296. </div>
  297. <div class="JobInformation-right">
  298. <div>生产:{{D7Obj.date}}分</div>
  299. <div>准备:{{D7Obj.PreparationTime}}分</div>
  300. <div>限产:{{D7Obj.ProductionRestriction?D7Obj.LimitedProductionQuantity:'无限'}}分</div>
  301. </div>
  302. </div>
  303. </div>
  304. <div class="stationBox"></div>
  305. <div class="stationBox">
  306. <div class="PositionInventory">
  307. <div>图表</div>
  308. <div>库存:{{F7Obj.inventory}}</div>
  309. </div>
  310. <div class="JobInformation" :style="'background:'+ F7Obj.color">
  311. <div class="JobInformation-left">
  312. <div class="postTitle">F7</div>
  313. <div class="limit" @click="xianchanfun('F7')">限</div>
  314. </div>
  315. <div class="JobInformation-right">
  316. <div>生产:{{F7Obj.date}}分</div>
  317. <div>准备:{{F7Obj.PreparationTime}}分</div>
  318. <div>限产:{{F7Obj.ProductionRestriction?F7Obj.LimitedProductionQuantity:'无限'}}分</div>
  319. </div>
  320. </div>
  321. </div>
  322. </div>
  323. <!--6行-->
  324. <div class="PositionlineBox">
  325. <div class="stationBox">
  326. <div class="PositionInventory">
  327. <div>图表</div>
  328. <div>库存:{{A6Obj.inventory}}</div>
  329. </div>
  330. <div class="JobInformation" :style="'background:'+ A6Obj.color">
  331. <div class="JobInformation-left">
  332. <div class="postTitle">A6</div>
  333. <div class="limit" @click="xianchanfun('A6')">限</div>
  334. </div>
  335. <div class="JobInformation-right">
  336. <div>生产:{{A6Obj.date}}分</div>
  337. <div>准备:{{A6Obj.PreparationTime}}分</div>
  338. <div>限产:{{A6Obj.ProductionRestriction?A6Obj.LimitedProductionQuantity:'无限'}}分</div>
  339. </div>
  340. </div>
  341. </div>
  342. <div class="stationBox"></div>
  343. <div class="stationBox">
  344. <!--<div id="sizeid" style="width: 100%;">-->
  345. <!-- <canvas id="canvasIdC6"></canvas>-->
  346. <!--</div>-->
  347. </div>
  348. <div class="stationBox"></div>
  349. <div class="stationBox"></div>
  350. <div class="stationBox"></div>
  351. </div>
  352. <!--5行-->
  353. <div class="PositionlineBox">
  354. <div class="stationBox">
  355. <div class="PositionInventory">
  356. <div>图表</div>
  357. <div>库存:{{A5Obj.inventory}}</div>
  358. </div>
  359. <div class="JobInformation" :style="'background:'+ A5Obj.color">
  360. <div class="JobInformation-left">
  361. <div class="postTitle">A5</div>
  362. <div class="limit" @click="xianchanfun('A5')">限</div>
  363. </div>
  364. <div class="JobInformation-right">
  365. <div>生产:{{A5Obj.date}}分</div>
  366. <div>准备:{{A5Obj.PreparationTime}}分</div>
  367. <div>限产:{{A5Obj.ProductionRestriction?A5Obj.LimitedProductionQuantity:'无限'}}分</div>
  368. </div>
  369. </div>
  370. </div>
  371. <div class="stationBox"></div>
  372. <div class="stationBox">
  373. <div class="PositionInventory">
  374. <div>图表</div>
  375. <div>库存:{{C5Obj.inventory}}</div>
  376. </div>
  377. <div class="JobInformation" :style="'background:'+ C5Obj.color">
  378. <div class="JobInformation-left">
  379. <div class="postTitle">C5</div>
  380. <div class="limit" @click="xianchanfun('C5')">限</div>
  381. </div>
  382. <div class="JobInformation-right">
  383. <div>生产:{{C5Obj.date}}分</div>
  384. <div>准备:{{C5Obj.PreparationTime}}分</div>
  385. <div>限产:{{C5Obj.ProductionRestriction?C5Obj.LimitedProductionQuantity:'无限'}}分</div>
  386. </div>
  387. </div>
  388. </div>
  389. <div class="stationBox"></div>
  390. <div class="stationBox">
  391. <div class="PositionInventory">
  392. <div>图表</div>
  393. <div>库存:{{E5Obj.inventory}}</div>
  394. </div>
  395. <div class="JobInformation" :style="'background:'+ E5Obj.color">
  396. <div class="JobInformation-left">
  397. <div class="postTitle">E5</div>
  398. <div class="limit" @click="xianchanfun('E5')">限</div>
  399. </div>
  400. <div class="JobInformation-right">
  401. <div>生产:{{E5Obj.date}}分</div>
  402. <div>准备:{{E5Obj.PreparationTime}}分</div>
  403. <div>限产:{{E5Obj.ProductionRestriction?E5Obj.LimitedProductionQuantity:'无限'}}分</div>
  404. </div>
  405. </div>
  406. </div>
  407. <div class="stationBox">
  408. <div class="PositionInventory">
  409. <div>图表</div>
  410. <div>库存:{{F5Obj.inventory}}</div>
  411. </div>
  412. <div class="JobInformation" :style="'background:'+ F5Obj.color">
  413. <div class="JobInformation-left">
  414. <div class="postTitle">F5</div>
  415. <div class="limit" @click="xianchanfun('F5')">限</div>
  416. </div>
  417. <div class="JobInformation-right">
  418. <div>生产:{{F5Obj.date}}分</div>
  419. <div>准备:{{F5Obj.PreparationTime}}分</div>
  420. <div>限产:{{F5Obj.ProductionRestriction?F5Obj.LimitedProductionQuantity:'无限'}}分</div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. <!--4行-->
  426. <div class="PositionlineBox">
  427. <div class="stationBox">
  428. <div style="height: 60px;width: 150px"></div>
  429. </div>
  430. <div class="stationBox"></div>
  431. <div class="stationBox"></div>
  432. <div class="stationBox"></div>
  433. <div class="stationBox"></div>
  434. <div class="stationBox"></div>
  435. </div>
  436. <!--3行-->
  437. <div class="PositionlineBox">
  438. <div class="stationBox"></div>
  439. <div class="stationBox">
  440. <div class="PositionInventory">
  441. <div>图表</div>
  442. <div>库存:{{B3Obj.inventory}}</div>
  443. </div>
  444. <div class="JobInformation" :style="'background:'+ B3Obj.color">
  445. <div class="JobInformation-left">
  446. <div class="postTitle">B3</div>
  447. <div class="limit" @click="xianchanfun('B3')">限</div>
  448. </div>
  449. <div class="JobInformation-right">
  450. <div>生产:{{B3Obj.date}}分</div>
  451. <div>准备:{{B3Obj.PreparationTime}}分</div>
  452. <div>限产:{{B3Obj.ProductionRestriction?B3Obj.LimitedProductionQuantity:'无限'}}分</div>
  453. </div>
  454. </div>
  455. </div>
  456. <div class="stationBox"></div>
  457. <div class="stationBox"></div>
  458. <div class="stationBox"></div>
  459. <div class="stationBox">
  460. <div class="PositionInventory">
  461. <div>图表</div>
  462. <div>库存:{{F3Obj.inventory}}</div>
  463. </div>
  464. <div class="JobInformation" :style="'background:'+ F3Obj.color">
  465. <div class="JobInformation-left">
  466. <div class="postTitle">F3</div>
  467. <div class="limit" @click="xianchanfun('F3')">限</div>
  468. </div>
  469. <div class="JobInformation-right">
  470. <div>生产:{{F3Obj.date}}分</div>
  471. <div>准备:{{F3Obj.PreparationTime}}分</div>
  472. <div>限产:{{F3Obj.ProductionRestriction?F3Obj.LimitedProductionQuantity:'无限'}}分</div>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. <!--2行-->
  478. <div class="PositionlineBox">
  479. <div class="stationBox"></div>
  480. <div class="stationBox"></div>
  481. <div class="stationBox"></div>
  482. <div class="stationBox"></div>
  483. <div class="stationBox">
  484. <div class="PositionInventory">
  485. <div>图表</div>
  486. <div>库存:{{E2Obj.inventory}}</div>
  487. </div>
  488. <div class="JobInformation" :style="'background:'+ E2Obj.color">
  489. <div class="JobInformation-left">
  490. <div class="postTitle">E2</div>
  491. <div class="limit" @click="xianchanfun('E2')">限</div>
  492. </div>
  493. <div class="JobInformation-right">
  494. <div>生产:{{E2Obj.date}}分</div>
  495. <div>准备:{{E2Obj.PreparationTime}}分</div>
  496. <div>限产:{{E2Obj.ProductionRestriction?E2Obj.LimitedProductionQuantity:'无限'}}分</div>
  497. </div>
  498. </div>
  499. </div>
  500. <div class="stationBox">
  501. <div class="PositionInventory">
  502. <div>图表</div>
  503. <div>库存:{{F2Obj.inventory}}</div>
  504. </div>
  505. <div class="JobInformation" :style="'background:'+ F2Obj.color">
  506. <div class="JobInformation-left">
  507. <div class="postTitle">F2</div>
  508. <div class="limit" @click="xianchanfun('F2')">限</div>
  509. </div>
  510. <div class="JobInformation-right">
  511. <div>生产:{{F2Obj.date}}分</div>
  512. <div>准备:{{F2Obj.PreparationTime}}分</div>
  513. <div>限产:{{F2Obj.ProductionRestriction?F2Obj.LimitedProductionQuantity:'无限'}}分</div>
  514. </div>
  515. </div>
  516. </div>
  517. </div>
  518. <!--1行-->
  519. <div class="PositionlineBox">
  520. <div class="stationBox">
  521. <div class="PositionInventory">
  522. <div>图表</div>
  523. <div>库存:{{A1Obj.inventory}}</div>
  524. </div>
  525. <div class="JobInformation" :style="'background:'+ A1Obj.color">
  526. <div class="JobInformation-left">
  527. <div class="postTitle">A1</div>
  528. <div class="limit" @click="xianchanfun('A1')">限</div>
  529. </div>
  530. <div class="JobInformation-right">
  531. <div>生产:{{A1Obj.date}}分</div>
  532. <div>准备:{{A1Obj.PreparationTime}}分</div>
  533. <div>限产:{{A1Obj.ProductionRestriction?A1Obj.LimitedProductionQuantity:'无限'}}</div>
  534. </div>
  535. </div>
  536. </div>
  537. <div class="stationBox"></div>
  538. <div class="stationBox">
  539. <div class="PositionInventory">
  540. <div>图表</div>
  541. <div>库存:{{C1Obj.inventory}}</div>
  542. </div>
  543. <div class="JobInformation" :style="'background:'+ C1Obj.color">
  544. <div class="JobInformation-left">
  545. <div class="postTitle">C1</div>
  546. <div class="limit" @click="xianchanfun('C1')">限</div>
  547. </div>
  548. <div class="JobInformation-right">
  549. <div>生产:{{C1Obj.date}}分</div>
  550. <div>准备:{{C1Obj.PreparationTime}}分</div>
  551. <div>限产:{{C1Obj.ProductionRestriction?C1Obj.LimitedProductionQuantity:'无限'}}</div>
  552. </div>
  553. </div>
  554. </div>
  555. <div class="stationBox"></div>
  556. <div class="stationBox">
  557. <div class="PositionInventory">
  558. <div>图表</div>
  559. <div>库存:{{E1Obj.inventory}}</div>
  560. </div>
  561. <div class="JobInformation" :style="'background:'+ E1Obj.color">
  562. <div class="JobInformation-left">
  563. <div class="postTitle">E1</div>
  564. <div class="limit" @click="xianchanfun('E1')">限</div>
  565. </div>
  566. <div class="JobInformation-right">
  567. <div>生产:{{E1Obj.date}}分</div>
  568. <div>准备:{{E1Obj.PreparationTime}}分</div>
  569. <div>限产:{{E1Obj.ProductionRestriction?E1Obj.LimitedProductionQuantity:'无限'}}</div>
  570. </div>
  571. </div>
  572. </div>
  573. <div class="stationBox">
  574. <div class="PositionInventory">
  575. <div>图表</div>
  576. <div>库存:{{F1Obj.inventory}}</div>
  577. </div>
  578. <div class="JobInformation" :style="'background:'+ F1Obj.color">
  579. <div class="JobInformation-left">
  580. <div class="postTitle">F1</div>
  581. <div class="limit" @click="xianchanfun('F1')">限</div>
  582. </div>
  583. <div class="JobInformation-right">
  584. <div>生产:{{F1Obj.date}}分</div>
  585. <div>准备:{{F1Obj.PreparationTime}}分</div>
  586. <div>限产:{{F1Obj.ProductionRestriction?F1Obj.LimitedProductionQuantity:'无限'}}</div>
  587. </div>
  588. </div>
  589. </div>
  590. </div>
  591. <!--原材料-->
  592. <div class="rawmaterialBox">
  593. <div class="procurebox" style="border: 1px solid #bfbfbf;" @click="rawMaterialTruefun('A1')">
  594. <div class="procureboxIocn">图表</div>
  595. <span>R1采购:{{A1Obj.RawMaterialNumber}}</span>
  596. </div>
  597. <div class="procurebox"></div>
  598. <div class="procurebox" style="border: 1px solid #bfbfbf;" @click="rawMaterialTruefun('C1')">
  599. <div class="procureboxIocn">图表</div>
  600. <span>R2采购:{{C1Obj.RawMaterialNumber}}</span>
  601. </div>
  602. <div class="procurebox"></div>
  603. <div class="procurebox" style="border: 1px solid #bfbfbf;" @click="rawMaterialTruefun('E1')">
  604. <div class="procureboxIocn">图表</div>
  605. <span>R3采购:{{E1Obj.RawMaterialNumber}}</span>
  606. </div>
  607. <div class="procurebox" style="border: 1px solid #bfbfbf;" @click="rawMaterialTruefun('F1')">
  608. <div class="procureboxIocn">图表</div>
  609. <span>R4采购:{{F1Obj.RawMaterialNumber}}</span>
  610. </div>
  611. </div>
  612. </div>
  613. </div>
  614. </div>
  615. <div>
  616. <!--<div style="position: fixed;bottom: 20%">-->
  617. <!-- <div @click="kaishi">开始</div>-->
  618. <!-- <div @click="stopfun">暂停</div>-->
  619. <!-- <div @click="jiakuai">时间倍速加快{{DoubleSpeed}}</div>-->
  620. <!-- <div @click="jianman">时间倍速减{{DoubleSpeed}}</div>-->
  621. <!-- <div>{{formatdate}}</div>-->
  622. <!-- <div>当前天数{{CurrentDays}}</div>-->
  623. <!-- <div>在跑时间:{{totalTime}}</div>-->
  624. <!-- <div>花费原材料的钱{{rawMaterialSpendCash}}</div>-->
  625. <!-- <div>现金:{{TotalMoney}}</div>-->
  626. <!--</div>-->
  627. <!--<div style="display: flex;width: 90%;margin: 0 auto">-->
  628. <!-- <div class="leftbox">-->
  629. <!-- <div style="width: 50px;height: 50px;background: blue;color: #fff">-->
  630. <!-- <SelectOption :OptionalPost="DarkBlueOptionalPost" @DropDownfun="DropDownfun($event,'深蓝色')">-->
  631. <!-- {{DarkBlueStaff.postName}}-->
  632. <!-- </SelectOption>-->
  633. <!-- <div>{{EmployeeStatusfun(DarkBlueStaff.currentState)}}</div>-->
  634. <!-- </div>-->
  635. <!-- <div style="display: flex;">-->
  636. <!-- <div style="width: 50px;height: 50px;background: #7efc26;color: #000">-->
  637. <!-- <SelectOption :OptionalPost="GreenOptionalPost" @DropDownfun="DropDownfun($event,'绿色',GreenStaff2,GreenStaff1)">-->
  638. <!-- {{GreenStaff1.postName}}-->
  639. <!-- </SelectOption>-->
  640. <!-- <div>{{EmployeeStatusfun(GreenStaff1.currentState)}}</div>-->
  641. <!-- </div>-->
  642. <!-- <div style="width: 50px;height: 50px;background: #7efc26;color: #000">-->
  643. <!-- <SelectOption :OptionalPost="GreenOptionalPost" @DropDownfun="DropDownfun($event,'绿色',GreenStaff1,GreenStaff2)">-->
  644. <!-- {{GreenStaff2.postName}}-->
  645. <!-- </SelectOption>-->
  646. <!-- <div>{{EmployeeStatusfun(GreenStaff2.currentState)}}</div>-->
  647. <!-- </div>-->
  648. <!-- </div>-->
  649. <!-- <div style="width: 50px;height: 50px;background: #a87718;color: #000">-->
  650. <!-- <SelectOption :OptionalPost="BrownOptionalPost" @DropDownfun="DropDownfun($event,'褐色')">-->
  651. <!-- {{BrownStaff.postName}}-->
  652. <!-- </SelectOption>-->
  653. <!-- <div>{{EmployeeStatusfun(BrownStaff.currentState)}}</div>-->
  654. <!-- </div>-->
  655. <!-- <div style="display: flex">-->
  656. <!-- <div style="width: 50px;height: 50px;background: #7efefe;color: #000">-->
  657. <!-- <SelectOption :OptionalPost="BlueOptionalPost" @DropDownfun="DropDownfun($event,'蓝色',BlueStaff2,BlueStaff1)">-->
  658. <!-- {{BlueStaff1.postName}}-->
  659. <!-- </SelectOption>-->
  660. <!-- <div>{{EmployeeStatusfun(BlueStaff1.currentState)}}</div>-->
  661. <!-- </div>-->
  662. <!-- <div style="width: 50px;height: 50px;background: #7efefe;color: #000">-->
  663. <!-- <SelectOption :OptionalPost="BlueOptionalPost" @DropDownfun="DropDownfun($event,'蓝色',BlueStaff1,BlueStaff2)">-->
  664. <!-- {{BlueStaff2.postName}}-->
  665. <!-- </SelectOption>-->
  666. <!-- <div>{{EmployeeStatusfun(BlueStaff2.currentState)}}</div>-->
  667. <!-- </div>-->
  668. <!-- </div>-->
  669. <!-- <div style="display: flex">-->
  670. <!-- <div style="width: 50px;height: 50px;background: #dc23fc;color: #000">-->
  671. <!-- <SelectOption :OptionalPost="PurpleOptionalPost" @DropDownfun="DropDownfun($event,'紫色',PurpleStaff2,PurpleStaff1)">-->
  672. <!-- {{PurpleStaff1.postName}}-->
  673. <!-- </SelectOption>-->
  674. <!-- <div>{{EmployeeStatusfun(PurpleStaff1.currentState)}}</div>-->
  675. <!-- </div>-->
  676. <!-- <div style="width: 50px;height: 50px;background: #dc23fc;color: #000">-->
  677. <!-- <SelectOption :OptionalPost="PurpleOptionalPost" @DropDownfun="DropDownfun($event,'紫色',PurpleStaff1,PurpleStaff2)">-->
  678. <!-- {{PurpleStaff2.postName}}-->
  679. <!-- </SelectOption>-->
  680. <!-- <div>{{EmployeeStatusfun(PurpleStaff2.currentState)}}</div>-->
  681. <!-- </div>-->
  682. <!-- </div>-->
  683. <!-- </div>-->
  684. <!-- <div class="rightbox">-->
  685. <!-- &lt;!&ndash;10&ndash;&gt;-->
  686. <!-- <el-row type="flex" justify="center">-->
  687. <!-- <el-col :span="1"><div style="display: flex;align-items: center;">需求</div></el-col>-->
  688. <!-- <el-col :span="3">-->
  689. <!-- <div>需要数量{{demand1.TotalProduction}}</div>-->
  690. <!-- <div>生产数量{{demand1.produced}}</div>-->
  691. <!-- </el-col>-->
  692. <!-- <el-col :span="3"></el-col>-->
  693. <!-- <el-col :span="3"></el-col>-->
  694. <!-- <el-col :span="3">-->
  695. <!-- <div>需要数量{{demand2.TotalProduction}}</div>-->
  696. <!-- <div>生产数量{{demand2.produced}}</div>-->
  697. <!-- </el-col>-->
  698. <!-- <el-col :span="3"></el-col>-->
  699. <!-- <el-col :span="3">-->
  700. <!-- <div>需要数量{{demand3.TotalProduction}}</div>-->
  701. <!-- <div>生产数量{{demand3.produced}}</div>-->
  702. <!-- </el-col>-->
  703. <!-- </el-row>-->
  704. <!-- &lt;!&ndash;9&ndash;&gt;-->
  705. <!-- <el-row type="flex" justify="center">-->
  706. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%">9</div></el-col>-->
  707. <!-- <el-col :span="3">-->
  708. <!-- <div class="xiaohezi" :style="'background:'+ A9Obj.color" @click="xianchanfun('A9')">-->
  709. <!-- <div>A9</div>-->
  710. <!-- <div>是否限产{{A9Obj.ProductionRestriction}}</div>-->
  711. <!-- <div>限产数量{{A9Obj.LimitedProductionQuantity}}</div>-->
  712. <!-- <div>库存{{A9Obj.inventory}}</div>-->
  713. <!-- <div>生产时间{{A9Obj.date}}</div>-->
  714. <!-- <div>卖出的价格{{A9Obj.SellingPrice}}</div>-->
  715. <!-- <div>准备时间{{A9Obj.PreparationTime}}</div>-->
  716. <!-- <div>在跑时间{{A9Obj.RunningTime}}</div>-->
  717. <!-- <div>单价{{A9Obj.unitPrice}}</div>-->
  718. <!-- </div>-->
  719. <!-- </el-col>-->
  720. <!-- <el-col :span="3"></el-col>-->
  721. <!-- <el-col :span="3"></el-col>-->
  722. <!-- <el-col :span="3">-->
  723. <!-- <div class="xiaohezi" :style="'background:'+ D9Obj.color" @click="xianchanfun('D9')">-->
  724. <!-- <div>D9</div>-->
  725. <!-- <div>是否限产{{D9Obj.ProductionRestriction}}</div>-->
  726. <!-- <div>限产数量{{D9Obj.LimitedProductionQuantity}}</div>-->
  727. <!-- <div>库存{{D9Obj.inventory}}</div>-->
  728. <!-- <div>生产时间{{D9Obj.date}}</div>-->
  729. <!-- <div>卖出的价格{{D9Obj.SellingPrice}}</div>-->
  730. <!-- <div>准备时间{{D9Obj.PreparationTime}}</div>-->
  731. <!-- <div>在跑时间{{D9Obj.RunningTime}}</div>-->
  732. <!-- <div>单价{{D9Obj.unitPrice}}</div>-->
  733. <!-- </div>-->
  734. <!-- </el-col>-->
  735. <!-- <el-col :span="3"></el-col>-->
  736. <!-- <el-col :span="3">-->
  737. <!-- <div class="xiaohezi" :style="'background:'+ F9Obj.color" @click="xianchanfun('F9')">-->
  738. <!-- <div>F9</div>-->
  739. <!-- <div>是否限产{{F9Obj.ProductionRestriction}}</div>-->
  740. <!-- <div>限产数量{{F9Obj.LimitedProductionQuantity}}</div>-->
  741. <!-- <div>库存{{F9Obj.inventory}}</div>-->
  742. <!-- <div>生产时间{{F9Obj.date}}</div>-->
  743. <!-- <div>卖出的价格{{F9Obj.SellingPrice}}</div>-->
  744. <!-- <div>准备时间{{F9Obj.PreparationTime}}</div>-->
  745. <!-- <div>在跑时间{{F9Obj.RunningTime}}</div>-->
  746. <!-- <div>单价{{F9Obj.unitPrice}}</div>-->
  747. <!-- </div>-->
  748. <!-- </el-col>-->
  749. <!-- </el-row>-->
  750. <!-- &lt;!&ndash;8&ndash;&gt;-->
  751. <!-- <el-row type="flex" justify="center">-->
  752. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%;min-height: 60px;">8</div></el-col>-->
  753. <!-- <el-col :span="3">-->
  754. <!-- <div id="sizeid" style="width: 100%;">-->
  755. <!-- <canvas id="canvasIdA8"></canvas>-->
  756. <!-- </div>-->
  757. <!-- </el-col>-->
  758. <!-- <el-col :span="3"></el-col>-->
  759. <!-- <el-col :span="3"></el-col>-->
  760. <!-- <el-col :span="3">-->
  761. <!-- <div id="sizeid" style="width: 100%;">-->
  762. <!-- <canvas id="canvasIdD8"></canvas>-->
  763. <!-- </div>-->
  764. <!-- </el-col>-->
  765. <!-- <el-col :span="3"></el-col>-->
  766. <!-- <el-col :span="3">-->
  767. <!-- <div id="sizeid" style="width: 100%;">-->
  768. <!-- <canvas id="canvasIdF8"></canvas>-->
  769. <!-- </div>-->
  770. <!-- </el-col>-->
  771. <!-- </el-row>-->
  772. <!-- &lt;!&ndash;7&ndash;&gt;-->
  773. <!-- <el-row type="flex" justify="center">-->
  774. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%">7</div></el-col>-->
  775. <!-- <el-col :span="3">-->
  776. <!-- <div class="xiaohezi" :style="'background:'+ A7Obj.color" @click="xianchanfun('A7')">-->
  777. <!-- <div>A7</div>-->
  778. <!-- <div>是否限产{{A7Obj.ProductionRestriction}}</div>-->
  779. <!-- <div>限产数量{{A7Obj.LimitedProductionQuantity}}</div>-->
  780. <!-- <div>库存{{A7Obj.inventory}}</div>-->
  781. <!-- <div>生产时间{{A7Obj.date}}</div>-->
  782. <!-- <div>准备时间{{A7Obj.PreparationTime}}</div>-->
  783. <!-- <div>在跑时间{{A7Obj.RunningTime}}</div>-->
  784. <!-- <div>单价{{A7Obj.unitPrice}}</div>-->
  785. <!-- </div>-->
  786. <!-- </el-col>-->
  787. <!-- <el-col :span="3"></el-col>-->
  788. <!-- <el-col :span="3"></el-col>-->
  789. <!-- <el-col :span="3">-->
  790. <!-- <div class="xiaohezi" :style="'background:'+ D7Obj.color" @click="xianchanfun('D7')">-->
  791. <!-- <div>D7</div>-->
  792. <!-- <div>是否限产{{D7Obj.ProductionRestriction}}</div>-->
  793. <!-- <div>限产数量{{D7Obj.LimitedProductionQuantity}}</div>-->
  794. <!-- <div>库存{{D7Obj.inventory}}</div>-->
  795. <!-- <div>生产时间{{D7Obj.date}}</div>-->
  796. <!-- <div>准备时间{{D7Obj.PreparationTime}}</div>-->
  797. <!-- <div>在跑时间{{D7Obj.RunningTime}}</div>-->
  798. <!-- <div>单价{{D7Obj.unitPrice}}</div>-->
  799. <!-- </div>-->
  800. <!-- </el-col>-->
  801. <!-- <el-col :span="3"></el-col>-->
  802. <!-- <el-col :span="3">-->
  803. <!-- <div class="xiaohezi" :style="'background:'+ F7Obj.color" @click="xianchanfun('F7')">-->
  804. <!-- <div>F7</div>-->
  805. <!-- <div>是否限产{{F7Obj.ProductionRestriction}}</div>-->
  806. <!-- <div>限产数量{{F7Obj.LimitedProductionQuantity}}</div>-->
  807. <!-- <div>库存{{F7Obj.inventory}}</div>-->
  808. <!-- <div>生产时间{{F7Obj.date}}</div>-->
  809. <!-- <div>准备时间{{F7Obj.PreparationTime}}</div>-->
  810. <!-- <div>在跑时间{{F7Obj.RunningTime}}</div>-->
  811. <!-- <div>单价{{F7Obj.unitPrice}}</div>-->
  812. <!-- </div>-->
  813. <!-- </el-col>-->
  814. <!-- </el-row>-->
  815. <!-- &lt;!&ndash;6&ndash;&gt;-->
  816. <!-- <el-row type="flex" justify="center">-->
  817. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%">6</div></el-col>-->
  818. <!-- <el-col :span="3">-->
  819. <!-- <div class="xiaohezi" :style="'background:'+ A6Obj.color" @click="xianchanfun('A6')">-->
  820. <!-- <div>A6</div>-->
  821. <!-- <div>是否限产{{A6Obj.ProductionRestriction}}</div>-->
  822. <!-- <div>限产数量{{A6Obj.LimitedProductionQuantity}}</div>-->
  823. <!-- <div>库存{{A6Obj.inventory}}</div>-->
  824. <!-- <div>生产时间{{A6Obj.date}}</div>-->
  825. <!-- <div>准备时间{{A6Obj.PreparationTime}}</div>-->
  826. <!-- <div>在跑时间{{A6Obj.RunningTime}}</div>-->
  827. <!-- <div>单价{{A6Obj.unitPrice}}</div>-->
  828. <!-- </div>-->
  829. <!-- </el-col>-->
  830. <!-- <el-col :span="3"></el-col>-->
  831. <!-- <el-col :span="3">-->
  832. <!-- <div id="sizeid" style="width: 100%;">-->
  833. <!-- <canvas id="canvasIdC6"></canvas>-->
  834. <!-- </div>-->
  835. <!-- </el-col>-->
  836. <!-- <el-col :span="3"></el-col>-->
  837. <!-- <el-col :span="3">-->
  838. <!-- <div id="sizeid" style="width: 100%;">-->
  839. <!-- <canvas id="canvasIdE6"></canvas>-->
  840. <!-- </div>-->
  841. <!-- </el-col>-->
  842. <!-- <el-col :span="3">-->
  843. <!-- <div id="sizeid" style="width: 100%;">-->
  844. <!-- <canvas id="canvasIdF6"></canvas>-->
  845. <!-- </div>-->
  846. <!-- </el-col>-->
  847. <!-- </el-row>-->
  848. <!-- &lt;!&ndash;5&ndash;&gt;-->
  849. <!-- <el-row type="flex" justify="center">-->
  850. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%">5</div></el-col>-->
  851. <!-- <el-col :span="3">-->
  852. <!-- <div class="xiaohezi" :style="'background:'+ A5Obj.color" @click="xianchanfun('A5')">-->
  853. <!-- <div>A5</div>-->
  854. <!-- <div>是否限产{{A5Obj.ProductionRestriction}}</div>-->
  855. <!-- <div>限产数量{{A5Obj.LimitedProductionQuantity}}</div>-->
  856. <!-- <div>库存{{A5Obj.inventory}}</div>-->
  857. <!-- <div>生产时间{{A5Obj.date}}</div>-->
  858. <!-- <div>准备时间{{A5Obj.PreparationTime}}</div>-->
  859. <!-- <div>在跑时间{{A5Obj.RunningTime}}</div>-->
  860. <!-- <div>单价{{A5Obj.unitPrice}}</div>-->
  861. <!-- </div>-->
  862. <!-- </el-col>-->
  863. <!-- <el-col :span="3"></el-col>-->
  864. <!-- <el-col :span="3">-->
  865. <!-- <div class="xiaohezi" :style="'background:'+ C5Obj.color" @click="xianchanfun('C5')">-->
  866. <!-- <div>C5</div>-->
  867. <!-- <div>是否限产{{C5Obj.ProductionRestriction}}</div>-->
  868. <!-- <div>限产数量{{C5Obj.LimitedProductionQuantity}}</div>-->
  869. <!-- <div>库存{{C5Obj.inventory}}</div>-->
  870. <!-- <div>生产时间{{C5Obj.date}}</div>-->
  871. <!-- <div>准备时间{{C5Obj.PreparationTime}}</div>-->
  872. <!-- <div>在跑时间{{C5Obj.RunningTime}}</div>-->
  873. <!-- <div>单价{{C5Obj.unitPrice}}</div>-->
  874. <!-- </div>-->
  875. <!-- </el-col>-->
  876. <!-- <el-col :span="3"></el-col>-->
  877. <!-- <el-col :span="3">-->
  878. <!-- <div class="xiaohezi" :style="'background:'+ E5Obj.color" @click="xianchanfun('E5')">-->
  879. <!-- <div>E5</div>-->
  880. <!-- <div>是否限产{{E5Obj.ProductionRestriction}}</div>-->
  881. <!-- <div>限产数量{{E5Obj.LimitedProductionQuantity}}</div>-->
  882. <!-- <div>库存{{E5Obj.inventory}}</div>-->
  883. <!-- <div>生产时间{{E5Obj.date}}</div>-->
  884. <!-- <div>准备时间{{E5Obj.PreparationTime}}</div>-->
  885. <!-- <div>在跑时间{{E5Obj.RunningTime}}</div>-->
  886. <!-- <div>单价{{E5Obj.unitPrice}}</div>-->
  887. <!-- </div>-->
  888. <!-- </el-col>-->
  889. <!-- <el-col :span="3">-->
  890. <!-- <div class="xiaohezi" :style="'background:'+ F5Obj.color" @click="xianchanfun('F5')">-->
  891. <!-- <div>F5</div>-->
  892. <!-- <div>是否限产{{F5Obj.ProductionRestriction}}</div>-->
  893. <!-- <div>限产数量{{F5Obj.LimitedProductionQuantity}}</div>-->
  894. <!-- <div>库存{{F5Obj.inventory}}</div>-->
  895. <!-- <div>生产时间{{F5Obj.date}}</div>-->
  896. <!-- <div>准备时间{{F5Obj.PreparationTime}}</div>-->
  897. <!-- <div>在跑时间{{F5Obj.RunningTime}}</div>-->
  898. <!-- <div>单价{{F5Obj.unitPrice}}</div>-->
  899. <!-- </div>-->
  900. <!-- </el-col>-->
  901. <!-- </el-row>-->
  902. <!-- &lt;!&ndash;4&ndash;&gt;-->
  903. <!-- <el-row type="flex" justify="center">-->
  904. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%;min-height: 60px;">4</div></el-col>-->
  905. <!-- <el-col :span="3">-->
  906. <!-- <div id="sizeid" style="width: 100%;">-->
  907. <!-- <canvas id="canvasIdA4"></canvas>-->
  908. <!-- </div>-->
  909. <!-- </el-col>-->
  910. <!-- <el-col :span="3"></el-col>-->
  911. <!-- <el-col :span="3">-->
  912. <!-- <div id="sizeid" style="width: 100%;">-->
  913. <!-- <canvas id="canvasIdC4"></canvas>-->
  914. <!-- </div>-->
  915. <!-- </el-col>-->
  916. <!-- <el-col :span="3"></el-col>-->
  917. <!-- <el-col :span="3">-->
  918. <!-- <div id="sizeid" style="width: 100%;">-->
  919. <!-- <canvas id="canvasIdE4"></canvas>-->
  920. <!-- </div>-->
  921. <!-- </el-col>-->
  922. <!-- <el-col :span="3">-->
  923. <!-- <div id="sizeid" style="width: 100%;">-->
  924. <!-- <canvas id="canvasIdF4"></canvas>-->
  925. <!-- </div>-->
  926. <!-- </el-col>-->
  927. <!-- </el-row>-->
  928. <!-- &lt;!&ndash;3&ndash;&gt;-->
  929. <!-- <el-row type="flex" justify="center">-->
  930. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%">3</div></el-col>-->
  931. <!-- <el-col :span="3"></el-col>-->
  932. <!-- <el-col :span="3">-->
  933. <!-- <div class="xiaohezi" :style="'background:'+ B3Obj.color" @click="xianchanfun('B3')">-->
  934. <!-- <div>B3</div>-->
  935. <!-- <div>是否限产{{B3Obj.ProductionRestriction}}</div>-->
  936. <!-- <div>限产数量{{B3Obj.LimitedProductionQuantity}}</div>-->
  937. <!-- <div>库存{{B3Obj.inventory}}</div>-->
  938. <!-- <div>生产时间{{B3Obj.date}}</div>-->
  939. <!-- <div>准备时间{{B3Obj.PreparationTime}}</div>-->
  940. <!-- <div>在跑时间{{B3Obj.RunningTime}}</div>-->
  941. <!-- <div>单价{{B3Obj.unitPrice}}</div>-->
  942. <!-- </div>-->
  943. <!-- </el-col>-->
  944. <!-- <el-col :span="3"></el-col>-->
  945. <!-- <el-col :span="3"></el-col>-->
  946. <!-- <el-col :span="3">-->
  947. <!-- <div id="sizeid" style="width: 100%;">-->
  948. <!-- <canvas id="canvasIdE3"></canvas>-->
  949. <!-- </div>-->
  950. <!-- </el-col>-->
  951. <!-- <el-col :span="3">-->
  952. <!-- <div class="xiaohezi" :style="'background:'+ F3Obj.color" @click="xianchanfun('F3')">-->
  953. <!-- <div>F3</div>-->
  954. <!-- <div>是否限产{{F3Obj.ProductionRestriction}}</div>-->
  955. <!-- <div>限产数量{{F3Obj.LimitedProductionQuantity}}</div>-->
  956. <!-- <div>库存{{F3Obj.inventory}}</div>-->
  957. <!-- <div>生产时间{{F3Obj.date}}</div>-->
  958. <!-- <div>准备时间{{F3Obj.PreparationTime}}</div>-->
  959. <!-- <div>在跑时间{{F3Obj.RunningTime}}</div>-->
  960. <!-- <div>单价{{F3Obj.unitPrice}}</div>-->
  961. <!-- </div>-->
  962. <!-- </el-col>-->
  963. <!-- </el-row>-->
  964. <!-- &lt;!&ndash;2&ndash;&gt;-->
  965. <!-- <el-row type="flex" justify="center">-->
  966. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%">2</div></el-col>-->
  967. <!-- <el-col :span="3">-->
  968. <!-- <div id="sizeid" style="width: 100%;">-->
  969. <!-- <canvas id="canvasIdA2"></canvas>-->
  970. <!-- </div>-->
  971. <!-- </el-col>-->
  972. <!-- <el-col :span="3"></el-col>-->
  973. <!-- <el-col :span="3">-->
  974. <!-- <div id="sizeid" style="width: 100%;">-->
  975. <!-- <canvas id="canvasIdC2"></canvas>-->
  976. <!-- </div>-->
  977. <!-- </el-col>-->
  978. <!-- <el-col :span="3"></el-col>-->
  979. <!-- <el-col :span="3">-->
  980. <!-- <div class="xiaohezi" :style="'background:'+ E2Obj.color" @click="xianchanfun('E2')">-->
  981. <!-- <div>E2</div>-->
  982. <!-- <div>是否限产{{E2Obj.ProductionRestriction}}</div>-->
  983. <!-- <div>限产数量{{E2Obj.LimitedProductionQuantity}}</div>-->
  984. <!-- <div>库存{{E2Obj.inventory}}</div>-->
  985. <!-- <div>生产时间{{E2Obj.date}}</div>-->
  986. <!-- <div>准备时间{{E2Obj.PreparationTime}}</div>-->
  987. <!-- <div>在跑时间{{E2Obj.RunningTime}}</div>-->
  988. <!-- <div>单价{{E2Obj.unitPrice}}</div>-->
  989. <!-- </div>-->
  990. <!-- </el-col>-->
  991. <!-- <el-col :span="3">-->
  992. <!-- <div class="xiaohezi" :style="'background:'+ F2Obj.color" @click="xianchanfun('F2')">-->
  993. <!-- <div>F2</div>-->
  994. <!-- <div>是否限产{{F2Obj.ProductionRestriction}}</div>-->
  995. <!-- <div>限产数量{{F2Obj.LimitedProductionQuantity}}</div>-->
  996. <!-- <div>库存{{F2Obj.inventory}}</div>-->
  997. <!-- <div>生产时间{{F2Obj.date}}</div>-->
  998. <!-- <div>准备时间{{F2Obj.PreparationTime}}</div>-->
  999. <!-- <div>在跑时间{{F2Obj.RunningTime}}</div>-->
  1000. <!-- <div>单价{{F2Obj.unitPrice}}</div>-->
  1001. <!-- </div>-->
  1002. <!-- </el-col>-->
  1003. <!-- </el-row>-->
  1004. <!-- &lt;!&ndash;1&ndash;&gt;-->
  1005. <!-- <el-row type="flex" justify="center">-->
  1006. <!-- <el-col :span="1"><div style="display: flex;align-items: center;height: 100%">1</div></el-col>-->
  1007. <!-- <el-col :span="3">-->
  1008. <!-- <div class="xiaohezi" :style="'background:'+ A1Obj.color" @click="xianchanfun('A1')">-->
  1009. <!-- <div>A1</div>-->
  1010. <!-- <div>是否限产{{A1Obj.ProductionRestriction}}</div>-->
  1011. <!-- <div>限产数量{{A1Obj.LimitedProductionQuantity}}</div>-->
  1012. <!-- <div>库存{{A1Obj.inventory}}</div>-->
  1013. <!-- <div>生产时间{{A1Obj.date}}</div>-->
  1014. <!-- <div>准备时间{{A1Obj.PreparationTime}}</div>-->
  1015. <!-- <div>在跑时间{{A1Obj.RunningTime}}</div>-->
  1016. <!-- <div @click.stop="rawMaterialTruefun('A1')">原材料数量{{A1Obj.RawMaterialNumber}}</div>-->
  1017. <!-- <div>原材料价格{{A1Obj.RawMaterialPrice}}</div>-->
  1018. <!-- </div>-->
  1019. <!-- </el-col>-->
  1020. <!-- <el-col :span="3"></el-col>-->
  1021. <!-- <el-col :span="3">-->
  1022. <!-- <div class="xiaohezi" :style="'background:'+ C1Obj.color" @click="xianchanfun('C1')">-->
  1023. <!-- <div>C1</div>-->
  1024. <!-- <div>是否限产{{C1Obj.ProductionRestriction}}</div>-->
  1025. <!-- <div>限产数量{{C1Obj.LimitedProductionQuantity}}</div>-->
  1026. <!-- <div>库存{{C1Obj.inventory}}</div>-->
  1027. <!-- <div>生产时间{{C1Obj.date}}</div>-->
  1028. <!-- <div>准备时间{{C1Obj.PreparationTime}}</div>-->
  1029. <!-- <div>在跑时间{{C1Obj.RunningTime}}</div>-->
  1030. <!-- <div @click.stop="rawMaterialTruefun('C1')">原材料数量{{C1Obj.RawMaterialNumber}}</div>-->
  1031. <!-- <div>原材料价格{{C1Obj.RawMaterialPrice}}</div>-->
  1032. <!-- </div>-->
  1033. <!-- </el-col>-->
  1034. <!-- <el-col :span="3"></el-col>-->
  1035. <!-- <el-col :span="3">-->
  1036. <!-- <div class="xiaohezi" :style="'background:'+ E1Obj.color" @click="xianchanfun('E1')">-->
  1037. <!-- <div>E1</div>-->
  1038. <!-- <div>是否限产{{E1Obj.ProductionRestriction}}</div>-->
  1039. <!-- <div>限产数量{{E1Obj.LimitedProductionQuantity}}</div>-->
  1040. <!-- <div>库存{{E1Obj.inventory}}</div>-->
  1041. <!-- <div>生产时间{{E1Obj.date}}</div>-->
  1042. <!-- <div>准备时间{{E1Obj.PreparationTime}}</div>-->
  1043. <!-- <div>在跑时间{{E1Obj.RunningTime}}</div>-->
  1044. <!-- <div @click.stop="rawMaterialTruefun('E1')">原材料数量{{E1Obj.RawMaterialNumber}}</div>-->
  1045. <!-- <div>原材料价格{{E1Obj.RawMaterialPrice}}</div>-->
  1046. <!-- </div>-->
  1047. <!-- </el-col>-->
  1048. <!-- <el-col :span="3">-->
  1049. <!-- <div class="xiaohezi" :style="'background:'+ F1Obj.color" @click="xianchanfun('F1')">-->
  1050. <!-- <div>F1</div>-->
  1051. <!-- <div>是否限产{{F1Obj.ProductionRestriction}}</div>-->
  1052. <!-- <div>限产数量{{F1Obj.LimitedProductionQuantity}}</div>-->
  1053. <!-- <div>库存{{F1Obj.inventory}}</div>-->
  1054. <!-- <div>生产时间{{F1Obj.date}}</div>-->
  1055. <!-- <div>准备时间{{F1Obj.PreparationTime}}</div>-->
  1056. <!-- <div>在跑时间{{F1Obj.RunningTime}}</div>-->
  1057. <!-- <div @click.stop="rawMaterialTruefun('F1')">原材料数量{{F1Obj.RawMaterialNumber}}</div>-->
  1058. <!-- <div>原材料价格{{F1Obj.RawMaterialPrice}}</div>-->
  1059. <!-- </div>-->
  1060. <!-- </el-col>-->
  1061. <!-- </el-row>-->
  1062. <!-- &lt;!&ndash;0&ndash;&gt;-->
  1063. <!-- <el-row type="flex" justify="center">-->
  1064. <!-- <el-col :span="1"><div style="text-align: center"></div></el-col>-->
  1065. <!-- <el-col :span="3"><div style="text-align: center">A</div></el-col>-->
  1066. <!-- <el-col :span="3"><div style="text-align: center">B</div></el-col>-->
  1067. <!-- <el-col :span="3"><div style="text-align: center">C</div></el-col>-->
  1068. <!-- <el-col :span="3"><div style="text-align: center">D</div></el-col>-->
  1069. <!-- <el-col :span="3"><div style="text-align: center">E</div></el-col>-->
  1070. <!-- <el-col :span="3"><div style="text-align: center">F</div></el-col>-->
  1071. <!-- </el-row>-->
  1072. <!-- </div>-->
  1073. <!--</div>-->
  1074. </div>
  1075. <!--购买原材料的弹窗-->
  1076. <el-dialog
  1077. :title="StagingName + '原材料购买'"
  1078. :visible.sync="rawMaterialDialog"
  1079. width="40%"
  1080. :modal-append-to-body="false"
  1081. :close-on-click-modal="false"
  1082. :before-close="rawMaterialBefore">
  1083. <div>
  1084. <el-input v-model="StagingNumber" placeholder="请输入购买数量"></el-input>
  1085. </div>
  1086. <span slot="footer" class="dialog-footer">
  1087. <el-button @click="rawMaterialBefore">取 消</el-button>
  1088. <el-button type="primary" @click="PopUpPurchasefun(StagingName)">确 定</el-button>
  1089. </span>
  1090. </el-dialog>
  1091. <!--限产弹窗-->
  1092. <el-dialog
  1093. :title="StagingName + '限产'"
  1094. :visible.sync="limitDialog"
  1095. width="40%"
  1096. :modal-append-to-body="false"
  1097. :close-on-click-modal="false"
  1098. :before-close="LimitBefore">
  1099. <div>
  1100. <el-input v-model="xianchanInput" placeholder="请输入限产数量"></el-input>
  1101. </div>
  1102. <div style="margin-top: 30px;">
  1103. <el-button type="success" @click="Cancellationlimitatio(StagingName)">取消限产状态</el-button>
  1104. </div>
  1105. <span slot="footer" class="dialog-footer">
  1106. <el-button @click="LimitBefore">取 消</el-button>
  1107. <el-button type="primary" @click="LimtDialogfun(StagingName)">确 定</el-button>
  1108. </span>
  1109. </el-dialog>
  1110. <!--结算弹窗-->
  1111. <el-dialog
  1112. title="提示"
  1113. :visible.sync="settlementDialog"
  1114. width="50%">
  1115. <div>
  1116. <div>初始金额:10000</div>
  1117. <div>剩余金额:{{TotalMoney}}</div>
  1118. <div>购买原料花费的总价钱:{{rawMaterialSpendCash}}</div>
  1119. <div>固定支出:{{FixedExpenses}}</div>
  1120. </div>
  1121. <div>
  1122. <div>产品A任务需要:40</div>
  1123. <div>产品A完成数量:{{ demand1.produced }}</div>
  1124. <div>产品A未完成数量:{{ demand1.TotalProduction }}</div>
  1125. </div>
  1126. <div>
  1127. <div>产品D任务需要:50</div>
  1128. <div>产品D完成数量:{{ demand2.produced }}</div>
  1129. <div>产品D未完成数量:{{ demand2.TotalProduction }}</div>
  1130. </div>
  1131. <div>
  1132. <div>产品F任务需要:40</div>
  1133. <div>产品F完成数量:{{ demand3.produced }}</div>
  1134. <div>产品F未完成数量:{{ demand3.TotalProduction }}</div>
  1135. </div>
  1136. <span slot="footer" class="dialog-footer">
  1137. <!--<el-button @click="dialogVisible = false">取 消</el-button>-->
  1138. <el-button type="primary" @click="endConfirmfun">确 定</el-button>
  1139. </span>
  1140. </el-dialog>
  1141. </div>
  1142. </template>
  1143. <script>
  1144. // import SelectOption from "@/components/SelectOption.vue";
  1145. export default {
  1146. name: 'home',
  1147. // components:{
  1148. // SelectOption
  1149. // },
  1150. data() {
  1151. return {
  1152. // 绿色的岗位
  1153. A1Obj:{
  1154. date:4, // 生产时间
  1155. inventory:'0', // 库存数量
  1156. OnDuty:false, // 是否在岗 false 不在岗 true 在岗
  1157. RunningTime:0, // 这个岗位在跑的事件,八小时之后保存的时间
  1158. RawMaterialNumber:0, // 原材料数量
  1159. RawMaterialPrice:30,// 原材料的价格
  1160. subordinate:[], // 关联的下级
  1161. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1162. color:'#d5f593', // 颜色
  1163. ProductionRestriction:false, // 是否限产
  1164. LimitedProductionQuantity:0, // 限产的数量
  1165. },
  1166. C1Obj:{
  1167. date:5,
  1168. inventory:'0',
  1169. OnDuty:false,
  1170. RunningTime:0,
  1171. RawMaterialNumber:0,
  1172. RawMaterialPrice:35,
  1173. subordinate:[], // 关联的下级
  1174. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1175. color:'#d5f593', // 颜色
  1176. ProductionRestriction:false, // 是否限产
  1177. LimitedProductionQuantity:0, // 限产的数量
  1178. },
  1179. F1Obj:{
  1180. date:15,
  1181. inventory:'0',
  1182. OnDuty:false,
  1183. RunningTime:0,
  1184. RawMaterialNumber:0,
  1185. RawMaterialPrice:65,
  1186. subordinate:[], // 关联的下级
  1187. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1188. color:'#d5f593', // 颜色
  1189. ProductionRestriction:false, // 是否限产
  1190. LimitedProductionQuantity:0, // 限产的数量
  1191. },
  1192. A5Obj:{
  1193. date:15,
  1194. inventory:'0',
  1195. OnDuty:false,
  1196. RunningTime:0,
  1197. subordinate:['B3Obj'], // 关联的下级
  1198. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1199. color:'#d5f593', // 颜色
  1200. unitPrice:65,// 成本价
  1201. ProductionRestriction:false, // 是否限产
  1202. LimitedProductionQuantity:0, // 限产的数量
  1203. },
  1204. // 深蓝的岗位
  1205. E5Obj:{
  1206. date:28,
  1207. inventory:'0',
  1208. OnDuty:false,
  1209. RunningTime:0,
  1210. subordinate:['E2Obj'], // 关联的下级
  1211. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1212. color:'#5894de', // 颜色
  1213. unitPrice:30,// 单价
  1214. ProductionRestriction:false, // 是否限产
  1215. LimitedProductionQuantity:0, // 限产的数量
  1216. },
  1217. C5Obj:{
  1218. date:6,
  1219. inventory:'0',
  1220. OnDuty:false,
  1221. RunningTime:0,
  1222. subordinate:['B3Obj'], // 关联的下级
  1223. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1224. color:'#5894de', // 颜色
  1225. unitPrice:65,// 单价
  1226. ProductionRestriction:false, // 是否限产
  1227. LimitedProductionQuantity:0, // 限产的数量
  1228. },
  1229. F5Obj:{
  1230. date:14,
  1231. inventory:'0',
  1232. OnDuty:false,
  1233. RunningTime:0,
  1234. subordinate:['F3Obj'], // 关联的下级
  1235. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1236. color:'#5894de', // 颜色
  1237. unitPrice:65,// 单价
  1238. ProductionRestriction:false, // 是否限产
  1239. LimitedProductionQuantity:0, // 限产的数量
  1240. },
  1241. // 浅蓝的岗位
  1242. A6Obj:{
  1243. date:15,
  1244. inventory:'0',
  1245. OnDuty:false,
  1246. RunningTime:0,
  1247. subordinate:['A5Obj'], // 关联的下级
  1248. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1249. color:'#7efefe', // 颜色
  1250. unitPrice:65,// 单价
  1251. ProductionRestriction:false, // 是否限产
  1252. LimitedProductionQuantity:0, // 限产的数量
  1253. },
  1254. A9Obj:{
  1255. date:18,
  1256. inventory:'0',
  1257. OnDuty:false,
  1258. RunningTime:0,
  1259. SellingPrice: 180,// 卖出的成品价格
  1260. subordinate:['A7Obj'], // 关联的下级
  1261. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1262. color:'#7efefe', // 颜色
  1263. unitPrice:65,// 单价
  1264. ProductionRestriction:false, // 是否限产
  1265. LimitedProductionQuantity:0, // 限产的数量
  1266. },
  1267. D9Obj:{
  1268. date:6,
  1269. inventory:'0',
  1270. OnDuty:false,
  1271. RunningTime:0,
  1272. SellingPrice: 240,// 卖出的成品价格
  1273. subordinate:['D7Obj'], // 关联的下级
  1274. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1275. color:'#7efefe', // 颜色
  1276. unitPrice:95,// 单价
  1277. ProductionRestriction:false, // 是否限产
  1278. LimitedProductionQuantity:0, // 限产的数量
  1279. },
  1280. E1Obj:{
  1281. date:9,
  1282. inventory:'0',
  1283. OnDuty:false,
  1284. RunningTime:0,
  1285. RawMaterialNumber:0,
  1286. RawMaterialPrice:30,
  1287. subordinate:[], // 关联的下级
  1288. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1289. color:'#7efefe', // 颜色
  1290. ProductionRestriction:false, // 是否限产
  1291. LimitedProductionQuantity:0, // 限产的数量
  1292. },
  1293. F2Obj:{
  1294. date:12,
  1295. inventory:'0',
  1296. OnDuty:false,
  1297. RunningTime:0,
  1298. subordinate:['F1Obj'], // 关联的下级
  1299. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1300. color:'#7efefe', // 颜色
  1301. unitPrice:65,// 单价
  1302. ProductionRestriction:false, // 是否限产
  1303. LimitedProductionQuantity:0, // 限产的数量
  1304. },
  1305. F9Obj:{
  1306. date:10,
  1307. inventory:'0',
  1308. OnDuty:false,
  1309. RunningTime:0,
  1310. SellingPrice: 180,// 卖出的成品价格
  1311. subordinate:['F7Obj'], // 关联的下级
  1312. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1313. color:'#7efefe', // 颜色
  1314. unitPrice:65,// 单价
  1315. ProductionRestriction:false, // 是否限产
  1316. LimitedProductionQuantity:0, // 限产的数量
  1317. },
  1318. // 紫色的岗位
  1319. E2Obj:{
  1320. date:18,
  1321. inventory:'15',
  1322. OnDuty:false,
  1323. RunningTime:0,
  1324. subordinate:['E1Obj'], // 关联的下级
  1325. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1326. color:'#b188f0', // 颜色
  1327. unitPrice:30,// 单价
  1328. ProductionRestriction:false, // 是否限产
  1329. LimitedProductionQuantity:0, // 限产的数量
  1330. },
  1331. F3Obj:{
  1332. date:20,
  1333. inventory:'10',
  1334. OnDuty:false,
  1335. RunningTime:0,
  1336. subordinate:['F2Obj'], // 关联的下级
  1337. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1338. color:'#b188f0', // 颜色
  1339. unitPrice:65,// 单价
  1340. ProductionRestriction:false, // 是否限产
  1341. LimitedProductionQuantity:0, // 限产的数量
  1342. },
  1343. F7Obj:{
  1344. date:7,
  1345. inventory:'0',
  1346. OnDuty:false,
  1347. RunningTime:0,
  1348. subordinate:['F5Obj'], // 关联的下级
  1349. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1350. color:'#b188f0', // 颜色
  1351. unitPrice:65,// 单价
  1352. ProductionRestriction:false, // 是否限产
  1353. LimitedProductionQuantity:0, // 限产的数量
  1354. },
  1355. A7Obj:{
  1356. date:20,
  1357. inventory:'0',
  1358. OnDuty:false,
  1359. RunningTime:0,
  1360. subordinate:['A6Obj'], // 关联的下级
  1361. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1362. color:'#b188f0', // 颜色
  1363. unitPrice:65,// 单价
  1364. ProductionRestriction:false, // 是否限产
  1365. LimitedProductionQuantity:0, // 限产的数量
  1366. },
  1367. // 褐色的岗位
  1368. B3Obj:{
  1369. date:8,
  1370. inventory:'25',
  1371. OnDuty:false,
  1372. RunningTime:0,
  1373. subordinate:['A1Obj','C1Obj'], // 关联的下级
  1374. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1375. color:'#c2a750', // 颜色
  1376. unitPrice:65,// 单价
  1377. ProductionRestriction:false, // 是否限产
  1378. LimitedProductionQuantity:0, // 限产的数量
  1379. },
  1380. D7Obj:{
  1381. date:9,
  1382. inventory:'0',
  1383. OnDuty:false,
  1384. RunningTime:0,
  1385. subordinate:['C5Obj','E5Obj'], // 关联的下级
  1386. PreparationTime:0,// 准备时间 在选择该岗位的时候赋值的员工的准备时间,判断是否为0
  1387. color:'#c2a750', // 颜色
  1388. unitPrice:95,// 单价
  1389. ProductionRestriction:false, // 是否限产
  1390. LimitedProductionQuantity:0, // 限产的数量
  1391. },
  1392. // 深蓝色员工
  1393. DarkBlueStaff:{
  1394. PreparationTime:15, // 准备时间
  1395. currentState:0, // 当前的状态
  1396. postName:'-' // 岗位
  1397. },
  1398. // 绿色员工
  1399. GreenStaff1:{
  1400. PreparationTime:120, // 准备时间
  1401. currentState:0, // 当前的状态
  1402. postName:'-' // 岗位
  1403. },
  1404. GreenStaff2:{
  1405. PreparationTime:120, // 准备时间
  1406. currentState:0, // 当前的状态
  1407. postName:'-' // 岗位
  1408. },
  1409. // 蓝色员工
  1410. BlueStaff1:{
  1411. PreparationTime:60, // 准备时间
  1412. currentState:0, // 当前的状态
  1413. postName:'-' // 岗位
  1414. },
  1415. BlueStaff2:{
  1416. PreparationTime:60, // 准备时间
  1417. currentState:0, // 当前的状态
  1418. postName:'-' // 岗位
  1419. },
  1420. // 紫色员工
  1421. PurpleStaff1:{
  1422. PreparationTime:30, // 准备时间
  1423. currentState:0, // 当前的状态
  1424. postName:'-' // 岗位
  1425. },
  1426. PurpleStaff2:{
  1427. PreparationTime:30, // 准备时间
  1428. currentState:0, // 当前的状态
  1429. postName:'-' // 岗位
  1430. },
  1431. // 褐色员工
  1432. BrownStaff:{
  1433. PreparationTime:0, // 准备时间
  1434. currentState:0, // 当前的状态
  1435. postName:'-' // 岗位
  1436. },
  1437. // 员工的状态字典
  1438. Typedata:[
  1439. {
  1440. id:0,
  1441. name:'闲置' // 当没有工位的时候和当前工位下级没有货物的时候变成闲置状态
  1442. },
  1443. {
  1444. id:1,
  1445. name:'生产' // 过了准备时间之后就变成这个状态了
  1446. },
  1447. {
  1448. id:2,
  1449. name:'转换' // 准备时间是这个状态
  1450. },
  1451. {
  1452. id:3,
  1453. name:'限终' //设置限产数量之后,生产完的状态
  1454. },
  1455. {
  1456. id:4,
  1457. name:'限产' // 设置成限产之后的状态
  1458. },
  1459. ],
  1460. // 蓝色员工可选岗位
  1461. DarkBlueOptionalPost:[
  1462. {
  1463. id:'C5',
  1464. name:'C5'
  1465. },
  1466. {
  1467. id:'E5',
  1468. name:'E5'
  1469. },
  1470. {
  1471. id:'F5',
  1472. name:'F5'
  1473. }
  1474. ],
  1475. // 绿色的员工
  1476. GreenOptionalPost:[
  1477. {
  1478. id:'A1',
  1479. name:'A1'
  1480. },
  1481. {
  1482. id:'C1',
  1483. name:'C1'
  1484. },
  1485. {
  1486. id:'F1',
  1487. name:'F1'
  1488. },
  1489. {
  1490. id:'A5',
  1491. name:'A5'
  1492. }
  1493. ],
  1494. // 蓝色员工
  1495. BlueOptionalPost:[
  1496. {
  1497. id:'E1',
  1498. name:'E1'
  1499. },
  1500. {
  1501. id:'F2',
  1502. name:'F2'
  1503. },
  1504. {
  1505. id:'A6',
  1506. name:'A6'
  1507. },
  1508. {
  1509. id:'A9',
  1510. name:'A9'
  1511. },
  1512. {
  1513. id:'D9',
  1514. name:'D9'
  1515. },
  1516. {
  1517. id:'F9',
  1518. name:'F9'
  1519. }
  1520. ],
  1521. // 紫色员工
  1522. PurpleOptionalPost:[
  1523. {
  1524. id:'A7',
  1525. name:'A7'
  1526. },
  1527. {
  1528. id:'E2',
  1529. name:'E2'
  1530. },
  1531. {
  1532. id:'F3',
  1533. name:'F3'
  1534. },
  1535. {
  1536. id:'F7',
  1537. name:'F7'
  1538. }
  1539. ],
  1540. // 褐色员工
  1541. BrownOptionalPost:[
  1542. {
  1543. id:'B3',
  1544. name:'B3'
  1545. },
  1546. {
  1547. id:'D7',
  1548. name:'D7'
  1549. },
  1550. ],
  1551. // 三个生产线需要的需求
  1552. demand1:{
  1553. TotalProduction:40, // 这条线总生产数
  1554. produced:0 // 这条线已经生产数量
  1555. },
  1556. demand2:{
  1557. TotalProduction:50, // 这条线总生产数
  1558. produced:0 // 这条线已经生产数量
  1559. },
  1560. demand3:{
  1561. TotalProduction:40, // 这条线总生产数
  1562. produced:0 // 这条线已经生产数量
  1563. },
  1564. // 当前在跑的总时间
  1565. totalTime:0,
  1566. // 倍速
  1567. DoubleSpeed:1,
  1568. // 计时器
  1569. stopInter:null,
  1570. // 购买原材料输入的数量
  1571. StagingNumber:0,
  1572. // 总钱数 一万
  1573. TotalMoney:10000,
  1574. // 固定支出
  1575. FixedExpenses:11000,
  1576. // 时间处理 00:00
  1577. formatdate:'00:00',
  1578. // 购买原材料弹窗的开启和关闭
  1579. rawMaterialDialog:false,
  1580. // 弹窗需要的暂存的工位名称
  1581. StagingName:'',
  1582. // 当前计时器是否在开启过程中
  1583. timerType:false,
  1584. // 当前的天数
  1585. CurrentDays:1,
  1586. // 结算弹窗页面的开启和关闭
  1587. settlementDialog:false,
  1588. // 购买原材料花费的价钱
  1589. rawMaterialSpendCash:0,
  1590. // 限产弹窗的打开和关闭
  1591. limitDialog:false,
  1592. // 限产弹窗里的输入框
  1593. xianchanInput:0,
  1594. // 字符串的星期
  1595. DigitalWeekList:['星期一','星期二','星期三','星期四','星期五']
  1596. }
  1597. },
  1598. created() {
  1599. },
  1600. mounted() {
  1601. // window.onresize = function () {
  1602. // // console.log(document.getElementById('mybox').clientHeight)
  1603. // // console.log(document.documentElement.clientHeight)
  1604. //
  1605. // }
  1606. let myboxming = document.getElementById('mybox')
  1607. let v = window.innerHeight
  1608. let r = v / myboxming.clientHeight
  1609. // document.getElementById('mybox').style.transform = `scale(${r})`
  1610. // this.canvasfun()
  1611. },
  1612. methods:{
  1613. // 获取canvas 的数据
  1614. canvasfun(){
  1615. // 页面加载完成之后调用
  1616. window.onload = ()=>{
  1617. const size = document.getElementById('sizeid')
  1618. let arr = [
  1619. {
  1620. name:'canvasIdA2',
  1621. canvas:null,
  1622. ctx:null,
  1623. },
  1624. {
  1625. name:'canvasIdC2',
  1626. canvas:null,
  1627. ctx:null,
  1628. },
  1629. {
  1630. name:'canvasIdA4',
  1631. canvas:null,
  1632. ctx:null,
  1633. },
  1634. {
  1635. name:'canvasIdC4',
  1636. canvas:null,
  1637. ctx:null,
  1638. },
  1639. {
  1640. name:'canvasIdC6',
  1641. canvas:null,
  1642. ctx:null,
  1643. },
  1644. {
  1645. name:'canvasIdE6',
  1646. canvas:null,
  1647. ctx:null,
  1648. },
  1649. {
  1650. name:'canvasIdE4',
  1651. canvas:null,
  1652. ctx:null,
  1653. },
  1654. {
  1655. name:'canvasIdE3',
  1656. canvas:null,
  1657. ctx:null,
  1658. },
  1659. {
  1660. name:'canvasIdF4',
  1661. canvas:null,
  1662. ctx:null,
  1663. },
  1664. {
  1665. name:'canvasIdF6',
  1666. canvas:null,
  1667. ctx:null,
  1668. },
  1669. {
  1670. name:'canvasIdA8',
  1671. canvas:null,
  1672. ctx:null,
  1673. },
  1674. {
  1675. name:'canvasIdD8',
  1676. canvas:null,
  1677. ctx:null,
  1678. },
  1679. {
  1680. name:'canvasIdF8',
  1681. canvas:null,
  1682. ctx:null,
  1683. }
  1684. ]
  1685. for(let item of arr) {
  1686. item.canvas = document.getElementById(item.name);
  1687. item.ctx = item.canvas.getContext('2d');
  1688. item.canvas.width = size.clientWidth
  1689. item.canvas.height = size.clientHeight
  1690. // 判断箭头位置
  1691. if (item.name == 'canvasIdA4') {
  1692. this.drawLineArrow(item, item.canvas.clientWidth, item.canvas.clientHeight, item.canvas.clientWidth/2, 10, "#000");
  1693. }else if (item.name == 'canvasIdC4') {
  1694. this.drawLineArrow(item, 0, item.canvas.clientHeight, item.canvas.clientWidth/2, 10, "#000");
  1695. }else if (item.name == 'canvasIdA2' || item.name == 'canvasIdC6') {
  1696. this.drawLineArrow(item, item.canvas.clientWidth/2, item.canvas.clientHeight, item.canvas.clientWidth-10, 10, "#000");
  1697. }else if (item.name == 'canvasIdC2' || item.name == 'canvasIdE6') {
  1698. this.drawLineArrow(item, item.canvas.clientWidth/2, item.canvas.clientHeight, 10, 10, "#000");
  1699. }else {
  1700. this.drawLineArrow(item, item.canvas.clientWidth/2, item.canvas.clientHeight, item.canvas.clientWidth/2, 10, "#000");
  1701. }
  1702. }
  1703. }
  1704. },
  1705. /**
  1706. * 绘制带有箭头的直线
  1707. * @param cavParam canvas画布变量
  1708. * @param fromX/fromY 起点坐标
  1709. * @param toX/toY 终点坐标
  1710. * @param color 线与箭头颜色
  1711. **/
  1712. drawLineArrow(cavParam, fromX, fromY, toX, toY, color) {
  1713. const headlen = 10;//自定义箭头线的长度
  1714. const theta = 45;//自定义箭头线与直线的夹角,个人觉得45°刚刚好
  1715. let arrowX, arrowY;//箭头线终点坐标
  1716. // 计算各角度和对应的箭头终点坐标
  1717. const angle = Math.atan2(fromY - toY, fromX - toX) * 180 / Math.PI;
  1718. const angle1 = (angle + theta) * Math.PI / 180;
  1719. const angle2 = (angle - theta) * Math.PI / 180;
  1720. const topX = headlen * Math.cos(angle1);
  1721. const topY = headlen * Math.sin(angle1);
  1722. const botX = headlen * Math.cos(angle2);
  1723. const botY = headlen * Math.sin(angle2);
  1724. // 需要的开始路径
  1725. cavParam.ctx.beginPath();
  1726. // 设置画笔线条的粗细
  1727. cavParam.ctx.lineWidth = 2
  1728. //画直线
  1729. cavParam.ctx.moveTo(fromX, fromY);
  1730. cavParam.ctx.lineTo(toX, toY);
  1731. arrowX = toX + topX;
  1732. arrowY = toY + topY;
  1733. //画上边箭头线
  1734. cavParam.ctx.moveTo(arrowX, arrowY);
  1735. cavParam.ctx.lineTo(toX, toY);
  1736. arrowX = toX + botX;
  1737. arrowY = toY + botY;
  1738. //画下边箭头线
  1739. cavParam.ctx.lineTo(arrowX, arrowY);
  1740. // 更换画笔颜色
  1741. cavParam.ctx.strokeStyle = color;
  1742. cavParam.ctx.stroke();
  1743. },
  1744. StartButtonfun(){
  1745. if (this.timerType) {
  1746. this.stopfun()
  1747. }else {
  1748. this.kaishi()
  1749. }
  1750. },
  1751. // 开始
  1752. kaishi() {
  1753. if (this.timerType) {
  1754. return
  1755. }
  1756. this.setIntfun()
  1757. },
  1758. // 倍速加快
  1759. jiakuai(){
  1760. if (this.DoubleSpeed < 10) {
  1761. this.DoubleSpeed++
  1762. // 判断当前计时器是否是开启状态
  1763. if (this.timerType) {
  1764. this.stopfun()
  1765. this.setIntfun()
  1766. }
  1767. }
  1768. },
  1769. // 倍速减慢
  1770. jianman(){
  1771. if(this.DoubleSpeed > 1) {
  1772. this.DoubleSpeed--
  1773. if (this.timerType) {
  1774. this.stopfun()
  1775. this.setIntfun()
  1776. }
  1777. }
  1778. },
  1779. // 下拉反的参数
  1780. // 第一个参数 组件反的当前选择的数据
  1781. // 第二个参数 员工是什么颜色的;
  1782. // 第三个参数 两个员工的另一个员工数据
  1783. // 第四个参数 当前员工的数据
  1784. DropDownfun(e,type,staffName,currentData) {
  1785. if (type == '深蓝色') {
  1786. // 深蓝色只有一个员工
  1787. switch(e)
  1788. {
  1789. case 'C5':
  1790. if (this.DarkBlueStaff.postName != e) {
  1791. this[e+'Obj'].OnDuty = true
  1792. this[e+'Obj'].PreparationTime = this.DarkBlueStaff.PreparationTime
  1793. this.DarkBlueStaff.currentState = 2 // 把 员工的状态变成转换
  1794. }
  1795. this.ClearanceTimefun('E5Obj')
  1796. this.ClearanceTimefun('F5Obj')
  1797. break;
  1798. case 'E5':
  1799. if (this.DarkBlueStaff.postName != e) {
  1800. this[e+'Obj'].OnDuty = true
  1801. this[e+'Obj'].PreparationTime = this.DarkBlueStaff.PreparationTime
  1802. this.DarkBlueStaff.currentState = 2 // 把 员工的状态变成转换
  1803. }
  1804. this.ClearanceTimefun('C5Obj')
  1805. this.ClearanceTimefun('F5Obj')
  1806. break;
  1807. case 'F5':
  1808. if (this.DarkBlueStaff.postName != e) {
  1809. this[e+'Obj'].OnDuty = true
  1810. this[e+'Obj'].PreparationTime = this.DarkBlueStaff.PreparationTime
  1811. this.DarkBlueStaff.currentState = 2 // 把 员工的状态变成转换
  1812. }
  1813. this.ClearanceTimefun('E5Obj')
  1814. this.ClearanceTimefun('C5Obj')
  1815. break;
  1816. default:
  1817. break;
  1818. }
  1819. this.DarkBlueStaff.postName = e
  1820. }else if (type =='绿色') {
  1821. // 绿色的员工两个
  1822. this.MultipleEmployeesfun(this.GreenOptionalPost,e,staffName,currentData)
  1823. }else if (type =='褐色') {
  1824. // 褐色只有一个员工
  1825. switch(e)
  1826. {
  1827. case 'B3':
  1828. if (this.DarkBlueStaff.postName != e) {
  1829. this[e+'Obj'].OnDuty = true
  1830. this[e+'Obj'].PreparationTime = this.BrownStaff.PreparationTime
  1831. this.BrownStaff.currentState = 2 // 把 员工的状态变成转换
  1832. }
  1833. this.ClearanceTimefun('D7Obj')
  1834. break;
  1835. case 'D7':
  1836. if (this.DarkBlueStaff.postName != e) {
  1837. this[e+'Obj'].OnDuty = true
  1838. this[e+'Obj'].PreparationTime = this.BrownStaff.PreparationTime
  1839. this.BrownStaff.currentState = 2 // 把 员工的状态变成转换
  1840. }
  1841. this.ClearanceTimefun('B3Obj')
  1842. break;
  1843. default:
  1844. break;
  1845. }
  1846. this.BrownStaff.postName = e
  1847. }else if (type =='蓝色') {
  1848. // 蓝色的员工两个
  1849. this.MultipleEmployeesfun(this.BlueOptionalPost,e,staffName,currentData)
  1850. }else if(type == '紫色') {
  1851. // 紫色的员工两个
  1852. this.MultipleEmployeesfun(this.PurpleOptionalPost,e,staffName,currentData)
  1853. }else {
  1854. }
  1855. },
  1856. // 计时器开启
  1857. setIntfun(){
  1858. this.timerType = true
  1859. this.stopInter = setInterval(res=>{
  1860. // 总共跑了多少时间
  1861. this.totalTime++
  1862. // 获取 00:00 格式的时间
  1863. this.formatdate = this.formatfun(this.totalTime)
  1864. // 判断是否到了一天的时间
  1865. if(this.formatdate === '08:00') {
  1866. // 到了第五天游戏就结束了
  1867. if (this.CurrentDays == 5) {
  1868. this.settlementDialog = true
  1869. this.TotalMoney -= this.FixedExpenses
  1870. this.stopfun()
  1871. return
  1872. }
  1873. this.$alert('今日工作最多只能工作八小时,请准时下班', '下班', {
  1874. confirmButtonText: '确定',
  1875. callback: action => {}
  1876. });
  1877. this.CurrentDays++
  1878. this.formatdate = '00:00'
  1879. this.totalTime = 0
  1880. this.stopfun()
  1881. }
  1882. // 绿色A1工位的状况
  1883. this.BottomRawMaterialfun('A1','GreenStaff')
  1884. // 绿色C1工位的状况
  1885. this.BottomRawMaterialfun('C1','GreenStaff')
  1886. // 绿色F1工位的状况
  1887. this.BottomRawMaterialfun('F1','GreenStaff')
  1888. // 蓝色E1工位的状况
  1889. this.BottomRawMaterialfun('E1','BlueStaff')
  1890. // 紫色E2工位的状况
  1891. this.InferiorJudgmentfun('E2','PurpleStaff')
  1892. // 蓝色F2工位的状况
  1893. this.InferiorJudgmentfun('F2','BlueStaff')
  1894. // 褐色B3工位状况
  1895. this.ConfluenceStationfun('B3','BrownStaff')
  1896. // 紫色F3工位的状况
  1897. this.InferiorJudgmentfun('F3','PurpleStaff')
  1898. // 绿色A5工位的状况
  1899. this.InferiorJudgmentfun('A5','GreenStaff')
  1900. // 深蓝色C5工位的状况
  1901. this.InferiorJudgmentfun('C5','DarkBlueStaff',true)
  1902. // 深蓝色E5工位状况
  1903. this.InferiorJudgmentfun('E5','DarkBlueStaff',true)
  1904. // 深蓝色F5工位状况
  1905. this.InferiorJudgmentfun('F5','DarkBlueStaff',true)
  1906. // 蓝色A6工位状况
  1907. this.InferiorJudgmentfun('A6','BlueStaff')
  1908. // 紫色A7工位状况
  1909. this.InferiorJudgmentfun('A7','PurpleStaff')
  1910. // 褐色D7工位状况
  1911. this.ConfluenceStationfun('D7','BrownStaff')
  1912. // 紫色F7工位状况
  1913. this.InferiorJudgmentfun('F7','PurpleStaff')
  1914. // 蓝色A9工位的状况
  1915. this.TopWorkstation('A9','BlueStaff','demand1') // 顶部要卖出的方法
  1916. // 蓝色D9工位状况
  1917. this.TopWorkstation('D9','BlueStaff','demand2') // 顶部要卖出的方法
  1918. // 蓝色F9工位状况
  1919. this.TopWorkstation('F9','BlueStaff','demand3') // 顶部要卖出的方法
  1920. },1000 / this.DoubleSpeed)
  1921. },
  1922. // 查看下级是否有人 参数是下级的数组名称
  1923. // 如果没有下级的直接反 true
  1924. ViewSubordinatesfun(list) {
  1925. if (list.length > 0) {
  1926. if (list.length == 1) {
  1927. if (this[list[0]].inventory > 0) {
  1928. return true
  1929. }else {
  1930. return false
  1931. }
  1932. }else if (list.length == 2) {
  1933. if (this[list[0]].inventory > 0 && this[list[1]].inventory > 0) {
  1934. return true
  1935. }else {
  1936. return false
  1937. }
  1938. }
  1939. }else {
  1940. return true
  1941. }
  1942. },
  1943. // 清空工位的在跑时间和是否在岗状态
  1944. // 参数的当前要离岗的对象名称
  1945. ClearanceTimefun(objname) {
  1946. this[objname].OnDuty = false // 变成离岗状态
  1947. this[objname].RunningTime = 0 // 在跑时间变成零
  1948. this[objname].ProductionRestriction = false // 变成不限产状态
  1949. this[objname].LimitedProductionQuantity = 0 // 限产数量变成 0
  1950. },
  1951. // 查询员工的状态 参数查询的id
  1952. EmployeeStatusfun(e){
  1953. for(let item of this.Typedata) {
  1954. if (item.id == e) {
  1955. return item.name
  1956. }
  1957. }
  1958. },
  1959. // 弹窗购买原材料
  1960. // 参数是 当前的工位名称
  1961. PopUpPurchasefun(name) {
  1962. if ((this[name + 'Obj'].RawMaterialNumber + Number(this.StagingNumber)) < 0) {
  1963. this.$message.warning('输入的负数不能大于已经应有数量');
  1964. return
  1965. }
  1966. this[name + 'Obj'].RawMaterialNumber += Number(this.StagingNumber)
  1967. this.rawMaterialSpendCash += this.StagingNumber * this[name + 'Obj'].RawMaterialPrice
  1968. this.TotalMoney = this.TotalMoney - (this.StagingNumber * this[name + 'Obj'].RawMaterialPrice)
  1969. this.rawMaterialBefore()
  1970. },
  1971. // 限产弹窗的确认事件
  1972. LimtDialogfun(name){
  1973. if (this.xianchanInput > 0){
  1974. this[name+'Obj'].ProductionRestriction = true
  1975. this[name+'Obj'].LimitedProductionQuantity = Number(this.xianchanInput)
  1976. this.LimitBefore()
  1977. }
  1978. },
  1979. // 工位顶部卖出的公用方法
  1980. // 第三个参数的要卖个谁
  1981. TopWorkstation(station,name,SalesName) {
  1982. // 判断是否在职
  1983. if(this[station + 'Obj'].OnDuty){
  1984. // 判断是否有准备时间
  1985. if(this[station + 'Obj'].PreparationTime == 0) {
  1986. // 判断下级是否有货物
  1987. if (this.ViewSubordinatesfun(this[station + 'Obj'].subordinate)) {
  1988. // 判断是否数限产
  1989. if (this[station+'Obj'].ProductionRestriction) {
  1990. if (this[name+'1'].postName == station) {
  1991. this[name+'1'].currentState = 4 // 把 员工的状态变成限产
  1992. }else {
  1993. this[name + '2'].currentState = 4 // 把 员工的状态变成限产
  1994. }
  1995. // 判断限产数量是否生产完
  1996. if (this[station+'Obj'].LimitedProductionQuantity == 0) {
  1997. if (this[name + '1'].postName == station) {
  1998. this[name + '1'].currentState = 3 // 把 员工的状态变成限终
  1999. }else {
  2000. this[name + '2'].currentState = 3 // 把 员工的状态变成限终
  2001. }
  2002. return;
  2003. }
  2004. }else {
  2005. // 判断员工
  2006. if (this[name+'1'].postName == station) {
  2007. this[name+'1'].currentState = 1 // 把 员工的状态变成生产
  2008. }else {
  2009. this[name + '2'].currentState = 1 // 把 员工的状态变成生产
  2010. }
  2011. }
  2012. // 判断是否达到生产时间
  2013. if (this[station + 'Obj'].RunningTime >= this[station + 'Obj'].date) {
  2014. this[station + 'Obj'].inventory++
  2015. this[this[station + 'Obj'].subordinate[0]].inventory--
  2016. // 如果限产就减限产数量
  2017. if (this[station+'Obj'].ProductionRestriction) {
  2018. this[station+'Obj'].LimitedProductionQuantity--
  2019. }
  2020. // 卖出的价格
  2021. // this[station + 'Obj'].SellingPrice
  2022. if (this[station + 'Obj'].inventory > 0) {
  2023. this.TotalMoney += this[station + 'Obj'].SellingPrice * this[station + 'Obj'].inventory
  2024. this[station + 'Obj'].inventory = 0
  2025. this[SalesName].produced++
  2026. this[SalesName].TotalProduction--
  2027. }else {
  2028. }
  2029. this[station + 'Obj'].RunningTime = 0
  2030. }else {
  2031. this[station + 'Obj'].RunningTime++
  2032. }
  2033. }else {
  2034. if (this[name+'1'].postName == station) {
  2035. this[name+'1'].currentState = 0 // 把 员工的状态变成闲置
  2036. }else {
  2037. this[name+'2'].currentState = 0 // 把 员工的状态变成闲置
  2038. }
  2039. }
  2040. }else {
  2041. this[station + 'Obj'].PreparationTime--
  2042. }
  2043. }
  2044. },
  2045. // 中间的只需要判断下级的工位 type只有一个员工就传 true,两个员工的不传或传false
  2046. InferiorJudgmentfun(station,name,type=false){
  2047. // 判断是否在岗位
  2048. if (this[station + 'Obj'].OnDuty) {
  2049. // 判断是否有准备时间
  2050. if (this[station + 'Obj'].PreparationTime == 0) {
  2051. // 判断下级是否要货物
  2052. if(this.ViewSubordinatesfun(this[station + 'Obj'].subordinate)) {
  2053. // 判断是否数限产
  2054. if (this[station+'Obj'].ProductionRestriction) {
  2055. if (type) {
  2056. this[name].currentState = 4 // 把 员工的状态变成限产
  2057. }else {
  2058. if (this[name + '1'].postName == station) {
  2059. this[name + '1'].currentState = 4 // 把 员工的状态变成限产
  2060. }else {
  2061. this[name + '2'].currentState = 4 // 把 员工的状态变成限产
  2062. }
  2063. }
  2064. // 判断限产数量是否生产完
  2065. if (this[station+'Obj'].LimitedProductionQuantity == 0) {
  2066. if (type) {
  2067. this[name].currentState = 3 // 把 员工的状态变成限终
  2068. }else {
  2069. if (this[name + '1'].postName == station) {
  2070. this[name + '1'].currentState = 3 // 把 员工的状态变成限终
  2071. }else {
  2072. this[name + '2'].currentState = 3 // 把 员工的状态变成限终
  2073. }
  2074. }
  2075. return;
  2076. }
  2077. }else {
  2078. // 下面正常执行的代码
  2079. if (type) {
  2080. this[name].currentState = 1 // 把 员工的状态变成生产
  2081. }else {
  2082. if (this[name + '1'].postName == station) {
  2083. this[name + '1'].currentState = 1 // 把 员工的状态变成生产
  2084. }else {
  2085. this[name + '2'].currentState = 1 // 把 员工的状态变成生产
  2086. }
  2087. }
  2088. }
  2089. // 判断是否生产出货物
  2090. if (this[station + 'Obj'].RunningTime >= this[station + 'Obj'].date) {
  2091. this[station + 'Obj'].inventory++
  2092. this[this[station + 'Obj'].subordinate[0]].inventory--
  2093. this[station + 'Obj'].RunningTime = 0
  2094. // 如果限产就减限产数量
  2095. if (this[station+'Obj'].ProductionRestriction) {
  2096. this[station+'Obj'].LimitedProductionQuantity--
  2097. }
  2098. }else {
  2099. this[station + 'Obj'].RunningTime++
  2100. }
  2101. }else {
  2102. if (type) {
  2103. this[name].currentState = 0 // 把 员工的状态变成闲置
  2104. }else {
  2105. if (this[name + '1'].postName == station) {
  2106. this[name + '1'].currentState = 0 // 把 员工的状态变成闲置
  2107. }else {
  2108. this[name + '2'].currentState = 0 // 把 员工的状态变成闲置
  2109. }
  2110. }
  2111. }
  2112. }else {
  2113. this[station + 'Obj'].PreparationTime--
  2114. }
  2115. }
  2116. },
  2117. // 褐色汇聚的方法
  2118. ConfluenceStationfun(station,name){
  2119. // 判断是否在岗
  2120. if (this[station + 'Obj'].OnDuty) {
  2121. // 判断是否有准备时间
  2122. if (this[station + 'Obj'].PreparationTime == 0) {
  2123. // 判断下级是否有库存
  2124. if (this.ViewSubordinatesfun(this[station + 'Obj'].subordinate)) {
  2125. // 判断是否设置成限产
  2126. if (this[station+'Obj'].ProductionRestriction) {
  2127. this[name].currentState = 4 // 把 员工的状态变成限产
  2128. // 判断限产数量是否生产完
  2129. if (this[station+'Obj'].LimitedProductionQuantity == 0) {
  2130. this[name].currentState = 3 // 把 员工的状态变成限终
  2131. return;
  2132. }
  2133. }else {
  2134. this[name].currentState = 1 // 把 员工的状态变成生产
  2135. }
  2136. // 判读是否生产
  2137. if (this[station + 'Obj'].RunningTime >= this[station + 'Obj'].date) {
  2138. this[station + 'Obj'].inventory++
  2139. this[this[station + 'Obj'].subordinate[0]].inventory--
  2140. this[this[station + 'Obj'].subordinate[1]].inventory--
  2141. this[station + 'Obj'].RunningTime = 0
  2142. // 如果限产就减限产数量
  2143. if (this[station+'Obj'].ProductionRestriction) {
  2144. this[station+'Obj'].LimitedProductionQuantity--
  2145. }
  2146. }else {
  2147. this[station + 'Obj'].RunningTime++
  2148. }
  2149. }else {
  2150. this[name].currentState = 0 // 把 员工的状态变成闲置
  2151. }
  2152. }else {
  2153. this[station + 'Obj'].PreparationTime--
  2154. }
  2155. }
  2156. },
  2157. // 底部需要买原材料的方法
  2158. BottomRawMaterialfun(station,name){
  2159. // 判断是否在岗和是否有原材料
  2160. if (this[[station + 'Obj']].OnDuty && this.ViewSubordinatesfun(this[station + 'Obj'].subordinate)) {
  2161. // 判断是否有准备时间
  2162. if (this[station + 'Obj'].PreparationTime == 0) {
  2163. // 判断是否有原材料库存
  2164. if(this[station + 'Obj'].RawMaterialNumber != 0) {
  2165. // 判断是否要限产
  2166. if (this[station+'Obj'].ProductionRestriction) {
  2167. if (this[name + '1'].postName == station) {
  2168. this[name + '1'].currentState = 4 // 把 员工的状态变成限产
  2169. }else {
  2170. this[name + '2'].currentState = 4 // 把 员工的状态变成限产
  2171. }
  2172. if (this[station+'Obj'].LimitedProductionQuantity == 0) {
  2173. if (this[name + '1'].postName == station) {
  2174. this[name + '1'].currentState = 3 // 把 员工的状态变成限终
  2175. }else {
  2176. this[name + '2'].currentState = 3 // 把 员工的状态变成限终
  2177. }
  2178. return
  2179. }
  2180. }else {
  2181. // 判断是哪个员工是
  2182. if (this[name + '1'].postName == station) {
  2183. this[name + '1'].currentState = 1 // 把 员工的状态变成生产
  2184. }else {
  2185. this[name + '2'].currentState = 1 // 把 员工的状态变成生产
  2186. }
  2187. }
  2188. // 判断是否达到生产时间
  2189. if (this[station + 'Obj'].RunningTime >= this[station + 'Obj'].date) {
  2190. this[station + 'Obj'].inventory++
  2191. this[station + 'Obj'].RawMaterialNumber--
  2192. this[station + 'Obj'].RunningTime = 0
  2193. // 如果限产就减限产数量
  2194. if (this[station+'Obj'].ProductionRestriction) {
  2195. this[station+'Obj'].LimitedProductionQuantity--
  2196. }
  2197. }else {
  2198. this[station + 'Obj'].RunningTime++
  2199. }
  2200. }else {
  2201. if (this[name + '1'].postName == station) {
  2202. this[name + '1'].currentState = 0 // 把 员工的状态变成闲置
  2203. }else {
  2204. this[name + '2'].currentState = 0 // 把 员工的状态变成闲置
  2205. }
  2206. }
  2207. }else {
  2208. this[station + 'Obj'].PreparationTime--
  2209. }
  2210. }
  2211. },
  2212. // 下拉选择工位两个人的公用方法
  2213. // 参数传员工当前可选的数组数据 剩下的上一个方法带出来的
  2214. MultipleEmployeesfun(OptionalPost,e,staffName,currentData) {
  2215. for(let item of OptionalPost) {
  2216. if (item.name == e || e == '-') {
  2217. // 判断另一个员工是否在这个岗位 是就提醒不是就赋值
  2218. if (staffName.postName == e) {
  2219. console.log('该岗位已经有人在了')
  2220. this.$message.warning('该岗位已经有人在工作了');
  2221. }else {
  2222. // 不能重复选一个工位 如果想加取消就在这个 if 后面加 else
  2223. if (currentData.postName != e) {
  2224. this[e+'Obj'].OnDuty = true // 更改成在职状态
  2225. this[e+'Obj'].PreparationTime = currentData.PreparationTime // 赋值准备时间
  2226. currentData.currentState = 2 // 把 员工的状态变成转换
  2227. }
  2228. currentData.postName = e
  2229. }
  2230. }else {
  2231. if (staffName.postName != item.name) {
  2232. // 清空其他岗位的在职状态
  2233. this.ClearanceTimefun(item.name+'Obj')
  2234. }
  2235. }
  2236. }
  2237. },
  2238. // 把记录的时间秒转化成 00:00 格式
  2239. formatfun(seconds) {
  2240. let hour = Math.floor(seconds / 3600) >= 10 ? Math.floor(seconds / 3600) : '0' + Math.floor(seconds / 3600);
  2241. seconds -= 3600 * hour; // 算小时
  2242. let min = Math.floor(seconds / 60) >= 10 ? Math.floor(seconds / 60) : '0' + Math.floor(seconds / 60);
  2243. seconds -= 60 * min;
  2244. let sec = seconds >= 10 ? seconds : '0' + seconds;
  2245. return min + ':' + sec;
  2246. },
  2247. // 购买原材料的弹窗的开启
  2248. rawMaterialTruefun(name) {
  2249. this.StagingName = name
  2250. this.rawMaterialDialog = true
  2251. this.stopfun()
  2252. },
  2253. // 购买原材料的弹窗的关闭
  2254. rawMaterialBefore(){
  2255. this.rawMaterialDialog = false
  2256. this.StagingNumber = 0
  2257. },
  2258. // 限产弹窗的开启
  2259. xianchanfun(name){
  2260. this.StagingName = name
  2261. this.limitDialog = true
  2262. this.stopfun()
  2263. },
  2264. // 取消限产状态的事件
  2265. Cancellationlimitatio(name){
  2266. this.$message.success('取消限产成功');
  2267. this[name+'Obj'].ProductionRestriction = false
  2268. this[name+'Obj'].LimitedProductionQuantity = 0
  2269. this.LimitBefore()
  2270. },
  2271. // 限产弹窗的关闭
  2272. LimitBefore(){
  2273. this.limitDialog = false
  2274. this.xianchanInput = 0
  2275. },
  2276. // 结束确认弹窗
  2277. endConfirmfun(){
  2278. this.$confirm('确定关闭弹窗并重新开始吗?', '提示', {
  2279. confirmButtonText: '确定',
  2280. cancelButtonText: '取消',
  2281. type: 'warning'
  2282. }).then(() => {
  2283. this.settlementDialog = false
  2284. this.$router.go(0);
  2285. }).catch(() => {});
  2286. },
  2287. // 数字星期转 字符串星期
  2288. DigitalWeekfun(name){
  2289. return this.DigitalWeekList[name-1]
  2290. },
  2291. // 计时器停止
  2292. stopfun() {
  2293. this.timerType = false
  2294. clearInterval(this.stopInter)
  2295. },
  2296. }
  2297. }
  2298. </script>
  2299. <style scoped>
  2300. .home {
  2301. width: 100vw;
  2302. //height: 100vh;
  2303. padding: 5px 20px;
  2304. background: #fff;
  2305. box-sizing: border-box;
  2306. }
  2307. .leftbox {
  2308. width: 240px;
  2309. }
  2310. .leftbox > div {
  2311. margin: 10px 0;
  2312. }
  2313. .principalBox {
  2314. width: 100%;
  2315. background: #f4c179;
  2316. height: 40px;
  2317. border-radius: 10px;
  2318. display: flex;
  2319. align-items: center;
  2320. padding: 0 10px;
  2321. box-sizing: border-box;
  2322. //justify-content: center;
  2323. }
  2324. .leftimgbox {
  2325. width: 40px;
  2326. }
  2327. .leftimgbox > img {
  2328. width: 100%;
  2329. height: 100%;
  2330. }
  2331. .BoldText {
  2332. font-size: 26px;
  2333. font-weight: bold;
  2334. }
  2335. .CostTextLeft {
  2336. font-size: 18px;
  2337. font-weight: bold;
  2338. }
  2339. .CostTextRight {
  2340. font-size: 16px;
  2341. font-weight: bold;
  2342. }
  2343. .PersonnelResources {
  2344. //height: 600px;
  2345. border: 2px dashed #b9b9b9;
  2346. display: flex;
  2347. flex-direction: column;
  2348. padding: 10px 30px;
  2349. box-sizing: border-box;
  2350. position: relative;
  2351. }
  2352. .renlitext {
  2353. position: absolute;
  2354. right: 20px;
  2355. top: 10px;
  2356. font-size: 14px;
  2357. color: #7b7b7b;
  2358. }
  2359. .staffBox {
  2360. flex: 1;
  2361. margin-bottom: 25px;
  2362. //margin-bottom: 10px;
  2363. }
  2364. .staffBoxflex {
  2365. display: flex;
  2366. justify-content: space-between;
  2367. }
  2368. .staffBoxren {
  2369. width: 70px;
  2370. position: relative;
  2371. //transform: scale(0.8);
  2372. }
  2373. .staffBoxtext {
  2374. position: absolute;
  2375. z-index: 10;
  2376. left: 50%;
  2377. top: 5px;
  2378. transform: translateX(-50%);
  2379. }
  2380. .xialawz {
  2381. position: absolute;
  2382. width: 70px;
  2383. margin-top: -8px;
  2384. //bottom: 0;
  2385. }
  2386. .staffBox-img {
  2387. //width: 90%;
  2388. width: 60px;
  2389. position: relative;
  2390. left: 50%;
  2391. transform: translateX(-50%);
  2392. }
  2393. .MultiplyPlaybackBox {
  2394. width: 100%;
  2395. height: 40px;
  2396. border: 1px solid #b6b6b6;
  2397. display: flex;
  2398. justify-content: space-between;
  2399. align-items: center;
  2400. }
  2401. .speedbox {
  2402. width: 20px;
  2403. height: 20px;
  2404. margin: 0 20px;
  2405. background: #111111;
  2406. color: #fff;
  2407. text-align: center;
  2408. line-height: 20px;
  2409. cursor: pointer;
  2410. }
  2411. .StartButton {
  2412. width: 100%;
  2413. height: 50px;
  2414. background: #487373;
  2415. border-radius: 10px;
  2416. color: #fff;
  2417. font-size: 20px;
  2418. text-align: center;
  2419. line-height: 50px;
  2420. cursor: pointer;
  2421. }
  2422. .rightbox {
  2423. //width: calc(100vw - 200px);
  2424. padding-top: 5px;
  2425. //padding-left: 40px;
  2426. box-sizing: border-box;
  2427. }
  2428. .flowChartBox {
  2429. }
  2430. .PositionlineBox {
  2431. display: flex;
  2432. align-items: center;
  2433. margin-bottom: 10px;
  2434. padding-left: 40px;
  2435. }
  2436. .postBox {
  2437. width: 150px;
  2438. height: 60px;
  2439. border-radius: 10px;
  2440. display: flex;
  2441. justify-content: space-between;
  2442. padding: 10px;
  2443. box-sizing: border-box;
  2444. align-items: center;
  2445. margin-left: 40px;
  2446. }
  2447. .postBox:first-child {
  2448. margin-left: 20px;
  2449. }
  2450. .postBoxLeft {
  2451. display: flex;
  2452. }
  2453. .postBoxRight {
  2454. font-size: 12px;
  2455. color: #fff;
  2456. }
  2457. .stationBox {
  2458. width: 150px;
  2459. margin-left: 40px;
  2460. }
  2461. .stationBox:first-child {
  2462. margin-left: 20px;
  2463. }
  2464. .stationBox:last-child {
  2465. margin-right: 20px;
  2466. }
  2467. .PositionInventory {
  2468. width: 130px;
  2469. height: 30px;
  2470. border-radius: 10px;
  2471. border: 1px solid #8d8d8d;
  2472. margin-bottom: 2px;
  2473. font-size: 12px;
  2474. display: flex;
  2475. align-items: center;
  2476. padding: 0 10px;
  2477. }
  2478. .JobInformation {
  2479. width: 130px;
  2480. height: 50px;
  2481. border-radius: 10px;
  2482. border: 1px solid #000;
  2483. display: flex;
  2484. align-items: center;
  2485. justify-content: space-between;
  2486. padding: 5px 10px;
  2487. //box-sizing: border-box;
  2488. }
  2489. .JobInformation-left {
  2490. height: 100%;
  2491. border-right: 2px solid #fff;
  2492. text-align: center;
  2493. padding-right: 5px;
  2494. display: flex;
  2495. flex-direction: column;
  2496. justify-content: space-between;
  2497. }
  2498. .postTitle {
  2499. color: #000;
  2500. font-size: 24px;
  2501. }
  2502. .limit {
  2503. width: 40px;
  2504. height: 18px;
  2505. border-radius: 4px;
  2506. color: #fff;
  2507. font-size: 12px;
  2508. background: #6f2ee7;
  2509. cursor: pointer;
  2510. }
  2511. .JobInformation-right {
  2512. height: 100%;
  2513. font-size: 12px;
  2514. text-align: right;
  2515. margin-left: 8px;
  2516. }
  2517. .JobInformation-right > div {
  2518. display: flex;
  2519. align-items: center;
  2520. }
  2521. .rawmaterialBox {
  2522. border: 2px dashed #b9b9b9;
  2523. height: 60px;
  2524. margin-left: 40px;
  2525. display: flex;
  2526. align-items: center;
  2527. }
  2528. .procurebox {
  2529. width: 150px;
  2530. height: 40px;
  2531. border-radius: 8px;
  2532. text-align: center;
  2533. line-height: 40px;
  2534. font-size: 12px;
  2535. position: relative;
  2536. margin-left: 40px;
  2537. box-sizing: border-box;
  2538. cursor: pointer;
  2539. }
  2540. .procurebox:first-child {
  2541. margin-left: 20px;
  2542. }
  2543. .procureboxIocn {
  2544. position: absolute;
  2545. top: 50%;
  2546. left: 20px;
  2547. transform: translateY(-50%);
  2548. }
  2549. .xiaohezi {
  2550. background: #42b983;
  2551. //width: 100px;
  2552. width: 95%;
  2553. height: 95%;
  2554. //height: 80px;
  2555. font-size: 12px;
  2556. text-align: center;
  2557. margin: auto auto 10px;
  2558. }
  2559. ::v-deep .el-input--mini .el-input__inner {
  2560. height: 20px;
  2561. line-height: 20px;
  2562. border-radius: 6px;
  2563. padding-right: 25px;
  2564. }
  2565. ::v-deep .el-input--mini .el-input__icon {
  2566. line-height: 20px;
  2567. }
  2568. </style>