Manualdocuments.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  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" @click="onAdd">新增</el-button>
  22. <el-button type="primary" @click="onRefresh">刷新质检系数</el-button>
  23. <el-button type="primary" @click="onCountByGdbh">按工单显示</el-button>
  24. <el-button type="primary" @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="" />
  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="" />
  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="" />
  83. </el-col>
  84. <el-col :span="12">
  85. <el-input v-model="formData.sczl_bh0_name" :clearable="true" placeholder="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  175. </el-form-item>
  176. </el-col>
  177. <el-col :span="1">
  178. <el-input v-model="formData.流程单号2" :clearable="true" placeholder="" />
  179. </el-col>
  180. <el-col :span="1">
  181. <el-input v-model="formData.流程单号3" :clearable="true" placeholder="" />
  182. </el-col>
  183. <el-col :span="1">
  184. <el-input v-model="formData.流程单号4" :clearable="true" placeholder="" />
  185. </el-col>
  186. <el-col :span="1">
  187. <el-input v-model="formData.流程单号5" :clearable="true" placeholder="" />
  188. </el-col>
  189. <el-col :span="1">
  190. <el-input v-model="formData.流程单号6" :clearable="true" placeholder="" />
  191. </el-col>
  192. <el-col :span="1">
  193. <el-input v-model="formData.流程单号7" :clearable="true" placeholder="" />
  194. </el-col>
  195. <el-col :span="1">
  196. <el-input v-model="formData.流程单号8" :clearable="true" placeholder="" />
  197. </el-col>
  198. <el-col :span="1">
  199. <el-input v-model="formData.流程单号9" :clearable="true" placeholder="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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="" />
  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. inspectadd
  507. } from '@/api/jixiaoguanli/jitairibaobiao'
  508. // 全量引入格式化工具 请按需保留
  509. import { getDictFunc, formatDate, formatBoolean, filterDict, ReturnArrImg, onDownloadFile } from '@/utils/format'
  510. import { ElMessage, ElMessageBox } from 'element-plus'
  511. import { Search, Refresh, Download } from '@element-plus/icons-vue'
  512. import { ref, reactive, onMounted, onBeforeMount } from 'vue'
  513. import { getPackingSideTable, getPackingTable } from '@/api/mes_api_gty/myapi'
  514. defineOptions({
  515. name: '06-packingDocuments'
  516. })
  517. // 侧边栏数据请求
  518. const treeData = reactive([]);
  519. const getTabdata = async () => {
  520. //接口调用函数
  521. const response = await getInspectCount();
  522. console.log(response)
  523. const transformedData = response.data.map(item => ({
  524. label: `${item.date.replace(/-/g, '.')}【单据数: ${item.counts}张】`,
  525. children: item.sys.map(sysItem => ({
  526. label: `${sysItem.sys_id} 【记录数: ${sysItem.count}张】`,
  527. params: {
  528. date: item.date.replace(/-/g, '.'),
  529. sys_id: sysItem.sys_id,
  530. total: sysItem.count,
  531. },
  532. })),
  533. }));
  534. treeData.splice(0, treeData.length, ...transformedData);
  535. }
  536. getTabdata();
  537. // 自动化生成的字典(可能为空)以及字段
  538. const formData = ref({
  539. sczl_rq: '',
  540. sczl_bzdh: '',
  541. sczl_bh0: '',
  542. sczl_bh0_name: '',
  543. sczl_cl0: '',
  544. sczl_fp0: '',
  545. sczl_gdbh: '',
  546. sczl_yjgx: '',
  547. sczl_gxmc: '',
  548. yj_yjmc: '',
  549. sczl_cl: '',
  550. sczl_dedh: '',
  551. sczl_检验类别: '',
  552. sczl_废品率系数: '',
  553. sczl_jsss: '',
  554. sczl_冲定额: '',
  555. 流程单号1: '',
  556. 流程单号2: '',
  557. 流程单号3: '',
  558. 流程单号4: '',
  559. 流程单号5: '',
  560. 流程单号6: '',
  561. 流程单号7: '',
  562. 流程单号8: '',
  563. 流程单号9: '',
  564. qczl_NumDesc: '',
  565. sczl_desc: '',
  566. sczl_bh1: '',
  567. sczl_bh2: '',
  568. sczl_bh3:'',
  569. sczl_bh4: '',
  570. sczl_bh5: '',
  571. sczl_bh6: '',
  572. sczl_bh7: '',
  573. sczl_bh8: '',
  574. sczl_bh9: '',
  575. sczl_bh10: '',
  576. sczl_bh11: '',
  577. sczl_bh12: '',
  578. sczl_bh1_name: '',
  579. sczl_bh2_name: '',
  580. sczl_bh3_name: '',
  581. sczl_bh4_name: '',
  582. sczl_bh5_name: '',
  583. sczl_bh6_name: '',
  584. sczl_bh7_name: '',
  585. sczl_bh8_name: '',
  586. sczl_bh9_name: '',
  587. sczl_bh10_name: '',
  588. sczl_bh11_name: '',
  589. sczl_bh12_name: '',
  590. sczl_cl1: '',
  591. sczl_cl2: '',
  592. sczl_cl3: '',
  593. sczl_cl4: '',
  594. sczl_cl5: '',
  595. sczl_cl6: '',
  596. sczl_cl7: '',
  597. sczl_cl8: '',
  598. sczl_cl9: '',
  599. sczl_cl10: '',
  600. sczl_cl11:'',
  601. sczl_cl12: '',
  602. sczl_fp1: '',
  603. sczl_fp2: '',
  604. sczl_fp3: '',
  605. sczl_fp4: '',
  606. sczl_fp5: '',
  607. sczl_fp6: '',
  608. sczl_fp7: '',
  609. sczl_fp8: '',
  610. sczl_fp9: '',
  611. sczl_fp10: '',
  612. sczl_fp11: '',
  613. sczl_fp12: '',
  614. })
  615. // 验证规则
  616. const rule = reactive({
  617. })
  618. const elFormRef = ref()
  619. const elSearchFormRef = ref()
  620. // =========== 表格控制部分 ===========
  621. const tableData = reactive([])
  622. const detailData = reactive([])
  623. const total = ref(0)
  624. const page = ref(1)
  625. const limit = ref(10)
  626. const searchInfo = ref('')
  627. const params = {
  628. type: '',
  629. date: '',
  630. sys_id: '',
  631. gdbh: '',
  632. }
  633. // 分页设置
  634. const handleSizeChange = (val) => {
  635. switch (params.type) {
  636. case 'getTableData':
  637. getTableData()
  638. break
  639. case 'getLocateTable':
  640. GetLocate()
  641. break
  642. default:
  643. break
  644. }
  645. }
  646. // 页面跳转
  647. const handleCurrentChange = (val) => {
  648. switch (params.type) {
  649. case 'getTableData':
  650. getTableData()
  651. break
  652. case 'getLocateTable':
  653. GetLocate()
  654. break
  655. default:
  656. break
  657. }
  658. }
  659. const getTableData = async() => {
  660. // const response = await getDateList(params);
  661. // console.log(response)
  662. // if (response.code === 0) {
  663. // const processedData = response.data.data.map(item => {
  664. // return {
  665. // ...item,
  666. // combinedProp: item.sczl_gdbh + '--'+item.yj_yjmc,
  667. // combinedProp2: item.sczl_yjgx + '-'+item.sczl_gxmc
  668. // };
  669. // });
  670. // tableData.splice(0, tableData.length, ...processedData);
  671. // }
  672. const response = await getDateList({
  673. date: params.date, sys_id: params.sys_id,
  674. page: page.value.toString(), limit: limit.value.toString(),
  675. })
  676. if (response.code === 0) {
  677. console.log(response)
  678. const processedData = response.data.data.map(item => {
  679. return {
  680. ...item,
  681. combinedProp: item.sczl_gdbh + '--'+item.yj_yjmc,
  682. combinedProp2: item.sczl_yjgx + '-'+item.sczl_gxmc
  683. };
  684. });
  685. tableData.splice(0, tableData.length, ...processedData);
  686. }
  687. }
  688. const handleNodeClick = (node,check) => {
  689. //存放当前节点的nodeId
  690. if (node.params) {
  691. params.date = node.params.date.replace(/\./g, '-');
  692. params.sys_id = node.params.sys_id;
  693. total.value = node.params.total;
  694. params.type = 'getTableData'
  695. page.value = 1
  696. getTableData();
  697. }
  698. }
  699. //定位
  700. const GetLocate = async () => {
  701. const response = await shougonglocate({
  702. gdbh: params.gdbh,
  703. page: page.value.toString(), limit: limit.value.toString(),
  704. })
  705. console.log(response)
  706. if (response.code === 0) {
  707. const processedData = response.data.rows.map(item => {
  708. return {
  709. ...item,
  710. combinedProp: item.sczl_gdbh + '--'+item.yj_yjmc,
  711. combinedProp2: item.sczl_yjgx + '-'+item.sczl_gxmc
  712. };
  713. });
  714. total.value = response.data.total
  715. tableData.splice(0, tableData.length, ...processedData);
  716. }
  717. }
  718. let positionvalue=ref()
  719. // 搜索
  720. function onSearch() {
  721. params.gdbh = positionvalue.value
  722. params.type = 'getLocateTable'
  723. page.value = 1
  724. GetLocate()
  725. }
  726. //获取详细信息
  727. const GetInfo = async (value) => {
  728. const response = await shougonggetInfo({UniqId:value});
  729. console.log(response)
  730. if (response.code === 0) {
  731. formData.value=response.data;
  732. }
  733. }
  734. //获取员工信息
  735. const GetYg = async (value,inputName) => {
  736. const response = await getYg({sczl_bh:value});
  737. console.log(response)
  738. if (response.code === 0) {
  739. console.log(response.data.ygxm)
  740. let Bname = 'sczl_bh' + inputName+'_name';
  741. formData.value[Bname]=response.data.ygxm
  742. // console.log(formData.value[Bname])
  743. }
  744. }
  745. //员工编号回车事件
  746. const getygsubmit = (event, inputName) => {
  747. console.log(inputName)
  748. let combinedString = 'sczl_bh' + inputName;
  749. console.log(combinedString)
  750. // let variableName = 'sczl_gdbh'+inputName;
  751. let variableValue = eval('formData.value.' + combinedString);
  752. console.log(variableValue)
  753. GetYg(variableValue,inputName)
  754. }
  755. //工单编号回车事件
  756. const getGxMcsubmit = async() => {
  757. console.log(formData.value.sczl_gdbh)
  758. GetGxMc()
  759. }
  760. const dialogSelectVisible = ref(false)
  761. const selectData = reactive([])
  762. //查询印件工序及产品名称
  763. const GetGxMc = async () => {
  764. console.log(formData.value.sczl_gdbh)
  765. const response = await shougonggetGxMc({gdbh:formData.value.sczl_gdbh});
  766. console.log(response)
  767. if (response.code === 0) {
  768. if(response.data.length==1){
  769. const { Gd_cpmc, Gy0_yjno, Gy0_gxh, Gy0_gxmc,jyGx} = response.data[0]
  770. formData.value.yj_yjmc=Gd_cpmc
  771. formData.value.sczl_gxmc=Gy0_gxmc
  772. formData.value.sczl_yjgx=jyGx
  773. console.log(Gy0_gxmc)
  774. console.log(formData.value.sczl_gxmc)
  775. }else{
  776. selectData.splice(0, selectData.length, ...response.data)
  777. dialogSelectVisible.value=true
  778. }
  779. // console.log(response.data.ygxm)
  780. // let Bname = 'sczl_bh' + inputName+'_name';
  781. // formData.value[Bname]=response.data.ygxm
  782. // // console.log(formData.value[Bname])
  783. // console.log(response.data.length)
  784. }
  785. }
  786. // 处理选择框
  787. const handleSelectClick = (row, column, event) => {
  788. const { Gd_cpmc, Gy0_yjno, Gy0_gxh, Gy0_gxmc,jyGx } = row
  789. formData.value.yj_yjmc=Gd_cpmc
  790. formData.value.sczl_gxmc=Gy0_gxmc
  791. formData.value.sczl_yjgx=jyGx
  792. dialogSelectVisible.value = false
  793. }
  794. //获取定额代号
  795. const GetDedh = async (value) => {
  796. const response = await shougonggetDedh();
  797. console.log(response)
  798. const treeData = {};
  799. if(response.code==0){
  800. // 遍历接口返回的数据,构建父子关系
  801. response.data.bh_mc.forEach(item => {
  802. if (item.sys_bh === response.data.sys_bh) {
  803. if (!treeData[item.sys_bh]) {
  804. treeData[item.sys_bh] = { label: item.sys_bh, children: [] };
  805. console.log('2222')
  806. }
  807. treeData[item.sys_bh+sys_mc].children.push({ label: item.sys_bh + item.sys_mc, params: { sys_bh: item.sys_bh } });
  808. console.log('1333')
  809. } else if (item.sys_bh.startsWith(response.data.sys_bh)) {
  810. if (!treeData[response.data.sys_bh]) {
  811. treeData[response.data.sys_bh] = { label: response.data.sys_bh+response.data.sys_mc, children: [] };
  812. console.log()
  813. }
  814. treeData[response.data.sys_bh].children.push({ label: item.sys_bh + item.sys_mc, params: { sys_bh: item.sys_bh } });
  815. console.log('1111')
  816. }
  817. });
  818. // 将父子关系转换为数组
  819. const transformedData = Object.values(treeData);
  820. console.log(transformedData)
  821. GetDedhtreeData = transformedData;
  822. // const treeData = fillDataToTree(response);
  823. // console.log(treeData)
  824. // // GetMachineDedhtreeData=treeData
  825. // GetMachineDedhtreeData.splice(0, GetMachineDedhtreeData.length, ...treeData);
  826. // const GetMachineDedhtreeData=
  827. GetDedhVisible.value=true
  828. console.log(formData)
  829. }
  830. }
  831. //定额代号树形结构单机
  832. const GetDedhhandleNodeClick = (node,check,nodeData) => {
  833. //存放当前节点的nodeId
  834. //存放当前节点的nodeId
  835. if (node.params) {
  836. // 点击的是父节点
  837. // 执行相应的父节点单击事件处理逻辑
  838. // console.log(node.params)
  839. formData.value.sczl_dedh=node.params.sys_bh
  840. // console.log(formData.value.sczl_dedh)
  841. GetDedhVisible.value=false
  842. console.log(node.params)
  843. } else {
  844. // 点击的是子节点
  845. // 执行相应的子节点单击事件处理逻辑
  846. // console.log('11111');
  847. // console.log(node.params)
  848. // 例如,您可以在这里执行子节点单击事件触发的操作
  849. }
  850. }
  851. let GetDedhtreeData = reactive([]);
  852. const GetDedhVisible = ref(false)
  853. //定额代号回车事件
  854. const getDedhsubmit = () => {
  855. GetDedh()
  856. }
  857. //刷新废品率系数
  858. const GetScrapFactor = async (value) => {
  859. const response = await shougonggetScrapFactor(value);
  860. if(response.code==0){
  861. console.log(response.data.num)
  862. const rowIndex = tableData.findIndex(row => row.UniqId === lastCellValue);
  863. console.log(rowIndex)
  864. tableData[rowIndex].sczl_废品率系数 = response.data.num;
  865. }
  866. // console.log(response)
  867. // const rowIndex = tableData.findIndex(row => row.UniqId === 123);
  868. }
  869. const ADD=ref('0')
  870. //新增
  871. function onAdd() {
  872. ADD.value='新增'
  873. console.log(ADD.value)
  874. dialogFormVisible.value = true
  875. // Productionadd()
  876. }
  877. const ScrapFactor={
  878. gdbh:'',
  879. yjno:'',
  880. gxh:'',
  881. type:'',
  882. }
  883. // 刷新废品率系数
  884. function onRefresh() {
  885. GetScrapFactor(ScrapFactor)
  886. }
  887. // 更新数据
  888. const updateDetailData = async() => {
  889. const restoredData = {
  890. UniqId: lastCellValue,
  891. sczl_rq: formData.value.sczl_rq,
  892. sczl_bzdh: formData.value.sczl_bzdh,
  893. sczl_bh0: formData.value.sczl_bh0,
  894. sczl_cl0: formData.value.sczl_cl0,
  895. sczl_fp0: formData.value.sczl_fp0,
  896. sczl_gdbh: formData.value.sczl_gdbh,
  897. sczl_yjgx: formData.value.sczl_yjgx,
  898. sczl_gxmc: formData.value.sczl_gxmc,
  899. sczl_cl:formData.value.sczl_cl,
  900. sczl_dedh: formData.value.sczl_dedh,
  901. sczl_检验类别: formData.value.sczl_检验类别,
  902. sczl_废品率系数: formData.value.sczl_废品率系数,
  903. sczl_jsss: formData.value.sczl_jsss,
  904. sczl_冲定额: formData.value.sczl_冲定额,
  905. qczl_NumDesc:formData.value.流程单号1,
  906. qczl_NumDesc1: formData.value.流程单号2,
  907. qczl_NumDesc12: formData.value.流程单号3,
  908. qczl_NumDesc13: formData.value.流程单号4,
  909. qczl_NumDesc14: formData.value.流程单号5,
  910. qczl_NumDesc15: formData.value.流程单号6,
  911. qczl_NumDesc16: formData.value.流程单号7,
  912. qczl_NumDesc17: formData.value.流程单号8,
  913. qczl_NumDesc18: formData.value.流程单号9,
  914. sczl_desc: formData.value.sczl_desc,
  915. sczl_bh1: formData.value.sczl_bh1,
  916. sczl_bh2: formData.value.sczl_bh2,
  917. sczl_bh3:formData.value.sczl_bh3,
  918. sczl_bh4: formData.value.sczl_bh4,
  919. sczl_bh5: formData.value.sczl_bh5,
  920. sczl_bh6: formData.value.sczl_bh6,
  921. sczl_bh7: formData.value.sczl_bh7,
  922. sczl_bh8: formData.value.sczl_bh8,
  923. sczl_bh9: formData.value.sczl_bh9,
  924. sczl_bh10: formData.value.sczl_bh10,
  925. sczl_bh11: formData.value.sczl_bh11,
  926. sczl_bh12: formData.value.sczl_bh12,
  927. sczl_cl1: formData.value.sczl_cl1,
  928. sczl_cl2: formData.value.sczl_cl2,
  929. sczl_cl3: formData.value.sczl_cl3,
  930. sczl_cl4: formData.value.sczl_cl4,
  931. sczl_cl5: formData.value.sczl_cl5,
  932. sczl_cl6: formData.value.sczl_cl6,
  933. sczl_cl7: formData.value.sczl_cl7,
  934. sczl_cl8: formData.value.sczl_cl8,
  935. sczl_cl9: formData.value.sczl_cl9,
  936. sczl_cl10: formData.value.sczl_cl10,
  937. sczl_cl11:formData.value.sczl_cl11,
  938. sczl_cl12: formData.value.sczl_cl12,
  939. sczl_fp1: formData.value.sczl_fp1,
  940. sczl_fp2: formData.value.sczl_fp2,
  941. sczl_fp3: formData.value.sczl_fp3,
  942. sczl_fp4: formData.value.sczl_fp4,
  943. sczl_fp5: formData.value.sczl_fp5,
  944. sczl_fp6: formData.value.sczl_fp6,
  945. sczl_fp7: formData.value.sczl_fp7,
  946. sczl_fp8: formData.value.sczl_fp8,
  947. sczl_fp9: formData.value.sczl_fp9,
  948. sczl_fp10: formData.value.sczl_fp10,
  949. sczl_fp11: formData.value.sczl_fp11,
  950. sczl_fp12: formData.value.sczl_fp12,
  951. sys_id:'[1013/洪丽]',
  952. }
  953. // detailData.table.forEach((item, index, array) => {
  954. // const num = index + 1
  955. // restoredData[`sczl_gdbh${num}`] = item.sczl_gdbh
  956. // restoredData[`sczl_yjGx${num}`] = item.sczl_yjGx
  957. // restoredData[`sczl_gxmc${num}`] = item.sczl_gxmc
  958. // // restoredData[`Gd_cpmc${num}`] = item.Gd_cpmc
  959. // restoredData[`sczl_cl${num}`] = item.sczl_cl
  960. // restoredData[`sczl_PgCl${num}`] = item.sczl_PgCl
  961. // restoredData[`sczl_clAdd${num}`] = item.sczl_clAdd
  962. // })
  963. if(ADD.value=='新增'){
  964. // console.log('新增')
  965. console.log('新增')
  966. console.log(ADD.value)
  967. console.log(restoredData)
  968. const response = await inspectadd(restoredData);
  969. // ADD.value='1'
  970. // console.log(ADD.value)
  971. ADD.value='0'
  972. console.log(response)
  973. }else{
  974. const response = await shougongedit(restoredData);
  975. console.log('修改')
  976. console.log(ADD.value)
  977. console.log(response)
  978. // ADD.value='0'
  979. // console.log(ADD.value)
  980. }
  981. // console.log(restoredData)
  982. // console.log(lastCellValue)
  983. // formData.value.UniqId=lastCellValue
  984. // console.log(formData)
  985. // restoredData.UniqId='5'
  986. // console.log(FormData)
  987. // console.log(response)
  988. }
  989. // 删除
  990. function onDel() {
  991. Del()
  992. }
  993. //删除
  994. const Del = async () => {
  995. const response = await shougongdel({UniqId:lastCellValue});
  996. if (response.code === 0) {
  997. console.log(333)
  998. }
  999. getTableData()
  1000. }
  1001. // 按工单显示
  1002. function onCountByGdbh() {
  1003. CountByGdbh()
  1004. }
  1005. //按工单显示
  1006. const CountByGdbh = async () => {
  1007. const response = await getInspectCountByGdbh();
  1008. // console.log(response)
  1009. if (response.code === 0) {
  1010. console.log(response)
  1011. const transformedData = response.data.map(item => ({
  1012. label: `${item.sczl_gdbh+item.cpmc}`,
  1013. children: item.sys.map(sysItem => ({
  1014. label: `${sysItem.sys_id} 【记录数: ${sysItem.count}张】`,
  1015. params: {
  1016. date: item.sczl_gdbh,
  1017. sys_id: sysItem.sys_id,
  1018. total: sysItem.count,
  1019. },
  1020. })),
  1021. }));
  1022. treeData.splice(0, treeData.length, ...transformedData);
  1023. }
  1024. getTableData()
  1025. }
  1026. // ============== 表格控制部分结束 ===============
  1027. // 获取需要的字典 可能为空 按需保留
  1028. const setOptions = async () => {
  1029. }
  1030. // 获取需要的字典 可能为空 按需保留
  1031. setOptions()
  1032. // 多选数据
  1033. const multipleSelection = ref([])
  1034. // 多选
  1035. const handleSelectionChange = (val) => {
  1036. if(val.length>0){
  1037. multipleSelection.value = val
  1038. const lenth=val.length
  1039. ScrapFactor.gdbh=val[lenth-1].combinedProp.split('-')[0];
  1040. const parts = val[lenth-1].combinedProp2.split('-')
  1041. ScrapFactor.yjno=parts[0];
  1042. ScrapFactor.gxh=parts[1];
  1043. // ScrapFactor.type=val[lenth-1].sczl_检验类别
  1044. ScrapFactor.type='正品板'
  1045. console.log(ScrapFactor)
  1046. lastCellValue=val[lenth-1].UniqId
  1047. console.log(ScrapFactor)
  1048. val.splice(0, val.length); // 清空 val 数组
  1049. console.log(lastCellValue)
  1050. }
  1051. }
  1052. // 批量删除控制标记
  1053. const deleteVisible = ref(false)
  1054. // 多选删除
  1055. const onDelete = async () => {
  1056. const ids = []
  1057. if (multipleSelection.value.length === 0) {
  1058. ElMessage({
  1059. type: 'warning',
  1060. message: '请选择要删除的数据'
  1061. })
  1062. return
  1063. }
  1064. multipleSelection.value &&
  1065. multipleSelection.value.map(item => {
  1066. ids.push(item.ID)
  1067. })
  1068. const res = await deleteCompanyByIds({ ids })
  1069. if (res.code === 0) {
  1070. ElMessage({
  1071. type: 'success',
  1072. message: '删除成功'
  1073. })
  1074. if (tableData.value.length === ids.length && page.value > 1) {
  1075. page.value--
  1076. }
  1077. deleteVisible.value = false
  1078. getTableData()
  1079. }
  1080. }
  1081. // 行为控制标记(弹窗内部需要增还是改)
  1082. const type = ref('')
  1083. // 更新行
  1084. const updateCompanyFunc = async (row) => {
  1085. const res = await findCompany({ ID: row.ID })
  1086. type.value = 'update'
  1087. if (res.code === 0) {
  1088. formData.value = res.data.recompany
  1089. dialogFormVisible.value = true
  1090. }
  1091. }
  1092. // 弹窗控制标记
  1093. const dialogFormVisible = ref(false)
  1094. // 打开弹窗
  1095. const openDialog = () => {
  1096. type.value = 'create'
  1097. dialogFormVisible.value = true
  1098. }
  1099. // 关闭弹窗
  1100. const closeDialog = () => {
  1101. dialogFormVisible.value = false
  1102. formData.value = {
  1103. address: '',
  1104. image: '',
  1105. name: '',
  1106. }
  1107. }
  1108. // 弹窗确定
  1109. const enterDialog = async () => {
  1110. // elFormRef.value?.validate(async (valid) => {
  1111. // if (!valid) return
  1112. // let res
  1113. // switch (type.value) {
  1114. // case 'create':
  1115. // res = await createCompany(formData.value)
  1116. // break
  1117. // case 'update':
  1118. // res = await updateCompany(formData.value)
  1119. // break
  1120. // default:
  1121. // res = await createCompany(formData.value)
  1122. // break
  1123. // }
  1124. // if (res.code === 0) {
  1125. // ElMessage({
  1126. // type: 'success',
  1127. // message: '创建/更改成功'
  1128. // })
  1129. // closeDialog()
  1130. // getTableData()
  1131. // }
  1132. // })
  1133. updateDetailData()
  1134. }
  1135. let table=ref(5);
  1136. let lastCellValue=ref()
  1137. // 双击表格操作
  1138. function doubleClick(row, column, event) {
  1139. type.value = 'update';
  1140. lastCellValue= row['UniqId'];
  1141. console.log(lastCellValue)
  1142. table.value=lastCellValue
  1143. dialogFormVisible.value = true
  1144. // dialogSelectVisible.value = true
  1145. GetInfo(table.value)
  1146. // dialogFormVisible.value = true
  1147. }
  1148. // 导出excel
  1149. function exportExcel() {
  1150. console.log('导出到excel');
  1151. }
  1152. // 生命周期钩子
  1153. onMounted(async () => {
  1154. });
  1155. </script>
  1156. <style>
  1157. .JKWTree-container {
  1158. display: flex;
  1159. }
  1160. .JKWTree-tree {
  1161. width: 300px;
  1162. background-color: #fff;
  1163. padding: 10px;
  1164. margin-right: 20px;
  1165. }
  1166. .JKWTree-tree h3 {
  1167. font-size: 15px;
  1168. font-weight: 700;
  1169. margin: 10px 0;
  1170. }
  1171. .JKWTree-content {
  1172. flex: 1;
  1173. }
  1174. /* 选中某行时的背景色*/
  1175. .el-table__body tr.current-row>td {
  1176. background: #ff80ff !important;
  1177. /* 背景颜色 */
  1178. }
  1179. </style>