fix:查询字段更正

This commit is contained in:
shijing 2024-05-24 17:44:47 +08:00
parent 02475672d7
commit 4643728a9f
1 changed files with 18 additions and 12 deletions

View File

@ -8,7 +8,7 @@
</div>
<div class="right-panel">
<el-select
v-model="params.type"
v-model="params.material__type"
clearable
@change="materialTypeChange"
>
@ -32,7 +32,10 @@
</el-header>
<el-main>
<scTable
v-show="params.type == 10 || params.type == 20"
v-show="
params.material__type == 10 ||
params.material__type == 20
"
ref="tables1"
:data="tableData1"
id="exportDiv1"
@ -52,11 +55,11 @@
</scTable>
<scTable
v-show="
params.type == 30 ||
params.type == 40 ||
params.type == 50 ||
params.type == 60 ||
params.type == 70
params.material__type == 30 ||
params.material__type == 40 ||
params.material__type == 50 ||
params.material__type == 60 ||
params.material__type == 70
"
ref="tables1"
:apiObj="apiObj"
@ -96,7 +99,7 @@
></el-table-column>
<el-table-column
label="周预估值"
v-if="params.type == 30"
v-if="params.material__type == 30"
>
<template #default="scope">
<el-input
@ -110,7 +113,7 @@
</el-table-column>
<el-table-column
label="可用天数"
v-if="params.type == 30"
v-if="params.material__type == 30"
>
<template #default="scope">
<span
@ -286,7 +289,7 @@ export default {
mioTypeEnum,
apiObj: this.$API.inm.warehouse.batch,
materialType: "",
params: { is_hidden: false, type: 10, count__gte: 1 },
params: { is_hidden: false, material__type: 10, count__gte: 1 },
query: {
mio_type: mioTypeEnum.values[0].key,
},
@ -334,10 +337,13 @@ export default {
materialTypeChange() {
let that = this;
that.tableData1 = [];
if (that.params.type == 10 || that.params.type == 20) {
if (
that.params.material__type == 10 ||
that.params.material__type == 20
) {
let obj = {
query: {
material_types: that.params.type,
material_types: that.params.material__type,
},
};
that.$API.bi.dataset.exec