index.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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/feeding/index/index",
  104. },
  105. {
  106. class: "iconfont icon-gongdanguanli",
  107. title: "退料",
  108. link_url: "/pages/pda/material_return/index/index",
  109. },
  110. {
  111. class: "iconfont icon-gongdanguanli",
  112. title: "不合格品处置",
  113. link_url: "/pages/pda/nonconforming/index/index",
  114. },
  115. {
  116. class: "iconfont icon-gongdanguanli",
  117. title: "副产品回收",
  118. link_url: "/pages/pda/by_product_recovery/index/index",
  119. },
  120. {
  121. class: "iconfont icon-gongdanguanli",
  122. title: "工单交接",
  123. link_url: "/pages/pda/work_order_handover/index/index",
  124. },
  125. {
  126. class: "iconfont icon-gongdanguanli",
  127. title: "工单详情",
  128. link_url: "/pages/pda/work_order_details/index/index",
  129. },
  130. // {
  131. // class: "iconfont icon-gongdanguanli",
  132. // title: "生产报工",
  133. // link_url: "/pages/production/report/index",
  134. // "num": 1
  135. // },
  136. // {
  137. // class: "iconfont icon-gongdanguanli",
  138. // title: "生产工单",
  139. // link_url: "/pages/production/order/index",
  140. // // "num": 1
  141. // x},
  142. ],
  143. // executeList: [
  144. // {
  145. // class: "iconfont icon-gongdanguanli",
  146. // title: "成型",
  147. // link_url: "/pages/production/execute/extrusion/index",
  148. // // "num": 1
  149. // },
  150. // {
  151. // class: "iconfont icon-gongdanguanli",
  152. // title: "自然干燥",
  153. // link_url: "/pages/production/execute/drying/index",
  154. // // "num": 1
  155. // },
  156. // {
  157. // class: "iconfont icon-gongdanguanli",
  158. // title: "升温干燥",
  159. // link_url: "/pages/production/execute/heating/index",
  160. // // "num": 1
  161. // },
  162. // {
  163. // class: "iconfont icon-gongdanguanli",
  164. // title: "半加定长",
  165. // link_url: "/pages/production/execute/halfAdded/index",
  166. // // "num": 1
  167. // },
  168. // // {
  169. // // class: "iconfont icon-gongdanguanli",
  170. // // title: "领料",
  171. // // link_url: "/pages/production/execute/picking/index",
  172. // // // "num": 1
  173. // // },
  174. // ],
  175. //仓储管理
  176. warehousingList: [{
  177. class: "iconfont icon-wuliaoruku",
  178. title: "入库管理",
  179. link_url: "/pages/warehouse/enterHouse/index",
  180. //"num": 34
  181. },
  182. {
  183. class: "iconfont icon-shebeichuku",
  184. title: "出库管理",
  185. link_url: "/pages/warehouse/outHouse/index",
  186. //"num": 34
  187. },
  188. // {
  189. // "class": "iconfont icon-wuliaoruku",
  190. // "title": "物料入库",
  191. // "link_url": "/pages/warehouse/material/index",
  192. // //"num": 34
  193. // },
  194. // {
  195. // "class": "iconfont icon-shebeiruku",
  196. // "title": "设备入库",
  197. // "link_url": "/pages/warehouse/equipment/index",
  198. // //"num": 23
  199. // },
  200. // {
  201. // "class": "iconfont icon-shebeichuku",
  202. // "title": "设备出库",
  203. // "link_url": "/pages/warehouse/outbound/index",
  204. // //"num": 23
  205. // },
  206. {
  207. class: "iconfont icon-pandiangongdan",
  208. title: "盘点工单",
  209. link_url: "/pages/warehouse/workOrder/index",
  210. //"num": 133
  211. },
  212. {
  213. class: "iconfont icon-shebeiruku",
  214. title: "库存调拨",
  215. link_url: "/pages/warehouse/inventoryAllocation/index",
  216. //"num": 133
  217. },
  218. {
  219. class: "iconfont icon-shebeikucuntongji",
  220. title: "报损报溢",
  221. link_url: "/pages/warehouse/reportLoss/index",
  222. //"num": 133
  223. },
  224. {
  225. class: "iconfont icon-shebeikucun",
  226. title: "库存管理",
  227. link_url: "/pages/warehouse/inventory/index",
  228. //"num": 1
  229. },
  230. /* {
  231. class: 'iconfont icon-shebeikucuntongji',
  232. title: '设备库存统计',
  233. link_url: '/pages/warehouse/inventory/stat',
  234. //"num": 1
  235. }, */
  236. ],
  237. //运维类
  238. operationsList: [{
  239. class: "iconfont icon-xundianjian",
  240. title: "巡点检",
  241. link_url: "/pages/tour_tally/order/order",
  242. //"num": 34
  243. },
  244. {
  245. class: "iconfont icon-a-baoyangputong",
  246. title: "保养工单",
  247. link_url: "/pages/maintenance/order/order",
  248. //"num": 23
  249. },
  250. {
  251. class: "iconfont icon-weixiugongdan",
  252. title: "维修工单",
  253. link_url: "/pages/maintain_service/order/order",
  254. //"num": 23
  255. },
  256. /* {
  257. class: 'iconfont icon-beijian',
  258. title: '备品备件',
  259. link_url: '/pages/sparepart/order/order',
  260. //"num": 1
  261. }, */
  262. {
  263. class: "iconfont icon-baoxiu",
  264. title: "报修单",
  265. link_url: "/pages/repair/order/order",
  266. //"num": 1
  267. },
  268. /* {
  269. class: 'iconfont icon-wuliaoruku',
  270. title: '入库登记',
  271. link_url: '/pages/put_storage/order/index',
  272. //"num": 34
  273. },
  274. {
  275. class: 'iconfont icon-shebeichuku',
  276. title: '出库登记',
  277. link_url: '/pages/outbound/order/index',
  278. //"num": 34
  279. }, */
  280. ],
  281. };
  282. },
  283. created() {
  284. // uni.setStorageSync(
  285. // "token",
  286. // "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50SWQiOiIxIiwicm9sZUlkIjoiMCIsImdyb3VwSWQiOiIwIiwiaXNzIjoiYXV0aDAiLCJleHAiOjIwMTA2MjQ3ODcsInVzZXJJZCI6IjEifQ.4duZc2BjUIKWC2EP-8EGWgQpmqgGGLJLecxKXxFARmk"
  287. // );
  288. },
  289. methods: {
  290. toNav(url) {
  291. console.log(url)
  292. uni.navigateTo({
  293. url: url,
  294. });
  295. },
  296. toScan() {
  297. uni.navigateTo({
  298. url: "/pages/standing_book/detail/detail",
  299. });
  300. uni.scanCode({
  301. success: (res) => {
  302. let code = res.result;
  303. // code 第一个字符为0 为料框 否则为物料
  304. uni.navigateTo({
  305. url: "/pages/standing_book/detail/detail",
  306. });
  307. },
  308. fail: (err) => {
  309. console.log(err);
  310. },
  311. });
  312. },
  313. },
  314. };
  315. </script>
  316. <style lang="scss" scoped>
  317. @import "index.scss";
  318. </style>