From 432e6a9e9b0a3476a3d6c7ef4f45c45fb8a94897 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Wed, 26 Oct 2022 09:46:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8B=A8=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=BB=93=E5=BA=93=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/userManage/admin/authRole.vue | 5 +++-- src/views/warehouse/addHosOrder.vue | 9 +++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/userManage/admin/authRole.vue b/src/views/userManage/admin/authRole.vue index 6aa487f..71be768 100644 --- a/src/views/userManage/admin/authRole.vue +++ b/src/views/userManage/admin/authRole.vue @@ -93,6 +93,7 @@ :page-size="query.limit" @current-change="handleCurrentChange" layout="prev, pager, next" + :current-page="query.page" :total="total" > @@ -326,7 +327,7 @@ export default { this.getList(); }, handleCurrentChange(val) { - + this.query.page = val; this.getList(); }, @@ -467,7 +468,7 @@ export default { }, formSubmit() { var regu = "^[ ]+$"; - var re = new RegExp(regu); + var re = new RegExp(regu); if (this.$isBlank(this.formData.name) || re.test(this.formData.name)) { this.$message.error("请输入角色名称!"); return; diff --git a/src/views/warehouse/addHosOrder.vue b/src/views/warehouse/addHosOrder.vue index f65e731..988d6dc 100644 --- a/src/views/warehouse/addHosOrder.vue +++ b/src/views/warehouse/addHosOrder.vue @@ -1035,7 +1035,7 @@ export default { }); }, - findSubStorageMethod() { + findSubStorageMethod(val) { let cQuery = { pcode: this.formData.fromCorpId, filter: 2, @@ -1043,7 +1043,10 @@ export default { filterSubByInv(cQuery) .then((response) => { this.fromSubStorageOptions = response.data || []; - this.formData.fromSubInvCode = this.fromSubStorageOptions[0].code; + if (val == 1) { + + } else + this.formData.fromSubInvCode = this.fromSubStorageOptions[0].code; }) .catch(() => { }); @@ -1231,6 +1234,8 @@ export default { this.formData.preCheck = this.idQuery.preCheck; this.actionEnable = true; this.getCodeList(); + + this.findSubStorageMethod(1); } else { this.corpOrderIdDisabled = false; if (JSON.stringify(this.$route.query) === '{}') {