chejianbaogong.vue 177 KB

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