index.vue 8.4 KB

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