Commit 782bf349 authored by liuzeheng's avatar liuzeheng

扫描装箱

parent 77896584
...@@ -209,3 +209,13 @@ export function batchDeleteMore(data) { ...@@ -209,3 +209,13 @@ export function batchDeleteMore(data) {
loading: true, loading: true,
}); });
} }
/**
* 扫描订单号装箱
*/
export function scanOrderNoCreate(data){
return http('/ecw/box-pkg-order/scanOrderNoCreate', data, {
method: 'POST',
loading: true,
});
}
...@@ -7,11 +7,13 @@ ...@@ -7,11 +7,13 @@
v-model="keyword" v-model="keyword"
:focus="focusStart" :focus="focusStart"
:placeholder="$t('请扫描条形码')" :placeholder="$t('请扫描条形码')"
@iconClick="()=>{scanCode('loading')}" @iconClick="()=>{scanCode('loading')}"
@confirm="searchCode" @confirm="searchCode"
@submit="keyword=$event;searchCode()" @submit="keyword=$event;searchCode()"
></scanlistener> ></scanlistener>
</view> </view>
<view style="height: 60px; background: #2f4dae"></view> <view style="height: 60px; background: #2f4dae"></view>
<view class="content-wrap"> <view class="content-wrap">
<view class="title"> <view class="title">
...@@ -290,7 +292,8 @@ ...@@ -290,7 +292,8 @@
import {uniIcons} from '@dcloudio/uni-ui'; import {uniIcons} from '@dcloudio/uni-ui';
import { import {
createMergePkgOrder, createMergePkgOrderBatch, finishMergePkg, createMergePkgOrder, createMergePkgOrderBatch, finishMergePkg,
getPkgPageByPkgId, getUnPkgPage, removeMergePkg, removeMergePkgBatch getPkgPageByPkgId, getUnPkgPage, removeMergePkg, removeMergePkgBatch,
scanOrderNoCreate
} from "./api"; } from "./api";
import { batchCreateMore,batchDeleteMore,singleCreate,orderTagList } from "../tallyAir/api"; import { batchCreateMore,batchDeleteMore,singleCreate,orderTagList } from "../tallyAir/api";
import { getOrderDetailByBoxNo } from "../loading/api"; import { getOrderDetailByBoxNo } from "../loading/api";
...@@ -424,6 +427,9 @@ export default { ...@@ -424,6 +427,9 @@ export default {
}, },
// 装箱 // 装箱
pack(item){ pack(item){
if(item.customsType!=='1'){
return msg(this.$t('订单非我司全代,不允许合包'))
}
createMergePkgOrder({ createMergePkgOrder({
orderId: item.orderId, orderId: item.orderId,
pkgId: this.pkgId pkgId: this.pkgId
...@@ -540,7 +546,14 @@ export default { ...@@ -540,7 +546,14 @@ export default {
break; break;
case "loading": case "loading":
this.keyword = res.result; this.keyword = res.result;
this.getData(); //this.getData();
//this.searchCode();
scanOrderNoCreate({"orderNo":this.keyword,"pkgNum":this.pkgNum}).then(data=>{
msg(this.$t('装箱成功'))
this.getData()
})
break; break;
case "unloadConfirm": case "unloadConfirm":
this.unloadNumber = res.result; this.unloadNumber = res.result;
...@@ -551,8 +564,11 @@ export default { ...@@ -551,8 +564,11 @@ export default {
}); });
}, },
searchCode() { searchCode() {
setTimeout(this.getDetialOfSelfNO, 100) setTimeout(this.getDetialOfSelfNO, 100)
}, },
/* 显示装柜纠错 */ /* 显示装柜纠错 */
showErrorCorrection(show) { showErrorCorrection(show) {
this.errorModal = show; this.errorModal = show;
...@@ -576,6 +592,7 @@ export default { ...@@ -576,6 +592,7 @@ export default {
}, 1000); }, 1000);
}, },
getDetialOfSelfNO(){ getDetialOfSelfNO(){
singleCreate({pkgId:this.pkgId,type:1,shipmentId: this.shipmentId,orderNumCode:this.keyword}).then((data)=>{ singleCreate({pkgId:this.pkgId,type:1,shipmentId: this.shipmentId,orderNumCode:this.keyword}).then((data)=>{
this.showMessageAndReload("合包成功"); this.showMessageAndReload("合包成功");
let mainNumber = this.keyword.substring( let mainNumber = this.keyword.substring(
...@@ -602,7 +619,7 @@ export default { ...@@ -602,7 +619,7 @@ export default {
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){
// this.shipmentId = data.list[0].id // this.shipmentId = data.list[0].id
......
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