接口对接
This commit is contained in:
@@ -147,6 +147,7 @@
|
|||||||
dataList2: [],
|
dataList2: [],
|
||||||
dataList3: [],
|
dataList3: [],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
|
pkObj: {},
|
||||||
checkArr1: [],
|
checkArr1: [],
|
||||||
disabled1: false,
|
disabled1: false,
|
||||||
totalCount1: 0,
|
totalCount1: 0,
|
||||||
@@ -155,7 +156,6 @@
|
|||||||
pageNum: 1
|
pageNum: 1
|
||||||
},
|
},
|
||||||
currentPage1: 1,
|
currentPage1: 1,
|
||||||
code: '',
|
|
||||||
totalCount2: 0,
|
totalCount2: 0,
|
||||||
queryParams2:{
|
queryParams2:{
|
||||||
pageSize: 5,
|
pageSize: 5,
|
||||||
@@ -180,6 +180,9 @@
|
|||||||
this.id = options.id
|
this.id = options.id
|
||||||
this.title = options.name
|
this.title = options.name
|
||||||
},
|
},
|
||||||
|
created () {
|
||||||
|
this.toSearch()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toSearch () {
|
toSearch () {
|
||||||
this.queryParams1 = {
|
this.queryParams1 = {
|
||||||
@@ -209,7 +212,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _easOutInBillDetailPage () {
|
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) {
|
if (res.code === 1) {
|
||||||
this.checkArr2 = []
|
this.checkArr2 = []
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
@@ -230,6 +233,7 @@
|
|||||||
this.queryParams1.pageNum = page
|
this.queryParams1.pageNum = page
|
||||||
this.currentPage1 = page
|
this.currentPage1 = page
|
||||||
this.dataList2 = []
|
this.dataList2 = []
|
||||||
|
this.pkId = ''
|
||||||
this._easOutInBillPage()
|
this._easOutInBillPage()
|
||||||
},
|
},
|
||||||
handlePageChange2(page) {
|
handlePageChange2(page) {
|
||||||
@@ -239,13 +243,13 @@
|
|||||||
},
|
},
|
||||||
toCollapse (e) {
|
toCollapse (e) {
|
||||||
this.pkId = this.pkId === e.id ? '' : e.id
|
this.pkId = this.pkId === e.id ? '' : e.id
|
||||||
|
this.pkObj = this.pkId === e.id ? e : {}
|
||||||
if (this.pkId === e.id) {
|
if (this.pkId === e.id) {
|
||||||
this.queryParams2 = {
|
this.queryParams2 = {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNum: 1
|
pageNum: 1
|
||||||
}
|
}
|
||||||
this.currentPage2 = 1
|
this.currentPage2 = 1
|
||||||
this.code = e.code
|
|
||||||
this._easOutInBillDetailPage()
|
this._easOutInBillDetailPage()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -147,6 +147,7 @@
|
|||||||
dataList2: [],
|
dataList2: [],
|
||||||
dataList3: [],
|
dataList3: [],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
|
pkObj: {},
|
||||||
checkArr1: [],
|
checkArr1: [],
|
||||||
disabled1: false,
|
disabled1: false,
|
||||||
totalCount1: 0,
|
totalCount1: 0,
|
||||||
@@ -155,7 +156,6 @@
|
|||||||
pageNum: 1
|
pageNum: 1
|
||||||
},
|
},
|
||||||
currentPage1: 1,
|
currentPage1: 1,
|
||||||
code: '',
|
|
||||||
totalCount2: 0,
|
totalCount2: 0,
|
||||||
queryParams2:{
|
queryParams2:{
|
||||||
pageSize: 5,
|
pageSize: 5,
|
||||||
@@ -180,6 +180,9 @@
|
|||||||
this.id = options.id
|
this.id = options.id
|
||||||
this.title = options.name
|
this.title = options.name
|
||||||
},
|
},
|
||||||
|
created () {
|
||||||
|
this.toSearch()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toSearch () {
|
toSearch () {
|
||||||
this.queryParams1 = {
|
this.queryParams1 = {
|
||||||
@@ -209,7 +212,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _easOutInBillDetailPage () {
|
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) {
|
if (res.code === 1) {
|
||||||
this.checkArr2 = []
|
this.checkArr2 = []
|
||||||
res.result.map(el => {
|
res.result.map(el => {
|
||||||
@@ -230,6 +233,7 @@
|
|||||||
this.queryParams1.pageNum = page
|
this.queryParams1.pageNum = page
|
||||||
this.currentPage1 = page
|
this.currentPage1 = page
|
||||||
this.dataList2 = []
|
this.dataList2 = []
|
||||||
|
this.pkId = ''
|
||||||
this._easOutInBillPage()
|
this._easOutInBillPage()
|
||||||
},
|
},
|
||||||
handlePageChange2(page) {
|
handlePageChange2(page) {
|
||||||
@@ -239,13 +243,13 @@
|
|||||||
},
|
},
|
||||||
toCollapse (e) {
|
toCollapse (e) {
|
||||||
this.pkId = this.pkId === e.id ? '' : e.id
|
this.pkId = this.pkId === e.id ? '' : e.id
|
||||||
|
this.pkObj = this.pkId === e.id ? e : {}
|
||||||
if (this.pkId === e.id) {
|
if (this.pkId === e.id) {
|
||||||
this.queryParams2 = {
|
this.queryParams2 = {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNum: 1
|
pageNum: 1
|
||||||
}
|
}
|
||||||
this.currentPage2 = 1
|
this.currentPage2 = 1
|
||||||
this.code = e.code
|
|
||||||
this._easOutInBillDetailPage()
|
this._easOutInBillDetailPage()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as types from '../types'
|
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 imgBaseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.81.252:8010' : 'http://192.168.81.252:8010'
|
||||||
const state = {
|
const state = {
|
||||||
baseUrl: uni.getStorageSync('baseUrl') || baseUrl,
|
baseUrl: uni.getStorageSync('baseUrl') || baseUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user