chejianbaogong.vue 123 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516
  1. <template>
  2. <div>
  3. <header>
  4. <div style="height: 50px;">
  5. <el-button type="primary" @click="onBZ" >班组维护</el-button>
  6. <el-button type="primary" @click="onchanliang" v-if="zdtreeType === true" >日产量上报</el-button>
  7. <el-button type="primary" @click="onOver" >完工</el-button>
  8. <el-button type="primary" @click="onzhicheng" >制程检验</el-button>
  9. <el-button type="primary" @click="ondianjian" >设备点检</el-button>
  10. <el-button type="primary" @click="onxuncha" >管理巡查</el-button>
  11. <el-button type="primary" @click="onstatus" >设置机台状态</el-button>
  12. <el-button type="primary" @click="onyinban">印版领退</el-button>
  13. <el-button type="primary" @click="onClear" >换型清场</el-button>
  14. <el-button type="primary" @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.工单编号" :clearable="true" placeholder="" />
  33. </el-col>
  34. <el-col :span="18">
  35. <el-input v-model="formData.产品名称" :clearable="true" 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="18">
  46. <el-form-item label="工序名称" prop="name">
  47. <el-input v-model="formData.工序名称" :clearable="true" placeholder="" />
  48. </el-form-item>
  49. </el-col>
  50. </el-row>
  51. <el-row :gutter="20">
  52. <el-col :span="4">
  53. <el-form-item label="班组成员" prop="id">
  54. </el-form-item>
  55. </el-col>
  56. </el-row>
  57. <el-row :gutter="1">
  58. <!-- 循环生成 el-input 组件 -->
  59. <el-col v-for="i in 6" :span="4" :key="i">
  60. <el-input v-model="formData[`sczl_bh${i}`]" :clearable="true" placeholder="" />
  61. </el-col>
  62. </el-row>
  63. <el-row :gutter="1">
  64. <!-- 循环生成 el-input 组件 -->
  65. <el-col v-for="i in 6" :span="4" :key="i">
  66. <el-input v-model="formData[`sczl_name${i}`]" :clearable="true" placeholder="" />
  67. </el-col>
  68. </el-row>
  69. </div>
  70. <div style="flex: 1; border: 0px lawngreen solid; margin: 0; padding: 0; overflow: hidden;">
  71. <el-table
  72. tooltip-effect="dark"
  73. :data="selectData"
  74. row-key="ID"
  75. highlight-current-row="true"
  76. border
  77. style="width:100%;height: 30vh;"
  78. @row-dblclick="handleSelectClick"
  79. >
  80. <el-table-column
  81. prop="process"
  82. label="印件及工序"
  83. width="450"
  84. />
  85. <el-table-column
  86. prop="completed"
  87. label="已完成板数"
  88. width="125"
  89. />
  90. </el-table>
  91. </div>
  92. </div>
  93. <div class="gva-table-box">
  94. <el-tabs v-model="activName" type="card" @tab-click="duohandleClick" >
  95. <el-tab-pane label="设备作业清单" @click="showTable('印件资料')" name="first">
  96. <el-table ref="multipleTable"
  97. :show-overflow-tooltip="true"
  98. highlight-current-row="true"
  99. :row-style="{ height: '20px' }"
  100. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  101. :header-cell-style="{ padding: '0px' }"
  102. @row-click="yjupdateCompanyFunc"
  103. style="width: 100%;height: 330px" border tooltip-effect="dark" :data="sbzyData" row-key="ID" @selection-change="handleSelectionChange">
  104. <!-- <el-table-column type="selection" width="55" />-->
  105. <el-table-column align="left" label="选择" prop="yj_yjno" width="80"/>
  106. <el-table-column align="left" label="工单编号|质量信息" prop="工单编号|质量信息" width="180" />
  107. <el-table-column align="left" label="印件资料" prop="印件资料" width="240" />
  108. <el-table-column align="left" label="工序名称" prop="工序名称" width="100" />
  109. <el-table-column align="left" label="计划产量/已完成" prop="计划产量/已完成" width="180"/>
  110. <el-table-column align="left" label="装版时数" prop="装版时数" width="100"/>
  111. <el-table-column align="left" label="工序产能" prop="工序产能" width="100"/>
  112. <el-table-column align="left" label="计划工时" prop="计划工时" width="100"/>
  113. <el-table-column align="left" label="计划生产时段" prop="计划生产时段" width="240" />
  114. <el-table-column align="left" label="排产备注" prop="排产备注" width="100" />
  115. <el-table-column align="left" label="产品名称" prop="产品名称" width="240" />
  116. </el-table>
  117. </el-tab-pane>
  118. <el-tab-pane label="班组人员及分配比例" @click="showTable('工艺资料')" name="second">
  119. <el-table ref="multipleTable"
  120. highlight-current-row="true"
  121. :show-overflow-tooltip="true"
  122. :row-style="{ height: '20px' }"
  123. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  124. :header-cell-style="{ padding: '0px' }"
  125. @row-dblclick="gyupdateCompanyFunc"
  126. :row-class-name="rowClassStyle"
  127. style="width: 100%;height: 400px" border tooltip-effect="dark" :data="FPData" row-key="ID" @selection-change="handleSelectionChange"
  128. @row-click="clickybupdate">
  129. <el-table-column type="selection" label="选择" width="55" />
  130. <el-table-column align="left" label="班组号" prop="班组号" width="80" />
  131. <el-table-column align="left" label="组员1" prop="0" width="240" />
  132. <el-table-column align="left" label="组员2" prop="1" width="240" />
  133. <el-table-column align="left" label="组员3" prop="2" width="240" />
  134. <el-table-column align="left" label="组员4" prop="3" width="240" />
  135. <el-table-column align="left" label="组员5" prop="4" width="100" />
  136. <el-table-column align="left" label="组员6" prop="5" width="100" />
  137. <el-table-column align="left" label="组员7" prop="6" width="100" />
  138. <el-table-column align="left" label="组员8" prop="7" width="100" />
  139. <el-table-column align="left" label="组员9" prop="8" width="100" />
  140. <el-table-column align="left" label="组员10" prop="9_正品版" width="120" />
  141. </el-table>
  142. </el-tab-pane>
  143. <el-tab-pane label="当班产量明细" @click="showsTable('印版资料')" name="third">
  144. <el-table ref="multipleTable"
  145. highlight-current-row="true"
  146. :show-overflow-tooltip="true"
  147. :row-style="{ height: '20px' }"
  148. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  149. :header-cell-style="{ padding: '0px' }"
  150. @row-dblclick="ybupdateCompanyFunc"
  151. style="width: 100%;height: 400px" border tooltip-effect="dark" :data="CLMXData" row-key="ID" @selection-change="handleSelectionChange"
  152. >
  153. <!-- <el-table-column type="selection" width="55" />-->
  154. <el-table-column align="left" label="生产时段" prop="生产时间段" width="180"/>
  155. <el-table-column align="left" label="工单编号" prop="工单编号" width="120" />
  156. <el-table-column align="left" label="产品名称" prop="产品名称" width="240" />
  157. <el-table-column align="left" label="印件及工序" prop="印件及工序" width="320"/>
  158. <el-table-column align="left" label="标牌号" prop="标牌号" width="80"/>
  159. <el-table-column align="left" label="产量" prop="产量" width="100"/>
  160. <el-table-column align="left" label="制程废品" prop="制程废品" width="100" />
  161. <el-table-column align="left" label="制程次品" prop="制程次品" width="100" />
  162. <el-table-column align="left" label="前工序废" prop="前工序废" width="100" />
  163. <el-table-column align="left" label="来料异常" prop="来料异常" width="100"/>
  164. <el-table-column align="left" label="装版工时" prop="装版工时" width="100" />
  165. <el-table-column align="left" label="保养工时" prop="保养工时" width="100" />
  166. <el-table-column align="left" label="打样工时" prop="打样工时" width="100"/>
  167. <el-table-column align="left" label="异常停机工时" prop="异常停机工时" width="120"/>
  168. <el-table-column align="left" label="通电工时" prop="通电工时" width="100"/>
  169. <el-table-column align="left" label="码开始行" prop="码开始行" width="100" />
  170. <el-table-column align="left" label="码结束行" prop="码结束行" width="100" />
  171. <el-table-column align="left" label="码包" prop="码包" width="100" />
  172. <el-table-column align="left" label="主电表" prop="主电表" width="100"/>
  173. <el-table-column align="left" label="辅电表" prop="辅电表" width="100" />
  174. <el-table-column align="left" label="色度数" prop="色度数" width="100" />
  175. </el-table>
  176. </el-tab-pane>
  177. <el-tab-pane label="检验记录" @click="showTable('技术资料附件')" name="fourth">
  178. <el-table ref="multipleTable"
  179. :row-style="{ height: '20px' }"
  180. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  181. :header-cell-style="{ padding: '0px' }"
  182. :show-overflow-tooltip="true"
  183. highlight-current-row="true"
  184. style="width: 100%;height: 400px" border tooltip-effect="dark" :data="JYData" row-key="ID" @selection-change="handleSelectionChange">
  185. <!-- <el-table-column type="selection" width="55" />-->
  186. <el-table-column align="left" label="工单编号" prop="工单编号" width="120"/>
  187. <el-table-column align="left" label="印件号" prop="印件号" width="120" />
  188. <el-table-column align="left" label="工序名称" prop="工序名称" width="330" />
  189. <el-table-column align="left" label="检验项目" prop="检验项目" width="120"/>
  190. <el-table-column
  191. v-for="time in columnNames"
  192. :key="time"
  193. :label="time"
  194. :prop="time"
  195. align="center"
  196. width="120"
  197. ></el-table-column>
  198. </el-table>
  199. </el-tab-pane>
  200. </el-tabs>
  201. <!-- <div class="gva-pagination">
  202. <el-pagination
  203. layout="total, sizes, prev, pager, next, jumper"
  204. :current-page="page"
  205. :page-size="pageSize"
  206. :page-sizes="[10, 30, 50, 100]"
  207. :total="total"
  208. @current-change="handleCurrentChange"
  209. @size-change="handleSizeChange"
  210. />
  211. </div> -->
  212. </div>
  213. <el-dialog v-model="dialogFormVisible" :before-close="closeDialog" :title="type==='create'?'添加':'修改'" destroy-on-close>
  214. <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
  215. <el-tab-pane label="当日上报产量" @click="showTable('工艺资料')" name="first">
  216. <el-table ref="multipleTable"
  217. :show-overflow-tooltip="true"
  218. :row-style="{ height: '20px' }"
  219. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  220. :header-cell-style="{ padding: '0px' }"
  221. highlight-current-row="true"
  222. style="width: 100%;height: 400px" border tooltip-effect="dark" :data="gytableData" row-key="ID" @selection-change="handleSelectionChange">
  223. <el-table-column type="selection" width="55" />
  224. <el-table-column align="left" label="选择" prop="工单编号" width="100"/>
  225. <el-table-column align="left" label="产品名称" prop="重点工序" width="100"/>
  226. <el-table-column align="left" label="工序" prop="工序备注" width="240"/>
  227. <el-table-column align="left" label="备注" prop="机组" width="100"/>
  228. <el-table-column align="left" label="产量" prop="小时产能" width="100"/>
  229. <el-table-column align="left" label="千件工价" prop="生产工时" width="100"/>
  230. <el-table-column align="left" label="日定额" prop="辅助工时" width="100"/>
  231. <el-table-column align="left" label="补产标准" prop="印刷方式" width="100"/>
  232. <el-table-column align="left" label="难度系数" prop="版距" width="100"/>
  233. <el-table-column align="left" label="印刷方式" prop="创建用户" width="120"/>
  234. <el-table-column align="left" label="组员1" prop="Gy0_gxh" width="240" />
  235. <el-table-column align="left" label="组员2" prop="gy0_gxmc" width="240" />
  236. <el-table-column align="left" label="组员3" prop="add_gxmc" width="240" />
  237. <el-table-column align="left" label="组员4" prop="Gy0_Ks" width="240" />
  238. <el-table-column align="left" label="组员5" prop="Gy0_ls" width="100" />
  239. <el-table-column align="left" label="组员6" prop="备注" width="100" />
  240. <el-table-column align="left" label="组员7" prop="工价系数" width="100" />
  241. <el-table-column align="left" label="组员8" prop="损耗系数" width="100" />
  242. <el-table-column align="left" label="组员9" prop="Gy0_Ms" width="100" />
  243. <el-table-column align="left" label="组员10" prop="人工检_正品版" width="120" />
  244. <el-table-column align="left" label="制程废品" prop="Sys_id" width="100" />
  245. <el-table-column align="left" label="制程次品" prop="建档日期" width="100" />
  246. <el-table-column align="left" label="前工序废" prop="更新日期" width="100" />
  247. <el-table-column align="left" label="来料异常" prop="YB_方案" width="100"/>
  248. <el-table-column align="left" label="装版工时" prop="YB_Yjno" width="100" />
  249. <el-table-column align="left" label="保养工时" prop="印版类别" width="100" />
  250. <el-table-column align="left" label="打样工时" prop="存货编码" width="100"/>
  251. <el-table-column align="left" label="异常停机工时" prop="印版名称" width="120"/>
  252. <el-table-column align="left" label="通电工时" prop="考核印数" width="100"/>
  253. <el-table-column align="left" label="码开始行" prop="Sys_id" width="100" />
  254. <el-table-column align="left" label="码结束行" prop="建档日期" width="100" />
  255. <el-table-column align="left" label="码包" prop="更新日期" width="100" />
  256. <el-table-column align="left" label="主电表" prop="YB_方案" width="100"/>
  257. <el-table-column align="left" label="辅电表" prop="YB_Yjno" width="100" />
  258. <el-table-column align="left" label="色度数" prop="印版类别" width="100" />
  259. <el-table-column align="left" label="用户" prop="YB_Yjno" width="100" />
  260. <el-table-column align="left" label="更新时间" prop="印版类别" width="100" />
  261. </el-table>
  262. </el-tab-pane>
  263. <el-tab-pane label="当日制程检验记录" @click="showTable('印件资料')" name="second">
  264. <el-table ref="multipleTable"
  265. :row-style="{ height: '20px' }"
  266. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  267. :header-cell-style="{ padding: '0px' }"
  268. :show-overflow-tooltip="true"
  269. highlight-current-row="true"
  270. style="width: 100%;height: 400px" border tooltip-effect="dark" :data="drzcData" row-key="ID" @selection-change="handleSelectionChange">
  271. <el-table-column type="selection" width="55" />
  272. <el-table-column align="left" label="工单编号" prop="工单编号" width="120"/>
  273. <el-table-column align="left" label="印件号" prop="印件号" width="120" />
  274. <el-table-column align="left" label="工序名称" prop="工序名称" width="330" />
  275. <el-table-column align="left" label="检验项目" prop="检验项目" width="120"/>
  276. <el-table-column
  277. v-for="time in columnNames"
  278. :key="time"
  279. :label="time"
  280. :prop="time"
  281. align="center"
  282. width="120"
  283. ></el-table-column>
  284. </el-table>
  285. </el-tab-pane>
  286. </el-tabs>
  287. </el-dialog>
  288. <el-dialog v-model="detailShow" style="width: 140vh" lock-scroll :before-close="closeDetailShow" title="机台班组维护" destroy-on-close>
  289. <el-table ref="multipleTable"
  290. :row-style="{ height: '20px' }"
  291. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  292. :header-cell-style="{ padding: '0px' }"
  293. :show-overflow-tooltip="true"
  294. highlight-current-row="true" @row-click="BZhandle"
  295. style="width: 100%;height: 250px;margin-top: 0px;" border tooltip-effect="dark"
  296. :data="bzData" row-key="ID" @selection-change="BZSelectionChange">
  297. <!-- <el-table-column type="selection" width="55" /> -->
  298. <el-table-column align="left" label="机台" prop="JTMC" width="70"/>
  299. <el-table-column align="left" label="班组" prop="班组号" width="60"/>
  300. <el-table-column align="left" label="组员1" prop="0" width="195"/>
  301. <el-table-column align="left" label="组员2" prop="1" width="195"/>
  302. <el-table-column align="left" label="组员3" prop="2" width="195"/>
  303. <el-table-column align="left" label="组员4" prop="3" width="195"/>
  304. <el-table-column align="left" label="组员5" prop="4" width="70"/>
  305. <el-table-column align="left" label="组员6" prop="5" width="70"/>
  306. <el-table-column align="left" label="组员7" prop="6" width="70"/>
  307. <el-table-column align="left" label="组员8" prop="7" width="70"/>
  308. <el-table-column align="left" label="组员9" prop="8" width="70"/>
  309. <el-table-column align="left" label="特殊组员" prop="9" width="85"/>
  310. <el-table-column align="left" label="UNIQID" prop="ID" width="75"/>
  311. </el-table>
  312. <el-row :gutter="20">
  313. <el-col :span="10">
  314. <el-form-item label="机台编号" prop="id">
  315. <el-select v-model="selectedOption" placeholder="请选择">
  316. <el-option
  317. v-for="item in dropdownOptions"
  318. :key="item.value"
  319. :label="item.label"
  320. :value="item.value"
  321. ></el-option>
  322. </el-select>
  323. </el-form-item>
  324. </el-col>
  325. <el-col :span="10">
  326. <el-form-item label="班组编号" prop="id">
  327. <el-input v-model="BZMC" :clearable="true" placeholder="" />
  328. </el-form-item>
  329. </el-col>
  330. </el-row>
  331. <div style="display: flex;">
  332. <div class="groupbox float-div" style="height: 17vh; width: 130vh;">
  333. <span class="grouptitle">组员及分配比例</span>
  334. <el-row :gutter="10" style="margin-top: 0px; height: 5vh;">
  335. <el-col :span="2">
  336. <span></span>
  337. </el-col>
  338. <el-col :span="2">
  339. </el-col>
  340. <el-col :span="2">
  341. </el-col>
  342. <el-col :span="2">
  343. </el-col>
  344. <el-col :span="2">
  345. </el-col>
  346. <el-col :span="2">
  347. </el-col>
  348. <el-col :span="2">
  349. </el-col>
  350. <el-col :span="2">
  351. </el-col>
  352. <el-col :span="2">
  353. </el-col>
  354. <el-col :span="3">
  355. </el-col>
  356. <el-col :span="3">
  357. <el-form-item label="特殊组员" prop="id">
  358. </el-form-item>
  359. </el-col>
  360. </el-row>
  361. <el-row :gutter="10" style="margin-top: 0px;">
  362. <!-- <el-col :span="1">
  363. <span></span>
  364. </el-col> -->
  365. <el-col :span="3">
  366. <el-input v-model="formDatas.code1" :clearable="true" placeholder="" />
  367. </el-col>
  368. <el-col :span="3">
  369. <el-input v-model="formDatas.code2" :clearable="true" placeholder="" />
  370. </el-col>
  371. <el-col :span="3">
  372. <el-input v-model="formDatas.code3" :clearable="true" placeholder="" />
  373. </el-col>
  374. <el-col :span="3">
  375. <el-input v-model="formDatas.code4" :clearable="true" placeholder="" />
  376. </el-col>
  377. <el-col :span="3">
  378. <el-input v-model="formDatas.code5" :clearable="true" placeholder="" />
  379. </el-col>
  380. <el-col :span="3">
  381. <el-input v-model="formDatas.code6" :clearable="true" placeholder="" />
  382. </el-col>
  383. <el-col :span="3">
  384. <el-input v-model="formDatas.code7" :clearable="true" placeholder="" />
  385. </el-col>
  386. <el-col :span="3">
  387. <el-input v-model="formDatas.code8" :clearable="true" placeholder="" />
  388. </el-col>
  389. <!-- <el-col :span="2">
  390. <el-input v-model="formData.name" :clearable="true" placeholder="瞿春生" />
  391. </el-col>
  392. <el-col :span="2">
  393. <el-input v-model="percentage" :clearable="true" placeholder="11.0" />
  394. </el-col>
  395. <el-col :span="2">
  396. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="打包废纸" />
  397. </el-col>
  398. <el-col :span="2">
  399. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="是" />
  400. </el-col>
  401. <el-col :span="2">
  402. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="ZI00401" />
  403. </el-col>
  404. <el-col :span="2">
  405. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="瞿春生" />
  406. </el-col>
  407. <el-col :span="2">
  408. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  409. </el-col>
  410. <el-col :span="2">
  411. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  412. </el-col>
  413. <el-col :span="2">
  414. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  415. </el-col> -->
  416. </el-row>
  417. <el-row :gutter="10" style="margin-top: 1px;">
  418. <!-- <el-col :span="2">
  419. <span></span>
  420. </el-col> -->
  421. <el-col :span="3">
  422. <el-input v-model="formDatas.name1" :clearable="true" placeholder="" />
  423. </el-col>
  424. <el-col :span="3">
  425. <el-input v-model="formDatas.name2" :clearable="true" placeholder="" />
  426. </el-col>
  427. <el-col :span="3">
  428. <el-input v-model="formDatas.name3" :clearable="true" placeholder="" />
  429. </el-col>
  430. <el-col :span="3">
  431. <el-input v-model="formDatas.name4" :clearable="true" placeholder="" />
  432. </el-col>
  433. <el-col :span="3">
  434. <el-input v-model="formDatas.name5" :clearable="true" placeholder="" />
  435. </el-col>
  436. <el-col :span="3">
  437. <el-input v-model="formDatas.name6" :clearable="true" placeholder="" />
  438. </el-col>
  439. <el-col :span="3">
  440. <el-input v-model="formDatas.name7" :clearable="true" placeholder="" />
  441. </el-col>
  442. <el-col :span="3">
  443. <el-input v-model="formDatas.name8" :clearable="true" placeholder="" />
  444. </el-col>
  445. <!-- <el-col :span="2">
  446. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="是" />
  447. </el-col>
  448. <el-col :span="2">
  449. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="ZI00401" />
  450. </el-col>
  451. <el-col :span="2">
  452. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="瞿春生" />
  453. </el-col>
  454. <el-col :span="2">
  455. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  456. </el-col>
  457. <el-col :span="2">
  458. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  459. </el-col>
  460. <el-col :span="2">
  461. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  462. </el-col> -->
  463. </el-row>
  464. <el-row :gutter="10" style="margin-top: 1px;">
  465. <!-- <el-col :span="2">
  466. <span></span>
  467. </el-col> -->
  468. <el-col :span="3">
  469. <el-input v-model="formDatas.percentage1" :clearable="true" placeholder="" />
  470. </el-col>
  471. <el-col :span="3">
  472. <el-input v-model="formDatas.percentage2" :clearable="true" placeholder="" />
  473. </el-col>
  474. <el-col :span="3">
  475. <el-input v-model="formDatas.percentage3" :clearable="true" placeholder="" />
  476. </el-col>
  477. <el-col :span="3">
  478. <el-input v-model="formDatas.percentage4" :clearable="true" placeholder="" />
  479. </el-col>
  480. <el-col :span="3">
  481. <el-input v-model="formDatas.percentage5" :clearable="true" placeholder="" />
  482. </el-col>
  483. <el-col :span="3">
  484. <el-input v-model="formDatas.percentage6" :clearable="true" placeholder="" />
  485. </el-col>
  486. <el-col :span="3">
  487. <el-input v-model="formDatas.percentage5" :clearable="true" placeholder="" />
  488. </el-col>
  489. <el-col :span="3">
  490. <el-input v-model="formDatas.percentage6" :clearable="true" placeholder="" />
  491. </el-col>
  492. <!-- <el-col :span="2">
  493. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="是" />
  494. </el-col>
  495. <el-col :span="2">
  496. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="ZI00401" />
  497. </el-col>
  498. <el-col :span="2">
  499. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="瞿春生" />
  500. </el-col>
  501. <el-col :span="2">
  502. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  503. </el-col>
  504. <el-col :span="2">
  505. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  506. </el-col>
  507. <el-col :span="2">
  508. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="11.0" />
  509. </el-col> -->
  510. </el-row>
  511. </div>
  512. <div style="height: 17vh; width: 15vh;margin-top: 5vh;">
  513. <el-button type="text"></el-button>
  514. <!-- <el-button style="margin-bottom: 5px;" @click="" >新增</el-button> -->
  515. <el-button style="margin-bottom: 1vh;" @click="selectBz" >更新当前班组</el-button>
  516. <!-- <el-button @click="delBz" >删除当前班组</el-button> -->
  517. </div>
  518. </div>
  519. </el-dialog>
  520. <el-dialog v-model="complaintsShow" style="width: 140vh; height:78vh;" lock-scroll :before-close="closecomplaintsShow" title="产品客诉查询" destroy-on-close>
  521. <el-table ref="multipleTable"
  522. :row-style="{ height: '20px' }"
  523. :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
  524. :header-cell-style="{ padding: '0px' }"
  525. :show-overflow-tooltip="true"
  526. highlight-current-row="true" @row-click="complaintshandle"
  527. style="width: 100%;height: 30vh;margin-top: 0px;" border tooltip-effect="dark"
  528. :data="complaintsData" row-key="ID" @selection-change="complaintsSelectionChange">
  529. <!-- <el-table-column type="selection" width="55" /> -->
  530. <el-table-column align="left" label="产品编号" prop="产品编号" width="120"/>
  531. <el-table-column align="left" label="产品名称" prop="产品名称" width="200"/>
  532. <el-table-column align="left" label="客诉日期" prop="客诉日期" width="120"/>
  533. <el-table-column align="left" label="客诉单号" prop="客诉单号" width="120"/>
  534. <el-table-column align="left" label="客诉方式" prop="客诉方式" width="100"/>
  535. <el-table-column align="left" label="订单编号" prop="订单编号" width="100"/>
  536. <el-table-column align="left" label="缺陷关键字" prop="缺陷关键字" width="140"/>
  537. <el-table-column align="left" label="客诉性质" prop="客诉性质" width="100"/>
  538. <el-table-column align="left" label="主要责任部门" prop="主要责任部门" width="140"/>
  539. <el-table-column align="left" label="次要责任部门" prop="次要责任部门" width="140"/>
  540. </el-table>
  541. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  542. <el-col :span="6" style="margin-bottom: 1px;margin-top: 0px;">
  543. <el-form-item label="客户编号" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  544. <el-input v-model="selectedRowData.客户编号" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  545. </el-form-item>
  546. </el-col>
  547. <el-col :span="15" style="margin-bottom: 1px;margin-top: 0px;">
  548. <el-form-item label="客户名称" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  549. <el-input v-model="selectedRowData.客户名称" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  550. </el-form-item>
  551. </el-col>
  552. </el-row>
  553. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  554. <el-col :span="6" style="margin-bottom: 1px;margin-top: 0px;">
  555. <el-form-item label="客诉单号" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  556. <el-input v-model="selectedRowData.客诉单号" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  557. </el-form-item>
  558. </el-col>
  559. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  560. <el-form-item label="客诉日期" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  561. <el-input v-model="selectedRowData.客诉日期" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  562. </el-form-item>
  563. </el-col>
  564. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  565. <el-form-item label="方式" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  566. <el-input v-model="selectedRowData.客诉方式" style="margin-bottom: 1px;margin-top: 0px;" :clearable="true" placeholder="" />
  567. </el-form-item>
  568. </el-col>
  569. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  570. <el-form-item label="批次号" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  571. <el-input v-model="selectedRowData.订单编号" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  572. </el-form-item>
  573. </el-col>
  574. </el-row>
  575. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  576. <el-col :span="20" 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.客诉描述" :clearable="true" 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="20" 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.缺陷关键字" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  586. </el-form-item>
  587. </el-col>
  588. </el-row>
  589. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  590. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  591. <el-form-item label="性质" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  592. <el-input v-model="selectedRowData.客诉性质" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  593. </el-form-item>
  594. </el-col>
  595. <el-col :span="5" style="margin-bottom: 1px;margin-top: 0px;">
  596. <el-form-item label="扣分" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  597. <el-input v-model="selectedRowData.扣分" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  598. </el-form-item>
  599. </el-col>
  600. </el-row>
  601. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  602. <el-col :span="20" style="margin-bottom: 1px;margin-top: 0px;">
  603. <el-form-item label="主责任部门" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  604. <el-input v-model="selectedRowData.主要责任部门" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  605. </el-form-item>
  606. </el-col>
  607. </el-row>
  608. <el-row :gutter="20" style="margin-bottom: 1px;margin-top: 0px;">
  609. <el-col :span="20" style="margin-bottom: 1px;margin-top: 0px;">
  610. <el-form-item label="次责任部门" prop="id" style="margin-bottom: 1px;margin-top: 0px;">
  611. <el-input v-model="selectedRowData.次要责任部门" :clearable="true" style="margin-bottom: 1px;margin-top: 0px;" placeholder="" />
  612. </el-form-item>
  613. </el-col>
  614. </el-row>
  615. </el-dialog>
  616. <el-dialog
  617. v-model="dianjianVisible"
  618. title="设备点检记录"
  619. destroy-on-close
  620. width="150vh"
  621. style="height: 78vh;"
  622. >
  623. <el-row :gutter="24" style="margin-bottom: 0px;margin-top: 0px;">
  624. <el-col :span="4" style="margin-bottom: 0px;margin-top: 0px;">
  625. <el-form-item label="设备编号" prop="id" style="margin-bottom: 0px;margin-top: 0px;">
  626. <el-input v-model="JTMC" :clearable="true" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  627. </el-form-item>
  628. </el-col>
  629. <el-col :span="10" style="margin-bottom: 0px;margin-top: 0px;">
  630. <el-row style="margin-bottom: 0px;margin-top: 0px;">
  631. <el-col style="margin-bottom: 0px;margin-top: 0px;">
  632. <el-input v-model="formData.产品名称" :clearable="true" placeholder="" style="margin-bottom: 0px;margin-top: 0px;"/>
  633. </el-col>
  634. </el-row>
  635. </el-col>
  636. </el-row>
  637. <div style="display: flex;">
  638. <div style="flex: 0.1;margin-top: 0px;">
  639. <el-aside width="25vh" style="margin: 0; height: 50vh; margin-top: 0px;">
  640. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  641. <el-tree :data="dianjiantreeData" :props="defaultProps" highlight-current="true"
  642. @node-click="dianjianNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
  643. </div>
  644. </el-aside>
  645. </div>
  646. <div style="flex: 1; margin: 0;">
  647. <el-table
  648. tooltip-effect="dark"
  649. :data="dianjianselectData"
  650. row-key="ID"
  651. highlight-current-row="true"
  652. :show-overflow-tooltip="true"
  653. border @row-click="dianjianhandle"
  654. style="width:100%; height:45vh; margin-top: 5px;"
  655. @row-dblclick="handleSelectClick"
  656. :row-class-name="rowClassName"
  657. >
  658. <el-table-column
  659. prop="检验项目"
  660. label="检验项目"
  661. width="320"
  662. />
  663. <el-table-column
  664. prop="点检方法"
  665. label="点检方法"
  666. width="180"
  667. />
  668. <el-table-column
  669. v-slot="scope"
  670. label="正常"
  671. width="70"
  672. >
  673. <el-checkbox v-model="scope.row.zc" @click="zcClick(scope.row)"></el-checkbox>
  674. </el-table-column>
  675. <el-table-column
  676. v-slot="scope"
  677. label="异常"
  678. width="70"
  679. >
  680. <el-checkbox v-model="scope.row.yc" @click="ycClick(scope.row)"></el-checkbox>
  681. </el-table-column>
  682. <el-table-column
  683. v-slot="scope"
  684. label="备注说明"
  685. width="180"
  686. >
  687. <el-input v-model="scope.row.remark"/>
  688. </el-table-column>
  689. <el-table-column
  690. v-slot="scope"
  691. label="不检测"
  692. width="75"
  693. >
  694. <el-checkbox v-model="scope.row.notjc" @click="notjcClick(scope.row)"></el-checkbox>
  695. </el-table-column>
  696. </el-table>
  697. <el-row :gutter="24">
  698. <el-col :span="24">
  699. <el-input v-model="pandingfangfa" style="margin-top=0px; height: 40px; margin-bottom: 0px;" :clearable="true" />
  700. </el-col>
  701. </el-row>
  702. </div>
  703. </div>
  704. <template #footer>
  705. <div class="dialog-footer">
  706. <el-button @click="closedianjianDialog">关 闭</el-button>
  707. <el-button type="primary" @click="dianjianDialog">提 交</el-button>
  708. </div>
  709. </template>
  710. </el-dialog>
  711. <el-dialog
  712. v-model="zhichengVisible"
  713. title="制程检验记录"
  714. destroy-on-close
  715. width="150vh"
  716. style="height: 78vh;"
  717. >
  718. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  719. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  720. <el-form-item label="工单编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  721. <el-input v-model="xunchaData.order" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  722. </el-form-item>
  723. </el-col>
  724. <el-col :span="9" style="margin-top=0px; margin-bottom: 0px;">
  725. <el-row style="margin-top=0px; margin-bottom: 0px;">
  726. <el-col style="margin-top=0px; margin-bottom: 0px;">
  727. <el-input v-model="xunchaData.product_name" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  728. </el-col>
  729. </el-row>
  730. </el-col>
  731. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  732. <el-form-item label="流程单" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  733. <el-input v-model="xunchaData.lcdh" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  734. </el-form-item>
  735. </el-col>
  736. </el-row>
  737. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  738. <el-col :span="3" style="margin-top=0px; margin-bottom: 0px;">
  739. <el-form-item label="印件编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  740. <el-input v-model="xunchaData.yjno" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  741. </el-form-item>
  742. </el-col>
  743. <el-col :span="10" style="margin-top=0px; margin-bottom: 0px;">
  744. <el-row style="margin-top=0px; margin-bottom: 0px;">
  745. <el-col style="margin-top=0px; margin-bottom: 0px;">
  746. <el-input v-model="xunchaData.gxmc" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  747. </el-col>
  748. </el-row>
  749. </el-col>
  750. </el-row>
  751. <div style="display: flex;">
  752. <div style="flex: 0.1;">
  753. <el-aside width="25vh" style="margin: 0;">
  754. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  755. <el-tree :data="zhichengtreeData" :props="defaultProps" highlight-current="true"
  756. @node-click="zhichengNodeClick"></el-tree>
  757. </div>
  758. </el-aside>
  759. </div>
  760. <div v-if="zhichengstatus" style="flex: 0; margin: 0;">
  761. <el-tabs v-model="activNames" type="card" @tab-click="handleClick">
  762. <el-tab-pane label="指标检验" @click="showTable('指标检验')" name="first">
  763. <el-table
  764. tooltip-effect="dark"
  765. :data="zhibiaoselectData"
  766. row-key="ID"
  767. highlight-current-row="true"
  768. :show-overflow-tooltip="true"
  769. border @row-click="dianjianhandle"
  770. style="width:100%; height:40vh;"
  771. @row-dblclick="handleSelectClick"
  772. :row-class-name="rowClassName"
  773. >
  774. <el-table-column
  775. prop="检验项目"
  776. label="检验项目"
  777. width="270"
  778. />
  779. <el-table-column
  780. v-slot="scope"
  781. label="不检测"
  782. width="70"
  783. >
  784. <el-checkbox v-model="scope.row.notjc" @click="notjcClick(scope.row)"></el-checkbox>
  785. </el-table-column>
  786. <el-table-column
  787. v-slot="scope"
  788. label="合格"
  789. width="60"
  790. >
  791. <el-checkbox v-model="scope.row.zc" @click="zcClick(scope.row)"></el-checkbox>
  792. </el-table-column>
  793. <el-table-column
  794. v-slot="scope"
  795. label="不合格"
  796. width="70"
  797. >
  798. <el-checkbox v-model="scope.row.yc" @click="ycClick(scope.row)"></el-checkbox>
  799. </el-table-column>
  800. <el-table-column
  801. prop="检测方法"
  802. label="检测方法"
  803. width="90"
  804. />
  805. <el-table-column
  806. prop="检验频率"
  807. label="检验频率"
  808. width="150"
  809. />
  810. <el-table-column
  811. prop="相关标准"
  812. label="相关标准"
  813. width="180"
  814. />
  815. </el-table>
  816. </el-tab-pane>
  817. <el-tab-pane label="附加检验记录" @click="showTable('附加检验记录')" name="second">
  818. <el-table
  819. tooltip-effect="dark"
  820. :data="fujiaselectData"
  821. row-key="ID"
  822. highlight-current-row="true"
  823. :show-overflow-tooltip="true"
  824. border @row-click="dianjianhandle"
  825. style="width:100%; height:40vh;"
  826. @row-dblclick="handleSelectClick"
  827. :row-class-name="rowClassName"
  828. >
  829. <el-table-column
  830. v-slot="scope"
  831. label="不检测"
  832. width="75"
  833. >
  834. <el-checkbox v-model="scope.row.notjc"></el-checkbox>
  835. </el-table-column>
  836. <el-table-column
  837. prop="缺陷备注"
  838. label="缺陷及记录"
  839. width="720"
  840. />
  841. <el-table-column
  842. prop="编号"
  843. label="编号"
  844. width="80"
  845. />
  846. </el-table>
  847. </el-tab-pane>
  848. </el-tabs>
  849. </div>
  850. </div>
  851. <template #footer>
  852. <div v-if="zhichengstatus" class="dialog-footer">
  853. <el-button @click="closezhichengDialog">关 闭</el-button>
  854. <el-button type="primary" @click="zhichengDialog">提 交</el-button>
  855. </div>
  856. </template>
  857. </el-dialog>
  858. <el-dialog
  859. v-model="huanxingVisible"
  860. title="换型清场"
  861. destroy-on-close
  862. width="145vh"
  863. style="height: 78vh;"
  864. >
  865. <div style="display: flex;">
  866. <div style="flex: 0.1;">
  867. <el-aside width="26vh" style="margin: 0;">
  868. <div class="JKWTree-tree" style="height: 55vh; border-right: 1px solid #ebeef5;">
  869. <el-tree :data="huanxingtreeData" :props="defaultProps" highlight-current="true"
  870. @node-click="huanxingNodeClick"></el-tree>
  871. </div>
  872. </el-aside>
  873. </div>
  874. <div v-if="huanxingstatus" style="flex: 0; margin: 0;">
  875. <el-tabs v-model="activNames" type="card" @tab-click="handleClick">
  876. <el-tab-pane label="换型清场明细信息" @click="showTable('换型清场明细信息')" name="first">
  877. <tr>
  878. <td>1</td>
  879. <td>2</td>
  880. <td>3</td>
  881. <td>4</td>
  882. </tr>
  883. </el-tab-pane>
  884. <el-tab-pane label="当前设备换型记录" @click="showTable('当前设备换型记录')" name="second">
  885. <el-table
  886. tooltip-effect="dark"
  887. :data="huanxingselectData"
  888. row-key="ID"
  889. highlight-current-row="true"
  890. :show-overflow-tooltip="true"
  891. border @row-click="dianjianhandle"
  892. style="width:115vh; height:50vh;"
  893. @row-dblclick="handleSelectClick"
  894. :row-class-name="rowClassName"
  895. >
  896. <el-table-column
  897. prop="日期"
  898. label="日期"
  899. width="160"
  900. />
  901. <el-table-column
  902. prop="机台编号"
  903. label="机台编号"
  904. width="90"
  905. />
  906. <el-table-column
  907. prop="班组"
  908. label="班组"
  909. width="70"
  910. />
  911. <el-table-column
  912. prop="工单编号A"
  913. label="工单编号A"
  914. width="95"
  915. />
  916. <el-table-column
  917. prop="印件名称A"
  918. label="印件名称A"
  919. width="130"
  920. />
  921. <el-table-column
  922. prop="印件工序A"
  923. label="印件工序A"
  924. width="150"
  925. />
  926. <el-table-column
  927. prop="码包号A"
  928. label="码包号A"
  929. width="80"
  930. />
  931. <el-table-column
  932. prop="工单编号B"
  933. label="工单编号B"
  934. width="100"
  935. />
  936. <el-table-column
  937. prop="印件名称B"
  938. label="印件名称B"
  939. width="100"
  940. />
  941. <el-table-column
  942. prop="印件工序B"
  943. label="印件工序B"
  944. width="150"
  945. />
  946. <el-table-column
  947. prop="码包号B"
  948. label="码包号B"
  949. width="80"
  950. />
  951. <el-table-column
  952. prop="清场项目A"
  953. label="菲林_标样_签样品_留样品"
  954. width="190"
  955. />
  956. <el-table-column
  957. prop="清场项目B"
  958. label="版材_纸张_电化铝_油墨"
  959. width="190"
  960. />
  961. <el-table-column
  962. prop="清场项目C"
  963. label="过版纸_废品_次品"
  964. width="170"
  965. />
  966. <el-table-column
  967. prop="清场项目D"
  968. label="半成品_成品_零头"
  969. width="170"
  970. />
  971. <el-table-column
  972. prop="清场项目E"
  973. label="操作台桌面_抽屉_地面"
  974. width="180"
  975. />
  976. <el-table-column
  977. prop="机长"
  978. label="机长"
  979. width="80"
  980. />
  981. <el-table-column
  982. prop="班长"
  983. label="带班长"
  984. width="80"
  985. />
  986. <el-table-column
  987. prop="质量巡查员"
  988. label="质量巡查员"
  989. width="100"
  990. />
  991. <el-table-column
  992. prop="创建时间"
  993. label="创建时间"
  994. width="120"
  995. />
  996. <el-table-column
  997. prop="UNIQID"
  998. label="UNIQID"
  999. width="80"
  1000. />
  1001. </el-table>
  1002. </el-tab-pane>
  1003. </el-tabs>
  1004. </div>
  1005. </div>
  1006. </el-dialog>
  1007. <el-dialog
  1008. v-model="yinbanVisible"
  1009. title="印版领退"
  1010. destroy-on-close
  1011. width="180vh"
  1012. style="height: 78vh;"
  1013. >
  1014. <el-row :gutter="24">
  1015. <el-col :span="4">
  1016. <el-form-item label="工单编号" prop="id">
  1017. <el-input v-model="formData.工单编号" :clearable="true" />
  1018. </el-form-item>
  1019. </el-col>
  1020. <el-col :span="6">
  1021. <el-form-item prop="id">
  1022. <el-input v-model="formData.productCode" :clearable="true" />
  1023. </el-form-item>
  1024. </el-col>
  1025. <el-col :span="14">
  1026. <el-form-item prop="id">
  1027. <el-input v-model="formData.产品名称" :clearable="true" />
  1028. </el-form-item>
  1029. </el-col>
  1030. </el-row>
  1031. <div style="display: flex;">
  1032. <div style="flex: 1;">
  1033. <el-aside width="34vh" style="margin: 0;">
  1034. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  1035. <el-tree :data="yinbantreeData" :props="defaultProps" highlight-current="true"
  1036. @node-click="yinbanNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
  1037. </div>
  1038. </el-aside>
  1039. </div>
  1040. <div style="flex: 1; margin: 0;">
  1041. <el-table
  1042. tooltip-effect="dark"
  1043. :data="yinbanselectData"
  1044. row-key="ID"
  1045. highlight-current-row="true"
  1046. :show-overflow-tooltip="true"
  1047. border @row-click="dianjianhandle"
  1048. style="width:140vh; height:50vh;"
  1049. @row-dblclick="handleSelectClick"
  1050. :row-class-name="rowClassName"
  1051. >
  1052. <el-table-column
  1053. prop="存货编码"
  1054. label="存货编码"
  1055. width="100"
  1056. />
  1057. <el-table-column
  1058. prop="存货名称"
  1059. label="存货名称"
  1060. width="180"
  1061. />
  1062. <el-table-column
  1063. prop="印版名称"
  1064. label="印版名称"
  1065. width="180"
  1066. />
  1067. <el-table-column
  1068. prop="供方批号"
  1069. label="供方批号"
  1070. width="150"
  1071. />
  1072. <el-table-column
  1073. prop="制造日期"
  1074. label="制造日期"
  1075. width="170"
  1076. />
  1077. <el-table-column
  1078. prop="印数"
  1079. label="印数"
  1080. width="80"
  1081. />
  1082. <el-table-column
  1083. prop="印版类别"
  1084. label="印版类别"
  1085. width="90"
  1086. />
  1087. <el-table-column
  1088. prop="客户编号"
  1089. label="客户编号"
  1090. width="90"
  1091. />
  1092. <el-table-column
  1093. prop="客户名称"
  1094. label="客户名称"
  1095. width="180"
  1096. />
  1097. <el-table-column
  1098. prop="产品编号"
  1099. label="产品编号"
  1100. width="100"
  1101. />
  1102. <el-table-column
  1103. prop="产品名称"
  1104. label="产品名称"
  1105. width="180"
  1106. />
  1107. <el-table-column
  1108. prop="点检方法"
  1109. label="备注说明"
  1110. width="90"
  1111. />
  1112. <!-- <el-table-column
  1113. prop="点检方法"
  1114. label="备注说明"
  1115. width="180"
  1116. /> -->
  1117. </el-table>
  1118. </div>
  1119. </div>
  1120. </el-dialog>
  1121. <el-dialog
  1122. v-model="xunchaVisible"
  1123. title="管理人员现场巡查记录"
  1124. destroy-on-close
  1125. width="162vh"
  1126. style="height: 78vh;"
  1127. >
  1128. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1129. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1130. <el-form-item label="工单编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1131. <el-input v-model="xunchaData.order" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1132. </el-form-item>
  1133. </el-col>
  1134. <el-col :span="9" style="margin-top=0px; margin-bottom: 0px;">
  1135. <el-row style="margin-top=0px; margin-bottom: 0px;">
  1136. <el-col style="margin-top=0px; margin-bottom: 0px;">
  1137. <el-input v-model="xunchaData.product_name" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1138. </el-col>
  1139. </el-row>
  1140. </el-col>
  1141. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1142. <el-form-item label="工号 " prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1143. <el-input v-model="xunchaData.sczl_bh" @keyup.enter.native="getygsubmit($event, '11')" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1144. </el-form-item>
  1145. </el-col>
  1146. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1147. <el-form-item label="流程单" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1148. <el-input v-model="xunchaData.lcdh" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1149. </el-form-item>
  1150. </el-col>
  1151. </el-row>
  1152. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1153. <el-col :span="3" style="margin-top=0px; margin-bottom: 0px;">
  1154. <el-form-item label="印件编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1155. <el-input v-model="xunchaData.yjno" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1156. </el-form-item>
  1157. </el-col>
  1158. <el-col :span="10" style="margin-top=0px; margin-bottom: 0px;">
  1159. <el-row style="margin-top=0px; margin-bottom: 0px;">
  1160. <el-col style="margin-top=0px; margin-bottom: 0px;">
  1161. <el-input v-model="xunchaData.gxmc" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1162. </el-col>
  1163. </el-row>
  1164. </el-col>
  1165. <el-col :span="4" style="margin-top=0px; margin-bottom: 0px;">
  1166. <el-form-item label="姓名" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1167. <el-input v-model="xunchaData.sczl_name" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1168. </el-form-item>
  1169. </el-col>
  1170. </el-row>
  1171. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1172. <el-col :span="13" style="margin-top=0px; margin-bottom: 0px;">
  1173. <el-form-item label="检验备注" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1174. <el-input v-model="xunchaData.remark" :clearable="true" placeholder="" style="margin-top=0px; margin-bottom: 0px;"/>
  1175. </el-form-item>
  1176. </el-col>
  1177. </el-row>
  1178. <div style="display: flex;">
  1179. <div style="flex: 0.1;">
  1180. <el-aside width="20vh" style="margin: 0;">
  1181. <div class="JKWTree-tree" style="height: 100%; border-right: 1px solid #ebeef5;">
  1182. <el-tree :data="xunchatreeData" :props="defaultProps" highlight-current="true"
  1183. @node-click="xunchaNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
  1184. </div>
  1185. </el-aside>
  1186. </div>
  1187. <div style="flex: 1; margin: 0;">
  1188. <el-table
  1189. tooltip-effect="dark"
  1190. :data="xunchaselectData"
  1191. row-key="ID"
  1192. highlight-current-row="true"
  1193. border @row-click="dianjianhandle"
  1194. style="width:138vh; height:42vh;"
  1195. @row-dblclick="handleSelectClick"
  1196. :row-class-name="rowClassName"
  1197. :show-overflow-tooltip="true"
  1198. >
  1199. <el-table-column
  1200. prop="工单编号"
  1201. label="工单编号"
  1202. width="85"
  1203. />
  1204. <el-table-column
  1205. prop="印件号"
  1206. label="印件号"
  1207. width="70"
  1208. />
  1209. <el-table-column
  1210. prop="工序名称"
  1211. label="工序名称"
  1212. width="240"
  1213. />
  1214. <el-table-column
  1215. prop="流程单号"
  1216. label="流程单号"
  1217. width="85"
  1218. />
  1219. <el-table-column
  1220. prop="设备编号"
  1221. label="设备编号"
  1222. width="85"
  1223. />
  1224. <el-table-column
  1225. prop="班组编号"
  1226. label="班组编号"
  1227. width="85"
  1228. />
  1229. <el-table-column
  1230. prop="检验备注"
  1231. label="检验备注"
  1232. width="85"
  1233. />
  1234. <el-table-column
  1235. prop="现场管理人员"
  1236. label="现场管理人员"
  1237. width="150"
  1238. />
  1239. <el-table-column
  1240. prop="提交时间"
  1241. label="提交时间"
  1242. width="165"
  1243. />
  1244. <el-table-column
  1245. prop="开工时间"
  1246. label="开工时间"
  1247. width="165"
  1248. />
  1249. <el-table-column
  1250. prop="分钟差数"
  1251. label="分钟差数"
  1252. width="85"
  1253. />
  1254. <el-table-column
  1255. prop="归属时段"
  1256. label="归属时段"
  1257. width="165"
  1258. />
  1259. </el-table>
  1260. </div>
  1261. </div>
  1262. <template #footer>
  1263. <div class="dialog-footer">
  1264. <el-button @click="closexunchaDialog">关 闭</el-button>
  1265. <el-button type="primary" @click="xunchaDialog">提 交</el-button>
  1266. </div>
  1267. </template>
  1268. </el-dialog>
  1269. <el-dialog
  1270. v-model="chanliangVisible"
  1271. title="日产量上报"
  1272. destroy-on-close
  1273. width="160vh"
  1274. style="height: 110vh;"
  1275. >
  1276. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1277. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1278. <el-form-item label="工单编号" prop="id" style="margin-top=0px; margin-bottom: 0px;">
  1279. <el-input style="margin-top=0px; margin-bottom: 1px;" v-model="formData3.order" id="工单编号" @keydown="ent($event, 'rate10', '工单编号', '产品名称')" :clearable="true" placeholder="" />
  1280. </el-form-item>
  1281. </el-col>
  1282. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1283. <el-form-item label="产品名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1284. <el-input v-model="formData3.product_name" id="产品名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '工单编号', '产品名称', '工序名称')" :clearable="true" placeholder="" />
  1285. </el-form-item>
  1286. </el-col>
  1287. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1288. <el-form-item label="工序名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1289. <el-input v-model="formData3.gxmc" id="工序名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '产品名称', '工序名称', '印件号')" :clearable="true" placeholder="" />
  1290. </el-form-item>
  1291. </el-col>
  1292. </el-row>
  1293. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1294. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1295. <el-form-item label="印件号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1296. <el-input v-model="formData3.yjno" style="margin-top=0px; margin-bottom: 1px;" id="印件号" @keydown="ent($event, '工序名称', '印件号', '印件名称')" :clearable="true" placeholder="" />
  1297. </el-form-item>
  1298. </el-col>
  1299. <el-col :span="10" style="margin-top=0px; margin-bottom: 1px;">
  1300. <el-form-item label="印件名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1301. <el-input v-model="formData3.yj_name" id="印件名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '印件号', '印件名称', '工艺名称')" :clearable="true" placeholder="" />
  1302. </el-form-item>
  1303. </el-col>
  1304. <el-col :span="8" style="margin-top=0px; margin-bottom: 1px;">
  1305. <el-form-item label="工艺名称" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1306. <el-input v-model="formData3.gy_name" id="工艺名称" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '印件名称', '工艺名称', 'gxh')" :clearable="true" placeholder="" />
  1307. </el-form-item>
  1308. </el-col>
  1309. <el-col :span="2" style="margin-top=0px; margin-bottom: 1px;">
  1310. <el-form-item label="" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1311. <el-input v-model="formData3.gxh" id="gxh" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '工艺名称', 'gxh', '日期')" :clearable="true" placeholder="" />
  1312. </el-form-item>
  1313. </el-col>
  1314. </el-row>
  1315. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1316. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1317. </el-col>
  1318. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1319. <el-form-item label="日期" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1320. <el-input v-model="formData3.日期" id="日期" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, 'gxh', '日期', '流程标牌')" :clearable="true" placeholder="" />
  1321. </el-form-item>
  1322. </el-col>
  1323. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1324. <el-form-item label="流程标牌" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1325. <el-input v-model="formData3.流程标牌" id="流程标牌" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '日期', '流程标牌', '上机时间')" :clearable="true" placeholder="" />
  1326. </el-form-item>
  1327. </el-col>
  1328. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1329. <el-form-item label="上机时间" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1330. <el-input v-model="formData3.上机时间" id="上机时间" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '流程标牌', '上机时间', '下机时间')" :clearable="true" placeholder="" />
  1331. </el-form-item>
  1332. </el-col>
  1333. <el-col :span="5" style="margin-top=0px; margin-bottom: 1px;">
  1334. <el-form-item label="下机时间" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1335. <el-input v-model="formData3.下机时间" style="margin-top=0px; margin-bottom: 1px;" id="下机时间" @keydown="ent($event, '上机时间', '下机时间', '产量')" :clearable="true" placeholder="" />
  1336. </el-form-item>
  1337. </el-col>
  1338. <el-col :span="3">
  1339. </el-col>
  1340. </el-row>
  1341. <el-row :gutter="24" style="margin-top=0px; margin-bottom: 1px;">
  1342. <el-col :span="1" style="margin-top=0px; margin-bottom: 1px;">
  1343. </el-col>
  1344. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1345. <el-form-item label="产量" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1346. <el-input v-model="formData3.产量" id="产量" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '下机时间', '产量', '制程废品')" :clearable="true" placeholder="" />
  1347. </el-form-item>
  1348. </el-col>
  1349. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1350. <el-form-item label="制程废品" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1351. <el-input v-model="formData3.制程废品" id="制程废品" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '产量', '制程废品', '制程次品')" :clearable="true" placeholder="" />
  1352. </el-form-item>
  1353. </el-col>
  1354. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1355. <el-form-item label="制程次品" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1356. <el-input v-model="formData3.制程次品" id="制程次品" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '制程废品', '制程次品', '前工序废')" :clearable="true" placeholder="" />
  1357. </el-form-item>
  1358. </el-col>
  1359. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1360. <el-form-item label="前工序废" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1361. <el-input v-model="formData3.前工序废" id="前工序废" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '制程次品', '前工序废', '来料异常')" :clearable="true" placeholder="" />
  1362. </el-form-item>
  1363. </el-col>
  1364. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1365. <el-form-item label="来料异常" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1366. <el-input v-model="formData3.来料异常" id="来料异常" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '前工序废', '来料异常', '联数')" :clearable="true" placeholder="" />
  1367. </el-form-item>
  1368. </el-col>
  1369. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1370. <el-form-item label="联数" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1371. <el-input v-model="formData3.联数" id="联数" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '来料异常', '联数', '墨色')" :clearable="true" placeholder="" />
  1372. </el-form-item>
  1373. </el-col>
  1374. <el-col :span="3" style="margin-top=0px; margin-bottom: 1px;">
  1375. <el-form-item label="墨色" prop="" style="margin-top=0px; margin-bottom: 1px;">
  1376. <el-input v-model="formData3.墨色" id="墨色" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '联数', '墨色', '装版总时长')" :clearable="true" placeholder="" />
  1377. </el-form-item>
  1378. </el-col>
  1379. </el-row>
  1380. <el-row :gutter="20" style="margin-top=0px; margin-bottom: 1px;">
  1381. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1382. <el-form-item label="装版总时长" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1383. <el-input v-model="formData3.装版总时长" id="装版总时长" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '墨色', '装版总时长', '打样总工时')" :clearable="true" placeholder="" />
  1384. </el-form-item>
  1385. </el-col>
  1386. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1387. <el-form-item label="打样总工时" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1388. <el-input v-model="formData3.打样总工时" style="margin-top=0px; margin-bottom: 1px;" id="打样总工时" @keydown="ent($event, '装版总时长', '打样总工时', '通电工时')" :clearable="true" placeholder="" />
  1389. </el-form-item>
  1390. </el-col>
  1391. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1392. <el-form-item label="通电工时" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1393. <el-input v-model="formData3.通电工时" style="margin-top=0px; margin-bottom: 1px;" id="通电工时" @keydown="ent($event, '打样总工时', '通电工时', '定额代号')" :clearable="true" placeholder="" />
  1394. </el-form-item>
  1395. </el-col>
  1396. </el-row>
  1397. <el-row :gutter="20" style="margin-top=0px; margin-bottom: 1vh;">
  1398. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1399. <el-form-item label="定额代号" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1400. <el-input v-model="formData3.定额代号" id="定额代号" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '通电工时', '定额代号', '码包')" :clearable="true" placeholder="" />
  1401. </el-form-item>
  1402. </el-col>
  1403. <el-col :span="8" style="margin-top=0px; margin-bottom: 1px;">
  1404. </el-col>
  1405. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1406. <el-form-item label="码包" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1407. <el-input v-model="formData3.码包" style="margin-top=0px; margin-bottom: 1px;" id="码包" @keydown="ent($event, '定额代号', '码包', '主电表')" :clearable="true" placeholder="" />
  1408. </el-form-item>
  1409. </el-col>
  1410. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1411. <el-form-item label="主电表" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1412. <el-input v-model="formData3.主电表" style="margin-top=0px; margin-bottom: 1px;" id="主电表" @keydown="ent($event, '码包', '主电表', '辅电表')" :clearable="true" placeholder="" />
  1413. </el-form-item>
  1414. </el-col>
  1415. <el-col :span="4" style="margin-top=0px; margin-bottom: 1px;">
  1416. <el-form-item label="辅电表" prop="id" style="margin-top=0px; margin-bottom: 1px;">
  1417. <el-input v-model="formData3.辅电表" id="辅电表" style="margin-top=0px; margin-bottom: 1px;" @keydown="ent($event, '主电表', '辅电表', 'bzdh')" :clearable="true" placeholder="" />
  1418. </el-form-item>
  1419. </el-col>
  1420. </el-row>
  1421. <div style="display: flex;">
  1422. <div style="width: 131vh;">组员及分配比例</div>
  1423. <div style="width: 13vh;">特殊组员</div>
  1424. <div>拉料人员</div>
  1425. </div>
  1426. <el-row :gutter="10" style="margin-top: 1vh;">
  1427. <el-col :span="2">
  1428. <el-input v-model="formData3.sczl_bzdh" id="bzdh" @keydown="ent($event, '辅电表', 'bzdh', 'bh1')" :clearable="true" placeholder="ZI00401" />
  1429. </el-col>
  1430. <el-col :span="2">
  1431. <el-input v-model="formData3.sczl_bh1" id="bh1" @keydown="ent($event, 'bzdh', 'bh1', 'bh2')" @keyup.enter.native="getygsubmit($event, '1')" :clearable="true" placeholder="" />
  1432. </el-col>
  1433. <el-col :span="2">
  1434. <el-input v-model="formData3.sczl_bh2" id="bh2" @keydown="ent($event, 'bh1', 'bh2', 'bh3')" @keyup.enter.native="getygsubmit($event, '2')" :clearable="true" placeholder="" />
  1435. </el-col>
  1436. <el-col :span="2">
  1437. <el-input v-model="formData3.sczl_bh3" id="bh3" @keydown="ent($event, 'bh2', 'bh3', 'bh4')" @keyup.enter.native="getygsubmit($event, '3')" :clearable="true" placeholder="" />
  1438. </el-col>
  1439. <el-col :span="2">
  1440. <el-input v-model="formData3.sczl_bh4" id="bh4" @keydown="ent($event, 'bh3', 'bh4', 'bh5')" @keyup.enter.native="getygsubmit($event, '4')" :clearable="true" placeholder="" />
  1441. </el-col>
  1442. <el-col :span="2">
  1443. <el-input v-model="formData3.sczl_bh5" id="bh5" @keydown="ent($event, 'bh4', 'bh5', 'bh6')" @keyup.enter.native="getygsubmit($event, '5')" :clearable="true" placeholder="" />
  1444. </el-col>
  1445. <el-col :span="2">
  1446. <el-input v-model="formData3.sczl_bh6" id="bh6" @keydown="ent($event, 'bh5', 'bh6', 'bh7')" @keyup.enter.native="getygsubmit($event, '6')" :clearable="true" placeholder="" />
  1447. </el-col>
  1448. <el-col :span="2">
  1449. <el-input v-model="formData3.sczl_bh7" id="bh7" @keydown="ent($event, 'bh6', 'bh7', 'bh8')" @keyup.enter.native="getygsubmit($event, '7')" :clearable="true" placeholder="" />
  1450. </el-col>
  1451. <el-col :span="2">
  1452. <el-input v-model="formData3.sczl_bh8" id="bh8" @keydown="ent($event, 'bh7', 'bh8', 'bh9')" @keyup.enter.native="getygsubmit($event, '8')" :clearable="true" placeholder="" />
  1453. </el-col>
  1454. <el-col :span="2">
  1455. <el-input v-model="formData3.sczl_bh9" id="bh9" @keydown="ent($event, 'bh8', 'bh9', 'bh10')" @keyup.enter.native="getygsubmit($event, '9')" :clearable="true" placeholder="" />
  1456. </el-col>
  1457. <el-col :span="2">
  1458. <el-input v-model="formData3.sczl_bh10" id="bh10" @keydown="ent($event, 'bh9', 'bh10', 'bh11')" @keyup.enter.native="getygsubmit($event, '10')" :clearable="true" placeholder="" />
  1459. </el-col>
  1460. <el-col :span="2">
  1461. <el-input v-model="formData3.sczl_bh11" id="bh11" @keydown="ent($event, 'bh10', 'bh11', 'name1')" @keyup.enter.native="getygsubmit($event, '11')" :clearable="true" placeholder="" />
  1462. </el-col>
  1463. </el-row>
  1464. <el-row :gutter="10" style="margin-top: 10px;">
  1465. <el-col :span="2">
  1466. </el-col>
  1467. <el-col :span="2">
  1468. <el-input v-model="formData3.sczl_name1" id="name1" @keydown="ent($event, 'bh11', 'name1', 'name2')" :clearable="true" placeholder="" />
  1469. </el-col>
  1470. <el-col :span="2">
  1471. <el-input v-model="formData3.sczl_name2" id="name2" @keydown="ent($event, 'name1', 'name2', 'name3')" :clearable="true" placeholder="" />
  1472. </el-col>
  1473. <el-col :span="2">
  1474. <el-input v-model="formData3.sczl_name3" id="name3" @keydown="ent($event, 'name2', 'name3', 'name4')" :clearable="true" placeholder="" />
  1475. </el-col>
  1476. <el-col :span="2">
  1477. <el-input v-model="formData3.sczl_name4" id="name4" @keydown="ent($event, 'name3', 'name4', 'name5')" :clearable="true" placeholder="" />
  1478. </el-col>
  1479. <el-col :span="2">
  1480. <el-input v-model="formData3.sczl_name5" id="name5" @keydown="ent($event, 'name4', 'name5', 'name6')" :clearable="true" placeholder="" />
  1481. </el-col>
  1482. <el-col :span="2">
  1483. <el-input v-model="formData3.sczl_name6" id="name6" @keydown="ent($event, 'name5', 'name6', 'name7')" :clearable="true" placeholder="" />
  1484. </el-col>
  1485. <el-col :span="2">
  1486. <el-input v-model="formData3.sczl_name7" id="name7" @keydown="ent($event, 'name6', 'name7', 'name8')" :clearable="true" placeholder="" />
  1487. </el-col>
  1488. <el-col :span="2">
  1489. <el-input v-model="formData3.sczl_name8" id="name8" @keydown="ent($event, 'name7', 'name8', 'name9')" :clearable="true" placeholder="" />
  1490. </el-col>
  1491. <el-col :span="2">
  1492. <el-input v-model="formData3.sczl_name9" id="name9" @keydown="ent($event, 'name8', 'name9', 'name10')" :clearable="true" placeholder="" />
  1493. </el-col>
  1494. <el-col :span="2">
  1495. <el-input v-model="formData3.sczl_name10" id="name10" @keydown="ent($event, 'name9', 'name10', 'name11')" :clearable="true" placeholder="" />
  1496. </el-col>
  1497. <el-col :span="2">
  1498. <el-input v-model="formData3.sczl_name11" id="name11" @keydown="ent($event, 'name10', 'name11', 'rate1')" :clearable="true" placeholder="" />
  1499. </el-col>
  1500. </el-row>
  1501. <el-row :gutter="10" style="margin-top: 10px;">
  1502. <el-col :span="2">
  1503. </el-col>
  1504. <el-col :span="2">
  1505. <el-input v-model="formData3.sczl_rate1" id="rate1" @keydown="ent($event, 'name11', 'rate1', 'rate2')" :clearable="true" placeholder="" />
  1506. </el-col>
  1507. <el-col :span="2">
  1508. <el-input v-model="formData3.sczl_rate2" id="rate2" @keydown="ent($event, 'rate1', 'rate2', 'rate3')" :clearable="true" placeholder="" />
  1509. </el-col>
  1510. <el-col :span="2">
  1511. <el-input v-model="formData3.sczl_rate3" id="rate3" @keydown="ent($event, 'rate2', 'rate3', 'rate4')" :clearable="true" placeholder="" />
  1512. </el-col>
  1513. <el-col :span="2">
  1514. <el-input v-model="formData3.sczl_rate4" id="rate4" @keydown="ent($event, 'rate3', 'rate4', 'rate5')" :clearable="true" placeholder="" />
  1515. </el-col>
  1516. <el-col :span="2">
  1517. <el-input v-model="formData3.sczl_rate5" id="rate5" @keydown="ent($event, 'rate4', 'rate5', 'rate6')" :clearable="true" placeholder="" />
  1518. </el-col>
  1519. <el-col :span="2">
  1520. <el-input v-model="formData3.sczl_rate6" id="rate6" @keydown="ent($event, 'rate5', 'rate6', 'rate7')" :clearable="true" placeholder="" />
  1521. </el-col>
  1522. <el-col :span="2">
  1523. <el-input v-model="formData3.sczl_rate7" id="rate7" @keydown="ent($event, 'rate6', 'rate7', 'rate8')" :clearable="true" placeholder="" />
  1524. </el-col>
  1525. <el-col :span="2">
  1526. <el-input v-model="formData3.sczl_rate8" id="rate8" @keydown="ent($event, 'rate7', 'rate8', 'rate9')" :clearable="true" placeholder="" />
  1527. </el-col>
  1528. <el-col :span="2">
  1529. <el-input v-model="formData3.sczl_rate9" id="rate9" @keydown="ent($event, 'rate8', 'rate9', 'rate10')" :clearable="true" placeholder="" />
  1530. </el-col>
  1531. <el-col :span="2">
  1532. <el-input v-model="formData3.sczl_rate10" id="rate10" @keydown="ent($event, 'rate9', 'rate10', '工单编号')" :clearable="true" placeholder="" />
  1533. </el-col>
  1534. <el-col :span="2">
  1535. </el-col>
  1536. </el-row>
  1537. <el-table
  1538. tooltip-effect="dark"
  1539. :data="chanliangselectData"
  1540. row-key="ID"
  1541. highlight-current-row="true"
  1542. border
  1543. style="width:100%"
  1544. height="40vh"
  1545. @row-dblclick="batchaddSelectClick"
  1546. :selectable="row => rowSelectable(row)"
  1547. @selection-change="chanliangSelectionChange"
  1548. >
  1549. <el-table-column type="selection" width="55" align="center" label=""></el-table-column>
  1550. <el-table-column
  1551. prop="batch"
  1552. label="物料编号"
  1553. width="150"
  1554. />
  1555. <el-table-column
  1556. prop="BOM_物料名称"
  1557. label="物料名称"
  1558. width="400"
  1559. />
  1560. <el-table-column
  1561. prop="采购单号"
  1562. label="采购单号"
  1563. width="150"
  1564. />
  1565. <el-table-column
  1566. prop="st_wlbh"
  1567. label="供方批次"
  1568. width="400"
  1569. />
  1570. <el-table-column
  1571. prop="卷号"
  1572. label="卷号"
  1573. width="150"
  1574. />
  1575. <el-table-column
  1576. prop="Uniqid"
  1577. label="UniqID"
  1578. width="150"
  1579. />
  1580. </el-table>
  1581. <!-- </el-scrollbar> -->
  1582. <template #footer>
  1583. <div class="dialog-footer">
  1584. <el-button @click="closeDialog">取 消</el-button>
  1585. <el-button type="primary" @click="chanliangenterDialog">确 定</el-button>
  1586. </div>
  1587. </template>
  1588. </el-dialog>
  1589. <Shebeizhuangtai
  1590. v-if="dialogSbyxgl"
  1591. v-model="dialogSbyxgl"
  1592. title="【01.30 08:30】【JY01#--海德堡对开八色平版胶印机(JY08-01)】【2311116-->钻石(荷花)盒包装纸】【01--胶印】"
  1593. :formData="formData"
  1594. />
  1595. </el-main>
  1596. </el-container>
  1597. </el-container>
  1598. </div>
  1599. </template>
  1600. <script setup>
  1601. import {
  1602. createCompany,
  1603. deleteCompany,
  1604. deleteCompanyByIds,
  1605. updateCompany,
  1606. findCompany,
  1607. getCompanyList
  1608. } from '@/api/company'
  1609. import {
  1610. ProcessInspectionRecordsItemAdd,
  1611. AdditionalInspectionRecordAdd,
  1612. getMac,
  1613. remodelGetTab,
  1614. setMachineTeam,
  1615. ModelChangeRecord,
  1616. ComplaintRecord,
  1617. RemodelDetail
  1618. } from '@/api/jixiaoguanli/baogong'
  1619. import {
  1620. facilityTab,
  1621. facilitychanLiang,
  1622. facilityInspect,
  1623. facilityProduction,
  1624. facilityTeam,
  1625. facilityMachineList,
  1626. facilitySpotCheckItem,
  1627. facilityInspectionItem,
  1628. reportProduceInfo,
  1629. reportName,
  1630. reportInfo,
  1631. reportMachineMac,
  1632. facilityWorklist,
  1633. setProcessStatus,
  1634. submitDailyProduction,
  1635. facilityDetail,
  1636. inspectionRecord,
  1637. getYg,
  1638. submitPatrolRecord,
  1639. getMachineMac,
  1640. setMachineStatus,
  1641. fieldInspectionRecord,
  1642. InspectionItemAdd,
  1643. ProcessInspectionRecordsItem,
  1644. MachineDetailList,
  1645. facilityPrintGetTab,
  1646. facilityPrintDetail,
  1647. facilityProcedure
  1648. } from '@/api/jixiaoguanli/jitairibaobiao'
  1649. import {
  1650. demoCustomer
  1651. } from "@/api/demo";
  1652. // 全量引入格式化工具 请按需保留
  1653. import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
  1654. import { ElMessage, ElMessageBox } from 'element-plus'
  1655. import { ref, reactive } from 'vue'
  1656. import Shebeizhuangtai from '@/view/performance/09-workOrderVerification/componets/shebeizhuangtai.vue'
  1657. const dialogSbyxgl=ref(false)
  1658. const zhichengstatus=ref(false)
  1659. const yinbanselectData = ref([])
  1660. defineOptions({
  1661. name: 'Company'
  1662. })
  1663. const xunchatreeData=ref([{label: '现场巡查记录',} ])
  1664. const activName=ref('first')
  1665. const activNames=ref('first')
  1666. let checked3=ref(false)
  1667. const detailData = reactive([])
  1668. const treeData=ref([])
  1669. const huanxingtreeData=ref([])
  1670. const huanxingselectData = ref([])
  1671. const huanxingData = ref({})
  1672. const huanxingstatus=ref(false)
  1673. const zhichengtreeData=ref([{
  1674. label: '首件与过程确认'
  1675. },{
  1676. label: '机台检验'
  1677. },{
  1678. label: 'IPQC检验'
  1679. }])
  1680. let dianjiantreeData;
  1681. let JTMC=ref()
  1682. let CJMC=ref()
  1683. const sbzyData = reactive([])
  1684. const FPData = reactive([])
  1685. const CLMXData = reactive([])
  1686. let JYData = reactive([])
  1687. //键盘 input框跳转
  1688. const ent = (event,id1,id2,id3) => {
  1689. if (event.keyCode === 13 || event.keyCode === 40) { // Enter 或向下箭头
  1690. const idMap = {
  1691. 'bh1': '1',
  1692. 'bh2': '2',
  1693. 'bh3': '3',
  1694. 'bh4': '4',
  1695. 'bh5': '5',
  1696. 'bh6': '6',
  1697. 'bh7': '7',
  1698. 'bh8': '8',
  1699. 'bh9': '9',
  1700. 'bh10': '10',
  1701. 'bh11': '11',
  1702. };
  1703. if (idMap.hasOwnProperty(id2) && event.keyCode === 13) {
  1704. getygsubmit('', idMap[id2]);
  1705. }else if(id3!=''){
  1706. document.getElementById(id3).focus()
  1707. }
  1708. } else if (event.keyCode === 38) { // 向上箭头
  1709. if(id1!=''){
  1710. document.getElementById(id1).focus()
  1711. }
  1712. }else if (event.keyCode === 8) { // 删除箭头
  1713. if(id1!='' && document.getElementById(id2).value==''){
  1714. document.getElementById(id1).focus()
  1715. }
  1716. console.log(document.getElementById(id2).value)
  1717. }else if (event.keyCode === 37) { // 向左箭头
  1718. if(id1!='' && document.getElementById(id2).selectionStart==0){
  1719. document.getElementById(id1).focus()
  1720. }
  1721. }else if (event.keyCode === 39) { // 向右箭头
  1722. if(id3!='' && document.getElementById(id2).selectionStart == document.getElementById(id2).value.length){
  1723. document.getElementById(id3).focus()
  1724. }
  1725. }
  1726. }
  1727. const huanxingNodeClick = (node) => {
  1728. //存放当前节点的nodeId
  1729. if(node.machine){
  1730. console.log(node.label.split('/')[1])
  1731. huanxingstatus.value=true
  1732. remodelDetail(node.label.split('/')[1])
  1733. modelChangeRecord(node.machine)
  1734. }else{
  1735. console.log('2')
  1736. }
  1737. }
  1738. const modelChangeRecord = async (val) => {
  1739. const response = await ModelChangeRecord({machine:val});
  1740. if (response.code === 0) {
  1741. huanxingselectData.value=response.data
  1742. }
  1743. }
  1744. const remodelDetail = async (val) => {
  1745. const response = await RemodelDetail({UniqId:val});
  1746. if (response.code === 0) {
  1747. huanxingData.value=response.data
  1748. }
  1749. }
  1750. const handleNodeClick = (nodeData,node) => {
  1751. //存放当前节点的nodeId
  1752. if(nodeData.level === 1){
  1753. console.log('1')
  1754. }else{
  1755. console.log('2')
  1756. }
  1757. // if (nodeData.level === 1) {
  1758. // console.log(node.label); // 第一级节点
  1759. // } else if (nodeData.level === 2) {
  1760. // console.log(node.label); // 第二级节点
  1761. // JTMC=node.label.split("【")[0]
  1762. // FacilityProduction()
  1763. // FacilityWorklist()
  1764. // FacilityTeam(JTMC)
  1765. // // InspectionRecord()
  1766. // // FacilityDetail()
  1767. // // ReportProduceInfo()
  1768. // console.log(JTMC)
  1769. // } else if (nodeData.level === 3) {
  1770. // console.log(node.label); // 第三级节点
  1771. // }
  1772. // JTMC=node.label.split("【")[0]
  1773. // FacilityProduction()
  1774. // console.log(node.label)
  1775. }
  1776. //当前生产订单
  1777. // const formDatabz = reactive({
  1778. // sczl_bh12: [],
  1779. // sczl_name12: [],
  1780. // });
  1781. const classbz=ref([])
  1782. const FacilityProduction = async () => {
  1783. const response = await facilityProduction({machine:JTMC});
  1784. if (response.code === 0) {
  1785. formData.value.工单编号 = response.data.工单编号;
  1786. formData.value.印件号 = response.data.印件号;
  1787. formData.value.工序号 = response.data.工序名称.substring(0,2);
  1788. formData.value.工序名称 = response.data.工序名称;
  1789. formData.value.产品名称 = response.data.产品名称;
  1790. formData.value.班组Id=response.data.班组Id
  1791. formData.value.machine=JTMC
  1792. formData.value.状态=response.data.状态
  1793. BZMC.value=response.data.班组编号
  1794. // 填充sczl_bh和sczl_name字段
  1795. let sczl_bhkey=''
  1796. let sczl_namekey=''
  1797. if (response.data.班组成员) {
  1798. for (let i = 0; i < Math.min(Object.keys(response.data.班组成员).length, 9); i++) {
  1799. sczl_bhkey=`sczl_bh${i+1}`
  1800. sczl_namekey=`sczl_name${i+1}`
  1801. formData.value[sczl_bhkey] = response.data.班组成员[i]['编号'];
  1802. formData.value[sczl_namekey] = response.data.班组成员[i]['姓名'];
  1803. classbz.value[i]=response.data.班组成员[i]['编号']
  1804. }
  1805. }
  1806. formData.value.class=classbz.value.join(',')
  1807. // for (let i = 1; i <= 10; i++) {
  1808. // if (response.data.班组成员) {
  1809. // // formData.value.['sczl_bh12'] = response.data.班组成员[i]['编号'];
  1810. // // formData.value['sczl_name12'] = response.data.班组成员[i]['名字'];
  1811. // // console.log(formData)
  1812. // // console.log(response.data[sczl_bh]['员工姓名'])
  1813. // // console.log(formData.value.sczl_bh)
  1814. // // console.log(sczl_name)
  1815. // } else {
  1816. // console.log(555555555555555)
  1817. // // 如果字段不存在,可以在这里进行处理
  1818. // // console.log('2');
  1819. // // formData.value[sczl_bh] = response.data[sczl_bh]['员工编号'];
  1820. // // formData.value[sczl_name] = response.data[sczl_bh]['员工姓名'];
  1821. // // console.log(formData.value.sczl_bh)
  1822. // // console.log(sczl_name)
  1823. // }
  1824. // }
  1825. const responses = await MachineDetailList({workshop:CJMC});
  1826. if(responses.code===0){
  1827. responses.data.map(item=>{
  1828. if(item.设备编号==JTMC){
  1829. formData.value.status=item.状态
  1830. }
  1831. })
  1832. }
  1833. if(response.data.工单编号){
  1834. InspectionRecord()
  1835. FacilityDetail()
  1836. }
  1837. FacilityWorklist()
  1838. FacilityTeam(JTMC)
  1839. }
  1840. }
  1841. //设备工作清单
  1842. const FacilityWorklist = async () => {
  1843. const response = await facilityWorklist({machine:JTMC});
  1844. if (response.code === 0) {
  1845. sbzyData.splice(0, sbzyData.length, ...response.data);
  1846. // formData.value.productCode= response.data[0]['产品代号']
  1847. response.data.map(item=>{
  1848. if(item['工单编号|质量信息'].substring(0, 7)==formData.value.工单编号){
  1849. formData.value.productCode=item.产品代号
  1850. }
  1851. })
  1852. selectData.value=[]
  1853. const res = await facilityProcedure({ Gd_gdbh: sbzyData[0]['工单编号|质量信息'].substring(0, 7) })
  1854. // formData.value.productCode= response.data[0]['产品代号']
  1855. console.log(res)
  1856. if (res.code === 0) {
  1857. selectData.value = res.data
  1858. }
  1859. }
  1860. }
  1861. //检验记录
  1862. const InspectionRecord = async () => {
  1863. const response = await inspectionRecord({machine:JTMC,Gd_gdbh:formData.value.工单编号,team:BZMC.value});
  1864. if(response.code==0){
  1865. // 提取 inspectiontime 作为列名
  1866. // Extract inspectiontime as columnNames
  1867. columnNames = response.data.inspectiontime;
  1868. // Populate drzcData with row data
  1869. for (const key in response.data) {
  1870. if (key !== 'inspectiontime') {
  1871. const item = response.data[key];
  1872. const rowData = {
  1873. '工单编号': item['工单编号'],
  1874. '印件号': item['印件号'],
  1875. '工序名称': item['工序名称'],
  1876. '检验项目': item['检验项目']
  1877. };
  1878. // Initialize time columns with '—'
  1879. columnNames.forEach(time => {
  1880. rowData[time] = '';
  1881. });
  1882. // Split inspectresult and fill the corresponding time columns
  1883. const results = item['inspectresult'].split(',');
  1884. results.forEach(result => {
  1885. if (columnNames.includes(result)) {
  1886. rowData[result] = '√';
  1887. }else{rowData[result] = ''}
  1888. });
  1889. // Add the row data to drzcData
  1890. JYData.push(rowData);
  1891. }
  1892. }
  1893. console.log(JYData);
  1894. }
  1895. }
  1896. //当班产量明细
  1897. const FacilityDetail = async () => {
  1898. const response = await facilityDetail({ machine: JTMC, Gd_gdbh: formData.value.工单编号, team:BZMC.value });
  1899. if (response.code === 0) {
  1900. CLMXData.splice(0, CLMXData.length, ...Object.values(response.data));
  1901. formData.value.production_now=response.data[0].产量
  1902. formData.value.production_all=response.data.total.产量
  1903. }
  1904. };
  1905. //员工编号回车事件
  1906. const getygsubmit = (event, inputName) => {
  1907. console.log(inputName)
  1908. let combinedString = 'sczl_bh' + inputName;
  1909. console.log(combinedString)
  1910. // let variableName = 'sczl_gdbh'+inputName;
  1911. let variableValue = eval('formData3.value.' + combinedString);
  1912. console.log(variableValue)
  1913. GetYg(variableValue,inputName)
  1914. }
  1915. //获取员工信息
  1916. const GetYg = async (value,inputName) => {
  1917. const response = await getYg({sczl_bh:value});
  1918. console.log(response)
  1919. if (response.code === 0) {
  1920. console.log(response.data.ygxm)
  1921. let Bname = 'sczl_name' + inputName;
  1922. formData3.value[Bname]=response.data.ygxm
  1923. // console.log(formData.value[Bname])
  1924. }
  1925. }
  1926. // 验证规则
  1927. const rule = reactive({
  1928. })
  1929. const searchRule = reactive({
  1930. createdAt: [
  1931. { validator: (rule, value, callback) => {
  1932. if (searchInfo.value.startCreatedAt && !searchInfo.value.endCreatedAt) {
  1933. callback(new Error('请填写结束日期'))
  1934. } else if (!searchInfo.value.startCreatedAt && searchInfo.value.endCreatedAt) {
  1935. callback(new Error('请填写开始日期'))
  1936. } else if (searchInfo.value.startCreatedAt && searchInfo.value.endCreatedAt && (searchInfo.value.startCreatedAt.getTime() === searchInfo.value.endCreatedAt.getTime() || searchInfo.value.startCreatedAt.getTime() > searchInfo.value.endCreatedAt.getTime())) {
  1937. callback(new Error('开始日期应当早于结束日期'))
  1938. } else {
  1939. callback()
  1940. }
  1941. }, trigger: 'change' }
  1942. ],
  1943. })
  1944. const elFormRef = ref()
  1945. const elSearchFormRef = ref()
  1946. // =========== 表格控制部分 ===========
  1947. const page = ref(1)
  1948. const total = ref(0)
  1949. const pageSize = ref(10)
  1950. const tableData = ref([])
  1951. const zhibiaoselectData=ref([])
  1952. const yinbanVisible = ref(false)
  1953. const yinbantreeData=ref([])
  1954. const fujiaselectData=ref([])
  1955. const searchInfo = ref({})
  1956. // 重置
  1957. const onReset = () => {
  1958. searchInfo.value = {}
  1959. getTableData()
  1960. }
  1961. // 搜索
  1962. const onSubmit = () => {
  1963. elSearchFormRef.value?.validate(async(valid) => {
  1964. if (!valid) return
  1965. page.value = 1
  1966. pageSize.value = 10
  1967. getTableData()
  1968. })
  1969. }
  1970. // 分页
  1971. const handleSizeChange = (val) => {
  1972. pageSize.value = val
  1973. getTableData()
  1974. }
  1975. // 修改页面容量
  1976. const handleCurrentChange = (val) => {
  1977. page.value = val
  1978. getTableData()
  1979. }
  1980. const getTableData = async () => {
  1981. const response = await facilityTab();
  1982. if (response.code === 0 && response.data) {
  1983. const workshops = response.data; // 车间数据
  1984. // 在推送新项之前将 treeData 重置为空数组
  1985. treeData.value = []; // 使用 .value 访问响应式引用的值
  1986. for (const workshopName in workshops) {
  1987. const workshopNode = {
  1988. label: workshopName,
  1989. children: [],
  1990. level: 1 // 添加层级属性
  1991. };
  1992. const machines = workshops[workshopName]; // 车间下的机器
  1993. for (const machineName in machines) {
  1994. const machineNode = {
  1995. label: machineName,
  1996. children: [],
  1997. level: 2, // 添加层级属性
  1998. parentNode: workshopNode
  1999. };
  2000. // Now that machineNode is initialized, you can refer to it
  2001. const childrenNodes = machines[machineName].map(dateTime => {
  2002. const dateOnly = dateTime.split(' ')[0];
  2003. return {
  2004. label: dateOnly,
  2005. level: 3, // 添加层级属性
  2006. parentNode: machineNode
  2007. };
  2008. });
  2009. // Assign the childrenNodes to the machineNode's children property
  2010. machineNode.children = childrenNodes;
  2011. // Finally, push the machineNode to the workshopNode's children array
  2012. workshopNode.children.push(machineNode);
  2013. }
  2014. // 将 workshopNode 推送到响应式 treeData 数组
  2015. treeData.value.push(workshopNode);
  2016. }
  2017. }
  2018. };
  2019. // 查询
  2020. const getTableList = async() => {
  2021. const table = await getCompanyList({ page: page.value, pageSize: pageSize.value, ...searchInfo.value })
  2022. if (table.code === 0) {
  2023. tableData.value = table.data.list
  2024. total.value = table.data.total
  2025. page.value = table.data.page
  2026. pageSize.value = table.data.pageSize
  2027. }
  2028. }
  2029. // getTableData()
  2030. //删除
  2031. function onDel() {
  2032. }
  2033. //完工
  2034. function onOver() {
  2035. SetProcessStatus()
  2036. FacilityProduction()
  2037. }
  2038. //完工事件
  2039. const SetProcessStatus = async () => {
  2040. const RESCODE={
  2041. order:'2311114',
  2042. yjno:'01',
  2043. gxh:'01',
  2044. }
  2045. console.log(formData.value.工单编号,formData.value.印件号,formData.value.工序号)
  2046. const response = await setProcessStatus({order:formData.value.工单编号,yjno:formData.value.印件号,gxh:formData.value.工序号});
  2047. if (response.code === 0) {
  2048. FacilityProduction
  2049. }
  2050. console.log(response)
  2051. }
  2052. import { nextTick } from 'vue';
  2053. //设备点检
  2054. function ondianjian() {
  2055. getSpotCheckItem(JTMC).then(treeData => {
  2056. if (treeData) {
  2057. // 如果获取成功,treeData 就是我们需要的树形结构数据
  2058. dianjiantreeData = treeData;
  2059. console.log('222');
  2060. console.log(dianjiantreeData);
  2061. // 使用 nextTick 来确保在更新 dianjianVisible 后立即刷新视图
  2062. nextTick(() => {
  2063. dianjianVisible.value = true;
  2064. });
  2065. // 这里可以处理treeData,例如将其赋值给某个状态管理变量或者用于渲染界面
  2066. } else {
  2067. // 如果获取失败,则treeData为null
  2068. console.log('获取巡检项目树形结构数据失败');
  2069. }
  2070. });
  2071. }
  2072. //机台印版领用->右侧详情
  2073. const facilityPrintDetailItem = async (value) => {
  2074. try {
  2075. // 调用接口获取巡检项目数据
  2076. const response = await facilityPrintDetail({ workOrder: formData.value.工单编号,code:value,productCode:formData.value.productCode });
  2077. // const response = await facilityPrintDetail({ workOrder: '2312165',code:'0521',productCode:'104601001' });
  2078. // 检查接口返回的状态码
  2079. if (response.code === 0) {
  2080. console.log(response)
  2081. yinbanselectData.value=response.data
  2082. }
  2083. } catch (error) {
  2084. // 捕获并打印异常
  2085. console.error("获取数据出错:" + error);
  2086. return null;
  2087. }
  2088. };
  2089. const yinbanNodeClick = (node, check, nodeData) => {
  2090. if (node.children && node.children.length > 0) {
  2091. // 点击的是父节点,且有子节点
  2092. // 执行相应的父节点单击事件处理逻辑
  2093. // 这里可以添加你想要的处理逻辑,比如展开/折叠节点等
  2094. } else {
  2095. // 点击的是子节点,或者没有子节点
  2096. // 执行相应的子节点单击事件处理逻辑
  2097. yinbanselectData.value=[]
  2098. facilityPrintDetailItem(node.code)
  2099. }
  2100. };
  2101. const onyinban = async() => {
  2102. const res = await facilityPrintGetTab({productCode:formData.value.productCode})
  2103. if(res.code===0){
  2104. yinbantreeData.value=[{
  2105. label:'产品印版库',
  2106. children:res.data.map(item=>({
  2107. label:item.印版分类,
  2108. code:item.编号
  2109. }))
  2110. }]
  2111. console.log(res.data.map(item=>({
  2112. label:item.印版分类,
  2113. code:item.编号
  2114. })))
  2115. yinbanVisible.value = true;
  2116. }
  2117. }
  2118. const onzhicheng = async () => {
  2119. zhichengstatus.value=false
  2120. xunchaData.value=[]
  2121. const response = await reportProduceInfo({machine:JTMC.split("#")[0]});
  2122. if (response.code === 0) {
  2123. xunchaData.value.order=response.data.order
  2124. xunchaData.value.yjno=response.data.yjno
  2125. xunchaData.value.product_name=response.data.product_name
  2126. xunchaData.value.gxmc=response.data.gxmc
  2127. xunchaData.value.lcdh=0
  2128. xunchaData.value.sczl_bh=''
  2129. xunchaData.value.sczl_name=''
  2130. xunchaData.value.remark=''
  2131. zhichengVisible.value = true;
  2132. }
  2133. }
  2134. const chanliangselectData = reactive([])
  2135. const chanliangVisible = ref(false)
  2136. const huanxingVisible = ref(false)
  2137. const xunchaVisible = ref(false)
  2138. //客诉记录
  2139. const complaintsShow = ref(false)
  2140. const complaintsData = ref([])
  2141. function oncomplaints() {
  2142. Complaints()
  2143. }
  2144. // 客诉记录表格填充
  2145. const Complaints = async() => {
  2146. complaintsData.value=[]
  2147. selectedRowData.value={}
  2148. const res = await ComplaintRecord({productCode :formData.value.productCode})
  2149. if (res.msg === '成功') {
  2150. complaintsData.value=res.data;
  2151. selectedRowData.value=complaintsData.value[0]
  2152. complaintsShow.value=true
  2153. }else{
  2154. ElMessage({
  2155. type: 'success',
  2156. message: '未找到该产品客诉记录!'
  2157. })
  2158. }
  2159. }
  2160. const selectedRowData = ref({
  2161. })
  2162. //客诉表格单击
  2163. const complaintshandle = (val, row) => {
  2164. selectedRowData.value=val
  2165. };
  2166. //设置机台状态
  2167. function onstatus() {
  2168. dialogSbyxgl.value=true
  2169. SetMachineStatus()
  2170. // ReportProduceInfo()
  2171. }
  2172. function onClear() {
  2173. huanxingVisible.value=true
  2174. RemodelGetTab()
  2175. }
  2176. const RemodelGetTab = async() => {
  2177. const response = await remodelGetTab()
  2178. let arr=[]
  2179. if (response.code === 0) {
  2180. for(let key in response.data){
  2181. if(response.data[key][0]){
  2182. let children =[]
  2183. for (let i = 0; i < response.data[key].length; i++) {
  2184. children.push({label:response.data[key][i],machine:key})
  2185. }
  2186. arr.push({
  2187. label:key,
  2188. children:children
  2189. })
  2190. console.log(response.data[key].length)
  2191. }else{
  2192. arr.push({label:key})
  2193. }
  2194. }
  2195. huanxingtreeData.value=arr
  2196. }
  2197. }
  2198. //设置机台状态
  2199. const SetMachineStatus = async () => {
  2200. // const response = await setMachineStatus({
  2201. // machine:'JY03',
  2202. // gy_name:'02-胶印〖白、黑、哑油【预干】、NT光油',
  2203. // order:'2311114',
  2204. // yjno:'1',
  2205. // class:'ZM00545,ZM01351,ZM01170',
  2206. // status:'维修',
  2207. // production_now:'',
  2208. // production_all:'',
  2209. // });
  2210. // if (response.code === 0) {
  2211. // }
  2212. }
  2213. //提交巡查记录
  2214. function onxuncha() {
  2215. xunchaData.value=[]
  2216. ReportProduceInfo()
  2217. }
  2218. //巡检弹窗确定
  2219. const xunchaDialog = async () => {
  2220. SubmitPatrolRecord()
  2221. }
  2222. const closexunchaDialog = async () => {
  2223. xunchaVisible.value=false
  2224. }
  2225. const dianjianDialog = async () => {
  2226. dianjianselectData.splice(0, dianjianselectData.length, ...dianjianselectData.map(item=>{
  2227. if(item.zc==true){
  2228. item.status='正常'
  2229. }
  2230. if(item.yc==true){
  2231. item.status='异常'
  2232. }
  2233. if(item.notjc==true){
  2234. item.status='不检测'
  2235. }
  2236. item.itemName=item.检验项目
  2237. item.method=item.点检方法
  2238. item.standard=item.判定标准
  2239. delete item.notjc
  2240. delete item.zc
  2241. delete item.yc
  2242. delete item.检验项目
  2243. delete item.点检方法
  2244. delete item.判定标准
  2245. return item
  2246. }))
  2247. const response = await InspectionItemAdd(dianjianselectData);
  2248. if (response.code === 0) {
  2249. ElMessage({
  2250. type: 'success',
  2251. message: '成功'
  2252. })
  2253. dianjianVisible.value=false
  2254. }
  2255. }
  2256. const zhichengDialog = async () => {
  2257. console.log(fujiaselectData.value)
  2258. let arr =[]
  2259. zhibiaoselectData.value.map(item=>{
  2260. if(item.zc==true){
  2261. item.result='合格'
  2262. item.item=item.检验项目
  2263. item.instrument=item.检测方法
  2264. item.standard=item.相关标准
  2265. delete item.notjc
  2266. delete item.zc
  2267. delete item.yc
  2268. delete item.检验项目
  2269. delete item.检测方法
  2270. delete item.相关标准
  2271. delete item.检验频率
  2272. arr.push(item)
  2273. return item
  2274. }
  2275. if(item.yc==true){
  2276. item.result='不合格'
  2277. item.item=item.检验项目
  2278. item.instrument=item.检测方法
  2279. item.standard=item.相关标准
  2280. delete item.notjc
  2281. delete item.zc
  2282. delete item.yc
  2283. delete item.检验项目
  2284. delete item.检测方法
  2285. delete item.相关标准
  2286. delete item.检验频率
  2287. arr.push(item)
  2288. return item
  2289. }
  2290. if(item.notjc==true){
  2291. item.result='不检测'
  2292. item.item=item.检验项目
  2293. item.instrument=item.检测方法
  2294. item.standard=item.相关标准
  2295. delete item.notjc
  2296. delete item.zc
  2297. delete item.yc
  2298. delete item.检验项目
  2299. delete item.检测方法
  2300. delete item.相关标准
  2301. delete item.检验频率
  2302. // arr.push(item)
  2303. return item
  2304. }
  2305. })
  2306. let arrs=[]
  2307. let fujiastatus=0
  2308. fujiaselectData.value.map(item=>{
  2309. if(item.notjc==true){
  2310. return item
  2311. }else{
  2312. fujiastatus=1
  2313. item.remark=item.缺陷备注
  2314. delete item.notjc
  2315. delete item.缺陷备注
  2316. delete item.编号
  2317. arrs.push(item)
  2318. return item
  2319. }
  2320. })
  2321. if(fujiastatus==1){
  2322. const responses = await AdditionalInspectionRecordAdd(arrs);
  2323. fujiastatus=0
  2324. }
  2325. // const response = await ProcessInspectionRecordsItemAdd(arr);
  2326. const response = await ProcessInspectionRecordsItemAdd(zhibiaoselectData.value);
  2327. // const responses = await AdditionalInspectionRecordAdd(zhibiaoselectData.value);
  2328. if (response.code === 0) {
  2329. ElMessage({
  2330. type: 'success',
  2331. message: '成功'
  2332. })
  2333. zhichengVisible.value=false
  2334. zhibiaoselectData.value=[]
  2335. fujiaselectData.value=[]
  2336. }
  2337. }
  2338. const closedianjianDialog = async () => {
  2339. dianjianVisible.value=false
  2340. }
  2341. const closezhichengDialog = async () => {
  2342. zhichengVisible.value=false
  2343. }
  2344. //获取机台生产信息
  2345. const ReportProduceInfo = async (value,inputName) => {
  2346. const response = await reportProduceInfo({machine:JTMC.split("#")[0]});
  2347. if (response.code === 0) {
  2348. xunchaData.value.order=response.data.order
  2349. xunchaData.value.yjno=response.data.yjno
  2350. xunchaData.value.product_name=response.data.product_name
  2351. xunchaData.value.gxmc=response.data.gxmc
  2352. xunchaData.value.lcdh=0
  2353. xunchaData.value.sczl_bh=''
  2354. xunchaData.value.sczl_name=''
  2355. xunchaData.value.remark=''
  2356. FieldInspectionRecord()
  2357. xunchaVisible.value=true
  2358. }
  2359. }
  2360. // 假设 xunchaselectData 是一个 ref 对象
  2361. const xunchaselectData = ref([]);
  2362. const xunchaData = ref([]);
  2363. // 在 FieldInspectionRecord 方法中填充数据
  2364. const FieldInspectionRecord = async () => {
  2365. const response = await fieldInspectionRecord({ workOrder: xunchaData.value.order, team: BZMC.value});
  2366. console.log(response);
  2367. if (response.code === 0) {
  2368. xunchaselectData.value = response.data;
  2369. }
  2370. }
  2371. //获取机台编号
  2372. const GetMachineMac = async () => {
  2373. var xmlhttp = null;
  2374. var res;
  2375. if (window.XMLHttpRequest) {
  2376. xmlhttp = new XMLHttpRequest();
  2377. } else if (window.ActiveXObject) {
  2378. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  2379. }
  2380. // 2. 设置回调函数
  2381. xmlhttp.onreadystatechange = function() {
  2382. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  2383. res = eval('('+xmlhttp.response+')');
  2384. let result = ''
  2385. for (let i = 0; i < res.macAddress.length; i++) {
  2386. if (i % 2 === 0 && i !== 0) {
  2387. result += '-' // 根据实际需求修改分隔符
  2388. }
  2389. result += res.macAddress[i]
  2390. }
  2391. }
  2392. }
  2393. // 3. 打开一个连接http://10.10.4.42/
  2394. xmlhttp.open("get", "http://127.0.0.1:8090/init")
  2395. // 5. 发送
  2396. xmlhttp.send();
  2397. const response = await getMachineMac({ addr: '68-ED-A4-26-5F-8E' });
  2398. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-C8' });
  2399. // const response = await getMachineMac({ addr: '40-62-31-21-4E-15' });
  2400. // const response = await getMachineMac({ addr: '68-ED-A4-26-5F-42' });
  2401. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-E5' });
  2402. // const response = await getMachineMac({ addr: '68-ED-A4-26-5E-4E' });
  2403. // const response = await getMachineMac({ addr: '68-ED-A4-26-60-D1' });
  2404. console.log(response);
  2405. if (response.code === 0) {
  2406. // 将接口返回的数据添加到树型结构中
  2407. let newNode = {
  2408. label: response.data["使用部门"],
  2409. level: 1,
  2410. children: [
  2411. {
  2412. label: response.data["设备编号"],
  2413. level: 2,
  2414. }
  2415. ]
  2416. };
  2417. treeData.value.push(newNode);
  2418. CJMC=newNode.label
  2419. JTMC = newNode.children[0].label;
  2420. FacilityProduction();
  2421. }
  2422. }
  2423. GetMachineMac()
  2424. //提交巡查记录
  2425. const SubmitPatrolRecord = async () => {
  2426. console.log(JTMC.split("#")[0])
  2427. const response = await submitPatrolRecord({
  2428. type:'现场巡查记录',
  2429. machine:JTMC.split("#")[0],
  2430. order:xunchaData.value.order,
  2431. yjno:xunchaData.value.yjno,
  2432. process:xunchaData.value.lcdh,
  2433. no:xunchaData.value.sczl_bh,
  2434. name:xunchaData.value.sczl_name,
  2435. remark:xunchaData.value.remark,
  2436. });
  2437. console.log(response)
  2438. if (response.code === 0) {
  2439. ElMessage({
  2440. type: 'success',
  2441. message: '成功'
  2442. })
  2443. xunchaVisible.value=false
  2444. }
  2445. }
  2446. //日产量上报
  2447. function onchanliang() {
  2448. console.log(JTMC.split("#")[0]); // 通过value属性获取ref对象的值,然后再调用split方法
  2449. ReportInfo()
  2450. }
  2451. //日产量详情获取
  2452. const ReportInfo = async () => {
  2453. const response = await reportInfo({ machine: JTMC.split("#")[0] });
  2454. if (response.code === 0) {
  2455. const { order_info, class: classInfo } = response.data;
  2456. const newData = {
  2457. order: order_info.order,
  2458. yjno: order_info.yjno,
  2459. gxh: order_info.gxh,
  2460. gxmc: order_info.gxmc,
  2461. product_name: order_info.product_name,
  2462. yj_name: order_info.yj_name,
  2463. gy_name: order_info.gy_name,
  2464. sczl_jtbh: classInfo.sczl_jtbh.split('#')[0],
  2465. sczl_bzdh: classInfo.sczl_bzdh,
  2466. sys_id: classInfo.sys_id,
  2467. sys_rq: classInfo.sys_rq,
  2468. mod_rq: classInfo.mod_rq,
  2469. UniqId: classInfo.UniqId,
  2470. sczl_bh1: classInfo.sczl_bh1,
  2471. sczl_bh2: classInfo.sczl_bh2,
  2472. sczl_bh3: classInfo.sczl_bh3,
  2473. sczl_bh4: classInfo.sczl_bh4,
  2474. sczl_bh5: classInfo.sczl_bh5,
  2475. sczl_bh6: classInfo.sczl_bh6,
  2476. sczl_bh7: classInfo.sczl_bh7,
  2477. sczl_bh8: classInfo.sczl_bh8,
  2478. sczl_bh9: classInfo.sczl_bh9,
  2479. sczl_bh10: classInfo.sczl_bh10,
  2480. sczl_name1: classInfo.sczl_name1,
  2481. sczl_name2: classInfo.sczl_name2,
  2482. sczl_name3: classInfo.sczl_name3,
  2483. sczl_name4: classInfo.sczl_name4,
  2484. sczl_name5: classInfo.sczl_name5,
  2485. sczl_name6: classInfo.sczl_name6,
  2486. sczl_name7: classInfo.sczl_name7,
  2487. sczl_name8: classInfo.sczl_name8,
  2488. sczl_name9: classInfo.sczl_name9,
  2489. sczl_name10: classInfo.sczl_name10,
  2490. sczl_rate1: classInfo.sczl_rate1,
  2491. sczl_rate2: classInfo.sczl_rate2,
  2492. sczl_rate3: classInfo.sczl_rate3,
  2493. sczl_rate4: classInfo.sczl_rate4,
  2494. sczl_rate5: classInfo.sczl_rate5,
  2495. sczl_rate6: classInfo.sczl_rate6,
  2496. sczl_rate7: classInfo.sczl_rate7,
  2497. sczl_rate8: classInfo.sczl_rate8,
  2498. sczl_rate9: classInfo.sczl_rate9,
  2499. sczl_rate10: classInfo.sczl_rate10,
  2500. };
  2501. formData3.value = { ...formData3.value, ...newData };
  2502. chanliangselectData.splice(0, chanliangselectData.length, ...response.data.bom)
  2503. chanliangVisible.value=true
  2504. }
  2505. // getTableData()
  2506. }
  2507. //日报表弹窗确定
  2508. const chanliangenterDialog = async () => {
  2509. SubmitDailyProduction()
  2510. }
  2511. //日报表上传
  2512. const SubmitDailyProduction = async () => {
  2513. const restoredData = {
  2514. sczl_gdbh:formData3.value.order,
  2515. sczl_yjno:formData3.value.yjno,
  2516. sczl_gxh:formData3.value.gxh,
  2517. sczl_gxmc: formData3.value.gxmc,
  2518. sczl_bzdh: formData3.value.sczl_bzdh,
  2519. sczl_bh1: formData3.value.sczl_bh1,
  2520. sczl_bh2: formData3.value.sczl_bh2,
  2521. sczl_bh3: formData3.value.sczl_bh3,
  2522. sczl_bh4: formData3.value.sczl_bh4,
  2523. sczl_bh5: formData3.value.sczl_bh5,
  2524. sczl_bh6: formData3.value.sczl_bh6,
  2525. sczl_bh7: formData3.value.sczl_bh7,
  2526. sczl_bh8: formData3.value.sczl_bh8,
  2527. sczl_bh9: formData3.value.sczl_bh9,
  2528. sczl_bh10: formData3.value.sczl_bh10,
  2529. sczl_bh98:formData3.value.sczl_bh11,
  2530. sczl_rate1: formData3.value.sczl_rate1,
  2531. sczl_rate2: formData3.value.sczl_rate2,
  2532. sczl_rate3: formData3.value.sczl_rate3,
  2533. sczl_rate4: formData3.value.sczl_rate4,
  2534. sczl_rate5: formData3.value.sczl_rate5,
  2535. sczl_rate6: formData3.value.sczl_rate6,
  2536. sczl_rate7: formData3.value.sczl_rate7,
  2537. sczl_rate8: formData3.value.sczl_rate8,
  2538. sczl_rate9: formData3.value.sczl_rate9,
  2539. sczl_rate10: formData3.value.sczl_rate10,
  2540. sczl_jtbh: formData3.value.sczl_jtbh,
  2541. sczl_rq: formData3.value.日期,
  2542. sczl_num: formData3.value.流程标牌,
  2543. sczl_sj1: formData3.value.上机时间,
  2544. sczl_sj2: formData3.value.下机时间,
  2545. sczl_cl: formData3.value.产量,
  2546. sczl_zcfp: formData3.value.制程废品,
  2547. sczl_zccp: formData3.value.制程次品,
  2548. last_fp: formData3.value.前工序废,
  2549. less_sl: formData3.value.来料异常,
  2550. sczl_ls: formData3.value.联数,
  2551. sczl_ms: formData3.value.墨色,
  2552. zb_time: formData3.value.装版总时长,
  2553. dy_time: formData3.value.打样总工时,
  2554. run_time: formData3.value.通电工时,
  2555. sczl_dedh: formData3.value.定额代号,
  2556. code: formData3.value.码包,
  2557. main_meter: formData3.value.主电表,
  2558. auxiliary_meter: formData3.value.辅电表,
  2559. bom: formData3.value.formattedArray
  2560. }
  2561. console.log(restoredData)
  2562. console.log(formData3.value.formattedArray)
  2563. const response = await submitDailyProduction(restoredData);
  2564. console.log(response)
  2565. if (response.code === 0) {
  2566. ElMessage({
  2567. type: 'success',
  2568. message: '成功'
  2569. })
  2570. FacilityDetail()
  2571. chanliangVisible.value=false
  2572. }
  2573. }
  2574. // let formattedArray
  2575. // 产量单选
  2576. const chanliangSelectionChange = (val) => {
  2577. // if(val.length>0){
  2578. // multipleSelection.value = val
  2579. // const lenth=val.length
  2580. // lastCellValue=val[lenth-1].UniqId
  2581. // console.log(val)
  2582. // val.splice(0, val.length); // 清空 val 数组
  2583. // console.log(lastCellValue)
  2584. // }
  2585. const selectedItems =val
  2586. // 存储batch和st_wlbh的数组
  2587. formData3.value.formattedArray = selectedItems.map(item => `${item.batch}-${item.st_wlbh}`).join(',');
  2588. console.log(formData3.value.formattedArray);
  2589. // console.log(selectedItems)
  2590. }
  2591. //获取设备点检->检验项目
  2592. const FacilityInspectionItem = async (value) => {
  2593. try {
  2594. // 调用接口获取巡检项目数据
  2595. const response = await facilityInspectionItem({ unitName: value ,machine:JTMC.split("#")[0]});
  2596. // 检查接口返回的状态码
  2597. if (response.code === 0) {
  2598. console.log(response)
  2599. dianjianselectData.splice(0, dianjianselectData.length, ...response.data.map(item=>{
  2600. item.notjc=true;
  2601. item.zc=false;
  2602. item.yc=false;
  2603. item.remark=''
  2604. item.unitName=value
  2605. item.team=BZMC.value
  2606. item.machine=JTMC
  2607. return item
  2608. }))
  2609. }
  2610. } catch (error) {
  2611. // 捕获并打印异常
  2612. console.error("获取巡检项目数据出错:" + error);
  2613. return null;
  2614. }
  2615. };
  2616. //树形结构单机
  2617. const dianjianselectData = reactive([])
  2618. const dianjianNodeClick = (node, check, nodeData) => {
  2619. console.log('111')
  2620. if (node.children && node.children.length > 0) {
  2621. // 点击的是父节点,且有子节点
  2622. // 执行相应的父节点单击事件处理逻辑
  2623. // 这里可以添加你想要的处理逻辑,比如展开/折叠节点等
  2624. } else {
  2625. // 点击的是子节点,或者没有子节点
  2626. // 执行相应的子节点单击事件处理逻辑
  2627. FacilityInspectionItem(node.label)
  2628. }
  2629. };
  2630. const category =ref()
  2631. const zhichengNodeClick = (node, check) => {
  2632. if(node.label){
  2633. zhichengstatus.value=true
  2634. category.value=node.label
  2635. processInspectionRecordsItem()
  2636. }
  2637. };
  2638. const processInspectionRecordsItem = async (value) => {
  2639. const response = await ProcessInspectionRecordsItem({ process: xunchaData.value.gxmc });
  2640. if (response.code === 0) {
  2641. zhibiaoselectData.value=response.data.首件.指标检验.map(item=>{
  2642. item.notjc=true;
  2643. item.zc=false;
  2644. item.yc=false;
  2645. item.remark=''
  2646. item.category=category.value
  2647. item.workOrder=xunchaData.value.order
  2648. item.yjno=xunchaData.value.yjno
  2649. item.flow=xunchaData.value.lcdh
  2650. item.team=BZMC.value
  2651. item.machine=JTMC.split("#")[0]
  2652. return item
  2653. })
  2654. fujiaselectData.value=response.data.首件.附加.map(item=>{
  2655. item.notjc=true;
  2656. item.workOrder=xunchaData.value.order
  2657. item.yjno=xunchaData.value.yjno
  2658. item.flow=xunchaData.value.lcdh
  2659. item.machine=JTMC.split("#")[0]
  2660. return item
  2661. })
  2662. }
  2663. };
  2664. const notjcClick = (val) => {
  2665. try {
  2666. if(val.notjc==false){
  2667. val.zc=false
  2668. val.yc==false
  2669. }else{
  2670. val.zc=true
  2671. val.yc==false
  2672. }
  2673. } catch (error) {
  2674. console.error('An error occurred:', error);
  2675. }
  2676. };
  2677. const zcClick = (val) => {
  2678. try {
  2679. if(val.notjc==false){
  2680. if(val.zc==false){
  2681. val.yc=false
  2682. }else{
  2683. val.yc==true
  2684. }
  2685. }{
  2686. val.zc=true
  2687. }
  2688. } catch (error) {
  2689. console.error('An error occurred:', error);
  2690. }
  2691. };
  2692. const ycClick = (val) => {
  2693. try {
  2694. if(val.notjc==false){
  2695. if(val.yc==false){
  2696. val.zc=false
  2697. }else{
  2698. val.zc=true
  2699. }
  2700. }else{
  2701. val.yc=true
  2702. }
  2703. } catch (error) {
  2704. console.error('An error occurred:', error);
  2705. }
  2706. };
  2707. let pandingfangfa=ref()
  2708. //检验项目单击
  2709. const dianjianhandle = async (val, row) => {
  2710. try {
  2711. console.log(val.判定标准);
  2712. pandingfangfa.value = val.判定标准;
  2713. } catch (error) {
  2714. console.error('An error occurred:', error);
  2715. }
  2716. };
  2717. const rowClassName = (row, column) => {
  2718. try {
  2719. if (row.unchecked) {
  2720. return 'row-yellow';
  2721. }
  2722. return '';
  2723. } catch (error) {
  2724. console.error('An error occurred:', error);
  2725. return '';
  2726. }
  2727. };
  2728. function duohandleClick(table) {
  2729. console.log(table.props.label)
  2730. if(table.props.label=='当班产量明细'){
  2731. zdtreeType.value=true
  2732. }else{
  2733. zdtreeType.value=false
  2734. }
  2735. }
  2736. // 异步函数,用于获取指定设备的巡检项目,并且将结果格式化为树形结构数据
  2737. const getSpotCheckItem = async (machineName) => {
  2738. try {
  2739. // 调用接口获取巡检项目数据
  2740. const response = await facilitySpotCheckItem({ machine: machineName });
  2741. // 检查接口返回的状态码
  2742. if (response.code === 0) {
  2743. // 构建树形结构数据
  2744. const childrenData = Object.entries(response.data).map(([id, label]) => {
  2745. return {
  2746. id, // 子节点的唯一标识
  2747. label, // 子节点的标签
  2748. children: [] // 初始化子节点数组
  2749. };
  2750. });
  2751. // 创建包含父节点的树形结构数据
  2752. const treeData = [{
  2753. id: machineName, // 父节点的唯一标识
  2754. label: machineName, // 父节点的标签
  2755. children: childrenData // 子节点数据
  2756. }];
  2757. // 返回构建好的树形结构数据
  2758. return treeData;
  2759. } else {
  2760. // 如果接口返回的状态码不是0,打印错误信息
  2761. console.error("接口返回错误:" + response.msg);
  2762. return null;
  2763. }
  2764. } catch (error) {
  2765. // 捕获并打印异常
  2766. console.error("获取巡检项目数据出错:" + error);
  2767. return null;
  2768. }
  2769. };
  2770. // 班组人员及分配比例
  2771. const FacilityTeam = async (value) => {
  2772. const response = await facilityTeam({ machine: value });
  2773. if (response.code === 0) {
  2774. console.log(response);
  2775. // 清空 bzData 数组
  2776. bzData.splice(0, bzData.length);
  2777. // 遍历接口返回的数据,并给每个对象添加 JTMC 属性
  2778. const updatedData = response.data.map(item => {
  2779. return { ...item, JTMC: value }; // 添加 JTMC 属性
  2780. });
  2781. // 将更新后的数据添加到 bzData 数组
  2782. bzData.push(...updatedData);
  2783. FPData.push(...updatedData)
  2784. console.log(FPData)
  2785. }
  2786. };
  2787. //班组维护
  2788. function onBZ() {
  2789. FacilityTeam(JTMC)
  2790. fetchData()
  2791. detailShow.value=true
  2792. console.log('2222')
  2793. }
  2794. // 下拉框选项数据
  2795. const dropdownOptions = ref([]);
  2796. // 选中的选项
  2797. const selectedOption = ref('');
  2798. // 获取接口数据并转换为下拉框需要的格式
  2799. const fetchData = async () => {
  2800. try {
  2801. // Simulate API call
  2802. const response = await facilityMachineList();
  2803. if (response.code === 0) {
  2804. // Transform data format
  2805. const options = response.data.map((item) => ({
  2806. label: item,
  2807. value: item
  2808. }));
  2809. dropdownOptions.value = options;
  2810. // Default to selecting the first option
  2811. const defaultOption = options.find(option => option.value === JTMC);
  2812. if (defaultOption) {
  2813. selectedOption.value = defaultOption.value;
  2814. } else if (options.length > 0) {
  2815. // 如果 myDefaultValue 不在选项中,选择第一个选项
  2816. selectedOption.value = options[0].value;
  2817. }
  2818. }
  2819. } catch (error) {
  2820. console.error('Error fetching data:', error);
  2821. // Handle the error appropriately
  2822. }
  2823. };
  2824. // formData
  2825. let BZMC=ref()
  2826. let lastCellValue=ref()
  2827. let parts =reactive([])
  2828. const formData3= ref({
  2829. order:'',
  2830. yjno:'',
  2831. gxh:'',
  2832. gxmc:'',
  2833. product_name:'',
  2834. yj_name:'',
  2835. gy_name:'',
  2836. sczl_jtbh:'',
  2837. sczl_bzdh:'',
  2838. sys_id:'',
  2839. sys_rq:'',
  2840. mod_rq:'',
  2841. UniqId:'',
  2842. sczl_bh1:'',
  2843. sczl_bh2:'',
  2844. sczl_bh3:'',
  2845. sczl_bh4:'',
  2846. sczl_bh5:'',
  2847. sczl_bh6:'',
  2848. sczl_bh7:'',
  2849. sczl_bh8:'',
  2850. sczl_bh9:'',
  2851. sczl_bh10:'',
  2852. sczl_bh11:'',
  2853. sczl_name1:'',
  2854. sczl_name2:'',
  2855. sczl_name3:'',
  2856. sczl_name4:'',
  2857. sczl_name5:'',
  2858. sczl_name6:'',
  2859. sczl_name7:'',
  2860. sczl_name8:'',
  2861. sczl_name9:'',
  2862. sczl_name10:'',
  2863. sczl_name11:'',
  2864. sczl_rate1:'',
  2865. sczl_rate2:'',
  2866. sczl_rate3:'',
  2867. sczl_rate4:'',
  2868. sczl_rate5:'',
  2869. sczl_rate6:'',
  2870. sczl_rate7:'',
  2871. sczl_rate8:'',
  2872. sczl_rate9:'',
  2873. sczl_rate10:'',
  2874. 日期:'',
  2875. 流程标牌:'',
  2876. 上机时间:'',
  2877. 下机时间:'',
  2878. 产量:'',
  2879. 制程废品:'',
  2880. 制程次品:'',
  2881. 前工序废:'',
  2882. 来料异常:'',
  2883. 联数:'',
  2884. 墨色:'',
  2885. 装版总工时:'',
  2886. 打样总工时:'',
  2887. 通电工时:'',
  2888. 定额代号:'',
  2889. 码包:'',
  2890. 主电表:'',
  2891. 辅电表:'',
  2892. formattedArray:'',
  2893. })
  2894. // 自动化生成的字典(可能为空)以及字段
  2895. const formData= ref({
  2896. // 工单编号:'',
  2897. // 印件号:'',
  2898. // 工序名称:'',
  2899. // 产品名称:'',
  2900. // sczl_bh1:'',
  2901. // sczl_bh2:'',
  2902. // sczl_bh3:'',
  2903. // sczl_bh4:'',
  2904. // sczl_bh5:'',
  2905. // sczl_bh6:'',
  2906. // sczl_bh7:'',
  2907. // sczl_bh8:'',
  2908. // sczl_bh9:'',
  2909. // sczl_bh10:'',
  2910. // sczl_name1:'',
  2911. // sczl_name2:'',
  2912. // sczl_name3:'',
  2913. // sczl_name4:'',
  2914. // sczl_name5:'',
  2915. // sczl_name6:'',
  2916. // sczl_name7:'',
  2917. // sczl_name8:'',
  2918. // sczl_name9:'',
  2919. // sczl_name10:'',
  2920. // 班组:'',
  2921. // order:'',
  2922. // yjno:'',
  2923. // product_name:'',
  2924. // gxmc:'',
  2925. })
  2926. const formDatasData= reactive([])
  2927. const formDatas = ref({
  2928. code1:'',
  2929. code2:'',
  2930. code3:'',
  2931. code4:'',
  2932. code5:'',
  2933. code6:'',
  2934. code7:'',
  2935. code8:'',
  2936. code9:'',
  2937. code10:'',
  2938. name1:'',
  2939. name2:'',
  2940. name3:'',
  2941. name4:'',
  2942. name5L:'',
  2943. name6:'',
  2944. name7:'',
  2945. name8:'',
  2946. name9:'',
  2947. name10:'',
  2948. percentage1:'',
  2949. percentage2:'',
  2950. percentage3:'',
  2951. percentage4:'',
  2952. percentage5:'',
  2953. percentage6:'',
  2954. percentage7:'',
  2955. percentage8:'',
  2956. percentage9:'',
  2957. percentage10:'',
  2958. })
  2959. const currentBz ={}
  2960. //班组单击
  2961. const BZhandle = (val, row) => {
  2962. console.log(val.ID)
  2963. console.log(val)
  2964. currentBz.value=val
  2965. formDatas.value = {};
  2966. for (const key in val) {
  2967. if (val[key] === 0) {
  2968. break;
  2969. }
  2970. const parts = val[key].split(/[\s()]+/);
  2971. const code = parts[0];
  2972. const name = parts[1];
  2973. const percentage = parts[2];
  2974. // 根据索引填充不同的字段
  2975. const index = parseInt(key) + 1; // 索引从1开始
  2976. formDatas.value['code' + index] = code;
  2977. formDatas.value['name' + index] = name;
  2978. formDatas.value['percentage' + index] = percentage;
  2979. BZMC.value=val.班组号
  2980. }
  2981. };
  2982. const selectBz = async() => {
  2983. if(currentBz.value){
  2984. BZMC.value=currentBz.value.班组号
  2985. let sczl_bhkey=''
  2986. let sczl_namekey=''
  2987. if (currentBz.value) {
  2988. for (let i = 1; i <= 6; i++) {
  2989. sczl_bhkey=`sczl_bh${i}`
  2990. sczl_namekey=`sczl_name${i}`
  2991. formData.value[sczl_bhkey] = '';
  2992. formData.value[sczl_namekey] = '';
  2993. }
  2994. for (let i = 1; i <= Math.min(Object.keys(currentBz.value).length-4, 6); i++) {
  2995. sczl_bhkey=`sczl_bh${i}`
  2996. sczl_namekey=`sczl_name${i}`
  2997. console.log(currentBz.value[i-1].split(' '))
  2998. formData.value[sczl_bhkey] = currentBz.value[i-1].split(' ')[0];
  2999. formData.value[sczl_namekey] = currentBz.value[i-1].split(' ')[1];
  3000. classbz.value[i-1]=currentBz.value[i-1].split(' ')[0]
  3001. }
  3002. formData.value.class=classbz.value.join(',')
  3003. }
  3004. const response = await setMachineTeam({
  3005. machine: JTMC.split("#")[0],
  3006. order:formData.value.工单编号,
  3007. yjno:formData.value.印件号,
  3008. gy_name:formData.value.工序名称,
  3009. sczl_bzdh:BZMC.value,
  3010. status:formData.value.状态,
  3011. production_now:0,
  3012. production_all:0,
  3013. team_id:currentBz.value.ID
  3014. })
  3015. if(response.code===0){
  3016. ElMessage({
  3017. type: 'success',
  3018. message: '成功'
  3019. })
  3020. }
  3021. currentBz.value={}
  3022. }
  3023. }
  3024. const delBz = async() => {
  3025. if(currentBz.value){
  3026. ElMessageBox.confirm('确定要删除吗?', '提示', {
  3027. confirmButtonText: '确定',
  3028. cancelButtonText: '取消',
  3029. type: 'warning'
  3030. }).then(() => {
  3031. teamDel(currentBz.value.ID)
  3032. })
  3033. currentBz.value={}
  3034. }
  3035. }
  3036. // ============== 表格控制部分结束 ===============
  3037. // 获取需要的字典 可能为空 按需保留
  3038. const setOptions = async () =>{
  3039. }
  3040. // 获取需要的字典 可能为空 按需保留
  3041. setOptions()
  3042. // 多选数据
  3043. const multipleSelection = ref([])
  3044. // 多选
  3045. const handleSelectionChange = (val) => {
  3046. multipleSelection.value = val
  3047. }
  3048. const zdtreeType = ref(false)
  3049. const selectData = ref([])
  3050. const showsTable = (val,tab) => {
  3051. }
  3052. const showTable = (val,tab) => {
  3053. // zdtreeType.value=false
  3054. }
  3055. // 删除行
  3056. const deleteRow = (row) => {
  3057. ElMessageBox.confirm('确定要删除吗?', '提示', {
  3058. confirmButtonText: '确定',
  3059. cancelButtonText: '取消',
  3060. type: 'warning'
  3061. }).then(() => {
  3062. deleteCompanyFunc(row)
  3063. })
  3064. }
  3065. // 批量删除控制标记
  3066. const deleteVisible = ref(false)
  3067. // 多选删除
  3068. const onDelete = async() => {
  3069. const ids = []
  3070. if (multipleSelection.value.length === 0) {
  3071. ElMessage({
  3072. type: 'warning',
  3073. message: '请选择要删除的数据'
  3074. })
  3075. return
  3076. }
  3077. multipleSelection.value &&
  3078. multipleSelection.value.map(item => {
  3079. ids.push(item.ID)
  3080. })
  3081. const res = await deleteCompanyByIds({ ids })
  3082. if (res.code === 0) {
  3083. ElMessage({
  3084. type: 'success',
  3085. message: '删除成功'
  3086. })
  3087. if (tableData.value.length === ids.length && page.value > 1) {
  3088. page.value--
  3089. }
  3090. deleteVisible.value = false
  3091. getTableData()
  3092. }
  3093. }
  3094. // 行为控制标记(弹窗内部需要增还是改)
  3095. const type = ref('')
  3096. // 更新行
  3097. const updateCompanyFunc = async(row) => {
  3098. const res = await findCompany({ ID: row.ID })
  3099. type.value = 'update'
  3100. if (res.code === 0) {
  3101. formData.value = res.data.recompany
  3102. dialogFormVisible.value = true
  3103. }
  3104. }
  3105. const yjupdateCompanyFunc = async(row) => {
  3106. const res = await setMachineTeam({
  3107. machine: JTMC.split("#")[0],
  3108. order:row['工单编号|质量信息'].split('|')[0],
  3109. yjno:row['印件资料'].split('-')[0],
  3110. gy_name:row['工序名称'],
  3111. sczl_bzdh:BZMC.value,
  3112. status:formData.value.状态,
  3113. production_now:0,
  3114. production_all:0,
  3115. team_id:formData.value.班组Id
  3116. })
  3117. if (res.code === 0) {
  3118. FacilityProduction()
  3119. ElMessage({
  3120. type: 'success',
  3121. message: '成功'
  3122. })
  3123. }
  3124. }
  3125. // 删除行
  3126. const deleteCompanyFunc = async (row) => {
  3127. const res = await deleteCompany({ ID: row.ID })
  3128. if (res.code === 0) {
  3129. ElMessage({
  3130. type: 'success',
  3131. message: '删除成功'
  3132. })
  3133. if (tableData.value.length === 1 && page.value > 1) {
  3134. page.value--
  3135. }
  3136. getTableData()
  3137. }
  3138. }
  3139. // 弹窗控制标记
  3140. const dialogFormVisible = ref(false)
  3141. const dianjianVisible = ref(false)
  3142. const zhichengVisible = ref(false)
  3143. // 查看详情控制标记
  3144. const detailShow = ref(false)
  3145. const bzData = reactive([])
  3146. // 打开详情弹窗
  3147. const openDetailShow = () => {
  3148. detailShow.value = true
  3149. }
  3150. // 打开详情
  3151. const getDetails = async (row) => {
  3152. // 打开弹窗
  3153. const res = await findCompany({ ID: row.ID })
  3154. if (res.code === 0) {
  3155. formData.value = res.data.recompany
  3156. openDetailShow()
  3157. }
  3158. }
  3159. // 关闭详情弹窗
  3160. const closeDetailShow = () => {
  3161. detailShow.value = false
  3162. // formData.value = {
  3163. // address: '',
  3164. // image: '',
  3165. // name: '',
  3166. // }
  3167. }
  3168. // 打开弹窗
  3169. const openDialog = () => {
  3170. // type.value = 'create'
  3171. // console.log('222')
  3172. // FacilityInspect()
  3173. // dialogFormVisible.value = true
  3174. }
  3175. let drzcData=[]
  3176. let columnNames=[]
  3177. //当日制程检验记录
  3178. const FacilityInspect = async () => {
  3179. const response = await facilityInspect({machine:'JY01#',date:'2024-01-04'});
  3180. console.log(response)
  3181. if(response.code==0){
  3182. // 提取 inspectiontime 作为列名
  3183. // Extract inspectiontime as columnNames
  3184. columnNames = response.data.inspectiontime;
  3185. // Populate drzcData with row data
  3186. for (const key in response.data) {
  3187. if (key !== 'inspectiontime') {
  3188. const item = response.data[key];
  3189. const rowData = {
  3190. '工单编号': item['工单编号'],
  3191. '印件号': item['印件号'],
  3192. '工序名称': item['工序名称'],
  3193. '检验项目': item['检验项目']
  3194. };
  3195. // Initialize time columns with '—'
  3196. columnNames.forEach(time => {
  3197. rowData[time] = '';
  3198. });
  3199. // Split inspectresult and fill the corresponding time columns
  3200. const results = item['inspectresult'].split(',');
  3201. results.forEach(result => {
  3202. if (columnNames.includes(result)) {
  3203. rowData[result] = '√';
  3204. }else{rowData[result] = ''}
  3205. });
  3206. // Add the row data to drzcData
  3207. drzcData.push(rowData);
  3208. }
  3209. }
  3210. console.log(drzcData);
  3211. }
  3212. }
  3213. // 关闭弹窗
  3214. const closeDialog = () => {
  3215. dialogFormVisible.value = false
  3216. formData.value = {
  3217. address: '',
  3218. image: '',
  3219. name: '',
  3220. }
  3221. }
  3222. const equipmentCode=ref('JY01')
  3223. const equipmentName=ref('海德堡对开')
  3224. const workOrder=ref('2312117')
  3225. const number=ref('1907')
  3226. // 弹窗确定
  3227. const enterDialog = async () => {
  3228. elFormRef.value?.validate( async (valid) => {
  3229. if (!valid) return
  3230. let res
  3231. switch (type.value) {
  3232. case 'create':
  3233. res = await createCompany(formData.value)
  3234. break
  3235. case 'update':
  3236. res = await updateCompany(formData.value)
  3237. break
  3238. default:
  3239. res = await createCompany(formData.value)
  3240. break
  3241. }
  3242. if (res.code === 0) {
  3243. ElMessage({
  3244. type: 'success',
  3245. message: '创建/更改成功'
  3246. })
  3247. closeDialog()
  3248. getTableData()
  3249. }
  3250. })
  3251. }
  3252. </script>
  3253. <style>
  3254. .JKWTree-container {
  3255. display: flex;
  3256. }
  3257. .JKWTree-tree {
  3258. width: 300px;
  3259. background-color: #fff;
  3260. padding: 10px;
  3261. margin-right: 20px;
  3262. }
  3263. .JKWTree-tree h3 {
  3264. font-size: 15px;
  3265. font-weight: 700;
  3266. margin: 10px 0;
  3267. }
  3268. .JKWTree-content {
  3269. flex: 1;
  3270. }
  3271. .groupbox
  3272. {margin:10px;
  3273. width:500px;
  3274. height:500px;
  3275. border:thin solid black;
  3276. padding:10px}
  3277. .grouptitle
  3278. {display:block;
  3279. margin-top:-24px;
  3280. margin-left:20px;
  3281. width:150px;
  3282. text-align:center;
  3283. background-color:white}
  3284. /* 选中某行时的背景色*/
  3285. .el-table__body tr.current-row>td {
  3286. background: #ff80ff !important;
  3287. }
  3288. </style>