From a698049e9a3ee408ec3aea173e72d538793d1c91 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Sat, 25 Jun 2022 14:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E4=B8=9A=E5=8A=A1=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9=E5=88=86=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/warehouse/stockHospOrderNew.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/warehouse/stockHospOrderNew.vue b/src/views/warehouse/stockHospOrderNew.vue index d1b6cfc..9498acc 100644 --- a/src/views/warehouse/stockHospOrderNew.vue +++ b/src/views/warehouse/stockHospOrderNew.vue @@ -426,7 +426,7 @@ export default { page: 1, limit: 10, }, - formData: {noInvOut: false, locStorageCode: null}, + formData: {noInvOut: false, locStorageCode: null, invWarehouseCode: null}, formRules: { corpName: [ {required: true, message: "请输入供应商", trigger: "blur"} @@ -1179,7 +1179,9 @@ export default { this.findStorageMethod(); }, invChange() { - this.formData.invWarehouseCode = ""; + + if (this.$isNotBlank(this.formData.invWarehouseCode)) + this.formData.invWarehouseCode = null; this.subInvList = []; let query = { pcode: this.formData.locStorageCode @@ -1202,7 +1204,7 @@ export default { created() { this.getBusType("NOCODE"); this.getStorage(); - this.formData = {}; + this.formData = {noInvOut: false, locStorageCode: null, invWarehouseCode: null}; this.codeArray = []; this.closeConfirmFunction(false); if (this.$isNotBlank(this.idQuery.id)) {