|
@@ -375,6 +375,13 @@
|
|
|
>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="canwork" label="继续装">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="primary" size="small" @click="continue1(scope.row)">
|
|
|
+ 继续装
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div>
|
|
@@ -657,15 +664,30 @@ export default {
|
|
|
)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("反关闭成功");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"反关闭成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //.success("反关闭成功");
|
|
|
this.getSteelReport();
|
|
|
} else {
|
|
|
- this.$message.error("反关闭失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"反关闭失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("反关闭失败");
|
|
|
this.getSteelReport();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("反关闭失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"反关闭失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("反关闭失败");
|
|
|
this.getSteelReport();
|
|
|
});
|
|
|
});
|
|
@@ -762,7 +784,12 @@ export default {
|
|
|
if (res.data.code == "200") {
|
|
|
this.carrierList = [];
|
|
|
if (res.data.data.length == 0) {
|
|
|
- this.$message.info("承运商不存在,请前往注册");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"承运商不存在,请前往注册",
|
|
|
+ type:"info"
|
|
|
+ })
|
|
|
+ //this.$message.info("承运商不存在,请前往注册");
|
|
|
return;
|
|
|
}
|
|
|
var restaurants = res.data.data;
|
|
@@ -792,7 +819,12 @@ export default {
|
|
|
this.capacityList = [];
|
|
|
if (res.data.code == "200") {
|
|
|
if (res.data.data.length == 0) {
|
|
|
- this.$message.info("车牌号不存在,请前往注册");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"车牌号不存在,请前往注册",
|
|
|
+ type:"info"
|
|
|
+ })
|
|
|
+ //this.$message.info("车牌号不存在,请前往注册");
|
|
|
return;
|
|
|
}
|
|
|
var restaurants = res.data.data;
|
|
@@ -825,11 +857,21 @@ export default {
|
|
|
updateCapacity(row) {
|
|
|
row.capacityId = row.newsCapacityId;
|
|
|
if (row.newsCapacityId == null) {
|
|
|
- this.$message.warning("请先注册车牌号或者选中弹出后再提交!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"请先注册车牌号或者选中弹出后再提交!",
|
|
|
+ type:"warning"
|
|
|
+ })
|
|
|
+ //this.$message.warning("请先注册车牌号或者选中弹出后再提交!");
|
|
|
return;
|
|
|
}
|
|
|
if (!isVehicleNumber(row.capacityNo)) {
|
|
|
- this.$message.error("请输入正确格式的车牌号!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"请输入正确格式的车牌号!",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("请输入正确格式的车牌号!");
|
|
|
return;
|
|
|
}
|
|
|
if (row.capacityIds != 0) {
|
|
@@ -843,23 +885,43 @@ export default {
|
|
|
.post("/api/v1/ams/updateCapacityNumberInFactory", row)
|
|
|
.then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$message.success("变更车牌号成功!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"变更车牌号成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("变更车牌号成功!");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.success("变更失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"变更失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.success("变更失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.success("变更失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"变更失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.success("变更失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
|
} else {
|
|
|
if (row.carrierIds == 0) {
|
|
|
- this.$message.error("请先选择承运商!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"请先选择承运商!",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("请先选择承运商!");
|
|
|
return;
|
|
|
}
|
|
|
let i = 0;
|
|
@@ -883,17 +945,32 @@ export default {
|
|
|
.post("/api/v1/ams/dispatchSteelOrder", arr)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("派车成功!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"派车成功!",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("派车成功!");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("派车失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"派车失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("派车失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("派车失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"派车失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("派车失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
@@ -908,7 +985,12 @@ export default {
|
|
|
background: "rgba(0, 0, 0, 0.7)"
|
|
|
});
|
|
|
if (row.capacityTel == null || row.capacityTel == "") {
|
|
|
- this.$message.error("电话号码不能为空");
|
|
|
+ this.$message({
|
|
|
+ duration:100,
|
|
|
+ message:'电话号码不能为空',
|
|
|
+ type:'error'
|
|
|
+ })
|
|
|
+ //.error("电话号码不能为空");
|
|
|
return;
|
|
|
}
|
|
|
this.axios
|
|
@@ -918,17 +1000,32 @@ export default {
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("修改成功");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("修改成功");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("修改失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("修改失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
@@ -942,7 +1039,14 @@ export default {
|
|
|
background: "rgba(0, 0, 0, 0.7)"
|
|
|
});
|
|
|
if (row.consigneeTel == null || row.consigneeTel == "") {
|
|
|
- this.$message.error("电话号码不能为空");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:'电话号码不能为空',
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //.error("电话号码不能为空");
|
|
|
+ this.getSteelReport();
|
|
|
+ loading.close();
|
|
|
return;
|
|
|
}
|
|
|
this.axios
|
|
@@ -953,17 +1057,32 @@ export default {
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("修改成功");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("修改成功");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("修改失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("修改失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
@@ -989,29 +1108,54 @@ export default {
|
|
|
.post("/api/v1/ams/updateCarAddress", map)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("关闭车辆成功");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"关闭车辆成功",
|
|
|
+ type:"errsuccessor"
|
|
|
+ })
|
|
|
+ //this.$message.success("关闭车辆成功");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("关闭车辆失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"关闭车辆失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("关闭车辆失败");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("关闭车辆失败");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"关闭车辆失败",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("关闭车辆失败");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.info("取消关闭");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"取消关闭",
|
|
|
+ type:"info"
|
|
|
+ })
|
|
|
+ //this.$message.info("取消关闭");
|
|
|
});
|
|
|
},
|
|
|
//修改承运商授权
|
|
|
updateTruckCarrier(row) {
|
|
|
if (row.newCarrierId == null) {
|
|
|
- this.$message.warning("请注册承运商或者选中弹出层之后再提交!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"注册承运商或者选中弹出层之后再提交!",
|
|
|
+ type:"warning"
|
|
|
+ })
|
|
|
+ //this.$message.warning("请注册承运商或者选中弹出层之后再提交!");
|
|
|
this.getSteelReport();
|
|
|
return;
|
|
|
}
|
|
@@ -1026,17 +1170,32 @@ export default {
|
|
|
.post("/api/v1/ams/updateTruckNoCarrier", row)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("修改承运商授权成功");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改承运商授权成功!",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("修改承运商授权成功");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("修改失败,请联系管理员!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改失败,请联系管理员!",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败,请联系管理员!");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("修改失败,请联系管理员!");
|
|
|
+ this.$message({
|
|
|
+ duration:600,
|
|
|
+ message:"修改失败,请联系管理员!",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败,请联系管理员!");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
@@ -1054,17 +1213,32 @@ export default {
|
|
|
.post("/api/v1/ams/dispatchToCarrier", arr)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("授权承运商成功");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"授权承运商成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("授权承运商成功");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("授权失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"授权失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("授权失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("授权失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"授权失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("授权失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
@@ -1175,19 +1349,34 @@ export default {
|
|
|
.post("/api/v1/ams/updateCarAddress", map)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("修改收货地址成功!");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"修改收货地址成功!",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("修改收货地址成功!");
|
|
|
this.getSteelReport();
|
|
|
this.drawer = false;
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("修改失败,请联系管理员!");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"修改失败,请联系管理员!",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败,请联系管理员!");
|
|
|
this.getSteelReport();
|
|
|
this.drawer = false;
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("修改失败,请联系管理员!");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"修改失败,请联系管理员!",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改失败,请联系管理员!");
|
|
|
this.getSteelReport();
|
|
|
this.drawer = false;
|
|
|
loading.close();
|
|
@@ -1254,21 +1443,52 @@ export default {
|
|
|
.post("/api/v1/oms/updateMaterialMes", updateMap)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("修改物资数量成功");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"修改物资数量成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("修改物资数量成功");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("修改物资数量失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"修改物资数量失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改物资数量失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("修改物资数量失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"修改物资数量失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("修改物资数量失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
|
},
|
|
|
+ //继续装
|
|
|
+ continue1(row){
|
|
|
+ let map={
|
|
|
+ orderId:row.orderId
|
|
|
+ }
|
|
|
+ this.axios
|
|
|
+ .post("/api/v1/oms/updateContinueStaus", map)
|
|
|
+ .then((res)=>{
|
|
|
+ if (res.data.code=="200"){
|
|
|
+ this.$message.success("修改成功")
|
|
|
+ }else {
|
|
|
+ this.$message.error("修改失败")
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.getSteelReport();
|
|
|
+ },
|
|
|
//关闭单条分录
|
|
|
closeEasEntryId(row) {
|
|
|
console.log(row);
|
|
@@ -1298,24 +1518,44 @@ export default {
|
|
|
.post("/api/v1/ams/closeSteelMaterialId", map)
|
|
|
.then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
- this.$message.success("关闭成功");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"关闭成功",
|
|
|
+ type:"success"
|
|
|
+ })
|
|
|
+ //this.$message.success("关闭成功");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
} else {
|
|
|
- this.$message.error("关闭失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"关闭失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("关闭失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.error("关闭失败,请联系管理员");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"关闭失败,请联系管理员",
|
|
|
+ type:"error"
|
|
|
+ })
|
|
|
+ //this.$message.error("关闭失败,请联系管理员");
|
|
|
this.getSteelReport();
|
|
|
loading.close();
|
|
|
});
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.$message.info("取消输入");
|
|
|
+ this.$message({
|
|
|
+ duration:1000,
|
|
|
+ message:"取消输入",
|
|
|
+ type:"info"
|
|
|
+ })
|
|
|
+ //this.$message.info("取消输入");
|
|
|
});
|
|
|
},
|
|
|
//查询,输入查询条件
|