This commit is contained in:
lixin
2018-11-26 10:34:48 +08:00
parent c7b31d3d37
commit 94be749d20

View File

@@ -1,12 +1,12 @@
<template>
<div class="app-container">
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" >
<el-tab-pane label="自制" name="first"><el-card>
<el-tab-pane label="自制" name="first"><el-card v-show="basicshow">
<el-radio-group
v-model="radio"
size="small"
style="margin: 10px;"
@change="visual()">
@change="BasicShow()">
<el-radio v-model="radio" :label="1" >基本件</el-radio>
<el-radio v-model="radio" :label="2" style="margin-left: 2px" >通用件</el-radio>
</el-radio-group>
@@ -34,8 +34,7 @@
:label="item.label"
:value="item.value"/>
</el-select>
<el-button v-show="basicshow" size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchBasciPartinfo()">基本件查询</el-button><br>
<el-button v-show="generalshow" size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="total1 = 0;pageSize1 = 10;pageList1 = 1;searchGeneralPartinfo()">通用件查询</el-button><br>
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchBasciPartinfo()">基本件查询</el-button><br>
</el-card>
<el-card v-show="basicshow">
<el-table
@@ -157,7 +156,43 @@
</template>
</el-table-column>
</el-table>
<el-card v-show="generalshow">
</el-card>
<el-card v-show="genneralshow">
<el-radio-group
v-model="radio"
size="small"
style="margin: 10px;"
@change="BasicShow()">
<el-radio v-model="radio" :label="1" >基本件</el-radio>
<el-radio v-model="radio" :label="2" style="margin-left: 2px" >通用件</el-radio>
</el-radio-group>
<span style="margin-left: 20px">项目名称:</span>
<el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
<el-option
v-for="item in Project"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<span>机床图号:</span>
<el-select v-model="MachineValue" filterable clearable size="small" placeholder="机床图号" style="width: 200px;margin-right:10px" @change="searchGroupList()">
<el-option
v-for="item in Machine"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<span>组号:</span>
<el-select v-model="GroupNumValue" filterable clearable size="small" placeholder="组号" style="width: 200px">
<el-option
v-for="item in GroupNum"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="total1 = 0;pageSize1 = 10;pageList1 = 1;searchGeneralPartinfo()">通用件查询</el-button><br>
</el-card>
<el-card v-show="genneralshow">
<el-table
v-loading="listLoading3"
:data="tableDataGeneral"
@@ -217,7 +252,7 @@
@current-change="handleCurrentChange1"/>
</div>
</el-card>
<el-card v-show="generalshow">
<el-card v-show="genneralshow">
<el-table
v-loading="listLoading4"
:data="PurchasePartIn"
@@ -247,6 +282,7 @@
</el-table>
<el-table
v-loading="listLoading5"
v-show="genneralshow"
:data="PurchasePartOut"
border
style="width: 100%;"
@@ -273,15 +309,14 @@
</el-table-column>
</el-table>
</el-card>
</el-card>
</el-tab-pane>
<el-tab-pane label="采购采购" name="second">
<el-card>
<el-card v-show="purchaseshow">
<el-radio-group
v-model="radio"
size="small"
style="margin: 10px;"
@change="visual()">
@change="GeneralShow()">
<el-radio v-model="radio2" :label="3">外购件</el-radio>
<el-radio v-model="radio2" :label="4" style="margin-left: 2px">标准件</el-radio>
</el-radio-group>
@@ -426,7 +461,15 @@
</el-table-column>
</el-table>
</el-card>
<el-card>
<el-card v-show="standardshow">
<el-radio-group
v-model="radio"
size="small"
style="margin: 10px;"
@change="GeneralShow()">
<el-radio v-model="radio2" :label="3">外购件</el-radio>
<el-radio v-model="radio2" :label="4" style="margin-left: 2px">标准件</el-radio>
</el-radio-group>
<span>项目名称:</span>
<el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
<el-option
@@ -585,8 +628,14 @@
</el-tab-pane>
<el-tab-pane label="车间采购" name="third">
<el-card v-show="housebasicshow">
<el-radio v-model="radio3" :label="5">基本件</el-radio>
<el-radio v-model="radio3" :label="6" style="margin-left: 2px">外购件</el-radio>
<el-radio-group
v-model="radio"
size="small"
style="margin: 10px;"
@change="HouseShow()">
<el-radio :label="5">基本件</el-radio>
<el-radio :label="6" style="margin-left: 2px">外购件</el-radio>
</el-radio-group>
<span style="margin-left: 20px">项目名称:</span>
<el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
<el-option
@@ -613,6 +662,7 @@
</el-select>
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchHouseBasci()">车间采购基本件查询</el-button><br>
</el-card>
<el-card v-show="housebasicshow">
<el-table
v-loading="listLoadingx"
:data="HouseDataBasic"
@@ -654,21 +704,11 @@
{{ scope.row.组号 }}
</template>
</el-table-column>
<el-table-column label="数量" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.数量 }}
</template>
</el-table-column>
<el-table-column label="零件数量" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.货位存量 }}
</template>
</el-table-column>
<el-table-column label="待出库数量" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.待出库数量 }}
</template>
</el-table-column>
<el-table-column label="零件类型" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.类型名称 }}
@@ -676,7 +716,7 @@
</el-table-column>
<el-table-column label="操作" align="center" min-width="80">
<template slot-scope="scope" align="center">
<el-button size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 0 10px" @click="addWorkshopDetailinfor(scope.row)">选择</el-button>
<el-button size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 0 10px" @click="HouseBasicRecord(scope.row)">选择</el-button>
</template>
</el-table-column>
</el-table>
@@ -690,6 +730,7 @@
@size-change="handleSizeChange5"
@current-change="handleCurrentChange5"/>
</div>
</el-card>
<el-card v-show="housebasicshow">
<el-table
v-loading="listLoading10"
@@ -747,6 +788,14 @@
</el-table>
</el-card>
<el-card v-show="housepurchaseshow">
<el-radio-group
v-model="radio"
size="small"
style="margin: 10px;"
@change="HouseShow()">
<el-radio :label="5">基本件</el-radio>
<el-radio :label="6" style="margin-left: 2px">外购件</el-radio>
</el-radio-group>
<span style="margin-left: 20px">项目名称:</span>
<el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
<el-option
@@ -773,6 +822,7 @@
</el-select>
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchHousePurchase()">车间采购外购件查询</el-button><br>
</el-card>
<el-card v-show="housepurchaseshow">
<el-table
v-loading="listLoadingx"
:data="HouseDataPurchase"
@@ -814,21 +864,11 @@
{{ scope.row.组号 }}
</template>
</el-table-column>
<el-table-column label="数量" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.数量 }}
</template>
</el-table-column>
<el-table-column label="零件数量" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.货位存量 }}
</template>
</el-table-column>
<el-table-column label="待出库数量" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.待出库数量 }}
</template>
</el-table-column>
<el-table-column label="零件类型" align="center" min-width="80">
<template slot-scope="scope">
{{ scope.row.类型名称 }}
@@ -850,6 +890,7 @@
@size-change="handleSizeChange6"
@current-change="handleCurrentChange6"/>
</div>
</el-card>
<el-card v-show="housepurchaseshow">
<el-table
v-loading="listLoading10"
@@ -1007,19 +1048,19 @@ export default {
BasicShow() {
if (this.radio === 1) {
this.basicshow = true
this.purchaseshow = false
} else {
this.genneralshow = false
} else if (this.radio === 2) {
this.basicshow = false
this.purchaseshow = true
this.genneralshow = true
}
},
GeneralShow() {
if (this.radio === 3) {
this.purchaseshow = true
this.basicshow = false
this.standardshow = false
} else {
this.purchaseshow = false
this.basicshow = true
this.standardshow = true
}
},
HouseShow() {