diff --git a/src/api/materialsStation/index.js b/src/api/materialsStation/index.js index 99f89698..ce77bef1 100644 --- a/src/api/materialsStation/index.js +++ b/src/api/materialsStation/index.js @@ -837,3 +837,12 @@ export function getSubUnitList(query) { }) } +// 获取领料单 +export function getLeaseDataByCode(data) { + return request({ + url: '/material/material_lease_apply_info/getLeaseDataByCode', + method: 'get', + params: data + }) +} + diff --git a/src/views/materialsStation/toolsLease/outBound/component/OutCodeDlg.vue b/src/views/materialsStation/toolsLease/outBound/component/OutCodeDlg.vue index b7aa1e31..e3163111 100644 --- a/src/views/materialsStation/toolsLease/outBound/component/OutCodeDlg.vue +++ b/src/views/materialsStation/toolsLease/outBound/component/OutCodeDlg.vue @@ -105,10 +105,19 @@ export default { } }) }, + // saveCodeOut() { + // console.log('Selected codes:', this.outCodeList) + // this.$emit('selectOutCode', this.selectedCodeList) + // this.openCode = false + // } saveCodeOut() { - console.log('Selected codes:', this.outCodeList) - this.$emit('selectOutCode', this.selectedCodeList) - this.openCode = false + // 直接从 el-table 的引用中获取当前选中的行 + const selectedRows = this.$refs.multipleTable.selection; + console.log('Selected codes:', selectedRows); + + // 发送选中的行列表 + this.$emit('selectOutCode', selectedRows); + this.openCode = false; } } } diff --git a/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue b/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue index a222311a..335f3ab5 100644 --- a/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue +++ b/src/views/materialsStation/toolsLease/outBound/component/addToolsApply.vue @@ -1,5 +1,4 @@