chejianbaogong.vue 100 KB

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