wms:批量查看
This commit is contained in:
@@ -55,3 +55,16 @@ export function delWmGoodsNowProduction(pid) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 批次 查询 父子节点
|
||||
* @param {*} query
|
||||
* @returns
|
||||
*/
|
||||
export function Node_patch_search(query) {
|
||||
return request({
|
||||
url: '/mes/wm/WmGoodsNowProduction/patchsearch',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
0
src/views/warehouseManagement/WmpatchSearch.vue
Normal file
0
src/views/warehouseManagement/WmpatchSearch.vue
Normal file
106
src/views/wmsManagement/WmpatchSearch.vue
Normal file
106
src/views/wmsManagement/WmpatchSearch.vue
Normal file
@@ -0,0 +1,106 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
size="small"
|
||||
label-position="right"
|
||||
inline
|
||||
ref="queryForm"
|
||||
:label-width="labelWidth"
|
||||
v-show="showSearch"
|
||||
@submit.native.prevent
|
||||
>
|
||||
<el-form-item label="零件号" prop="partnumber">
|
||||
<el-input v-model="queryParams.partnumber" placeholder="请输入零件号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="短批次号" prop="packageCodeClient">
|
||||
<el-input v-model="queryParams.packageCodeClient_short" placeholder="请输入批次号" />
|
||||
</el-form-item>
|
||||
<el-form-item label=" ">
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<vxe-table
|
||||
resizable
|
||||
border="inner"
|
||||
ref="xTable"
|
||||
:tree-config="{expandAll: true, transform: true, rowField: 'packageCodeClient_son', parentField: 'packageCodeClient_short_parent' }"
|
||||
:data="dataList"
|
||||
|
||||
>
|
||||
<vxe-column field="partnumber" title="零件号"></vxe-column>
|
||||
<vxe-column field="description" title="描述"></vxe-column>
|
||||
<vxe-column field="packageCodeClient_son" title="批次号" tree-node></vxe-column>
|
||||
<vxe-column field="locationCode" title="库位编码"></vxe-column>
|
||||
<vxe-column field="pack_num" title="箱数"></vxe-column>
|
||||
|
||||
<vxe-column field="goodsNumAction" title="实际库存"></vxe-column>
|
||||
<vxe-column field="entryWarehouseTime" title="入库时间"></vxe-column>
|
||||
<vxe-column field="remark" title="备注"></vxe-column>
|
||||
</vxe-table>
|
||||
<pagination class="mt10" background :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Node_patch_search } from '@/api/wmsManagement/wmGoodsNowProduction.js'
|
||||
export default {
|
||||
name: 'WmpatchSearch',
|
||||
data() {
|
||||
return {
|
||||
labelWidth: '100px',
|
||||
formLabelWidth: '100px',
|
||||
// 选中id数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 遮罩层
|
||||
loading: false,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
partnumber: '',
|
||||
packageCodeClient_short: '',
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
sort: undefined,
|
||||
sortType: undefined,
|
||||
},
|
||||
dataList: [],
|
||||
total:0,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
// 查询数据
|
||||
getList() {
|
||||
this.loading = true
|
||||
Node_patch_search(this.queryParams).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.dataList = res.data.item1
|
||||
this.total = res.data.item2
|
||||
this.loading = false
|
||||
}
|
||||
})
|
||||
},
|
||||
//todo 处理搜索请求
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
resetQuery() {
|
||||
this.queryParams.partnumber = ''
|
||||
this.queryParams.packageCodeClient_short = ''
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Reference in New Issue
Block a user