接口对接

This commit is contained in:
2024-03-01 10:17:29 +08:00
parent fe2554a393
commit 690f8d7dcc
3 changed files with 15 additions and 7 deletions

View File

@@ -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()
}
},

View File

@@ -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()
}
},

View File

@@ -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,