{{ a.name }}
{{ b.name }}
diff --git a/.env.dev b/.env.dev
index d331d5a0..0181e049 100644
--- a/.env.dev
+++ b/.env.dev
@@ -1,8 +1,8 @@
###
# @Author: Do not edit
# @Date: 2023-08-29 09:40:39
- # @LastEditTime: 2023-11-11 20:50:30
- # @LastEditors: DY
+ # @LastEditTime: 2023-11-16 08:52:02
+ # @LastEditors: zhp
# @Description:
###
# 开发环境配置
@@ -13,12 +13,12 @@ VUE_APP_TITLE = MES系统
# 芋道管理系统/开发环境
# VUE_APP_BASE_API = 'http://100.64.0.26:48082'
-# VUE_APP_BASE_API = 'http://192.168.0.33:48082'
+VUE_APP_BASE_API = 'http://192.168.0.33:48082'
# VUE_APP_BASE_API = 'http://192.168.4.173:48080'
# VUE_APP_BASE_API = 'http://192.168.2.173:48080'
# VUE_APP_BASE_API = 'http://192.168.1.49:48080'
# VUE_APP_BASE_API = 'http://192.168.1.8:48080'
-VUE_APP_BASE_API = 'http://192.168.0.33:48082'
+# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
# VUE_APP_BASE_API = 'http://192.168.1.56:48080'
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
# 路由懒加载
diff --git a/src/api/base/coreHotMaterial.js b/src/api/base/coreHotMaterial.js
new file mode 100644
index 00000000..3610dc78
--- /dev/null
+++ b/src/api/base/coreHotMaterial.js
@@ -0,0 +1,68 @@
+/*
+ * @Author: Do not edit
+ * @Date: 2023-10-21 11:50:46
+ * @LastEditTime: 2023-11-15 15:56:14
+ * @LastEditors: DY
+ * @Description:
+ */
+import request from '@/utils/request'
+
+// 创建原料
+export function createHotMaterial(data) {
+ return request({
+ url: '/base/core-hot-material/create',
+ method: 'post',
+ data: data
+ })
+}
+
+// 更新原料
+export function updateHotMaterial(data) {
+ return request({
+ url: '/base/core-hot-material/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除原料
+export function deleteHotMaterial(id) {
+ return request({
+ url: '/base/core-hot-material/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得原料
+export function getHotMaterial(id) {
+ return request({
+ url: '/base/core-hot-material/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得原料code
+export function getCode() {
+ return request({
+ url: '/base/core-hot-material/getCode',
+ method: 'get'
+ })
+}
+
+// 获得原料分页
+export function getHotMaterialPage(query) {
+ return request({
+ url: '/base/core-hot-material/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 获得所有列表
+export function getHotMaterialList(query) {
+ return request({
+ url: '/base/core-hot-material/listAll',
+ method: 'get',
+ params: query
+ })
+}
\ No newline at end of file
diff --git a/src/api/base/coreWorkOrder.js b/src/api/base/coreWorkOrder.js
index 8f250b23..656d4a69 100644
--- a/src/api/base/coreWorkOrder.js
+++ b/src/api/base/coreWorkOrder.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-10-21 11:50:46
- * @LastEditTime: 2023-11-06 17:49:42
+ * @LastEditTime: 2023-11-15 17:19:19
* @LastEditors: DY
* @Description:
*/
@@ -67,6 +67,14 @@ export function getCoreWOList(query) {
})
}
+// 根据工单id获得所有列表
+export function getCoreWOListById(ids) {
+ return request({
+ url: '/base/core-work-order/list?ids='+ ids ,
+ method: 'get'
+ })
+}
+
// 创建工单预使用原料
export function createCoreWOMa(data) {
return request({
@@ -135,4 +143,13 @@ export function statusChange(data) {
method: 'post',
data: data
})
-}
\ No newline at end of file
+}
+
+// 创建分配产量
+export function createConCoreWOr(data) {
+ return request({
+ url: '/base/core-order-con-work-order/create',
+ method: 'post',
+ data: data
+ })
+}
diff --git a/src/api/equipment/base/inspection/record.js b/src/api/equipment/base/inspection/record.js
index 5c0e2cb2..7cf3941c 100644
--- a/src/api/equipment/base/inspection/record.js
+++ b/src/api/equipment/base/inspection/record.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-08 15:56:52
- * @LastEditTime: 2023-11-11 19:52:54
+ * @LastEditTime: 2023-11-13 09:15:17
* @LastEditors: DY
* @Description:
*/
diff --git a/src/api/equipment/base/inspection/settings.js b/src/api/equipment/base/inspection/settings.js
index 8d2ad8c9..4e1fd898 100644
--- a/src/api/equipment/base/inspection/settings.js
+++ b/src/api/equipment/base/inspection/settings.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-08 15:56:52
- * @LastEditTime: 2023-11-10 09:04:50
+ * @LastEditTime: 2023-11-13 08:52:12
* @LastEditors: DY
* @Description:
*/
@@ -58,10 +58,10 @@ export function getCheckDetPage(query) {
})
}
-// 获得x巡检所有列表
+// 获得设备巡检所有列表
export function getcheckList(query) {
return request({
- url: '/base/equipment-check/list',
+ url: '/base/equipment-check/listAll',
method: 'get',
params: query
})
diff --git a/src/api/monitoring/statisticalData.js b/src/api/monitoring/statisticalData.js
index 4f19d699..cdf92812 100644
--- a/src/api/monitoring/statisticalData.js
+++ b/src/api/monitoring/statisticalData.js
@@ -1,7 +1,7 @@
/*
* @Author: zhp
* @Date: 2023-11-07 14:10:18
- * @LastEditTime: 2023-11-07 16:29:55
+ * @LastEditTime: 2023-11-14 14:46:04
* @LastEditors: zhp
* @Description:
*/
diff --git a/src/assets/icons/svg/exitbtn.svg b/src/assets/icons/svg/exitbtn.svg
new file mode 100644
index 00000000..8b8b0eff
--- /dev/null
+++ b/src/assets/icons/svg/exitbtn.svg
@@ -0,0 +1,12 @@
+
+
\ No newline at end of file
diff --git a/src/assets/icons/svg/helpbtn.svg b/src/assets/icons/svg/helpbtn.svg
new file mode 100644
index 00000000..5960b5b3
--- /dev/null
+++ b/src/assets/icons/svg/helpbtn.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/src/assets/images/choicepart/Core.png b/src/assets/images/choicepart/Core.png
new file mode 100644
index 00000000..f1d1b73d
Binary files /dev/null and b/src/assets/images/choicepart/Core.png differ
diff --git a/src/assets/images/choicepart/Delivery.png b/src/assets/images/choicepart/Delivery.png
new file mode 100644
index 00000000..b0331ade
Binary files /dev/null and b/src/assets/images/choicepart/Delivery.png differ
diff --git a/src/assets/images/choicepart/Energy.png b/src/assets/images/choicepart/Energy.png
new file mode 100644
index 00000000..a6511565
Binary files /dev/null and b/src/assets/images/choicepart/Energy.png differ
diff --git a/src/assets/images/choicepart/Equipment.png b/src/assets/images/choicepart/Equipment.png
new file mode 100644
index 00000000..763e5396
Binary files /dev/null and b/src/assets/images/choicepart/Equipment.png differ
diff --git a/src/assets/images/choicepart/Extend.png b/src/assets/images/choicepart/Extend.png
new file mode 100644
index 00000000..ae319647
Binary files /dev/null and b/src/assets/images/choicepart/Extend.png differ
diff --git a/src/assets/images/choicepart/Group.png b/src/assets/images/choicepart/Group.png
new file mode 100644
index 00000000..3c16e819
Binary files /dev/null and b/src/assets/images/choicepart/Group.png differ
diff --git a/src/assets/images/choicepart/Material.png b/src/assets/images/choicepart/Material.png
new file mode 100644
index 00000000..b4b1364a
Binary files /dev/null and b/src/assets/images/choicepart/Material.png differ
diff --git a/src/assets/images/choicepart/Order.png b/src/assets/images/choicepart/Order.png
new file mode 100644
index 00000000..7c8a3216
Binary files /dev/null and b/src/assets/images/choicepart/Order.png differ
diff --git a/src/assets/images/choicepart/Packaging.png b/src/assets/images/choicepart/Packaging.png
new file mode 100644
index 00000000..60ccd89e
Binary files /dev/null and b/src/assets/images/choicepart/Packaging.png differ
diff --git a/src/assets/images/choicepart/Quality.png b/src/assets/images/choicepart/Quality.png
new file mode 100644
index 00000000..e6680dfa
Binary files /dev/null and b/src/assets/images/choicepart/Quality.png differ
diff --git a/src/assets/images/choicepart/Report.png b/src/assets/images/choicepart/Report.png
new file mode 100644
index 00000000..a103eede
Binary files /dev/null and b/src/assets/images/choicepart/Report.png differ
diff --git a/src/assets/images/choicepart/System.png b/src/assets/images/choicepart/System.png
new file mode 100644
index 00000000..30a1a7e8
Binary files /dev/null and b/src/assets/images/choicepart/System.png differ
diff --git a/src/assets/images/choicepart/Warehouse.png b/src/assets/images/choicepart/Warehouse.png
new file mode 100644
index 00000000..d808730d
Binary files /dev/null and b/src/assets/images/choicepart/Warehouse.png differ
diff --git a/src/assets/images/choicepart/avatar.png b/src/assets/images/choicepart/avatar.png
new file mode 100644
index 00000000..4b1f623a
Binary files /dev/null and b/src/assets/images/choicepart/avatar.png differ
diff --git a/src/assets/images/choicepart/choice-item-back.png b/src/assets/images/choicepart/choice-item-back.png
new file mode 100644
index 00000000..1cddcef5
Binary files /dev/null and b/src/assets/images/choicepart/choice-item-back.png differ
diff --git a/src/assets/images/choicepart/choicepart-back.png b/src/assets/images/choicepart/choicepart-back.png
new file mode 100644
index 00000000..2f7a3de4
Binary files /dev/null and b/src/assets/images/choicepart/choicepart-back.png differ
diff --git a/src/assets/images/cnbm.png b/src/assets/images/cnbm.png
new file mode 100644
index 00000000..ed7d3fdf
Binary files /dev/null and b/src/assets/images/cnbm.png differ
diff --git a/src/assets/img/1.jpg b/src/assets/img/1.jpg
new file mode 100644
index 00000000..005bc57c
Binary files /dev/null and b/src/assets/img/1.jpg differ
diff --git a/src/assets/img/OperationalOverview/back.png b/src/assets/img/OperationalOverview/back.png
new file mode 100644
index 00000000..ad2afe91
Binary files /dev/null and b/src/assets/img/OperationalOverview/back.png differ
diff --git a/src/assets/img/OperationalOverview/title.png b/src/assets/img/OperationalOverview/title.png
new file mode 100644
index 00000000..b8a7e9dd
Binary files /dev/null and b/src/assets/img/OperationalOverview/title.png differ
diff --git a/src/assets/img/Toughenedfurnace.png b/src/assets/img/Toughenedfurnace.png
new file mode 100644
index 00000000..80263bd9
Binary files /dev/null and b/src/assets/img/Toughenedfurnace.png differ
diff --git a/src/assets/img/back.jpg b/src/assets/img/back.jpg
new file mode 100644
index 00000000..61df5c8c
Binary files /dev/null and b/src/assets/img/back.jpg differ
diff --git a/src/assets/img/back.png b/src/assets/img/back.png
new file mode 100644
index 00000000..e9d7d397
Binary files /dev/null and b/src/assets/img/back.png differ
diff --git a/src/assets/img/back1.png b/src/assets/img/back1.png
new file mode 100644
index 00000000..8b811db9
Binary files /dev/null and b/src/assets/img/back1.png differ
diff --git a/src/assets/img/bg-bottom-item.png b/src/assets/img/bg-bottom-item.png
new file mode 100644
index 00000000..a45ee8ee
Binary files /dev/null and b/src/assets/img/bg-bottom-item.png differ
diff --git a/src/assets/img/choicepart/ArtManager.png b/src/assets/img/choicepart/ArtManager.png
new file mode 100644
index 00000000..ae319647
Binary files /dev/null and b/src/assets/img/choicepart/ArtManager.png differ
diff --git a/src/assets/img/choicepart/ArticleManager.png b/src/assets/img/choicepart/ArticleManager.png
new file mode 100644
index 00000000..30a1a7e8
Binary files /dev/null and b/src/assets/img/choicepart/ArticleManager.png differ
diff --git a/src/assets/img/choicepart/DataAnalysis.png b/src/assets/img/choicepart/DataAnalysis.png
new file mode 100644
index 00000000..672cc103
Binary files /dev/null and b/src/assets/img/choicepart/DataAnalysis.png differ
diff --git a/src/assets/img/choicepart/EquipmentManager.png b/src/assets/img/choicepart/EquipmentManager.png
new file mode 100644
index 00000000..763e5396
Binary files /dev/null and b/src/assets/img/choicepart/EquipmentManager.png differ
diff --git a/src/assets/img/choicepart/MaterialsManage.png b/src/assets/img/choicepart/MaterialsManage.png
new file mode 100644
index 00000000..d808730d
Binary files /dev/null and b/src/assets/img/choicepart/MaterialsManage.png differ
diff --git a/src/assets/img/choicepart/OperationalOverview.png b/src/assets/img/choicepart/OperationalOverview.png
new file mode 100644
index 00000000..77af0878
Binary files /dev/null and b/src/assets/img/choicepart/OperationalOverview.png differ
diff --git a/src/assets/img/choicepart/WarehouseManager.png b/src/assets/img/choicepart/WarehouseManager.png
new file mode 100644
index 00000000..8f18d70f
Binary files /dev/null and b/src/assets/img/choicepart/WarehouseManager.png differ
diff --git a/src/assets/img/choicepart/basicData.png b/src/assets/img/choicepart/basicData.png
new file mode 100644
index 00000000..f1d1b73d
Binary files /dev/null and b/src/assets/img/choicepart/basicData.png differ
diff --git a/src/assets/img/choicepart/choice-item-back.png b/src/assets/img/choicepart/choice-item-back.png
new file mode 100644
index 00000000..1cddcef5
Binary files /dev/null and b/src/assets/img/choicepart/choice-item-back.png differ
diff --git a/src/assets/img/choicepart/choicepart-back.png b/src/assets/img/choicepart/choicepart-back.png
new file mode 100644
index 00000000..b16893b4
Binary files /dev/null and b/src/assets/img/choicepart/choicepart-back.png differ
diff --git a/src/assets/img/choicepart/energyManage.png b/src/assets/img/choicepart/energyManage.png
new file mode 100644
index 00000000..f1d1b73d
Binary files /dev/null and b/src/assets/img/choicepart/energyManage.png differ
diff --git a/src/assets/img/choicepart/factoryManage.png b/src/assets/img/choicepart/factoryManage.png
new file mode 100644
index 00000000..a804d851
Binary files /dev/null and b/src/assets/img/choicepart/factoryManage.png differ
diff --git a/src/assets/img/choicepart/formManage.png b/src/assets/img/choicepart/formManage.png
new file mode 100644
index 00000000..7c8a3216
Binary files /dev/null and b/src/assets/img/choicepart/formManage.png differ
diff --git a/src/assets/img/choicepart/orderManage.png b/src/assets/img/choicepart/orderManage.png
new file mode 100644
index 00000000..23038d23
Binary files /dev/null and b/src/assets/img/choicepart/orderManage.png differ
diff --git a/src/assets/img/choicepart/packingManage.png b/src/assets/img/choicepart/packingManage.png
new file mode 100644
index 00000000..60ccd89e
Binary files /dev/null and b/src/assets/img/choicepart/packingManage.png differ
diff --git a/src/assets/img/choicepart/qualityManage.png b/src/assets/img/choicepart/qualityManage.png
new file mode 100644
index 00000000..e6680dfa
Binary files /dev/null and b/src/assets/img/choicepart/qualityManage.png differ
diff --git a/src/assets/img/cnbm.png b/src/assets/img/cnbm.png
new file mode 100644
index 00000000..ed7d3fdf
Binary files /dev/null and b/src/assets/img/cnbm.png differ
diff --git a/src/assets/img/empty.png b/src/assets/img/empty.png
new file mode 100644
index 00000000..de349a33
Binary files /dev/null and b/src/assets/img/empty.png differ
diff --git a/src/assets/img/energy.png b/src/assets/img/energy.png
new file mode 100644
index 00000000..cb341110
Binary files /dev/null and b/src/assets/img/energy.png differ
diff --git a/src/assets/img/head-w.png b/src/assets/img/head-w.png
new file mode 100644
index 00000000..85dca606
Binary files /dev/null and b/src/assets/img/head-w.png differ
diff --git a/src/assets/img/head.png b/src/assets/img/head.png
new file mode 100644
index 00000000..0e5d2483
Binary files /dev/null and b/src/assets/img/head.png differ
diff --git a/src/assets/img/jiantou.svg b/src/assets/img/jiantou.svg
new file mode 100644
index 00000000..9652390b
--- /dev/null
+++ b/src/assets/img/jiantou.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/src/assets/img/login-back.jpg b/src/assets/img/login-back.jpg
new file mode 100644
index 00000000..cfed13e1
Binary files /dev/null and b/src/assets/img/login-back.jpg differ
diff --git a/src/assets/img/login-back.png b/src/assets/img/login-back.png
new file mode 100644
index 00000000..a98739e7
Binary files /dev/null and b/src/assets/img/login-back.png differ
diff --git a/src/assets/img/login-new.jpg b/src/assets/img/login-new.jpg
new file mode 100644
index 00000000..b39ac147
Binary files /dev/null and b/src/assets/img/login-new.jpg differ
diff --git a/src/assets/img/login.gif b/src/assets/img/login.gif
new file mode 100644
index 00000000..8c931207
Binary files /dev/null and b/src/assets/img/login.gif differ
diff --git a/src/assets/img/login1.gif b/src/assets/img/login1.gif
new file mode 100644
index 00000000..2ca2b406
Binary files /dev/null and b/src/assets/img/login1.gif differ
diff --git a/src/assets/img/logo.png b/src/assets/img/logo.png
new file mode 100644
index 00000000..9fdd8338
Binary files /dev/null and b/src/assets/img/logo.png differ
diff --git a/src/assets/img/medal/champion.png b/src/assets/img/medal/champion.png
new file mode 100644
index 00000000..38006430
Binary files /dev/null and b/src/assets/img/medal/champion.png differ
diff --git a/src/assets/img/medal/secondPlace.png b/src/assets/img/medal/secondPlace.png
new file mode 100644
index 00000000..425b76c5
Binary files /dev/null and b/src/assets/img/medal/secondPlace.png differ
diff --git a/src/assets/img/medal/thirdPlace.png b/src/assets/img/medal/thirdPlace.png
new file mode 100644
index 00000000..db1d9edc
Binary files /dev/null and b/src/assets/img/medal/thirdPlace.png differ
diff --git a/src/assets/img/status.png b/src/assets/img/status.png
new file mode 100644
index 00000000..283cdd41
Binary files /dev/null and b/src/assets/img/status.png differ
diff --git a/src/assets/img/uploadIcon.png b/src/assets/img/uploadIcon.png
new file mode 100644
index 00000000..fb344f9f
Binary files /dev/null and b/src/assets/img/uploadIcon.png differ
diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss
index 17ef2e4f..d9b3a411 100644
--- a/src/assets/styles/ruoyi.scss
+++ b/src/assets/styles/ruoyi.scss
@@ -104,8 +104,8 @@ h6 {
word-break: break-word;
background-color: #f8f8f9;
color: #515a6e;
- height: 40px;
- font-size: 13px;
+ // height: 40px;
+ // font-size: 13px;
}
}
.el-table__body-wrapper {
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index 4902d3d8..d7c255e2 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -35,7 +35,7 @@ export default {
const first = matched[0]
if (!this.isDashboard(first)) {
- matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched)
+ matched = [{ path: '/', meta: { title: '首页' }}].concat(matched)
}
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 655a9ab5..c23172b9 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -5,8 +5,12 @@
{{ a.name }}
{{ b.name }}
{{ c.name }}
{{ d.name }}
{{ a.name }}
{{ b.name }}
{{ c.name }}
@@ -76,11 +109,14 @@ v-for="d in wareData.four.slice((i - 1) * 10, i * 10)" :key="d.id + d.code" :title="d.name" - style="background: #fff8e8; float: left"> + :style="{ + background: bgColor[d.enabled], + float: 'left', + }">{{ d.name }}
@@ -106,7 +142,14 @@ export default { four: [], }, total: 0, - bgColor: ['#7362F3', '#16DC09', '#FFA08F'], + bgColor: ['#D7DBE5', '#D8E5FF'], + dotColor: ['#16DC09', '#FFD781', '#7362F3', '#FFA08F'], + cassetteStatusList: [ + { id: '1', name: '可用', color: '#16DC09' }, + { id: '2', name: '占用-待入库', color: '#FFD781' }, + { id: '3', name: '占用-有货', color: '#7362F3' }, + { id: '4', name: '占用-待出库', color: '#FFA08F' }, + ], formConfig: [ { type: 'button', @@ -130,26 +173,26 @@ export default { there: [], four: [], }), - getWarehouseList().then((response) => { - response.data.forEach((item) => { - if (item.storageType === 5) { - listByWarehouse(item.id).then((response) => { - response.data.forEach((a, b) => { - if (b % 4 === 0) { - this.wareData.one.push(a); - } else if (b % 4 === 1) { - this.wareData.two.push(a); - } else if (b % 4 === 2) { - this.wareData.there.push(a); - } else if (b % 4 === 3) { - this.wareData.four.push(a); + getWarehouseList().then((response) => { + response.data.forEach((item) => { + if (item.storageType === 5) { + listByWarehouse(item.id).then((response) => { + response.data.forEach((a, b) => { + if (b % 4 === 0) { + this.wareData.one.push(a); + } else if (b % 4 === 1) { + this.wareData.two.push(a); + } else if (b % 4 === 2) { + this.wareData.there.push(a); + } else if (b % 4 === 3) { + this.wareData.four.push(a); + } + }); + this.total = Math.ceil(response.data.length / 40); + }); } }); - this.total = Math.ceil(response.data.length / 40); - }); - } - }); - }); + }); }, buttonClick(val) { switch (val.btnName) { @@ -225,4 +268,25 @@ export default { top: 22px; right: 120px; } +.dashboard-legend { + margin: 5px 5px 10px 5px; + .dashboard-legend-cassette { + display: inline-block; + margin-right: 24px; + .dashboard-legend-cassette-cricle { + display: inline-block; + width: 12px; + height: 12px; + border-radius: 6px; + } + } + .dashboard-legend-port { + display: inline-block; + height: 24px; + line-height: 24px; + border-radius: 4px; + padding: 0 16px; + margin-left: 24px; + } +} diff --git a/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue index 64d43daf..56bd9a47 100644 --- a/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/out-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@{{ a.name }}
{{ b.name }}
{{ c.name }}
@@ -76,11 +109,14 @@ v-for="d in wareData.four.slice((i - 1) * 10, i * 10)" :key="d.id + d.code" :title="d.name" - style="background: #fff8e8; float: left"> + :style="{ + background: bgColor[d.enabled], + float: 'left', + }">{{ d.name }}
@@ -106,7 +142,14 @@ export default { four: [], }, total: 0, - bgColor: ['#7362F3', '#16DC09', '#FFA08F'], + bgColor: ['#D7DBE5', '#D8E5FF'], + dotColor: ['#16DC09', '#FFD781', '#7362F3', '#FFA08F'], + cassetteStatusList: [ + { id: '1', name: '可用', color: '#16DC09' }, + { id: '2', name: '占用-待入库', color: '#FFD781' }, + { id: '3', name: '占用-有货', color: '#7362F3' }, + { id: '4', name: '占用-待出库', color: '#FFA08F' }, + ], formConfig: [ { type: 'button', @@ -130,26 +173,26 @@ export default { there: [], four: [], }), - getWarehouseList().then((response) => { - response.data.forEach((item) => { - if (item.storageType === 3) { - listByWarehouse(item.id).then((response) => { - response.data.forEach((a, b) => { - if (b % 4 === 0) { - this.wareData.one.push(a); - } else if (b % 4 === 1) { - this.wareData.two.push(a); - } else if (b % 4 === 2) { - this.wareData.there.push(a); - } else if (b % 4 === 3) { - this.wareData.four.push(a); + getWarehouseList().then((response) => { + response.data.forEach((item) => { + if (item.storageType === 3) { + listByWarehouse(item.id).then((response) => { + response.data.forEach((a, b) => { + if (b % 4 === 0) { + this.wareData.one.push(a); + } else if (b % 4 === 1) { + this.wareData.two.push(a); + } else if (b % 4 === 2) { + this.wareData.there.push(a); + } else if (b % 4 === 3) { + this.wareData.four.push(a); + } + }); + this.total = Math.ceil(response.data.length / 40); + }); } }); - this.total = Math.ceil(response.data.length / 40); - }); - } - }); - }); + }); }, buttonClick(val) { switch (val.btnName) { @@ -225,4 +268,25 @@ export default { top: 22px; right: 120px; } +.dashboard-legend { + margin: 5px 5px 10px 5px; + .dashboard-legend-cassette { + display: inline-block; + margin-right: 24px; + .dashboard-legend-cassette-cricle { + display: inline-block; + width: 12px; + height: 12px; + border-radius: 6px; + } + } + .dashboard-legend-port { + display: inline-block; + height: 24px; + line-height: 24px; + border-radius: 4px; + padding: 0 16px; + margin-left: 24px; + } +} diff --git a/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue index da46a2d8..eda55804 100644 --- a/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/package-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@{{ a.name }}
{{ b.name }}
{{ c.name }}
@@ -76,11 +109,14 @@ v-for="d in wareData.four.slice((i - 1) * 10, i * 10)" :key="d.id + d.code" :title="d.name" - style="background: #fff8e8; float: left"> + :style="{ + background: bgColor[d.enabled], + float: 'left', + }">{{ d.name }}
@@ -106,7 +142,14 @@ export default { four: [], }, total: 0, - bgColor: ['#7362F3', '#16DC09', '#FFA08F'], + bgColor: ['#D7DBE5', '#D8E5FF'], + dotColor: ['#16DC09', '#FFD781', '#7362F3', '#FFA08F'], + cassetteStatusList: [ + { id: '1', name: '可用', color: '#16DC09' }, + { id: '2', name: '占用-待入库', color: '#FFD781' }, + { id: '3', name: '占用-有货', color: '#7362F3' }, + { id: '4', name: '占用-待出库', color: '#FFA08F' }, + ], formConfig: [ { type: 'button', @@ -130,26 +173,26 @@ export default { there: [], four: [], }), - getWarehouseList().then((response) => { - response.data.forEach((item) => { - if (item.storageType === 4) { - listByWarehouse(item.id).then((response) => { - response.data.forEach((a, b) => { - if (b % 4 === 0) { - this.wareData.one.push(a); - } else if (b % 4 === 1) { - this.wareData.two.push(a); - } else if (b % 4 === 2) { - this.wareData.there.push(a); - } else if (b % 4 === 3) { - this.wareData.four.push(a); + getWarehouseList().then((response) => { + response.data.forEach((item) => { + if (item.storageType === 4) { + listByWarehouse(item.id).then((response) => { + response.data.forEach((a, b) => { + if (b % 4 === 0) { + this.wareData.one.push(a); + } else if (b % 4 === 1) { + this.wareData.two.push(a); + } else if (b % 4 === 2) { + this.wareData.there.push(a); + } else if (b % 4 === 3) { + this.wareData.four.push(a); + } + }); + this.total = Math.ceil(response.data.length / 40); + }); } }); - this.total = Math.ceil(response.data.length / 40); - }); - } - }); - }); + }); }, buttonClick(val) { switch (val.btnName) { @@ -225,4 +268,25 @@ export default { top: 22px; right: 120px; } +.dashboard-legend { + margin: 5px 5px 10px 5px; + .dashboard-legend-cassette { + display: inline-block; + margin-right: 24px; + .dashboard-legend-cassette-cricle { + display: inline-block; + width: 12px; + height: 12px; + border-radius: 6px; + } + } + .dashboard-legend-port { + display: inline-block; + height: 24px; + line-height: 24px; + border-radius: 4px; + padding: 0 16px; + margin-left: 24px; + } +} diff --git a/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue index b0c93ded..00779a9c 100644 --- a/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/part-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@{{ a.name }}
{{ b.name }}
{{ c.name }}
@@ -76,11 +109,14 @@ v-for="d in wareData.four.slice((i - 1) * 10, i * 10)" :key="d.id + d.code" :title="d.name" - style="background: #fff8e8; float: left"> + :style="{ + background: bgColor[d.enabled], + float: 'left', + }">{{ d.name }}
@@ -106,7 +142,14 @@ export default { four: [], }, total: 0, - bgColor: ['#7362F3', '#16DC09', '#FFA08F'], + bgColor: ['#D7DBE5', '#D8E5FF'], + dotColor: ['#16DC09', '#FFD781', '#7362F3', '#FFA08F'], + cassetteStatusList: [ + { id: '1', name: '可用', color: '#16DC09' }, + { id: '2', name: '占用-待入库', color: '#FFD781' }, + { id: '3', name: '占用-有货', color: '#7362F3' }, + { id: '4', name: '占用-待出库', color: '#FFA08F' }, + ], formConfig: [ { type: 'button', @@ -130,26 +173,26 @@ export default { there: [], four: [], }), - getWarehouseList().then((response) => { - response.data.forEach((item) => { - if (item.storageType === 1) { - listByWarehouse(item.id).then((response) => { - response.data.forEach((a, b) => { - if (b % 4 === 0) { - this.wareData.one.push(a); - } else if (b % 4 === 1) { - this.wareData.two.push(a); - } else if (b % 4 === 2) { - this.wareData.there.push(a); - } else if (b % 4 === 3) { - this.wareData.four.push(a); + getWarehouseList().then((response) => { + response.data.forEach((item) => { + if (item.storageType === 1) { + listByWarehouse(item.id).then((response) => { + response.data.forEach((a, b) => { + if (b % 4 === 0) { + this.wareData.one.push(a); + } else if (b % 4 === 1) { + this.wareData.two.push(a); + } else if (b % 4 === 2) { + this.wareData.there.push(a); + } else if (b % 4 === 3) { + this.wareData.four.push(a); + } + }); + this.total = Math.ceil(response.data.length / 40); + }); } }); - this.total = Math.ceil(response.data.length / 40); - }); - } - }); - }); + }); }, buttonClick(val) { switch (val.btnName) { @@ -225,4 +268,25 @@ export default { top: 22px; right: 120px; } +.dashboard-legend { + margin: 5px 5px 10px 5px; + .dashboard-legend-cassette { + display: inline-block; + margin-right: 24px; + .dashboard-legend-cassette-cricle { + display: inline-block; + width: 12px; + height: 12px; + border-radius: 6px; + } + } + .dashboard-legend-port { + display: inline-block; + height: 24px; + line-height: 24px; + border-radius: 4px; + padding: 0 16px; + margin-left: 24px; + } +} diff --git a/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue b/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue index aa2c9d51..5da72b0d 100644 --- a/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue +++ b/src/views/warehouse/raw-material/warehouseRealtimeLocation/index.vue @@ -17,7 +17,7 @@