From 690f8d7dcca82531f95f9db957fa57525090cf2d Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 1 Mar 2024 10:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/in-storage.vue | 10 +++++++--- pages/management/out-storage.vue | 10 +++++++--- vuex/modules/user.js | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/pages/management/in-storage.vue b/pages/management/in-storage.vue index 72982d7..2d4625b 100644 --- a/pages/management/in-storage.vue +++ b/pages/management/in-storage.vue @@ -147,6 +147,7 @@ dataList2: [], dataList3: [], pkId: '', + pkObj: {}, checkArr1: [], disabled1: false, totalCount1: 0, @@ -155,7 +156,6 @@ pageNum: 1 }, currentPage1: 1, - code: '', totalCount2: 0, queryParams2:{ pageSize: 5, @@ -180,6 +180,9 @@ this.id = options.id this.title = options.name }, + created () { + this.toSearch() + }, methods: { toSearch () { this.queryParams1 = { @@ -209,7 +212,7 @@ } }, async _easOutInBillDetailPage () { - let res = await easOutInBillDetailPage(this.code, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '') + let res = await easOutInBillDetailPage(this.pkObj.djid, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '') if (res.code === 1) { this.checkArr2 = [] res.result.map(el => { @@ -230,6 +233,7 @@ this.queryParams1.pageNum = page this.currentPage1 = page this.dataList2 = [] + this.pkId = '' this._easOutInBillPage() }, handlePageChange2(page) { @@ -239,13 +243,13 @@ }, toCollapse (e) { this.pkId = this.pkId === e.id ? '' : e.id + this.pkObj = this.pkId === e.id ? e : {} if (this.pkId === e.id) { this.queryParams2 = { pageSize: 10, pageNum: 1 } this.currentPage2 = 1 - this.code = e.code this._easOutInBillDetailPage() } }, diff --git a/pages/management/out-storage.vue b/pages/management/out-storage.vue index 099825d..9428696 100644 --- a/pages/management/out-storage.vue +++ b/pages/management/out-storage.vue @@ -147,6 +147,7 @@ dataList2: [], dataList3: [], pkId: '', + pkObj: {}, checkArr1: [], disabled1: false, totalCount1: 0, @@ -155,7 +156,6 @@ pageNum: 1 }, currentPage1: 1, - code: '', totalCount2: 0, queryParams2:{ pageSize: 5, @@ -180,6 +180,9 @@ this.id = options.id this.title = options.name }, + created () { + this.toSearch() + }, methods: { toSearch () { this.queryParams1 = { @@ -209,7 +212,7 @@ } }, async _easOutInBillDetailPage () { - let res = await easOutInBillDetailPage(this.code, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '') + let res = await easOutInBillDetailPage(this.pkObj.djid, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '') if (res.code === 1) { this.checkArr2 = [] res.result.map(el => { @@ -230,6 +233,7 @@ this.queryParams1.pageNum = page this.currentPage1 = page this.dataList2 = [] + this.pkId = '' this._easOutInBillPage() }, handlePageChange2(page) { @@ -239,13 +243,13 @@ }, toCollapse (e) { this.pkId = this.pkId === e.id ? '' : e.id + this.pkObj = this.pkId === e.id ? e : {} if (this.pkId === e.id) { this.queryParams2 = { pageSize: 10, pageNum: 1 } this.currentPage2 = 1 - this.code = e.code this._easOutInBillDetailPage() } }, diff --git a/vuex/modules/user.js b/vuex/modules/user.js index 5d04cd1..3e48345 100644 --- a/vuex/modules/user.js +++ b/vuex/modules/user.js @@ -1,6 +1,6 @@ import * as types from '../types' -const baseUrl = process.env.NODE_ENV === 'development' ? 'http://47.111.78.178:27017/mock/55' : 'http://192.168.81.252:8010' +const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.171:8011' : 'http://192.168.81.252:8010' const imgBaseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.252:8010' : 'http://192.168.81.252:8010' const state = { baseUrl: uni.getStorageSync('baseUrl') || baseUrl,