workingProcedure.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228
  1. <template>
  2. <view>
  3. <view class="body">
  4. 机器编码:<input class="input" v-model="coding" disabled />
  5. </view>
  6. <uni-collapse>
  7. <uni-collapse-item title="电柜">
  8. <view class="line"></view>
  9. <view class="modules">
  10. <view class="body">
  11. 名称:加连接线
  12. </view>
  13. <view class="body">
  14. 状态:{{aStatus}}
  15. </view>
  16. <view class="body">
  17. 安装人:{{aProducePersonnel}}
  18. </view>
  19. <view class="body">
  20. 安装时间:{{aProduceDate}}
  21. </view>
  22. <view class="modulesButton" v-show="buttonShow">
  23. <button type="primary" @click="update('加连接线','1')" class="button1">
  24. <p class="p">更新</p>
  25. </button>
  26. <button type="primary" @click="anzhuang('加连接线','1')" class="button1">
  27. <p class="p">安装</p>
  28. </button>
  29. </view>
  30. </view>
  31. <view class="line"></view>
  32. <view class="modules">
  33. <view class="body">
  34. 名称:航插线,驱动器线
  35. </view>
  36. <view class="body">
  37. 状态:{{bStatus}}
  38. </view>
  39. <view class="body">
  40. 安装人:{{bProducePersonnel}}
  41. </view>
  42. <view class="body">
  43. 安装时间:{{bProduceDate}}
  44. </view>
  45. <view class="modulesButton" v-show="buttonShow">
  46. <button type="primary" @click="update('航插线,驱动器线','2')" class="button1">
  47. <p class="p">更新</p>
  48. </button>
  49. <button type="primary" @click="anzhuang('航插线,驱动器线','2')" class="button1">
  50. <p class="p">安装</p>
  51. </button>
  52. </view>
  53. </view>
  54. <view class="line"></view>
  55. <view class="modules">
  56. <view class="body">
  57. 名称:线槽,元器件
  58. </view>
  59. <view class="body">
  60. 状态:{{cStatus}}
  61. </view>
  62. <view class="body">
  63. 安装人:{{cProducePersonnel}}
  64. </view>
  65. <view class="body">
  66. 安装时间:{{cProduceDate}}
  67. </view>
  68. <view class="modulesButton" v-show="buttonShow">
  69. <button type="primary" @click="update('线槽,元器件','3')" class="button1">
  70. <p class="p">更新</p>
  71. </button>
  72. <button type="primary" @click="anzhuang('线槽,元器件','3')" class="button1">
  73. <p class="p">安装</p>
  74. </button>
  75. </view>
  76. </view>
  77. <view class="line"></view>
  78. <view class="modules">
  79. <view class="body">
  80. 名称:整柜自检
  81. </view>
  82. <view class="body">
  83. 状态:{{dStatus}}
  84. </view>
  85. <view class="body">
  86. 安装人:{{dProducePersonnel}}
  87. </view>
  88. <view class="body">
  89. 安装时间:{{dProduceDate}}
  90. </view>
  91. <view class="modulesButton" v-show="buttonShow">
  92. <button type="primary" @click="update('整柜自检','4')" class="button1">
  93. <p class="p">更新</p>
  94. </button>
  95. <button type="primary" @click="anzhuang('整柜自检','4')" class="button1">
  96. <p class="p">安装</p>
  97. </button>
  98. </view>
  99. </view>
  100. <view class="line"></view>
  101. <view class="line"></view>
  102. <view class="line"></view>
  103. </uni-collapse-item>
  104. <uni-collapse-item title="总装">
  105. <view class="line"></view>
  106. <view class="modules">
  107. <view class="body">
  108. 名称:压端子
  109. </view>
  110. <view class="body">
  111. 状态:{{eStatus}}
  112. </view>
  113. <view class="body">
  114. 安装人:{{eProducePersonnel}}
  115. </view>
  116. <view class="body">
  117. 安装时间:{{eProduceDate}}
  118. </view>
  119. <view class="modulesButton" v-show="buttonShow">
  120. <button type="primary" @click="update('压端子','5')" class="button1">
  121. <p class="p">更新</p>
  122. </button>
  123. <button type="primary" @click="anzhuang('压端子','5')" class="button1">
  124. <p class="p">安装</p>
  125. </button>
  126. </view>
  127. </view>
  128. <view class="line"></view>
  129. <view class="modules">
  130. <view class="body">
  131. 名称:远程模块
  132. </view>
  133. <view class="body">
  134. 状态:{{fStatus}}
  135. </view>
  136. <view class="body">
  137. 安装人:{{fProducePersonnel}}
  138. </view>
  139. <view class="body">
  140. 安装时间:{{fProduceDate}}
  141. </view>
  142. <view class="modulesButton" v-show="buttonShow">
  143. <button type="primary" @click="update('远程模块','6')" class="button1">
  144. <p class="p">更新</p>
  145. </button>
  146. <button type="primary" @click="anzhuang('远程模块','6')" class="button1">
  147. <p class="p">安装</p>
  148. </button>
  149. </view>
  150. </view>
  151. <view class="line"></view>
  152. <view class="modules">
  153. <view class="body">
  154. 名称:固定UPS
  155. </view>
  156. <view class="body">
  157. 状态:{{gStatus}}
  158. </view>
  159. <view class="body">
  160. 安装人:{{gProducePersonnel}}
  161. </view>
  162. <view class="body">
  163. 安装时间:{{gProduceDate}}
  164. </view>
  165. <view class="modulesButton" v-show="buttonShow">
  166. <button type="primary" @click="update('固定UPS','7')" class="button1">
  167. <p class="p">更新</p>
  168. </button>
  169. <button type="primary" @click="anzhuang('固定UPS','7')" class="button1">
  170. <p class="p">安装</p>
  171. </button>
  172. </view>
  173. </view>
  174. <view class="line"></view>
  175. <view class="modules">
  176. <view class="body">
  177. 名称:打玻璃胶
  178. </view>
  179. <view class="body">
  180. 状态:{{hStatus}}
  181. </view>
  182. <view class="body">
  183. 安装人:{{hProducePersonnel}}
  184. </view>
  185. <view class="body">
  186. 安装时间:{{hProduceDate}}
  187. </view>
  188. <view class="modulesButton" v-show="buttonShow">
  189. <button type="primary" @click="update('打玻璃胶','8')" class="button1">
  190. <p class="p">更新</p>
  191. </button>
  192. <button type="primary" @click="anzhuang('打玻璃胶','8')" class="button1">
  193. <p class="p">安装</p>
  194. </button>
  195. </view>
  196. </view>
  197. <view class="line"></view>
  198. <view class="modules">
  199. <view class="body">
  200. 名称:散热模块
  201. </view>
  202. <view class="body">
  203. 状态:{{iStatus}}
  204. </view>
  205. <view class="body">
  206. 安装人:{{iProducePersonnel}}
  207. </view>
  208. <view class="body">
  209. 安装时间:{{iProduceDate}}
  210. </view>
  211. <view class="modulesButton" v-show="buttonShow">
  212. <button type="primary" @click="update('散热模块','9')" class="button1">
  213. <p class="p">更新</p>
  214. </button>
  215. <button type="primary" @click="anzhuang('散热模块','9')" class="button1">
  216. <p class="p">安装</p>
  217. </button>
  218. </view>
  219. </view>
  220. <view class="line"></view>
  221. <view class="modules">
  222. <view class="body">
  223. 名称:机械手
  224. </view>
  225. <view class="body">
  226. 状态:{{jStatus}}
  227. </view>
  228. <view class="body">
  229. 安装人:{{jProducePersonnel}}
  230. </view>
  231. <view class="body">
  232. 安装时间:{{jProduceDate}}
  233. </view>
  234. <view class="modulesButton" v-show="buttonShow">
  235. <button type="primary" @click="update('机械手','10')" class="button1">
  236. <p class="p">更新</p>
  237. </button>
  238. <button type="primary" @click="anzhuang('机械手','10')" class="button1">
  239. <p class="p">安装</p>
  240. </button>
  241. </view>
  242. </view>
  243. <view class="line"></view>
  244. <view class="modules">
  245. <view class="body">
  246. 名称:贴胶条
  247. </view>
  248. <view class="body">
  249. 状态:{{kStatus}}
  250. </view>
  251. <view class="body">
  252. 安装人:{{kProducePersonnel}}
  253. </view>
  254. <view class="body">
  255. 安装时间:{{kProduceDate}}
  256. </view>
  257. <view class="modulesButton" v-show="buttonShow">
  258. <button type="primary" @click="update('贴胶条','11')" class="button1">
  259. <p class="p">更新</p>
  260. </button>
  261. <button type="primary" @click="anzhuang('贴胶条','11')" class="button1">
  262. <p class="p">安装</p>
  263. </button>
  264. </view>
  265. </view>
  266. <view class="line"></view>
  267. <view class="modules">
  268. <view class="body">
  269. 名称:总装备料
  270. </view>
  271. <view class="body">
  272. 状态:{{lStatus}}
  273. </view>
  274. <view class="body">
  275. 安装人:{{lProducePersonnel}}
  276. </view>
  277. <view class="body">
  278. 安装时间:{{lProduceDate}}
  279. </view>
  280. <view class="modulesButton" v-show="buttonShow">
  281. <button type="primary" @click="update('总装备料','12')" class="button1">
  282. <p class="p">更新</p>
  283. </button>
  284. <button type="primary" @click="anzhuang('总装备料','12')" class="button1">
  285. <p class="p">安装</p>
  286. </button>
  287. </view>
  288. </view>
  289. <view class="line"></view>
  290. <view class="modules">
  291. <view class="body">
  292. 名称:灯板
  293. </view>
  294. <view class="body">
  295. 状态:{{mStatus}}
  296. </view>
  297. <view class="body">
  298. 安装人:{{mProducePersonnel}}
  299. </view>
  300. <view class="body">
  301. 安装时间:{{mProduceDate}}
  302. </view>
  303. <view class="modulesButton" v-show="buttonShow">
  304. <button type="primary" @click="update('灯板','13')" class="button1">
  305. <p class="p">更新</p>
  306. </button>
  307. <button type="primary" @click="anzhuang('灯板','13')" class="button1">
  308. <p class="p">安装</p>
  309. </button>
  310. </view>
  311. </view>
  312. <view class="line"></view>
  313. <view class="modules">
  314. <view class="body">
  315. 名称:右侧屏幕门
  316. </view>
  317. <view class="body">
  318. 状态:{{nStatus}}
  319. </view>
  320. <view class="body">
  321. 安装人:{{nProducePersonnel}}
  322. </view>
  323. <view class="body">
  324. 安装时间:{{nProduceDate}}
  325. </view>
  326. <view class="modulesButton" v-show="buttonShow">
  327. <button type="primary" @click="update('右侧屏幕门','14')" class="button1">
  328. <p class="p">更新</p>
  329. </button>
  330. <button type="primary" @click="anzhuang('右侧屏幕门','14')" class="button1">
  331. <p class="p">安装</p>
  332. </button>
  333. </view>
  334. </view>
  335. <view class="line"></view>
  336. <view class="modules">
  337. <view class="body">
  338. 名称:左侧手动门
  339. </view>
  340. <view class="body">
  341. 状态:{{oStatus}}
  342. </view>
  343. <view class="body">
  344. 安装人:{{oProducePersonnel}}
  345. </view>
  346. <view class="body">
  347. 安装时间:{{oProduceDate}}
  348. </view>
  349. <view class="modulesButton" v-show="buttonShow">
  350. <button type="primary" @click="update('左侧手动门','15')" class="button1">
  351. <p class="p">更新</p>
  352. </button>
  353. <button type="primary" @click="anzhuang('左侧手动门','15')" class="button1">
  354. <p class="p">安装</p>
  355. </button>
  356. </view>
  357. </view>
  358. <view class="line"></view>
  359. <view class="modules">
  360. <view class="body">
  361. 名称:前门锁
  362. </view>
  363. <view class="body">
  364. 状态:{{pStatus}}
  365. </view>
  366. <view class="body">
  367. 安装人:{{pProducePersonnel}}
  368. </view>
  369. <view class="body">
  370. 安装时间:{{pProduceDate}}
  371. </view>
  372. <view class="modulesButton" v-show="buttonShow">
  373. <button type="primary" @click="update('前门锁','16')" class="button1">
  374. <p class="p">更新</p>
  375. </button>
  376. <button type="primary" @click="anzhuang('前门锁','16')" class="button1">
  377. <p class="p">安装</p>
  378. </button>
  379. </view>
  380. </view>
  381. <view class="line"></view>
  382. <view class="modules">
  383. <view class="body">
  384. 名称:风扇(大小)
  385. </view>
  386. <view class="body">
  387. 状态:{{qStatus}}
  388. </view>
  389. <view class="body">
  390. 安装人:{{qProducePersonnel}}
  391. </view>
  392. <view class="body">
  393. 安装时间:{{qProduceDate}}
  394. </view>
  395. <view class="modulesButton" v-show="buttonShow">
  396. <button type="primary" @click="update('风扇(大小)','17')" class="button1">
  397. <p class="p">更新</p>
  398. </button>
  399. <button type="primary" @click="anzhuang('风扇(大小)','17')" class="button1">
  400. <p class="p">安装</p>
  401. </button>
  402. </view>
  403. </view>
  404. <view class="line"></view>
  405. <view class="modules">
  406. <view class="body">
  407. 名称:后门锁
  408. </view>
  409. <view class="body">
  410. 状态:{{rStatus}}
  411. </view>
  412. <view class="body">
  413. 安装人:{{rProducePersonnel}}
  414. </view>
  415. <view class="body">
  416. 安装时间:{{rProduceDate}}
  417. </view>
  418. <view class="modulesButton" v-show="buttonShow">
  419. <button type="primary" @click="update('后门锁','18')" class="button1">
  420. <p class="p">更新</p>
  421. </button>
  422. <button type="primary" @click="anzhuang('后门锁','18')" class="button1">
  423. <p class="p">安装</p>
  424. </button>
  425. </view>
  426. </view>
  427. <view class="line"></view>
  428. <view class="line"></view>
  429. <view class="line"></view>
  430. </uni-collapse-item>
  431. <uni-collapse-item title="调试">
  432. <view class="line"></view>
  433. <view class="modules">
  434. <view class="body">
  435. 名称:机器上电调参数
  436. </view>
  437. <view class="body">
  438. 状态:{{sStatus}}
  439. </view>
  440. <view class="body">
  441. 安装人:{{sProducePersonnel}}
  442. </view>
  443. <view class="body">
  444. 安装时间:{{sProduceDate}}
  445. </view>
  446. <view class="modulesButton" v-show="buttonShow">
  447. <button type="primary" @click="update('机器上电调参数','19')" class="button1">
  448. <p class="p">更新</p>
  449. </button>
  450. <button type="primary" @click="anzhuang('机器上电调参数','19')" class="button1">
  451. <p class="p">安装</p>
  452. </button>
  453. </view>
  454. </view>
  455. <view class="line"></view>
  456. <view class="modules">
  457. <view class="body">
  458. 名称:调试自动门
  459. </view>
  460. <view class="body">
  461. 状态:{{tStatus}}
  462. </view>
  463. <view class="body">
  464. 安装人:{{tProducePersonnel}}
  465. </view>
  466. <view class="body">
  467. 安装时间:{{tProduceDate}}
  468. </view>
  469. <view class="modulesButton" v-show="buttonShow">
  470. <button type="primary" @click="update('调试自动门','20')" class="button1">
  471. <p class="p">更新</p>
  472. </button>
  473. <button type="primary" @click="anzhuang('调试自动门','20')" class="button1">
  474. <p class="p">安装</p>
  475. </button>
  476. </view>
  477. </view>
  478. <view class="line"></view>
  479. <view class="modules">
  480. <view class="body">
  481. 名称:调试机器
  482. </view>
  483. <view class="body">
  484. 状态:{{uStatus}}
  485. </view>
  486. <view class="body">
  487. 安装人:{{uProducePersonnel}}
  488. </view>
  489. <view class="body">
  490. 安装时间:{{uProduceDate}}
  491. </view>
  492. <view class="modulesButton" v-show="buttonShow">
  493. <button type="primary" @click="update('调试机器','21')" class="button1">
  494. <p class="p">更新</p>
  495. </button>
  496. <button type="primary" @click="anzhuang('调试机器','21')" class="button1">
  497. <p class="p">安装</p>
  498. </button>
  499. </view>
  500. </view>
  501. <view class="line"></view>
  502. <view class="line"></view>
  503. <view class="line"></view>
  504. </uni-collapse-item>
  505. <uni-collapse-item title="打包">
  506. <view class="line"></view>
  507. <view class="modules">
  508. <view class="body">
  509. 名称:装糖盒
  510. </view>
  511. <view class="body">
  512. 状态:{{vStatus}}
  513. </view>
  514. <view class="body">
  515. 安装人:{{vProducePersonnel}}
  516. </view>
  517. <view class="body">
  518. 安装时间:{{vProduceDate}}
  519. </view>
  520. <view class="modulesButton" v-show="buttonShow">
  521. <button type="primary" @click="update('装糖盒','22')" class="button1">
  522. <p class="p">更新</p>
  523. </button>
  524. <button type="primary" @click="anzhuang('装糖盒','22')" class="button1">
  525. <p class="p">安装</p>
  526. </button>
  527. </view>
  528. </view>
  529. <view class="line"></view>
  530. <view class="modules">
  531. <view class="body">
  532. 名称:上板金类
  533. </view>
  534. <view class="body">
  535. 状态:{{wStatus}}
  536. </view>
  537. <view class="body">
  538. 安装人:{{wProducePersonnel}}
  539. </view>
  540. <view class="body">
  541. 安装时间:{{wProduceDate}}
  542. </view>
  543. <view class="modulesButton" v-show="buttonShow">
  544. <button type="primary" @click="update('上板金类','23')" class="button1">
  545. <p class="p">更新</p>
  546. </button>
  547. <button type="primary" @click="anzhuang('上板金类','23')" class="button1">
  548. <p class="p">安装</p>
  549. </button>
  550. </view>
  551. </view>
  552. <view class="line"></view>
  553. <view class="modules">
  554. <view class="body">
  555. 名称:打木架
  556. </view>
  557. <view class="body">
  558. 状态:{{xStatus}}
  559. </view>
  560. <view class="body">
  561. 安装人:{{xProducePersonnel}}
  562. </view>
  563. <view class="body">
  564. 安装时间:{{xProduceDate}}
  565. </view>
  566. <view class="modulesButton" v-show="buttonShow">
  567. <button type="primary" @click="update('打木架','24')" class="button1">
  568. <p class="p">更新</p>
  569. </button>
  570. <button type="primary" @click="anzhuang('打木架','24')" class="button1">
  571. <p class="p">安装</p>
  572. </button>
  573. </view>
  574. </view>
  575. <view class="line"></view>
  576. <view class="modules">
  577. <view class="body">
  578. 名称:扎线
  579. </view>
  580. <view class="body">
  581. 状态:{{yStatus}}
  582. </view>
  583. <view class="body">
  584. 安装人:{{yProducePersonnel}}
  585. </view>
  586. <view class="body">
  587. 安装时间:{{yProduceDate}}
  588. </view>
  589. <view class="modulesButton" v-show="buttonShow">
  590. <button type="primary" @click="update('扎线','25')" class="button1">
  591. <p class="p">更新</p>
  592. </button>
  593. <button type="primary" @click="anzhuang('扎线','25')" class="button1">
  594. <p class="p">安装</p>
  595. </button>
  596. </view>
  597. </view>
  598. <view class="line"></view>
  599. <view class="modules">
  600. <view class="body">
  601. 名称:贴帖子
  602. </view>
  603. <view class="body">
  604. 状态:{{zStatus}}
  605. </view>
  606. <view class="body">
  607. 安装人:{{zProducePersonnel}}
  608. </view>
  609. <view class="body">
  610. 安装时间:{{zProduceDate}}
  611. </view>
  612. <view class="modulesButton" v-show="buttonShow">
  613. <button type="primary" @click="update('贴帖子','26')" class="button1">
  614. <p class="p">更新</p>
  615. </button>
  616. <button type="primary" @click="anzhuang('贴帖子','26')" class="button1">
  617. <p class="p">安装</p>
  618. </button>
  619. </view>
  620. </view>
  621. <view class="line"></view>
  622. <view class="modules">
  623. <view class="body">
  624. 名称:清洁机器
  625. </view>
  626. <view class="body">
  627. 状态:{{abStatus}}
  628. </view>
  629. <view class="body">
  630. 安装人:{{abProducePersonnel}}
  631. </view>
  632. <view class="body">
  633. 安装时间:{{abProduceDate}}
  634. </view>
  635. <view class="modulesButton" v-show="buttonShow">
  636. <button type="primary" @click="update('清洁机器','27')" class="button1">
  637. <p class="p">更新</p>
  638. </button>
  639. <button type="primary" @click="anzhuang('清洁机器','27')" class="button1">
  640. <p class="p">安装</p>
  641. </button>
  642. </view>
  643. </view>
  644. <view class="line"></view>
  645. <view class="modules">
  646. <view class="body">
  647. 名称:处理问题
  648. </view>
  649. <view class="body">
  650. 状态:{{acStatus}}
  651. </view>
  652. <view class="body">
  653. 安装人:{{acProducePersonnel}}
  654. </view>
  655. <view class="body">
  656. 安装时间:{{acProduceDate}}
  657. </view>
  658. <view class="modulesButton" v-show="buttonShow">
  659. <button type="primary" @click="update('处理问题','28')" class="button1">
  660. <p class="p">更新</p>
  661. </button>
  662. <button type="primary" @click="anzhuang('处理问题','28')" class="button1">
  663. <p class="p">安装</p>
  664. </button>
  665. </view>
  666. </view>
  667. <view class="line"></view>
  668. <view class="modules">
  669. <view class="body">
  670. 名称:配放物料
  671. </view>
  672. <view class="body">
  673. 状态:{{adStatus}}
  674. </view>
  675. <view class="body">
  676. 安装人:{{adProducePersonnel}}
  677. </view>
  678. <view class="body">
  679. 安装时间:{{adProduceDate}}
  680. </view>
  681. <view class="modulesButton" v-show="buttonShow">
  682. <button type="primary" @click="update('配放物料','29')" class="button1">
  683. <p class="p">更新</p>
  684. </button>
  685. <button type="primary" @click="anzhuang('配放物料','29')" class="button1">
  686. <p class="p">安装</p>
  687. </button>
  688. </view>
  689. </view>
  690. <view class="line"></view>
  691. <view class="modules">
  692. <view class="body">
  693. 名称:打包备料
  694. </view>
  695. <view class="body">
  696. 状态:{{aeStatus}}
  697. </view>
  698. <view class="body">
  699. 安装人:{{aeProducePersonnel}}
  700. </view>
  701. <view class="body">
  702. 安装时间:{{aeProduceDate}}
  703. </view>
  704. <view class="modulesButton" v-show="buttonShow">
  705. <button type="primary" @click="update('打包备料','30')" class="button1">
  706. <p class="p">更新</p>
  707. </button>
  708. <button type="primary" @click="anzhuang('打包备料','30')" class="button1">
  709. <p class="p">安装</p>
  710. </button>
  711. </view>
  712. </view>
  713. <view class="line"></view>
  714. <view class="line"></view>
  715. <view class="line"></view>
  716. </uni-collapse-item>
  717. </uni-collapse>
  718. </view>
  719. </template>
  720. <script>
  721. import uniCollapse from '@/components/uni-collapse/uni-collapse.vue'
  722. import uniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'
  723. export default {
  724. data() {
  725. return {
  726. "coding": '',
  727. "buttonShow": true,
  728. "type": '',
  729. "aStatus": '',
  730. "aProducePersonnel": '',
  731. "aProduceDate": '',
  732. "bStatus": '',
  733. "bProducePersonnel": '',
  734. "bProduceDate": '',
  735. "cStatus": '',
  736. "cProducePersonnel": '',
  737. "cProduceDate": '',
  738. "dStatus": '',
  739. "dProducePersonnel": '',
  740. "dProduceDate": '',
  741. "eStatus": '',
  742. "eProducePersonnel": '',
  743. "eProduceDate": '',
  744. "fStatus": '',
  745. "fProducePersonnel": '',
  746. "fProduceDate": '',
  747. "gStatus": '',
  748. "gProducePersonnel": '',
  749. "gProduceDate": '',
  750. "hStatus": '',
  751. "hProducePersonnel": '',
  752. "hProduceDate": '',
  753. "iStatus": '',
  754. "iProducePersonnel": '',
  755. "iProduceDate": '',
  756. "jStatus": '',
  757. "jProducePersonnel": '',
  758. "jProduceDate": '',
  759. "kStatus": '',
  760. "kProducePersonnel": '',
  761. "kProduceDate": '',
  762. "lStatus": '',
  763. "lProducePersonnel": '',
  764. "lProduceDate": '',
  765. "mStatus": '',
  766. "mProducePersonnel": '',
  767. "mProduceDate": '',
  768. "nStatus": '',
  769. "nProducePersonnel": '',
  770. "nProduceDate": '',
  771. "oStatus": '',
  772. "oProducePersonnel": '',
  773. "oProduceDate": '',
  774. "pStatus": '',
  775. "pProducePersonnel": '',
  776. "pProduceDate": '',
  777. "qStatus": '',
  778. "qProducePersonnel": '',
  779. "qProduceDate": '',
  780. "rStatus": '',
  781. "rProducePersonnel": '',
  782. "rProduceDate": '',
  783. "sStatus": '',
  784. "sProducePersonnel": '',
  785. "sProduceDate": '',
  786. "tStatus": '',
  787. "tProducePersonnel": '',
  788. "tProduceDate": '',
  789. "uStatus": '',
  790. "uProducePersonnel": '',
  791. "uProduceDate": '',
  792. "vStatus": '',
  793. "vProducePersonnel": '',
  794. "vProduceDate": '',
  795. "wStatus": '',
  796. "wProducePersonnel": '',
  797. "wProduceDate": '',
  798. "xStatus": '',
  799. "xProducePersonnel": '',
  800. "xProduceDate": '',
  801. "yStatus": '',
  802. "yProducePersonnel": '',
  803. "yProduceDate": '',
  804. "zStatus": '',
  805. "zProducePersonnel": '',
  806. "zProduceDate": '',
  807. "abStatus": '',
  808. "abProducePersonnel": '',
  809. "abProduceDate": '',
  810. "acStatus": '',
  811. "acProducePersonnel": '',
  812. "acProduceDate": '',
  813. "adStatus": '',
  814. "adProducePersonnel": '',
  815. "adProduceDate": '',
  816. "aeStatus": '',
  817. "aeProducePersonnel": '',
  818. "aeProduceDate": '',
  819. }
  820. },
  821. onShow() {
  822. this.getList();
  823. },
  824. onLoad: function(option) {
  825. const item = JSON.parse(decodeURIComponent(option.item));
  826. this.coding = item.coding;
  827. var type = item.type;
  828. this.type = type;
  829. if (type == 'get') {
  830. this.buttonShow = false;
  831. }
  832. console.log(item)
  833. },
  834. methods: {
  835. anzhuang(name,remark) {
  836. console.log("anzhuang" + name)
  837. var token = uni.getStorageSync("token");
  838. var producePersonnel = uni.getStorageSync("name");
  839. uni.request({
  840. url: this.serverurl + "/TWorkingProcedure/add",
  841. method: "POST",
  842. data: {
  843. "machineCoding": this.coding,
  844. "name": name,
  845. "producePersonnel": producePersonnel,
  846. "remark":remark
  847. },
  848. header: {
  849. 'token': token
  850. },
  851. success: (Result) => {
  852. var res = Result;
  853. if (res.data.code == true) {
  854. this.getList();
  855. }
  856. uni.showModal({
  857. title: '提示',
  858. content: res.data.message,
  859. });
  860. }
  861. });
  862. },
  863. update(name,remark) {
  864. console.log("update" + name)
  865. var token = uni.getStorageSync("token");
  866. var producePersonnel = uni.getStorageSync("name");
  867. uni.request({
  868. url: this.serverurl + "/TWorkingProcedure/update",
  869. method: "POST",
  870. data: {
  871. "machineCoding": this.coding,
  872. "name": name,
  873. "producePersonnel": producePersonnel,
  874. "remark":remark
  875. },
  876. header: {
  877. 'token': token
  878. },
  879. success: (Result) => {
  880. var res = Result;
  881. if (res.data.code == true) {
  882. this.getList();
  883. }
  884. uni.showModal({
  885. title: '提示',
  886. content: res.data.message,
  887. });
  888. }
  889. });
  890. },
  891. getList() {
  892. var token = uni.getStorageSync("token");
  893. uni.request({
  894. url: this.serverurl + "/TWorkingProcedure/list",
  895. method: "POST",
  896. data: {
  897. "machineCoding": this.coding
  898. },
  899. header: {
  900. 'token': token
  901. },
  902. success: (Result) => {
  903. var res = Result;
  904. if (res.data.code == true) {
  905. var list = res.data.data;
  906. for (var i = 0; i < list.length; i++) {
  907. var date = list[i];
  908. var remark = date.remark;
  909. if (remark==='1') {
  910. this.aProduceDate = date.produceDate;
  911. if(date.status=='1'){
  912. this.aStatus = "已安装";
  913. }
  914. this.aProducePersonnel = date.producePersonnel;
  915. }
  916. if (remark == '2') {
  917. this.bProduceDate = date.produceDate;
  918. if(date.status=='1'){
  919. this.bStatus = "已安装";
  920. };
  921. this.bProducePersonnel = date.producePersonnel;
  922. }
  923. if (remark == '3') {
  924. this.cProduceDate = date.produceDate;
  925. if(date.status=='1'){
  926. this.cStatus = "已安装";
  927. };
  928. this.cProducePersonnel = date.producePersonnel;
  929. }
  930. if (remark == '4') {
  931. this.dProduceDate = date.produceDate;
  932. if(date.status=='1'){
  933. this.dStatus = "已安装";
  934. };
  935. this.dProducePersonnel = date.producePersonnel;
  936. }
  937. if (remark == '5') {
  938. this.eProduceDate = date.produceDate;
  939. if(date.status=='1'){
  940. this.eStatus = "已安装";
  941. };
  942. this.eProducePersonnel = date.producePersonnel;
  943. }
  944. if (remark == '6') {
  945. this.fProduceDate = date.produceDate;
  946. if(date.status=='1'){
  947. this.fStatus = "已安装";
  948. };
  949. this.fProducePersonnel = date.producePersonnel;
  950. }
  951. if (remark == '7') {
  952. this.gProduceDate = date.produceDate;
  953. if(date.status=='1'){
  954. this.gStatus = "已安装";
  955. };
  956. this.gProducePersonnel = date.producePersonnel;
  957. }
  958. if (remark == '8') {
  959. this.hProduceDate = date.produceDate;
  960. if(date.status=='1'){
  961. this.hStatus = "已安装";
  962. };
  963. this.hProducePersonnel = date.producePersonnel;
  964. }
  965. if (remark == '9') {
  966. this.iProduceDate = date.produceDate;
  967. if(date.status=='1'){
  968. this.iStatus = "已安装";
  969. };
  970. this.iProducePersonnel = date.producePersonnel;
  971. }
  972. if (remark == '10') {
  973. this.jProduceDate = date.produceDate;
  974. if(date.status=='1'){
  975. this.jStatus = "已安装";
  976. };
  977. this.jProducePersonnel = date.producePersonnel;
  978. }
  979. if (remark == '11') {
  980. this.kProduceDate = date.produceDate;
  981. if(date.status=='1'){
  982. this.kStatus = "已安装";
  983. };
  984. this.kProducePersonnel = date.producePersonnel;
  985. }
  986. if (remark == '12') {
  987. this.lProduceDate = date.produceDate;
  988. if(date.status=='1'){
  989. this.lStatus = "已安装";
  990. };
  991. this.lProducePersonnel = date.producePersonnel;
  992. }
  993. if (remark == '13') {
  994. this.mProduceDate = date.produceDate;
  995. if(date.status=='1'){
  996. this.mStatus = "已安装";
  997. };
  998. this.mProducePersonnel = date.producePersonnel;
  999. }
  1000. if (remark == '14') {
  1001. this.nProduceDate = date.produceDate;
  1002. if(date.status=='1'){
  1003. this.nStatus = "已安装";
  1004. };
  1005. this.nProducePersonnel = date.producePersonnel;
  1006. }
  1007. if (remark == '15') {
  1008. this.oProduceDate = date.produceDate;
  1009. if(date.status=='1'){
  1010. this.oStatus = "已安装";
  1011. };
  1012. this.oProducePersonnel = date.producePersonnel;
  1013. }
  1014. if (remark == '16') {
  1015. this.pProduceDate = date.produceDate;
  1016. if(date.status=='1'){
  1017. this.pStatus = "已安装";
  1018. };
  1019. this.pProducePersonnel = date.producePersonnel;
  1020. }
  1021. if (remark == '17') {
  1022. this.qProduceDate = date.produceDate;
  1023. if(date.status=='1'){
  1024. this.qStatus = "已安装";
  1025. };
  1026. this.qProducePersonnel = date.producePersonnel;
  1027. }
  1028. if (remark == '18') {
  1029. this.rProduceDate = date.produceDate;
  1030. if(date.status=='1'){
  1031. this.rStatus ="已安装";
  1032. };
  1033. this.rProducePersonnel = date.producePersonnel;
  1034. }
  1035. if (remark == '19') {
  1036. this.sProduceDate = date.produceDate;
  1037. if(date.status=='1'){
  1038. this.sStatus = "已安装";
  1039. };
  1040. this.sProducePersonnel = date.producePersonnel;
  1041. }
  1042. if (remark == '20') {
  1043. this.tProduceDate = date.produceDate;
  1044. if(date.status=='1'){
  1045. this.tStatus = "已安装";
  1046. };
  1047. this.tProducePersonnel = date.producePersonnel;
  1048. }
  1049. if (remark == '21') {
  1050. this.uProduceDate = date.produceDate;
  1051. if(date.status=='1'){
  1052. this.uStatus = "已安装";
  1053. };
  1054. this.uProducePersonnel = date.producePersonnel;
  1055. }
  1056. if (remark == '22') {
  1057. this.vProduceDate = date.produceDate;
  1058. if(date.status=='1'){
  1059. this.vStatus = "已安装";
  1060. };
  1061. this.vProducePersonnel = date.producePersonnel;
  1062. }
  1063. if (remark == '23') {
  1064. this.wProduceDate = date.produceDate;
  1065. if(date.status=='1'){
  1066. this.wStatus ="已安装";
  1067. };
  1068. this.wProducePersonnel = date.producePersonnel;
  1069. }
  1070. if (remark == '24') {
  1071. this.xProduceDate = date.produceDate;
  1072. if(date.status=='1'){
  1073. this.xStatus = "已安装";
  1074. };
  1075. this.xProducePersonnel = date.producePersonnel;
  1076. }
  1077. if (remark == '25') {
  1078. this.yProduceDate = date.produceDate;
  1079. if(date.status=='1'){
  1080. this.yStatus = "已安装";
  1081. };
  1082. this.yProducePersonnel = date.producePersonnel;
  1083. }
  1084. if (remark == '26') {
  1085. this.zProduceDate = date.produceDate;
  1086. if(date.status=='1'){
  1087. this.zStatus ="已安装";
  1088. };
  1089. this.zProducePersonnel = date.producePersonnel;
  1090. }
  1091. if (remark == '27') {
  1092. this.abProduceDate = date.produceDate;
  1093. if(date.status=='1'){
  1094. this.abStatus = "已安装";
  1095. };
  1096. this.abProducePersonnel = date.producePersonnel;
  1097. }
  1098. if (remark == '28') {
  1099. this.acProduceDate = date.produceDate;
  1100. if(date.status=='1'){
  1101. this.acStatus = "已安装";
  1102. };
  1103. this.acProducePersonnel = date.producePersonnel;
  1104. }
  1105. if (remark == '29') {
  1106. this.adProduceDate = date.produceDate;
  1107. if(date.status=='1'){
  1108. this.adStatus = "已安装";
  1109. };
  1110. this.adProducePersonnel = date.producePersonnel;
  1111. }
  1112. if (remark == '30') {
  1113. this.aeProduceDate = date.produceDate;
  1114. if(date.status=='1'){
  1115. this.aeStatus = "已安装";
  1116. };
  1117. this.aeProducePersonnel = date.producePersonnel;
  1118. }
  1119. }
  1120. }
  1121. // else {
  1122. // uni.showModal({
  1123. // title: '提示',
  1124. // content: "未添加工序",
  1125. // });
  1126. // }
  1127. }
  1128. });
  1129. }
  1130. }
  1131. }
  1132. </script>
  1133. <style>
  1134. .body {
  1135. background-color: #FFFFFF;
  1136. padding: 20upx 20upx 20upx 20upx;
  1137. display: flex;
  1138. flex-direction: row;
  1139. justify-content: flex-start;
  1140. }
  1141. .title {
  1142. font-size: 35upx;
  1143. }
  1144. .input {
  1145. /* padding: 10upx 20upx 10upx 0upx; */
  1146. padding: 0 10upx;
  1147. /* padding-top: 10upx; */
  1148. background-color: #FFFFFF;
  1149. width: 400upx;
  1150. height: 50upx;
  1151. box-shadow: 0upx 0upx 20upx #D3D3D3;
  1152. border-radius: 5upx;
  1153. }
  1154. .line {
  1155. background: #ECECEC;
  1156. height: 10upx;
  1157. }
  1158. .modulesButton {
  1159. background-color: #FFFFFF;
  1160. padding: 20upx 20upx 20upx 20upx;
  1161. display: flex;
  1162. width: 250upx;
  1163. margin: auto;
  1164. flex-direction: row;
  1165. justify-content: flex-start;
  1166. }
  1167. .button1 {
  1168. margin: auto;
  1169. width: 75upx;
  1170. height: 50upx;
  1171. }
  1172. .p {
  1173. /* #ifdef H5 */
  1174. top: -13%;
  1175. /* #endif */
  1176. width: 50upx;
  1177. height: 30upx;
  1178. font-size: 25upx;
  1179. padding-right: 9upx;
  1180. padding-top: 6upx;
  1181. /* #ifndef H5 */
  1182. /* padding-top: 10upx; */
  1183. /* #endif */
  1184. position: absolute;
  1185. /* 水平居中 */
  1186. left: 50%;
  1187. -webkit-transform: translateX(-50%);
  1188. transform: translateX(-50%);
  1189. }
  1190. </style>