配件领料单优化

This commit is contained in:
bb_pan 2025-08-28 10:34:30 +08:00
parent 1b5bd7f075
commit 9c15ca3d58
1 changed files with 16 additions and 7 deletions

View File

@ -120,7 +120,7 @@
/> />
<!-- 领料单弹窗 --> <!-- 领料单弹窗 -->
<el-dialog :visible.sync="open" width="1000px" :title="title" append-to-body> <el-dialog :visible.sync="open" width="1000px" :title="title" append-to-body v-loading="loading">
<div style="height: 500px; overflow-y: scroll; padding: 0 20px"> <div style="height: 500px; overflow-y: scroll; padding: 0 20px">
<!-- <vue-easy-print tableShow ref="remarksPrintRef" class="print"> --> <!-- <vue-easy-print tableShow ref="remarksPrintRef" class="print"> -->
<div id="checkId"> <div id="checkId">
@ -342,14 +342,23 @@ export default {
methods: { methods: {
// //
async handleLld(row) { async handleLld(row) {
this.leaseApplyData = {}
this.leaseApplyDetails = []
this.title = '领料单' this.title = '领料单'
this.open = true this.open = true
const res = await getPartLeaseByTaskIdApi({ taskId: row.taskId }) this.loading = true
console.log('🚀 ~ handleLld ~ res:', res) try {
this.leaseApplyDetails = res.data.detailsList const res = await getPartLeaseByTaskIdApi({ taskId: row.taskId })
this.leaseApplyData = res.data.details console.log('🚀 ~ handleLld ~ res:', res)
this.leaseApplyData.createTime = row.createTime this.leaseApplyDetails = res.data.detailsList
this.leaseApplyData.code = row.code this.leaseApplyData = res.data.details
this.leaseApplyData.createTime = row.createTime
this.leaseApplyData.code = row.code
} catch (error) {
console.log('🚀 ~ handleLld ~ error:', error)
} finally {
this.loading = false
}
}, },
// //
print() { print() {