|
@@ -355,11 +355,23 @@ export default {
|
|
|
console.log(map)
|
|
|
this.axios.post('/api/v1/qms/ctrlZQueueAllow', map).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$message.success('撤销成功')
|
|
|
+ this.$message({
|
|
|
+ message:"撤销成功",
|
|
|
+ type:'success',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
this.getNoSpellingArray()
|
|
|
this.getSpellingArray()
|
|
|
} else {
|
|
|
- this.$message.error('撤单失败')
|
|
|
+ this.$message({
|
|
|
+ message:"撤单失败",
|
|
|
+ type:'error',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -623,7 +635,13 @@ export default {
|
|
|
},
|
|
|
allow() {
|
|
|
if (this.maplist.length == 0) {
|
|
|
- this.$message.error('请选择需要放行的车辆')
|
|
|
+ this.$message({
|
|
|
+ message:"请选择需要放行的车辆",
|
|
|
+ type:'error',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
for (let i = 0; i < this.maplist.length; i++) {
|
|
@@ -633,7 +651,13 @@ export default {
|
|
|
this.maplist[i].id == null ||
|
|
|
this.maplist[i].id == 'null'
|
|
|
) {
|
|
|
- this.$message.error('请选择装货点')
|
|
|
+ this.$message({
|
|
|
+ message:"请选择装货点",
|
|
|
+ type:'error',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
let warehouse = this.tableData3.find(
|
|
@@ -641,7 +665,13 @@ export default {
|
|
|
)
|
|
|
console.log('warehouse', warehouse)
|
|
|
if (warehouse && warehouse.carQueue >= 20) {
|
|
|
- this.$message.error('该仓库已经有20辆车在排队,不允许放行!')
|
|
|
+ this.$message({
|
|
|
+ message:"该仓库已经有20辆车在排队,不允许放行!",
|
|
|
+ type:'error',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
this.filterArr(this.maplist[i].resultId)
|
|
@@ -661,7 +691,13 @@ export default {
|
|
|
}
|
|
|
this.axios.post('/api/v1/qms/allowEnFactory', map).then(res => {
|
|
|
if (res.data.code == '200') {
|
|
|
- this.$message.success('放行成功,等待进厂')
|
|
|
+ this.$message({
|
|
|
+ message:"放行成功,等待进厂",
|
|
|
+ type:'success',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
this.maplist = []
|
|
|
this.$refs.mutiData.clearSelection()
|
|
|
this.getNoSpellingArray()
|
|
@@ -674,7 +710,13 @@ export default {
|
|
|
clearInterval(this.timer)
|
|
|
this.start()
|
|
|
} else {
|
|
|
- this.$message.error('请按顺序勾选')
|
|
|
+ this.$message({
|
|
|
+ message:"请按顺序勾选",
|
|
|
+ type:'error',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
this.maplist = []
|
|
|
this.$refs.mutiData.clearSelection()
|
|
|
this.getNoSpellingArray()
|
|
@@ -701,9 +743,21 @@ export default {
|
|
|
this.axios.post('/api/v1/qms/modifyLoadWarehouse', map).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.data.code == '200') {
|
|
|
- this.$message.success('更新装货点成功')
|
|
|
+ this.$message({
|
|
|
+ message:"更新装货点成功",
|
|
|
+ type:'success',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
} else {
|
|
|
- this.$message.error('更新装货点失败')
|
|
|
+ this.$message({
|
|
|
+ message:"更新装货点失败",
|
|
|
+ type:'error',
|
|
|
+ duration:2000,
|
|
|
+ center:true,
|
|
|
+ offset:100
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
//this.axios.post("")
|