diff --git a/src/api/Inventory/PickingList.js b/src/api/Inventory/PickingList.js index 9302dc39..9bc3eb10 100644 --- a/src/api/Inventory/PickingList.js +++ b/src/api/Inventory/PickingList.js @@ -75,18 +75,19 @@ export function searchHoursePart(pageCurrent, pageSize, project_check, project, }) } // 领料单查询 -export function searchList(pageCurrent, pageSize, listNumber) { +export function searchList(pageCurrent, pageSize, listNumber_check, listNumber) { return request({ url: '', method: 'post', data: { type: '1', name: '车间装配管理_领料单_领料单查询', - param: '领料单编号=' + listNumber, + param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber, Pagination: pageCurrent + '&' + pageSize } }) } + // 领料单明细查询 export function searchListDetail(listNumber) { return request({ diff --git a/src/views/Inventory/ExchangePart/index.vue b/src/views/Inventory/ExchangePart/index.vue index 7f41f690..a7b7500a 100644 --- a/src/views/Inventory/ExchangePart/index.vue +++ b/src/views/Inventory/ExchangePart/index.vue @@ -222,8 +222,8 @@ @@ -269,7 +269,7 @@ export default { count2: 0, // 清表单验证计数器 ProjectValue: '', Project: [], - ProjectValue_check: 1, + ProjectValue_check: 0, MachineValue: '', Machine: [], MachineValue_check: 1, @@ -337,24 +337,32 @@ export default { getpeopleid() { this.picikingPeople = this.id }, - searchMachine() { // 查询机床 - if (this.ProjectValue === '') { + searchMachine() { + this.MachineValue = '' + this.Machine = [] + this.GroupNumValue = '' + this.GroupNum = [] + if (this.ProjectValue !== '') { + this.ProjectValue_check = 1 + searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => { + for (let i = 0; i < response.data.length; i++) { + this.Machine.push({ + label: response.data[i].机床图号, + value: response.data[i].机床流水号 + }) + } + }) + } else { this.ProjectValue_check = 0 } - searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => { - for (let i = 0; i < response.data.length; i++) { - this.Machine.push({ - label: response.data[i].机床图号, - value: response.data[i].机床流水号 - }) - } - }) }, - searchGroupList() { // 查询组号 + searchGroupList() { + this.GroupNumValue = '' + this.GroupNum = [] searchTeam(this.MachineValue).then(response => { for (let i = 0; i < response.data.length; i++) { this.GroupNum.push({ - label: response.data[i].组件名称, + label: response.data[i].组号, value: response.data[i].组件流水号 }) } @@ -392,7 +400,12 @@ export default { getExchangeTable() { this.listLoading1 = true searchExchangePart(this.PageCurrent1, this.PageSize1).then(response => { - this.tableDataExchange = response.data.rows + const data = response.data.rows + console.log(data) + for (let i = 0; i < data.length; i++) { + data[i].审批通过 === '1' ? data[i].是否禁用 = true : data[i].是否禁用 = false + } + this.tableDataExchange = data this.total1 = response.data.total this.listLoading1 = false }) diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index 3458f705..84800ca5 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -76,6 +76,7 @@