sov
This commit is contained in:
@@ -174,10 +174,12 @@ export const outgetBillType = () => post('api/pda/bcp/out/getBillType', {})
|
|||||||
// return res
|
// return res
|
||||||
// }
|
// }
|
||||||
// 1.3物料选择页面
|
// 1.3物料选择页面
|
||||||
export const outgetMaterial = (code, scode, is) => post('api/pda/bcp/out/getMaterial', {
|
export const outgetMaterial = (code, scode, is, page, size) => post('api/pda/bcp/out/getMaterial', {
|
||||||
material_code: code,
|
material_code: code,
|
||||||
struct_code: scode,
|
struct_code: scode,
|
||||||
is_material: is
|
is_material: is,
|
||||||
|
page: page,
|
||||||
|
size: size
|
||||||
})
|
})
|
||||||
// 1.4出库点下拉框
|
// 1.4出库点下拉框
|
||||||
export const outgetPoint = () => post('api/pda/bcp/out/getPoint', {})
|
export const outgetPoint = () => post('api/pda/bcp/out/getPoint', {})
|
||||||
|
|||||||
@@ -86,8 +86,6 @@ export default {
|
|||||||
this.busy = false
|
this.busy = false
|
||||||
this.desc = ''
|
this.desc = ''
|
||||||
let res = await getMaterial(this.val1, this.page + '', this.size)
|
let res = await getMaterial(this.val1, this.page + '', this.size)
|
||||||
this.dataList = [...res.data]
|
|
||||||
|
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.dataList = [...res.data]
|
this.dataList = [...res.data]
|
||||||
if (res.data.length < 30) {
|
if (res.data.length < 30) {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid_wraper">
|
<div class="grid_wraper" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="0" infinite-scroll-immediate-check="false">
|
||||||
<table class="filter-table">
|
<table class="filter-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -51,6 +51,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="loading-tips">{{desc}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -65,7 +66,11 @@ export default {
|
|||||||
isV: '1',
|
isV: '1',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
pkObj: {}
|
pkObj: {},
|
||||||
|
page: 1,
|
||||||
|
size: '30',
|
||||||
|
busy: false,
|
||||||
|
desc: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -74,8 +79,28 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// grid
|
// grid
|
||||||
async _outgetMaterial () {
|
async _outgetMaterial () {
|
||||||
let res = await outgetMaterial(this.val2, this.val1, this.isV)
|
this.page = 1
|
||||||
|
this.busy = false
|
||||||
|
this.desc = ''
|
||||||
|
let res = await outgetMaterial(this.val2, this.val1, this.isV, this.page + '', this.size)
|
||||||
|
this.dataList = []
|
||||||
this.dataList = [...res.data]
|
this.dataList = [...res.data]
|
||||||
|
if (res.data.length < 30) {
|
||||||
|
this.busy = true
|
||||||
|
this.desc = '已加载全部数据'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async loadMore () {
|
||||||
|
this.busy = true
|
||||||
|
this.page++
|
||||||
|
let res = await outgetMaterial(this.val2, this.val1, this.isV, this.page + '', this.size)
|
||||||
|
this.dataList = [...this.dataList, ...res.data]
|
||||||
|
if (res.data.length < 30) {
|
||||||
|
this.busy = true
|
||||||
|
this.desc = '已加载全部数据'
|
||||||
|
} else {
|
||||||
|
this.busy = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
colseUp () {
|
colseUp () {
|
||||||
this.$router.push('/semifinishedoutstore')
|
this.$router.push('/semifinishedoutstore')
|
||||||
|
|||||||
Reference in New Issue
Block a user