优化页面
This commit is contained in:
parent
cd71e1cb7a
commit
cbaec067a0
|
|
@ -24,6 +24,7 @@
|
||||||
placeholder="请选择单位名称"
|
placeholder="请选择单位名称"
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
|
@change="unitChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in unitList"
|
v-for="item in unitList"
|
||||||
|
|
@ -265,6 +266,13 @@
|
||||||
prop="typeModelName"
|
prop="typeModelName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="工程"
|
||||||
|
align="center"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
>
|
||||||
|
{{ detailsProName }}
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="待出库数量"
|
label="待出库数量"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -766,6 +774,8 @@ export default {
|
||||||
outerVisible: false,
|
outerVisible: false,
|
||||||
center: true,
|
center: true,
|
||||||
},
|
},
|
||||||
|
// 弹框内工程名称
|
||||||
|
detailsProName: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -790,10 +800,9 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//获取单位
|
//获取单位
|
||||||
getProList() {
|
async getProList(id) {
|
||||||
getProData().then((response) => {
|
const { data: res } = await getProData({ id })
|
||||||
this.proList = response.data
|
this.proList = res
|
||||||
})
|
|
||||||
},
|
},
|
||||||
getTypeList() {
|
getTypeList() {
|
||||||
getTypeList({ level: '3' }).then((response) => {
|
getTypeList({ level: '3' }).then((response) => {
|
||||||
|
|
@ -838,6 +847,7 @@ export default {
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm('queryForm')
|
this.resetForm('queryForm')
|
||||||
this.handleQuery()
|
this.handleQuery()
|
||||||
|
this.getProList()
|
||||||
},
|
},
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
|
@ -850,11 +860,12 @@ export default {
|
||||||
},
|
},
|
||||||
//查看按钮
|
//查看按钮
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
|
this.detailsProName = row.proName
|
||||||
this.openLeaseDevices = true
|
this.openLeaseDevices = true
|
||||||
this.isView = true
|
this.isView = true
|
||||||
this.dialogQuery.id = row.id
|
this.dialogQuery.id = row.id
|
||||||
this.resetDialogQuery()
|
this.resetDialogQuery()
|
||||||
// this.getDialogList();
|
this.getDialogList()
|
||||||
},
|
},
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
getDialogList() {
|
getDialogList() {
|
||||||
|
|
@ -874,6 +885,7 @@ export default {
|
||||||
},
|
},
|
||||||
/** 出库按钮操作 */
|
/** 出库按钮操作 */
|
||||||
handleOut(row) {
|
handleOut(row) {
|
||||||
|
this.detailsProName = row.proName
|
||||||
this.openLeaseDevices = true
|
this.openLeaseDevices = true
|
||||||
this.isView = false
|
this.isView = false
|
||||||
this.dialogQuery.id = row.id
|
this.dialogQuery.id = row.id
|
||||||
|
|
@ -1071,6 +1083,11 @@ export default {
|
||||||
handlePrinting() {
|
handlePrinting() {
|
||||||
this.$refs.remarksPrintRef.print()
|
this.$refs.remarksPrintRef.print()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 单位名称选择后 获取对应的工程
|
||||||
|
unitChange(val) {
|
||||||
|
this.getProList(val)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
range-separator="至"
|
range-separator="至"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
|
style="width: 240px"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -24,7 +25,7 @@
|
||||||
v-model="queryParams.unitId"
|
v-model="queryParams.unitId"
|
||||||
filterable
|
filterable
|
||||||
clearable
|
clearable
|
||||||
@change="GetProData"
|
@change="unitChange"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
|
|
@ -42,7 +43,6 @@
|
||||||
v-model="queryParams.proId"
|
v-model="queryParams.proId"
|
||||||
filterable
|
filterable
|
||||||
clearable
|
clearable
|
||||||
@change="GetUnitData"
|
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
|
|
@ -290,13 +290,9 @@ export default {
|
||||||
console.log('GetUnitData ======================', res)
|
console.log('GetUnitData ======================', res)
|
||||||
},
|
},
|
||||||
// 获取 工程名称 列表数据
|
// 获取 工程名称 列表数据
|
||||||
async getProList() {
|
async getProList(id) {
|
||||||
const params = {
|
const { data: res } = await getProData({ id })
|
||||||
id: this.queryParams.unitId,
|
this.proList = res
|
||||||
}
|
|
||||||
const res = await getProData(params)
|
|
||||||
this.proList = res.data
|
|
||||||
console.log('GetProData ======================', res)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表单重置
|
// 表单重置
|
||||||
|
|
@ -317,6 +313,7 @@ export default {
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
this.getProList()
|
||||||
this.queryParams.time = []
|
this.queryParams.time = []
|
||||||
this.queryParams.unitId = ''
|
this.queryParams.unitId = ''
|
||||||
this.queryParams.proId = ''
|
this.queryParams.proId = ''
|
||||||
|
|
@ -334,6 +331,10 @@ export default {
|
||||||
`综合查询_退料记录_${new Date().getTime()}.xlsx`,
|
`综合查询_退料记录_${new Date().getTime()}.xlsx`,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
// 单位名称选择后 获取对应的工程
|
||||||
|
unitChange(val) {
|
||||||
|
this.getProList(val)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue