index.vue 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <template>
  2. <view>
  3. <uni-nav-bar fixed="true" statusBar="true" title="工作中心" right-icon="scan" @clickRight="HandlScanCode">
  4. </uni-nav-bar>
  5. <view>
  6. <CellTip title="生产管理"></CellTip>
  7. <view class="nav">
  8. <view class="nav-content">
  9. <view class="nav-item" v-for="(item) in productionList" :key="item.link_url"
  10. @click="toNav(item.link_url)">
  11. <span :class="item.class"></span>
  12. <label>{{ item.title }}</label>
  13. <label>{{ item.num }}</label>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. <!-- <view>
  19. <CellTip title="生产执行"></CellTip>
  20. <view class="nav">
  21. <view class="nav-content">
  22. <view
  23. class="nav-item"
  24. v-for="(item, index) in executeList"
  25. @click="toNav(item.link_url)"
  26. >
  27. <span :class="item.class"></span>
  28. <label>{{ item.title }}</label>
  29. <label>{{ item.num }}</label>
  30. </view>
  31. </view>
  32. </view>
  33. </view> -->
  34. <view>
  35. <CellTip title="运维管理"></CellTip>
  36. <view class="nav">
  37. <view class="nav-content">
  38. <view class="nav-item" v-for="(item, index) in operationsList" @click="toNav(item.link_url)">
  39. <span :class="item.class"></span>
  40. <label>{{ item.title }}</label>
  41. <label>{{ item.num }}</label>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view>
  47. <CellTip title="仓储管理"></CellTip>
  48. <view class="nav">
  49. <view class="nav-content">
  50. <view class="nav-item" v-for="(item, index) in warehousingList" @click="toNav(item.link_url)">
  51. <span :class="item.class"></span>
  52. <label>{{ item.title }}</label>
  53. <label>{{ item.num }}</label>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- <view>
  59. <CellTip title="生产类"></CellTip>
  60. <view class="nav">
  61. <view class="nav-content">
  62. <view
  63. class="nav-item"
  64. v-for="(item, index) in productionList"
  65. @click="toNav(item.link_url)"
  66. >
  67. <span :class="item.class"></span>
  68. <label>{{ item.title }}</label>
  69. <label>{{ item.num }}</label>
  70. </view>
  71. </view>
  72. </view>
  73. </view> -->
  74. </view>
  75. </template>
  76. <script>
  77. import CellTip from "@/components/CellTip.vue";
  78. export default {
  79. components: {
  80. CellTip,
  81. },
  82. data() {
  83. return {
  84. src1: "https://cdn.uviewui.com/uview/album/1.jpg",
  85. //生产类
  86. productionList: [
  87. {
  88. class: "iconfont icon-gongdanguanli",
  89. title: "生产工单",
  90. link_url: "/pages/pda/workOrder/index/index",
  91. },
  92. {
  93. class: "iconfont icon-gongdanguanli",
  94. title: "领料",
  95. link_url: "/pages/pda/picking/index/index",
  96. },
  97. {
  98. class: "iconfont icon-gongdanguanli",
  99. title: "投料",
  100. link_url: "/pages/pda/feeding/index/index",
  101. },
  102. {
  103. class: "iconfont icon-gongdanguanli",
  104. title: "退料",
  105. link_url: "/pages/pda/material_return/index/index",
  106. },
  107. {
  108. class: "iconfont icon-gongdanguanli",
  109. title: "不合格品处置",
  110. link_url: "/pages/pda/nonconforming/index/index",
  111. },
  112. {
  113. class: "iconfont icon-gongdanguanli",
  114. title: "副产品回收",
  115. link_url: "/pages/pda/by_product_recovery/index/index",
  116. },
  117. {
  118. class: "iconfont icon-gongdanguanli",
  119. title: "工单交接",
  120. link_url: "/pages/pda/work_order_handover/index/index",
  121. },
  122. {
  123. class: "iconfont icon-gongdanguanli",
  124. title: "工单详情",
  125. link_url: "/pages/pda/work_order_details/index/index",
  126. },
  127. // {
  128. // class: "iconfont icon-gongdanguanli",
  129. // title: "生产报工",
  130. // link_url: "/pages/production/report/index",
  131. // "num": 1
  132. // },
  133. // {
  134. // class: "iconfont icon-gongdanguanli",
  135. // title: "生产工单",
  136. // link_url: "/pages/production/order/index",
  137. // // "num": 1
  138. // x},
  139. ],
  140. // executeList: [
  141. // {
  142. // class: "iconfont icon-gongdanguanli",
  143. // title: "成型",
  144. // link_url: "/pages/production/execute/extrusion/index",
  145. // // "num": 1
  146. // },
  147. // {
  148. // class: "iconfont icon-gongdanguanli",
  149. // title: "自然干燥",
  150. // link_url: "/pages/production/execute/drying/index",
  151. // // "num": 1
  152. // },
  153. // {
  154. // class: "iconfont icon-gongdanguanli",
  155. // title: "升温干燥",
  156. // link_url: "/pages/production/execute/heating/index",
  157. // // "num": 1
  158. // },
  159. // {
  160. // class: "iconfont icon-gongdanguanli",
  161. // title: "半加定长",
  162. // link_url: "/pages/production/execute/halfAdded/index",
  163. // // "num": 1
  164. // },
  165. // // {
  166. // // class: "iconfont icon-gongdanguanli",
  167. // // title: "领料",
  168. // // link_url: "/pages/production/execute/picking/index",
  169. // // // "num": 1
  170. // // },
  171. // ],
  172. //仓储管理
  173. warehousingList: [{
  174. class: "iconfont icon-wuliaoruku",
  175. title: "入库管理",
  176. link_url: "/pages/warehouse/enterHouse/index",
  177. //"num": 34
  178. },
  179. {
  180. class: "iconfont icon-shebeichuku",
  181. title: "出库管理",
  182. link_url: "/pages/warehouse/outHouse/index",
  183. //"num": 34
  184. },
  185. // {
  186. // "class": "iconfont icon-wuliaoruku",
  187. // "title": "物料入库",
  188. // "link_url": "/pages/warehouse/material/index",
  189. // //"num": 34
  190. // },
  191. // {
  192. // "class": "iconfont icon-shebeiruku",
  193. // "title": "设备入库",
  194. // "link_url": "/pages/warehouse/equipment/index",
  195. // //"num": 23
  196. // },
  197. // {
  198. // "class": "iconfont icon-shebeichuku",
  199. // "title": "设备出库",
  200. // "link_url": "/pages/warehouse/outbound/index",
  201. // //"num": 23
  202. // },
  203. {
  204. class: "iconfont icon-pandiangongdan",
  205. title: "盘点工单",
  206. link_url: "/pages/warehouse/workOrder/index",
  207. //"num": 133
  208. },
  209. {
  210. class: "iconfont icon-shebeiruku",
  211. title: "库存调拨",
  212. link_url: "/pages/warehouse/inventoryAllocation/index",
  213. //"num": 133
  214. },
  215. {
  216. class: "iconfont icon-shebeikucuntongji",
  217. title: "报损报溢",
  218. link_url: "/pages/warehouse/reportLoss/index",
  219. //"num": 133
  220. },
  221. {
  222. class: "iconfont icon-shebeikucun",
  223. title: "库存管理",
  224. link_url: "/pages/warehouse/inventory/index",
  225. //"num": 1
  226. },
  227. /* {
  228. class: 'iconfont icon-shebeikucuntongji',
  229. title: '设备库存统计',
  230. link_url: '/pages/warehouse/inventory/stat',
  231. //"num": 1
  232. }, */
  233. ],
  234. //运维类
  235. operationsList: [{
  236. class: "iconfont icon-xundianjian",
  237. title: "巡点检",
  238. link_url: "/pages/tour_tally/order/order",
  239. //"num": 34
  240. },
  241. {
  242. class: "iconfont icon-a-baoyangputong",
  243. title: "保养工单",
  244. link_url: "/pages/maintenance/order/order",
  245. //"num": 23
  246. },
  247. {
  248. class: "iconfont icon-weixiugongdan",
  249. title: "维修工单",
  250. link_url: "/pages/maintain_service/order/order",
  251. //"num": 23
  252. },
  253. /* {
  254. class: 'iconfont icon-beijian',
  255. title: '备品备件',
  256. link_url: '/pages/sparepart/order/order',
  257. //"num": 1
  258. }, */
  259. {
  260. class: "iconfont icon-baoxiu",
  261. title: "报修单",
  262. link_url: "/pages/repair/order/order",
  263. //"num": 1
  264. },
  265. /* {
  266. class: 'iconfont icon-wuliaoruku',
  267. title: '入库登记',
  268. link_url: '/pages/put_storage/order/index',
  269. //"num": 34
  270. },
  271. {
  272. class: 'iconfont icon-shebeichuku',
  273. title: '出库登记',
  274. link_url: '/pages/outbound/order/index',
  275. //"num": 34
  276. }, */
  277. ],
  278. };
  279. },
  280. created() {
  281. // uni.setStorageSync(
  282. // "token",
  283. // "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50SWQiOiIxIiwicm9sZUlkIjoiMCIsImdyb3VwSWQiOiIwIiwiaXNzIjoiYXV0aDAiLCJleHAiOjIwMTA2MjQ3ODcsInVzZXJJZCI6IjEifQ.4duZc2BjUIKWC2EP-8EGWgQpmqgGGLJLecxKXxFARmk"
  284. // );
  285. },
  286. methods: {
  287. toNav(url) {
  288. console.log(url)
  289. uni.navigateTo({
  290. url: url,
  291. });
  292. },
  293. HandlScanCode() {
  294. let _this = this
  295. uni.scanCode({
  296. success: function(res) {
  297. _this.scantoRouter(res.result)
  298. }
  299. })
  300. },
  301. scantoRouter(result) {
  302. uni.navigateTo({
  303. url: `/pages/pda/workOrder/extrusionMolding/index?id=${result}`
  304. })
  305. }
  306. },
  307. };
  308. </script>
  309. <style lang="scss" scoped>
  310. @import "index.scss";
  311. </style>