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> <template>
<div class="app-container"> <div class="app-container">
<el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" > <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 <el-radio-group
v-model="radio" v-model="radio"
size="small" size="small"
style="margin: 10px;" style="margin: 10px;"
@change="visual()"> @change="BasicShow()">
<el-radio v-model="radio" :label="1" >基本件</el-radio> <el-radio v-model="radio" :label="1" >基本件</el-radio>
<el-radio v-model="radio" :label="2" style="margin-left: 2px" >通用件</el-radio> <el-radio v-model="radio" :label="2" style="margin-left: 2px" >通用件</el-radio>
</el-radio-group> </el-radio-group>
@@ -34,8 +34,7 @@
:label="item.label" :label="item.label"
:value="item.value"/> :value="item.value"/>
</el-select> </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 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-card> </el-card>
<el-card v-show="basicshow"> <el-card v-show="basicshow">
<el-table <el-table
@@ -157,131 +156,167 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-card v-show="generalshow">
<el-table
v-loading="listLoading3"
:data="tableDataGeneral"
:row-style="tableRowClassName2"
border
style="width: 100%;"
height="200">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<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.零件名称 }}
</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="120">
<template slot-scope="scope" align="center">
<el-button size="small" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @click="searchGeneralPartRecord(scope.row)">选择</el-button>
</template>
</el-table-column>
</el-table>
<div class="block" style="margin-top: 10px;">
<el-pagination
:current-page="PageCurrent1"
:page-sizes="[10, 20, 30, 40]"
:page-size="10"
:total="total1"
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange1"
@current-change="handleCurrentChange1"/>
</div>
</el-card>
<el-card v-show="generalshow">
<el-table
v-loading="listLoading4"
:data="PurchasePartIn"
border
style="width: 100%;"
height="200">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<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.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
</template>
</el-table-column>
</el-table>
<el-table
v-loading="listLoading5"
:data="PurchasePartOut"
border
style="width: 100%;"
height="200">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<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>
</el-card>
</el-card> </el-card>
</el-tab-pane> <el-card v-show="genneralshow">
<el-tab-pane label="采购采购" name="second">
<el-card>
<el-radio-group <el-radio-group
v-model="radio" v-model="radio"
size="small" size="small"
style="margin: 10px;" 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>
<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"
:row-style="tableRowClassName2"
border
style="width: 100%;"
height="200">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<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.零件名称 }}
</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="120">
<template slot-scope="scope" align="center">
<el-button size="small" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @click="searchGeneralPartRecord(scope.row)">选择</el-button>
</template>
</el-table-column>
</el-table>
<div class="block" style="margin-top: 10px;">
<el-pagination
:current-page="PageCurrent1"
:page-sizes="[10, 20, 30, 40]"
:page-size="10"
:total="total1"
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange1"
@current-change="handleCurrentChange1"/>
</div>
</el-card>
<el-card v-show="genneralshow">
<el-table
v-loading="listLoading4"
:data="PurchasePartIn"
border
style="width: 100%;"
height="200">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<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.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
</template>
</el-table-column>
</el-table>
<el-table
v-loading="listLoading5"
v-show="genneralshow"
:data="PurchasePartOut"
border
style="width: 100%;"
height="200">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<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>
</el-card>
</el-tab-pane>
<el-tab-pane label="采购采购" name="second">
<el-card v-show="purchaseshow">
<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="3">外购件</el-radio>
<el-radio v-model="radio2" :label="4" style="margin-left: 2px">标准件</el-radio> <el-radio v-model="radio2" :label="4" style="margin-left: 2px">标准件</el-radio>
</el-radio-group> </el-radio-group>
@@ -426,7 +461,15 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </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> <span>项目名称:</span>
<el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()"> <el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
<el-option <el-option
@@ -585,8 +628,14 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="车间采购" name="third"> <el-tab-pane label="车间采购" name="third">
<el-card v-show="housebasicshow"> <el-card v-show="housebasicshow">
<el-radio v-model="radio3" :label="5">基本件</el-radio> <el-radio-group
<el-radio v-model="radio3" :label="6" style="margin-left: 2px">外购件</el-radio> 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> <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-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
<el-option <el-option
@@ -613,83 +662,75 @@
</el-select> </el-select>
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchHouseBasci()">车间采购基本件查询</el-button><br> <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>
<el-table <el-card v-show="housebasicshow">
v-loading="listLoadingx" <el-table
:data="HouseDataBasic" v-loading="listLoadingx"
border :data="HouseDataBasic"
style="width: 100%;" border
height="200"> style="width: 100%;"
<el-table-column height="200">
label="序号" <el-table-column
align="center" label="序号"
type="index" align="center"
width="50"/> type="index"
<el-table-column label="物料名称" align="center" min-width="80"> width="50"/>
<template slot-scope="scope"> <el-table-column label="物料名称" align="center" min-width="80">
{{ scope.row.物料名称 }} <template slot-scope="scope">
</template> {{ scope.row.物料名称 }}
</el-table-column> </template>
<el-table-column label="物料规格" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="物料规格" align="center" min-width="80">
{{ scope.row.物料规格 }} <template slot-scope="scope">
</template> {{ scope.row.物料规格 }}
</el-table-column> </template>
<el-table-column label="物料型号" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="物料型号" align="center" min-width="80">
{{ scope.row.物料型号 }} <template slot-scope="scope">
</template> {{ scope.row.物料型号 }}
</el-table-column> </template>
<el-table-column label="项目名称" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="项目名称" align="center" min-width="80">
{{ scope.row.项目名称 }} <template slot-scope="scope">
</template> {{ scope.row.项目名称 }}
</el-table-column> </template>
<el-table-column label="机床图号" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="机床图号" align="center" min-width="80">
{{ scope.row.机床图号 }} <template slot-scope="scope">
</template> {{ scope.row.机床图号 }}
</el-table-column> </template>
<el-table-column label="组号" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="组号" align="center" min-width="80">
{{ scope.row.组号 }} <template slot-scope="scope">
</template> {{ scope.row.组号 }}
</el-table-column> </template>
<el-table-column label="数量" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="零件数量" align="center" min-width="80">
{{ scope.row.数量 }} <template slot-scope="scope">
</template> {{ scope.row.货位存量 }}
</el-table-column> </template>
<el-table-column label="零件数量" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="零件类型" align="center" min-width="80">
{{ scope.row.货位存量 }} <template slot-scope="scope">
</template> {{ scope.row.类型名称 }}
</el-table-column> </template>
<el-table-column label="待出库数量" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="操作" align="center" min-width="80">
{{ scope.row.待出库数量 }} <template slot-scope="scope" align="center">
</template> <el-button size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 0 10px" @click="HouseBasicRecord(scope.row)">选择</el-button>
</el-table-column> </template>
<el-table-column label="零件类型" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> </el-table>
{{ scope.row.类型名称 }} <div class="block" style="margin-top: 10px;">
</template> <el-pagination
</el-table-column> :current-page="PageCurrent5"
<el-table-column label="操作" align="center" min-width="80"> :page-sizes="[10, 20, 30, 40]"
<template slot-scope="scope" align="center"> :page-size="10"
<el-button size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 0 10px" @click="addWorkshopDetailinfor(scope.row)">选择</el-button> :total="total5"
</template> layout="total, sizes, prev, pager, next, jumper"
</el-table-column> @size-change="handleSizeChange5"
</el-table> @current-change="handleCurrentChange5"/>
<div class="block" style="margin-top: 10px;"> </div>
<el-pagination </el-card>
:current-page="PageCurrent5"
:page-sizes="[10, 20, 30, 40]"
:page-size="10"
:total="total5"
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange5"
@current-change="handleCurrentChange5"/>
</div>
<el-card v-show="housebasicshow"> <el-card v-show="housebasicshow">
<el-table <el-table
v-loading="listLoading10" v-loading="listLoading10"
@@ -747,6 +788,14 @@
</el-table> </el-table>
</el-card> </el-card>
<el-card v-show="housepurchaseshow"> <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> <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-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
<el-option <el-option
@@ -773,83 +822,75 @@
</el-select> </el-select>
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="searchHousePurchase()">车间采购外购件查询</el-button><br> <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>
<el-table <el-card v-show="housepurchaseshow">
v-loading="listLoadingx" <el-table
:data="HouseDataPurchase" v-loading="listLoadingx"
border :data="HouseDataPurchase"
style="width: 100%;" border
height="200"> style="width: 100%;"
<el-table-column height="200">
label="序号" <el-table-column
align="center" label="序号"
type="index" align="center"
width="50"/> type="index"
<el-table-column label="物料名称" align="center" min-width="80"> width="50"/>
<template slot-scope="scope"> <el-table-column label="物料名称" align="center" min-width="80">
{{ scope.row.物料名称 }} <template slot-scope="scope">
</template> {{ scope.row.物料名称 }}
</el-table-column> </template>
<el-table-column label="物料规格" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="物料规格" align="center" min-width="80">
{{ scope.row.物料规格 }} <template slot-scope="scope">
</template> {{ scope.row.物料规格 }}
</el-table-column> </template>
<el-table-column label="物料型号" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="物料型号" align="center" min-width="80">
{{ scope.row.物料型号 }} <template slot-scope="scope">
</template> {{ scope.row.物料型号 }}
</el-table-column> </template>
<el-table-column label="项目名称" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="项目名称" align="center" min-width="80">
{{ scope.row.项目名称 }} <template slot-scope="scope">
</template> {{ scope.row.项目名称 }}
</el-table-column> </template>
<el-table-column label="机床图号" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="机床图号" align="center" min-width="80">
{{ scope.row.机床图号 }} <template slot-scope="scope">
</template> {{ scope.row.机床图号 }}
</el-table-column> </template>
<el-table-column label="组号" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="组号" align="center" min-width="80">
{{ scope.row.组号 }} <template slot-scope="scope">
</template> {{ scope.row.组号 }}
</el-table-column> </template>
<el-table-column label="数量" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="零件数量" align="center" min-width="80">
{{ scope.row.数量 }} <template slot-scope="scope">
</template> {{ scope.row.货位存量 }}
</el-table-column> </template>
<el-table-column label="零件数量" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="零件类型" align="center" min-width="80">
{{ scope.row.货位存量 }} <template slot-scope="scope">
</template> {{ scope.row.类型名称 }}
</el-table-column> </template>
<el-table-column label="待出库数量" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="操作" align="center" min-width="80">
{{ scope.row.待出库数量 }} <template slot-scope="scope" align="center">
</template> <el-button size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 0 10px" @click="HousePurchaseRecord(scope.row)">选择</el-button>
</el-table-column> </template>
<el-table-column label="零件类型" align="center" min-width="80"> </el-table-column>
<template slot-scope="scope"> </el-table>
{{ scope.row.类型名称 }} <div class="block" style="margin-top: 10px;">
</template> <el-pagination
</el-table-column> :current-page="PageCurrent6"
<el-table-column label="操作" align="center" min-width="80"> :page-sizes="[10, 20, 30, 40]"
<template slot-scope="scope" align="center"> :page-size="10"
<el-button size="small" type="primary" icon="el-icon-edit" style="margin: 0 0 0 10px" @click="HousePurchaseRecord(scope.row)">选择</el-button> :total="total6"
</template> layout="total, sizes, prev, pager, next, jumper"
</el-table-column> @size-change="handleSizeChange6"
</el-table> @current-change="handleCurrentChange6"/>
<div class="block" style="margin-top: 10px;"> </div>
<el-pagination </el-card>
:current-page="PageCurrent6"
:page-sizes="[10, 20, 30, 40]"
:page-size="10"
:total="total6"
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange6"
@current-change="handleCurrentChange6"/>
</div>
<el-card v-show="housepurchaseshow"> <el-card v-show="housepurchaseshow">
<el-table <el-table
v-loading="listLoading10" v-loading="listLoading10"
@@ -1007,19 +1048,19 @@ export default {
BasicShow() { BasicShow() {
if (this.radio === 1) { if (this.radio === 1) {
this.basicshow = true this.basicshow = true
this.purchaseshow = false this.genneralshow = false
} else { } else if (this.radio === 2) {
this.basicshow = false this.basicshow = false
this.purchaseshow = true this.genneralshow = true
} }
}, },
GeneralShow() { GeneralShow() {
if (this.radio === 3) { if (this.radio === 3) {
this.purchaseshow = true this.purchaseshow = true
this.basicshow = false this.standardshow = false
} else { } else {
this.purchaseshow = false this.purchaseshow = false
this.basicshow = true this.standardshow = true
} }
}, },
HouseShow() { HouseShow() {