更新
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
<span>机床图号</span>
|
||||
<el-select v-model="machineValue" placeholder="请选择机床图号" style="margin: 0px 20px 0px 0px" filterable size="small">
|
||||
<el-option
|
||||
v-for="item in machine"
|
||||
@@ -10,7 +9,6 @@
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
|
||||
<span>组号</span>
|
||||
<el-select v-model="groupValue" placeholder="请选择组号" style="margin: 0px 20px 0px 0px" filterable size="small">
|
||||
<el-option
|
||||
v-for="item in group"
|
||||
@@ -19,8 +17,7 @@
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
|
||||
<span>零件图号:</span>
|
||||
<el-input v-model="partNumber" clearable filterable size="small" placeholder="零件图号" style="width: 200px;"/>
|
||||
<el-input v-model="partNumber" clearable filterable size="small" placeholder="零件图号或物料名称" style="width: 200px;"/>
|
||||
|
||||
<el-button icon="el-icon-search" type="primary" size="small" plain @click="pageCurrentWB = 1;pageSizeWB = 10;pageCurrent = 1;pageSize = 10;getTableData();pageCurrent1 = 1;pageSize1 = 10;getTable();pageCurrent2 = 1;pageSize2 = 10;getTable1()">查询</el-button>
|
||||
</el-card>
|
||||
@@ -850,8 +847,9 @@ export default {
|
||||
getTableData() {
|
||||
const machine_check = this.machineValue ? 1 : 0
|
||||
const group_check = this.groupValue ? 1 : 0
|
||||
const part_check = this.partNumber ? 1 : 0
|
||||
this.loading = true
|
||||
basicPartsData(machine_check, this.machineValue, group_check, this.groupValue).then(response => {
|
||||
basicPartsData(machine_check, this.machineValue, group_check, this.groupValue, part_check, this.partNumber).then(response => {
|
||||
this.loading = false
|
||||
const res = response.data
|
||||
this.total = res.total
|
||||
@@ -868,7 +866,7 @@ export default {
|
||||
})
|
||||
})
|
||||
this.loadingWB = true
|
||||
purchasePartsData(this.groupValue).then(response => {
|
||||
purchasePartsData(this.groupValue, part_check, this.partNumber).then(response => {
|
||||
this.loadingWB = false
|
||||
const data = response.data
|
||||
this.totalWB = data.total
|
||||
|
||||
Reference in New Issue
Block a user