diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue
index b888679..03108a3 100644
--- a/src/views/inout/DialogCreateOrder.vue
+++ b/src/views/inout/DialogCreateOrder.vue
@@ -247,7 +247,7 @@ import codesPanel from "./PanelCreateOrderCodes"
import codeDetailPanel from "./PanelCreateOrderCodeDetail"
import bizDetailPanel from "./PanelCreateOrderBizDetail"
import A from "../../plugins/KeyScaner"
-import { findByInvUser, getLocalJoinByUser } from '@/api/basic/busType'
+import {findByInvUser, getLocalJoinByUser} from '@/api/basic/busType'
export default {
name: "ioCreateOrder",
@@ -289,6 +289,7 @@ export default {
//扫码相关
codeFormData: {
+ orderId: null,
code: "",
batchNo: null,
produceDate: null,
@@ -598,6 +599,7 @@ export default {
this.codeFormData.expireDate = response.data.expireDate;
this.codeFormData.batchNo = response.data.batchNo;
this.codeFormData.serialNo = response.data.serialNo;
+ this.codeFormData.orderId = this.orderFormData.billNo;
this.$message({
type: 'error',
message: "提交失败!" + this.editTitle,
diff --git a/src/views/inout/DialogEditCode.vue b/src/views/inout/DialogEditCode.vue
index 0524b8f..a08a74d 100644
--- a/src/views/inout/DialogEditCode.vue
+++ b/src/views/inout/DialogEditCode.vue
@@ -106,18 +106,26 @@ export default {
methods: {
saveCode() {
- 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;
- });
+
+
+ if (this.editTye == 1) {
+ this.repeatAddCode(this.editData);
+ } 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;
+ });
+ }
+
+
}
,
cancelDialog() {
diff --git a/src/views/inout/DialogInvoice.vue b/src/views/inout/DialogInvoice.vue
index 38a46fc..fefc39d 100644
--- a/src/views/inout/DialogInvoice.vue
+++ b/src/views/inout/DialogInvoice.vue
@@ -136,7 +136,7 @@