|
@@ -410,7 +410,6 @@ export default {
|
|
},
|
|
},
|
|
// 离港出运
|
|
// 离港出运
|
|
departureShipment() {
|
|
departureShipment() {
|
|
- console.log(this.ship)
|
|
|
|
// if (this.ship[0].fArrivalStatus === 0) {
|
|
// if (this.ship[0].fArrivalStatus === 0) {
|
|
if (this.departure === null) {
|
|
if (this.departure === null) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -428,12 +427,19 @@ export default {
|
|
updateStatus: '1',
|
|
updateStatus: '1',
|
|
}
|
|
}
|
|
cargoStatus(data).then(response => {
|
|
cargoStatus(data).then(response => {
|
|
- this.getList();
|
|
|
|
- this.$message({
|
|
|
|
- showClose: true,
|
|
|
|
- message: '出港操作成功',
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
|
|
+ this.$alert('离港操作成功', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'success',
|
|
|
|
+ callback: action => {
|
|
|
|
+ this.getList();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // this.$message({
|
|
|
|
+ // showClose: true,
|
|
|
|
+ // message: '出港操作成功',
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // });
|
|
|
|
+ // this.getList();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// }
|
|
// }
|
|
@@ -449,6 +455,7 @@ export default {
|
|
unloading() {
|
|
unloading() {
|
|
// if (this.ship[0].fArrivalStatus === 1) {
|
|
// if (this.ship[0].fArrivalStatus === 1) {
|
|
if (this.arrival === null) {
|
|
if (this.arrival === null) {
|
|
|
|
+
|
|
this.$message({
|
|
this.$message({
|
|
showClose: true,
|
|
showClose: true,
|
|
message: '到港时间未选择',
|
|
message: '到港时间未选择',
|
|
@@ -464,12 +471,19 @@ export default {
|
|
updateStatus: '2',
|
|
updateStatus: '2',
|
|
}
|
|
}
|
|
cargoStatus(data).then(response => {
|
|
cargoStatus(data).then(response => {
|
|
- this.getList();
|
|
|
|
- this.$message({
|
|
|
|
- showClose: true,
|
|
|
|
- message: '到港操作成功',
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
|
|
+ this.$alert('到港操作成功', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'success',
|
|
|
|
+ callback: action => {
|
|
|
|
+ this.getList();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ // this.$message({
|
|
|
|
+ // showClose: true,
|
|
|
|
+ // message: '到港操作成功',
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // });
|
|
|
|
+ // this.getList();
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// } else {
|
|
// } else {
|