workingProcedure.vue 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227
  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. } else {
  1121. uni.showModal({
  1122. title: '提示',
  1123. content: res.data.message,
  1124. });
  1125. }
  1126. }
  1127. });
  1128. }
  1129. }
  1130. }
  1131. </script>
  1132. <style>
  1133. .body {
  1134. background-color: #FFFFFF;
  1135. padding: 20upx 20upx 20upx 20upx;
  1136. display: flex;
  1137. flex-direction: row;
  1138. justify-content: flex-start;
  1139. }
  1140. .title {
  1141. font-size: 35upx;
  1142. }
  1143. .input {
  1144. /* padding: 10upx 20upx 10upx 0upx; */
  1145. padding-left: 20upx;
  1146. padding-top: 10upx;
  1147. background-color: #FFFFFF;
  1148. width: 400upx;
  1149. height: 50upx;
  1150. box-shadow: 0upx 0upx 20upx #D3D3D3;
  1151. border-radius: 5upx;
  1152. }
  1153. .line {
  1154. background: #ECECEC;
  1155. height: 10upx;
  1156. }
  1157. .modulesButton {
  1158. background-color: #FFFFFF;
  1159. padding: 20upx 20upx 20upx 20upx;
  1160. display: flex;
  1161. width: 250upx;
  1162. margin: auto;
  1163. flex-direction: row;
  1164. justify-content: flex-start;
  1165. }
  1166. .button1 {
  1167. margin: auto;
  1168. width: 75upx;
  1169. height: 50upx;
  1170. }
  1171. .p {
  1172. /* #ifdef H5 */
  1173. top: -13%;
  1174. /* #endif */
  1175. width: 50upx;
  1176. height: 30upx;
  1177. font-size: 25upx;
  1178. padding-right: 9upx;
  1179. padding-top: 6upx;
  1180. /* #ifndef H5 */
  1181. /* padding-top: 10upx; */
  1182. /* #endif */
  1183. position: absolute;
  1184. /* 水平居中 */
  1185. left: 50%;
  1186. -webkit-transform: translateX(-50%);
  1187. transform: translateX(-50%);
  1188. }
  1189. </style>