工位上货多行条码输入

yanshishuju
yewj 7 months ago
parent e66329b550
commit 824f919f39

@ -9,39 +9,11 @@
>
<el-card>
<!-- <el-row :gutter="0" v-if="isLinkDisabled">-->
<!-- <el-col :span="24" align="right">-->
<!-- <div class="inv-hos-title">-->
<!-- <span-->
<!-- style="margin: 10px;color: #2d8cf0;font-size: 14px;"-->
<!-- >部门&nbsp:&nbsp{{ this.userInfo.deptName }}</span>-->
<!-- <span style="font-weight: 500;color:rgb(51 48 48); font-size: 14px;">用户&nbsp:&nbsp-->
<!-- </span>-->
<!-- <span-->
<!-- style="font-weight: 500;color:rgb(51 48 48); font-size: 14px; margin-right: 20px"-->
<!-- >({{-->
<!-- this.userInfo.userName-->
<!-- }})</span>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-alert-->
<!-- style="margin-top: 1px;margin-bottom: 10px;font-size: 20px;"-->
<!-- :title="msgTip"-->
<!-- :closable="false"-->
<!-- type="warning">-->
<!-- </el-alert>-->
<el-row style="margin-bottom: 8px">
<el-button-group
style="display: flex; margin-top: 5px; float: right"
>
<!--<el-button size="mini" type="primary" @click.native="saveOrder()" :loading="saveLoading"-->
<!--&gt;草稿保存-->
<!--</el-button>-->
<el-button size="mini" type="primary" @click.native="chooseDraftOrder()" :loading="submitLoading"
v-if="splitType=='out'" style="margin-right: 8px;border-radius: 5%;" v-show="isLinkDisabled"
>选入草稿单据
@ -354,12 +326,10 @@ import DialogSelectSpace from "@/views/inout/DialogSelectSpace";
import {isBlank} from "@/utils/strUtil";
import {filterNoPage, remoteFilter} from "@/api/basic/sicker/skPersonApi";
import dialogInvProduct from "@/views/inout/DialogSelectInvProduct";
import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage";
import {printSplitLabel} from "@/api/collect/splitCreateOrder";
import {findInvRemind} from "@/api/inout/splitCode";
import chooseDraftOrderDialog from "./chooseDraftOrderDialog"
import {getUserBindWork} from '@/api/basic/collectPoint/userWorkplace'
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
import {getWorkBindBusTypes} from '@/api/basic/workPlace/sysWorkplaceDocuments'
export default {
name: "ioCreateOrder",
@ -1604,7 +1574,17 @@ export default {
this.checkSuccess = true;
if (this.getDMHotskeyValue(this.scanCode))
return
this.codeFormData.code = this.scanCode;
this.codeFormData.code = this.scanCode.trim();
if (this.codeFormData.code.includes(";")) {
const codeArray = this.codeFormData.code.split(";");
let params = {
codeList: codeArray,
};
this.batchVailCode(params)
return;
}
let tQuery = {
originCode: this.originCode,
code: this.codeFormData.code.trim(),
@ -1877,7 +1857,10 @@ export default {
let params = {
codeList: event.detail.recCodes,
};
//
this.batchVailCode(params)
},
batchVailCode(params) {
batchVailCode(params).then((response) => {
if (response.code === 20000) {
console.log("==滴码接收==", response.data);
@ -1888,12 +1871,7 @@ export default {
this.valiCodes.push(item.code);
}
});
//
if (this.valiCodes != null && this.valiCodes.length > 0) {
// let params2 = {
// workPlaceCode: this.orderFormData.workPlaceCode,
// codeList: this.valiCodes
// }
this.orderFormData.codeList = this.valiCodes
batchAddCode(this.orderFormData).then((res) => {
if (res.code === 20000) {
@ -1906,12 +1884,11 @@ export default {
}
});
}
}
// this.scanCode = this.valiCodes.join(";");
});
},
async printMutiCodeResult(vailCodeResultResponses) {
this.warnResult = "";
this.errResult = "";

Loading…
Cancel
Save