diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue
index f981b382..1b6dea08 100644
--- a/src/views/Inventory/Inboundscanning/index.vue
+++ b/src/views/Inventory/Inboundscanning/index.vue
@@ -2,13 +2,13 @@
- 零件图号
-
- 查询
-
- 清空
-
-
+ 跟单号
+
+ 查询
+
+
+
+
入库
@@ -58,16 +58,16 @@
-
-
- 移除
-
-
+
+
+
+
+
+
+
+
+
+
@@ -108,7 +108,7 @@ export default {
ace: 0,
a: '',
tableData: [],
- partNumber: [],
+ partNumber: '',
listLoading: false,
craftplannumber: '',
radio2: 3,
@@ -162,7 +162,7 @@ export default {
websocketonmessage(msg) {
this.partNumber = msg.data.split('|')[3]
this.partNumber = this.partNumber.slice(1)
- this.getPaint(this.partNumber)
+ this.getscantable(this.partNumber)
},
// 关闭
websocketclose() {
@@ -198,93 +198,73 @@ export default {
// 根据流水号查询
getscantable() {
// this.tableData = []
- if (this.partNumber.length === 0) {
- this.$notify({
- title: '警告',
- message: '请输入正确的零件图号',
- type: 'warning'
- })
- } else {
- this.finishParts = []
- this.listLoading = true
- searchTable(this.partNumber).then(response => {
- console.log(response.data)
- if (response.data.length === 0) {
- this.listLoading = false
- this.$notify({
- title: '警告',
- message: '该零件未加工',
- type: 'warning'
- })
- } else {
- for (let i = 0; i < response.data.length; i++) {
- if (response.data[i].状态 === '未完成') {
- this.$notify({
- title: '警告',
- message: 'P' + response.data[i].工艺计划流水号 + '未加工完成',
- type: 'warning'
- })
- } else if (response.data[i].状态 === '可完成') {
- this.finishParts.push({
- plannumber: response.data[i].剩余数量,
- innumber: response.data[i].入库数量,
+ this.finishParts = []
+ this.listLoading = true
+ searchTable(this.partNumber).then(response => {
+ console.log(response.data)
+ if (response.data.length === 0) {
+ this.listLoading = false
+ this.$notify({
+ title: '警告',
+ message: '该零件未加工',
+ type: 'warning'
+ })
+ } else {
+ console.log(response.data, 1233)
+ for (let i = 0; i < response.data.length; i++) {
+ if (response.data[i].考核状态 === 7) {
+ this.listLoading = false
+ this.tableData.push({
+ plannumber: response.data[i].剩余数量,
+ innumber: response.data[i].入库数量,
+ capture: '',
+ note: '',
+ 工艺计划流水号: response.data[i].工艺计划流水号,
+ 项目名称: response.data[i].项目名称,
+ 机床图号: response.data[i].机床图号,
+ 零件图号: response.data[i].零件图号
+ })
+ const hash = {} // 一个新数组,data为你需要去重的数组,newData用于接收去重后的数组, curVal.去重条件
+ this.tableDataNum = this.tableData.reduce((preVal, curVal) => {
+ hash[curVal.工艺计划流水号] ? '' : hash[curVal.工艺计划流水号] = true && preVal.push({
+ 工艺计划流水号: curVal.工艺计划流水号,
+ 项目名称: curVal.项目名称,
+ 机床图号: curVal.机床图号,
+ 零件图号: curVal.零件图号,
+ plannumber: curVal.plannumber,
+ innumber: curVal.innumber,
capture: '',
- note: '',
- 工艺计划流水号: response.data[i].工艺计划流水号,
- 项目名称: response.data[i].项目名称,
- 机床图号: response.data[i].机床图号,
- 零件图号: response.data[i].零件图号
+ note: ''
})
- } else if (response.data[i].状态 === '已完成') {
- if (response.data[i].考核状态 === '7') {
- this.listLoading = false
- this.tableData.push({
- plannumber: response.data[i].剩余数量,
- innumber: response.data[i].入库数量,
- capture: '',
- note: '',
- 工艺计划流水号: response.data[i].工艺计划流水号,
- 项目名称: response.data[i].项目名称,
- 机床图号: response.data[i].机床图号,
- 零件图号: response.data[i].零件图号
- })
- const hash = {} // 一个新数组,data为你需要去重的数组,newData用于接收去重后的数组, curVal.去重条件
- this.tableDataNum = this.tableData.reduce((preVal, curVal) => {
- hash[curVal.工艺计划流水号] ? '' : hash[curVal.工艺计划流水号] = true && preVal.push({
- 工艺计划流水号: curVal.工艺计划流水号,
- 项目名称: curVal.项目名称,
- 机床图号: curVal.机床图号,
- 零件图号: curVal.零件图号,
- plannumber: curVal.plannumber,
- innumber: curVal.innumber,
- capture: '',
- note: ''
- })
- return preVal
- }, [])
- } else if (response.data[i].考核状态 === '8') {
- this.$notify({
- title: '警告',
- message: 'P' + response.data[i].工艺计划流水号 + '已入库',
- type: 'warning'
- })
- } else if (response.data[i].考核状态 === '9') {
- this.$notify({
- title: '警告',
- message: 'P' + response.data[i].工艺计划流水号 + '已出库',
- type: 'warning'
- })
- }
- }
+ return preVal
+ }, [])
+ } else if (response.data[i].考核状态 === 6) {
+ this.$notify({
+ title: '警告',
+ message: 'P' + response.data[i].工艺计划流水号 + '未加工完成',
+ type: 'warning'
+ })
+ } else if (response.data[i].考核状态 === 8) {
+ this.$notify({
+ title: '警告',
+ message: 'P' + response.data[i].工艺计划流水号 + '已入库',
+ type: 'warning'
+ })
+ } else if (response.data[i].考核状态 === 9) {
+ this.$notify({
+ title: '警告',
+ message: 'P' + response.data[i].工艺计划流水号 + '已出库',
+ type: 'warning'
+ })
}
}
- }).then(() => {
- if (this.finishParts.length > 0) {
- this.dialogFormVisible = true
- }
- this.listLoading = false
- })
- }
+ }
+ }).then(() => {
+ // if (this.finishParts.length > 0) {
+ // this.dialogFormVisible = true
+ // }
+ this.listLoading = false
+ })
},
FinishPart() {
var nums = []
diff --git a/src/views/Inventory/OfflinePartOut/index.vue b/src/views/Inventory/OfflinePartOut/index.vue
index dea8eafb..ce1669de 100644
--- a/src/views/Inventory/OfflinePartOut/index.vue
+++ b/src/views/Inventory/OfflinePartOut/index.vue
@@ -258,6 +258,7 @@ export default {
listLoading: '',
listLoading1: '',
partnumber: '',
+ outType: '',
pageCurrent1: 1,
pageSize1: 20,
total1: 0,
@@ -272,7 +273,8 @@ export default {
DirectNotes: [],
department111: '', // 部门参数中间变量
DirectNote111: '', // 人员参数中间变量
- 组件零件基本件流水号: ''
+ 组件零件基本件流水号: '',
+ 物料与货位对照流水号: ''
}
},
computed: {
diff --git a/src/views/Inventory/OfflinePartsStorage/index.vue b/src/views/Inventory/OfflinePartsStorage/index.vue
index 777da7e9..22dc5c81 100644
--- a/src/views/Inventory/OfflinePartsStorage/index.vue
+++ b/src/views/Inventory/OfflinePartsStorage/index.vue
@@ -53,7 +53,7 @@
-
+
共{{ totallength }}条信息,选择{{ length }}条
仓库名称:
diff --git a/src/views/Inventory/PickingListApproval/index.vue b/src/views/Inventory/PickingListApproval/index.vue
index f089f363..a389813d 100644
--- a/src/views/Inventory/PickingListApproval/index.vue
+++ b/src/views/Inventory/PickingListApproval/index.vue
@@ -2,43 +2,91 @@
- 领料单编号:
-
+
+
查询
- 领料单
-
-
-
-
- {{ scope.row.领料单编号 }}
-
-
-
-
- {{ scope.row.操作日期.split(' ')[0] }}
-
-
-
-
- {{ scope.row.姓名 }}
-
-
-
-
- {{ scope.row.领料单备注 }}
-
-
-
-
- 已审批
- 未审批
- 审批
- 未通过
-
-
-
-
+
+
+
+
+
+
+
+
+ {{ scope.row.领料单编号 }}
+
+
+
+
+ {{ scope.row.操作日期.split(' ')[0] }}
+
+
+
+
+ {{ scope.row.姓名 }}
+
+
+
+
+ {{ scope.row.领料单备注 }}
+
+
+
+
+ 已审批
+ 未审批
+ 审批
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.名称 }}
+
+
+
+
+ {{ scope.row.图号或型号 || '—' }}
+
+
+
+
+ {{ scope.row.规格 || '—' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.领用数量 }}
+
+
+
+
+ {{ scope.row.已领数量 }}
+
+
+
+
+
+
+
-
领料单明细:{{ pickingListNumberShow }}
-
-
-
-
- {{ scope.row.名称 }}
-
-
-
-
- {{ scope.row.图号或型号 || '—' }}
-
-
-
-
- {{ scope.row.规格 || '—' }}
-
-
-
-
- {{ scope.row.机床图号 }}
-
-
-
-
- {{ scope.row.组号 }}
-
-
-
-
- {{ scope.row.领用数量 }}
-
-
-
-
- {{ scope.row.已领数量 }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-