Manualdocuments.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226
  1. <template>
  2. <div>
  3. <!-- 左侧树形结构 -->
  4. <el-container>
  5. <el-aside width="250px">
  6. <div class="JKWTree-tree">
  7. <h3>手工检验计件单据维护</h3>
  8. <el-tree :data="treeData" :props="defaultProps" highlight-current="true"
  9. @node-click="handleNodeClick"></el-tree>
  10. </div>
  11. </el-aside>
  12. <el-container>
  13. <el-main>
  14. <!-- 按钮区域 -->
  15. <div class="gva-table-box">
  16. <div class="gva-btn-list">
  17. <el-row :span="6">
  18. <el-input v-model="positionvalue" placeholder="输入工单编号或产品名称" />
  19. </el-row>
  20. <el-button type="primary" :icon="Search" @click="onSearch">搜索</el-button>
  21. <el-button type="primary" :icon="Refresh">重置</el-button>
  22. <el-button type="primary" :icon="Refresh" @click="onRefresh">刷新质检系数</el-button>
  23. <el-button type="primary" :icon="Refresh" @click="onCountByGdbh">按工单显示</el-button>
  24. <el-button type="primary" :icon="Refresh" @click="onDel">删除</el-button>
  25. <div style="margin-left: auto;">
  26. <el-button type="primary" :icon="Download" @click="exportExcel">导出到Excel</el-button>
  27. </div>
  28. </div>
  29. <!-- 数据展示 -->
  30. <el-table ref="multipleTable" style="width: 100%" tooltip-effect="dark" :data="tableData" row-key="ID"
  31. highlight-current-row="true" border @selection-change="handleSelectionChange"
  32. :show-overflow-tooltip="true" @row-dblclick="doubleClick">
  33. <el-table-column type="selection" width="55" />
  34. <el-table-column align="left" label="工单印件" prop="combinedProp" width="340"/>
  35. <el-table-column align="left" label="印件工序" prop="combinedProp2" width="340"/>
  36. <el-table-column align="left" label="日期" prop="sczl_rq" width="120" />
  37. <el-table-column align="left" label="产量" prop="sczl_cl" width="120" />
  38. <el-table-column align="left" label="千件工价" prop="千件工价" width="120" />
  39. <el-table-column align="left" label="检验类别" prop="sczl_检验类别" width="120" />
  40. <el-table-column align="left" label="废品率系数" prop="sczl_废品率系数" width="120" />
  41. <el-table-column align="left" label="日定额" prop="日定额" width="120" />
  42. <el-table-column align="left" label="组长编号" prop="sczl_bh0" width="120" />
  43. <el-table-column align="left" label="组长姓名" prop="员工姓名" width="120" />
  44. <el-table-column align="left" label="流程单备注" prop="qczl_NumDesc" width="120" />
  45. <el-table-column align="left" label="创建用户" prop="sys_id" width="120" />
  46. <el-table-column align="left" label="创建时间" prop="sys_rq" width="160" />
  47. <el-table-column align="left" label="修改时间" prop="mod_rq" width="160" />
  48. <el-table-column align="left" label="UNIQID" prop="UniqId" width="120" />
  49. </el-table>
  50. <!-- 分页 -->
  51. <div class="gva-pagination">
  52. <el-pagination layout="total, sizes, prev, pager, next, jumper" v-model:current-page="page"
  53. v-model:page-size="limit"
  54. :page-sizes="[10, 30, 50, 100]" :total="total" @current-change="handleCurrentChange"
  55. @size-change="handleSizeChange" />
  56. </div>
  57. </div>
  58. <!-- 弹出框 -->
  59. <el-dialog v-model="dialogFormVisible" :before-close="closeDialog" :title="type === 'create' ? '添加' : '修改'"
  60. destroy-on-close width="1200px">
  61. <!-- <el-scrollbar height="500px"> -->
  62. <el-form :model="formData" label-position="left" ref="elFormRef" :rules="rule">
  63. <el-row :gutter="20">
  64. <el-col :span="4">
  65. <el-form-item label="日期" prop="id">
  66. <el-input v-model="formData.sczl_rq" :clearable="true" placeholder="2023.12.14" />
  67. </el-form-item>
  68. </el-col>
  69. <el-col :span="6">
  70. <el-form-item label="组别" prop="name">
  71. <el-row :gutter="20">
  72. <el-col :span="12">
  73. <el-input v-model="formData.sczl_bzdh" :clearable="true" placeholder="ZT01733" />
  74. </el-col>
  75. </el-row>
  76. </el-form-item>
  77. </el-col>
  78. <el-col :span="4">
  79. <el-form-item label="组长" prop="name">
  80. <el-row :gutter="20">
  81. <el-col :span="12">
  82. <el-input v-model="formData.sczl_bh0" @keyup.enter.native="getygsubmit($event, '0')":clearable="true" placeholder="ZT01733" />
  83. </el-col>
  84. <el-col :span="12">
  85. <el-input v-model="formData.sczl_bh0_name" :clearable="true" placeholder="ZT01733" />
  86. </el-col>
  87. </el-row>
  88. </el-form-item>
  89. </el-col>
  90. <el-col :span="4">
  91. <el-form-item label="箱数" prop="name">
  92. <el-row :gutter="20">
  93. <el-col :span="2">
  94. <el-input v-model="formData.sczl_cl0" :clearable="true" placeholder="ZT01733" />
  95. </el-col>
  96. </el-row>
  97. </el-form-item>
  98. </el-col>
  99. <el-col :span="3">
  100. <el-form-item label="每箱数" prop="name">
  101. <el-row :gutter="20">
  102. <el-col :span="2">
  103. <el-input v-model="formData.sczl_fp0" :clearable="true" placeholder="ZT01733" />
  104. </el-col>
  105. </el-row>
  106. </el-form-item>
  107. </el-col>
  108. </el-row>
  109. <el-row :gutter="20">
  110. <el-col :span="20">
  111. <el-row :gutter="20">
  112. <el-col :span="5">
  113. <el-form-item label="工单编号" prop="id">
  114. <el-input v-model="formData.sczl_gdbh" @keyup.enter="getGxMcsubmit" :clearable="true" placeholder="0.00" />
  115. </el-form-item>
  116. </el-col>
  117. <el-col :span="5">
  118. <el-input v-model="formData.sczl_yjgx" :clearable="true" placeholder="是" />
  119. </el-col>
  120. <el-col :span="5">
  121. <el-input v-model="formData.sczl_gxmc" :clearable="true" placeholder="是" />
  122. </el-col>
  123. <el-col :span="5">
  124. <el-input v-model="formData.yj_yjmc" :clearable="true" placeholder="是" />
  125. </el-col>
  126. </el-row>
  127. </el-col>
  128. </el-row>
  129. <el-row :gutter="20">
  130. <el-col :span="4">
  131. <el-form-item label="产量合计" prop="id">
  132. <el-input v-model="formData.sczl_cl" :clearable="true" placeholder="2023.12.14" />
  133. </el-form-item>
  134. </el-col>
  135. <el-col :span="6">
  136. <el-row :gutter="20">
  137. <el-col :span="12">
  138. <el-form-item label="定额代号" prop="id">
  139. <el-input v-model="formData.sczl_dedh" @keyup.enter.native="getDedhsubmit" :clearable="true" placeholder="ZT01733" />
  140. </el-form-item>
  141. </el-col>
  142. </el-row>
  143. </el-col>
  144. <el-col :span="3">
  145. <el-form-item label="检验类别" prop="name">
  146. <el-input v-model="formData.sczl_检验类别" :clearable="true" placeholder="A班" />
  147. </el-form-item>
  148. </el-col>
  149. <el-col :span="3">
  150. <el-form-item label="废品率系数" prop="name">
  151. <el-input v-model="formData.sczl_废品率系数" :clearable="true" placeholder="A班" />
  152. </el-form-item>
  153. </el-col>
  154. </el-row>
  155. <el-row :gutter="20">
  156. <el-col :span="4">
  157. <el-form-item label="计时时数" prop="id">
  158. <el-input v-model="formData.sczl_jsss" :clearable="true" placeholder="2023.12.14" />
  159. </el-form-item>
  160. </el-col>
  161. <el-col :span="6">
  162. <el-row :gutter="20">
  163. <el-col :span="12">
  164. <el-form-item label="冲月定额" prop="id">
  165. <el-input v-model="formData.sczl_冲定额" :clearable="true" placeholder="ZT01733" />
  166. </el-form-item>
  167. </el-col>
  168. </el-row>
  169. </el-col>
  170. </el-row>
  171. <el-row :gutter="1">
  172. <el-col :span="4">
  173. <el-form-item label="流程单号" prop="id">
  174. <el-input v-model="formData.流程单号1" :clearable="true" placeholder="2023.12.14" />
  175. </el-form-item>
  176. </el-col>
  177. <el-col :span="1">
  178. <el-input v-model="formData.流程单号2" :clearable="true" placeholder="ZT01733" />
  179. </el-col>
  180. <el-col :span="1">
  181. <el-input v-model="formData.流程单号3" :clearable="true" placeholder="ZT01733" />
  182. </el-col>
  183. <el-col :span="1">
  184. <el-input v-model="formData.流程单号4" :clearable="true" placeholder="ZT01733" />
  185. </el-col>
  186. <el-col :span="1">
  187. <el-input v-model="formData.流程单号5" :clearable="true" placeholder="ZT01733" />
  188. </el-col>
  189. <el-col :span="1">
  190. <el-input v-model="formData.流程单号6" :clearable="true" placeholder="ZT01733" />
  191. </el-col>
  192. <el-col :span="1">
  193. <el-input v-model="formData.流程单号7" :clearable="true" placeholder="ZT01733" />
  194. </el-col>
  195. <el-col :span="1">
  196. <el-input v-model="formData.流程单号8" :clearable="true" placeholder="ZT01733" />
  197. </el-col>
  198. <el-col :span="1">
  199. <el-input v-model="formData.流程单号9" :clearable="true" placeholder="ZT01733" />
  200. </el-col>
  201. <el-col :span="6">
  202. <el-row :gutter="20">
  203. <el-col :span="12">
  204. <el-form-item label="备注" prop="id">
  205. <el-input v-model="formData.qczl_NumDesc" :clearable="true" placeholder="ZT01733" />
  206. </el-form-item>
  207. </el-col>
  208. </el-row>
  209. </el-col>
  210. </el-row>
  211. <el-row :gutter="10">
  212. <el-col :span="2">
  213. </el-col>
  214. <el-col :span="2">
  215. <span>员工编号</span>
  216. </el-col>
  217. <el-col :span="2">
  218. <span>员工姓名</span>
  219. </el-col>
  220. <el-col :span="2">
  221. <span>箱数</span>
  222. </el-col>
  223. <el-col :span="2">
  224. <span>每箱数量</span>
  225. </el-col>
  226. <el-col :span="2">
  227. <span></span>
  228. </el-col>
  229. <el-col :span="2">
  230. <span>员工编号</span>
  231. </el-col>
  232. <el-col :span="2">
  233. <span>员工姓名</span>
  234. </el-col>
  235. <el-col :span="2">
  236. <span>箱数</span>
  237. </el-col>
  238. <el-col :span="2">
  239. <span>每箱数量</span>
  240. </el-col>
  241. </el-row>
  242. <el-row :gutter="10" style="margin-top: 10px;">
  243. <el-col :span="2">
  244. <span></span>
  245. </el-col>
  246. <el-col :span="2">
  247. <el-input v-model="formData.sczl_bh1" :clearable="true" @keyup.enter.native="getygsubmit($event, '1')" placeholder="ZI00401" />
  248. </el-col>
  249. <el-col :span="2">
  250. <el-input v-model="formData.sczl_bh1_name" :clearable="true" placeholder="瞿春生" />
  251. </el-col>
  252. <el-col :span="2">
  253. <el-input v-model="formData.sczl_cl1" :clearable="true" placeholder="11.0" />
  254. </el-col>
  255. <el-col :span="2">
  256. <el-input v-model="formData.sczl_fp1" :clearable="true" placeholder="打包废纸" />
  257. </el-col>
  258. <el-col :span="2">
  259. </el-col>
  260. <el-col :span="2">
  261. <el-input v-model="formData.sczl_bh7" @keyup.enter.native="getygsubmit($event, '7')" :clearable="true" placeholder="ZI00401" />
  262. </el-col>
  263. <el-col :span="2">
  264. <el-input v-model="formData.sczl_bh7_name" :clearable="true" placeholder="瞿春生" />
  265. </el-col>
  266. <el-col :span="2">
  267. <el-input v-model="formData.sczl_cl7" :clearable="true" placeholder="11.0" />
  268. </el-col>
  269. <el-col :span="2">
  270. <el-input v-model="formData.sczl_fp7" :clearable="true" placeholder="打包废纸" />
  271. </el-col>
  272. </el-row>
  273. <el-row :gutter="10" style="margin-top: 10px;">
  274. <el-col :span="2">
  275. <span></span>
  276. </el-col>
  277. <el-col :span="2">
  278. <el-input v-model="formData.sczl_bh2" @keyup.enter.native="getygsubmit($event, '2')" :clearable="true" placeholder="ZI00401" />
  279. </el-col>
  280. <el-col :span="2">
  281. <el-input v-model="formData.sczl_bh2_name" :clearable="true" placeholder="瞿春生" />
  282. </el-col>
  283. <el-col :span="2">
  284. <el-input v-model="formData.sczl_cl2" :clearable="true" placeholder="11.0" />
  285. </el-col>
  286. <el-col :span="2">
  287. <el-input v-model="formData.sczl_fp2" :clearable="true" placeholder="打包废纸" />
  288. </el-col>
  289. <el-col :span="2">
  290. </el-col>
  291. <el-col :span="2">
  292. <el-input v-model="formData.sczl_bh8" @keyup.enter.native="getygsubmit($event, '8')" :clearable="true" placeholder="ZI00401" />
  293. </el-col>
  294. <el-col :span="2">
  295. <el-input v-model="formData.sczl_bh8_name" :clearable="true" placeholder="瞿春生" />
  296. </el-col>
  297. <el-col :span="2">
  298. <el-input v-model="formData.sczl_cl8" :clearable="true" placeholder="11.0" />
  299. </el-col>
  300. <el-col :span="2">
  301. <el-input v-model="formData.sczl_fp8" :clearable="true" placeholder="打包废纸" />
  302. </el-col>
  303. </el-row>
  304. <el-row :gutter="10" style="margin-top: 10px;">
  305. <el-col :span="2">
  306. <span></span>
  307. </el-col>
  308. <el-col :span="2">
  309. <el-input v-model="formData.sczl_bh3" @keyup.enter.native="getygsubmit($event, '3')" :clearable="true" placeholder="ZI00401" />
  310. </el-col>
  311. <el-col :span="2">
  312. <el-input v-model="formData.sczl_bh3_name" :clearable="true" placeholder="瞿春生" />
  313. </el-col>
  314. <el-col :span="2">
  315. <el-input v-model="formData.sczl_cl3" :clearable="true" placeholder="11.0" />
  316. </el-col>
  317. <el-col :span="2">
  318. <el-input v-model="formData.sczl_fp3" :clearable="true" placeholder="打包废纸" />
  319. </el-col>
  320. <el-col :span="2">
  321. </el-col>
  322. <el-col :span="2">
  323. <el-input v-model="formData.sczl_bh9" @keyup.enter.native="getygsubmit($event, '9')" :clearable="true" placeholder="ZI00401" />
  324. </el-col>
  325. <el-col :span="2">
  326. <el-input v-model="formData.sczl_bh9_name" :clearable="true" placeholder="瞿春生" />
  327. </el-col>
  328. <el-col :span="2">
  329. <el-input v-model="formData.sczl_cl9" :clearable="true" placeholder="11.0" />
  330. </el-col>
  331. <el-col :span="2">
  332. <el-input v-model="formData.sczl_fp9" :clearable="true" placeholder="打包废纸" />
  333. </el-col>
  334. </el-row>
  335. <el-row :gutter="10" style="margin-top: 10px;">
  336. <el-col :span="2">
  337. <span></span>
  338. </el-col>
  339. <el-col :span="2">
  340. <el-input v-model="formData.sczl_bh4" @keyup.enter.native="getygsubmit($event, '4')" :clearable="true" placeholder="ZI00401" />
  341. </el-col>
  342. <el-col :span="2">
  343. <el-input v-model="formData.sczl_bh4_name" :clearable="true" placeholder="瞿春生" />
  344. </el-col>
  345. <el-col :span="2">
  346. <el-input v-model="formData.sczl_cl4" :clearable="true" placeholder="11.0" />
  347. </el-col>
  348. <el-col :span="2">
  349. <el-input v-model="formData.sczl_fp4" :clearable="true" placeholder="打包废纸" />
  350. </el-col>
  351. <el-col :span="2">
  352. </el-col>
  353. <el-col :span="2">
  354. <el-input v-model="formData.sczl_bh10" @keyup.enter.native="getygsubmit($event, '10')" :clearable="true" placeholder="ZI00401" />
  355. </el-col>
  356. <el-col :span="2">
  357. <el-input v-model="formData.sczl_bh10_name" :clearable="true" placeholder="瞿春生" />
  358. </el-col>
  359. <el-col :span="2">
  360. <el-input v-model="formData.sczl_cl10" :clearable="true" placeholder="11.0" />
  361. </el-col>
  362. <el-col :span="2">
  363. <el-input v-model="formData.sczl_fp10" :clearable="true" placeholder="打包废纸" />
  364. </el-col>
  365. </el-row>
  366. <el-row :gutter="10" style="margin-top: 10px;">
  367. <el-col :span="2">
  368. <span></span>
  369. </el-col>
  370. <el-col :span="2">
  371. <el-input v-model="formData.sczl_bh5" @keyup.enter.native="getygsubmit($event, '5')" :clearable="true" placeholder="ZI00401" />
  372. </el-col>
  373. <el-col :span="2">
  374. <el-input v-model="formData.sczl_bh5_name" :clearable="true" placeholder="瞿春生" />
  375. </el-col>
  376. <el-col :span="2">
  377. <el-input v-model="formData.sczl_cl5" :clearable="true" placeholder="11.0" />
  378. </el-col>
  379. <el-col :span="2">
  380. <el-input v-model="formData.sczl_fp5" :clearable="true" placeholder="打包废纸" />
  381. </el-col>
  382. <el-col :span="2">
  383. </el-col>
  384. <el-col :span="2">
  385. <el-input v-model="formData.sczl_bh11" @keyup.enter.native="getygsubmit($event, '11')" :clearable="true" placeholder="ZI00401" />
  386. </el-col>
  387. <el-col :span="2">
  388. <el-input v-model="formData.sczl_bh11_name" :clearable="true" placeholder="瞿春生" />
  389. </el-col>
  390. <el-col :span="2">
  391. <el-input v-model="formData.sczl_cl11" :clearable="true" placeholder="11.0" />
  392. </el-col>
  393. <el-col :span="2">
  394. <el-input v-model="formData.sczl_fp11" :clearable="true" placeholder="打包废纸" />
  395. </el-col>
  396. </el-row>
  397. <el-row :gutter="10" style="margin-top: 10px;">
  398. <el-col :span="2">
  399. <span></span>
  400. </el-col>
  401. <el-col :span="2">
  402. <el-input v-model="formData.sczl_bh6" @keyup.enter.native="getygsubmit($event, '6')" :clearable="true" placeholder="ZI00401" />
  403. </el-col>
  404. <el-col :span="2">
  405. <el-input v-model="formData.sczl_bh6_name" :clearable="true" placeholder="瞿春生" />
  406. </el-col>
  407. <el-col :span="2">
  408. <el-input v-model="formData.sczl_cl6" :clearable="true" placeholder="11.0" />
  409. </el-col>
  410. <el-col :span="2">
  411. <el-input v-model="formData.sczl_fp6" :clearable="true" placeholder="打包废纸" />
  412. </el-col>
  413. <el-col :span="2">
  414. </el-col>
  415. <el-col :span="2">
  416. <el-input v-model="formData.sczl_bh12" @keyup.enter.native="getygsubmit($event, '12')" :clearable="true" placeholder="ZI00401" />
  417. </el-col>
  418. <el-col :span="2">
  419. <el-input v-model="formData.sczl_bh12_name" :clearable="true" placeholder="瞿春生" />
  420. </el-col>
  421. <el-col :span="2">
  422. <el-input v-model="formData.sczl_cl12" :clearable="true" placeholder="11.0" />
  423. </el-col>
  424. <el-col :span="2">
  425. <el-input v-model="formData.sczl_fp12" :clearable="true" placeholder="打包废纸" />
  426. </el-col>
  427. </el-row>
  428. <el-row :gutter="20">
  429. <el-col :span="20">
  430. <el-form-item label="其他备注" prop="id">
  431. <el-input v-model="formData.sczl_desc" :clearable="true" placeholder="2023.12.14" />
  432. </el-form-item>
  433. </el-col>
  434. </el-row>
  435. </el-form>
  436. <el-dialog
  437. v-model="dialogSelectVisible"
  438. title="选择"
  439. destroy-on-close
  440. width="600px"
  441. >
  442. <el-table
  443. tooltip-effect="dark"
  444. :data="selectData"
  445. row-key="ID"
  446. highlight-current-row="true"
  447. border
  448. style="width:100%"
  449. @row-dblclick="handleSelectClick"
  450. >
  451. <el-table-column
  452. prop="Gd_cpmc"
  453. label="印件名称"
  454. width="340"
  455. />
  456. <el-table-column
  457. prop="jyGx"
  458. label="检验工序"
  459. width="150"
  460. />
  461. <el-table-column
  462. prop="Gy0_gxmc"
  463. label="工序名称"
  464. width="150"
  465. />
  466. </el-table>
  467. </el-dialog>
  468. <template #footer>
  469. <div class="dialog-footer">
  470. <el-button @click="closeDialog">取 消</el-button>
  471. <el-button type="primary" @click="enterDialog">确 定</el-button>
  472. </div>
  473. </template>
  474. </el-dialog>
  475. <el-dialog
  476. v-model="GetDedhVisible"
  477. title="选择"
  478. destroy-on-close
  479. width="600px"
  480. >
  481. <el-aside width="250px">
  482. <div class="JKWTree-tree">
  483. <el-tree :data="GetDedhtreeData" :props="defaultProps" highlight-current="true"
  484. @node-click="GetDedhhandleNodeClick" @node-dblclick="handleNodeDoubleClick"></el-tree>
  485. </div>
  486. </el-aside>
  487. </el-dialog>
  488. </el-main>
  489. </el-container>
  490. </el-container>
  491. </div>
  492. </template>
  493. <script setup>
  494. import {
  495. getDateList,
  496. getInspectCount,
  497. shougonglocate,
  498. shougonggetInfo,
  499. shougonggetGxMc,
  500. shougonggetDedh,
  501. shougonggetScrapFactor,
  502. shougongedit,
  503. shougongdel,
  504. getYg,
  505. getInspectCountByGdbh
  506. } from '@/api/jixiaoguanli/jitairibaobiao'
  507. // 全量引入格式化工具 请按需保留
  508. import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
  509. import { ElMessage, ElMessageBox } from 'element-plus'
  510. import { Search, Refresh, Download } from '@element-plus/icons-vue'
  511. import { ref, reactive, onMounted, onBeforeMount } from 'vue'
  512. import { getPackingSideTable, getPackingTable } from '@/api/mes_api_gty/myapi'
  513. defineOptions({
  514. name: '06-packingDocuments'
  515. })
  516. // 侧边栏数据请求
  517. const treeData = reactive([]);
  518. const getTabdata = async () => {
  519. //接口调用函数
  520. const response = await getInspectCount();
  521. console.log(response)
  522. const transformedData = response.data.map(item => ({
  523. label: `${item.date.replace(/-/g, '.')}【单据数: ${item.counts}张】`,
  524. children: item.sys.map(sysItem => ({
  525. label: `${sysItem.sys_id} 【记录数: ${sysItem.count}张】`,
  526. params: {
  527. date: item.date.replace(/-/g, '.'),
  528. sys_id: sysItem.sys_id,
  529. total: sysItem.count,
  530. },
  531. })),
  532. }));
  533. treeData.splice(0, treeData.length, ...transformedData);
  534. }
  535. getTabdata();
  536. // 自动化生成的字典(可能为空)以及字段
  537. const formData = ref({
  538. sczl_rq: '',
  539. sczl_bzdh: '',
  540. sczl_bh0: '',
  541. sczl_bh0_name: '',
  542. sczl_cl0: '',
  543. sczl_fp0: '',
  544. sczl_gdbh: '',
  545. sczl_yjgx: '',
  546. sczl_gxmc: '',
  547. yj_yjmc: '',
  548. sczl_cl: '',
  549. sczl_dedh: '',
  550. sczl_检验类别: '',
  551. sczl_废品率系数: '',
  552. sczl_jsss: '',
  553. sczl_冲定额: '',
  554. 流程单号1: '',
  555. 流程单号2: '',
  556. 流程单号3: '',
  557. 流程单号4: '',
  558. 流程单号5: '',
  559. 流程单号6: '',
  560. 流程单号7: '',
  561. 流程单号8: '',
  562. 流程单号9: '',
  563. qczl_NumDesc: '',
  564. sczl_desc: '',
  565. sczl_bh1: '',
  566. sczl_bh2: '',
  567. sczl_bh3:'',
  568. sczl_bh4: '',
  569. sczl_bh5: '',
  570. sczl_bh6: '',
  571. sczl_bh7: '',
  572. sczl_bh8: '',
  573. sczl_bh9: '',
  574. sczl_bh10: '',
  575. sczl_bh11: '',
  576. sczl_bh12: '',
  577. sczl_bh1_name: '',
  578. sczl_bh2_name: '',
  579. sczl_bh3_name: '',
  580. sczl_bh4_name: '',
  581. sczl_bh5_name: '',
  582. sczl_bh6_name: '',
  583. sczl_bh7_name: '',
  584. sczl_bh8_name: '',
  585. sczl_bh9_name: '',
  586. sczl_bh10_name: '',
  587. sczl_bh11_name: '',
  588. sczl_bh12_name: '',
  589. sczl_cl1: '',
  590. sczl_cl2: '',
  591. sczl_cl3: '',
  592. sczl_cl4: '',
  593. sczl_cl5: '',
  594. sczl_cl6: '',
  595. sczl_cl7: '',
  596. sczl_cl8: '',
  597. sczl_cl9: '',
  598. sczl_cl10: '',
  599. sczl_cl11:'',
  600. sczl_cl12: '',
  601. sczl_fp1: '',
  602. sczl_fp2: '',
  603. sczl_fp3: '',
  604. sczl_fp4: '',
  605. sczl_fp5: '',
  606. sczl_fp6: '',
  607. sczl_fp7: '',
  608. sczl_fp8: '',
  609. sczl_fp9: '',
  610. sczl_fp10: '',
  611. sczl_fp11: '',
  612. sczl_fp12: '',
  613. })
  614. // 验证规则
  615. const rule = reactive({
  616. })
  617. const elFormRef = ref()
  618. const elSearchFormRef = ref()
  619. // =========== 表格控制部分 ===========
  620. const tableData = reactive([])
  621. const detailData = reactive([])
  622. const total = ref(0)
  623. const page = ref(1)
  624. const limit = ref(10)
  625. const searchInfo = ref('')
  626. const params = {
  627. type: '',
  628. date: '',
  629. sys_id: '',
  630. gdbh: '',
  631. }
  632. // 分页设置
  633. const handleSizeChange = (val) => {
  634. switch (params.type) {
  635. case 'getTableData':
  636. getTableData()
  637. break
  638. case 'getLocateTable':
  639. GetLocate()
  640. break
  641. default:
  642. break
  643. }
  644. }
  645. // 页面跳转
  646. const handleCurrentChange = (val) => {
  647. switch (params.type) {
  648. case 'getTableData':
  649. getTableData()
  650. break
  651. case 'getLocateTable':
  652. GetLocate()
  653. break
  654. default:
  655. break
  656. }
  657. }
  658. const getTableData = async() => {
  659. // const response = await getDateList(params);
  660. // console.log(response)
  661. // if (response.code === 0) {
  662. // const processedData = response.data.data.map(item => {
  663. // return {
  664. // ...item,
  665. // combinedProp: item.sczl_gdbh + '--'+item.yj_yjmc,
  666. // combinedProp2: item.sczl_yjgx + '-'+item.sczl_gxmc
  667. // };
  668. // });
  669. // tableData.splice(0, tableData.length, ...processedData);
  670. // }
  671. const response = await getDateList({
  672. date: params.date, sys_id: params.sys_id,
  673. page: page.value.toString(), limit: limit.value.toString(),
  674. })
  675. if (response.code === 0) {
  676. console.log(response)
  677. const processedData = response.data.data.map(item => {
  678. return {
  679. ...item,
  680. combinedProp: item.sczl_gdbh + '--'+item.yj_yjmc,
  681. combinedProp2: item.sczl_yjgx + '-'+item.sczl_gxmc
  682. };
  683. });
  684. tableData.splice(0, tableData.length, ...processedData);
  685. }
  686. }
  687. const handleNodeClick = (node,check) => {
  688. //存放当前节点的nodeId
  689. if (node.params) {
  690. params.date = node.params.date.replace(/\./g, '-');
  691. params.sys_id = node.params.sys_id;
  692. total.value = node.params.total;
  693. params.type = 'getTableData'
  694. page.value = 1
  695. getTableData();
  696. }
  697. }
  698. //定位
  699. const GetLocate = async () => {
  700. const response = await shougonglocate({
  701. gdbh: params.gdbh,
  702. page: page.value.toString(), limit: limit.value.toString(),
  703. })
  704. console.log(response)
  705. if (response.code === 0) {
  706. const processedData = response.data.rows.map(item => {
  707. return {
  708. ...item,
  709. combinedProp: item.sczl_gdbh + '--'+item.yj_yjmc,
  710. combinedProp2: item.sczl_yjgx + '-'+item.sczl_gxmc
  711. };
  712. });
  713. total.value = response.data.total
  714. tableData.splice(0, tableData.length, ...processedData);
  715. }
  716. }
  717. let positionvalue=ref()
  718. // 搜索
  719. function onSearch() {
  720. params.gdbh = positionvalue.value
  721. params.type = 'getLocateTable'
  722. page.value = 1
  723. GetLocate()
  724. }
  725. //获取详细信息
  726. const GetInfo = async (value) => {
  727. const response = await shougonggetInfo({UniqId:value});
  728. console.log(response)
  729. if (response.code === 0) {
  730. formData.value=response.data;
  731. }
  732. }
  733. //获取员工信息
  734. const GetYg = async (value,inputName) => {
  735. const response = await getYg({sczl_bh:value});
  736. console.log(response)
  737. if (response.code === 0) {
  738. console.log(response.data.ygxm)
  739. let Bname = 'sczl_bh' + inputName+'_name';
  740. formData.value[Bname]=response.data.ygxm
  741. // console.log(formData.value[Bname])
  742. }
  743. }
  744. //员工编号回车事件
  745. const getygsubmit = (event, inputName) => {
  746. console.log(inputName)
  747. let combinedString = 'sczl_bh' + inputName;
  748. console.log(combinedString)
  749. // let variableName = 'sczl_gdbh'+inputName;
  750. let variableValue = eval('formData.value.' + combinedString);
  751. console.log(variableValue)
  752. GetYg(variableValue,inputName)
  753. }
  754. //工单编号回车事件
  755. const getGxMcsubmit = async() => {
  756. console.log(formData.value.sczl_gdbh)
  757. GetGxMc()
  758. }
  759. const dialogSelectVisible = ref(false)
  760. const selectData = reactive([])
  761. //查询印件工序及产品名称
  762. const GetGxMc = async () => {
  763. console.log(formData.value.sczl_gdbh)
  764. const response = await shougonggetGxMc({gdbh:formData.value.sczl_gdbh});
  765. console.log(response)
  766. if (response.code === 0) {
  767. if(response.data.length==1){
  768. const { Gd_cpmc, Gy0_yjno, Gy0_gxh, Gy0_gxmc,jyGx} = response.data[0]
  769. formData.value.yj_yjmc=Gd_cpmc
  770. formData.value.sczl_gxmc=Gy0_gxmc
  771. formData.value.sczl_yjgx=jyGx
  772. console.log(Gy0_gxmc)
  773. console.log(formData.value.sczl_gxmc)
  774. }else{
  775. selectData.splice(0, selectData.length, ...response.data)
  776. dialogSelectVisible.value=true
  777. }
  778. // console.log(response.data.ygxm)
  779. // let Bname = 'sczl_bh' + inputName+'_name';
  780. // formData.value[Bname]=response.data.ygxm
  781. // // console.log(formData.value[Bname])
  782. // console.log(response.data.length)
  783. }
  784. }
  785. // 处理选择框
  786. const handleSelectClick = (row, column, event) => {
  787. const { Gd_cpmc, Gy0_yjno, Gy0_gxh, Gy0_gxmc,jyGx } = row
  788. formData.value.yj_yjmc=Gd_cpmc
  789. formData.value.sczl_gxmc=Gy0_gxmc
  790. formData.value.sczl_yjgx=jyGx
  791. dialogSelectVisible.value = false
  792. }
  793. //获取定额代号
  794. const GetDedh = async (value) => {
  795. const response = await shougonggetDedh();
  796. console.log(response)
  797. const treeData = {};
  798. if(response.code==0){
  799. // 遍历接口返回的数据,构建父子关系
  800. response.data.bh_mc.forEach(item => {
  801. if (item.sys_bh === response.data.sys_bh) {
  802. if (!treeData[item.sys_bh]) {
  803. treeData[item.sys_bh] = { label: item.sys_bh, children: [] };
  804. console.log('2222')
  805. }
  806. treeData[item.sys_bh+sys_mc].children.push({ label: item.sys_bh + item.sys_mc, params: { sys_bh: item.sys_bh } });
  807. console.log('1333')
  808. } else if (item.sys_bh.startsWith(response.data.sys_bh)) {
  809. if (!treeData[response.data.sys_bh]) {
  810. treeData[response.data.sys_bh] = { label: response.data.sys_bh+response.data.sys_mc, children: [] };
  811. console.log()
  812. }
  813. treeData[response.data.sys_bh].children.push({ label: item.sys_bh + item.sys_mc, params: { sys_bh: item.sys_bh } });
  814. console.log('1111')
  815. }
  816. });
  817. // 将父子关系转换为数组
  818. const transformedData = Object.values(treeData);
  819. console.log(transformedData)
  820. GetDedhtreeData = transformedData;
  821. // const treeData = fillDataToTree(response);
  822. // console.log(treeData)
  823. // // GetMachineDedhtreeData=treeData
  824. // GetMachineDedhtreeData.splice(0, GetMachineDedhtreeData.length, ...treeData);
  825. // const GetMachineDedhtreeData=
  826. GetDedhVisible.value=true
  827. console.log(formData)
  828. }
  829. }
  830. //定额代号树形结构单机
  831. const GetDedhhandleNodeClick = (node,check,nodeData) => {
  832. //存放当前节点的nodeId
  833. //存放当前节点的nodeId
  834. if (node.params) {
  835. // 点击的是父节点
  836. // 执行相应的父节点单击事件处理逻辑
  837. // console.log(node.params)
  838. formData.value.sczl_dedh=node.params.sys_bh
  839. // console.log(formData.value.sczl_dedh)
  840. GetDedhVisible.value=false
  841. console.log(node.params)
  842. } else {
  843. // 点击的是子节点
  844. // 执行相应的子节点单击事件处理逻辑
  845. // console.log('11111');
  846. // console.log(node.params)
  847. // 例如,您可以在这里执行子节点单击事件触发的操作
  848. }
  849. }
  850. let GetDedhtreeData = reactive([]);
  851. const GetDedhVisible = ref(false)
  852. //定额代号回车事件
  853. const getDedhsubmit = () => {
  854. GetDedh()
  855. }
  856. //刷新废品率系数
  857. const GetScrapFactor = async (value) => {
  858. const response = await shougonggetScrapFactor(value);
  859. if(response.code==0){
  860. console.log(response.data.num)
  861. const rowIndex = tableData.findIndex(row => row.UniqId === lastCellValue);
  862. console.log(rowIndex)
  863. tableData[rowIndex].sczl_废品率系数 = response.data.num;
  864. }
  865. // console.log(response)
  866. // const rowIndex = tableData.findIndex(row => row.UniqId === 123);
  867. }
  868. const ScrapFactor={
  869. gdbh:'',
  870. yjno:'',
  871. gxh:'',
  872. type:'',
  873. }
  874. // 刷新废品率系数
  875. function onRefresh() {
  876. GetScrapFactor(ScrapFactor)
  877. }
  878. // 更新数据
  879. const updateDetailData = async() => {
  880. const restoredData = {
  881. UniqId: lastCellValue,
  882. sczl_rq: formData.value.sczl_rq,
  883. sczl_bzdh: formData.value.sczl_bzdh,
  884. sczl_bh0: formData.value.sczl_bh0,
  885. sczl_cl0: formData.value.sczl_cl0,
  886. sczl_fp0: formData.value.sczl_fp0,
  887. sczl_gdbh: formData.value.sczl_gdbh,
  888. sczl_yjgx: formData.value.sczl_yjgx,
  889. sczl_gxmc: formData.value.sczl_gxmc,
  890. sczl_cl:formData.value.sczl_cl,
  891. sczl_dedh: formData.value.sczl_dedh,
  892. sczl_检验类别: formData.value.sczl_检验类别,
  893. sczl_废品率系数: formData.value.sczl_废品率系数,
  894. sczl_jsss: formData.value.sczl_jsss,
  895. sczl_冲定额: formData.value.sczl_冲定额,
  896. qczl_NumDesc:formData.value.流程单号1,
  897. qczl_NumDesc1: formData.value.流程单号2,
  898. qczl_NumDesc12: formData.value.流程单号3,
  899. qczl_NumDesc13: formData.value.流程单号4,
  900. qczl_NumDesc14: formData.value.流程单号5,
  901. qczl_NumDesc15: formData.value.流程单号6,
  902. qczl_NumDesc16: formData.value.流程单号7,
  903. qczl_NumDesc17: formData.value.流程单号8,
  904. qczl_NumDesc18: formData.value.流程单号9,
  905. sczl_desc: formData.value.sczl_desc,
  906. sczl_bh1: formData.value.sczl_bh1,
  907. sczl_bh2: formData.value.sczl_bh2,
  908. sczl_bh3:formData.value.sczl_bh3,
  909. sczl_bh4: formData.value.sczl_bh4,
  910. sczl_bh5: formData.value.sczl_bh5,
  911. sczl_bh6: formData.value.sczl_bh6,
  912. sczl_bh7: formData.value.sczl_bh7,
  913. sczl_bh8: formData.value.sczl_bh8,
  914. sczl_bh9: formData.value.sczl_bh9,
  915. sczl_bh10: formData.value.sczl_bh10,
  916. sczl_bh11: formData.value.sczl_bh11,
  917. sczl_bh12: formData.value.sczl_bh12,
  918. sczl_cl1: formData.value.sczl_cl1,
  919. sczl_cl2: formData.value.sczl_cl2,
  920. sczl_cl3: formData.value.sczl_cl3,
  921. sczl_cl4: formData.value.sczl_cl4,
  922. sczl_cl5: formData.value.sczl_cl5,
  923. sczl_cl6: formData.value.sczl_cl6,
  924. sczl_cl7: formData.value.sczl_cl7,
  925. sczl_cl8: formData.value.sczl_cl8,
  926. sczl_cl9: formData.value.sczl_cl9,
  927. sczl_cl10: formData.value.sczl_cl10,
  928. sczl_cl11:formData.value.sczl_cl11,
  929. sczl_cl12: formData.value.sczl_cl12,
  930. sczl_fp1: formData.value.sczl_fp1,
  931. sczl_fp2: formData.value.sczl_fp2,
  932. sczl_fp3: formData.value.sczl_fp3,
  933. sczl_fp4: formData.value.sczl_fp4,
  934. sczl_fp5: formData.value.sczl_fp5,
  935. sczl_fp6: formData.value.sczl_fp6,
  936. sczl_fp7: formData.value.sczl_fp7,
  937. sczl_fp8: formData.value.sczl_fp8,
  938. sczl_fp9: formData.value.sczl_fp9,
  939. sczl_fp10: formData.value.sczl_fp10,
  940. sczl_fp11: formData.value.sczl_fp11,
  941. sczl_fp12: formData.value.sczl_fp12,
  942. }
  943. // detailData.table.forEach((item, index, array) => {
  944. // const num = index + 1
  945. // restoredData[`sczl_gdbh${num}`] = item.sczl_gdbh
  946. // restoredData[`sczl_yjGx${num}`] = item.sczl_yjGx
  947. // restoredData[`sczl_gxmc${num}`] = item.sczl_gxmc
  948. // // restoredData[`Gd_cpmc${num}`] = item.Gd_cpmc
  949. // restoredData[`sczl_cl${num}`] = item.sczl_cl
  950. // restoredData[`sczl_PgCl${num}`] = item.sczl_PgCl
  951. // restoredData[`sczl_clAdd${num}`] = item.sczl_clAdd
  952. // })
  953. console.log(restoredData)
  954. console.log(lastCellValue)
  955. formData.value.UniqId=lastCellValue
  956. console.log(formData)
  957. restoredData.UniqId='5'
  958. const response = await shougongedit(restoredData);
  959. // console.log(FormData)
  960. console.log(response)
  961. }
  962. // 删除
  963. function onDel() {
  964. Del()
  965. }
  966. //删除
  967. const Del = async () => {
  968. const response = await shougongdel({UniqId:lastCellValue});
  969. if (response.code === 0) {
  970. console.log(333)
  971. }
  972. getTableData()
  973. }
  974. // 按工单显示
  975. function onCountByGdbh() {
  976. CountByGdbh()
  977. }
  978. //按工单显示
  979. const CountByGdbh = async () => {
  980. const response = await getInspectCountByGdbh();
  981. // console.log(response)
  982. if (response.code === 0) {
  983. console.log(response)
  984. const transformedData = response.data.map(item => ({
  985. label: `${item.sczl_gdbh+item.cpmc}`,
  986. children: item.sys.map(sysItem => ({
  987. label: `${sysItem.sys_id} 【记录数: ${sysItem.count}张】`,
  988. params: {
  989. date: item.sczl_gdbh,
  990. sys_id: sysItem.sys_id,
  991. total: sysItem.count,
  992. },
  993. })),
  994. }));
  995. treeData.splice(0, treeData.length, ...transformedData);
  996. }
  997. getTableData()
  998. }
  999. // ============== 表格控制部分结束 ===============
  1000. // 获取需要的字典 可能为空 按需保留
  1001. const setOptions = async () => {
  1002. }
  1003. // 获取需要的字典 可能为空 按需保留
  1004. setOptions()
  1005. // 多选数据
  1006. const multipleSelection = ref([])
  1007. // 多选
  1008. const handleSelectionChange = (val) => {
  1009. if(val.length>0){
  1010. multipleSelection.value = val
  1011. const lenth=val.length
  1012. ScrapFactor.gdbh=val[lenth-1].combinedProp.split('-')[0];
  1013. const parts = val[lenth-1].combinedProp2.split('-')
  1014. ScrapFactor.yjno=parts[0];
  1015. ScrapFactor.gxh=parts[1];
  1016. // ScrapFactor.type=val[lenth-1].sczl_检验类别
  1017. ScrapFactor.type='正品板'
  1018. console.log(ScrapFactor)
  1019. lastCellValue=val[lenth-1].UniqId
  1020. console.log(ScrapFactor)
  1021. val.splice(0, val.length); // 清空 val 数组
  1022. console.log(lastCellValue)
  1023. }
  1024. }
  1025. // 批量删除控制标记
  1026. const deleteVisible = ref(false)
  1027. // 多选删除
  1028. const onDelete = async () => {
  1029. const ids = []
  1030. if (multipleSelection.value.length === 0) {
  1031. ElMessage({
  1032. type: 'warning',
  1033. message: '请选择要删除的数据'
  1034. })
  1035. return
  1036. }
  1037. multipleSelection.value &&
  1038. multipleSelection.value.map(item => {
  1039. ids.push(item.ID)
  1040. })
  1041. const res = await deleteCompanyByIds({ ids })
  1042. if (res.code === 0) {
  1043. ElMessage({
  1044. type: 'success',
  1045. message: '删除成功'
  1046. })
  1047. if (tableData.value.length === ids.length && page.value > 1) {
  1048. page.value--
  1049. }
  1050. deleteVisible.value = false
  1051. getTableData()
  1052. }
  1053. }
  1054. // 行为控制标记(弹窗内部需要增还是改)
  1055. const type = ref('')
  1056. // 更新行
  1057. const updateCompanyFunc = async (row) => {
  1058. const res = await findCompany({ ID: row.ID })
  1059. type.value = 'update'
  1060. if (res.code === 0) {
  1061. formData.value = res.data.recompany
  1062. dialogFormVisible.value = true
  1063. }
  1064. }
  1065. // 弹窗控制标记
  1066. const dialogFormVisible = ref(false)
  1067. // 打开弹窗
  1068. const openDialog = () => {
  1069. type.value = 'create'
  1070. dialogFormVisible.value = true
  1071. }
  1072. // 关闭弹窗
  1073. const closeDialog = () => {
  1074. dialogFormVisible.value = false
  1075. formData.value = {
  1076. address: '',
  1077. image: '',
  1078. name: '',
  1079. }
  1080. }
  1081. // 弹窗确定
  1082. const enterDialog = async () => {
  1083. // elFormRef.value?.validate(async (valid) => {
  1084. // if (!valid) return
  1085. // let res
  1086. // switch (type.value) {
  1087. // case 'create':
  1088. // res = await createCompany(formData.value)
  1089. // break
  1090. // case 'update':
  1091. // res = await updateCompany(formData.value)
  1092. // break
  1093. // default:
  1094. // res = await createCompany(formData.value)
  1095. // break
  1096. // }
  1097. // if (res.code === 0) {
  1098. // ElMessage({
  1099. // type: 'success',
  1100. // message: '创建/更改成功'
  1101. // })
  1102. // closeDialog()
  1103. // getTableData()
  1104. // }
  1105. // })
  1106. updateDetailData()
  1107. }
  1108. let table=ref(5);
  1109. let lastCellValue=ref()
  1110. // 双击表格操作
  1111. function doubleClick(row, column, event) {
  1112. type.value = 'update';
  1113. lastCellValue= row['UniqId'];
  1114. console.log(lastCellValue)
  1115. table.value=lastCellValue
  1116. dialogFormVisible.value = true
  1117. // dialogSelectVisible.value = true
  1118. GetInfo(table.value)
  1119. // dialogFormVisible.value = true
  1120. }
  1121. // 导出excel
  1122. function exportExcel() {
  1123. console.log('导出到excel');
  1124. }
  1125. // 生命周期钩子
  1126. onMounted(async () => {
  1127. });
  1128. </script>
  1129. <style>
  1130. .JKWTree-container {
  1131. display: flex;
  1132. }
  1133. .JKWTree-tree {
  1134. width: 300px;
  1135. background-color: #fff;
  1136. padding: 10px;
  1137. margin-right: 20px;
  1138. }
  1139. .JKWTree-tree h3 {
  1140. font-size: 15px;
  1141. font-weight: 700;
  1142. margin: 10px 0;
  1143. }
  1144. .JKWTree-content {
  1145. flex: 1;
  1146. }
  1147. /* 选中某行时的背景色*/
  1148. .el-table__body tr.current-row>td {
  1149. background: #ff80ff !important;
  1150. /* 背景颜色 */
  1151. }
  1152. </style>