代码备份

20240912_adapter
yewj 6 months ago
parent 82e729ed0c
commit f12b6a9f2f

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

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

Loading…
Cancel
Save