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