多码处理

yanshishuju
yewj 7 months ago
parent 464b40687f
commit 3de399ea37

@ -1112,6 +1112,9 @@ export default {
async printMutiCodeResult(vailCodeResultResponses) {
this.warnResult = "";
this.errResult = "";
this.result = "";
this.warnVisible = false;
this.errVisible = false;
for (let i = 0; i < vailCodeResultResponses.length; i++) {
@ -1185,7 +1188,7 @@ export default {
let params = {
codeList: event.detail.recCodes,
};
console.log(this.formData)
if (this.formData.billNo == null) {
this.$message.error("请先选入单据!");
return

@ -63,10 +63,10 @@
v-if="splitType=='return'" style="margin-right: 8px;border-radius: 5%;"
>退货完成
</el-button>
<el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading"
style="border-radius: 5%;"
>打印二维码
</el-button>
<!-- <el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading"-->
<!-- style="border-radius: 5%;"-->
<!-- >打印二维码-->
<!-- </el-button>-->
</el-button-group>
</el-row>
@ -204,8 +204,9 @@
type="tel"
placeholder="请点击输入框进行扫码设置或者扫码录入"
v-model="scanCode"
:disabled="scanDisabled"
></el-input>
<!-- :disabled="scanDisabled"-->
</el-form-item>
</el-col>
<el-col :span="6">
@ -224,11 +225,27 @@
</el-row>
<el-alert
title="扫码解析结果:"
title="扫码结果:"
:type="scanResultType"
:closable="false"
:description="result">
</el-alert>
<el-alert
v-if="warnVisible"
title="警告信息:"
type="warning"
:closable="true"
:dangerouslyUseHTMLString="true"
:description="warnResult">
</el-alert>
<el-alert
v-if="errVisible"
title="错误信息:"
type="warning"
:closable="true"
:dangerouslyUseHTMLString="true"
:description="errResult">
</el-alert>
<el-row style="margin-top: 25px;margin-bottom: -15px">
<div v-if="showSearch && splitBusType!=null">
<el-divider>
@ -1881,6 +1898,7 @@ export default {
batchAddCode(this.orderFormData).then((res) => {
if (res.code === 20000) {
this.$refs.inputRef.focus();
this.orderFormData.billNo = res.data.orderId;
this.refreshCodesPanel(this);
this.printMutiCodeResult(res.data.vailCodeResultResponses)
} else {
@ -1895,6 +1913,9 @@ export default {
},
async printMutiCodeResult(vailCodeResultResponses) {
this.warnResult = "";
this.errResult = "";
this.result = "";
this.warnVisible = false;
this.errVisible = false;
for (let i = 0; i < vailCodeResultResponses.length; i++) {

Loading…
Cancel
Save