change
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
<view class="zd-col-16">
|
<view class="zd-col-16">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val1"
|
v-model="val1"
|
||||||
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -32,7 +33,8 @@
|
|||||||
<!-- <button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
<!-- <button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_materialTransfer">确认</button> -->
|
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_materialTransfer">确认</button> -->
|
||||||
<button class="zd-col-8 button-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
<button class="zd-col-8 button-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
||||||
<button class="zd-col-14 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="handleConfirm">{{$t('button.confirm')}}</button>
|
<button class="zd-col-8 button-primary" @tap="searchList">{{$t('button.search')}}</button>
|
||||||
|
<button class="zd-col-6 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="handleConfirm">{{$t('button.confirm')}}</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -41,7 +43,7 @@
|
|||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import { confirmAction } from '@/utils/utils.js'
|
import { confirmAction } from '@/utils/utils.js'
|
||||||
import {materialTransfer} from '@/utils/getData4.js'
|
import {getMaterialInfoByPoint, materialTransfer} from '@/utils/getData4.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -52,6 +54,7 @@
|
|||||||
title: '',
|
title: '',
|
||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
|
dataList: [],
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -61,6 +64,31 @@
|
|||||||
created () {
|
created () {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleChange (e) {
|
||||||
|
if (e) {
|
||||||
|
this.searchList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
searchList () {
|
||||||
|
this.dataList = []
|
||||||
|
this._getMaterialInfoByPoint()
|
||||||
|
},
|
||||||
|
async _getMaterialInfoByPoint () {
|
||||||
|
let res = await getMaterialInfoByPoint(this.val1)
|
||||||
|
this.dataList = res.data
|
||||||
|
// this.totalCount = res.totalElements
|
||||||
|
// if (res.totalElements > 0) {
|
||||||
|
// const dataMap = res.data
|
||||||
|
// this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
|
||||||
|
// this.reload = false
|
||||||
|
// } else {
|
||||||
|
// this.dataList = []
|
||||||
|
// }
|
||||||
|
// if (this.totalCount == this.dataList.length) {
|
||||||
|
// this.reload = false
|
||||||
|
// this.status = 'noMore'
|
||||||
|
// }
|
||||||
|
},
|
||||||
clearUp () {
|
clearUp () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user