master
A0010407 1 year ago
parent 5d9cebb6d7
commit fcdf41a414

@ -17,6 +17,15 @@ export function getBom(factoryCode) {
}); });
} }
// 查询BOM物料管理列表
export function listBomComponent(query) {
return request({
url: '/wms/bomComponent/list',
method: 'get',
params: query
});
}
// 新增BOM物料管理 // 新增BOM物料管理
export function addBom(data) { export function addBom(data) {
return request({ return request({

@ -101,7 +101,7 @@
</template> </template>
<script> <script>
import { listBom, getBom, delBom, addBom, updateBom } from "@/api/wms/bom"; import { listBom, getBom, delBom, addBom, updateBom,listBomComponent} from "@/api/wms/bom";
export default { export default {
name: "Bom", name: "Bom",
@ -170,7 +170,7 @@ export default {
/** 查询BOM物料管理列表 */ /** 查询BOM物料管理列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listBom(this.queryParams).then(response => { listBomComponent(this.queryParams).then(response => {
this.bomList = response.rows; this.bomList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;

Loading…
Cancel
Save