Commit 4fafcee6 authored by liuzeheng's avatar liuzeheng

未装箱的订单装箱

parent 7f548d45
......@@ -592,33 +592,41 @@ export default {
}, 1000);
},
getDetialOfSelfNO(){
singleCreate({pkgId:this.pkgId,type:1,shipmentId: this.shipmentId,orderNumCode:this.keyword}).then((data)=>{
this.showMessageAndReload("合包成功");
let mainNumber = this.keyword.substring(
0,
this.keyword.lastIndexOf("-")
);
if (this.heightLightId != "order-" + mainNumber.toUpperCase()) {
setTimeout(() => {
this.heightLightId = "order-" + mainNumber.toUpperCase();
}, 1500);
}
this.ScanSuccess();
this.currentType = 1
//清空
this.keyword = "";
})
.catch((data) => {
scanOrderNoCreate({"orderNo":this.keyword,"pkgNum":this.pkgNum}).then(data=>{
msg(this.$t('装箱成功'))
this.getData()
}) .catch((data) => {
//其它错误
this.$store.dispatch("SHOW_TOAST", {
msg: data.msg,
});
//清空
this.keyword = "";
});
});
// singleCreate({pkgId:this.pkgId,type:1,shipmentId: this.shipmentId,orderNumCode:this.keyword}).then((data)=>{
// this.showMessageAndReload("合包成功");
// let mainNumber = this.keyword.substring(
// 0,
// this.keyword.lastIndexOf("-")
// );
// if (this.heightLightId != "order-" + mainNumber.toUpperCase()) {
// setTimeout(() => {
// this.heightLightId = "order-" + mainNumber.toUpperCase();
// }, 1500);
// }
// this.ScanSuccess();
// this.currentType = 1
// //清空
// this.keyword = "";
// })
// .catch((data) => {
// //其它错误
// this.$store.dispatch("SHOW_TOAST", {
// msg: data.msg,
// });
// //清空
// this.keyword = "";
this.ScanError();
});
// this.ScanError();
// });
// tallyPage({selfNo:this.keyword}).then((data) => {
// if(data.list.length>0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment