diff --git a/src/views/Inventory/PickingList/index.vue b/src/views/Inventory/PickingList/index.vue
index 0ec32336..3e01026d 100644
--- a/src/views/Inventory/PickingList/index.vue
+++ b/src/views/Inventory/PickingList/index.vue
@@ -95,8 +95,8 @@
- 编辑
- 删除
+ 编辑
+ 删除
@@ -211,24 +211,14 @@
{{ scope.row.物料名称 }}
-
+
{{ scope.row.物料规格 }}
-
+
- {{ scope.row.物料型号 }}
-
-
-
-
- {{ scope.row.零件图号 }}
-
-
-
-
- {{ scope.row.项目名称 }}
+ {{ scope.row.物料型号 || scope.row.零件图号 || '' }}
@@ -241,12 +231,22 @@
{{ scope.row.组号 }}
-
+
{{ scope.row.数量 }}
-
+
+
+ {{ scope.row.仓库名称 }}
+
+
+
+
+ {{ scope.row.货位名称 }}
+
+
+
{{ scope.row.货位存量 }}
@@ -256,11 +256,6 @@
{{ scope.row.待出库数量 }}
-
-
- {{ scope.row.备注 }}
-
-
{{ scope.row.类型名称 }}
@@ -369,6 +364,9 @@
+
+
+
@@ -487,8 +485,8 @@ export default {
outNote: '' // 出库备注
},
rules2: { // 表单验证规则
- OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }],
- outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }]
+ OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }]
+ // outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }]
},
form3: { // 车间采购出库
OutNumber: '', // 出库数量
@@ -517,19 +515,19 @@ export default {
listLoading3: false,
PageCurrent: 1,
PageSize: 10,
- total: null,
+ total: 0,
PageCurrent1: 1,
PageSize1: 10,
- total1: null,
+ total1: 0,
PageCurrent2: 1,
PageSize2: 10,
- total2: null,
+ total2: 0,
PageCurrent3: 1,
PageSize3: 10,
- total3: null,
+ total3: 0,
PageCurrentx: 1,
PageSizex: 10,
- totalx: null,
+ totalx: 0,
materialName: '',
materialNumber: '',
materialType: '',
@@ -571,7 +569,8 @@ export default {
getpeopleid() {
this.picikingPeople = this.id
},
- searchMachine() { // 查询机床
+ // 查询机床
+ searchMachine() {
this.MachineValue = ''
this.Machine = []
this.GroupNumValue = ''
@@ -590,7 +589,8 @@ export default {
}
})
},
- searchGroupList() { // 查询组号
+ // 查询组号
+ searchGroupList() {
this.GroupNumValue = ''
this.GroupNum = []
searchTeam(this.MachineValue).then(response => {
@@ -602,18 +602,13 @@ export default {
}
})
},
+ // 根据项目机床分组查零件/物料
searchPartinfo() {
this.tableDataPurchase = []
this.tableDataBasic = []
- if (this.ProjectValue !== null && this.ProjectValue !== '') {
- this.ProjectValue_check = 1
- }
- if (this.MachineValue !== null && this.MachineValue !== '') {
- this.MachineValue_check = 1
- }
- if (this.GroupNumValue !== null && this.GroupNumValue !== '') {
- this.GroupNumValue_check = 1
- }
+ this.ProjectValue ? this.ProjectValue_check = 1 : this.ProjectValue_check = 0
+ this.MachineValue ? this.MachineValue_check = 1 : this.MachineValue_check = 0
+ this.GroupNumValue ? this.GroupNumValue_check = 1 : this.GroupNumValue_check = 0
this.listLoading = true
this.listLoading1 = true
this.listLoadingx = true
@@ -647,13 +642,11 @@ export default {
this.tableDataBasic = response.data.rows
this.listLoading1 = false
this.total = response.data.total
- console.log(response)
})
searchHoursePart(this.PageCurrentx, this.PageSizex, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
this.tableDataHouse = response.data.rows
this.listLoadingx = false
this.totalx = response.data.total
- console.log(response)
})
},
handleSizeChange(val) {
@@ -696,7 +689,6 @@ export default {
this.tableData1 = response.data.rows
this.listLoading2 = false
this.total2 = response.data.total
- console.log(response)
})
},
handleSizeChange2(val) {
@@ -788,6 +780,7 @@ export default {
// 选择领料单
chooseListinfor(row) {
this.pickingListNumberx = row.领料单流水号
+ this.pickingListNumber = row.领料单编号
this.searchListDetailt()
},
// 增加基本件领料单明细
@@ -836,7 +829,7 @@ export default {
},
// 增加外购件领料单明细
addListDetailinfor(row) {
- this.form2 = []
+ this.form2 = {}
this.outType = 2
this.partProjectNumber = row.项目流水号
this.partProjectName = row.项目名称
@@ -863,7 +856,6 @@ export default {
if (this.pickingListNumberx === '') {
this.$message.error('请选择领料单')
} else if (this.form2.OutNumber === '' || this.form2.OutNumber > this.enableOut) {
- console.log(this.enableOut)
this.$message.error('请正确输入领用数量')
} else {
this.$refs[formName].validate((valid) => {
@@ -887,7 +879,6 @@ export default {
addWorkshopDetailinfor(row) {
this.form3 = []
this.outType = 3
- console.log(row)
this.partProjectNumber = row.项目流水号
this.partMachineNumber = row.机床流水号
this.partGroupNumber = row.组件流水号