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

View File

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

View File

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

View File

@ -396,7 +396,7 @@ export default {
};
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`)
},
},
}