diff --git a/src/utils/request.js b/src/utils/request.js index c4edcdbc..f2e82b1c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -19,7 +19,7 @@ const service = axios.create({ // baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`, // baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`, // baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`, - baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.0.106:8411/submit/MESCommonBase.ashx`, // baseURL: `http://localhost:8077/submit/MESCommonBase.ashx`, // baseURL: `http://192.168.0.112:8411/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 diff --git a/src/views/Inventory/Inboundscanning/index.vue b/src/views/Inventory/Inboundscanning/index.vue index da432e2d..ae7686dd 100644 --- a/src/views/Inventory/Inboundscanning/index.vue +++ b/src/views/Inventory/Inboundscanning/index.vue @@ -5,14 +5,11 @@ 查询 清空 + 入库 + - + - - + - - + @@ -188,17 +182,21 @@ export default { }, // 扫描查询 getscantable() { - if (this.partNumber === '') { + if (this.partNumber === '' || this.partNumber === null) { this.$message.error('请输入零件号') } else { this.listLoading = true searchTable(this.partNumber).then(response => { if (response.data.length === 0) { this.listLoading = false - this.$message.warning('无此零件') - } else if (response.data[0].剩余数量 === 0) { - this.$message.warning('该零件已入库完毕') - } else { + this.$message.warning('该零件未加工完成') + } else if (response.data[0].考核状态 === 8) { + this.listLoading = false + this.$message.warning('该零件已入库') + } else if (response.data[0].考核状态 === 9) { + this.listLoading = false + this.$message.warning('该零件已出库') + } else if (response.data[0].考核状态 === 7) { for (let i = 0; i < this.tableData.length; i++) { if (response.data[0].工艺计划流水号 === this.tableData[i].工艺计划流水号) { this.ace = this.ace + 1