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)) {