Compare commits
No commits in common. "a1a7256af5c69cfb80a097035959e88dbf87336b" and "5654b3aeefd6a1440f090ed40ae85ef7d140dc44" have entirely different histories.
a1a7256af5
...
5654b3aeef
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-21 14:26:23
|
* @Date: 2023-08-21 14:26:23
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-11-14 09:40:33
|
* @LastEditTime: 2023-11-06 11:25:34
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -11,35 +11,11 @@
|
|||||||
:formConfigs="formConfig"
|
:formConfigs="formConfig"
|
||||||
ref="searchBarForm"
|
ref="searchBarForm"
|
||||||
@headBtnClick="buttonClick" />
|
@headBtnClick="buttonClick" />
|
||||||
<!-- <div class="tips">
|
<div class="tips">
|
||||||
<el-tag color="#D7DBE5" style="border: none; color: black">停用</el-tag>
|
<el-tag effect="dark" color="#7362F3" style="border: none">缓存</el-tag>
|
||||||
<el-tag color="#D8E5FF" style="border: none; color: black">启用</el-tag>
|
<el-tag effect="dark" color="#16DC09" style="border: none">活动</el-tag>
|
||||||
<el-divider direction="vertical" />
|
<el-tag effect="dark" color="#FFA08F" style="border: none">其它</el-tag>
|
||||||
<el-tag effect="dark" color="#16DC09" style="border: none">可用</el-tag>
|
</div>
|
||||||
<el-tag effect="dark" color="#FFD781" style="border: none">
|
|
||||||
占用-待入库
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#7362F3" style="border: none">
|
|
||||||
占用-有货
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#FFA08F" style="border: none">
|
|
||||||
占用-待出库
|
|
||||||
</el-tag>
|
|
||||||
</div> -->
|
|
||||||
<el-row class="dashboard-legend">
|
|
||||||
<div
|
|
||||||
v-for="item in cassetteStatusList"
|
|
||||||
:key="'cassette' + item.id"
|
|
||||||
class="dashboard-legend-cassette">
|
|
||||||
<div
|
|
||||||
class="dashboard-legend-cassette-cricle"
|
|
||||||
:style="{ background: item.color }" />
|
|
||||||
{{ item.name }}
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
<div class="dashboard-legend-port" style="background: #d7dbe5">停用</div>
|
|
||||||
<div class="dashboard-legend-port" style="background: #d8e5ff">启用</div>
|
|
||||||
</el-row>
|
|
||||||
<div class="mainbody">
|
<div class="mainbody">
|
||||||
<div v-for="i in total" :key="i">
|
<div v-for="i in total" :key="i">
|
||||||
<el-row>
|
<el-row>
|
||||||
@ -50,14 +26,11 @@
|
|||||||
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
||||||
:key="a.id + a.code"
|
:key="a.id + a.code"
|
||||||
:title="a.name"
|
:title="a.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[a.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[a.status],
|
background: bgColor[a.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ a.name }}</p>
|
<p class="p-name">{{ a.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -68,14 +41,11 @@
|
|||||||
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
||||||
:key="b.id + b.code"
|
:key="b.id + b.code"
|
||||||
:title="b.name"
|
:title="b.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[b.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[b.status],
|
background: bgColor[b.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ b.name }}</p>
|
<p class="p-name">{{ b.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -91,14 +61,11 @@
|
|||||||
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
||||||
:key="c.id + c.code"
|
:key="c.id + c.code"
|
||||||
:title="c.name"
|
:title="c.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[c.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[c.status],
|
background: bgColor[c.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ c.name }}</p>
|
<p class="p-name">{{ c.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -109,14 +76,11 @@
|
|||||||
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
||||||
:key="d.id + d.code"
|
:key="d.id + d.code"
|
||||||
:title="d.name"
|
:title="d.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[d.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[d.status],
|
background: bgColor[d.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ d.name }}</p>
|
<p class="p-name">{{ d.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -142,14 +106,7 @@ export default {
|
|||||||
four: [],
|
four: [],
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
bgColor: ['#D7DBE5', '#D8E5FF'],
|
bgColor: ['#7362F3', '#16DC09', '#FFA08F'],
|
||||||
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: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@ -173,26 +130,26 @@ export default {
|
|||||||
there: [],
|
there: [],
|
||||||
four: [],
|
four: [],
|
||||||
}),
|
}),
|
||||||
getWarehouseList().then((response) => {
|
getWarehouseList().then((response) => {
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
if (item.storageType === 2) {
|
if (item.storageType === 2) {
|
||||||
listByWarehouse(item.id).then((response) => {
|
listByWarehouse(item.id).then((response) => {
|
||||||
response.data.forEach((a, b) => {
|
response.data.forEach((a, b) => {
|
||||||
if (b % 4 === 0) {
|
if (b % 4 === 0) {
|
||||||
this.wareData.one.push(a);
|
this.wareData.one.push(a);
|
||||||
} else if (b % 4 === 1) {
|
} else if (b % 4 === 1) {
|
||||||
this.wareData.two.push(a);
|
this.wareData.two.push(a);
|
||||||
} else if (b % 4 === 2) {
|
} else if (b % 4 === 2) {
|
||||||
this.wareData.there.push(a);
|
this.wareData.there.push(a);
|
||||||
} else if (b % 4 === 3) {
|
} else if (b % 4 === 3) {
|
||||||
this.wareData.four.push(a);
|
this.wareData.four.push(a);
|
||||||
}
|
|
||||||
});
|
|
||||||
this.total = Math.ceil(response.data.length / 40);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
this.total = Math.ceil(response.data.length / 40);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
@ -268,25 +225,4 @@ export default {
|
|||||||
top: 22px;
|
top: 22px;
|
||||||
right: 120px;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-21 14:26:23
|
* @Date: 2023-08-21 14:26:23
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-11-14 09:40:21
|
* @LastEditTime: 2023-11-06 11:32:23
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -11,35 +11,11 @@
|
|||||||
:formConfigs="formConfig"
|
:formConfigs="formConfig"
|
||||||
ref="searchBarForm"
|
ref="searchBarForm"
|
||||||
@headBtnClick="buttonClick" />
|
@headBtnClick="buttonClick" />
|
||||||
<!-- <div class="tips">
|
<div class="tips">
|
||||||
<el-tag color="#D7DBE5" style="border: none; color: black">停用</el-tag>
|
<el-tag effect="dark" color="#7362F3" style="border: none">缓存</el-tag>
|
||||||
<el-tag color="#D8E5FF" style="border: none; color: black">启用</el-tag>
|
<el-tag effect="dark" color="#16DC09" style="border: none">活动</el-tag>
|
||||||
<el-divider direction="vertical" />
|
<el-tag effect="dark" color="#FFA08F" style="border: none">其它</el-tag>
|
||||||
<el-tag effect="dark" color="#16DC09" style="border: none">可用</el-tag>
|
</div>
|
||||||
<el-tag effect="dark" color="#FFD781" style="border: none">
|
|
||||||
占用-待入库
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#7362F3" style="border: none">
|
|
||||||
占用-有货
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#FFA08F" style="border: none">
|
|
||||||
占用-待出库
|
|
||||||
</el-tag>
|
|
||||||
</div> -->
|
|
||||||
<el-row class="dashboard-legend">
|
|
||||||
<div
|
|
||||||
v-for="item in cassetteStatusList"
|
|
||||||
:key="'cassette' + item.id"
|
|
||||||
class="dashboard-legend-cassette">
|
|
||||||
<div
|
|
||||||
class="dashboard-legend-cassette-cricle"
|
|
||||||
:style="{ background: item.color }" />
|
|
||||||
{{ item.name }}
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
<div class="dashboard-legend-port" style="background: #d7dbe5">停用</div>
|
|
||||||
<div class="dashboard-legend-port" style="background: #d8e5ff">启用</div>
|
|
||||||
</el-row>
|
|
||||||
<div class="mainbody">
|
<div class="mainbody">
|
||||||
<div v-for="i in total" :key="i">
|
<div v-for="i in total" :key="i">
|
||||||
<el-row>
|
<el-row>
|
||||||
@ -50,14 +26,11 @@
|
|||||||
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
||||||
:key="a.id + a.code"
|
:key="a.id + a.code"
|
||||||
:title="a.name"
|
:title="a.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[a.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[a.status],
|
background: bgColor[a.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ a.name }}</p>
|
<p class="p-name">{{ a.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -68,14 +41,11 @@
|
|||||||
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
||||||
:key="b.id + b.code"
|
:key="b.id + b.code"
|
||||||
:title="b.name"
|
:title="b.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[b.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[b.status],
|
background: bgColor[b.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ b.name }}</p>
|
<p class="p-name">{{ b.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -91,14 +61,11 @@
|
|||||||
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
||||||
:key="c.id + c.code"
|
:key="c.id + c.code"
|
||||||
:title="c.name"
|
:title="c.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[c.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[c.status],
|
background: bgColor[c.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ c.name }}</p>
|
<p class="p-name">{{ c.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -109,14 +76,11 @@
|
|||||||
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
||||||
:key="d.id + d.code"
|
:key="d.id + d.code"
|
||||||
:title="d.name"
|
:title="d.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[d.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[d.status],
|
background: bgColor[d.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ d.name }}</p>
|
<p class="p-name">{{ d.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -142,14 +106,7 @@ export default {
|
|||||||
four: [],
|
four: [],
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
bgColor: ['#D7DBE5', '#D8E5FF'],
|
bgColor: ['#7362F3', '#16DC09', '#FFA08F'],
|
||||||
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: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@ -173,26 +130,26 @@ export default {
|
|||||||
there: [],
|
there: [],
|
||||||
four: [],
|
four: [],
|
||||||
}),
|
}),
|
||||||
getWarehouseList().then((response) => {
|
getWarehouseList().then((response) => {
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
if (item.storageType === 5) {
|
if (item.storageType === 5) {
|
||||||
listByWarehouse(item.id).then((response) => {
|
listByWarehouse(item.id).then((response) => {
|
||||||
response.data.forEach((a, b) => {
|
response.data.forEach((a, b) => {
|
||||||
if (b % 4 === 0) {
|
if (b % 4 === 0) {
|
||||||
this.wareData.one.push(a);
|
this.wareData.one.push(a);
|
||||||
} else if (b % 4 === 1) {
|
} else if (b % 4 === 1) {
|
||||||
this.wareData.two.push(a);
|
this.wareData.two.push(a);
|
||||||
} else if (b % 4 === 2) {
|
} else if (b % 4 === 2) {
|
||||||
this.wareData.there.push(a);
|
this.wareData.there.push(a);
|
||||||
} else if (b % 4 === 3) {
|
} else if (b % 4 === 3) {
|
||||||
this.wareData.four.push(a);
|
this.wareData.four.push(a);
|
||||||
}
|
|
||||||
});
|
|
||||||
this.total = Math.ceil(response.data.length / 40);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
this.total = Math.ceil(response.data.length / 40);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
@ -268,25 +225,4 @@ export default {
|
|||||||
top: 22px;
|
top: 22px;
|
||||||
right: 120px;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-21 14:26:23
|
* @Date: 2023-08-21 14:26:23
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-11-14 09:40:08
|
* @LastEditTime: 2023-11-06 11:31:52
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -11,35 +11,11 @@
|
|||||||
:formConfigs="formConfig"
|
:formConfigs="formConfig"
|
||||||
ref="searchBarForm"
|
ref="searchBarForm"
|
||||||
@headBtnClick="buttonClick" />
|
@headBtnClick="buttonClick" />
|
||||||
<!-- <div class="tips">
|
<div class="tips">
|
||||||
<el-tag color="#D7DBE5" style="border: none; color: black">停用</el-tag>
|
<el-tag effect="dark" color="#7362F3" style="border: none">缓存</el-tag>
|
||||||
<el-tag color="#D8E5FF" style="border: none; color: black">启用</el-tag>
|
<el-tag effect="dark" color="#16DC09" style="border: none">活动</el-tag>
|
||||||
<el-divider direction="vertical" />
|
<el-tag effect="dark" color="#FFA08F" style="border: none">其它</el-tag>
|
||||||
<el-tag effect="dark" color="#16DC09" style="border: none">可用</el-tag>
|
</div>
|
||||||
<el-tag effect="dark" color="#FFD781" style="border: none">
|
|
||||||
占用-待入库
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#7362F3" style="border: none">
|
|
||||||
占用-有货
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#FFA08F" style="border: none">
|
|
||||||
占用-待出库
|
|
||||||
</el-tag>
|
|
||||||
</div> -->
|
|
||||||
<el-row class="dashboard-legend">
|
|
||||||
<div
|
|
||||||
v-for="item in cassetteStatusList"
|
|
||||||
:key="'cassette' + item.id"
|
|
||||||
class="dashboard-legend-cassette">
|
|
||||||
<div
|
|
||||||
class="dashboard-legend-cassette-cricle"
|
|
||||||
:style="{ background: item.color }" />
|
|
||||||
{{ item.name }}
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
<div class="dashboard-legend-port" style="background: #d7dbe5">停用</div>
|
|
||||||
<div class="dashboard-legend-port" style="background: #d8e5ff">启用</div>
|
|
||||||
</el-row>
|
|
||||||
<div class="mainbody">
|
<div class="mainbody">
|
||||||
<div v-for="i in total" :key="i">
|
<div v-for="i in total" :key="i">
|
||||||
<el-row>
|
<el-row>
|
||||||
@ -50,14 +26,11 @@
|
|||||||
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
||||||
:key="a.id + a.code"
|
:key="a.id + a.code"
|
||||||
:title="a.name"
|
:title="a.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[a.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[a.status],
|
background: bgColor[a.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ a.name }}</p>
|
<p class="p-name">{{ a.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -68,14 +41,11 @@
|
|||||||
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
||||||
:key="b.id + b.code"
|
:key="b.id + b.code"
|
||||||
:title="b.name"
|
:title="b.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[b.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[b.status],
|
background: bgColor[b.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ b.name }}</p>
|
<p class="p-name">{{ b.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -91,14 +61,11 @@
|
|||||||
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
||||||
:key="c.id + c.code"
|
:key="c.id + c.code"
|
||||||
:title="c.name"
|
:title="c.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[c.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[c.status],
|
background: bgColor[c.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ c.name }}</p>
|
<p class="p-name">{{ c.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -109,14 +76,11 @@
|
|||||||
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
||||||
:key="d.id + d.code"
|
:key="d.id + d.code"
|
||||||
:title="d.name"
|
:title="d.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[d.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[d.status],
|
background: bgColor[d.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ d.name }}</p>
|
<p class="p-name">{{ d.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -142,14 +106,7 @@ export default {
|
|||||||
four: [],
|
four: [],
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
bgColor: ['#D7DBE5', '#D8E5FF'],
|
bgColor: ['#7362F3', '#16DC09', '#FFA08F'],
|
||||||
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: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@ -173,26 +130,26 @@ export default {
|
|||||||
there: [],
|
there: [],
|
||||||
four: [],
|
four: [],
|
||||||
}),
|
}),
|
||||||
getWarehouseList().then((response) => {
|
getWarehouseList().then((response) => {
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
if (item.storageType === 3) {
|
if (item.storageType === 3) {
|
||||||
listByWarehouse(item.id).then((response) => {
|
listByWarehouse(item.id).then((response) => {
|
||||||
response.data.forEach((a, b) => {
|
response.data.forEach((a, b) => {
|
||||||
if (b % 4 === 0) {
|
if (b % 4 === 0) {
|
||||||
this.wareData.one.push(a);
|
this.wareData.one.push(a);
|
||||||
} else if (b % 4 === 1) {
|
} else if (b % 4 === 1) {
|
||||||
this.wareData.two.push(a);
|
this.wareData.two.push(a);
|
||||||
} else if (b % 4 === 2) {
|
} else if (b % 4 === 2) {
|
||||||
this.wareData.there.push(a);
|
this.wareData.there.push(a);
|
||||||
} else if (b % 4 === 3) {
|
} else if (b % 4 === 3) {
|
||||||
this.wareData.four.push(a);
|
this.wareData.four.push(a);
|
||||||
}
|
|
||||||
});
|
|
||||||
this.total = Math.ceil(response.data.length / 40);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
this.total = Math.ceil(response.data.length / 40);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
@ -268,25 +225,4 @@ export default {
|
|||||||
top: 22px;
|
top: 22px;
|
||||||
right: 120px;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-21 14:26:23
|
* @Date: 2023-08-21 14:26:23
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-11-14 09:39:54
|
* @LastEditTime: 2023-11-06 11:31:14
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -11,35 +11,11 @@
|
|||||||
:formConfigs="formConfig"
|
:formConfigs="formConfig"
|
||||||
ref="searchBarForm"
|
ref="searchBarForm"
|
||||||
@headBtnClick="buttonClick" />
|
@headBtnClick="buttonClick" />
|
||||||
<!-- <div class="tips">
|
<div class="tips">
|
||||||
<el-tag color="#D7DBE5" style="border: none; color: black">停用</el-tag>
|
<el-tag effect="dark" color="#7362F3" style="border: none">缓存</el-tag>
|
||||||
<el-tag color="#D8E5FF" style="border: none; color: black">启用</el-tag>
|
<el-tag effect="dark" color="#16DC09" style="border: none">活动</el-tag>
|
||||||
<el-divider direction="vertical" />
|
<el-tag effect="dark" color="#FFA08F" style="border: none">其它</el-tag>
|
||||||
<el-tag effect="dark" color="#16DC09" style="border: none">可用</el-tag>
|
</div>
|
||||||
<el-tag effect="dark" color="#FFD781" style="border: none">
|
|
||||||
占用-待入库
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#7362F3" style="border: none">
|
|
||||||
占用-有货
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#FFA08F" style="border: none">
|
|
||||||
占用-待出库
|
|
||||||
</el-tag>
|
|
||||||
</div> -->
|
|
||||||
<el-row class="dashboard-legend">
|
|
||||||
<div
|
|
||||||
v-for="item in cassetteStatusList"
|
|
||||||
:key="'cassette' + item.id"
|
|
||||||
class="dashboard-legend-cassette">
|
|
||||||
<div
|
|
||||||
class="dashboard-legend-cassette-cricle"
|
|
||||||
:style="{ background: item.color }" />
|
|
||||||
{{ item.name }}
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
<div class="dashboard-legend-port" style="background: #d7dbe5">停用</div>
|
|
||||||
<div class="dashboard-legend-port" style="background: #d8e5ff">启用</div>
|
|
||||||
</el-row>
|
|
||||||
<div class="mainbody">
|
<div class="mainbody">
|
||||||
<div v-for="i in total" :key="i">
|
<div v-for="i in total" :key="i">
|
||||||
<el-row>
|
<el-row>
|
||||||
@ -50,14 +26,11 @@
|
|||||||
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
||||||
:key="a.id + a.code"
|
:key="a.id + a.code"
|
||||||
:title="a.name"
|
:title="a.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[a.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[a.status],
|
background: bgColor[a.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ a.name }}</p>
|
<p class="p-name">{{ a.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -68,14 +41,11 @@
|
|||||||
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
||||||
:key="b.id + b.code"
|
:key="b.id + b.code"
|
||||||
:title="b.name"
|
:title="b.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[b.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[b.status],
|
background: bgColor[b.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ b.name }}</p>
|
<p class="p-name">{{ b.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -91,14 +61,11 @@
|
|||||||
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
||||||
:key="c.id + c.code"
|
:key="c.id + c.code"
|
||||||
:title="c.name"
|
:title="c.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[c.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[c.status],
|
background: bgColor[c.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ c.name }}</p>
|
<p class="p-name">{{ c.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -109,14 +76,11 @@
|
|||||||
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
||||||
:key="d.id + d.code"
|
:key="d.id + d.code"
|
||||||
:title="d.name"
|
:title="d.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[d.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[d.status],
|
background: bgColor[d.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ d.name }}</p>
|
<p class="p-name">{{ d.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -142,14 +106,7 @@ export default {
|
|||||||
four: [],
|
four: [],
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
bgColor: ['#D7DBE5', '#D8E5FF'],
|
bgColor: ['#7362F3', '#16DC09', '#FFA08F'],
|
||||||
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: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@ -173,26 +130,26 @@ export default {
|
|||||||
there: [],
|
there: [],
|
||||||
four: [],
|
four: [],
|
||||||
}),
|
}),
|
||||||
getWarehouseList().then((response) => {
|
getWarehouseList().then((response) => {
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
if (item.storageType === 4) {
|
if (item.storageType === 4) {
|
||||||
listByWarehouse(item.id).then((response) => {
|
listByWarehouse(item.id).then((response) => {
|
||||||
response.data.forEach((a, b) => {
|
response.data.forEach((a, b) => {
|
||||||
if (b % 4 === 0) {
|
if (b % 4 === 0) {
|
||||||
this.wareData.one.push(a);
|
this.wareData.one.push(a);
|
||||||
} else if (b % 4 === 1) {
|
} else if (b % 4 === 1) {
|
||||||
this.wareData.two.push(a);
|
this.wareData.two.push(a);
|
||||||
} else if (b % 4 === 2) {
|
} else if (b % 4 === 2) {
|
||||||
this.wareData.there.push(a);
|
this.wareData.there.push(a);
|
||||||
} else if (b % 4 === 3) {
|
} else if (b % 4 === 3) {
|
||||||
this.wareData.four.push(a);
|
this.wareData.four.push(a);
|
||||||
}
|
|
||||||
});
|
|
||||||
this.total = Math.ceil(response.data.length / 40);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
this.total = Math.ceil(response.data.length / 40);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
@ -268,25 +225,4 @@ export default {
|
|||||||
top: 22px;
|
top: 22px;
|
||||||
right: 120px;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-08-21 14:26:23
|
* @Date: 2023-08-21 14:26:23
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-11-14 09:39:02
|
* @LastEditTime: 2023-11-06 11:30:20
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -11,35 +11,11 @@
|
|||||||
:formConfigs="formConfig"
|
:formConfigs="formConfig"
|
||||||
ref="searchBarForm"
|
ref="searchBarForm"
|
||||||
@headBtnClick="buttonClick" />
|
@headBtnClick="buttonClick" />
|
||||||
<!-- <div class="tips">
|
<div class="tips">
|
||||||
<el-tag color="#D7DBE5" style="border: none; color: black">停用</el-tag>
|
<el-tag effect="dark" color="#7362F3" style="border: none">缓存</el-tag>
|
||||||
<el-tag color="#D8E5FF" style="border: none; color: black">启用</el-tag>
|
<el-tag effect="dark" color="#16DC09" style="border: none">活动</el-tag>
|
||||||
<el-divider direction="vertical" />
|
<el-tag effect="dark" color="#FFA08F" style="border: none">其它</el-tag>
|
||||||
<el-tag effect="dark" color="#16DC09" style="border: none">可用</el-tag>
|
</div>
|
||||||
<el-tag effect="dark" color="#FFD781" style="border: none">
|
|
||||||
占用-待入库
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#7362F3" style="border: none">
|
|
||||||
占用-有货
|
|
||||||
</el-tag>
|
|
||||||
<el-tag effect="dark" color="#FFA08F" style="border: none">
|
|
||||||
占用-待出库
|
|
||||||
</el-tag>
|
|
||||||
</div> -->
|
|
||||||
<el-row class="dashboard-legend">
|
|
||||||
<div
|
|
||||||
v-for="item in cassetteStatusList"
|
|
||||||
:key="'cassette' + item.id"
|
|
||||||
class="dashboard-legend-cassette">
|
|
||||||
<div
|
|
||||||
class="dashboard-legend-cassette-cricle"
|
|
||||||
:style="{ background: item.color }" />
|
|
||||||
{{ item.name }}
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
<div class="dashboard-legend-port" style="background: #d7dbe5">停用</div>
|
|
||||||
<div class="dashboard-legend-port" style="background: #d8e5ff">启用</div>
|
|
||||||
</el-row>
|
|
||||||
<div class="mainbody">
|
<div class="mainbody">
|
||||||
<div v-for="i in total" :key="i">
|
<div v-for="i in total" :key="i">
|
||||||
<el-row>
|
<el-row>
|
||||||
@ -50,14 +26,11 @@
|
|||||||
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
v-for="a in wareData.one.slice((i - 1) * 10, i * 10)"
|
||||||
:key="a.id + a.code"
|
:key="a.id + a.code"
|
||||||
:title="a.name"
|
:title="a.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[a.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[a.status],
|
background: bgColor[a.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ a.name }}</p>
|
<p class="p-name">{{ a.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -68,14 +41,11 @@
|
|||||||
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
v-for="b in wareData.two.slice((i - 1) * 10, i * 10)"
|
||||||
:key="b.id + b.code"
|
:key="b.id + b.code"
|
||||||
:title="b.name"
|
:title="b.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[b.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[b.status],
|
background: bgColor[b.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ b.name }}</p>
|
<p class="p-name">{{ b.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -91,14 +61,11 @@
|
|||||||
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
v-for="c in wareData.there.slice((i - 1) * 10, i * 10)"
|
||||||
:key="c.id + c.code"
|
:key="c.id + c.code"
|
||||||
:title="c.name"
|
:title="c.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[c.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[c.status],
|
background: bgColor[c.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ c.name }}</p>
|
<p class="p-name">{{ c.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -109,14 +76,11 @@
|
|||||||
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
v-for="d in wareData.four.slice((i - 1) * 10, i * 10)"
|
||||||
:key="d.id + d.code"
|
:key="d.id + d.code"
|
||||||
:title="d.name"
|
:title="d.name"
|
||||||
:style="{
|
style="background: #fff8e8; float: left">
|
||||||
background: bgColor[d.enabled],
|
|
||||||
float: 'left',
|
|
||||||
}">
|
|
||||||
<div
|
<div
|
||||||
class="dashboard-layout-item-cricle"
|
class="dashboard-layout-item-cricle"
|
||||||
:style="{
|
:style="{
|
||||||
background: dotColor[d.status],
|
background: bgColor[d.type - 1],
|
||||||
}" />
|
}" />
|
||||||
<p class="p-name">{{ d.name }}</p>
|
<p class="p-name">{{ d.name }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -142,14 +106,7 @@ export default {
|
|||||||
four: [],
|
four: [],
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
bgColor: ['#D7DBE5', '#D8E5FF'],
|
bgColor: ['#7362F3', '#16DC09', '#FFA08F'],
|
||||||
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: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
@ -173,26 +130,26 @@ export default {
|
|||||||
there: [],
|
there: [],
|
||||||
four: [],
|
four: [],
|
||||||
}),
|
}),
|
||||||
getWarehouseList().then((response) => {
|
getWarehouseList().then((response) => {
|
||||||
response.data.forEach((item) => {
|
response.data.forEach((item) => {
|
||||||
if (item.storageType === 1) {
|
if (item.storageType === 1) {
|
||||||
listByWarehouse(item.id).then((response) => {
|
listByWarehouse(item.id).then((response) => {
|
||||||
response.data.forEach((a, b) => {
|
response.data.forEach((a, b) => {
|
||||||
if (b % 4 === 0) {
|
if (b % 4 === 0) {
|
||||||
this.wareData.one.push(a);
|
this.wareData.one.push(a);
|
||||||
} else if (b % 4 === 1) {
|
} else if (b % 4 === 1) {
|
||||||
this.wareData.two.push(a);
|
this.wareData.two.push(a);
|
||||||
} else if (b % 4 === 2) {
|
} else if (b % 4 === 2) {
|
||||||
this.wareData.there.push(a);
|
this.wareData.there.push(a);
|
||||||
} else if (b % 4 === 3) {
|
} else if (b % 4 === 3) {
|
||||||
this.wareData.four.push(a);
|
this.wareData.four.push(a);
|
||||||
}
|
|
||||||
});
|
|
||||||
this.total = Math.ceil(response.data.length / 40);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
this.total = Math.ceil(response.data.length / 40);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
@ -268,25 +225,4 @@ export default {
|
|||||||
top: 22px;
|
top: 22px;
|
||||||
right: 120px;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user