This commit is contained in:
liushuai
2020-03-09 09:28:04 +08:00
parent 6714e10d90
commit 28177e7cd4
23 changed files with 1145 additions and 983 deletions

View File

@@ -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