修改优化意见_11_12

This commit is contained in:
lixiaobang 2024-11-15 14:00:32 +08:00
parent 9dd813ee1f
commit 55a9957b38
5 changed files with 18 additions and 9 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -7,7 +7,7 @@
{{ props.title === "维修统计" ? "维修统计" : props.title }}
</div>
<div class="el-select1">
<div class="el-select2">
<el-select
v-model="params.facName"
placeholder="请选择"
@ -21,7 +21,7 @@
<el-option v-for="item in allName" :key="item" :label="item" :value="item" />
</el-select>
</div>
<div class="el-select2">
<div class="el-select1">
<el-select
v-if="props.title === '维修统计'"
v-model="isMaintain"

View File

@ -303,17 +303,26 @@ function getBrandChart(boolean) {
console.log(params.month.slice(0, -2));
// params.month = params.month.slice(-2)
}
if (props.title === "入库信息") {
getBrandTimeCount(params).then((res) => {
drawBarChart(res.result);
getChartList()
getStoreDetail()
getBrandNames(params).then((res) => {
brandList.value = res.result;
params.brandName = brandList.value[0];
});
});
} else {
getOutBrandTimeCount(params).then((res) => {
drawBarChart(res.result);
getChartList()
getStoreDetail()
getOutBrandNames(params).then((res) => {
brandList.value = res.result;
params.brandName = brandList.value[0];
});
});
}
}

View File

@ -57,7 +57,7 @@
<div>
<ul>
<li>
<span>货位</span><span>{{ areaNum.storeNum }}</span>
<span>库存总量</span><span>{{ areaNum.storeNum }}</span>
</li>
<li>
<span>实箱</span><span>{{ areaNum.hasBox }}</span>
@ -283,14 +283,14 @@ onMounted(() => {
//
getBrandBox().then((res) => {
for (let key in res.result) {
console.log(res.result, key);
if (key === "货位") {
console.log(res.result, key,'huowei');
if (key === "inventoryNum") {
areaNum.storeNum = res.result[key];
} else if (key === "实箱") {
} else if (key === "fullBoxNum") {
areaNum.hasBox = res.result[key];
} else if (key === "空箱") {
} else if (key === "emptyBoxNum") {
areaNum.noBox = res.result[key];
} else {
} else if (key === "batchNum") {
areaNum.batchNo = res.result[key];
}
}

View File

@ -69,7 +69,7 @@ const ruleForm = reactive({
id: 0,
status: 0,
remark: "",
userName: "admin14",
userName: "",
userPassword: "",
});
//