三期出现重复序列号问题

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

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

@ -72,6 +72,7 @@
<script> <script>
import { import {
checkTempCode,
findByCode, findByCode,
saveCode, tabCode saveCode, tabCode
} from "@/api/inout/code"; } from "@/api/inout/code";
@ -113,7 +114,20 @@ export default {
methods: { methods: {
saveCode() { saveCode() {
if (this.editType == 1) { if (this.editType == 1) {
//
if (!isBlank(this.editData.serialNo)) {
checkTempCode(this.editData).then((response) => {
if (response.code === 20000) {
this.repeatAddCode(this.editData); this.repeatAddCode(this.editData);
return
} else {
this.$message.error(response.message);
return
}
});
}else{
this.repeatAddCode(this.editData);
}
// tabCode(this.editData) // tabCode(this.editData)
// .then((response) => { // .then((response) => {
@ -171,17 +185,17 @@ export default {
this.editData = JSON.parse(JSON.stringify(this.codeDetail)); this.editData = JSON.parse(JSON.stringify(this.codeDetail));
this.findByCode(); this.findByCode();
// //
if(isBlank(this.editData.produceDate)){ if (isBlank(this.editData.produceDate)) {
this.isProduceDate=true this.isProduceDate = true
} }
if(isBlank(this.editData.expireDate)){ if (isBlank(this.editData.expireDate)) {
this.isExpireDate=true this.isExpireDate = true
} }
if(isBlank(this.editData.batchNo)){ if (isBlank(this.editData.batchNo)) {
this.isBatchNo=true this.isBatchNo = true
} }
if(isBlank(this.editData.serialNo)){ if (isBlank(this.editData.serialNo)) {
this.isSerialNo=true this.isSerialNo = true
} }
} }
} }

Loading…
Cancel
Save