退料修复

This commit is contained in:
hongchao 2025-07-17 18:16:18 +08:00
parent d3c92ea059
commit 7e37debfb1
3 changed files with 48 additions and 16 deletions

View File

@ -8,7 +8,7 @@
v-show="showSearch"
label-width="80px"
>
<el-form-item label="申请日期">
<el-form-item label="申请日期1">
<el-date-picker
v-model="queryParams.time"
type="daterange"

View File

@ -12,12 +12,12 @@
/>
</el-form-item>
<el-form-item label="单位名称" prop="unitId">
<el-select v-model="queryParams.unitId" placeholder="请选择单位名称" clearable>
<el-select v-model="queryParams.unitId" placeholder="请选择单位名称" @change="GetProData" clearable>
<el-option v-for="item in unitList" filterable :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="工程名称" prop="proId">
<el-select v-model="queryParams.proId" filterable clearable placeholder="请选择工程名称">
<el-select v-model="queryParams.proId" filterable clearable placeholder="请选择工程名称" @change="GetUnitData">
<el-option v-for="item in proList" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
@ -671,10 +671,12 @@ export default {
},
created() {
this.getTypeList()
this.getUnitList()
this.getProList()
// this.getUnitList()
// this.getProList()
this.equipmentType()
this.getList()
this.GetUnitData()
this.GetProData()
},
computed: {
formattedOutTime() {
@ -708,17 +710,37 @@ export default {
return "";
},
//
getUnitList() {
getUnitData().then((response) => {
this.unitList = response.data
})
},
//
getProList() {
getProData().then((response) => {
this.proList = response.data
})
},
// getUnitList() {
// getUnitData().then((response) => {
// this.unitList = response.data
// })
// },
// //
// getProList() {
// getProData().then((response) => {
// this.proList = response.data
// })
// },
//
async GetUnitData() {
const params = {
id: this.queryParams.proId,
}
const res = await getUnitData(params)
this.unitList = res.data
console.log('GetUnitData ======================', res)
},
//
async GetProData() {
const params = {
id: this.queryParams.unitId,
}
const res = await getProData(params)
this.proList = res.data
console.log('GetProData ======================', res)
},
getTypeList() {
getTypeList({ level: '3' }).then((response) => {
this.typeList = response.data
@ -756,6 +778,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.resetForm('queryForm')
this.queryParams.unitId = ''
this.queryParams.proId = ''
this.GetUnitData()
this.GetProData()
this.handleQuery()
},
/** 查询列表 */

View File

@ -88,6 +88,7 @@
placeholder="请选择规格型号"
ref="deviceTypeCascader"
popper-class="popper-select"
popper-append-to-body="false"
@change="deviceTypeChange"
></el-cascader>
</el-form-item>
@ -556,6 +557,7 @@ export default {
deviceTypeTree: [], //
//
deviceTypeTreeProps: {
checkStrictly: true,
children: 'children',
label: 'typeName',
multiple: false,
@ -659,6 +661,7 @@ export default {
...mapState(['user']),
},
methods: {
//
async GetUnitData() {
const params = {
@ -1176,6 +1179,7 @@ export default {
// }
// console.log('🚀 ~ deviceTypeChange ~ this.selectParams:', this.selectParams)
this.getMaTypeDataByIdFun(val[val.length-1])
})
// console.log(val, '*******************')
@ -1453,4 +1457,6 @@ export default {
display: block !important;
}
}
</style>