Commit 4fafcee6 authored by liuzeheng's avatar liuzeheng

未装箱的订单装箱

parent 7f548d45
...@@ -592,33 +592,41 @@ export default { ...@@ -592,33 +592,41 @@ export default {
}, 1000); }, 1000);
}, },
getDetialOfSelfNO(){ getDetialOfSelfNO(){
scanOrderNoCreate({"orderNo":this.keyword,"pkgNum":this.pkgNum}).then(data=>{
singleCreate({pkgId:this.pkgId,type:1,shipmentId: this.shipmentId,orderNumCode:this.keyword}).then((data)=>{ msg(this.$t('装箱成功'))
this.showMessageAndReload("合包成功"); this.getData()
let mainNumber = this.keyword.substring( }) .catch((data) => {
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", { this.$store.dispatch("SHOW_TOAST", {
msg: data.msg, 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) => { // tallyPage({selfNo:this.keyword}).then((data) => {
// if(data.list.length>0){ // 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