diff --git a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue index b1459379d3..49f5be6f8f 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue @@ -261,16 +261,21 @@ } }, created() { - getOrgSidByPath({ - orgPath: window.sessionStorage.getItem('defaultOrgPath') - }).then((res) => { - if (res.success) { - this.formobj.createOrgSid = res.data - this.formobj.useOrgSid = res.data - } - }) + }, methods: { + + init() { + getOrgSidByPath({ + orgPath: window.sessionStorage.getItem('defaultOrgPath') + }).then((res) => { + if (res.success) { + this.formobj.createOrgSid = res.data + this.formobj.useOrgSid = res.data + } + }) + }, + // getOrgPathSid() { // getOrgSidByPath({ // orgPath: window.sessionStorage.getItem('defaultOrgPath') @@ -653,13 +658,14 @@ this.$nextTick(() => { this.$refs['form_obj'].clearValidate() }) + this.init() }, showEdit(row) { this.$nextTick(() => { this.$refs['form_obj'].clearValidate() }) - + this.init() // this.getWarehouseList() this.getsupplierLust() // this.getOrgPathSid() diff --git a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue index 6e3d7be683..298b4cfd84 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue @@ -371,17 +371,20 @@ } }, created() { - getOrgSidByPath({ - orgPath: window.sessionStorage.getItem('defaultOrgPath') - }).then((res) => { - if (res.success) { - this.formobj.createOrgSid = res.data - this.formobj.useOrgSid = res.data - } - }) + }, methods: { + init(){ + getOrgSidByPath({ + orgPath: window.sessionStorage.getItem('defaultOrgPath') + }).then((res) => { + if (res.success) { + this.formobj.createOrgSid = res.data + this.formobj.useOrgSid = res.data + } + }) + }, // commodityInput(value) { // this.commodityQuery.params.name = value // this.commodityLoading = true @@ -674,6 +677,7 @@ this.isUpdata = false console.log("showAdd", this.isUpdata); + this.init() this.getsupplierLust() this.getWarehouseList() @@ -692,6 +696,7 @@ showEdit(row) { this.title = "【修改】" this.isUpdata = true + this.init() this.getsupplierLust() this.getWarehouseList() console.log("showEdit", this.isUpdata);