chejianbaogong.vue 198 KB

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