bug修复

This commit is contained in:
hongchao 2025-06-13 15:31:32 +08:00
parent 184f567c5e
commit 5caa60fe25
4 changed files with 9 additions and 9 deletions

View File

@ -12,11 +12,11 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="机具类型" prop="typeName"> <el-form-item label="机具规格" prop="typeId">
<el-cascader <el-cascader
placeholder="请选择机具类型" placeholder="请选择机具规格"
:options="deviceTypeTree" :options="deviceTypeTree"
:props="{ checkStrictly: true, value: 'label' }" :props="{ value: 'id',}"
@change="handleBaseValue" @change="handleBaseValue"
clearable clearable
filterable filterable
@ -101,7 +101,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
modelTitle: '', // modelTitle: '', //
typeName: '', // typeId: '', //
}, },
tableList: [], tableList: [],
total: 5, total: 5,
@ -150,7 +150,7 @@ export default {
this.resetForm('queryForm') this.resetForm('queryForm')
this.queryParams.pageNum = 1 this.queryParams.pageNum = 1
this.queryParams.pageSize = 10 this.queryParams.pageSize = 10
this.queryParams.typeName = '' this.queryParams.typeId = ''
this.getList() this.getList()
}, },
/* 查看详情 */ /* 查看详情 */
@ -168,7 +168,8 @@ export default {
}, },
/* 获取最后一级 */ /* 获取最后一级 */
handleBaseValue(val) { handleBaseValue(val) {
this.queryParams.typeName = val[val.length - 1] console.log("xxxxxxxxxxxx",val)
this.queryParams.typeId = val[val.length - 1]
} }
}, },
created() { created() {

View File

@ -94,7 +94,6 @@
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
:columns="columns"
></right-toolbar> ></right-toolbar>
</el-row> </el-row>

View File

@ -186,7 +186,7 @@ export default {
single: true, single: true,
// //
multiple: true, multiple: true,
statusList: [{id:"",name:"全部"},{id:"0",name:"已绑定"},{id:"1",name:"未绑定"}], statusList: [{id:"",name:"全部"},{id:"1",name:"已绑定"},{id:"0",name:"未绑定"}],
total: 0, // total: 0, //
loading: false, // loading: false, //
showSearch: true, // showSearch: true, //

View File

@ -396,7 +396,7 @@ export default {
}; };
const currentTime = formatTime(new Date()); const currentTime = formatTime(new Date());
this.download('/material/purchase_check_info/exportDetails',{taskId:this.taskId},`新购到货详情_${currentTime}.xlsx`) this.download('/material/purchase_check_info/exportDetails',{taskId:this.taskId,id:this.id,taskStage: 1},`新购到货详情_${currentTime}.xlsx`)
}, },
}, },
} }