选物料

This commit is contained in:
2023-07-14 11:16:47 +08:00
parent ef53706116
commit 7597565525
2 changed files with 7 additions and 7 deletions

View File

@@ -179,7 +179,7 @@ export const washweighingFinish = (dcode, dweight, mcode, mspec, mname) => post(
}) })
// 1.5查询物料列表 // 1.5查询物料列表
export const washsearchlist = (page, size, mcode) => post('api/pda/wash/searchlist', { export const washmaterialList = (page, size, mcode) => post('api/pda/wash/materialList', {
page: page, page: page,
size: size, size: size,
material_code: mcode material_code: mcode

View File

@@ -9,7 +9,7 @@
</div> </div>
</div> </div>
<div class="search-item_2 flexend"> <div class="search-item_2 flexend">
<button class="button button--primary" @click="_washsearchlist">查询</button> <button class="button button--primary" @click="_washmaterialList">查询</button>
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" @click="toSure">确定</button> <button class="button button--primary" :class="{'button--defalut': pkId === ''}" @click="toSure">确定</button>
<button class="button button--primary" @click="clearUp">清除</button> <button class="button button--primary" @click="clearUp">清除</button>
<button class="button button--primary" @click="colseUp">关闭</button> <button class="button button--primary" @click="colseUp">关闭</button>
@@ -41,7 +41,7 @@
</template> </template>
<script> <script>
import {washsearchlist} from '@config/getData1.js' import {washmaterialList} from '@config/getData1.js'
export default { export default {
data () { data () {
return { return {
@@ -56,15 +56,15 @@ export default {
} }
}, },
created () { created () {
this._washsearchlist() this._washmaterialList()
}, },
methods: { methods: {
// grid // grid
async _washsearchlist () { async _washmaterialList () {
this.page = 1 this.page = 1
this.busy = false this.busy = false
this.desc = '' this.desc = ''
let res = await washsearchlist(this.page + '', this.size, this.val1) let res = await washmaterialList(this.page + '', this.size, this.val1)
this.dataList = [] this.dataList = []
this.dataList = [...res.content] this.dataList = [...res.content]
if (res.content.length < 22) { if (res.content.length < 22) {
@@ -75,7 +75,7 @@ export default {
async loadMore () { async loadMore () {
this.busy = true this.busy = true
this.page++ this.page++
let res = await washsearchlist(this.page + '', this.size, this.val1) let res = await washmaterialList(this.page + '', this.size, this.val1)
this.dataList = [...this.dataList, ...res.content] this.dataList = [...this.dataList, ...res.content]
if (res.content.length < 22) { if (res.content.length < 22) {
this.busy = true this.busy = true