chejianbaogong.vue 195 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122
  1. <template>
  2. <div>
  3. <header>
  4. <div style="height: 50px;">
  5. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onBZ" >班组维护</el-button>
  6. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 90px" @click="onchanliang" v-if="zdtreeType === true" >日产量上报</el-button>
  7. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 60px" @click="onOver" >完工</el-button>
  8. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onzhicheng" >制程检验</el-button>
  9. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="ondianjian" >设备点检</el-button>
  10. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onxuncha" >管理巡查</el-button>
  11. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 95px" @click="onstatus" >设置机台状态</el-button>
  12. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onyinban">印版领退</el-button>
  13. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="onClear" >换型清场</el-button>
  14. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="pd_gdprintonClick" >工单打印</el-button>
  15. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 95px" @click="gzSel" >员工工资查询</el-button>
  16. <el-button type="primary" size="large" class="bt" style="color:white;font-size: 15px;font-weight: bold;width: 70px" @click="oncomplaints" >客诉记录</el-button>
  17. </div>
  18. </header>
  19. <el-container>
  20. <!-- <el-aside width="200px">
  21. <div class="JKWTree-tree">
  22. <h3 > 车间报工</h3>
  23. <el-tree :data="treeData" :props="defaultProps" :default-expand-all="true" @node-click="handleNodeClick"></el-tree>
  24. </div>
  25. </el-aside> -->
  26. <el-container>
  27. <!-- <el-header>dd</el-header>-->
  28. <el-main>
  29. <div class="gva-search-box" style=" overflow: hidden; padding: 0; margin-top:20px;display: flex;">
  30. <div style="flex: 1; border: 0px magenta solid; margin: 0; padding: 0; margin-left: 20px; margin-top: 20px; color: red;">
  31. <el-row :gutter="20">
  32. <el-col :span="5">
  33. <el-form-item label="机台号" prop="id" label-width="60" class="zy-label">
  34. <el-input v-model="formData.机台号" placeholder=""/>
  35. </el-form-item>
  36. </el-col>
  37. <el-col :span="8">
  38. <el-form-item label="工单编号" prop="id">
  39. <el-input v-model="formData.工单编号" placeholder="" />
  40. </el-form-item>
  41. </el-col>
  42. <el-col :span="10">
  43. <el-form-item label=" "prop="name">
  44. <el-input v-model="formData.产品名称" placeholder="" />
  45. </el-form-item>
  46. </el-col>
  47. </el-row>
  48. <el-row :gutter="20">
  49. <el-col :span="7">
  50. <el-form-item label="印件编号" style="font-size: 1.5vh;" prop="id">
  51. <el-input v-model="formData.印件号" placeholder="" />
  52. </el-form-item>
  53. </el-col>
  54. <el-col :span="15">
  55. <el-form-item label="工序名称" prop="name">
  56. <el-input v-model="formData.工序名称" placeholder="" />
  57. </el-form-item>
  58. </el-col>
  59. </el-row>
  60. <el-row :gutter="20">
  61. <el-col :span="4">
  62. <el-form-item label="班组成员" prop="id">
  63. </el-form-item>
  64. </el-col>
  65. </el-row>
  66. <el-row :gutter="1">
  67. <!-- 循环生成 el-input 组件 -->
  68. <el-col v-for="i in 6" :span="4" :key="i">
  69. <el-input v-model="formData[`sczl_bh${i}`]" placeholder="" />
  70. </el-col>
  71. </el-row>
  72. <el-row :gutter="1">
  73. <!-- 循环生成 el-input 组件 -->
  74. <el-col v-for="i in 6" :span="4" :key="i">
  75. <el-input v-model="formData[`sczl_name${i}`]" placeholder="" class="red-input"/>
  76. </el-col>
  77. </el-row>
  78. </div>
  79. <div style="flex: 1; border: 0px lawngreen solid; margin: 0; padding: 0; overflow: hidden;">
  80. <el-table tooltip-effect="dark" :data="selectData" row-key="ID"
  81. highlight-current-row="true" border
  82. :row-style="{ height: '20px'}" :cell-style="{ padding: '0px'}"
  83. :header-row-style="{ height: '20px'}" style="width:100%;height: 30vh;" @row-dblclick="handleSelectClick" >
  84. <el-table-column prop="process" label="印件及工序"width="480" />
  85. <el-table-column prop="completed" label="已完成板数" width="470" />
  86. </el-table>
  87. </div>
  88. </div>
  89. <div class="gva-table-box" style="margin-top: 20px;">
  90. <el-tabs v-model="activName" type="card" @tab-click="duohandleClick" >
  91. <el-tab-pane label="设备作业清单" @click="showTable('设备作业清单')" name="first" :class="{ 'active-tab': activeTab === 'first' }" style="font-size: 16px;">
  92. <el-table ref="multipleTable"
  93. :show-overflow-tooltip="true"
  94. highlight-current-row="true"
  95. :row-style="{ height: '40px' }"
  96. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '40px' }"
  97. :header-cell-style="{ padding: '0px' }"
  98. @contextmenu.prevent="yjonRightClick"
  99. @row-click="yjupdateCompanyFunc"
  100. style="width: 100%;height: 330px;color:purple;font-weight: bold;" border tooltip-effect="dark" :data="sbzyData" row-key="ID" @selection-change="handleSelectionChange">
  101. <!-- <el-table-column type="selection" width="55" />-->
  102. <!-- <el-table-column align="left" label="选择" prop="bh" width="80"/> -->
  103. <el-table-column align="left" sortable label="工单编号|质量信息" prop="工单编号|质量信息" width="165"/>
  104. <el-table-column align="left" sortable label="印件资料" prop="印件资料" width="340" />
  105. <el-table-column align="left" sortable label="工序名称" prop="工序名称" width="320" />
  106. <el-table-column align="left" sortable label="计划产量/已完成" prop="计划产量/已完成" width="160"/>
  107. <el-table-column align="left" sortable label="装版时数" prop="装版时数" width="120"/>
  108. <el-table-column align="left" sortable label="工序产能" prop="工序产能" width="120"/>
  109. <el-table-column align="left" sortable label="计划工时" prop="计划工时" width="120"/>
  110. <el-table-column align="left" sortable label="计划生产时段" prop="计划生产时段" width="210" />
  111. <el-table-column align="left" sortable label="排产备注" prop="排产备注" width="120" />
  112. <el-table-column align="left" sortable label="产品名称" prop="产品名称" width="270" />
  113. </el-table>
  114. </el-tab-pane>
  115. <el-tab-pane label="班组人员及分配比例" @click="showTable('班组人员及分配比例')" name="second">
  116. <el-table ref="multipleTable"
  117. :show-overflow-tooltip="true"
  118. :row-style="{ height: '40px' }"
  119. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '40px' }"
  120. :header-cell-style="{ padding: '0px' }"
  121. @contextmenu.prevent="bzonRightClick"
  122. @row-dblclick="gyupdateCompanyFunc"
  123. :row-class-name="rowClassStyle"
  124. :cell-class-name="bzryplanUsageCellClass"
  125. style="width: 100%;height: 400px;color:purple;font-weight: bold;" border tooltip-effect="dark" :data="FPData" row-key="ID" @selection-change="handleSelectionChange"
  126. @row-click="clickybupdate">
  127. <el-table-column type="selection" label="选择" width="55" />
  128. <el-table-column align="left" label="班组号" prop="班组号" width="80" />
  129. <el-table-column align="left" label="组员1" prop="0" width="240" />
  130. <el-table-column align="left" label="组员2" prop="1" width="240" />
  131. <el-table-column align="left" label="组员3" prop="2" width="240" />
  132. <el-table-column align="left" label="组员4" prop="3" width="240" />
  133. <el-table-column align="left" label="组员5" prop="4" width="220" />
  134. <el-table-column align="left" label="组员6" prop="5" width="100" />
  135. <el-table-column align="left" label="组员7" prop="6" width="100" />
  136. <el-table-column align="left" label="组员8" prop="7" width="100" />
  137. <el-table-column align="left" label="组员9" prop="8" width="100" />
  138. <el-table-column align="left" label="组员10" prop="9_正品版" width="120" />
  139. </el-table>
  140. </el-tab-pane>
  141. <el-tab-pane label="当班产量明细" @click="showsTable('当班产量明细')" name="third">
  142. <el-table ref="multipleTable"
  143. highlight-current-row="true"
  144. :show-overflow-tooltip="true"
  145. :row-style="{ height: '40px' }"
  146. :cell-style="{ padding: '0px'}" :header-row-style="{ height: '40px' }"
  147. :header-cell-style="{ padding: '0px' }"
  148. @row-dblclick="ybupdateCompanyFunc"
  149. style="width: 100%;height: 400px;color:purple;font-weight: bold;" border tooltip-effect="dark" :data="CLMXData" row-key="ID" @selection-change="handleSelectionChange"
  150. >
  151. <!-- <el-table-column type="selection" width="55" />-->
  152. <el-table-column align="left" label="生产时段" prop="生产时间段" width="180"/>
  153. <el-table-column align="left" label="工单编号" prop="工单编号" width="120" />
  154. <el-table-column align="left" label="产品名称" prop="产品名称" width="240" />
  155. <el-table-column align="left" label="印件及工序" prop="印件及工序" width="320"/>
  156. <el-table-column align="left" label="标牌号" prop="标牌号" width="80"/>
  157. <el-table-column align="left" label="产量" prop="产量" width="100"/>
  158. <el-table-column align="left" label="制程废品" prop="制程废品" width="100" />
  159. <el-table-column align="left" label="制程次品" prop="制程次品" width="100" />
  160. <el-table-column align="left" label="前工序废" prop="前工序废" width="100" />
  161. <el-table-column align="left" label="来料异常" prop="来料异常" width="100"/>
  162. <el-table-column align="left" label="装版工时" prop="装版工时" width="100" />
  163. <el-table-column align="left" label="保养工时" prop="保养工时" width="100" />
  164. <el-table-column align="left" label="打样工时" prop="打样工时" width="100"/>
  165. <el-table-column align="left" label="异常停机工时" prop="异常停机工时" width="120"/>
  166. <el-table-column align="left" label="通电工时" prop="通电工时" width="100"/>
  167. <el-table-column align="left" label="码开始行" prop="码开始行" width="100" />
  168. <el-table-column align="left" label="码结束行" prop="码结束行" width="100" />
  169. <el-table-column align="left" label="码包" prop="码包" width="100" />
  170. <el-table-column align="left" label="主电表" prop="主电表" width="100"/>
  171. <el-table-column align="left" label="辅电表" prop="辅电表" width="100" />
  172. <el-table-column align="left" label="色度数" prop="色度" width="100" />
  173. </el-table>
  174. </el-tab-pane>
  175. <el-tab-pane label="检验记录" @click="showTable('检验记录')" name="fourth">
  176. <el-table ref="multipleTable"
  177. :row-style="{ height: '40px' }"
  178. :cell-style="{ padding: '0px'}" :header-row-style="{ height: '40px' }"
  179. :header-cell-style="{ padding: '0px' }"
  180. :show-overflow-tooltip="true"
  181. highlight-current-row="true"
  182. style="width: 100%;height: 400px;color:purple;font-weight: bold;" border tooltip-effect="dark" :data="JYData" row-key="ID" @selection-change="handleSelectionChange">
  183. <!-- <el-table-column type="selection" width="55" />-->
  184. <el-table-column align="left" label="工单编号" prop="工单编号" width="120"/>
  185. <el-table-column align="left" label="印件号" prop="印件号" width="120" />
  186. <el-table-column align="left" label="工序名称" prop="工序名称" width="430" />
  187. <el-table-column align="left" label="检验项目" prop="检验项目" width="1140"/>
  188. <el-table-column
  189. v-for="time in columnNames"
  190. :key="time"
  191. :label="time"
  192. :prop="time"
  193. align="center"
  194. width="120"
  195. ></el-table-column>
  196. </el-table>
  197. </el-tab-pane>
  198. </el-tabs>
  199. <!-- <div class="gva-pagination">
  200. <el-pagination
  201. layout="total, sizes, prev, pager, next, jumper"
  202. :current-page="page"
  203. :page-size="pageSize"
  204. :page-sizes="[10, 30, 50, 100]"
  205. :total="total"
  206. @current-change="handleCurrentChange"
  207. @size-change="handleSizeChange"
  208. />
  209. </div> -->
  210. </div>
  211. <el-dialog v-model="dialogFormVisible" :before-close="closeDialog" :title="type==='create'?'添加':'修改'" destroy-on-close>
  212. <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
  213. <el-tab-pane label="当日上报产量" @click="showTable('工艺资料')" name="first">
  214. <el-table ref="multipleTable"
  215. :show-overflow-tooltip="true"
  216. :row-style="{ height: '20px' }"
  217. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  218. :header-cell-style="{ padding: '0px' }"
  219. highlight-current-row="true"
  220. style="width: 100%;height: 400px" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange">
  221. <el-table-column type="selection" width="55" />
  222. <el-table-column align="left" label="选择" prop="工单编号" width="100"/>
  223. <el-table-column align="left" label="产品名称" prop="重点工序" width="100"/>
  224. <el-table-column align="left" label="工序" prop="工序备注" width="240"/>
  225. <el-table-column align="left" label="备注" prop="机组" width="100"/>
  226. <el-table-column align="left" label="产量" prop="小时产能" width="100"/>
  227. <el-table-column align="left" label="千件工价" prop="生产工时" width="100"/>
  228. <el-table-column align="left" label="日定额" prop="辅助工时" width="100"/>
  229. <el-table-column align="left" label="补产标准" prop="印刷方式" width="100"/>
  230. <el-table-column align="left" label="难度系数" prop="版距" width="100"/>
  231. <el-table-column align="left" label="印刷方式" prop="创建用户" width="120"/>
  232. <el-table-column align="left" label="组员1" prop="Gy0_gxh" width="240" />
  233. <el-table-column align="left" label="组员2" prop="gy0_gxmc" width="240" />
  234. <el-table-column align="left" label="组员3" prop="add_gxmc" width="240" />
  235. <el-table-column align="left" label="组员4" prop="Gy0_Ks" width="240" />
  236. <el-table-column align="left" label="组员5" prop="Gy0_ls" width="100" />
  237. <el-table-column align="left" label="组员6" prop="备注" width="100" />
  238. <el-table-column align="left" label="组员7" prop="工价系数" width="100" />
  239. <el-table-column align="left" label="组员8" prop="损耗系数" width="100" />
  240. <el-table-column align="left" label="组员9" prop="Gy0_Ms" width="100" />
  241. <el-table-column align="left" label="组员10" prop="人工检_正品版" width="120" />
  242. <el-table-column align="left" label="制程废品" prop="Sys_id" width="100" />
  243. <el-table-column align="left" label="制程次品" prop="建档日期" width="100" />
  244. <el-table-column align="left" label="前工序废" prop="更新日期" width="100" />
  245. <el-table-column align="left" label="来料异常" prop="YB_方案" width="100"/>
  246. <el-table-column align="left" label="装版工时" prop="YB_Yjno" width="100" />
  247. <el-table-column align="left" label="保养工时" prop="印版类别" width="100" />
  248. <el-table-column align="left" label="打样工时" prop="存货编码" width="100"/>
  249. <el-table-column align="left" label="异常停机工时" prop="印版名称" width="120"/>
  250. <el-table-column align="left" label="通电工时" prop="考核印数" width="100"/>
  251. <el-table-column align="left" label="码开始行" prop="Sys_id" width="100" />
  252. <el-table-column align="left" label="码结束行" prop="建档日期" width="100" />
  253. <el-table-column align="left" label="码包" prop="更新日期" width="100" />
  254. <el-table-column align="left" label="主电表" prop="YB_方案" width="100"/>
  255. <el-table-column align="left" label="辅电表" prop="YB_Yjno" width="100" />
  256. <el-table-column align="left" label="色度数" prop="印版类别" width="100" />
  257. <el-table-column align="left" label="用户" prop="YB_Yjno" width="100" />
  258. <el-table-column align="left" label="更新时间" prop="印版类别" width="100" />
  259. </el-table>
  260. </el-tab-pane>
  261. <el-tab-pane label="当日制程检验记录" @click="showTable('印件资料')" name="second">
  262. <el-table ref="multipleTable"
  263. :row-style="{ height: '20px' }"
  264. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  265. :header-cell-style="{ padding: '0px' }"
  266. :show-overflow-tooltip="true"
  267. highlight-current-row="true"
  268. style="width: 100%;height: 400px" border tooltip-effect="dark" :data="drzcData" row-key="ID" @selection-change="handleSelectionChange">
  269. <el-table-column type="selection" width="55" />
  270. <el-table-column align="left" label="工单编号" prop="工单编号" width="120"/>
  271. <el-table-column align="left" label="印件号" prop="印件号" width="120" />
  272. <el-table-column align="left" label="工序名称" prop="工序名称" width="330" />
  273. <el-table-column align="left" label="检验项目" prop="检验项目" width="120"/>
  274. <el-table-column
  275. v-for="time in columnNames"
  276. :key="time"
  277. :label="time"
  278. :prop="time"
  279. align="center"
  280. width="120"
  281. ></el-table-column>
  282. </el-table>
  283. </el-tab-pane>
  284. </el-tabs>
  285. </el-dialog>
  286. <el-dialog v-model="detailShow"
  287. fullscreen
  288. style="font-size: 50px;font-weight: bold;" lock-scroll :before-close="closeDetailShow" title="机台班组维护" destroy-on-close>
  289. <div>
  290. <el-table ref="multipleTable"
  291. :row-style="{ height: '50px' }"
  292. :cell-style="{ padding: '0px' ,color:'blue'}" :header-row-style="{ height: '40px' }"
  293. :header-cell-style="{ padding: '0px' }"
  294. :show-overflow-tooltip="true"
  295. highlight-current-row="true" @row-click="BZhandle"
  296. style="width: 100%;height: 300px;margin-top: 0px;font-weight: bold;" border tooltip-effect="dark"
  297. :data="bzData" row-key="ID" @selection-change="BZSelectionChange">
  298. <!-- <el-table-column type="selection" width="55" /> -->
  299. <el-table-column align="left" label="机台" prop="JTMC" width="70"/>
  300. <el-table-column align="left" label="班组" prop="班组号" width="60"/>
  301. <el-table-column align="left" label="组员1" prop="0" width="195"/>
  302. <el-table-column align="left" label="组员2" prop="1" width="195"/>
  303. <el-table-column align="left" label="组员3" prop="2" width="195"/>
  304. <el-table-column align="left" label="组员4" prop="3" width="195"/>
  305. <el-table-column align="left" label="组员5" prop="4" width="195"/>
  306. <el-table-column align="left" label="组员6" prop="5" width="195"/>
  307. <el-table-column align="left" label="组员7" prop="6" width="180"/>
  308. <el-table-column align="left" label="组员8" prop="7" width="100"/>
  309. <el-table-column align="left" label="组员9" prop="8" width="100"/>
  310. <el-table-column align="left" label="特殊组员" prop="9" width="100"/>
  311. <el-table-column align="left" label="UNIQID" prop="ID" width="100"/>
  312. </el-table>
  313. </div>
  314. <div style="margin-top:100px;font-weight: bold;color:purple">
  315. <el-row :gutter="20">
  316. <el-col :span="10">
  317. <el-form-item label="机台编号" prop="id">
  318. <el-select v-model="selectedOption" placeholder="请选择">
  319. <el-option
  320. v-for="item in dropdownOptions"
  321. :key="item.value"
  322. :label="item.label"
  323. :value="item.value"
  324. ></el-option>
  325. </el-select>
  326. </el-form-item>
  327. </el-col>
  328. <el-col :span="10">
  329. <el-form-item label="班组编号" prop="id">
  330. <el-select v-model="BZMC" placeholder="" >
  331. <el-option label="A 班" value="A 班"></el-option>
  332. <el-option label="B 班" value="B 班"></el-option>
  333. </el-select>
  334. </el-form-item>
  335. </el-col>
  336. </el-row>
  337. <div style="display: flex;font-weight: bold;color:purple">
  338. <div class="groupbox float-div" style="height: 20vh; width: 130vh;font-weight: bold;color:purple;font-size: 2.5vh;">
  339. <span class="grouptitle">组员及分配比例</span>
  340. <el-row :gutter="10" style="margin-top: 0px; height: 5vh;">
  341. <el-col :span="2">
  342. <span></span>
  343. </el-col>
  344. <el-col :span="2">
  345. </el-col>
  346. <el-col :span="2">
  347. </el-col>
  348. <el-col :span="2">
  349. </el-col>
  350. <el-col :span="2">
  351. </el-col>
  352. <el-col :span="2">
  353. </el-col>
  354. <el-col :span="2">
  355. </el-col>
  356. <el-col :span="2">
  357. </el-col>
  358. <el-col :span="2">
  359. </el-col>
  360. <el-col :span="3">
  361. </el-col>
  362. <el-col :span="3">
  363. <el-form-item label="特殊组员" prop="id">
  364. </el-form-item>
  365. </el-col>
  366. </el-row>
  367. <el-row :gutter="10" style="margin-top: 0px;">
  368. <el-col :span="3">
  369. <el-input v-model="formDatas.code1" @keyup.enter.native="getbzyg($event, '1')" placeholder=""/>
  370. </el-col>
  371. <el-col :span="3">
  372. <el-input v-model="formDatas.code2" @keyup.enter.native="getbzyg($event, '2')" placeholder="" />
  373. </el-col>
  374. <el-col :span="3">
  375. <el-input v-model="formDatas.code3" @keyup.enter.native="getbzyg($event, '3')" placeholder="" />
  376. </el-col>
  377. <el-col :span="3">
  378. <el-input v-model="formDatas.code4" @keyup.enter.native="getbzyg($event, '4')" placeholder="" />
  379. </el-col>
  380. <el-col :span="3">
  381. <el-input v-model="formDatas.code5" @keyup.enter.native="getbzyg($event, '5')" placeholder="" />
  382. </el-col>
  383. <el-col :span="3">
  384. <el-input v-model="formDatas.code6" @keyup.enter.native="getbzyg($event, '6')" placeholder="" />
  385. </el-col>
  386. <el-col :span="3">
  387. <el-input v-model="formDatas.code7" @keyup.enter.native="getbzyg($event, '7')" placeholder="" />
  388. </el-col>
  389. <el-col :span="3">
  390. <el-input v-model="formDatas.code8" @keyup.enter.native="getbzyg($event, '8')" placeholder="" />
  391. </el-col>
  392. </el-row>
  393. <el-row :gutter="10" style="margin-top: 1px;font-weight: bold;color:purple">
  394. <!-- <el-col :span="2">
  395. <span></span>
  396. </el-col> -->
  397. <el-col :span="3">
  398. <el-input v-model="formDatas.name1" placeholder="" />
  399. </el-col>
  400. <el-col :span="3">
  401. <el-input v-model="formDatas.name2" placeholder="" />
  402. </el-col>
  403. <el-col :span="3">
  404. <el-input v-model="formDatas.name3" placeholder="" />
  405. </el-col>
  406. <el-col :span="3">
  407. <el-input v-model="formDatas.name4" placeholder="" />
  408. </el-col>
  409. <el-col :span="3">
  410. <el-input v-model="formDatas.name5" placeholder="" />
  411. </el-col>
  412. <el-col :span="3">
  413. <el-input v-model="formDatas.name6" placeholder="" />
  414. </el-col>
  415. <el-col :span="3">
  416. <el-input v-model="formDatas.name7" placeholder="" />
  417. </el-col>
  418. <el-col :span="3">
  419. <el-input v-model="formDatas.name8" placeholder="" />
  420. </el-col>
  421. </el-row>
  422. <el-row :gutter="10" style="margin-top: 1px;font-weight: bold;color:purple">
  423. <el-col :span="3">
  424. <el-input v-model="formDatas.percentage1" placeholder="" />
  425. </el-col>
  426. <el-col :span="3">
  427. <el-input v-model="formDatas.percentage2" placeholder="" />
  428. </el-col>
  429. <el-col :span="3">
  430. <el-input v-model="formDatas.percentage3" placeholder="" />
  431. </el-col>
  432. <el-col :span="3">
  433. <el-input v-model="formDatas.percentage4" placeholder="" />
  434. </el-col>
  435. <el-col :span="3">
  436. <el-input v-model="formDatas.percentage5" placeholder="" />
  437. </el-col>
  438. <el-col :span="3">
  439. <el-input v-model="formDatas.percentage6" placeholder="" />
  440. </el-col>
  441. <el-col :span="3">
  442. <el-input v-model="formDatas.percentage7" placeholder="" />
  443. </el-col>
  444. <el-col :span="3">
  445. <el-input v-model="formDatas.percentage8" placeholder="" />
  446. </el-col>
  447. </el-row>
  448. </div>
  449. <div style="height: 50vh; width: 15vh;margin-top: 3vh;">
  450. <el-button type="text"></el-button>
  451. <el-button style="margin-bottom: 1vh; width:15vh;background-color:cornflowerblue;font-size: 2.0vh;font-weight: bold; color: white;" @click="addBz" >新 增</el-button>
  452. <el-button style="margin-bottom: 1vh;width:15vh;background-color:cornflowerblue;font-size: 2.0vh;font-weight: bold; color: white;" @click="selectBz" >更新当前班组</el-button>
  453. <el-button style="margin-bottom: 1vh;width:15vh;background-color:cornflowerblue;font-size: 2.0vh;font-weight: bold; color: white;" @click="delBz" >删除当前班组</el-button>
  454. </div>
  455. </div>
  456. </div>
  457. </el-dialog>
  458. <!-- 组员及分配比例-->
  459. <el-dialog v-model="blModel" :before-close="() => blModel = false" style="width: 20%">
  460. <el-form>
  461. <div>
  462. <el-table :data="employeeData" border :show-overflow-tooltip="true" :cell-class-name="blplanUsageCellClass" @row-click="tablebllickHandler($event)">
  463. <el-table-column prop="员工编号" label="员工编号"></el-table-column>
  464. <el-table-column prop="ygxm" label="员工姓名"></el-table-column>
  465. </el-table>
  466. </div>
  467. </el-form>
  468. </el-dialog>
  469. <el-dialog v-model="complaintsShow"
  470. fullscreen
  471. style="font-size: 50px;font-weight: bold;"
  472. lock-scroll :before-close="closecomplaintsShow"
  473. title="产品客诉查询" destroy-on-close>
  474. <el-table ref="multipleTable"
  475. :row-style="{ height: '20px' }"
  476. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  477. :header-cell-style="{ padding: '0px' }"
  478. :show-overflow-tooltip="true"
  479. highlight-current-row="true" @row-click="complaintshandle"
  480. style="width: 100%;height: 30vh;margin-top: 0px;" border tooltip-effect="dark"
  481. :data="complaintsData" row-key="ID" @selection-change="complaintsSelectionChange">
  482. <!-- <el-table-column type="selection" width="55" /> -->
  483. <el-table-column align="left" label="产品编号" prop="产品编号" width="120"/>
  484. <el-table-column align="left" label="产品名称" prop="产品名称" width="200"/>
  485. <el-table-column align="left" label="客诉日期" prop="客诉日期" width="120"/>
  486. <el-table-column align="left" label="客诉单号" prop="客诉单号" width="120"/>
  487. <el-table-column align="left" label="客诉方式" prop="客诉方式" width="100"/>
  488. <el-table-column align="left" label="订单编号" prop="订单编号" width="100"/>
  489. <el-table-column align="left" label="缺陷关键字" prop="缺陷关键字" width="140"/>
  490. <el-table-column align="left" label="客诉性质" prop="客诉性质" width="100"/>
  491. <el-table-column align="left" label="主要责任部门" prop="主要责任部门" width="140"/>
  492. <el-table-column align="left" label="次要责任部门" prop="次要责任部门" width="140"/>
  493. </el-table>
  494. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  495. <el-col :span="6" style="margin-bottom: 1px;margin-top: 0px;">
  496. <el-form-item label="客户编号" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  497. <el-input v-model="selectedRowData.客户编号" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  498. </el-form-item>
  499. </el-col>
  500. <el-col :span="15" style="margin-bottom: 1px;margin-top: 0px;">
  501. <el-form-item label="客户名称" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  502. <el-input v-model="selectedRowData.客户名称" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  503. </el-form-item>
  504. </el-col>
  505. </el-row>
  506. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  507. <el-col :span="6" style="margin-bottom: 1px;margin-top: 0px;">
  508. <el-form-item label="客诉单号" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  509. <el-input v-model="selectedRowData.客诉单号" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  510. </el-form-item>
  511. </el-col>
  512. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  513. <el-form-item label="客诉日期" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  514. <el-input v-model="selectedRowData.客诉日期" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  515. </el-form-item>
  516. </el-col>
  517. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  518. <el-form-item label="方式" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  519. <el-input v-model="selectedRowData.客诉方式" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  520. </el-form-item>
  521. </el-col>
  522. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  523. <el-form-item label="批次号" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  524. <el-input v-model="selectedRowData.订单编号" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  525. </el-form-item>
  526. </el-col>
  527. </el-row>
  528. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  529. <el-col :span="20" style="margin-bottom: 1px;margin-top: 0px;">
  530. <el-form-item label="反馈问题" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  531. <el-input v-model="selectedRowData.客诉描述" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  532. </el-form-item>
  533. </el-col>
  534. </el-row>
  535. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  536. <el-col :span="20" style="margin-bottom: 1px;margin-top: 0px;">
  537. <el-form-item label="缺陷关键字" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  538. <el-input v-model="selectedRowData.缺陷关键字" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  539. </el-form-item>
  540. </el-col>
  541. </el-row>
  542. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  543. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  544. <el-form-item label="性质" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  545. <el-input v-model="selectedRowData.客诉性质" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  546. </el-form-item>
  547. </el-col>
  548. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  549. <el-form-item label="扣分" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  550. <el-input v-model="selectedRowData.扣分" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  551. </el-form-item>
  552. </el-col>
  553. </el-row>
  554. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  555. <el-col :span="20" style="margin-bottom: 1px;margin-top: 0px;">
  556. <el-form-item label="主责任部门" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  557. <el-input v-model="selectedRowData.主要责任部门" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  558. </el-form-item>
  559. </el-col>
  560. </el-row>
  561. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  562. <el-col :span="20" style="margin-bottom: 1px;margin-top: 0px;">
  563. <el-form-item label="次责任部门" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  564. <el-input v-model="selectedRowData.次要责任部门" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  565. </el-form-item>
  566. </el-col>
  567. </el-row>
  568. </el-dialog>
  569. <el-dialog
  570. v-model="dianjianVisible"
  571. title="设备点检记录"
  572. destroy-on-close
  573. fullscreen
  574. style="font-size: 3.5vh;font-weight: bold;"
  575. >
  576. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  577. <el-col :span="4" style="margin-bottom: 0px;margin-top: 0px;">
  578. <el-form-item label="设备编号" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  579. <el-input v-model="JTMC" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  580. </el-form-item>
  581. </el-col>
  582. <el-col :span="10" style="margin-bottom: 0px;margin-top: 0px;">
  583. <el-row style="margin-bottom: 0px;margin-top: 0px;">
  584. <el-col style="margin-bottom: 0px;margin-top: 0px;">
  585. <el-input v-model="formData.产品名称" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  586. </el-col>
  587. </el-row>
  588. </el-col>
  589. </el-row>
  590. <div style="display: flex;">
  591. <div style="flex: 0.1;margin-top: 0px;">
  592. <el-aside width="25vh" style="margin: 0; height: 50vh; margin-top: 0px;">
  593. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  594. <el-tree :data="dianjiantreeData" :props="defaultProps" highlight-current="true"
  595. @node-click="dianjianNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
  596. </div>
  597. </el-aside>
  598. </div>
  599. <div style="flex: 1; margin: 0;">
  600. <el-table
  601. tooltip-effect="dark"
  602. :data="dianjianselectData"
  603. row-key="ID"
  604. highlight-current-row="true"
  605. :show-overflow-tooltip="true"
  606. border @row-click="dianjianhandle"
  607. style="width:119vh; height:45vh; margin-top: 5px;"
  608. @row-dblclick="handleSelectClick"
  609. :row-class-name="rowClassName"
  610. >
  611. <el-table-column
  612. prop="检验项目"
  613. label="检验项目"
  614. width="320"
  615. />
  616. <el-table-column
  617. prop="点检方法"
  618. label="点检方法"
  619. width="180"
  620. />
  621. <el-table-column
  622. v-slot="scope"
  623. label="正常"
  624. width="70"
  625. >
  626. <el-checkbox v-model="scope.row.zc" @click="zcClick(scope.row)"></el-checkbox>
  627. </el-table-column>
  628. <el-table-column
  629. v-slot="scope"
  630. label="异常"
  631. width="70"
  632. >
  633. <el-checkbox v-model="scope.row.yc" @click="ycClick(scope.row)"></el-checkbox>
  634. </el-table-column>
  635. <el-table-column
  636. v-slot="scope"
  637. label="备注说明"
  638. width="180"
  639. >
  640. <el-input v-model="scope.row.remark"/>
  641. </el-table-column>
  642. <el-table-column
  643. v-slot="scope"
  644. label="不检测"
  645. width="75"
  646. >
  647. <el-checkbox v-model="scope.row.notjc" @click="notjcClick(scope.row)"></el-checkbox>
  648. </el-table-column>
  649. </el-table>
  650. <el-row :gutter="24">
  651. <el-col :span="17">
  652. <el-input v-model="pandingfangfa" style="margin-top=0px; height: 40px; margin-bottom: 0px;" />
  653. </el-col>
  654. </el-row>
  655. </div>
  656. </div>
  657. <template #footer>
  658. <div class="dialog-footer">
  659. <el-button @click="closedianjianDialog"style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;">关 闭</el-button>
  660. <el-button type="primary" style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;"@click="dianjianDialog">提 交</el-button>
  661. </div>
  662. </template>
  663. </el-dialog>
  664. <el-dialog
  665. v-model="zhichengVisible"
  666. title="制程检验记录"
  667. destroy-on-close
  668. fullscreen
  669. style="font-size: 3.5vh;font-weight: bold;"
  670. >
  671. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  672. <el-col :span="5" style="margin-top=0px; margin-bottom: 0px;">
  673. <el-form-item label="工单编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  674. <el-input v-model="xunchaData.order" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  675. </el-form-item>
  676. </el-col>
  677. <el-col :span="15" style="margin-top=0px; margin-bottom: 0px;">
  678. <el-row style="margin-top=0px; margin-bottom: 0px;">
  679. <el-col style="margin-top=0px; margin-bottom: 0px;">
  680. <el-input v-model="xunchaData.product_name" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  681. </el-col>
  682. </el-row>
  683. </el-col>
  684. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  685. <el-form-item label="流程单" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  686. <el-input v-model="xunchaData.lcdh" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  687. </el-form-item>
  688. </el-col>
  689. </el-row>
  690. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  691. <el-col :span="5" style="margin-top=0px; margin-bottom: 0px;">
  692. <el-form-item label="印件编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  693. <el-input v-model="xunchaData.yjno" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  694. </el-form-item>
  695. </el-col>
  696. <el-col :span="15" style="margin-top=0px; margin-bottom: 0px;">
  697. <el-input v-model="xunchaData.gxmc" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  698. </el-col>
  699. </el-row>
  700. <div style="display: flex;margin-top: 20px;">
  701. <div style="flex: 0.1;">
  702. <el-aside width="25vh" style="margin: 0;">
  703. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  704. <el-tree :data="zhichengtreeData" :props="defaultProps" highlight-current="true"
  705. @node-click="zhichengNodeClick"></el-tree>
  706. </div>
  707. </el-aside>
  708. </div>
  709. <div v-if="zhichengstatus" style="flex: 0; margin: 0;">
  710. <el-tabs v-model="activNames" type="card" @tab-click="handleClick">
  711. <el-tab-pane label="指标检验" @click="showTable('指标检验')" name="first">
  712. <el-table
  713. tooltip-effect="dark"
  714. :data="zhibiaoselectData"
  715. row-key="ID"
  716. highlight-current-row="true"
  717. :show-overflow-tooltip="true"
  718. border
  719. style="width:140vh; height:310px;"
  720. :row-class-name="rowClassName"
  721. >
  722. <el-table-column prop="检验项目" label="检验项目" width="110" />
  723. <el-table-column label="不检测" width="70">
  724. <template v-slot="scope">
  725. <el-radio v-model="scope.row.selected" label="不检测">
  726. <span style="visibility: hidden;">不检测</span>
  727. </el-radio>
  728. </template>
  729. </el-table-column>
  730. <el-table-column label="合格" width="60">
  731. <template v-slot="scope">
  732. <el-radio v-model="scope.row.selected" label="合格">
  733. <span style="visibility: hidden;">合格</span>
  734. </el-radio>
  735. </template>
  736. </el-table-column>
  737. <el-table-column label="不合格" width="70">
  738. <template v-slot="scope">
  739. <el-radio v-model="scope.row.selected" label="不合格">
  740. <span style="visibility: hidden;">不合格</span>
  741. </el-radio>
  742. </template>
  743. </el-table-column>
  744. <el-table-column prop="检测方法" label="检测方法" width="90" />
  745. <el-table-column prop="检验频率" label="检验频率" width="200" />
  746. <el-table-column prop="相关标准" label="相关标准" width="600" />
  747. </el-table>
  748. </el-tab-pane>
  749. <el-tab-pane label="附加检验记录" @click="showTable('附加检验记录')" name="second">
  750. <el-table
  751. tooltip-effect="dark"
  752. :data="fujiaselectData"
  753. row-key="ID"
  754. highlight-current-row="true"
  755. :show-overflow-tooltip="true"
  756. border @row-click="dianjianhandle"
  757. style="width:70vh; height:40vh;"
  758. @row-dblclick="handleSelectClick"
  759. :row-class-name="rowClassName"
  760. >
  761. <el-table-column
  762. v-slot="scope"
  763. label="不检测"
  764. width="75"
  765. >
  766. <el-checkbox v-model="scope.row.notjc"></el-checkbox>
  767. </el-table-column>
  768. <el-table-column
  769. prop="缺陷备注"
  770. label="缺陷及记录"
  771. width="720"
  772. />
  773. <el-table-column
  774. prop="编号"
  775. label="编号"
  776. width="80"
  777. />
  778. </el-table>
  779. </el-tab-pane>
  780. </el-tabs>
  781. </div>
  782. </div>
  783. <template #footer>
  784. <div v-if="zhichengstatus" class="dialog-footer">
  785. <el-button @click="closezhichengDialog"style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;">关 闭</el-button>
  786. <el-button type="primary" @click="zhichengDialog"style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;">提 交</el-button>
  787. </div>
  788. </template>
  789. </el-dialog>
  790. <el-dialog
  791. v-model="huanxingVisible"
  792. title="换型清场"
  793. destroy-on-close
  794. fullscreen
  795. style="font-size: 50px;font-weight: bold;"
  796. >
  797. <header>
  798. <div style="height: 50px;margin-left: 1vh;">
  799. <el-button type="primary" @click="onHxadd" >新增</el-button>
  800. <el-button type="primary" @click="onHxedit" >修改</el-button>
  801. <el-button type="primary" @click="onHxdel" >删除</el-button>
  802. <el-button type="primary" @click="onHxsave" v-if="huanxingType" >提交</el-button>
  803. </div>
  804. </header>
  805. <div style="display: flex;">
  806. <div style="flex: 0.1;">
  807. <el-aside width="26vh" style="margin: 0;">
  808. <div class="JKWTree-tree" style="height: 60vh; border-right: 1px solid #ebeef5;">
  809. <el-tree :data="huanxingtreeData" :props="defaultProps" highlight-current="true"
  810. @node-click="huanxingNodeClick"></el-tree>
  811. </div>
  812. </el-aside>
  813. </div>
  814. <div v-if="huanxingstatus" style="flex: 0; margin: 0;">
  815. <el-tabs v-model="activNames" type="card" @tab-click="handleClick">
  816. <el-tab-pane label="换型清场明细信息" @click="showTable('换型清场明细信息')" name="first">
  817. <div style="width:70vh">
  818. <el-descriptions :column="9" border>
  819. <el-descriptions-item :span="9">
  820. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  821. <el-col :span="6" style="margin-bottom: 0px;margin-top: 0px;">
  822. <el-form-item label="日期:" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  823. <el-input v-model="huanxingData.日期" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  824. </el-form-item>
  825. </el-col>
  826. <el-col :span="2" style="margin-bottom: 0px;margin-top: 0px;">
  827. </el-col>
  828. <el-col :span="6" style="margin-bottom: 0px;margin-top: 0px;">
  829. <el-form-item label="机台编号:" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  830. <el-input v-model="huanxingData.机台编号" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  831. </el-form-item>
  832. </el-col>
  833. <el-col :span="1" style="margin-bottom: 0px;margin-top: 0px;">
  834. </el-col>
  835. <el-col :span="6" style="margin-bottom: 0px;margin-top: 0px;">
  836. <el-form-item label="班组:" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  837. <el-input v-model="huanxingData.班组" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  838. </el-form-item>
  839. </el-col>
  840. </el-row>
  841. </el-descriptions-item>
  842. <el-descriptions-item label="清场原因 从" :span="9">
  843. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  844. <el-col :span="8" style="margin-bottom: 0px;margin-top: 0px;">
  845. <el-form-item label="工单编号:" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  846. <el-input v-model="huanxingData.工单编号A" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  847. </el-form-item>
  848. </el-col>
  849. <el-col :span="16" style="margin-bottom: 0px;margin-top: 0px;">
  850. <el-form-item label="印件名称:" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  851. <el-input v-model="huanxingData.印件名称A" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  852. </el-form-item>
  853. </el-col>
  854. </el-row>
  855. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  856. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  857. <el-form-item label="印件工序:" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  858. <el-input v-model="huanxingData.印件工序A" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  859. </el-form-item>
  860. </el-col>
  861. <el-col :span="6" style="margin-bottom: 0px;margin-top: 0px;">
  862. </el-col>
  863. <el-col :span="6" style="margin-bottom: 0px;margin-top: 0px;">
  864. <el-form-item label="码包号" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  865. <el-input v-model="huanxingData.码包号A" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  866. </el-form-item>
  867. </el-col>
  868. </el-row>
  869. </el-descriptions-item>
  870. <el-descriptions-item label="清场原因 到" :span="9">
  871. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  872. <el-col :span="8" style="margin-bottom: 0px;margin-top: 0px;">
  873. <el-form-item label="工单编号:" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  874. <el-input v-model="huanxingData.工单编号B" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  875. </el-form-item>
  876. </el-col>
  877. <el-col :span="16" style="margin-bottom: 0px;margin-top: 0px;">
  878. <el-form-item label="印件名称:" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  879. <el-input v-model="huanxingData.印件名称B" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  880. </el-form-item>
  881. </el-col>
  882. </el-row>
  883. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  884. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  885. <el-form-item label="印件工序:" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  886. <el-input v-model="huanxingData.印件工序B" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  887. </el-form-item>
  888. </el-col>
  889. <el-col :span="6" style="margin-bottom: 0px;margin-top: 0px;">
  890. </el-col>
  891. <el-col :span="6" style="margin-bottom: 0px;margin-top: 0px;">
  892. <el-form-item label="码包号" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  893. <el-input v-model="huanxingData.码包B" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  894. </el-form-item>
  895. </el-col>
  896. </el-row>
  897. </el-descriptions-item>
  898. <el-descriptions-item label="清场确认项目" :span="9">
  899. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  900. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  901. <el-form-item label="菲林_标样_签样品_留样品" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  902. <el-checkbox v-model="huanxingData.项目1"></el-checkbox>
  903. </el-form-item>
  904. </el-col>
  905. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  906. <el-form-item label="版材_纸张_电化铝_油墨" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  907. <el-checkbox v-model="huanxingData.项目2"></el-checkbox>
  908. </el-form-item>
  909. </el-col>
  910. </el-row>
  911. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  912. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  913. <el-form-item label="过版纸_废品_次品" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  914. <el-checkbox v-model="huanxingData.项目3"></el-checkbox>
  915. </el-form-item>
  916. </el-col>
  917. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  918. <el-form-item label="半成品_成品_零头" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  919. <el-checkbox v-model="huanxingData.项目4"></el-checkbox>
  920. </el-form-item>
  921. </el-col>
  922. </el-row>
  923. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  924. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  925. <el-form-item label="操作台桌面_抽屉_地面" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  926. <el-checkbox v-model="huanxingData.项目5"></el-checkbox>
  927. </el-form-item>
  928. </el-col>
  929. </el-row>
  930. </el-descriptions-item>
  931. <el-descriptions-item label="清场确认人" :span="9">
  932. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  933. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  934. <el-form-item label="机长签字" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  935. <el-input v-model="huanxingData.机长" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  936. </el-form-item>
  937. </el-col>
  938. </el-row>
  939. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  940. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  941. <el-form-item label="带班主管签字" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  942. <el-input v-model="huanxingData.班长" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  943. </el-form-item>
  944. </el-col>
  945. <el-col :span="12" style="margin-bottom: 0px;margin-top: 0px;">
  946. <el-form-item label="质量巡查员签字" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  947. <el-input v-model="huanxingData.质量巡查员" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  948. </el-form-item>
  949. </el-col>
  950. </el-row>
  951. </el-descriptions-item>
  952. </el-descriptions>
  953. </div>
  954. </el-tab-pane>
  955. <el-tab-pane label="当前设备换型记录" @click="showTable('当前设备换型记录')" name="second">
  956. <el-table
  957. tooltip-effect="dark"
  958. :data="huanxingselectData"
  959. row-key="ID"
  960. highlight-current-row="true"
  961. :show-overflow-tooltip="true"
  962. border @row-click="dianjianhandle"
  963. style="width:70vh; height:50vh;"
  964. @row-dblclick="handleSelectClick"
  965. :row-class-name="rowClassName"
  966. >
  967. <el-table-column
  968. prop="日期"
  969. label="日期"
  970. width="160"
  971. />
  972. <el-table-column
  973. prop="机台编号"
  974. label="机台编号"
  975. width="90"
  976. />
  977. <el-table-column
  978. prop="班组"
  979. label="班组"
  980. width="70"
  981. />
  982. <el-table-column
  983. prop="工单编号A"
  984. label="工单编号A"
  985. width="95"
  986. />
  987. <el-table-column
  988. prop="印件名称A"
  989. label="印件名称A"
  990. width="130"
  991. />
  992. <el-table-column
  993. prop="印件工序A"
  994. label="印件工序A"
  995. width="150"
  996. />
  997. <el-table-column
  998. prop="码包号A"
  999. label="码包号A"
  1000. width="80"
  1001. />
  1002. <el-table-column
  1003. prop="工单编号B"
  1004. label="工单编号B"
  1005. width="100"
  1006. />
  1007. <el-table-column
  1008. prop="印件名称B"
  1009. label="印件名称B"
  1010. width="100"
  1011. />
  1012. <el-table-column
  1013. prop="印件工序B"
  1014. label="印件工序B"
  1015. width="150"
  1016. />
  1017. <el-table-column
  1018. prop="码包号B"
  1019. label="码包号B"
  1020. width="80"
  1021. />
  1022. <el-table-column
  1023. prop="清场项目A"
  1024. label="菲林_标样_签样品_留样品"
  1025. width="190"
  1026. />
  1027. <el-table-column
  1028. prop="清场项目B"
  1029. label="版材_纸张_电化铝_油墨"
  1030. width="190"
  1031. />
  1032. <el-table-column
  1033. prop="清场项目C"
  1034. label="过版纸_废品_次品"
  1035. width="170"
  1036. />
  1037. <el-table-column
  1038. prop="清场项目D"
  1039. label="半成品_成品_零头"
  1040. width="170"
  1041. />
  1042. <el-table-column
  1043. prop="清场项目E"
  1044. label="操作台桌面_抽屉_地面"
  1045. width="180"
  1046. />
  1047. <el-table-column
  1048. prop="机长"
  1049. label="机长"
  1050. width="80"
  1051. />
  1052. <el-table-column
  1053. prop="班长"
  1054. label="带班长"
  1055. width="80"
  1056. />
  1057. <el-table-column
  1058. prop="质量巡查员"
  1059. label="质量巡查员"
  1060. width="100"
  1061. />
  1062. <el-table-column
  1063. prop="创建时间"
  1064. label="创建时间"
  1065. width="120"
  1066. />
  1067. <el-table-column
  1068. prop="UNIQID"
  1069. label="UNIQID"
  1070. width="80"
  1071. />
  1072. </el-table>
  1073. </el-tab-pane>
  1074. </el-tabs>
  1075. </div>
  1076. </div>
  1077. </el-dialog>
  1078. <el-dialog
  1079. v-model="yinbanVisible"
  1080. title="印版领退"
  1081. destroy-on-close
  1082. fullscreen
  1083. style="font-size: 50px;font-weight: bold;"
  1084. >
  1085. <header>
  1086. <div style="height: 50px;margin-left: 1vh;">
  1087. <el-button type="primary" @click="onYbout" >领出</el-button>
  1088. <el-button type="primary" @click="onYbback" >收回</el-button>
  1089. </div>
  1090. </header>
  1091. <el-row :gutter="24">
  1092. <el-col :span="4">
  1093. <el-form-item label="工单编号" prop="id">
  1094. <el-input v-model="formData.工单编号" />
  1095. </el-form-item>
  1096. </el-col>
  1097. <el-col :span="6">
  1098. <el-form-item prop="id">
  1099. <el-input v-model="formData.productCode" />
  1100. </el-form-item>
  1101. </el-col>
  1102. <el-col :span="14">
  1103. <el-form-item prop="id">
  1104. <el-input v-model="formData.产品名称" />
  1105. </el-form-item>
  1106. </el-col>
  1107. </el-row>
  1108. <div style="display: flex;">
  1109. <div style="flex: 1;">
  1110. <el-aside width="20vh" style="margin: 0;">
  1111. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  1112. <el-tree :data="yinbantreeData" :props="defaultProps" highlight-current="true"
  1113. @node-click="yinbanNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
  1114. </div>
  1115. </el-aside>
  1116. </div>
  1117. <div style="flex: 1; margin: 0;">
  1118. <el-table
  1119. tooltip-effect="dark"
  1120. :data="yinbanselectData"
  1121. row-key="ID"
  1122. highlight-current-row="true"
  1123. :show-overflow-tooltip="true"
  1124. border @row-click="dianjianhandle"
  1125. style="width:150vh; height:50vh;"
  1126. @row-dblclick="handleSelectClick"
  1127. :row-class-name="rowClassName"
  1128. @selection-change="handleybSelectionChange"
  1129. >
  1130. <el-table-column type="selection" width="55" align="center" label=""></el-table-column>
  1131. <el-table-column
  1132. prop="存货编码"
  1133. label="存货编码"
  1134. width="100"
  1135. />
  1136. <el-table-column
  1137. prop="存货名称"
  1138. label="存货名称"
  1139. width="180"
  1140. />
  1141. <el-table-column
  1142. prop="印版名称"
  1143. label="印版名称"
  1144. width="180"
  1145. />
  1146. <el-table-column
  1147. prop="供方批号"
  1148. label="供方批号"
  1149. width="150"
  1150. />
  1151. <el-table-column
  1152. prop="制造日期"
  1153. label="制造日期"
  1154. width="170"
  1155. />
  1156. <el-table-column
  1157. prop="印数"
  1158. label="印数"
  1159. width="80"
  1160. />
  1161. <el-table-column
  1162. prop="印版类别"
  1163. label="印版类别"
  1164. width="90"
  1165. />
  1166. <el-table-column
  1167. prop="客户编号"
  1168. label="客户编号"
  1169. width="90"
  1170. />
  1171. <el-table-column
  1172. prop="客户名称"
  1173. label="客户名称"
  1174. width="180"
  1175. />
  1176. <el-table-column
  1177. prop="产品编号"
  1178. label="产品编号"
  1179. width="100"
  1180. />
  1181. <el-table-column
  1182. prop="产品名称"
  1183. label="产品名称"
  1184. width="180"
  1185. />
  1186. <el-table-column
  1187. prop="UniqId"
  1188. label="UNIQID"
  1189. width="80"
  1190. />
  1191. </el-table>
  1192. </div>
  1193. </div>
  1194. </el-dialog>
  1195. <el-dialog
  1196. v-model="xunchaVisible"
  1197. title="管理人员现场巡查记录"
  1198. destroy-on-close
  1199. fullscreen
  1200. style="font-size: 3.5vh;font-weight: bold;"
  1201. >
  1202. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1203. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1204. <el-form-item label="工单编号" prop="id" style="margin-top=0px; margin-bottom: 0px; color: red;">
  1205. <el-input v-model="xunchaData.order" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1206. </el-form-item>
  1207. </el-col>
  1208. <el-col :span="9" style="margin-top=0px; margin-bottom: 0px;">
  1209. <el-row style="margin-top=0px; margin-bottom: 0px;">
  1210. <el-col style="margin-top=0px; margin-bottom: 0px;">
  1211. <el-input v-model="xunchaData.product_name" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1212. </el-col>
  1213. </el-row>
  1214. </el-col>
  1215. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1216. <el-form-item label="工号 " prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1217. <el-input v-model="xunchaData.sczl_bh" @keyup.enter.native="getxunchayg($event)" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1218. </el-form-item>
  1219. </el-col>
  1220. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1221. <el-form-item label="流程单" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1222. <el-input v-model="xunchaData.lcdh" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1223. </el-form-item>
  1224. </el-col>
  1225. </el-row>
  1226. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1227. <el-col :span="3" style="margin-top=0px; margin-bottom: 0px;">
  1228. <el-form-item label="印件编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1229. <el-input v-model="xunchaData.yjno" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1230. </el-form-item>
  1231. </el-col>
  1232. <el-col :span="10" style="margin-top=0px; margin-bottom: 0px;">
  1233. <el-row style="margin-top=0px; margin-bottom: 0px;">
  1234. <el-col style="margin-top=0px; margin-bottom: 0px;">
  1235. <el-input v-model="xunchaData.gxmc" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1236. </el-col>
  1237. </el-row>
  1238. </el-col>
  1239. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1240. <el-form-item label="姓名" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1241. <el-input v-model="xunchaData.sczl_name" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1242. </el-form-item>
  1243. </el-col>
  1244. </el-row>
  1245. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1246. <el-col :span="13" style="margin-top=0px; margin-bottom: 0px;">
  1247. <el-form-item label="检验备注" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1248. <el-input v-model="xunchaData.remark" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1249. </el-form-item>
  1250. </el-col>
  1251. </el-row>
  1252. <div style="display: flex; margin-top: 20px;">
  1253. <div style="flex: 0.1;">
  1254. <el-aside width="20vh" style="margin: 0;">
  1255. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  1256. <el-tree :data="xunchatreeData" :props="defaultProps" highlight-current="true"
  1257. @node-click="xunchaNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
  1258. </div>
  1259. </el-aside>
  1260. </div>
  1261. <div style="flex: 1; margin: 0;">
  1262. <el-table
  1263. tooltip-effect="dark"
  1264. :data="xunchaselectData"
  1265. row-key="ID"
  1266. highlight-current-row="true"
  1267. border @row-click="dianjianhandle"
  1268. style="width:170vh; height:42vh;"
  1269. @row-dblclick="handleSelectClick"
  1270. :row-class-name="rowClassName"
  1271. :show-overflow-tooltip="true"
  1272. >
  1273. <el-table-column
  1274. prop="工单编号"
  1275. label="工单编号"
  1276. width="85"
  1277. />
  1278. <el-table-column
  1279. prop="印件号"
  1280. label="印件号"
  1281. width="70"
  1282. />
  1283. <el-table-column
  1284. prop="工序名称"
  1285. label="工序名称"
  1286. width="240"
  1287. />
  1288. <el-table-column
  1289. prop="流程单号"
  1290. label="流程单号"
  1291. width="85"
  1292. />
  1293. <el-table-column
  1294. prop="设备编号"
  1295. label="设备编号"
  1296. width="85"
  1297. />
  1298. <el-table-column
  1299. prop="班组编号"
  1300. label="班组编号"
  1301. width="85"
  1302. />
  1303. <el-table-column
  1304. prop="检验备注"
  1305. label="检验备注"
  1306. width="85"
  1307. />
  1308. <el-table-column
  1309. prop="现场管理人员"
  1310. label="现场管理人员"
  1311. width="150"
  1312. />
  1313. <el-table-column
  1314. prop="提交时间"
  1315. label="提交时间"
  1316. width="165"
  1317. />
  1318. <el-table-column
  1319. prop="开工时间"
  1320. label="开工时间"
  1321. width="165"
  1322. />
  1323. <el-table-column
  1324. prop="分钟差数"
  1325. label="分钟差数"
  1326. width="85"
  1327. />
  1328. <el-table-column
  1329. prop="归属时段"
  1330. label="归属时段"
  1331. width="165"
  1332. />
  1333. </el-table>
  1334. </div>
  1335. </div>
  1336. <template #footer>
  1337. <div class="dialog-footer">
  1338. <el-button @click="closexunchaDialog" style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;">关 闭</el-button>
  1339. <el-button type="primary" style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;" @click="xunchaDialog">提 交</el-button>
  1340. </div>
  1341. </template>
  1342. </el-dialog>
  1343. <el-dialog
  1344. v-model="chanliangVisible"
  1345. title="日产量上报"
  1346. fullscreen
  1347. :show-close="false"
  1348. style="font-size: 2vh;font-weight: bold;padding: 0px 16px 10px 16px"
  1349. >
  1350. <div style="font-size: 1.5vh; font-weight: bold;color: red;">
  1351. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1352. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1353. <el-form-item label="工单编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1354. <el-input style="margin-top=0px; margin-bottom: 1px;" v-model="formData3.order" id="工单编号" @keydown="ent($event, 'rate10', '工单编号', '产品名称')" placeholder="" />
  1355. </el-form-item>
  1356. </el-col>
  1357. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1358. <el-form-item label="产品名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1359. <el-input v-model="formData3.product_name" id="产品名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '工单编号', '产品名称', '工序名称')" placeholder="" />
  1360. </el-form-item>
  1361. </el-col>
  1362. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1363. <el-form-item label="工序名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1364. <el-input v-model="formData3.gxmc" id="工序名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '产品名称', '工序名称', '印件号')" placeholder="" />
  1365. </el-form-item>
  1366. </el-col>
  1367. </el-row>
  1368. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1369. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1370. <el-form-item label="印件号" prop="id" label-width="60" style="margin-top=0px; margin-bottom: 1px;">
  1371. <el-input v-model="formData3.yjno" style="margin-top=0px; margin-bottom: 1px;" id="印件号" @keydown="ent($event, '工序名称', '印件号', '印件名称')" placeholder="" />
  1372. </el-form-item>
  1373. </el-col>
  1374. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1375. <el-form-item label="印件名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1376. <el-input v-model="formData3.yj_name" id="印件名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '印件号', '印件名称', '工艺名称')" placeholder="" />
  1377. </el-form-item>
  1378. </el-col>
  1379. <el-col :span="8" style="margin-top=0px; margin-bottom: 1px;">
  1380. <el-form-item label="工艺名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1381. <el-input v-model="formData3.gy_name" id="工艺名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '印件名称', '工艺名称', 'gxh')" placeholder="" />
  1382. </el-form-item>
  1383. </el-col>
  1384. <el-col :span="2" style="margin-top=0px; margin-bottom: 1px;">
  1385. <el-form-item label="" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1386. <el-input v-model="formData3.gxh" id="gxh" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '工艺名称', 'gxh', '日期')" placeholder="" />
  1387. </el-form-item>
  1388. </el-col>
  1389. </el-row>
  1390. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1391. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1392. </el-col>
  1393. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1394. <el-form-item label="日期" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1395. <el-input v-model="formData3.日期" id="日期" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, 'gxh', '日期', '流程标牌')" placeholder="" />
  1396. </el-form-item>
  1397. </el-col>
  1398. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1399. <el-form-item label="流程标牌" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1400. <el-input v-model="formData3.流程标牌" id="流程标牌" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '日期', '流程标牌', '上机时间')" placeholder="" />
  1401. </el-form-item>
  1402. </el-col>
  1403. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1404. <el-form-item label="上机时间" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1405. <el-input v-model="formData3.上机时间" id="上机时间" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '流程标牌', '上机时间', '下机时间')" placeholder="" />
  1406. </el-form-item>
  1407. </el-col>
  1408. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1409. <el-form-item label="下机时间" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1410. <el-input v-model="formData3.下机时间" style="margin-top=0px; margin-bottom: 1px;" id="下机时间" @keydown="ent($event, '上机时间', '下机时间', '产量')" placeholder="" />
  1411. </el-form-item>
  1412. </el-col>
  1413. <el-col :span="3">
  1414. </el-col>
  1415. </el-row>
  1416. </div>
  1417. <!-- <div style="margin-top: 20px;">-->
  1418. <div style="margin-top: 5px;">
  1419. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1420. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1421. </el-col>
  1422. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1423. <el-form-item label="产量" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1424. <el-input v-model="formData3.产量" id="产量" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '下机时间', '产量', '制程废品')" placeholder="" />
  1425. </el-form-item>
  1426. </el-col>
  1427. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1428. <el-form-item label="制程废品" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1429. <el-input v-model="formData3.制程废品" id="制程废品" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '产量', '制程废品', '制程次品')" placeholder="" />
  1430. </el-form-item>
  1431. </el-col>
  1432. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1433. <el-form-item label="制程次品" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1434. <el-input v-model="formData3.制程次品" id="制程次品" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '制程废品', '制程次品', '前工序废')" placeholder="" />
  1435. </el-form-item>
  1436. </el-col>
  1437. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1438. <el-form-item label="前工序废" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1439. <el-input v-model="formData3.前工序废" id="前工序废" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '制程次品', '前工序废', '来料异常')" placeholder="" />
  1440. </el-form-item>
  1441. </el-col>
  1442. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1443. <el-form-item label="来料异常" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1444. <el-input v-model="formData3.来料异常" id="来料异常" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '前工序废', '来料异常', '联数')" placeholder="" />
  1445. </el-form-item>
  1446. </el-col>
  1447. </el-row>
  1448. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1449. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1450. </el-col>
  1451. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1452. <el-form-item label="联数" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1453. <el-input v-model="formData3.Gy0_ls" id="联数" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '来料异常', '联数', '墨色')" placeholder="" />
  1454. </el-form-item>
  1455. </el-col>
  1456. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1457. <el-form-item label="墨色" prop="" label-width="60" style="margin-top=0px; margin-bottom: 1px;">
  1458. <el-input v-model="formData3.Gy0_ms" id="墨色" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '联数', '墨色', '装版总时长')" placeholder="" />
  1459. </el-form-item>
  1460. </el-col>
  1461. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1462. <el-form-item label="装版总时长" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1463. <el-input v-model="formData3.装版总时长" id="装版总时长" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '墨色', '装版总时长', '打样总工时')" placeholder="" />
  1464. </el-form-item>
  1465. </el-col>
  1466. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1467. <el-form-item label="打样总工时" label-width="100" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1468. <el-input v-model="formData3.打样总工时" style="margin-top=0px; margin-bottom: 1px;" id="打样总工时" @keydown="ent($event, '装版总时长', '打样总工时', '通电工时')" placeholder="" />
  1469. </el-form-item>
  1470. </el-col>
  1471. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1472. <el-form-item label="通电工时" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1473. <el-input v-model="formData3.通电工时" style="margin-top=0px; margin-bottom: 1px;" id="通电工时" @keydown="ent($event, '打样总工时', '通电工时', '定额代号')" placeholder="" />
  1474. </el-form-item>
  1475. </el-col>
  1476. </el-row>
  1477. <el-row :gutter="20" style="margin-top=0px; margin-bottom: 1vh;">
  1478. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1479. </el-col>
  1480. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1481. <el-form-item label="定额代号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1482. <el-input v-model="formData3.定额代号" id="定额代号" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '通电工时', '定额代号', '码包')" placeholder="" />
  1483. </el-form-item>
  1484. </el-col>
  1485. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1486. </el-col>
  1487. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1488. <el-form-item label="码包" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1489. <el-input v-model="formData3.码包" style="margin-top=0px; margin-bottom: 1px;" id="码包" @keydown="ent($event, '定额代号', '码包', '主电表')" placeholder="" />
  1490. </el-form-item>
  1491. </el-col>
  1492. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1493. <el-form-item label="主电表" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1494. <el-input v-model="formData3.主电表" style="margin-top=0px; margin-bottom: 1px;" id="主电表" @keydown="ent($event, '码包', '主电表', '辅电表')" placeholder="" />
  1495. </el-form-item>
  1496. </el-col>
  1497. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1498. <el-form-item label="辅电表" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1499. <el-input v-model="formData3.辅电表" id="辅电表" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '主电表', '辅电表', 'bzdh')" placeholder="" />
  1500. </el-form-item>
  1501. </el-col>
  1502. </el-row>
  1503. <div style="display: flex;">
  1504. <div style="width: 117vh;">组员及分配比例</div>
  1505. <div style="width: 11vh;">特殊组员</div>
  1506. <div style="">拉料人员</div>
  1507. </div>
  1508. <el-row :gutter="10" style="margin-top: 1vh;">
  1509. <el-col :span="2">
  1510. <el-input v-model="formData3.sczl_bzdh" id="bzdh" @keydown="ent($event, '辅电表', 'bzdh', 'bh1')" placeholder="" />
  1511. </el-col>
  1512. <el-col :span="2">
  1513. <el-input v-model="formData3.sczl_bh1" id="bh1" @keydown="ent($event, 'bzdh', 'bh1', 'bh2')" @keyup.enter.native="getygsubmit($event, '1')" placeholder="" />
  1514. </el-col>
  1515. <el-col :span="2">
  1516. <el-input v-model="formData3.sczl_bh2" id="bh2" @keydown="ent($event, 'bh1', 'bh2', 'bh3')" @keyup.enter.native="getygsubmit($event, '2')" placeholder="" />
  1517. </el-col>
  1518. <el-col :span="2">
  1519. <el-input v-model="formData3.sczl_bh3" id="bh3" @keydown="ent($event, 'bh2', 'bh3', 'bh4')" @keyup.enter.native="getygsubmit($event, '3')" placeholder="" />
  1520. </el-col>
  1521. <el-col :span="2">
  1522. <el-input v-model="formData3.sczl_bh4" id="bh4" @keydown="ent($event, 'bh3', 'bh4', 'bh5')" @keyup.enter.native="getygsubmit($event, '4')" placeholder="" />
  1523. </el-col>
  1524. <el-col :span="2">
  1525. <el-input v-model="formData3.sczl_bh5" id="bh5" @keydown="ent($event, 'bh4', 'bh5', 'bh6')" @keyup.enter.native="getygsubmit($event, '5')" placeholder="" />
  1526. </el-col>
  1527. <el-col :span="2">
  1528. <el-input v-model="formData3.sczl_bh6" id="bh6" @keydown="ent($event, 'bh5', 'bh6', 'bh7')" @keyup.enter.native="getygsubmit($event, '6')" placeholder="" />
  1529. </el-col>
  1530. <el-col :span="2">
  1531. <el-input v-model="formData3.sczl_bh7" id="bh7" @keydown="ent($event, 'bh6', 'bh7', 'bh8')" @keyup.enter.native="getygsubmit($event, '7')" placeholder="" />
  1532. </el-col>
  1533. <el-col :span="2">
  1534. <el-input v-model="formData3.sczl_bh8" id="bh8" @keydown="ent($event, 'bh7', 'bh8', 'bh9')" @keyup.enter.native="getygsubmit($event, '8')" placeholder="" />
  1535. </el-col>
  1536. <el-col :span="2">
  1537. <el-input v-model="formData3.sczl_bh9" id="bh9" @keydown="ent($event, 'bh8', 'bh9', 'bh10')" @keyup.enter.native="getygsubmit($event, '9')" placeholder="" />
  1538. </el-col>
  1539. <el-col :span="2">
  1540. <el-input v-model="formData3.sczl_bh10" id="bh10" @keydown="ent($event, 'bh9', 'bh10', 'bh11')" @keyup.enter.native="getygsubmit($event, '10')" placeholder="" />
  1541. </el-col>
  1542. <el-col :span="2">
  1543. <el-input v-model="formData3.sczl_bh11" id="bh11" @keydown="ent($event, 'bh10', 'bh11', 'name1')" @keyup.enter.native="getygsubmit($event, '11')" placeholder="" />
  1544. </el-col>
  1545. </el-row>
  1546. <el-row :gutter="10" style="margin-top: 10px;">
  1547. <el-col :span="2">
  1548. </el-col>
  1549. <el-col :span="2">
  1550. <el-input v-model="formData3.sczl_name1" id="name1" @keydown="ent($event, 'bh11', 'name1', 'name2')" placeholder="" />
  1551. </el-col>
  1552. <el-col :span="2">
  1553. <el-input v-model="formData3.sczl_name2" id="name2" @keydown="ent($event, 'name1', 'name2', 'name3')" placeholder="" />
  1554. </el-col>
  1555. <el-col :span="2">
  1556. <el-input v-model="formData3.sczl_name3" id="name3" @keydown="ent($event, 'name2', 'name3', 'name4')" placeholder="" />
  1557. </el-col>
  1558. <el-col :span="2">
  1559. <el-input v-model="formData3.sczl_name4" id="name4" @keydown="ent($event, 'name3', 'name4', 'name5')" placeholder="" />
  1560. </el-col>
  1561. <el-col :span="2">
  1562. <el-input v-model="formData3.sczl_name5" id="name5" @keydown="ent($event, 'name4', 'name5', 'name6')" placeholder="" />
  1563. </el-col>
  1564. <el-col :span="2">
  1565. <el-input v-model="formData3.sczl_name6" id="name6" @keydown="ent($event, 'name5', 'name6', 'name7')" placeholder="" />
  1566. </el-col>
  1567. <el-col :span="2">
  1568. <el-input v-model="formData3.sczl_name7" id="name7" @keydown="ent($event, 'name6', 'name7', 'name8')" placeholder="" />
  1569. </el-col>
  1570. <el-col :span="2">
  1571. <el-input v-model="formData3.sczl_name8" id="name8" @keydown="ent($event, 'name7', 'name8', 'name9')" placeholder="" />
  1572. </el-col>
  1573. <el-col :span="2">
  1574. <el-input v-model="formData3.sczl_name9" id="name9" @keydown="ent($event, 'name8', 'name9', 'name10')" placeholder="" />
  1575. </el-col>
  1576. <el-col :span="2">
  1577. <el-input v-model="formData3.sczl_name10" id="name10" @keydown="ent($event, 'name9', 'name10', 'name11')" placeholder="" />
  1578. </el-col>
  1579. <el-col :span="2">
  1580. <el-input v-model="formData3.sczl_name11" id="name11" @keydown="ent($event, 'name10', 'name11', 'rate1')" placeholder="" />
  1581. </el-col>
  1582. </el-row>
  1583. <el-row :gutter="10" style="margin-top: 10px;">
  1584. <el-col :span="2">
  1585. </el-col>
  1586. <el-col :span="2">
  1587. <el-input v-model="formData3.sczl_rate1" id="rate1" @keydown="ent($event, 'name11', 'rate1', 'rate2')" placeholder="" />
  1588. </el-col>
  1589. <el-col :span="2">
  1590. <el-input v-model="formData3.sczl_rate2" id="rate2" @keydown="ent($event, 'rate1', 'rate2', 'rate3')" placeholder="" />
  1591. </el-col>
  1592. <el-col :span="2">
  1593. <el-input v-model="formData3.sczl_rate3" id="rate3" @keydown="ent($event, 'rate2', 'rate3', 'rate4')" placeholder="" />
  1594. </el-col>
  1595. <el-col :span="2">
  1596. <el-input v-model="formData3.sczl_rate4" id="rate4" @keydown="ent($event, 'rate3', 'rate4', 'rate5')" placeholder="" />
  1597. </el-col>
  1598. <el-col :span="2">
  1599. <el-input v-model="formData3.sczl_rate5" id="rate5" @keydown="ent($event, 'rate4', 'rate5', 'rate6')" placeholder="" />
  1600. </el-col>
  1601. <el-col :span="2">
  1602. <el-input v-model="formData3.sczl_rate6" id="rate6" @keydown="ent($event, 'rate5', 'rate6', 'rate7')" placeholder="" />
  1603. </el-col>
  1604. <el-col :span="2">
  1605. <el-input v-model="formData3.sczl_rate7" id="rate7" @keydown="ent($event, 'rate6', 'rate7', 'rate8')" placeholder="" />
  1606. </el-col>
  1607. <el-col :span="2">
  1608. <el-input v-model="formData3.sczl_rate8" id="rate8" @keydown="ent($event, 'rate7', 'rate8', 'rate9')" placeholder="" />
  1609. </el-col>
  1610. <el-col :span="2">
  1611. <el-input v-model="formData3.sczl_rate9" id="rate9" @keydown="ent($event, 'rate8', 'rate9', 'rate10')" placeholder="" />
  1612. </el-col>
  1613. <el-col :span="2">
  1614. <el-input v-model="formData3.sczl_rate10" id="rate10" @keydown="ent($event, 'rate9', 'rate10', '工单编号')" placeholder="" />
  1615. </el-col>
  1616. <el-col :span="2">
  1617. </el-col>
  1618. </el-row>
  1619. </div>
  1620. <el-table
  1621. tooltip-effect="dark"
  1622. :data="chanliangselectData"
  1623. row-key="ID"
  1624. highlight-current-row="true"
  1625. border
  1626. style="width:100%"
  1627. height="40vh"
  1628. @row-dblclick="batchaddSelectClick"
  1629. :selectable="row => rowSelectable(row)"
  1630. @selection-change="chanliangSelectionChange"
  1631. >
  1632. <el-table-column type="selection" width="55" align="center" label=""></el-table-column>
  1633. <el-table-column
  1634. prop="batch"
  1635. label="物料编号"
  1636. width="150"
  1637. />
  1638. <el-table-column
  1639. prop="BOM_物料名称"
  1640. label="物料名称"
  1641. width="400"
  1642. />
  1643. <el-table-column
  1644. prop="采购单号"
  1645. label="采购单号"
  1646. width="150"
  1647. />
  1648. <el-table-column
  1649. prop="st_wlbh"
  1650. label="供方批次"
  1651. width="400"
  1652. />
  1653. <el-table-column
  1654. prop="卷号"
  1655. label="卷号"
  1656. width="150"
  1657. />
  1658. <el-table-column
  1659. prop="Uniqid"
  1660. label="UniqID"
  1661. width="150"
  1662. />
  1663. </el-table>
  1664. <!-- </el-scrollbar> -->
  1665. <template #footer>
  1666. <div class="dialog-footer">
  1667. <el-button @click="closeDialog" style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;">关 闭</el-button>
  1668. <el-button type="primary" style="height: 50px;width: 100px;font-size: 2.5vh;font-weight: bold;" @click="chanliangenterDialog">提 交</el-button>
  1669. <!-- <el-button @click="closeDialog">取 消</el-button>-->
  1670. <!-- <el-button type="primary" @click="chanliangenterDialog">确 定</el-button>-->
  1671. </div>
  1672. </template>
  1673. </el-dialog>
  1674. <el-dialog
  1675. v-model="bzchanliangVisible"
  1676. title="班组产量修改"
  1677. destroy-on-close
  1678. width="140vh"
  1679. style="height: 60vh;"
  1680. >
  1681. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1682. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1683. <el-form-item label="工单编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1684. <el-input style="margin-top=0px; margin-bottom: 1px;" v-model="dbformData.order" id="工单编号" disabled @keydown="ent($event, 'rate10', '工单编号', '产品名称')" placeholder="" />
  1685. </el-form-item>
  1686. </el-col>
  1687. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1688. <el-form-item label="产品名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1689. <el-input v-model="dbformData.product_name" id="产品名称" style="margin-top=0px; margin-bottom: 1px;" disabled @keydown="ent($event, '工单编号', '产品名称', '工序名称')" placeholder="" />
  1690. </el-form-item>
  1691. </el-col>
  1692. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1693. <el-form-item label="工序名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1694. <el-input v-model="dbformData.gxmc" id="工序名称" style="margin-top=0px; margin-bottom: 1px;" disabled @keydown="ent($event, '产品名称', '工序名称', '印件号')" placeholder="" />
  1695. </el-form-item>
  1696. </el-col>
  1697. </el-row>
  1698. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1699. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1700. <el-form-item label="印件号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1701. <el-input v-model="dbformData.yjno" style="margin-top=0px; margin-bottom: 1px;" id="印件号" disabled @keydown="ent($event, '工序名称', '印件号', '印件名称')" placeholder="" />
  1702. </el-form-item>
  1703. </el-col>
  1704. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1705. <el-form-item label="印件名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1706. <el-input v-model="dbformData.yj_name" id="印件名称" style="margin-top=0px; margin-bottom: 1px;" disabled @keydown="ent($event, '印件号', '印件名称', '工艺名称')" placeholder="" />
  1707. </el-form-item>
  1708. </el-col>
  1709. <el-col :span="8" style="margin-top=0px; margin-bottom: 1px;">
  1710. <el-form-item label="工艺名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1711. <el-input v-model="dbformData.gy_name" id="工艺名称" style="margin-top=0px; margin-bottom: 1px;" disabled @keydown="ent($event, '印件名称', '工艺名称', 'gxh')" placeholder="" />
  1712. </el-form-item>
  1713. </el-col>
  1714. <el-col :span="2" style="margin-top=0px; margin-bottom: 1px;">
  1715. <el-form-item label="" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1716. <el-input v-model="dbformData.gxh" id="gxh" style="margin-top=0px; margin-bottom: 1px;" disabled @keydown="ent($event, '工艺名称', 'gxh', '日期')" placeholder="" />
  1717. </el-form-item>
  1718. </el-col>
  1719. </el-row>
  1720. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1721. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1722. </el-col>
  1723. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1724. <el-form-item label="日期" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1725. <el-input v-model="dbformData.日期" id="日期" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, 'gxh', '日期', '流程标牌')" placeholder="" />
  1726. </el-form-item>
  1727. </el-col>
  1728. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1729. <el-form-item label="流程标牌" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1730. <el-input v-model="dbformData.流程标牌" id="流程标牌" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '日期', '流程标牌', '上机时间')" placeholder="" />
  1731. </el-form-item>
  1732. </el-col>
  1733. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1734. <el-form-item label="上机时间" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1735. <el-input v-model="dbformData.上机时间" id="上机时间" disabled style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '流程标牌', '上机时间', '下机时间')" placeholder="" />
  1736. </el-form-item>
  1737. </el-col>
  1738. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1739. <el-form-item label="下机时间" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1740. <el-input v-model="dbformData.下机时间" style="margin-top=0px; margin-bottom: 1px;" id="下机时间" disabled @keydown="ent($event, '上机时间', '下机时间', '产量')" placeholder="" />
  1741. </el-form-item>
  1742. </el-col>
  1743. <el-col :span="3">
  1744. </el-col>
  1745. </el-row>
  1746. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1747. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1748. </el-col>
  1749. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1750. <el-form-item label="产量" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1751. <el-input v-model="dbformData.产量" id="产量" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '下机时间', '产量', '制程废品')" placeholder="" />
  1752. </el-form-item>
  1753. </el-col>
  1754. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1755. <el-form-item label="制程废品" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1756. <el-input v-model="dbformData.制程废品" id="制程废品" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '产量', '制程废品', '制程次品')" placeholder="" />
  1757. </el-form-item>
  1758. </el-col>
  1759. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1760. <el-form-item label="制程次品" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1761. <el-input v-model="dbformData.制程次品" id="制程次品" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '制程废品', '制程次品', '前工序废')" placeholder="" />
  1762. </el-form-item>
  1763. </el-col>
  1764. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1765. <el-form-item label="前工序废" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1766. <el-input v-model="dbformData.前工序废" id="前工序废" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '制程次品', '前工序废', '来料异常')" placeholder="" />
  1767. </el-form-item>
  1768. </el-col>
  1769. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1770. <el-form-item label="来料异常" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1771. <el-input v-model="dbformData.来料异常" id="来料异常" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '前工序废', '来料异常', '联数')" placeholder="" />
  1772. </el-form-item>
  1773. </el-col>
  1774. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1775. <el-form-item label="联数" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1776. <el-input v-model="dbformData.联数" id="联数" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '来料异常', '联数', '墨色')" placeholder="" />
  1777. </el-form-item>
  1778. </el-col>
  1779. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1780. <el-form-item label="墨色" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1781. <el-input v-model="dbformData.墨色" id="墨色" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '联数', '墨色', '装版总时长')" placeholder="" />
  1782. </el-form-item>
  1783. </el-col>
  1784. </el-row>
  1785. <el-row :gutter="20" style="margin-top=0px; margin-bottom: 1px;">
  1786. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1787. <el-form-item label="装版总时长" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1788. <el-input v-model="dbformData.装版总时长" id="装版总时长" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '墨色', '装版总时长', '打样总工时')" placeholder="" />
  1789. </el-form-item>
  1790. </el-col>
  1791. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1792. <el-form-item label="打样总工时" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1793. <el-input v-model="dbformData.打样总工时" style="margin-top=0px; margin-bottom: 1px;" id="打样总工时" @keydown="ent($event, '装版总时长', '打样总工时', '通电工时')" placeholder="" />
  1794. </el-form-item>
  1795. </el-col>
  1796. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1797. <el-form-item label="通电工时" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1798. <el-input v-model="dbformData.通电工时" style="margin-top=0px; margin-bottom: 1px;" id="通电工时" @keydown="ent($event, '打样总工时', '通电工时', '定额代号')" placeholder="" />
  1799. </el-form-item>
  1800. </el-col>
  1801. </el-row>
  1802. <el-row :gutter="20" style="margin-top=0px; margin-bottom: 1vh;">
  1803. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1804. <el-form-item label="定额代号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1805. <el-input v-model="dbformData.定额代号" id="定额代号" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '通电工时', '定额代号', '码包')" placeholder="" />
  1806. </el-form-item>
  1807. </el-col>
  1808. <el-col :span="8" style="margin-top=0px; margin-bottom: 1px;">
  1809. </el-col>
  1810. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1811. <el-form-item label="码包" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1812. <el-input v-model="dbformData.码包" style="margin-top=0px; margin-bottom: 1px;" id="码包" @keydown="ent($event, '定额代号', '码包', '主电表')" placeholder="" />
  1813. </el-form-item>
  1814. </el-col>
  1815. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1816. <el-form-item label="主电表" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1817. <el-input v-model="dbformData.主电表" style="margin-top=0px; margin-bottom: 1px;" id="主电表" @keydown="ent($event, '码包', '主电表', '辅电表')" placeholder="" />
  1818. </el-form-item>
  1819. </el-col>
  1820. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1821. <el-form-item label="辅电表" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1822. <el-input v-model="dbformData.辅电表" id="辅电表" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '主电表', '辅电表', 'bzdh')" placeholder="" />
  1823. </el-form-item>
  1824. </el-col>
  1825. </el-row>
  1826. <div style="display: flex;">
  1827. <div style="width: 131vh;">组员及分配比例</div>
  1828. <div style="width: 13vh;">特殊组员</div>
  1829. <div>拉料人员</div>
  1830. </div>
  1831. <el-row :gutter="10" style="margin-top: 1vh;">
  1832. <el-col :span="2">
  1833. <el-input v-model="BZMC" id="bzdh" disabled @keydown="ent($event, '辅电表', 'bzdh', 'bh1')" />
  1834. </el-col>
  1835. <el-col :span="2">
  1836. <el-input v-model="dbformData.sczl_bh1" id="bh1" disabled @keydown="ent($event, 'bzdh', 'bh1', 'bh2')" @keyup.enter.native="getygsubmit($event, '1')" placeholder="" />
  1837. </el-col>
  1838. <el-col :span="2">
  1839. <el-input v-model="dbformData.sczl_bh2" id="bh2" disabled @keydown="ent($event, 'bh1', 'bh2', 'bh3')" @keyup.enter.native="getygsubmit($event, '2')" placeholder="" />
  1840. </el-col>
  1841. <el-col :span="2">
  1842. <el-input v-model="dbformData.sczl_bh3" id="bh3" disabled @keydown="ent($event, 'bh2', 'bh3', 'bh4')" @keyup.enter.native="getygsubmit($event, '3')" placeholder="" />
  1843. </el-col>
  1844. <el-col :span="2">
  1845. <el-input v-model="dbformData.sczl_bh4" id="bh4" disabled @keydown="ent($event, 'bh3', 'bh4', 'bh5')" @keyup.enter.native="getygsubmit($event, '4')" placeholder="" />
  1846. </el-col>
  1847. <el-col :span="2">
  1848. <el-input v-model="dbformData.sczl_bh5" id="bh5" disabled @keydown="ent($event, 'bh4', 'bh5', 'bh6')" @keyup.enter.native="getygsubmit($event, '5')" placeholder="" />
  1849. </el-col>
  1850. <el-col :span="2">
  1851. <el-input v-model="dbformData.sczl_bh6" id="bh6" disabled @keydown="ent($event, 'bh5', 'bh6', 'bh7')" @keyup.enter.native="getygsubmit($event, '6')" placeholder="" />
  1852. </el-col>
  1853. <el-col :span="2">
  1854. <el-input v-model="dbformData.sczl_bh7" id="bh7" disabled @keydown="ent($event, 'bh6', 'bh7', 'bh8')" @keyup.enter.native="getygsubmit($event, '7')" placeholder="" />
  1855. </el-col>
  1856. <el-col :span="2">
  1857. <el-input v-model="dbformData.sczl_bh8" id="bh8" disabled @keydown="ent($event, 'bh7', 'bh8', 'bh9')" @keyup.enter.native="getygsubmit($event, '8')" placeholder="" />
  1858. </el-col>
  1859. <el-col :span="2">
  1860. <el-input v-model="dbformData.sczl_bh9" id="bh9" disabled @keydown="ent($event, 'bh8', 'bh9', 'bh10')" @keyup.enter.native="getygsubmit($event, '9')" placeholder="" />
  1861. </el-col>
  1862. <el-col :span="2">
  1863. <el-input v-model="dbformData.sczl_bh10" id="bh10" disabled @keydown="ent($event, 'bh9', 'bh10', 'bh11')" @keyup.enter.native="getygsubmit($event, '10')" placeholder="" />
  1864. </el-col>
  1865. <el-col :span="2">
  1866. <el-input v-model="dbformData.sczl_bh11" id="bh11" @keydown="ents($event, 'bh10', 'bh11', 'name1')" @keyup.enter.native="getlaliaoyg($event)" placeholder="" />
  1867. </el-col>
  1868. </el-row>
  1869. <el-row :gutter="10" style="margin-top: 10px;">
  1870. <el-col :span="2">
  1871. </el-col>
  1872. <el-col :span="2">
  1873. <el-input v-model="dbformData.sczl_name1" id="name1" disabled @keydown="ent($event, 'bh11', 'name1', 'name2')" placeholder="" />
  1874. </el-col>
  1875. <el-col :span="2">
  1876. <el-input v-model="dbformData.sczl_name2" id="name2" disabled @keydown="ent($event, 'name1', 'name2', 'name3')" placeholder="" />
  1877. </el-col>
  1878. <el-col :span="2">
  1879. <el-input v-model="dbformData.sczl_name3" id="name3" disabled @keydown="ent($event, 'name2', 'name3', 'name4')" placeholder="" />
  1880. </el-col>
  1881. <el-col :span="2">
  1882. <el-input v-model="dbformData.sczl_name4" id="name4" disabled @keydown="ent($event, 'name3', 'name4', 'name5')" placeholder="" />
  1883. </el-col>
  1884. <el-col :span="2">
  1885. <el-input v-model="dbformData.sczl_name5" id="name5" disabled @keydown="ent($event, 'name4', 'name5', 'name6')" placeholder="" />
  1886. </el-col>
  1887. <el-col :span="2">
  1888. <el-input v-model="dbformData.sczl_name6" id="name6" disabled @keydown="ent($event, 'name5', 'name6', 'name7')" placeholder="" />
  1889. </el-col>
  1890. <el-col :span="2">
  1891. <el-input v-model="dbformData.sczl_name7" id="name7" disabled @keydown="ent($event, 'name6', 'name7', 'name8')" placeholder="" />
  1892. </el-col>
  1893. <el-col :span="2">
  1894. <el-input v-model="dbformData.sczl_name8" id="name8" disabled @keydown="ent($event, 'name7', 'name8', 'name9')" placeholder="" />
  1895. </el-col>
  1896. <el-col :span="2">
  1897. <el-input v-model="dbformData.sczl_name9" id="name9" disabled @keydown="ent($event, 'name8', 'name9', 'name10')" placeholder="" />
  1898. </el-col>
  1899. <el-col :span="2">
  1900. <el-input v-model="dbformData.sczl_name10" id="name10" disabled @keydown="ent($event, 'name9', 'name10', 'name11')" placeholder="" />
  1901. </el-col>
  1902. <el-col :span="2">
  1903. <el-input v-model="dbformData.sczl_name11" id="name11" @keydown="ent($event, 'name10', 'name11', 'rate1')" placeholder="" />
  1904. </el-col>
  1905. </el-row>
  1906. <el-row :gutter="10" style="margin-top: 10px;">
  1907. <el-col :span="2">
  1908. </el-col>
  1909. <el-col :span="2">
  1910. <el-input v-model="dbformData.sczl_rate1" id="rate1" disabled @keydown="ent($event, 'name11', 'rate1', 'rate2')" placeholder="" />
  1911. </el-col>
  1912. <el-col :span="2">
  1913. <el-input v-model="dbformData.sczl_rate2" id="rate2" disabled @keydown="ent($event, 'rate1', 'rate2', 'rate3')" placeholder="" />
  1914. </el-col>
  1915. <el-col :span="2">
  1916. <el-input v-model="dbformData.sczl_rate3" id="rate3" disabled @keydown="ent($event, 'rate2', 'rate3', 'rate4')" placeholder="" />
  1917. </el-col>
  1918. <el-col :span="2">
  1919. <el-input v-model="dbformData.sczl_rate4" id="rate4" disabled @keydown="ent($event, 'rate3', 'rate4', 'rate5')" placeholder="" />
  1920. </el-col>
  1921. <el-col :span="2">
  1922. <el-input v-model="dbformData.sczl_rate5" id="rate5" disabled @keydown="ent($event, 'rate4', 'rate5', 'rate6')" placeholder="" />
  1923. </el-col>
  1924. <el-col :span="2">
  1925. <el-input v-model="dbformData.sczl_rate6" id="rate6" disabled @keydown="ent($event, 'rate5', 'rate6', 'rate7')" placeholder="" />
  1926. </el-col>
  1927. <el-col :span="2">
  1928. <el-input v-model="dbformData.sczl_rate7" id="rate7" disabled @keydown="ent($event, 'rate6', 'rate7', 'rate8')" placeholder="" />
  1929. </el-col>
  1930. <el-col :span="2">
  1931. <el-input v-model="dbformData.sczl_rate8" id="rate8" disabled @keydown="ent($event, 'rate7', 'rate8', 'rate9')" placeholder="" />
  1932. </el-col>
  1933. <el-col :span="2">
  1934. <el-input v-model="dbformData.sczl_rate9" id="rate9" disabled @keydown="ent($event, 'rate8', 'rate9', 'rate10')" placeholder="" />
  1935. </el-col>
  1936. <el-col :span="2">
  1937. <el-input v-model="dbformData.sczl_rate10" id="rate10" disabled @keydown="ent($event, 'rate9', 'rate10', '工单编号')" placeholder="" />
  1938. </el-col>
  1939. <el-col :span="2">
  1940. </el-col>
  1941. </el-row>
  1942. <!-- </el-scrollbar> -->
  1943. <template #footer>
  1944. <div class="dialog-footer" style="margin-right: 200px">
  1945. <el-button @click="bzcloseDialog" style="width: 110px;height: 50px;font-size: 24px;">取 消</el-button>
  1946. <el-button type="primary" @click="bzchanliangenterDialog" style="width: 110px;height: 50px;font-size: 24px;">确 定</el-button>
  1947. </div>
  1948. </template>
  1949. </el-dialog>
  1950. <el-dialog v-model="gzSelVisible" title="员工工资明细查询"
  1951. destroy-on-close fullscreen
  1952. style="font-size: 50px;font-weight: bold;"
  1953. >
  1954. <el-button v-for="ygbh in gz_bzbh" type="primary" @click="gz_ontable(ygbh)">{{ ygbh }}</el-button>
  1955. <!-- 数据展示 -->
  1956. <el-table ref="gz_multipleTable" style="width: 100%;height: 40vh;padding-top: 5px;" tooltip-effect="dark" :data="gz_tableData" row-key="ID"
  1957. highlight-current-row="true" border :show-overflow-tooltip="true"
  1958. :row-style="{ height: '20px' }"
  1959. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  1960. :header-cell-style="{ padding: '0px' }"
  1961. >
  1962. <el-table-column v-for="column in tableCols1"
  1963. :key="column.prop" :prop="column.prop"
  1964. :label="column.label" :width="column.width"
  1965. show-overflow-tooltip="true" sortable
  1966. />
  1967. </el-table>
  1968. <!-- 数据展示 -->
  1969. <el-table ref="gz_multipleTable2" style="width: 100%;height: 40vh;padding-top: 30px;" tooltip-effect="dark" :data="gz_tableData2" row-key="ID"
  1970. highlight-current-row="true" border
  1971. :row-style="{ height: '20px' }"
  1972. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  1973. :header-cell-style="{ padding: '0px' }"
  1974. :show-overflow-tooltip="true"
  1975. >
  1976. <el-table-column v-for="column in tableCols2"
  1977. :key="column.prop" :prop="column.prop"
  1978. :label="column.label" :width="column.width"
  1979. show-overflow-tooltip="true" sortable
  1980. />
  1981. </el-table>
  1982. </el-dialog>
  1983. <Shebeizhuangtai
  1984. v-if="dialogSbyxgl"
  1985. v-model="dialogSbyxgl"
  1986. title="【01.30 08:30】【JY01#--海德堡对开八色平版胶印机(JY08-01)】【2311116-->钻石(荷花)盒包装纸】【01--胶印】"
  1987. :formData="formData"
  1988. />
  1989. </el-main>
  1990. </el-container>
  1991. </el-container>
  1992. <PrintPage ref="printPageRef" />
  1993. </div>
  1994. </template>
  1995. <script setup>
  1996. import {
  1997. createCompany,
  1998. deleteCompany,
  1999. deleteCompanyByIds,
  2000. updateCompany,
  2001. findCompany,
  2002. getCompanyList
  2003. } from '@/api/company'
  2004. import {
  2005. EquipmentSchedulingEdit,
  2006. Procedure,
  2007. teamDel, workOrderListDetail
  2008. } from "@/api/yunyin/yunying";
  2009. import {
  2010. ProcessInspectionRecordsItemAdd,
  2011. AdditionalInspectionRecordAdd,
  2012. getMac,
  2013. remodelGetTab,
  2014. setMachineTeam,
  2015. ModelChangeRecord,
  2016. ComplaintRecord,
  2017. RemodelDetail,
  2018. MachineTeamAdd,
  2019. remodelDataAdd,
  2020. remodelDataEdit,
  2021. remodelDataDel,
  2022. PrintDetailAdd,
  2023. PrintDetailEdit,
  2024. chanliangEdit,
  2025. ChanliangDel,
  2026. MachineWorkOrderEdit
  2027. } from '@/api/jixiaoguanli/baogong'
  2028. import {
  2029. facilityTab,
  2030. facilitychanLiang,
  2031. facilityInspect,
  2032. facilityProduction,
  2033. facilityTeam,
  2034. facilityMachineList,
  2035. facilitySpotCheckItem,
  2036. facilityInspectionItem,
  2037. reportProduceInfo,
  2038. reportName,
  2039. getStaffNameTwo,
  2040. reportInfo,
  2041. reportMachineMac,
  2042. facilityWorklist,
  2043. setProcessStatus,
  2044. submitDailyProduction,
  2045. facilityDetail,
  2046. inspectionRecord,
  2047. getYg,
  2048. submitPatrolRecord,
  2049. getMachineMac,
  2050. setMachineStatus,
  2051. fieldInspectionRecord,
  2052. InspectionItemAdd,
  2053. ProcessInspectionRecordsItem,
  2054. MachineDetailList,
  2055. facilityPrintGetTab,
  2056. facilityPrintDetail,
  2057. facilityProcedure,
  2058. dailysearch,
  2059. dailygetGzByYgbh,
  2060. } from '@/api/jixiaoguanli/jitairibaobiao'
  2061. import {
  2062. demoCustomer
  2063. } from "@/api/demo";
  2064. // 全量引入格式化工具 请按需保留
  2065. import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
  2066. import { ElMessage, ElMessageBox } from 'element-plus'
  2067. import { ref, reactive } from 'vue'
  2068. import Shebeizhuangtai from '@/view/performance/09-workOrderVerification/componets/shebeizhuangtai.vue'
  2069. import { useUserStore } from '@/pinia/modules/user'
  2070. import PrintPage from '../yunyin/shengchanguanli/components/print.vue'
  2071. const printPageRef = ref()
  2072. const userStore = useUserStore()
  2073. const sys_id='['+userStore.userInfo.userName+'/'+userStore.userInfo.nickName+']'
  2074. const dialogSbyxgl=ref(false)
  2075. const zhichengstatus=ref(false)
  2076. const yinbanselectData = ref([])
  2077. defineOptions({
  2078. name: 'Company'
  2079. })
  2080. const xunchatreeData=ref([{label: '现场巡查记录',} ])
  2081. const activName=ref('first')
  2082. const activNames=ref('first')
  2083. let checked3=ref(false)
  2084. const detailData = reactive([])
  2085. const treeData=ref([])
  2086. const huanxingtreeData=ref([])
  2087. const huanxingselectData = ref([])
  2088. const huanxingData = ref({})
  2089. const dbformData=ref({})
  2090. const huanxingstatus=ref(false)
  2091. const zhichengtreeData=ref([{
  2092. label: '首件与过程确认'
  2093. },{
  2094. label: '机台检验'
  2095. },{
  2096. label: 'IPQC检验'
  2097. }])
  2098. let dianjiantreeData;
  2099. let JTMC=ref()
  2100. let CJMC=ref()
  2101. const sbzyData = reactive([])
  2102. const FPData = reactive([])
  2103. const CLMXData = reactive([])
  2104. let JYData = reactive([])
  2105. //工单打印
  2106. const pd_gdprintonClick = () => {
  2107. if(formData.value.工单编号==''){
  2108. ElMessage({ type: 'warning', message: '未获取到工单' });
  2109. return
  2110. }
  2111. printPageRef.value.open(formData.value.工单编号)
  2112. }
  2113. //键盘 input框跳转
  2114. const ent = (event,id1,id2,id3) => {
  2115. if (event.keyCode === 13 || event.keyCode === 40) { // Enter 或向下箭头
  2116. const idMap = {
  2117. 'bh1': '1',
  2118. 'bh2': '2',
  2119. 'bh3': '3',
  2120. 'bh4': '4',
  2121. 'bh5': '5',
  2122. 'bh6': '6',
  2123. 'bh7': '7',
  2124. 'bh8': '8',
  2125. 'bh9': '9',
  2126. 'bh10': '10',
  2127. 'bh11': '11',
  2128. };
  2129. if (idMap.hasOwnProperty(id2) && event.keyCode === 13) {
  2130. getygsubmit('', idMap[id2]);
  2131. }else if(id3!=''){
  2132. document.getElementById(id3).focus()
  2133. }
  2134. } else if (event.keyCode === 38) { // 向上箭头
  2135. if(id1!=''){
  2136. document.getElementById(id1).focus()
  2137. }
  2138. }else if (event.keyCode === 8) { // 删除箭头
  2139. if(id1!='' && document.getElementById(id2).value==''){
  2140. document.getElementById(id1).focus()
  2141. }
  2142. console.log(document.getElementById(id2).value)
  2143. }else if (event.keyCode === 37) { // 向左箭头
  2144. if(id1!='' && document.getElementById(id2).selectionStart==0){
  2145. document.getElementById(id1).focus()
  2146. }
  2147. }else if (event.keyCode === 39) { // 向右箭头
  2148. if(id3!='' && document.getElementById(id2).selectionStart == document.getElementById(id2).value.length){
  2149. document.getElementById(id3).focus()
  2150. }
  2151. }
  2152. }
  2153. const huanxingNodeClick = (node) => {
  2154. //存放当前节点的nodeId
  2155. if(node.machine){
  2156. // console.log(node.label.split('/')[1])
  2157. huanxingstatus.value=true
  2158. formData.value.huanxingId=node.label.split('/')[1]
  2159. remodelDetail(node.label.split('/')[1])
  2160. modelChangeRecord(node.machine)
  2161. }else{
  2162. console.log('2')
  2163. }
  2164. }
  2165. const modelChangeRecord = async (val) => {
  2166. const response = await ModelChangeRecord({machine:val});
  2167. if (response.code === 0) {
  2168. huanxingselectData.value=response.data
  2169. }
  2170. }
  2171. const remodelDetail = async (val) => {
  2172. const response = await RemodelDetail({UniqId:val});
  2173. if (response.code === 0) {
  2174. huanxingData.value=response.data
  2175. if(response.data.项目1==1){
  2176. huanxingData.value.项目1=true
  2177. }else{
  2178. huanxingData.value.项目1=false
  2179. }
  2180. if(response.data.项目2==1){
  2181. huanxingData.value.项目2=true
  2182. }else{
  2183. huanxingData.value.项目2=false
  2184. }
  2185. if(response.data.项目3==1){
  2186. huanxingData.value.项目3=true
  2187. }else{
  2188. huanxingData.value.项目3=false
  2189. }
  2190. if(response.data.项目4==1){
  2191. huanxingData.value.项目4=true
  2192. }else{
  2193. huanxingData.value.项目4=false
  2194. }
  2195. if(response.data.项目5==1){
  2196. huanxingData.value.项目5=true
  2197. }else{
  2198. huanxingData.value.项目5=false
  2199. }
  2200. }
  2201. }
  2202. const handleNodeClick = (nodeData,node) => {
  2203. //存放当前节点的nodeId
  2204. // if(nodeData.level === 1){
  2205. // console.log('1')
  2206. // }else{
  2207. // console.log('2')
  2208. // }
  2209. // if (nodeData.level === 1) {
  2210. // console.log(node.label); // 第一级节点
  2211. // } else if (nodeData.level === 2) {
  2212. // console.log(node.label); // 第二级节点
  2213. // JTMC=node.label.split("【")[0]
  2214. // FacilityProduction()
  2215. // FacilityWorklist()
  2216. // FacilityTeam(JTMC)
  2217. // // InspectionRecord()
  2218. // // FacilityDetail()
  2219. // // ReportProduceInfo()
  2220. // console.log(JTMC)
  2221. // } else if (nodeData.level === 3) {
  2222. // console.log(node.label); // 第三级节点
  2223. // }
  2224. // JTMC=node.label.split("【")[0]
  2225. // FacilityProduction()
  2226. // console.log(node.label)
  2227. }
  2228. //当前生产订单
  2229. // const formDatabz = reactive({
  2230. // sczl_bh12: [],
  2231. // sczl_name12: [],
  2232. // });
  2233. const classbz=ref([])
  2234. const FacilityProduction = async (addr) => {
  2235. const response = await facilityProduction({machine:JTMC});
  2236. if (response.code === 0) {
  2237. if(response.data){
  2238. formData.value.机台号=JTMC.split('#')[0]
  2239. formData.value.工单编号 = response.data.工单编号;
  2240. formData.value.印件号 = response.data.印件号;
  2241. formData.value.工序号 = response.data.工序名称.substring(0,2);
  2242. formData.value.工序名称 = response.data.工序名称;
  2243. formData.value.产品名称 = response.data.产品名称;
  2244. formData.value.产品代号 = response.data.产品代号;
  2245. formData.value.班组成员 = response.data.班组成员;
  2246. formData.value.班组Id=response.data.班组Id
  2247. formData.value.machine=JTMC
  2248. formData.value.状态=response.data.状态
  2249. formData.value.定额代号=response.data.定额代号
  2250. formData.value.addr=addr
  2251. BZMC.value=response.data.班组编号
  2252. // 填充sczl_bh和sczl_name字段
  2253. let sczl_bhkey=''
  2254. let sczl_namekey=''
  2255. if (response.data.班组成员) {
  2256. for (let i = 0; i < Math.min(Object.keys(response.data.班组成员).length, 9); i++) {
  2257. sczl_bhkey=`sczl_bh${i+1}`
  2258. sczl_namekey=`sczl_name${i+1}`
  2259. formData.value[sczl_bhkey] = response.data.班组成员[i]['编号'];
  2260. formData.value[sczl_namekey] = response.data.班组成员[i]['姓名'];
  2261. classbz.value[i]=response.data.班组成员[i]['编号']
  2262. }
  2263. formData.value.class=classbz.value.join(',')
  2264. }
  2265. // for (let i = 1; i <= 10; i++) {
  2266. // if (response.data.班组成员) {
  2267. // // formData.value.['sczl_bh12'] = response.data.班组成员[i]['编号'];
  2268. // // formData.value['sczl_name12'] = response.data.班组成员[i]['名字'];
  2269. // // console.log(formData)
  2270. // // console.log(response.data[sczl_bh]['员工姓名'])
  2271. // // console.log(formData.value.sczl_bh)
  2272. // // console.log(sczl_name)
  2273. // } else {
  2274. // console.log(555555555555555)
  2275. // // 如果字段不存在,可以在这里进行处理
  2276. // // console.log('2');
  2277. // // formData.value[sczl_bh] = response.data[sczl_bh]['员工编号'];
  2278. // // formData.value[sczl_name] = response.data[sczl_bh]['员工姓名'];
  2279. // // console.log(formData.value.sczl_bh)
  2280. // // console.log(sczl_name)
  2281. // }
  2282. // }
  2283. if(response.data.工单编号){
  2284. InspectionRecord()
  2285. FacilityDetail()
  2286. }
  2287. }
  2288. const responses = await MachineDetailList({workshop:CJMC});
  2289. if(responses.code===0){
  2290. responses.data.map(item=>{
  2291. if(item.设备编号==JTMC){
  2292. formData.value.status=item.状态
  2293. }
  2294. })
  2295. }
  2296. FacilityWorklist()
  2297. FacilityTeam(JTMC)
  2298. }
  2299. }
  2300. //设备工作清单
  2301. const FacilityWorklist = async () => {
  2302. const response = await facilityWorklist({machine:JTMC});
  2303. if (response.code === 0) {
  2304. sbzyData.splice(0, sbzyData.length, ...response.data);
  2305. // formData.value.productCode= response.data[0]['产品代号']
  2306. response.data.map(item=>{
  2307. if(item['工单编号|质量信息'].substring(0, 7)==formData.value.工单编号){
  2308. formData.value.productCode=item.产品代号
  2309. }
  2310. })
  2311. selectData.value=[]
  2312. const res = await facilityProcedure({ Gd_gdbh: formData.value.工单编号 })
  2313. console.log(res)
  2314. if (res.code === 0) {
  2315. selectData.value = res.data
  2316. }
  2317. }
  2318. }
  2319. const bzcloseDialog = async () => {
  2320. bzchanliangVisible.value=false
  2321. }
  2322. const ybupdateCompanyFunc = async (row) => {
  2323. console.log(currentBz.value)
  2324. dbformData.value = {};
  2325. if(currentBz.value){
  2326. let sczl_bhkey = ''
  2327. let sczl_namekey = ''
  2328. let percentagekey = ''
  2329. if (currentBz.value[9]) {
  2330. for (let i = 1; i <= 10; i++) {
  2331. sczl_bhkey = `sczl_bh${i}`
  2332. sczl_namekey = `sczl_name${i}`
  2333. percentagekey = `sczl_rate${i}`
  2334. dbformData.value[sczl_bhkey] = '';
  2335. dbformData.value[sczl_namekey] = '';
  2336. dbformData.value[percentagekey] = '';
  2337. }
  2338. dbformData.value.code10 = currentBz.value[9].split(' ')[0];
  2339. dbformData.value.name10 = currentBz.value[9].split(' ')[1]
  2340. dbformData.value.percentage10 = parseFloat(currentBz.value[9].split(' ')[2].split('(')[1].split(')')[0])/100
  2341. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 4, 6); i++) {
  2342. sczl_bhkey = `sczl_bh${i}`
  2343. sczl_namekey = `sczl_name${i}`
  2344. percentagekey = `sczl_rate${i}`
  2345. dbformData.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  2346. dbformData.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  2347. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  2348. dbformData.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  2349. }else{
  2350. dbformData.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  2351. }
  2352. }
  2353. } else {
  2354. for (let i = 1; i <= 10; i++) {
  2355. sczl_bhkey = `sczl_bh${i}`
  2356. sczl_namekey = `sczl_name${i}`
  2357. percentagekey = `sczl_rate${i}`
  2358. dbformData.value[sczl_bhkey] = '';
  2359. dbformData.value[sczl_namekey] = '';
  2360. dbformData.value[percentagekey] = '';
  2361. }
  2362. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 3, 6); i++) {
  2363. sczl_bhkey = `sczl_bh${i}`
  2364. sczl_namekey = `sczl_name${i}`
  2365. percentagekey = `sczl_rate${i}`
  2366. dbformData.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  2367. dbformData.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  2368. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  2369. dbformData.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  2370. }else{
  2371. dbformData.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  2372. }
  2373. }
  2374. }
  2375. }
  2376. console.log(row)
  2377. dbformData.value.order=row.工单编号
  2378. dbformData.value.product_name=row.产品名称
  2379. dbformData.value.gxmc=row.gxmc
  2380. dbformData.value.yjno=row.yjno
  2381. dbformData.value.yj_name=row.产品名称
  2382. dbformData.value.gy_name=row.gxmc
  2383. dbformData.value.gxh=row.gxmc.split('-')[0]
  2384. dbformData.value.日期=row.sj1.split(' ')[0]
  2385. dbformData.value.流程标牌=row.标牌号
  2386. dbformData.value.上机时间=row.sj1
  2387. dbformData.value.下机时间=row.sj2
  2388. dbformData.value.下机时间=row.sj2
  2389. dbformData.value.产量=row.产量
  2390. dbformData.value.制程废品=row.制程废品
  2391. dbformData.value.制程次品=row.制程次品
  2392. dbformData.value.前工序废=row.前工序废
  2393. dbformData.value.来料异常=row.来料异常
  2394. dbformData.value.联数=row.ls
  2395. dbformData.value.墨色=row.色度
  2396. dbformData.value.装版总时长=row.装版工时
  2397. dbformData.value.打样总工时=row.打样工时
  2398. dbformData.value.通电工时=row.通电工时
  2399. dbformData.value.定额代号=row.dedh
  2400. dbformData.value.码包=row.码包
  2401. dbformData.value.主电表=row.主电表
  2402. dbformData.value.辅电表=row.辅电表
  2403. dbformData.value.sczl_bh11=row.拉料
  2404. dbformData.value.sczl_name11=row.拉料姓名
  2405. dbformData.value.UniqId=row.UniqId
  2406. bzchanliangVisible.value=true
  2407. }
  2408. const chanliangEdits = async() => {
  2409. const response = await chanliangEdit({
  2410. sczl_num: dbformData.value.流程标牌,
  2411. sczl_rq: `${dbformData.value.日期} 00:00:00`,
  2412. sczl_cl: dbformData.value.产量,
  2413. sczl_zcfp:dbformData.value.制程废品,
  2414. sczl_zccp:dbformData.value.制程次品,
  2415. sczl_前工序废:dbformData.value.前工序废,
  2416. sczl_来料少数:dbformData.value.来料异常,
  2417. sczl_ls:dbformData.value.联数,
  2418. sczl_ms:dbformData.value.墨色,
  2419. sczl_装版总工时:dbformData.value.装版总时长,
  2420. sczl_打样总工时:dbformData.value.打样总工时,
  2421. sczl_设备运行工时:dbformData.value.通电工时,
  2422. sczl_dedh:dbformData.value.定额代号,
  2423. 码包:dbformData.value.码包,
  2424. 主电表:dbformData.value.主电表,
  2425. 辅电表:dbformData.value.辅电表,
  2426. sczl_bh98:dbformData.value.sczl_bh11,
  2427. UniqId:dbformData.value.UniqId
  2428. })
  2429. if (response.code === 0) {
  2430. bzchanliangVisible.value=false
  2431. FacilityProduction()
  2432. ElMessage({
  2433. type: 'success',
  2434. message: '成功'
  2435. })
  2436. }
  2437. }
  2438. //班组人员及分配比例单机
  2439. const clickybupdate = async (row) => {
  2440. console.log('班组人员及分配比例单机')
  2441. // ElMessageBox.confirm('确定切换当前班组人员为工作班组人员吗?', '提示', {
  2442. // confirmButtonText: '确定',
  2443. // cancelButtonText: '取消',
  2444. // type: 'warning'
  2445. // }).then(() => {
  2446. // setTeams(row)
  2447. // })
  2448. // const response = await facilityWorklist({machine:JTMC});
  2449. // if (response.code === 0) {
  2450. // sbzyData.splice(0, sbzyData.length, ...response.data);
  2451. // // formData.value.productCode= response.data[0]['产品代号']
  2452. // response.data.map(item=>{
  2453. // if(item['工单编号|质量信息'].substring(0, 7)==formData.value.工单编号){
  2454. // formData.value.productCode=item.产品代号
  2455. // }
  2456. // })
  2457. // selectData.value=[]
  2458. // const res = await facilityProcedure({ Gd_gdbh: sbzyData[0]['工单编号|质量信息'].substring(0, 7) })
  2459. // // formData.value.productCode= response.data[0]['产品代号']
  2460. // // console.log(res)
  2461. // if (res.code === 0) {
  2462. // selectData.value = res.data
  2463. // }
  2464. // }
  2465. }
  2466. //班组人员及分配比例双击
  2467. const gyupdateCompanyFunc = async (row) => {
  2468. console.log('班组人员及分配比例双击')
  2469. }
  2470. //班组人员及分配比例右键
  2471. const bzonRightClick = async (row) => {
  2472. ElMessageBox.confirm('确定切换班组吗?', '提示', {
  2473. confirmButtonText: '确定',
  2474. cancelButtonText: '取消',
  2475. type: 'warning'
  2476. }).then(() => {
  2477. SetMachineTeams(row)
  2478. })
  2479. }
  2480. //数据接口调用
  2481. const SetMachineTeams = async(row) => {
  2482. const res = await setMachineTeam({
  2483. machine: JTMC.split("#")[0],
  2484. order: formData.value.工单编号,
  2485. yjno: formData.value.印件号,
  2486. gy_name:formData.value.工序名称,
  2487. sczl_bzdh:row.班组号,
  2488. status:'生产',
  2489. production_now:0,
  2490. production_all:0,
  2491. team_id:row.ID
  2492. })
  2493. if (res.code === 0) {
  2494. FacilityProduction()
  2495. ElMessage({
  2496. type: 'success',
  2497. message: '成功'
  2498. })
  2499. }
  2500. }
  2501. const setTeams = async(row) => {
  2502. formData.value.班组Id=row.ID
  2503. BZMC.value=row.班组号
  2504. console.log(row)
  2505. let sczl_namekey=''
  2506. for (let i = 1; i <= 10; i++) {
  2507. sczl_bhkey = `sczl_bh${i}`
  2508. sczl_namekey = `sczl_name${i}`
  2509. formData.value[sczl_bhkey] = '';
  2510. formData.value[sczl_namekey] = '';
  2511. }
  2512. for (let i = 0; i < Object.keys(row).length-4; i++) {
  2513. sczl_bhkey=`sczl_bh${i+1}`
  2514. sczl_namekey=`sczl_name${i+1}`
  2515. formData.value[sczl_bhkey] =row[i].split(' ')[0];
  2516. formData.value[sczl_namekey] = row[i].split(' ')[1];
  2517. // console.log(formData)
  2518. }
  2519. console.log(formData)
  2520. }
  2521. //检验记录
  2522. const InspectionRecord = async () => {
  2523. JYData=[]
  2524. const response = await inspectionRecord({machine:JTMC,Gd_gdbh:formData.value.工单编号,team:BZMC.value});
  2525. if(response.code==0){
  2526. // 提取 inspectiontime 作为列名
  2527. // Extract inspectiontime as columnNames
  2528. columnNames = response.data.inspectiontime;
  2529. // Populate drzcData with row data
  2530. for (const key in response.data) {
  2531. if (key !== 'inspectiontime') {
  2532. const item = response.data[key];
  2533. const rowData = {
  2534. '工单编号': item['工单编号'],
  2535. '印件号': item['印件号'],
  2536. '工序名称': item['工序名称'],
  2537. '检验项目': item['检验项目']
  2538. };
  2539. // Initialize time columns with '—'
  2540. columnNames.forEach(time => {
  2541. rowData[time] = '';
  2542. });
  2543. // Split inspectresult and fill the corresponding time columns
  2544. const results = item['inspectresult'].split(',');
  2545. results.forEach(result => {
  2546. if (columnNames.includes(result)) {
  2547. rowData[result] = '√';
  2548. }else{rowData[result] = ''}
  2549. });
  2550. // Add the row data to drzcData
  2551. JYData.push(rowData);
  2552. }
  2553. }
  2554. console.log(JYData);
  2555. }
  2556. }
  2557. //当班产量明细
  2558. const FacilityDetail = async () => {
  2559. formData.value.production_now=0
  2560. formData.value.production_all=0
  2561. const response = await facilityDetail({ machine: JTMC, Gd_gdbh: formData.value.工单编号, team:BZMC.value });
  2562. if (response.code === 0) {
  2563. if(response.data === null){
  2564. formData.value.上机时间=currentDate+' 08:30:00'
  2565. }else{
  2566. formData.value.上机时间=currentDate.split('-')[0]+'-'+response.data[0]['生产时间段'].split('>')[1]+':00'
  2567. }
  2568. console.log(response.data)
  2569. CLMXData.splice(0, CLMXData.length, ...Object.values(response.data));
  2570. formData.value.production_now=response.data[0].产量
  2571. formData.value.production_all=response.data.total.产量
  2572. }
  2573. };
  2574. //员工编号回车事件
  2575. const getygsubmit = (event, inputName) => {
  2576. // console.log(inputName)
  2577. let combinedString = 'sczl_bh' + inputName;
  2578. // console.log(combinedString)
  2579. // let variableName = 'sczl_gdbh'+inputName;
  2580. let variableValue = eval('formData3.value.' + combinedString);
  2581. // console.log(variableValue)
  2582. GetYg(variableValue,inputName)
  2583. }
  2584. const blModel = ref(false)
  2585. const employeeData = ref('')
  2586. const getbzyg = async (value,key) => {
  2587. let bzyg=''
  2588. bzyg=`code${key}`
  2589. let bzxm=''
  2590. bzxm=`name${key}`
  2591. const response = await getYg({sczl_bh:formDatas.value[bzyg]});
  2592. console.log(response)
  2593. if (response.code === 0) {
  2594. if(response.data.length === 1){
  2595. formDatas.value[bzxm]= response.data[0].ygxm
  2596. formDatas.value[bzyg]= response.data[0].员工编号
  2597. }else{
  2598. blModel.value = true;
  2599. console.log(response.data)
  2600. employeeData.value = response.data // 假设响应数据是数组
  2601. }
  2602. }
  2603. }
  2604. const clicked = ref(false);
  2605. const tablebllickHandler = async (row, column, event) => {
  2606. if (clicked.value) {
  2607. // 如果已经点击过一次,则不再执行操作
  2608. return;
  2609. }
  2610. let nextIndex = 1;
  2611. while (formDatas.value[`code${nextIndex}`] !== '' && formDatas.value[`name${nextIndex}`] !== '') {
  2612. nextIndex++;
  2613. if (nextIndex > 8) {
  2614. // 如果所有字段都已经填满,则不做任何事情并退出函数
  2615. return;
  2616. }
  2617. }
  2618. // 将选定的值分配给下一个空的代码和名称字段
  2619. formDatas.value[`code${nextIndex}`] = row.员工编号;
  2620. formDatas.value[`name${nextIndex}`] = row.ygxm;
  2621. blModel.value = false;
  2622. clicked.value = true;
  2623. setTimeout(() => {
  2624. clicked.value = false;
  2625. }, 300); // 300毫秒内再次点击将不会触发事件,你可以根据需要调整这个延迟时间
  2626. };
  2627. const getxunchayg = async (value) => {
  2628. const response = await getYg({sczl_bh:xunchaData.value.sczl_bh});
  2629. if (response.code === 0) {
  2630. xunchaData.value.sczl_name=response.data[0].ygxm
  2631. xunchaData.value.sczl_bh=response.data[0].员工编号
  2632. // response.data.forEach(item => {
  2633. // const { ygxm, 员工编号 } = item;
  2634. // // 假设 bzxm 和 bzyg 是动态的属性名称
  2635. // xunchaData.value[bzxm] = ygxm;
  2636. // xunchaData.value[bzyg] = 员工编号;
  2637. // });
  2638. }
  2639. }
  2640. const getlaliaoyg = async (value) => {
  2641. const response = await getYg({sczl_bh:dbformData.value.sczl_bh11});
  2642. if (response.code === 0) {
  2643. dbformData.value.sczl_name11=response.data.ygxm
  2644. }
  2645. }
  2646. //获取员工信息
  2647. const GetYg = async (value,inputName) => {
  2648. const response = await getYg({sczl_bh:value});
  2649. // console.log(response)
  2650. if (response.code === 0) {
  2651. // console.log(response.data.ygxm)
  2652. let Bname = 'sczl_name' + inputName;
  2653. let Bbh = 'sczl_bh' + inputName;
  2654. console.log(Bbh)
  2655. formData3.value[Bname]=response.data.ygxm
  2656. formData3.value[Bbh]=response.data.员工编号
  2657. // console.log(formData.value[Bname])
  2658. }
  2659. }
  2660. // 验证规则
  2661. const rule = reactive({
  2662. })
  2663. const searchRule = reactive({
  2664. createdAt: [
  2665. { validator: (rule, value, callback) => {
  2666. if (searchInfo.value.startCreatedAt && !searchInfo.value.endCreatedAt) {
  2667. callback(new Error('请填写结束日期'))
  2668. } else if (!searchInfo.value.startCreatedAt && searchInfo.value.endCreatedAt) {
  2669. callback(new Error('请填写开始日期'))
  2670. } else if (searchInfo.value.startCreatedAt && searchInfo.value.endCreatedAt && (searchInfo.value.startCreatedAt.getTime() === searchInfo.value.endCreatedAt.getTime() || searchInfo.value.startCreatedAt.getTime() > searchInfo.value.endCreatedAt.getTime())) {
  2671. callback(new Error('开始日期应当早于结束日期'))
  2672. } else {
  2673. callback()
  2674. }
  2675. }, trigger: 'change' }
  2676. ],
  2677. })
  2678. const elFormRef = ref()
  2679. const elSearchFormRef = ref()
  2680. // =========== 表格控制部分 ===========
  2681. const page = ref(1)
  2682. const total = ref(0)
  2683. const pageSize = ref(10)
  2684. const tableData = ref([])
  2685. const zhibiaoselectData=ref([])
  2686. const yinbanVisible = ref(false)
  2687. const huanxingType=ref(false)
  2688. const huanxingStatus=ref(0)
  2689. const yinbantreeData=ref([])
  2690. const fujiaselectData=ref([])
  2691. const searchInfo = ref({})
  2692. const onHxadd = () => {
  2693. huanxingstatus.value=true
  2694. huanxingType.value=true
  2695. huanxingStatus.value=1
  2696. huanxingData.value.班组=''
  2697. huanxingData.value.码包B=''
  2698. huanxingData.value.工单编号A=''
  2699. huanxingData.value.印件工序A=''
  2700. huanxingData.value.码包号A=''
  2701. huanxingData.value.工单编号B=''
  2702. huanxingData.value.印件工序B=''
  2703. huanxingData.value.机长=''
  2704. huanxingData.value.班长=''
  2705. huanxingData.value.质量巡查员=''
  2706. huanxingData.value.印件名称A=''
  2707. huanxingData.value.印件名称B=''
  2708. huanxingData.value.项目1=false
  2709. huanxingData.value.项目2=false
  2710. huanxingData.value.项目3=false
  2711. huanxingData.value.项目4=false
  2712. huanxingData.value.项目5=false
  2713. }
  2714. const onHxedit = () => {
  2715. huanxingType.value=true
  2716. huanxingStatus.value=2
  2717. }
  2718. const onHxdel = () => {
  2719. ElMessageBox.confirm('确定要删除吗?', '提示', {
  2720. confirmButtonText: '确定',
  2721. cancelButtonText: '取消',
  2722. type: 'warning'
  2723. }).then(() => {
  2724. remodelDataDels()
  2725. })
  2726. }
  2727. const remodelDataDels = async() => {
  2728. const response = await remodelDataDel({
  2729. UniqId:formData.value.huanxingId
  2730. })
  2731. if (response.code === 0) {
  2732. ElMessage({
  2733. type: 'success',
  2734. message: '删除成功!'
  2735. })
  2736. huanxingtreeData.value=[]
  2737. huanxingselectData.value=[]
  2738. huanxingData.value={}
  2739. formData.value.huanxingId=''
  2740. huanxingstatus.value=false
  2741. RemodelGetTab()
  2742. }
  2743. }
  2744. const onHxsave = () => {
  2745. if(huanxingData.value.项目1==true){
  2746. huanxingData.value.项目1=1
  2747. }else{
  2748. huanxingData.value.项目1=0
  2749. }
  2750. if(huanxingData.value.项目2==true){
  2751. huanxingData.value.项目2=1
  2752. }else{
  2753. huanxingData.value.项目2=0
  2754. }
  2755. if(huanxingData.value.项目3==true){
  2756. huanxingData.value.项目3=1
  2757. }else{
  2758. huanxingData.value.项目3=0
  2759. }
  2760. if(huanxingData.value.项目4==true){
  2761. huanxingData.value.项目4=1
  2762. }else{
  2763. huanxingData.value.项目4=0
  2764. }
  2765. if(huanxingData.value.项目5==true){
  2766. huanxingData.value.项目5=1
  2767. }else{
  2768. huanxingData.value.项目5=0
  2769. }
  2770. if(huanxingStatus.value==1){
  2771. remodelDataAdds()
  2772. }
  2773. if(huanxingStatus.value==2){
  2774. remodelDataEdits()
  2775. console.log(huanxingData)
  2776. }
  2777. huanxingType.value=false
  2778. huanxingStatus.value=0
  2779. }
  2780. const remodelDataAdds = async() => {
  2781. const response = await remodelDataAdd({
  2782. 日期:huanxingData.value.日期,
  2783. 班组:huanxingData.value.班组,
  2784. 机台编号:huanxingData.value.机台编号,
  2785. 工单编号A:huanxingData.value.工单编号A,
  2786. 印件工序A:huanxingData.value.印件工序A,
  2787. 码包号A:huanxingData.value.码包号A,
  2788. 工单编号B:huanxingData.value.工单编号B,
  2789. 印件工序B:huanxingData.value.印件工序B,
  2790. 码包号B:huanxingData.value.码包B,
  2791. 清场项目A:huanxingData.value.项目1,
  2792. 清场项目B:huanxingData.value.项目2,
  2793. 清场项目C:huanxingData.value.项目3,
  2794. 清场项目D:huanxingData.value.项目4,
  2795. 清场项目E:huanxingData.value.项目5,
  2796. 机长:huanxingData.value.机长,
  2797. 班长:huanxingData.value.班长,
  2798. 质量巡查员:huanxingData.value.质量巡查员
  2799. })
  2800. if (response.code === 0) {
  2801. ElMessage({
  2802. type: 'success',
  2803. message: '新增成功!'
  2804. })
  2805. // remodelDetail(formData.value.huanxingId)
  2806. RemodelGetTab()
  2807. modelChangeRecord(JTMC)
  2808. }
  2809. }
  2810. const remodelDataEdits = async() => {
  2811. const response = await remodelDataEdit({
  2812. 日期:huanxingData.value.日期,
  2813. 班组:huanxingData.value.班组,
  2814. 机台编号:huanxingData.value.机台编号,
  2815. 工单编号A:huanxingData.value.工单编号A,
  2816. 印件工序A:huanxingData.value.印件工序A,
  2817. 码包号A:huanxingData.value.码包号A,
  2818. 工单编号B:huanxingData.value.工单编号B,
  2819. 印件工序B:huanxingData.value.印件工序B,
  2820. 码包号B:huanxingData.value.码包B,
  2821. 清场项目A:huanxingData.value.项目1,
  2822. 清场项目B:huanxingData.value.项目2,
  2823. 清场项目C:huanxingData.value.项目3,
  2824. 清场项目D:huanxingData.value.项目4,
  2825. 清场项目E:huanxingData.value.项目5,
  2826. 机长:huanxingData.value.机长,
  2827. 班长:huanxingData.value.班长,
  2828. 质量巡查员:huanxingData.value.质量巡查员,
  2829. UniqId:formData.value.huanxingId
  2830. })
  2831. if (response.code === 0) {
  2832. ElMessage({
  2833. type: 'success',
  2834. message: '修改成功!'
  2835. })
  2836. }
  2837. }
  2838. // 重置
  2839. const onReset = () => {
  2840. searchInfo.value = {}
  2841. getTableData()
  2842. }
  2843. // 搜索
  2844. const onSubmit = () => {
  2845. elSearchFormRef.value?.validate(async(valid) => {
  2846. if (!valid) return
  2847. page.value = 1
  2848. pageSize.value = 10
  2849. getTableData()
  2850. })
  2851. }
  2852. // 分页
  2853. const handleSizeChange = (val) => {
  2854. pageSize.value = val
  2855. getTableData()
  2856. }
  2857. // 修改页面容量
  2858. const handleCurrentChange = (val) => {
  2859. page.value = val
  2860. getTableData()
  2861. }
  2862. const getTableData = async () => {
  2863. const response = await facilityTab();
  2864. if (response.code === 0 && response.data) {
  2865. const workshops = response.data; // 车间数据
  2866. // 在推送新项之前将 treeData 重置为空数组
  2867. treeData.value = []; // 使用 .value 访问响应式引用的值
  2868. for (const workshopName in workshops) {
  2869. const workshopNode = {
  2870. label: workshopName,
  2871. children: [],
  2872. level: 1 // 添加层级属性
  2873. };
  2874. const machines = workshops[workshopName]; // 车间下的机器
  2875. for (const machineName in machines) {
  2876. const machineNode = {
  2877. label: machineName,
  2878. children: [],
  2879. level: 2, // 添加层级属性
  2880. parentNode: workshopNode
  2881. };
  2882. // Now that machineNode is initialized, you can refer to it
  2883. const childrenNodes = machines[machineName].map(dateTime => {
  2884. const dateOnly = dateTime.split(' ')[0];
  2885. return {
  2886. label: dateOnly,
  2887. level: 3, // 添加层级属性
  2888. parentNode: machineNode
  2889. };
  2890. });
  2891. // Assign the childrenNodes to the machineNode's children property
  2892. machineNode.children = childrenNodes;
  2893. // Finally, push the machineNode to the workshopNode's children array
  2894. workshopNode.children.push(machineNode);
  2895. }
  2896. // 将 workshopNode 推送到响应式 treeData 数组
  2897. treeData.value.push(workshopNode);
  2898. }
  2899. }
  2900. };
  2901. // 查询
  2902. const getTableList = async() => {
  2903. const table = await getCompanyList({ page: page.value, pageSize: pageSize.value, ...searchInfo.value })
  2904. if (table.code === 0) {
  2905. tableData.value = table.data.list
  2906. total.value = table.data.total
  2907. page.value = table.data.page
  2908. pageSize.value = table.data.pageSize
  2909. }
  2910. }
  2911. // getTableData()
  2912. //删除
  2913. function onDel() {
  2914. }
  2915. //完工
  2916. function onOver() {
  2917. SetProcessStatus()
  2918. FacilityProduction()
  2919. }
  2920. //完工事件
  2921. const SetProcessStatus = async () => {
  2922. const RESCODE={
  2923. order:'2311114',
  2924. yjno:'01',
  2925. gxh:'01',
  2926. }
  2927. console.log(formData.value.工单编号,formData.value.印件号,formData.value.工序号)
  2928. const response = await setProcessStatus({order:formData.value.工单编号,yjno:formData.value.印件号,gxh:formData.value.工序号});
  2929. if (response.code === 0) {
  2930. FacilityProduction
  2931. }
  2932. console.log(response)
  2933. }
  2934. import { nextTick } from 'vue';
  2935. //设备点检
  2936. function ondianjian() {
  2937. getSpotCheckItem(JTMC).then(treeData => {
  2938. if (treeData) {
  2939. // 如果获取成功,treeData 就是我们需要的树形结构数据
  2940. dianjiantreeData = treeData;
  2941. console.log('222');
  2942. console.log(dianjiantreeData);
  2943. // 使用 nextTick 来确保在更新 dianjianVisible 后立即刷新视图
  2944. nextTick(() => {
  2945. dianjianVisible.value = true;
  2946. });
  2947. // 这里可以处理treeData,例如将其赋值给某个状态管理变量或者用于渲染界面
  2948. } else {
  2949. // 如果获取失败,则treeData为null
  2950. console.log('获取巡检项目树形结构数据失败');
  2951. }
  2952. });
  2953. }
  2954. //机台印版领用->右侧详情
  2955. const facilityPrintDetailItem = async (value) => {
  2956. try {
  2957. formData.value.code=value
  2958. // 调用接口获取巡检项目数据
  2959. const response = await facilityPrintDetail({ workOrder: formData.value.工单编号,code:value,productCode:formData.value.productCode });
  2960. // const response = await facilityPrintDetail({ workOrder: '2312165',code:'0521',productCode:'104601001' });
  2961. // 检查接口返回的状态码
  2962. if (response.code === 0) {
  2963. console.log(response)
  2964. yinbanselectData.value=response.data
  2965. }
  2966. } catch (error) {
  2967. // 捕获并打印异常
  2968. console.error("获取数据出错:" + error);
  2969. return null;
  2970. }
  2971. };
  2972. const yinbanNodeClick = (node, check, nodeData) => {
  2973. if (node.children && node.children.length > 0) {
  2974. // 点击的是父节点,且有子节点
  2975. // 执行相应的父节点单击事件处理逻辑
  2976. // 这里可以添加你想要的处理逻辑,比如展开/折叠节点等
  2977. } else {
  2978. // 点击的是子节点,或者没有子节点
  2979. // 执行相应的子节点单击事件处理逻辑
  2980. yinbanselectData.value=[]
  2981. facilityPrintDetailItem(node.code)
  2982. }
  2983. };
  2984. const onyinban = async() => {
  2985. console.log(formData.value)
  2986. if(formData.value.产品代号==''){
  2987. ElMessage({
  2988. type: 'warning',
  2989. message: '该工单没有产品编号'
  2990. })
  2991. return false
  2992. }
  2993. const res = await facilityPrintGetTab({productCode:formData.value.产品代号})
  2994. // const res = await facilityPrintGetTab({productCode:'104601001'})
  2995. if(res.code===0){
  2996. if(res.data==null){
  2997. ElMessage({
  2998. type: 'warning',
  2999. message: '该产品没有印版资料'
  3000. })
  3001. return false
  3002. }
  3003. yinbantreeData.value=[{
  3004. label:'产品印版库',
  3005. children:res.data.map(item=>({
  3006. label:item.印版分类,
  3007. code:item.编号
  3008. }))
  3009. }]
  3010. console.log(res.data.map(item=>({
  3011. label:item.印版分类,
  3012. code:item.编号
  3013. })))
  3014. yinbanVisible.value = true;
  3015. }
  3016. }
  3017. const onYbout = async() => {
  3018. yinbanSelection.value.map((item)=>{
  3019. item.Yb_工单编号=formData.value.工单编号
  3020. item.Yb_存货编码=item.存货编码
  3021. item.Yb_供方批号=item.供方批号
  3022. item.Yb_领用机台=JTMC
  3023. item.Yb_印数=item.印数
  3024. item.Sys_id=`[${formData.value.addr}/${JTMC}]`
  3025. delete item.UniqId
  3026. delete item.产品名称
  3027. delete item.产品编号
  3028. delete item.供方批号
  3029. delete item.制造日期
  3030. delete item.印数
  3031. delete item.印版名称
  3032. delete item.印版类别
  3033. delete item.存货名称
  3034. delete item.存货编码
  3035. delete item.客户名称
  3036. delete item.客户编号
  3037. return item
  3038. })
  3039. console.log(yinbanSelection.value)
  3040. if(yinbanSelection.value.length<1){
  3041. ElMessage({
  3042. type: 'error',
  3043. message: '暂无印版数据 请确认!'
  3044. })
  3045. }else{
  3046. const response = await PrintDetailAdd(yinbanSelection.value)
  3047. if(response.code===0){
  3048. facilityPrintDetailItem(formData.value.code)
  3049. ElMessage({
  3050. type: 'success',
  3051. message: '成功!'
  3052. })
  3053. }
  3054. }
  3055. }
  3056. const onYbback = async() => {
  3057. const arr=[]
  3058. yinbanSelection.value.map((item)=>{
  3059. if(item.UniqId===null){
  3060. }else{
  3061. arr.push(item.UniqId)
  3062. }
  3063. })
  3064. const response = await PrintDetailEdit({id:arr.join(',')})
  3065. if(response.code===0){
  3066. facilityPrintDetailItem(formData.value.code)
  3067. ElMessage({
  3068. type: 'success',
  3069. message: '成功!'
  3070. })
  3071. }
  3072. }
  3073. const onzhicheng = async () => {
  3074. zhichengstatus.value=false
  3075. xunchaData.value=[]
  3076. const response = await reportProduceInfo({machine:JTMC.split("#")[0]});
  3077. if (response.code === 0) {
  3078. xunchaData.value.order=response.data.order
  3079. xunchaData.value.yjno=response.data.yjno
  3080. xunchaData.value.product_name=response.data.product_name
  3081. xunchaData.value.gxmc=response.data.gxmc
  3082. xunchaData.value.lcdh=0
  3083. xunchaData.value.sczl_bh=''
  3084. xunchaData.value.sczl_name=''
  3085. xunchaData.value.remark=''
  3086. zhichengVisible.value = true;
  3087. }
  3088. }
  3089. const chanliangselectData = reactive([])
  3090. const chanliangVisible = ref(false)
  3091. const bzchanliangVisible = ref(false)
  3092. const huanxingVisible = ref(false)
  3093. const xunchaVisible = ref(false)
  3094. //客诉记录
  3095. const complaintsShow = ref(false)
  3096. const complaintsData = ref([])
  3097. function oncomplaints() {
  3098. Complaints()
  3099. }
  3100. // 客诉记录表格填充
  3101. const Complaints = async() => {
  3102. complaintsData.value=[]
  3103. selectedRowData.value={}
  3104. const res = await ComplaintRecord({productCode :formData.value.productCode})
  3105. // const res = await ComplaintRecord({productCode :100601011})
  3106. if (res.msg === '成功') {
  3107. complaintsData.value=res.data;
  3108. selectedRowData.value=complaintsData.value[0]
  3109. complaintsShow.value=true
  3110. }else{
  3111. ElMessage({
  3112. type: 'success',
  3113. message: '未找到该产品客诉记录!'
  3114. })
  3115. }
  3116. }
  3117. const selectedRowData = ref({
  3118. })
  3119. //客诉表格单击
  3120. const complaintshandle = (val, row) => {
  3121. selectedRowData.value=val
  3122. };
  3123. //设置机台状态
  3124. function onstatus() {
  3125. FacilityProduction().then(()=>{
  3126. dialogSbyxgl.value=true
  3127. })
  3128. // SetMachineStatus()
  3129. // ReportProduceInfo()
  3130. }
  3131. function onClear() {
  3132. huanxingtreeData.value=[]
  3133. huanxingselectData.value=[]
  3134. huanxingData.value={}
  3135. huanxingstatus.value=false
  3136. huanxingVisible.value=true
  3137. RemodelGetTab()
  3138. }
  3139. const gzSelVisible = ref(false)
  3140. const gz_tableData = reactive([])
  3141. const gz_tableData2 = reactive([])
  3142. let gz_bzbh = [];
  3143. const tableCols1 = [
  3144. { label: '员工编号', prop: 'bh', width: '105' },
  3145. { label: '员工姓名', prop: '员工姓名', width: '105' },
  3146. { label: '日期', prop: 'sczl_rq', width: '120' },
  3147. { label: '计件工资', prop: '计件工资', width: '105' },
  3148. { label: '加班工资', prop: '加班工资', width: '105' },
  3149. { label: '计时时数', prop: '计时时数', width: '105' },
  3150. { label: '计时工资', prop: '计时工资', width: '135' },
  3151. { label: '日工资合计', prop: '日工资合计', width: '135' },
  3152. ]
  3153. const tableCols2 = [
  3154. { label: '日期', prop: 'sczl_rq', width: '100' },
  3155. { label: '工单编号', prop: 'sczl_gdbh', width: '105' },
  3156. { label: '产品名称', prop: 'Gd_cpmc', width: '120' },
  3157. { label: '印件及工序', prop: 'sczl_type', width: '120' },
  3158. { label: '机台', prop: 'sczl_jtbh', width: '87' },
  3159. { label: '车头产量', prop: '班组车头产量', width: '105' },
  3160. { label: '计件产量', prop: '计件产量', width: '105' },
  3161. { label: '补产产量', prop: '补产产量', width: '105' },
  3162. { label: '核算产量', prop: '核算产量', width: '105' },
  3163. { label: '达标定额', prop: '达标定额', width: '105' },
  3164. { label: '千件工价', prop: '千件工价', width: '105' },
  3165. { label: '计件工资', prop: '个人计件工资', width: '105' },
  3166. { label: '加班工资', prop: '个人加班工资', width: '105' },
  3167. { label: '装版工时', prop: '装版工时', width: '120' },
  3168. { label: '保养工时', prop: '保养工时', width: '105' },
  3169. { label: '打样工时', prop: '打样工时', width: '105' },
  3170. { label: '异常停机', prop: '异常停机工时', width: '105' },
  3171. { label: '补产标准', prop: '补产标准', width: '120' },
  3172. { label: '分摊比例', prop: 'Rate', width: '105' },
  3173. ]
  3174. //员工工资查询
  3175. const gzSel = () =>{
  3176. console.log(formData)
  3177. if(formData.value.班组成员.length==0){
  3178. ElMessage({ type: 'warning', message: '未获取到员工' });
  3179. return
  3180. }
  3181. for (let index in formData.value.班组成员) {
  3182. gz_bzbh[index] = formData.value.班组成员[index]['编号']
  3183. }
  3184. gzSelVisible.value=true
  3185. }
  3186. // 查询
  3187. const gz_ontable = (ygbh) => {
  3188. // 创建一个Date对象
  3189. var currentDate = new Date();
  3190. // 获取年份
  3191. var year = currentDate.getFullYear();
  3192. // 获取月份(注意,月份从0开始,所以需要加1)
  3193. var month = currentDate.getMonth() + 1;
  3194. if (month < 10) {
  3195. month = "0" + month;
  3196. }
  3197. var date = year+ "" +month
  3198. const response = dailysearch({date: date, search: ygbh}).then(response=>{
  3199. if (response.code === 0) {
  3200. const originalData = response.data;
  3201. const summaryData = generateSummaryData(originalData);
  3202. // 将合计数据插入到原始数据中
  3203. const combinedData = [];
  3204. originalData.forEach((item, index) => {
  3205. combinedData.push(item);
  3206. const nextItem = originalData[index + 1];
  3207. if (nextItem==undefined) {
  3208. // 如果下一个员工姓名与当前不同,插入合计数据
  3209. const currentSummary = summaryData.shift();
  3210. combinedData.push(currentSummary);
  3211. }
  3212. });
  3213. // 更新表格数据
  3214. gz_tableData.splice(0, gz_tableData.length, ...combinedData);
  3215. }
  3216. });
  3217. dailygetGzByYgbh({date:date,code:ygbh}).then(response=>{
  3218. if(response.code==0){
  3219. gz_tableData2.splice(0, gz_tableData2.length, ...response.data);
  3220. }
  3221. })
  3222. }
  3223. const generateSummaryData = (data) => {
  3224. const summaryData = [];
  3225. let currentName = null;
  3226. let currentSummary = null;
  3227. data.forEach((item) => {
  3228. const name = item['员工姓名'].trim(); // 获取员工姓名并去除空格
  3229. if (name !== currentName) {
  3230. // 如果员工姓名发生改变,说明需要插入合计数据
  3231. if (currentSummary) {
  3232. // 将上一个员工的合计数据插入到数组中
  3233. summaryData.push(currentSummary);
  3234. }
  3235. // 创建新的合计数据
  3236. currentSummary = {
  3237. '员工姓名': name,
  3238. '日期': 0,
  3239. '计件工资': 0,
  3240. '加班工资': 0,
  3241. '计时时数': 0,
  3242. '计时工资': 0,
  3243. '日工资合计': 0
  3244. };
  3245. currentName = name;
  3246. }
  3247. // 更新合计数据
  3248. currentSummary['日期']++;
  3249. currentSummary['计件工资'] += parseFloat(item['计件工资']);
  3250. currentSummary['加班工资'] += parseFloat(item['加班工资']);
  3251. currentSummary['计时时数'] += parseFloat(item['计时时数']);
  3252. currentSummary['计时工资'] += parseFloat(item['计时工资']);
  3253. currentSummary['日工资合计'] += parseFloat(item['日工资合计']);
  3254. currentSummary['员工姓名']='合计('+currentSummary['日期']+'天)';
  3255. });
  3256. // 将最后一个员工的合计数据插入到数组中
  3257. if (currentSummary) {
  3258. summaryData.push(currentSummary);
  3259. }
  3260. // 将日期填充到表格中
  3261. summaryData.forEach((summary) => {
  3262. summary['计件工资'] = summary['计件工资'].toFixed(2); // 保留两位小数
  3263. summary['加班工资'] = summary['加班工资'].toFixed(2);
  3264. summary['计时时数'] = summary['计时时数'].toFixed(2);
  3265. summary['计时工资'] = summary['计时工资'].toFixed(2);
  3266. summary['日工资合计'] = summary['日工资合计'].toFixed(2);
  3267. });
  3268. return summaryData;
  3269. };
  3270. const RemodelGetTab = async() => {
  3271. const response = await remodelGetTab()
  3272. let arr=[]
  3273. if (response.code === 0) {
  3274. // for(let key in response.data){
  3275. // if(response.data[key][0]){
  3276. // let children =[]
  3277. // for (let i = 0; i < response.data[key].length; i++) {
  3278. // children.push({label:response.data[key][i],machine:key})
  3279. // }
  3280. // arr.push({
  3281. // label:key,
  3282. // children:children
  3283. // })
  3284. // console.log(response.data[key].length)
  3285. // }else{
  3286. // arr.push({label:key})
  3287. // }
  3288. // }
  3289. // huanxingtreeData.value=arr
  3290. huanxingtreeData.value=[{label:JTMC,children:response.data[JTMC].map(item=>({
  3291. label:item,
  3292. machine:JTMC
  3293. }))}]
  3294. }
  3295. }
  3296. //设置机台状态
  3297. const SetMachineStatus = async (row) => {
  3298. let classString = '';
  3299. const sczl_bh_values = [formData.value.sczl_bh1, formData.value.sczl_bh2, formData.value.sczl_bh3, formData.value.sczl_bh4, formData.value.sczl_bh5, formData.value.sczl_bh6];
  3300. for (let i = 0; i < sczl_bh_values.length; i++) {
  3301. if (sczl_bh_values[i]) {
  3302. classString += sczl_bh_values[i] + ',';
  3303. }
  3304. }
  3305. // 去除最后一个逗号
  3306. classString = classString.slice(0, -1);
  3307. const response = await setMachineStatus({
  3308. machine: JTMC.split("#")[0],
  3309. order:row['工单编号|质量信息'].split('|')[0],
  3310. yjno:'1',
  3311. gy_name:row['工序名称'],
  3312. status:'生产',
  3313. production_now:0,
  3314. production_all:0,
  3315. class:classString
  3316. });
  3317. if (response.code === 0) {
  3318. FacilityProduction(JTMC)
  3319. }
  3320. }
  3321. //提交巡查记录
  3322. function onxuncha() {
  3323. xunchaData.value=[]
  3324. ReportProduceInfo()
  3325. }
  3326. //巡检弹窗确定
  3327. const xunchaDialog = async () => {
  3328. SubmitPatrolRecord()
  3329. }
  3330. const closexunchaDialog = async () => {
  3331. xunchaVisible.value=false
  3332. }
  3333. const dianjianDialog = async () => {
  3334. dianjianselectData.splice(0, dianjianselectData.length, ...dianjianselectData.map(item=>{
  3335. if(item.zc==true){
  3336. item.status='正常'
  3337. }
  3338. if(item.yc==true){
  3339. item.status='异常'
  3340. }
  3341. if(item.notjc==true){
  3342. item.status='不检测'
  3343. }
  3344. item.itemName=item.检验项目
  3345. item.method=item.点检方法
  3346. item.standard=item.判定标准
  3347. delete item.notjc
  3348. delete item.zc
  3349. delete item.yc
  3350. delete item.检验项目
  3351. delete item.点检方法
  3352. delete item.判定标准
  3353. return item
  3354. }))
  3355. const response = await InspectionItemAdd(dianjianselectData);
  3356. if (response.code === 0) {
  3357. ElMessage({
  3358. type: 'success',
  3359. message: '成功'
  3360. })
  3361. dianjianVisible.value=false
  3362. }
  3363. }
  3364. const zhichengDialog = async () => {
  3365. console.log(fujiaselectData.value)
  3366. let arr =[]
  3367. zhibiaoselectData.value.map(item=>{
  3368. if(item.zc==true){
  3369. item.result='合格'
  3370. item.item=item.检验项目
  3371. item.instrument=item.检测方法
  3372. item.standard=item.相关标准
  3373. delete item.notjc
  3374. delete item.zc
  3375. delete item.yc
  3376. delete item.检验项目
  3377. delete item.检测方法
  3378. delete item.相关标准
  3379. delete item.检验频率
  3380. arr.push(item)
  3381. return item
  3382. }
  3383. if(item.yc==true){
  3384. item.result='不合格'
  3385. item.item=item.检验项目
  3386. item.instrument=item.检测方法
  3387. item.standard=item.相关标准
  3388. delete item.notjc
  3389. delete item.zc
  3390. delete item.yc
  3391. delete item.检验项目
  3392. delete item.检测方法
  3393. delete item.相关标准
  3394. delete item.检验频率
  3395. arr.push(item)
  3396. return item
  3397. }
  3398. if(item.notjc==true){
  3399. item.result='不检测'
  3400. item.item=item.检验项目
  3401. item.instrument=item.检测方法
  3402. item.standard=''
  3403. delete item.notjc
  3404. delete item.zc
  3405. delete item.yc
  3406. delete item.检验项目
  3407. delete item.检测方法
  3408. delete item.相关标准
  3409. delete item.检验频率
  3410. // arr.push(item)
  3411. return item
  3412. }
  3413. })
  3414. let arrs=[]
  3415. let fujiastatus=0
  3416. fujiaselectData.value.map(item=>{
  3417. if(item.notjc==true){
  3418. return item
  3419. }else{
  3420. fujiastatus=1
  3421. item.remark=item.缺陷备注
  3422. delete item.notjc
  3423. delete item.缺陷备注
  3424. delete item.编号
  3425. arrs.push(item)
  3426. return item
  3427. }
  3428. })
  3429. if(fujiastatus==1){
  3430. const responses = await AdditionalInspectionRecordAdd(arrs);
  3431. fujiastatus=0
  3432. }
  3433. // const response = await ProcessInspectionRecordsItemAdd(arr);
  3434. const response = await ProcessInspectionRecordsItemAdd(zhibiaoselectData.value);
  3435. // const responses = await AdditionalInspectionRecordAdd(zhibiaoselectData.value);
  3436. if (response.code === 0) {
  3437. ElMessage({
  3438. type: 'success',
  3439. message: '成功'
  3440. })
  3441. InspectionRecord()
  3442. zhichengVisible.value=false
  3443. zhibiaoselectData.value=[]
  3444. fujiaselectData.value=[]
  3445. }
  3446. }
  3447. const closedianjianDialog = async () => {
  3448. dianjianVisible.value=false
  3449. }
  3450. const closezhichengDialog = async () => {
  3451. zhichengVisible.value=false
  3452. }
  3453. //获取机台生产信息
  3454. const ReportProduceInfo = async (value,inputName) => {
  3455. const response = await reportProduceInfo({machine:JTMC.split("#")[0]});
  3456. if (response.code === 0) {
  3457. xunchaData.value.order=response.data.order
  3458. xunchaData.value.yjno=response.data.yjno
  3459. xunchaData.value.product_name=response.data.product_name
  3460. xunchaData.value.gxmc=response.data.gxmc
  3461. xunchaData.value.lcdh=0
  3462. xunchaData.value.sczl_bh=''
  3463. xunchaData.value.sczl_name=''
  3464. xunchaData.value.remark=''
  3465. FieldInspectionRecord()
  3466. xunchaVisible.value=true
  3467. }
  3468. }
  3469. // 假设 xunchaselectData 是一个 ref 对象
  3470. const xunchaselectData = ref([]);
  3471. const xunchaData = ref([]);
  3472. // 在 FieldInspectionRecord 方法中填充数据
  3473. const FieldInspectionRecord = async () => {
  3474. const response = await fieldInspectionRecord({ workOrder: xunchaData.value.order, team: BZMC.value});
  3475. console.log(response);
  3476. if (response.code === 0) {
  3477. xunchaselectData.value = response.data;
  3478. }
  3479. }
  3480. //获取机台编号
  3481. const GetMachineMac = async (addr) => {
  3482. console.log(addr);
  3483. const response = await getMachineMac({ addr: addr });
  3484. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-84' });
  3485. // const response = await getMachineMac({ addr: '68-ED-A4-26-5D-90' });
  3486. // const response = await getMachineMac({ addr: '68-ED-A4-26-5E-50' });
  3487. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-CC' });
  3488. // const response = await getMachineMac({ addr: '68-ED-A4-26-5F-8E' });
  3489. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-C8' });
  3490. // const response = await getMachineMac({ addr: '40-62-31-21-4E-15' });
  3491. // const response = await getMachineMac({ addr: '68-ED-A4-26-5F-42' });
  3492. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-E5' });
  3493. // const response = await getMachineMac({ addr: '68-ED-A4-26-5E-4E' });
  3494. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-D1' });
  3495. if (response.code === 0) {
  3496. if(response.data===null){
  3497. // JTMC = 'JY01#';
  3498. // CJMC='胶印车间';
  3499. // FacilityProduction(addr);
  3500. ElMessage({
  3501. type: 'error',
  3502. message: '未获取到机台编号请确认MAC地址或与管理员联系'
  3503. })
  3504. }else{
  3505. // 将接口返回的数据添加到树型结构中
  3506. let newNode = {
  3507. label: response.data["使用部门"],
  3508. level: 1,
  3509. children: [
  3510. {
  3511. label: response.data["设备编号"],
  3512. level: 2,
  3513. }
  3514. ]
  3515. };
  3516. treeData.value.push(newNode);
  3517. CJMC=newNode.label
  3518. JTMC = newNode.children[0].label;
  3519. formData.value.机台号=JTMC
  3520. // console.log('【'+MAC.value+'/'+JTMC+'】')
  3521. FacilityProduction(addr);
  3522. }
  3523. }
  3524. }
  3525. const MAC=ref()
  3526. const GetAddr = () => {
  3527. var xmlhttp = null;
  3528. var res;
  3529. if (window.XMLHttpRequest) {
  3530. xmlhttp = new XMLHttpRequest();
  3531. } else if (window.ActiveXObject) {
  3532. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  3533. }
  3534. // 2. 设置回调函数
  3535. xmlhttp.onreadystatechange = function() {
  3536. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  3537. res = eval('('+xmlhttp.response+')');
  3538. let result = ''
  3539. for (let i = 0; i < res.macAddress.length; i++) {
  3540. if (i % 2 === 0 && i !== 0) {
  3541. result += '-' // 根据实际需求修改分隔符
  3542. }
  3543. result += res.macAddress[i]
  3544. }
  3545. MAC.value=result
  3546. GetMachineMac(result)
  3547. }
  3548. }
  3549. // 3. 打开一个连接http://10.10.4.42/
  3550. xmlhttp.open("get", "http://127.0.0.1:8090/init")
  3551. // 5. 发送
  3552. xmlhttp.send();
  3553. }
  3554. GetAddr()
  3555. //提交巡查记录
  3556. const SubmitPatrolRecord = async () => {
  3557. console.log(JTMC.split("#")[0])
  3558. const response = await submitPatrolRecord({
  3559. type:'现场巡查记录',
  3560. machine:JTMC.split("#")[0],
  3561. order:xunchaData.value.order,
  3562. yjno:xunchaData.value.yjno,
  3563. process:xunchaData.value.lcdh,
  3564. no:xunchaData.value.sczl_bh,
  3565. name:xunchaData.value.sczl_name,
  3566. remark:xunchaData.value.remark,
  3567. });
  3568. console.log(response)
  3569. if (response.code === 0) {
  3570. ElMessage({
  3571. type: 'success',
  3572. message: '成功'
  3573. })
  3574. xunchaVisible.value=false
  3575. }
  3576. }
  3577. //日产量上报
  3578. function onchanliang() {
  3579. console.log(JTMC.split("#")[0]); // 通过value属性获取ref对象的值,然后再调用split方法
  3580. ReportInfo()
  3581. }
  3582. // 获取当前日期
  3583. const today = new Date();
  3584. const year = today.getFullYear();
  3585. const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要补零
  3586. const day = String(today.getDate()).padStart(2, '0');
  3587. const hours = String(today.getHours()).padStart(2, '0');
  3588. const minutes = String(today.getMinutes()).padStart(2, '0');
  3589. const seconds = String(today.getSeconds()).padStart(2, '0');
  3590. const currentDate = `${year}-${month}-${day}`;
  3591. const currentTime = `${year}-${month}-${day} ${hours}:${minutes}`;
  3592. const currenttime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  3593. //日产量详情获取
  3594. const ReportInfo = async () => {
  3595. const response = await reportInfo({ machine: JTMC.split("#")[0] });
  3596. if (response.code === 0) {
  3597. const { order_info, class: classInfo } = response.data;
  3598. const newData = {
  3599. order: order_info.order,
  3600. yjno: order_info.yjno,
  3601. gxh: order_info.gxh,
  3602. gxmc: order_info.gxmc,
  3603. product_name: order_info.product_name,
  3604. yj_name: order_info.yj_name,
  3605. gy_name: order_info.gy_name,
  3606. 日期:currentDate,
  3607. 下机时间:currenttime,
  3608. 上机时间:formData.value.上机时间,
  3609. 装版总时长:0,
  3610. 定额代号:formData.value.定额代号,
  3611. sczl_jtbh: JTMC.split("#")[0],
  3612. sczl_bzdh: classInfo.sczl_bzdh,
  3613. sys_id: classInfo.sys_id,
  3614. sys_rq: classInfo.sys_rq,
  3615. mod_rq: classInfo.mod_rq,
  3616. UniqId: classInfo.UniqId,
  3617. sczl_bh1: classInfo.sczl_bh1,
  3618. sczl_bh2: classInfo.sczl_bh2,
  3619. sczl_bh3: classInfo.sczl_bh3,
  3620. sczl_bh4: classInfo.sczl_bh4,
  3621. sczl_bh5: classInfo.sczl_bh5,
  3622. sczl_bh6: classInfo.sczl_bh6,
  3623. sczl_bh7: classInfo.sczl_bh7,
  3624. sczl_bh8: classInfo.sczl_bh8,
  3625. sczl_bh9: classInfo.sczl_bh9,
  3626. sczl_bh10: classInfo.sczl_bh10,
  3627. sczl_name1: classInfo.sczl_name1,
  3628. sczl_name2: classInfo.sczl_name2,
  3629. sczl_name3: classInfo.sczl_name3,
  3630. sczl_name4: classInfo.sczl_name4,
  3631. sczl_name5: classInfo.sczl_name5,
  3632. sczl_name6: classInfo.sczl_name6,
  3633. sczl_name7: classInfo.sczl_name7,
  3634. sczl_name8: classInfo.sczl_name8,
  3635. sczl_name9: classInfo.sczl_name9,
  3636. sczl_name10: classInfo.sczl_name10,
  3637. sczl_rate1: classInfo.sczl_rate1,
  3638. sczl_rate2: classInfo.sczl_rate2,
  3639. sczl_rate3: classInfo.sczl_rate3,
  3640. sczl_rate4: classInfo.sczl_rate4,
  3641. sczl_rate5: classInfo.sczl_rate5,
  3642. sczl_rate6: classInfo.sczl_rate6,
  3643. sczl_rate7: classInfo.sczl_rate7,
  3644. sczl_rate8: classInfo.sczl_rate8,
  3645. sczl_rate9: classInfo.sczl_rate9,
  3646. sczl_rate10: classInfo.sczl_rate10,
  3647. Gy0_ms:order_info.Gy0_ms,
  3648. Gy0_ls:order_info.Gy0_ls,
  3649. };
  3650. formData3.value = { ...formData3.value, ...newData };
  3651. chanliangselectData.splice(0, chanliangselectData.length, ...response.data.bom)
  3652. chanliangVisible.value=true
  3653. }
  3654. // getTableData()
  3655. }
  3656. //日报表弹窗确定
  3657. const chanliangenterDialog = async () => {
  3658. SubmitDailyProduction()
  3659. }
  3660. const bzchanliangenterDialog = async () => {
  3661. chanliangEdits()
  3662. }
  3663. //日报表上传
  3664. const SubmitDailyProduction = async () => {
  3665. const restoredData = {
  3666. sczl_gdbh:formData3.value.order,
  3667. sczl_yjno:formData3.value.yjno,
  3668. sczl_gxh:formData3.value.gxh,
  3669. sczl_gxmc: formData3.value.gxmc,
  3670. sczl_bzdh: formData3.value.sczl_bzdh,
  3671. sczl_bh1: formData3.value.sczl_bh1,
  3672. sczl_bh2: formData3.value.sczl_bh2,
  3673. sczl_bh3: formData3.value.sczl_bh3,
  3674. sczl_bh4: formData3.value.sczl_bh4,
  3675. sczl_bh5: formData3.value.sczl_bh5,
  3676. sczl_bh6: formData3.value.sczl_bh6,
  3677. sczl_bh7: formData3.value.sczl_bh7,
  3678. sczl_bh8: formData3.value.sczl_bh8,
  3679. sczl_bh9: formData3.value.sczl_bh9,
  3680. sczl_bh10: formData3.value.sczl_bh10,
  3681. sczl_bh98:formData3.value.sczl_bh11,
  3682. sczl_rate1: formData3.value.sczl_rate1,
  3683. sczl_rate2: formData3.value.sczl_rate2,
  3684. sczl_rate3: formData3.value.sczl_rate3,
  3685. sczl_rate4: formData3.value.sczl_rate4,
  3686. sczl_rate5: formData3.value.sczl_rate5,
  3687. sczl_rate6: formData3.value.sczl_rate6,
  3688. sczl_rate7: formData3.value.sczl_rate7,
  3689. sczl_rate8: formData3.value.sczl_rate8,
  3690. sczl_rate9: formData3.value.sczl_rate9,
  3691. sczl_rate10: formData3.value.sczl_rate10,
  3692. sczl_jtbh: formData3.value.sczl_jtbh,
  3693. sczl_rq: formData3.value.日期,
  3694. sczl_num: formData3.value.流程标牌,
  3695. sczl_sj1: formData3.value.上机时间,
  3696. sczl_sj2: formData3.value.下机时间,
  3697. sczl_cl: formData3.value.产量,
  3698. sczl_zcfp: formData3.value.制程废品,
  3699. sczl_zccp: formData3.value.制程次品,
  3700. last_fp: formData3.value.前工序废,
  3701. less_sl: formData3.value.来料异常,
  3702. sczl_ls: formData3.value.Gy0_ls,
  3703. sczl_ms: formData3.value.Gy0_ms,
  3704. zb_time: formData3.value.装版总时长,
  3705. dy_time: formData3.value.打样总工时,
  3706. run_time: formData3.value.通电工时,
  3707. sczl_dedh: formData3.value.定额代号,
  3708. code: formData3.value.码包,
  3709. main_meter: formData3.value.主电表,
  3710. auxiliary_meter: formData3.value.辅电表,
  3711. bom: formData3.value.formattedArray
  3712. }
  3713. console.log(restoredData)
  3714. console.log(formData3.value.formattedArray)
  3715. const response = await submitDailyProduction(restoredData);
  3716. console.log(response)
  3717. if (response.code === 0) {
  3718. ElMessage({
  3719. type: 'success',
  3720. message: '成功'
  3721. })
  3722. FacilityDetail()
  3723. chanliangVisible.value=false
  3724. }
  3725. }
  3726. // let formattedArray
  3727. // 产量单选
  3728. const chanliangSelectionChange = (val) => {
  3729. // if(val.length>0){
  3730. // multipleSelection.value = val
  3731. // const lenth=val.length
  3732. // lastCellValue=val[lenth-1].UniqId
  3733. // console.log(val)
  3734. // val.splice(0, val.length); // 清空 val 数组
  3735. // console.log(lastCellValue)
  3736. // }
  3737. const selectedItems =val
  3738. // 存储batch和st_wlbh的数组
  3739. formData3.value.formattedArray = selectedItems.map(item => `${item.batch}-${item.st_wlbh}`).join(',');
  3740. console.log(formData3.value.formattedArray);
  3741. // console.log(selectedItems)
  3742. }
  3743. const handleybSelectionChange = (val) => {
  3744. yinbanSelection.value = []
  3745. if(val.length>0){
  3746. yinbanSelection.value = val
  3747. }
  3748. }
  3749. //获取设备点检->检验项目
  3750. const FacilityInspectionItem = async (value) => {
  3751. try {
  3752. // 调用接口获取巡检项目数据
  3753. const response = await facilityInspectionItem({ unitName: value ,machine:JTMC.split("#")[0]});
  3754. // 检查接口返回的状态码
  3755. if (response.code === 0) {
  3756. console.log(response)
  3757. dianjianselectData.splice(0, dianjianselectData.length, ...response.data.map(item=>{
  3758. item.notjc=true;
  3759. item.zc=false;
  3760. item.yc=false;
  3761. item.remark=''
  3762. item.unitName=value
  3763. item.team=BZMC.value
  3764. item.machine=JTMC
  3765. return item
  3766. }))
  3767. }
  3768. } catch (error) {
  3769. // 捕获并打印异常
  3770. console.error("获取巡检项目数据出错:" + error);
  3771. return null;
  3772. }
  3773. };
  3774. //树形结构单机
  3775. const dianjianselectData = reactive([])
  3776. const dianjianNodeClick = (node, check, nodeData) => {
  3777. console.log('111')
  3778. if (node.children && node.children.length > 0) {
  3779. // 点击的是父节点,且有子节点
  3780. // 执行相应的父节点单击事件处理逻辑
  3781. // 这里可以添加你想要的处理逻辑,比如展开/折叠节点等
  3782. } else {
  3783. // 点击的是子节点,或者没有子节点
  3784. // 执行相应的子节点单击事件处理逻辑
  3785. FacilityInspectionItem(node.label)
  3786. }
  3787. };
  3788. const category =ref()
  3789. const zhichengNodeClick = (node, check) => {
  3790. if(node.label){
  3791. zhichengstatus.value=true
  3792. category.value=node.label
  3793. processInspectionRecordsItem()
  3794. }
  3795. };
  3796. const processInspectionRecordsItem = async (value) => {
  3797. const response = await ProcessInspectionRecordsItem({ process: xunchaData.value.gxmc });
  3798. if (response.code === 0) {
  3799. zhibiaoselectData.value=response.data.首件.指标检验.map(item=>{
  3800. item.notjc=true;
  3801. item.zc=false;
  3802. item.yc=false;
  3803. item.remark=''
  3804. item.category=category.value
  3805. item.workOrder=xunchaData.value.order
  3806. item.yjno=xunchaData.value.yjno
  3807. item.flow=xunchaData.value.lcdh
  3808. item.team=BZMC.value
  3809. item.machine=JTMC.split("#")[0]
  3810. item.selected = '不检测';
  3811. return item
  3812. })
  3813. fujiaselectData.value=response.data.首件.附加.map(item=>{
  3814. item.notjc=true;
  3815. item.workOrder=xunchaData.value.order
  3816. item.yjno=xunchaData.value.yjno
  3817. item.flow=xunchaData.value.lcdh
  3818. item.machine=JTMC.split("#")[0]
  3819. return item
  3820. })
  3821. }
  3822. };
  3823. const notjcClick = (val) => {
  3824. try {
  3825. if(val.notjc==false){
  3826. val.zc=false
  3827. val.yc==false
  3828. }else{
  3829. val.zc=true
  3830. val.yc==false
  3831. }
  3832. } catch (error) {
  3833. console.error('An error occurred:', error);
  3834. }
  3835. };
  3836. const zcClick = (val) => {
  3837. try {
  3838. if(val.notjc==false){
  3839. if(val.zc==false){
  3840. val.yc=false
  3841. }else{
  3842. val.yc==true
  3843. }
  3844. }{
  3845. val.zc=true
  3846. }
  3847. } catch (error) {
  3848. console.error('An error occurred:', error);
  3849. }
  3850. };
  3851. const ycClick = (val) => {
  3852. try {
  3853. if(val.notjc==false){
  3854. if(val.yc==false){
  3855. val.zc=false
  3856. }else{
  3857. val.zc=true
  3858. }
  3859. }else{
  3860. val.yc=true
  3861. }
  3862. } catch (error) {
  3863. console.error('An error occurred:', error);
  3864. }
  3865. };
  3866. let pandingfangfa=ref()
  3867. //检验项目单击
  3868. const dianjianhandle = async (val, row) => {
  3869. try {
  3870. console.log(val.判定标准);
  3871. pandingfangfa.value = val.判定标准;
  3872. } catch (error) {
  3873. console.error('An error occurred:', error);
  3874. }
  3875. };
  3876. const rowClassName = (row, column) => {
  3877. try {
  3878. if (row.unchecked) {
  3879. return 'row-yellow';
  3880. }
  3881. return '';
  3882. } catch (error) {
  3883. console.error('An error occurred:', error);
  3884. return '';
  3885. }
  3886. };
  3887. function duohandleClick(table) {
  3888. console.log(table.props.label)
  3889. if(table.props.label=='当班产量明细'){
  3890. zdtreeType.value=true
  3891. }else{
  3892. zdtreeType.value=false
  3893. }
  3894. }
  3895. // 异步函数,用于获取指定设备的巡检项目,并且将结果格式化为树形结构数据
  3896. const getSpotCheckItem = async (machineName) => {
  3897. try {
  3898. // 调用接口获取巡检项目数据
  3899. const response = await facilitySpotCheckItem({ machine: machineName });
  3900. // 检查接口返回的状态码
  3901. if (response.code === 0) {
  3902. // 构建树形结构数据
  3903. const childrenData = Object.entries(response.data).map(([id, label]) => {
  3904. return {
  3905. id, // 子节点的唯一标识
  3906. label, // 子节点的标签
  3907. children: [] // 初始化子节点数组
  3908. };
  3909. });
  3910. // 创建包含父节点的树形结构数据
  3911. const treeData = [{
  3912. id: machineName, // 父节点的唯一标识
  3913. label: machineName, // 父节点的标签
  3914. children: childrenData // 子节点数据
  3915. }];
  3916. // 返回构建好的树形结构数据
  3917. return treeData;
  3918. } else {
  3919. // 如果接口返回的状态码不是0,打印错误信息
  3920. console.error("接口返回错误:" + response.msg);
  3921. return null;
  3922. }
  3923. } catch (error) {
  3924. // 捕获并打印异常
  3925. console.error("获取巡检项目数据出错:" + error);
  3926. return null;
  3927. }
  3928. };
  3929. // 班组人员及分配比例
  3930. const FacilityTeam = async (value) => {
  3931. console.log('机台班组维护机台获取:'+value)
  3932. const response = await facilityTeam({ machine: value });
  3933. if (response.code === 0) {
  3934. // 清空 bzData 数组
  3935. bzData.splice(0, bzData.length);
  3936. response.data.map(item=>{
  3937. if(formData.value['班组Id']==item.ID){
  3938. currentBz.value=item
  3939. formDatas.value = {};
  3940. let sczl_bhkey = ''
  3941. let sczl_namekey = ''
  3942. let percentagekey = ''
  3943. if (currentBz.value[9]) {
  3944. for (let i = 1; i <= 10; i++) {
  3945. sczl_bhkey = `code${i}`
  3946. sczl_namekey = `name${i}`
  3947. percentagekey = `percentage${i}`
  3948. formDatas.value[sczl_bhkey] = '';
  3949. formDatas.value[sczl_namekey] = '';
  3950. formDatas.value[percentagekey] = '';
  3951. }
  3952. formDatas.value.code8 = currentBz.value[9].split(' ')[0];
  3953. formDatas.value.name8 = currentBz.value[9].split(' ')[1]
  3954. formDatas.value.percentage8 = parseFloat(currentBz.value[9].split(' ')[2].split('(')[1].split(')')[0])/100
  3955. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 4, 6); i++) {
  3956. sczl_bhkey = `code${i}`
  3957. sczl_namekey = `name${i}`
  3958. percentagekey = `percentage${i}`
  3959. formDatas.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  3960. formDatas.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  3961. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  3962. formDatas.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  3963. }else{
  3964. formDatas.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  3965. }
  3966. }
  3967. } else {
  3968. for (let i = 1; i <= 10; i++) {
  3969. sczl_bhkey = `code${i}`
  3970. sczl_namekey = `name${i}`
  3971. percentagekey = `percentage${i}`
  3972. formDatas.value[sczl_bhkey] = '';
  3973. formDatas.value[sczl_namekey] = '';
  3974. formDatas.value[percentagekey] = '';
  3975. }
  3976. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 3, 6); i++) {
  3977. sczl_bhkey = `code${i}`
  3978. sczl_namekey = `name${i}`
  3979. percentagekey = `percentage${i}`
  3980. formDatas.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  3981. formDatas.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  3982. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  3983. formDatas.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  3984. }else{
  3985. formDatas.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  3986. }
  3987. }
  3988. }
  3989. console.log(formDatas)
  3990. }
  3991. })
  3992. // 遍历接口返回的数据,并给每个对象添加 JTMC 属性
  3993. const updatedData = response.data.map(item => {
  3994. return { ...item, JTMC: value }; // 添加 JTMC 属性
  3995. });
  3996. FPData.splice(0, FPData.length, ...updatedData)
  3997. // 将更新后的数据添加到 bzData 数组
  3998. bzData.push(...updatedData);
  3999. // FPData.push(...updatedData)
  4000. console.log(FPData)
  4001. }
  4002. };
  4003. //班组维护
  4004. function onBZ() {
  4005. FacilityTeam(JTMC)
  4006. fetchData()
  4007. detailShow.value=true
  4008. console.log('2222')
  4009. }
  4010. // 下拉框选项数据
  4011. const dropdownOptions = ref([]);
  4012. // 选中的选项
  4013. const selectedOption = ref('');
  4014. // 获取接口数据并转换为下拉框需要的格式
  4015. const fetchData = async () => {
  4016. try {
  4017. // Simulate API call
  4018. const response = await facilityMachineList();
  4019. if (response.code === 0) {
  4020. // Transform data format
  4021. const options = response.data.map((item) => ({
  4022. label: item,
  4023. value: item
  4024. }));
  4025. dropdownOptions.value = options;
  4026. // Default to selecting the first option
  4027. const defaultOption = options.find(option => option.value.split('|')[0] === JTMC);
  4028. if (defaultOption) {
  4029. selectedOption.value = defaultOption.value;
  4030. } else if (options.length > 0) {
  4031. // 如果 myDefaultValue 不在选项中,选择第一个选项
  4032. selectedOption.value = options[0].value;
  4033. }
  4034. }
  4035. } catch (error) {
  4036. console.error('Error fetching data:', error);
  4037. // Handle the error appropriately
  4038. }
  4039. };
  4040. // formData
  4041. let BZMC=ref()
  4042. let lastCellValue=ref()
  4043. let parts =reactive([])
  4044. const formData3= ref({
  4045. order:'',
  4046. yjno:'',
  4047. gxh:'',
  4048. gxmc:'',
  4049. product_name:'',
  4050. yj_name:'',
  4051. gy_name:'',
  4052. sczl_jtbh:'',
  4053. sczl_bzdh:'',
  4054. sys_id:'',
  4055. sys_rq:'',
  4056. mod_rq:'',
  4057. UniqId:'',
  4058. sczl_bh1:'',
  4059. sczl_bh2:'',
  4060. sczl_bh3:'',
  4061. sczl_bh4:'',
  4062. sczl_bh5:'',
  4063. sczl_bh6:'',
  4064. sczl_bh7:'',
  4065. sczl_bh8:'',
  4066. sczl_bh9:'',
  4067. sczl_bh10:'',
  4068. sczl_bh11:'',
  4069. sczl_name1:'',
  4070. sczl_name2:'',
  4071. sczl_name3:'',
  4072. sczl_name4:'',
  4073. sczl_name5:'',
  4074. sczl_name6:'',
  4075. sczl_name7:'',
  4076. sczl_name8:'',
  4077. sczl_name9:'',
  4078. sczl_name10:'',
  4079. sczl_name11:'',
  4080. sczl_rate1:'',
  4081. sczl_rate2:'',
  4082. sczl_rate3:'',
  4083. sczl_rate4:'',
  4084. sczl_rate5:'',
  4085. sczl_rate6:'',
  4086. sczl_rate7:'',
  4087. sczl_rate8:'',
  4088. sczl_rate9:'',
  4089. sczl_rate10:'',
  4090. 日期:'',
  4091. 流程标牌:'',
  4092. 上机时间:'',
  4093. 下机时间:'',
  4094. 产量:'',
  4095. 制程废品:'',
  4096. 制程次品:'',
  4097. 前工序废:'',
  4098. 来料异常:'',
  4099. Gy0_ms:'',
  4100. Gy0_ls:'',
  4101. 装版总工时:'',
  4102. 打样总工时:'',
  4103. 通电工时:'',
  4104. 定额代号:'',
  4105. 码包:'',
  4106. 主电表:'',
  4107. 辅电表:'',
  4108. formattedArray:'',
  4109. })
  4110. // 自动化生成的字典(可能为空)以及字段
  4111. const formData= ref({
  4112. // 工单编号:'',
  4113. // 印件号:'',
  4114. // 工序名称:'',
  4115. // 产品名称:'',
  4116. // sczl_bh1:'',
  4117. // sczl_bh2:'',
  4118. // sczl_bh3:'',
  4119. // sczl_bh4:'',
  4120. // sczl_bh5:'',
  4121. // sczl_bh6:'',
  4122. // sczl_bh7:'',
  4123. // sczl_bh8:'',
  4124. // sczl_bh9:'',
  4125. // sczl_bh10:'',
  4126. // sczl_name1:'',
  4127. // sczl_name2:'',
  4128. // sczl_name3:'',
  4129. // sczl_name4:'',
  4130. // sczl_name5:'',
  4131. // sczl_name6:'',
  4132. // sczl_name7:'',
  4133. // sczl_name8:'',
  4134. // sczl_name9:'',
  4135. // sczl_name10:'',
  4136. // 班组:'',
  4137. // order:'',
  4138. // yjno:'',
  4139. // product_name:'',
  4140. // gxmc:'',
  4141. })
  4142. const formDatasData= reactive([])
  4143. const formDatas = ref({
  4144. code1:'',
  4145. code2:'',
  4146. code3:'',
  4147. code4:'',
  4148. code5:'',
  4149. code6:'',
  4150. code7:'',
  4151. code8:'',
  4152. code9:'',
  4153. code10:'',
  4154. name1:'',
  4155. name2:'',
  4156. name3:'',
  4157. name4:'',
  4158. name5L:'',
  4159. name6:'',
  4160. name7:'',
  4161. name8:'',
  4162. name9:'',
  4163. name10:'',
  4164. percentage1:'',
  4165. percentage2:'',
  4166. percentage3:'',
  4167. percentage4:'',
  4168. percentage5:'',
  4169. percentage6:'',
  4170. percentage7:'',
  4171. percentage8:'',
  4172. percentage9:'',
  4173. percentage10:'',
  4174. })
  4175. const currentBz ={}
  4176. //班组单击
  4177. const BZhandle = (val) => {
  4178. currentBz.value = val
  4179. formDatas.value = {};
  4180. let sczl_bhkey = ''
  4181. let sczl_namekey = ''
  4182. let percentagekey = ''
  4183. if (currentBz.value[9]) {
  4184. for (let i = 1; i <= 9; i++) {
  4185. sczl_bhkey = `code${i}`
  4186. sczl_namekey = `name${i}`
  4187. percentagekey = `percentage${i}`
  4188. formDatas.value[sczl_bhkey] = '';
  4189. formDatas.value[sczl_namekey] = '';
  4190. formDatas.value[percentagekey] = '';
  4191. }
  4192. formDatas.value.code8 = currentBz.value[9].split(' ')[0];
  4193. formDatas.value.name8 = currentBz.value[9].split(' ')[1]
  4194. formDatas.value.percentage8 = parseFloat(currentBz.value[9].split(' ')[2].split('(')[1].split(')')[0])/100
  4195. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 5, 6); i++) {
  4196. sczl_bhkey = `code${i}`
  4197. sczl_namekey = `name${i}`
  4198. percentagekey = `percentage${i}`
  4199. formDatas.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  4200. formDatas.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  4201. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  4202. formDatas.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  4203. }else{
  4204. formDatas.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  4205. }
  4206. }
  4207. } else {
  4208. for (let i = 1; i <= 10; i++) {
  4209. sczl_bhkey = `code${i}`
  4210. sczl_namekey = `name${i}`
  4211. percentagekey = `percentage${i}`
  4212. formDatas.value[sczl_bhkey] = '';
  4213. formDatas.value[sczl_namekey] = '';
  4214. formDatas.value[percentagekey] = '';
  4215. }
  4216. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 4, 6); i++) {
  4217. sczl_bhkey = `code${i}`
  4218. sczl_namekey = `name${i}`
  4219. percentagekey = `percentage${i}`
  4220. formDatas.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  4221. formDatas.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  4222. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  4223. formDatas.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  4224. }else{
  4225. formDatas.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  4226. }
  4227. }
  4228. }
  4229. console.log(formDatas)
  4230. // for (const key in val) {
  4231. // if (val[key] === 0) {
  4232. // break;
  4233. // }
  4234. // const parts = val[key].split(/[\s()]+/);
  4235. // const code = parts[0];
  4236. // const name = parts[1];
  4237. // const percentage = parts[2];
  4238. //
  4239. // // 根据索引填充不同的字段
  4240. // const index = parseInt(key) + 1; // 索引从1开始
  4241. // formDatas.value['code' + index] = code;
  4242. // formDatas.value['name' + index] = name;
  4243. // formDatas.value['percentage' + index] = percentage;
  4244. BZMC.value=val.班组号
  4245. // }
  4246. };
  4247. const addBz = async() => {
  4248. // selectedOption.value='YS-JY06-002||印品质量检测机(JP1020-18)'
  4249. console.log(selectedOption.value)
  4250. console.log(BZMC.value)
  4251. console.log(selectedOption.value.split('|')[0])
  4252. // console.log(2222)
  4253. // console.log(2222)
  4254. // console.log(2222)
  4255. // console.log(2222)
  4256. // return false;
  4257. const response = await MachineTeamAdd({
  4258. sczl_jtbh: selectedOption.value.split('|')[0],
  4259. sczl_bzdh: BZMC.value,
  4260. sczl_bh1: formDatas.value.code1,
  4261. sczl_bh2: formDatas.value.code2,
  4262. sczl_bh3: formDatas.value.code3,
  4263. sczl_bh4: formDatas.value.code4,
  4264. sczl_bh5: formDatas.value.code5,
  4265. sczl_bh6: formDatas.value.code6,
  4266. sczl_bh7: formDatas.value.code7,
  4267. sczl_bh8: formDatas.value.code10,
  4268. sczl_bh9: formDatas.value.code9,
  4269. sczl_bh10: formDatas.value.code8,
  4270. sczl_rate1: formDatas.value.percentage1,
  4271. sczl_rate2: formDatas.value.percentage2,
  4272. sczl_rate3: formDatas.value.percentage3,
  4273. sczl_rate4: formDatas.value.percentage4,
  4274. sczl_rate5: formDatas.value.percentage5,
  4275. sczl_rate6: formDatas.value.percentage6,
  4276. sczl_rate7: formDatas.value.percentage7,
  4277. sczl_rate8: formDatas.value.percentage10,
  4278. sczl_rate9: formDatas.value.percentage9,
  4279. sczl_rate10: formDatas.value.percentage8,
  4280. sys_id: '【'+MAC.value+'/'+JTMC+'】'
  4281. })
  4282. // console.log()
  4283. if (response.code === 0) {
  4284. ElMessage({
  4285. type: 'success',
  4286. message: '成功'
  4287. })
  4288. }
  4289. console.log("新增班组刷新")
  4290. console.log(BZMC.value)
  4291. const facilityTeamlist = await facilityTeam({ machine:BZMC.value});
  4292. if (facilityTeamlist.code === 0) {
  4293. // 清空 bzData 数组
  4294. bzData.splice(0, bzData.length);
  4295. facilityTeamlist.data.map(item=>{
  4296. if(formData.value['班组Id']==item.ID){
  4297. currentBz.value=item
  4298. formDatas.value = {};
  4299. let sczl_bhkey = ''
  4300. let sczl_namekey = ''
  4301. let percentagekey = ''
  4302. if (currentBz.value[9]) {
  4303. for (let i = 1; i <= 10; i++) {
  4304. sczl_bhkey = `code${i}`
  4305. sczl_namekey = `name${i}`
  4306. percentagekey = `percentage${i}`
  4307. formDatas.value[sczl_bhkey] = '';
  4308. formDatas.value[sczl_namekey] = '';
  4309. formDatas.value[percentagekey] = '';
  4310. }
  4311. formDatas.value.code8 = currentBz.value[9].split(' ')[0];
  4312. formDatas.value.name8 = currentBz.value[9].split(' ')[1]
  4313. formDatas.value.percentage8 = parseFloat(currentBz.value[9].split(' ')[2].split('(')[1].split(')')[0])/100
  4314. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 4, 6); i++) {
  4315. sczl_bhkey = `code${i}`
  4316. sczl_namekey = `name${i}`
  4317. percentagekey = `percentage${i}`
  4318. formDatas.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  4319. formDatas.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  4320. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  4321. formDatas.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  4322. }else{
  4323. formDatas.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  4324. }
  4325. }
  4326. } else {
  4327. for (let i = 1; i <= 10; i++) {
  4328. sczl_bhkey = `code${i}`
  4329. sczl_namekey = `name${i}`
  4330. percentagekey = `percentage${i}`
  4331. formDatas.value[sczl_bhkey] = '';
  4332. formDatas.value[sczl_namekey] = '';
  4333. formDatas.value[percentagekey] = '';
  4334. }
  4335. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length - 3, 6); i++) {
  4336. sczl_bhkey = `code${i}`
  4337. sczl_namekey = `name${i}`
  4338. percentagekey = `percentage${i}`
  4339. formDatas.value[sczl_bhkey] = currentBz.value[i - 1].split(' ')[0];
  4340. formDatas.value[sczl_namekey] = currentBz.value[i - 1].split(' ')[1];
  4341. if(isNaN(parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0]))){
  4342. formDatas.value[percentagekey] = currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0];
  4343. }else{
  4344. formDatas.value[percentagekey] = parseFloat(currentBz.value[i - 1].split(' ')[2].split('(')[1].split(')')[0])/100;
  4345. }
  4346. }
  4347. }
  4348. console.log(formDatas)
  4349. }
  4350. })
  4351. // 遍历接口返回的数据,并给每个对象添加 JTMC 属性
  4352. const updatedData = response.data.map(item => {
  4353. return { ...item, JTMC: value }; // 添加 JTMC 属性
  4354. });
  4355. FPData.splice(0, FPData.length, ...updatedData)
  4356. // 将更新后的数据添加到 bzData 数组
  4357. bzData.push(...updatedData);
  4358. // FPData.push(...updatedData)
  4359. console.log(FPData)
  4360. }
  4361. }
  4362. //更新班组
  4363. const selectBz = async() => {
  4364. console.log(currentBz.value)
  4365. if(currentBz.value){
  4366. BZMC.value=currentBz.value.班组号
  4367. let sczl_bhkey=''
  4368. let sczl_namekey=''
  4369. // if (currentBz.value) {
  4370. // for (let i = 1; i <= 6; i++) {
  4371. // sczl_bhkey=`sczl_bh${i}`
  4372. // sczl_namekey=`sczl_name${i}`
  4373. // formData.value[sczl_bhkey] = '';
  4374. // formData.value[sczl_namekey] = '';
  4375. // }
  4376. // for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length-4, 6); i++) {
  4377. // sczl_bhkey=`sczl_bh${i}`
  4378. // sczl_namekey=`sczl_name${i}`
  4379. // console.log(currentBz.value[i-1].split(' '))
  4380. // formData.value[sczl_bhkey] = currentBz.value[i-1].split(' ')[0];
  4381. // formData.value[sczl_namekey] = currentBz.value[i-1].split(' ')[1];
  4382. // classbz.value[i-1]=currentBz.value[i-1].split(' ')[0]
  4383. // }
  4384. // formData.value.class=classbz.value.join(',')
  4385. // }
  4386. if (currentBz.value[9]) {
  4387. for (let i = 1; i <= 9; i++) {
  4388. sczl_bhkey=`sczl_bh${i}`
  4389. sczl_namekey=`sczl_name${i}`
  4390. formData.value[sczl_bhkey] = '';
  4391. formData.value[sczl_namekey] = '';
  4392. }
  4393. formData.value.sczl_bh10 = currentBz.value[9].split(' ')[0];
  4394. formData.value.sczl_name10=currentBz.value[9].split(' ')[1]
  4395. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length-5, 6); i++) {
  4396. sczl_bhkey=`sczl_bh${i}`
  4397. sczl_namekey=`sczl_name${i}`
  4398. console.log(currentBz.value[i-1].split(' '))
  4399. formData.value[sczl_bhkey] = currentBz.value[i-1].split(' ')[0];
  4400. formData.value[sczl_namekey] = currentBz.value[i-1].split(' ')[1];
  4401. classbz.value[i-1]=currentBz.value[i-1].split(' ')[0]
  4402. }
  4403. classbz.value.push(currentBz.value[9].split(' ')[0])
  4404. formData.value.class=classbz.value.join(',')
  4405. console.log(formData.value)
  4406. }else{
  4407. for (let i = 1; i <= 10; i++) {
  4408. sczl_bhkey=`sczl_bh${i}`
  4409. sczl_namekey=`sczl_name${i}`
  4410. formData.value[sczl_bhkey] = '';
  4411. formData.value[sczl_namekey] = '';
  4412. }
  4413. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length-4, 6); i++) {
  4414. sczl_bhkey=`sczl_bh${i}`
  4415. sczl_namekey=`sczl_name${i}`
  4416. console.log(currentBz.value[i-1].split(' '))
  4417. formData.value[sczl_bhkey] = currentBz.value[i-1].split(' ')[0];
  4418. formData.value[sczl_namekey] = currentBz.value[i-1].split(' ')[1];
  4419. classbz.value[i-1]=currentBz.value[i-1].split(' ')[0]
  4420. }
  4421. formData.value.class=classbz.value.join(',')
  4422. }
  4423. const response = await setMachineTeam({
  4424. machine: JTMC.split("#")[0],
  4425. order:formData.value.工单编号,
  4426. yjno:formData.value.印件号,
  4427. gy_name:formData.value.工序名称,
  4428. sczl_bzdh:BZMC.value,
  4429. status:'生产',
  4430. production_now:0,
  4431. production_all:0,
  4432. team_id:currentBz.value.ID
  4433. })
  4434. if(response.code===0){
  4435. detailShow.value = false
  4436. ElMessage({
  4437. type: 'success',
  4438. message: '成功'
  4439. })
  4440. FacilityProduction()
  4441. }
  4442. // currentBz.value={}
  4443. }
  4444. }
  4445. const delBz = async() => {
  4446. const UniqId=currentBz.value.ID
  4447. if(currentBz.value){
  4448. ElMessageBox.confirm('确定要删除吗?', '提示', {
  4449. confirmButtonText: '确定',
  4450. cancelButtonText: '取消',
  4451. type: 'warning'
  4452. }).then(() => {
  4453. const response = teamDel({UniqId:UniqId})
  4454. response.then(result => {
  4455. if(result.code===0){
  4456. ElMessage({
  4457. type: 'success',
  4458. message: '成功'
  4459. })
  4460. console.log(response)
  4461. FacilityProduction()
  4462. }
  4463. });
  4464. })
  4465. currentBz.value={}
  4466. }
  4467. }
  4468. // ============== 表格控制部分结束 ===============
  4469. // 获取需要的字典 可能为空 按需保留
  4470. const setOptions = async () =>{
  4471. }
  4472. // 获取需要的字典 可能为空 按需保留
  4473. setOptions()
  4474. // 多选数据
  4475. const multipleSelection = ref([])
  4476. const yinbanSelection = ref([])
  4477. // 多选
  4478. const handleSelectionChange = (val) => {
  4479. multipleSelection.value = val
  4480. }
  4481. const zdtreeType = ref(false)
  4482. const selectData = ref([])
  4483. const showsTable = (val,tab) => {
  4484. }
  4485. const showTable = (val,tab) => {
  4486. // zdtreeType.value=false
  4487. }
  4488. // 删除行
  4489. const deleteRow = (row) => {
  4490. ElMessageBox.confirm('确定要删除吗?', '提示', {
  4491. confirmButtonText: '确定',
  4492. cancelButtonText: '取消',
  4493. type: 'warning'
  4494. }).then(() => {
  4495. deleteCompanyFunc(row)
  4496. })
  4497. }
  4498. // 批量删除控制标记
  4499. const deleteVisible = ref(false)
  4500. // 多选删除
  4501. const onDelete = async() => {
  4502. const ids = []
  4503. if (multipleSelection.value.length === 0) {
  4504. ElMessage({
  4505. type: 'warning',
  4506. message: '请选择要删除的数据'
  4507. })
  4508. return
  4509. }
  4510. multipleSelection.value &&
  4511. multipleSelection.value.map(item => {
  4512. ids.push(item.ID)
  4513. })
  4514. const res = await deleteCompanyByIds({ ids })
  4515. if (res.code === 0) {
  4516. ElMessage({
  4517. type: 'success',
  4518. message: '删除成功'
  4519. })
  4520. if (tableData.value.length === ids.length && page.value > 1) {
  4521. page.value--
  4522. }
  4523. deleteVisible.value = false
  4524. getTableData()
  4525. }
  4526. }
  4527. // 行为控制标记(弹窗内部需要增还是改)
  4528. const type = ref('')
  4529. // 更新行
  4530. const updateCompanyFunc = async(row) => {
  4531. const res = await findCompany({ ID: row.ID })
  4532. type.value = 'update'
  4533. if (res.code === 0) {
  4534. formData.value = res.data.recompany
  4535. dialogFormVisible.value = true
  4536. }
  4537. }
  4538. //设备作业清单单机
  4539. const yjupdateCompanyFunc = async(row) => {
  4540. console.log(row)
  4541. console.log("通过 "+row['工单编号|质量信息'].replace(/\|$/, '')+" 获取右上角数据")
  4542. const res = await Procedure({ Gd_gdbh: row['工单编号|质量信息'].replace(/\|$/, '') })
  4543. console.log(res)
  4544. selectData.value = res.data;
  4545. }
  4546. //设备作业清单右键
  4547. const yjonRightClick = async(row) => {
  4548. console.log(row)
  4549. ElMessageBox.confirm('确定切换当前工单为工作工单吗?', '提示', {
  4550. confirmButtonText: '确定',
  4551. cancelButtonText: '取消',
  4552. type: 'warning'
  4553. }).then(() => {
  4554. setMachineTeams(row)
  4555. })
  4556. }
  4557. const setMachineTeams = async(row) => {
  4558. console.log(row.UniqId)
  4559. const res = await setMachineTeam({
  4560. machine: JTMC.split("#")[0],
  4561. order:row['工单编号|质量信息'].split('|')[0],
  4562. yjno:row['印件资料'].split('-')[0],
  4563. gy_name:row['工序名称'],
  4564. sczl_bzdh:BZMC.value,
  4565. status:'生产',
  4566. production_now:0,
  4567. production_all:0,
  4568. team_id:formData.value.班组Id
  4569. })
  4570. MachineWorkOrderEdits(row)
  4571. if (res.code === 0) {
  4572. // EquipmentSchedulingEdits(row)
  4573. ElMessage({
  4574. type: 'success',
  4575. message: '成功'
  4576. })
  4577. }
  4578. }
  4579. const MachineWorkOrderEdits = async(row) => {
  4580. const res = await MachineWorkOrderEdit({
  4581. UniqId:row.UniqId,
  4582. machine: JTMC,
  4583. })
  4584. if (res.code === 0) {
  4585. SetMachineStatus(row)
  4586. }
  4587. }
  4588. const EquipmentSchedulingEdits = async(row) => {
  4589. console.log(row)
  4590. const res = await EquipmentSchedulingEdit([{
  4591. capacity:row.工序产能,
  4592. ProductionHours:row.计划工时,
  4593. AuxiliaryHours:row.装版时数,
  4594. shift:row.班组,
  4595. remark:row.排产备注,
  4596. start:row.最早开工时间,
  4597. projectTime:currentTime,
  4598. UniqId:row.UniqId
  4599. }])
  4600. if (res.code === 0) {
  4601. FacilityProduction()
  4602. }
  4603. }
  4604. // 删除行
  4605. const deleteCompanyFunc = async (row) => {
  4606. const res = await deleteCompany({ ID: row.ID })
  4607. if (res.code === 0) {
  4608. ElMessage({
  4609. type: 'success',
  4610. message: '删除成功'
  4611. })
  4612. if (tableData.value.length === 1 && page.value > 1) {
  4613. page.value--
  4614. }
  4615. getTableData()
  4616. }
  4617. }
  4618. // 弹窗控制标记
  4619. const dialogFormVisible = ref(false)
  4620. const dianjianVisible = ref(false)
  4621. const zhichengVisible = ref(false)
  4622. // 查看详情控制标记
  4623. const detailShow = ref(false)
  4624. const bzData = reactive([])
  4625. // 打开详情弹窗
  4626. const openDetailShow = () => {
  4627. detailShow.value = true
  4628. }
  4629. // 打开详情
  4630. const getDetails = async (row) => {
  4631. // 打开弹窗
  4632. const res = await findCompany({ ID: row.ID })
  4633. if (res.code === 0) {
  4634. formData.value = res.data.recompany
  4635. openDetailShow()
  4636. }
  4637. }
  4638. // 关闭详情弹窗
  4639. const closeDetailShow = () => {
  4640. detailShow.value = false
  4641. // formData.value = {
  4642. // address: '',
  4643. // image: '',
  4644. // name: '',
  4645. // }
  4646. }
  4647. // 打开弹窗
  4648. const openDialog = () => {
  4649. // type.value = 'create'
  4650. // console.log('222')
  4651. // FacilityInspect()
  4652. // dialogFormVisible.value = true
  4653. }
  4654. let drzcData=[]
  4655. let columnNames=[]
  4656. //当日制程检验记录
  4657. const FacilityInspect = async () => {
  4658. const response = await facilityInspect({machine:'JY01#',date:'2024-01-04'});
  4659. console.log(response)
  4660. if(response.code==0){
  4661. // 提取 inspectiontime 作为列名
  4662. // Extract inspectiontime as columnNames
  4663. columnNames = response.data.inspectiontime;
  4664. // Populate drzcData with row data
  4665. for (const key in response.data) {
  4666. if (key !== 'inspectiontime') {
  4667. const item = response.data[key];
  4668. const rowData = {
  4669. '工单编号': item['工单编号'],
  4670. '印件号': item['印件号'],
  4671. '工序名称': item['工序名称'],
  4672. '检验项目': item['检验项目']
  4673. };
  4674. // Initialize time columns with '—'
  4675. columnNames.forEach(time => {
  4676. rowData[time] = '';
  4677. });
  4678. // Split inspectresult and fill the corresponding time columns
  4679. const results = item['inspectresult'].split(',');
  4680. results.forEach(result => {
  4681. if (columnNames.includes(result)) {
  4682. rowData[result] = '√';
  4683. }else{rowData[result] = ''}
  4684. });
  4685. // Add the row data to drzcData
  4686. drzcData.push(rowData);
  4687. }
  4688. }
  4689. console.log(drzcData);
  4690. }
  4691. }
  4692. // 关闭弹窗
  4693. const closeDialog = () => {
  4694. chanliangVisible.value=false
  4695. // dialogFormVisible.value = false
  4696. // formData.value = {
  4697. // address: '',
  4698. // image: '',
  4699. // name: '',
  4700. // }
  4701. }
  4702. const equipmentCode=ref('JY01')
  4703. const equipmentName=ref('海德堡对开')
  4704. const workOrder=ref('2312117')
  4705. const number=ref('1907')
  4706. // 弹窗确定
  4707. const enterDialog = async () => {
  4708. elFormRef.value?.validate( async (valid) => {
  4709. if (!valid) return
  4710. let res
  4711. switch (type.value) {
  4712. case 'create':
  4713. res = await createCompany(formData.value)
  4714. break
  4715. case 'update':
  4716. res = await updateCompany(formData.value)
  4717. break
  4718. default:
  4719. res = await createCompany(formData.value)
  4720. break
  4721. }
  4722. if (res.code === 0) {
  4723. ElMessage({
  4724. type: 'success',
  4725. message: '创建/更改成功'
  4726. })
  4727. closeDialog()
  4728. getTableData()
  4729. }
  4730. })
  4731. }
  4732. const sbzyqdplanUsageCellClass = ({row, column, rowIndex, columnIndex}) =>{
  4733. if(formData.value['工单编号'] === row['工单编号|质量信息'].split('|')[0]){
  4734. return 'back-color-row';
  4735. }
  4736. }
  4737. const bzryplanUsageCellClass = ({row, column, rowIndex, columnIndex}) =>{
  4738. if(formData.value['班组Id'] === row.ID){
  4739. return 'back-color-row';
  4740. }
  4741. }
  4742. const blplanUsageCellClass = ({row, column, rowIndex, columnIndex}) =>{
  4743. if (column.property === '员工编号' || column.property === 'ygxm') {
  4744. return 'plan-usage-low';
  4745. }
  4746. }
  4747. </script>
  4748. <style scoped>
  4749. .JKWTree-container {
  4750. display: flex;
  4751. }
  4752. .JKWTree-tree {
  4753. width: 300px;
  4754. background-color: #fff;
  4755. padding: 10px;
  4756. margin-right: 20px;
  4757. }
  4758. .JKWTree-tree h3 {
  4759. font-size: 15px;
  4760. font-weight: 700;
  4761. margin: 10px 0;
  4762. }
  4763. .JKWTree-content {
  4764. flex: 1;
  4765. }
  4766. .groupbox
  4767. {margin:10px;
  4768. width:500px;
  4769. height:500px;
  4770. border:thin solid black;
  4771. padding:10px}
  4772. .grouptitle
  4773. {display:block;
  4774. margin-top:-24px;
  4775. margin-left:20px;
  4776. width:150px;
  4777. text-align:center;
  4778. background-color:white}
  4779. .gva-search-box{
  4780. font-size:1.5vh;
  4781. color:red;
  4782. font-weight: bold;
  4783. }
  4784. .bt {
  4785. margin-top: 1vh;
  4786. margin-bottom: 10px;
  4787. height: 5vh;
  4788. width: 9vh;
  4789. font-size:1.6vh;
  4790. color:black;
  4791. font-weight: bold;
  4792. }
  4793. .gva-table-box{
  4794. font-size: 15px;
  4795. }
  4796. .red-input input {
  4797. color: red !important;
  4798. }
  4799. .buleaa-input input{
  4800. color: red !important;
  4801. }
  4802. /*!* 选中某行时的背景色*!font-weight: bold;*/
  4803. :deep(.el-table__body tr.current-row)>td {
  4804. background: #ff80ff !important;
  4805. }
  4806. /*input*/
  4807. ::v-deep .el-input__inner {
  4808. color: #000000 !important;
  4809. font-weight: bold;
  4810. }
  4811. ::v-deep .el-input__wrapper {
  4812. border: 1px #00000b8f solid !important;
  4813. }
  4814. ::v-deep .el-form-item__label {
  4815. color: #000000 !important;
  4816. font-weight: bold;
  4817. font-size: 12px;
  4818. }
  4819. ::v-deep .el-tabs__item {
  4820. /*color: #000000 !important;*/
  4821. font-weight: bold;
  4822. }
  4823. ::v-deep .el-dialog__headerbtn {
  4824. width: 100px;
  4825. height: 85px;
  4826. }
  4827. ::v-deep .el-tabs__item {
  4828. /*background-color: #4d70ff;*/
  4829. /*color: white;*/
  4830. }
  4831. :deep(.plan-usage-low div) {
  4832. color: blue !important;
  4833. font-size: 16px;
  4834. font-weight: bold;
  4835. }
  4836. ::v-deep .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  4837. color: white; /* 文字颜色 */
  4838. background-color: #4d70ff; /* 背景颜色 */
  4839. }
  4840. </style>