三期出现重复序列号问题

dev
郑明梁 2 years ago
parent 21a81abb3c
commit 1ad11ce8bb

@ -1209,6 +1209,7 @@ export default {
this.codeFormData.expireDate = response.data.expireDate;
this.codeFormData.batchNo = response.data.batchNo;
this.codeFormData.serialNo = response.data.serialNo;
this.codeFormData.corpOrderId = this.orderFormData.corpOrderId;
this.$message({
type: "error",
message: "提交失败!" + this.editTitle,

@ -5,9 +5,9 @@
<el-col :span="20">
<el-form-item label="UDI码:" prop="code">
<el-input
v-model="editData.code"
clearable
disabled
v-model="editData.code"
clearable
disabled
></el-input>
</el-form-item>
</el-col>
@ -72,6 +72,7 @@
<script>
import {
checkTempCode,
findByCode,
saveCode, tabCode
} from "@/api/inout/code";
@ -113,7 +114,20 @@ export default {
methods: {
saveCode() {
if (this.editType == 1) {
this.repeatAddCode(this.editData);
//
if (!isBlank(this.editData.serialNo)) {
checkTempCode(this.editData).then((response) => {
if (response.code === 20000) {
this.repeatAddCode(this.editData);
return
} else {
this.$message.error(response.message);
return
}
});
}else{
this.repeatAddCode(this.editData);
}
// tabCode(this.editData)
// .then((response) => {
@ -128,17 +142,17 @@ export default {
} else {
saveCode(this.editData)
.then((response) => {
console.log(response)
if (response.code === 20000) {
this.$message.success("提交成功");
this.codeDetail = this.editData;
this.closeCodeDialog();
} else {
this.$message.error(response.message);
}
this.loading = false;
});
.then((response) => {
console.log(response)
if (response.code === 20000) {
this.$message.success("提交成功");
this.codeDetail = this.editData;
this.closeCodeDialog();
} else {
this.$message.error(response.message);
}
this.loading = false;
});
}
}
@ -150,18 +164,18 @@ export default {
findByCode() {
let query = {udiCode: this.editData.code};
findByCode(query)
.then((response) => {
if (response.code === 20000) {
if (response.data.scbssfbhxlh == "否") {
this.xlhEnable = true;
}
if (response.data.zxxsbzbhsydysl > 1) {
this.isUseDyCheck = true;
.then((response) => {
if (response.code === 20000) {
if (response.data.scbssfbhxlh == "否") {
this.xlhEnable = true;
}
if (response.data.zxxsbzbhsydysl > 1) {
this.isUseDyCheck = true;
}
} else {
}
} else {
}
this.loading = false;
});
this.loading = false;
});
}
}
@ -171,17 +185,17 @@ export default {
this.editData = JSON.parse(JSON.stringify(this.codeDetail));
this.findByCode();
//
if(isBlank(this.editData.produceDate)){
this.isProduceDate=true
if (isBlank(this.editData.produceDate)) {
this.isProduceDate = true
}
if(isBlank(this.editData.expireDate)){
this.isExpireDate=true
if (isBlank(this.editData.expireDate)) {
this.isExpireDate = true
}
if(isBlank(this.editData.batchNo)){
this.isBatchNo=true
if (isBlank(this.editData.batchNo)) {
this.isBatchNo = true
}
if(isBlank(this.editData.serialNo)){
this.isSerialNo=true
if (isBlank(this.editData.serialNo)) {
this.isSerialNo = true
}
}
}

Loading…
Cancel
Save