|
|
|
@ -106,7 +106,7 @@
|
|
|
|
|
<el-table-column label="价格" width="120" prop="price"></el-table-column>
|
|
|
|
|
<el-table-column width="100" label="计量单位" prop="measname">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案凭证号" width="150" prop="certCode"></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案号" width="150" prop="certCode"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="销售清单号(第二票)" width="180" prop="secSalesListNo">
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -194,7 +194,8 @@ export default {
|
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
|
this.udiCode = response.data;
|
|
|
|
|
this.addCode();
|
|
|
|
|
this.originCode = "";
|
|
|
|
|
this.addCode(event);
|
|
|
|
|
} else {
|
|
|
|
|
if (response.code == 502) {
|
|
|
|
|
this.checkSuccess = false;
|
|
|
|
@ -202,6 +203,9 @@ export default {
|
|
|
|
|
this.originCode = this.udiCode;
|
|
|
|
|
} else if (response.code == 501) {
|
|
|
|
|
this.checkSuccess = false;
|
|
|
|
|
// this.$refs.inputRef.focus();
|
|
|
|
|
// this.$refs.inputRef.select();
|
|
|
|
|
this.originCode = "";
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
} else if (response.code == 503) {
|
|
|
|
|
this.checkSuccess = false;
|
|
|
|
@ -222,6 +226,7 @@ export default {
|
|
|
|
|
this.udiCode = "01" + response.data.nameCode;
|
|
|
|
|
this.originCode = this.udiCode;
|
|
|
|
|
} else {
|
|
|
|
|
this.originCode = "";
|
|
|
|
|
this.$alert(response.message, '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
type: 'warning',
|
|
|
|
@ -237,7 +242,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
addCode() {
|
|
|
|
|
addCode(event) {
|
|
|
|
|
if (this.$isBlank(this.udiCode)) {
|
|
|
|
|
this.$message.error("UDI码不能为空!");
|
|
|
|
|
}
|
|
|
|
@ -246,6 +251,8 @@ export default {
|
|
|
|
|
orderDetailEntities: this.detailList,
|
|
|
|
|
code: this.udiCode,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
acceptAddCode(postQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
@ -264,10 +271,16 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.success("匹配成功!");
|
|
|
|
|
if (event == null) {
|
|
|
|
|
} else event.target.select();
|
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
if (event == null) {
|
|
|
|
|
} else event.target.select();
|
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -285,7 +298,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkFinish() {
|
|
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
orderId: this.orderQuery.billNo,
|
|
|
|
|
};
|
|
|
|
@ -305,6 +317,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finishAccept(tip) {
|
|
|
|
|
this.$confirm(tip, '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
@ -312,11 +325,12 @@ export default {
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.postAccept();
|
|
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
// this.$message.info('回退失败');
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
postAccept() {
|
|
|
|
|
let query = {
|
|
|
|
|
orderId: this.orderQuery.billNo,
|
|
|
|
@ -335,7 +349,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
renewAccept() {
|
|
|
|
|
let query = {
|
|
|
|
|
billNo: this.orderQuery.billNo,
|
|
|
|
@ -394,16 +407,18 @@ export default {
|
|
|
|
|
window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点
|
|
|
|
|
sc.onInput = function (text) {
|
|
|
|
|
if (text.includes("delete")) {
|
|
|
|
|
that.vailQuery.code = "";
|
|
|
|
|
that.udiCode = "";
|
|
|
|
|
that.sictomText = "";
|
|
|
|
|
that.originCode = "";
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (that.sitcomScan) {
|
|
|
|
|
let tempTxt = text;
|
|
|
|
|
let str = tempTxt.replace(/[\r]/g, "");
|
|
|
|
|
that.sictomText = that.sictomText + str;
|
|
|
|
|
that.vailQuery.code = that.sictomText;
|
|
|
|
|
that.udiCode = that.sictomText;
|
|
|
|
|
} else {
|
|
|
|
|
that.vailQuery.code = text;
|
|
|
|
|
that.udiCode = text;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
inputer.focus();
|
|
|
|
|