Merge branch 'master' of ssh://192.168.1.149:29418/高精2.0
This commit is contained in:
@@ -76,6 +76,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="primary" size="mini" class="el-icon-success" @click="Innumber">入库</el-button>
|
<el-button type="primary" size="mini" class="el-icon-success" @click="Innumber">入库</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
:disabled="scope.row.是否禁用"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="danger"
|
type="danger"
|
||||||
class="el-icon-delete"
|
class="el-icon-delete"
|
||||||
@@ -90,7 +91,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchTable, insertOne, getinventory, getlocate } from '@/api/Inventory/GenneralPart'
|
import { searchTable, insertOne, getinventory, getlocate } from '@/api/Inventory/Inboundscanning'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { wsuri, name } from '@/utils/request'
|
import { wsuri, name } from '@/utils/request'
|
||||||
import print from '@/vendor/print'
|
import print from '@/vendor/print'
|
||||||
@@ -178,6 +179,8 @@ export default {
|
|||||||
if (response.data.length === 0) {
|
if (response.data.length === 0) {
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.$message.warning('无此零件')
|
this.$message.warning('无此零件')
|
||||||
|
} else if (response.data[0].剩余数量 === 0) {
|
||||||
|
this.$message.warning('该零件已入库完毕')
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
if (response.data[0].工艺计划流水号 === this.tableData[i].工艺计划流水号) {
|
if (response.data[0].工艺计划流水号 === this.tableData[i].工艺计划流水号) {
|
||||||
@@ -212,18 +215,26 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
if (this.locateNumber === '') {
|
||||||
if (this.tableData[i].innumber > this.tableData[i].plannumber) {
|
this.$message.error('请选择货位')
|
||||||
this.tableData[i].innumber = this.tableData[i].plannumber
|
} else {
|
||||||
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
|
if (this.tableData[i].innumber === '0') {
|
||||||
|
this.$message.error('请输入正确数量')
|
||||||
|
} else {
|
||||||
|
if (this.tableData[i].innumber > this.tableData[i].plannumber) {
|
||||||
|
this.tableData[i].innumber = this.tableData[i].plannumber
|
||||||
|
}
|
||||||
|
insertOne(this.tableData[i].工艺计划流水号, this.tableData[i].innumber, this.PeopleNumber, this.tableData[i].capture, this.inventoryNumber, this.locateNumber, this.tableData[i].note).then(response => {
|
||||||
|
this.$message({
|
||||||
|
type: 'success',
|
||||||
|
message: '零件入库成功!'
|
||||||
|
})
|
||||||
|
}).then(() => {
|
||||||
|
this.Empty()
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
insertOne(this.tableData[i].工艺计划流水号, this.tableData[i].innumber, this.PeopleNumber, this.tableData[i].capture, this.inventoryNumber, this.locateNumber, this.tableData[i].note).then(response => {
|
|
||||||
this.$message({
|
|
||||||
type: 'success',
|
|
||||||
message: '零件入库成功!'
|
|
||||||
})
|
|
||||||
}).then(() => {
|
|
||||||
this.Empty()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
{{ scope.row.仓库名称 }}
|
{{ scope.row.仓库名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="追溯码" width="150">
|
<el-table-column align="center" label="二维码" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<canvas :id="canvas[scope.$index]" class="code"/>
|
<canvas :id="canvas[scope.$index]" class="code"/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user