chejianbaogong.vue 193 KB

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