代码备份

20240912_adapter
yewj 6 months ago
parent 82e729ed0c
commit f12b6a9f2f

@ -774,7 +774,7 @@ export default {
this.warnVisible = true; this.warnVisible = true;
this.warnResult = tip; this.warnResult = tip;
this.scanTip = "扫码拆零确认:" this.scanTip = "拆零确认:"
this.$refs.inputRef.focus(); this.$refs.inputRef.focus();
this.$refs.inputRef.select(); this.$refs.inputRef.select();
this.scanSplit = true this.scanSplit = true

@ -239,30 +239,30 @@ export default {
}else if (res.code == 503){ }else if (res.code == 503){
this.replaceCode(query,2) this.replaceCode(query,2)
} else if (res.code == 504){ } else if (res.code == 504){
// //
this.$confirm('追溯码校验超出是否继续添加', '提示', { this.$confirm('追溯码校验超出是否继续添加', '提示', {
confirmButtonText: '添加', confirmButtonText: '添加',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
center: true, center: true,
closeOnPressEscape: false,// ESC closeOnPressEscape: false,// ESC
closeOnClickModal: false,// closeOnClickModal: false,//
distinguishCancelAndClose: true,// distinguishCancelAndClose: true,//
}).then(() => { }).then(() => {
scanCheckCodeReplace(query).then(res => { scanCheckCodeReplace(query).then(res => {
if (res.code == 20000){ if (res.code == 20000){
this.scanCode = '' this.scanCode = ''
this.orderData.checkCodeConfirm = res.data.checkCodeConfirm this.orderData.checkCodeConfirm = res.data.checkCodeConfirm
this.codeQuery.selectType = 1 this.codeQuery.selectType = 1
this.getResultDetailList() this.getResultDetailList()
this.getInputFocus() this.getInputFocus()
this.$message.success("添加成功") this.$message.success("添加成功")
}else { }else {
this.$message.error("添加失败") this.$message.error("添加失败")
} }
})
}) })
}) }else {
}else {
if (Array.isArray(res.data)) { if (Array.isArray(res.data)) {
} else { } else {
@ -278,9 +278,9 @@ export default {
let title = '' let title = ''
if (type == 1){ if (type == 1){
const codeStr = query.codeList.join('\n'); const codeStr = query.codeList.join('\n');
title = `${codeStr}该追溯码不存在是否继续添加`; title = `${codeStr}该追溯码不存在是否继续添加`;
}else { }else {
title = '该追溯码不存在是否继续添加' title = '该追溯码不存在是否继续添加'
} }
// //
this.$confirm(title, '提示', { this.$confirm(title, '提示', {
@ -481,19 +481,19 @@ export default {
this.commit() this.commit()
} }
// // 绿 // // 绿
// let allGreen = this.detailList.every(row => { // let allGreen = this.detailList.every(row => {
// return this.checkCodeEndList.includes(row.code); // return this.checkCodeEndList.includes(row.code);
// }); // });
// //
// if (allGreen) { // if (allGreen) {
// // 绿 // // 绿
// // this.doSubmit(); // // this.doSubmit();
// this.$message.success('绿'); // this.$message.success('绿');
// } else { // } else {
// // 绿 // // 绿
// this.$message.error('绿'); // this.$message.error('绿');
// } // }
}, },
commit(){ commit(){
commitCheckCodeOrder(this.filterQuery).then(res => { commitCheckCodeOrder(this.filterQuery).then(res => {

Loading…
Cancel
Save