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 @@
入库
@@ -177,7 +177,8 @@ export default {
PeopleNumber: '',
tableDataOut: [],
listLoading: '',
- listLoading1: ''
+ listLoading1: '',
+ partnumber: ''
}
},
computed: {
@@ -200,7 +201,6 @@ export default {
this.PeopleNumber = this.id
},
searchMachine() { // 查询机床
- console.log(1351)
if (this.ProjectValue === '') {
this.ProjectValue_check = 0
}
@@ -251,6 +251,8 @@ export default {
this.contractNumber = row.离线合同明细流水号
this.locateNumber = row.货位流水号
this.materialNumber = row.物料流水号
+ this.partnumber = row.货位存量
+ console.log(this.partnumber)
this.searchoutRecord()
},
// 重置表单
@@ -272,21 +274,24 @@ export default {
},
// 离线外购件出库
addDirectPartm() {
- console.log(this.contractNumber, this.PeopleValue, this.form.DirectNumber, this.locateNumber, this.form.DirectNote, this.form.ProjectValue, this.MachineValue, this.GroupNumValue, this.materialNumber, this.PeopleNumber)
- outlinePartOut(this.contractNumber, this.PeopleValue, this.form.DirectNumber, this.locateNumber, this.form.DirectNote, this.form.ProjectValue, this.MachineValue, this.GroupNumValue, this.materialNumber, this.PeopleNumber).then(response => {
- if (response.data[0].result === '1') {
- this.$notify({
- title: '成功',
- message: '信息添加成功',
- type: 'success'
- })
- this.dialogFormVisible = false
- this.searchDirect()
- } else {
- this.$message.error('信息添加失败')
- }
- })
- this.dialogFormVisible = false
+ if (this.partnumber < this.form.DirectNumber) {
+ this.$message.error('请正确输入数量')
+ } else {
+ outlinePartOut(this.contractNumber, this.PeopleValue, this.form.DirectNumber, this.locateNumber, this.form.DirectNote, this.form.ProjectValue, this.MachineValue, this.GroupNumValue, this.materialNumber, this.PeopleNumber).then(response => {
+ if (response.data[0].result === '1') {
+ this.$notify({
+ title: '成功',
+ message: '信息添加成功',
+ type: 'success'
+ })
+ this.dialogFormVisible = false
+ this.searchDirect()
+ } else {
+ this.$message.error('信息添加失败')
+ }
+ })
+ this.dialogFormVisible = false
+ }
}
}
}
diff --git a/src/views/Inventory/PickingList/index.vue b/src/views/Inventory/PickingList/index.vue
index e7a21162..a5997c08 100644
--- a/src/views/Inventory/PickingList/index.vue
+++ b/src/views/Inventory/PickingList/index.vue
@@ -464,9 +464,9 @@ import { mapGetters } from 'vuex'
export default {
data() {
return {
- ProjectValue: null,
+ ProjectValue: '',
Project: [],
- ProjectValue_check: 0,
+ ProjectValue_check: 1,
MachineValue: null,
Machine: [],
MachineValue_check: 0,
@@ -557,7 +557,8 @@ export default {
dialogFormVisibleWork: false,
time: [],
materialLocate: '',
- enableOut: ''
+ enableOut: '',
+ pickingListNumber_check: 1
}
},
computed: {
@@ -579,8 +580,14 @@ export default {
console.log(this.picikingPeople)
},
searchMachine() { // 查询机床
- if (this.ProjectValue === null) {
+ this.MachineValue = ''
+ this.Machine = []
+ this.GroupNumValue = ''
+ this.GroupNum = []
+ if (this.ProjectValue === '') {
this.ProjectValue_check = 0
+ } else {
+ this.ProjectValue_check = 1
}
searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => {
for (let i = 0; i < response.data.length; i++) {
@@ -592,6 +599,8 @@ export default {
})
},
searchGroupList() { // 查询组号
+ this.GroupNumValue = ''
+ this.GroupNum = []
searchTeam(this.MachineValue).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.GroupNum.push({
@@ -664,8 +673,11 @@ export default {
},
// 查询领料单
searchListinfor() {
+ if (this.pickingListNumber === null) {
+ this.pickingListNumber_check = 0
+ }
this.listLoading2 = true
- searchList(this.PageCurrent2, this.PageSize2, this.pickingListNumber).then(response => {
+ searchList(this.PageCurrent2, this.PageSize2, this.pickingListNumber_check, this.pickingListNumber).then(response => {
for (let i = 0; i < response.data.rows.length; i++) {
response.data.rows[i].领料时间 = response.data.rows[i].领料时间.substring(0, response.data.rows[i].领料时间.length - 8)
}