接口
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {FormTypes, pmFormData} from '@/utils/mork2.js'
|
||||
import {pmFormData2} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -67,8 +67,6 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options: [],
|
||||
index: '',
|
||||
val1: '',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
@@ -87,26 +85,15 @@
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
this._FormTypes()
|
||||
},
|
||||
methods: {
|
||||
async _FormTypes () {
|
||||
let res = await FormTypes()
|
||||
this.options = [...res]
|
||||
this.options.map(el => {
|
||||
this.$set(el, 'text', el.lable)
|
||||
})
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
},
|
||||
searchList () {
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
this._pmFormData()
|
||||
},
|
||||
async _pmFormData () {
|
||||
let res = await pmFormData(this.pageNum + '', this.pageSize + '', this.val1, this.index)
|
||||
let res = await pmFormData2(this.pageNum + '', this.pageSize + '', 'Picking', '10', this.val1)
|
||||
if (res.code === '200') {
|
||||
this.totalCount = res.totalElements
|
||||
if (res.totalElements > 0) {
|
||||
@@ -134,7 +121,6 @@
|
||||
}
|
||||
},
|
||||
toEmpty () {
|
||||
this.index = ''
|
||||
this.val1 = ''
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
@@ -147,7 +133,7 @@
|
||||
},
|
||||
toSure () {
|
||||
if (this.pkId) {
|
||||
this.$store.dispatch('setPublicArr', [this.pkObj])
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user