chejianbaogong.vue 177 KB

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