chejianbaogong.vue 177 KB

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