Merge branch 'master' of ssh://192.168.1.149:29418/高精2.0
This commit is contained in:
@@ -56,3 +56,15 @@ export function searchPurchaseTable(check, entryNameValue, check1, machine, chec
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function searchTable1(check, entryNameValue, check1, machine, check2, groupNum, check3, year, check4, month, check5, time, pageCurrent, pageSize) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '库存管理_车间采购出库_零件查询',
|
||||||
|
param: '项目流水号_check=' + check + '=int&项目流水号=' + entryNameValue + '=int&机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&年_check=' + check3 + '=int&年=' + year + '=string&月_check=' + check4 + '=int&月=' + month + '=int&入库时间_check=' + check5 + '=int&入库时间=' + time + '=string',
|
||||||
|
pagination: pageCurrent + '&' + pageSize
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export function getData(check, equipmentName, pageCurrent, pageSize) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '设备管理_设备加工能力_查询数据_设备维护',
|
name: '设备管理_设备加工能力_查询数据_设备维护NEW',
|
||||||
param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName,
|
param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName,
|
||||||
pagination: pageCurrent + '&' + pageSize
|
pagination: pageCurrent + '&' + pageSize
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,7 +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-card>
|
</el-card>
|
||||||
<el-card v-show="basicshow">
|
<el-card v-show="basicshow">
|
||||||
<el-table
|
<el-table
|
||||||
@@ -125,6 +125,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading2"
|
v-loading="listLoading2"
|
||||||
|
v-show="basicshow"
|
||||||
:data="BasicPartOut"
|
:data="BasicPartOut"
|
||||||
border
|
border
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
@@ -155,155 +156,170 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-card v-show="purchaseshow">
|
</el-card>
|
||||||
<el-radio v-model="radio2" :label="3">外购件</el-radio>
|
<el-card v-show="genneralshow">
|
||||||
<el-radio v-model="radio2" :label="4" style="margin-left: 2px">标准件</el-radio>
|
<el-radio-group
|
||||||
<span style="margin-left: 20px" >项目名称:</span>
|
v-model="radio"
|
||||||
<el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
|
size="small"
|
||||||
<el-option
|
style="margin: 10px;"
|
||||||
v-for="item in Project"
|
@change="BasicShow()">
|
||||||
:key="item.value"
|
<el-radio v-model="radio" :label="1" >基本件</el-radio>
|
||||||
:label="item.label"
|
<el-radio v-model="radio" :label="2" style="margin-left: 2px" >通用件</el-radio>
|
||||||
:value="item.value"/>
|
</el-radio-group>
|
||||||
</el-select>
|
<span style="margin-left: 20px">项目名称:</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="MachineValue" filterable clearable size="small" placeholder="机床图号" style="width: 200px;margin-right:10px" @change="searchGroupList()">
|
<el-option
|
||||||
<el-option
|
v-for="item in Project"
|
||||||
v-for="item in Machine"
|
:key="item.value"
|
||||||
:key="item.value"
|
:label="item.label"
|
||||||
:label="item.label"
|
:value="item.value"/>
|
||||||
:value="item.value"/>
|
</el-select>
|
||||||
</el-select>
|
<span>机床图号:</span>
|
||||||
<span>组号:</span>
|
<el-select v-model="MachineValue" filterable clearable size="small" placeholder="机床图号" style="width: 200px;margin-right:10px" @change="searchGroupList()">
|
||||||
<el-select v-model="GroupNumValue" filterable clearable size="small" placeholder="组号" style="width: 200px">
|
<el-option
|
||||||
<el-option
|
v-for="item in Machine"
|
||||||
v-for="item in GroupNum"
|
:key="item.value"
|
||||||
:key="item.value"
|
:label="item.label"
|
||||||
:label="item.label"
|
:value="item.value"/>
|
||||||
:value="item.value"/>
|
</el-select>
|
||||||
</el-select>
|
<span>组号:</span>
|
||||||
<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-select v-model="GroupNumValue" filterable clearable size="small" placeholder="组号" style="width: 200px">
|
||||||
</el-card>
|
<el-option
|
||||||
<el-card v-show="purchaseshow">
|
v-for="item in GroupNum"
|
||||||
<el-table
|
:key="item.value"
|
||||||
v-loading="listLoading3"
|
:label="item.label"
|
||||||
:data="tableDataGeneral"
|
:value="item.value"/>
|
||||||
:row-style="tableRowClassName2"
|
</el-select>
|
||||||
border
|
<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>
|
||||||
style="width: 100%;"
|
</el-card>
|
||||||
height="200">
|
<el-card v-show="genneralshow">
|
||||||
<el-table-column
|
<el-table
|
||||||
label="序号"
|
v-loading="listLoading3"
|
||||||
align="center"
|
:data="tableDataGeneral"
|
||||||
type="index"
|
:row-style="tableRowClassName2"
|
||||||
width="50"/>
|
border
|
||||||
<el-table-column label="项目名称" align="center" min-width="80">
|
style="width: 100%;"
|
||||||
<template slot-scope="scope">
|
height="200">
|
||||||
{{ scope.row.项目名称 }}
|
<el-table-column
|
||||||
</template>
|
label="序号"
|
||||||
</el-table-column>
|
align="center"
|
||||||
<el-table-column label="机床图号" align="center" min-width="80">
|
type="index"
|
||||||
<template slot-scope="scope">
|
width="50"/>
|
||||||
{{ scope.row.机床图号 }}
|
<el-table-column label="项目名称" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.项目名称 }}
|
||||||
<el-table-column label="组号" align="center" min-width="80">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.组号 }}
|
<el-table-column label="机床图号" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.机床图号 }}
|
||||||
<el-table-column label="零件名称" align="center" min-width="80">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.零件名称 }}
|
<el-table-column label="组号" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.组号 }}
|
||||||
<el-table-column label="零件数量" align="center" min-width="80">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.可出库数量 }}
|
<el-table-column label="零件名称" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.零件名称 }}
|
||||||
<el-table-column label="零件类型" align="center" min-width="80">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.零件类型名称 }}
|
<el-table-column label="零件数量" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.可出库数量 }}
|
||||||
<el-table-column label="操作" align="center" min-width="120">
|
</template>
|
||||||
<template slot-scope="scope" align="center">
|
</el-table-column>
|
||||||
<el-button size="small" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @click="searchGeneralPartRecord(scope.row)">选择</el-button>
|
<el-table-column label="零件类型" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.零件类型名称 }}
|
||||||
</el-table>
|
</template>
|
||||||
<div class="block" style="margin-top: 10px;">
|
</el-table-column>
|
||||||
<el-pagination
|
<el-table-column label="操作" align="center" min-width="120">
|
||||||
:current-page="PageCurrent1"
|
<template slot-scope="scope" align="center">
|
||||||
:page-sizes="[10, 20, 30, 40]"
|
<el-button size="small" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @click="searchGeneralPartRecord(scope.row)">选择</el-button>
|
||||||
:page-size="10"
|
</template>
|
||||||
:total="total1"
|
</el-table-column>
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
</el-table>
|
||||||
@size-change="handleSizeChange1"
|
<div class="block" style="margin-top: 10px;">
|
||||||
@current-change="handleCurrentChange1"/>
|
<el-pagination
|
||||||
</div>
|
:current-page="PageCurrent1"
|
||||||
</el-card>
|
:page-sizes="[10, 20, 30, 40]"
|
||||||
<el-card v-show="purchaseshow">
|
:page-size="10"
|
||||||
<el-table
|
:total="total1"
|
||||||
v-loading="listLoading4"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
:data="PurchasePartIn"
|
@size-change="handleSizeChange1"
|
||||||
border
|
@current-change="handleCurrentChange1"/>
|
||||||
style="width: 100%;"
|
</div>
|
||||||
height="200">
|
</el-card>
|
||||||
<el-table-column
|
<el-card v-show="genneralshow">
|
||||||
label="序号"
|
<el-table
|
||||||
align="center"
|
v-loading="listLoading4"
|
||||||
type="index"
|
:data="PurchasePartIn"
|
||||||
width="50"/>
|
border
|
||||||
<el-table-column label="实际到货数量" align="center" min-width="80">
|
style="width: 100%;"
|
||||||
<template slot-scope="scope">
|
height="200">
|
||||||
{{ scope.row.实际到货数量 }}
|
<el-table-column
|
||||||
</template>
|
label="序号"
|
||||||
</el-table-column>
|
align="center"
|
||||||
<el-table-column label="入库人员" align="center" min-width="80">
|
type="index"
|
||||||
<template slot-scope="scope">
|
width="50"/>
|
||||||
{{ scope.row.入库人员 }}
|
<el-table-column label="实际到货数量" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.实际到货数量 }}
|
||||||
<el-table-column label="到货时间" align="center" min-width="80">
|
</template>
|
||||||
<template slot-scope="scope">
|
</el-table-column>
|
||||||
{{ scope.row.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
|
<el-table-column label="入库人员" align="center" min-width="80">
|
||||||
</template>
|
<template slot-scope="scope">
|
||||||
</el-table-column>
|
{{ scope.row.入库人员 }}
|
||||||
</el-table>
|
</template>
|
||||||
<el-table
|
</el-table-column>
|
||||||
v-loading="listLoading5"
|
<el-table-column label="到货时间" align="center" min-width="80">
|
||||||
:data="PurchasePartOut"
|
<template slot-scope="scope">
|
||||||
border
|
{{ scope.row.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
|
||||||
style="width: 100%;"
|
</template>
|
||||||
height="200">
|
</el-table-column>
|
||||||
<el-table-column
|
</el-table>
|
||||||
label="序号"
|
<el-table
|
||||||
align="center"
|
v-loading="listLoading5"
|
||||||
type="index"
|
v-show="genneralshow"
|
||||||
width="50"/>
|
:data="PurchasePartOut"
|
||||||
<el-table-column label="出库数量" align="center" min-width="80">
|
border
|
||||||
<template slot-scope="scope">
|
style="width: 100%;"
|
||||||
{{ scope.row.出库数量 }}
|
height="200">
|
||||||
</template>
|
<el-table-column
|
||||||
</el-table-column>
|
label="序号"
|
||||||
<el-table-column label="出库时间" align="center" min-width="80">
|
align="center"
|
||||||
<template slot-scope="scope">
|
type="index"
|
||||||
{{ scope.row.出库时间 }}
|
width="50"/>
|
||||||
</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>
|
{{ scope.row.出库时间 }}
|
||||||
</el-card>
|
</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-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="采购采购" name="second">
|
<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="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
|
||||||
@@ -330,7 +346,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="total2 = 0;pageSize2 = 10;pageList2 = 1;searchPurchasePartinfo()">外购件查询</el-button><br>
|
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="total2 = 0;pageSize2 = 10;pageList2 = 1;searchPurchasePartinfo()">外购件查询</el-button><br>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card v-show="purchaseshow">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading6"
|
v-loading="listLoading6"
|
||||||
:data="tableDataPurchase"
|
:data="tableDataPurchase"
|
||||||
@@ -389,7 +405,7 @@
|
|||||||
@current-change="handleCurrentChange2"/>
|
@current-change="handleCurrentChange2"/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card v-show="purchaseshow">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading7"
|
v-loading="listLoading7"
|
||||||
:data="PurchasePartIn"
|
:data="PurchasePartIn"
|
||||||
@@ -445,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
|
||||||
@@ -472,7 +496,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="total3 = 0;pageSize3 = 10;pageList3 = 1;searchStandardPartinfo()">标准件查询</el-button><br>
|
<el-button size="small" type="success" icon="el-icon-search" style="margin: 0 0 0 10px" @click="total3 = 0;pageSize3 = 10;pageList3 = 1;searchStandardPartinfo()">标准件查询</el-button><br>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card v-show="standardshow">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading9"
|
v-loading="listLoading9"
|
||||||
:data="tableDataStandard"
|
:data="tableDataStandard"
|
||||||
@@ -545,7 +569,7 @@
|
|||||||
<el-button type="primary" @click="edeitsafeAmount()">确 定</el-button>
|
<el-button type="primary" @click="edeitsafeAmount()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-card>
|
<el-card v-show="standardshow">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading10"
|
v-loading="listLoading10"
|
||||||
:data="StandardPartIn"
|
:data="StandardPartIn"
|
||||||
@@ -603,9 +627,15 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="车间采购" name="third">
|
<el-tab-pane label="车间采购" name="third">
|
||||||
<el-card>
|
<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
|
||||||
@@ -632,84 +662,76 @@
|
|||||||
</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"
|
<el-card v-show="housebasicshow">
|
||||||
: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>
|
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading10"
|
v-loading="listLoading10"
|
||||||
:data="HouseDataBasicIn"
|
:data="HouseDataBasicIn"
|
||||||
@@ -765,7 +787,15 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
<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>
|
<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
|
||||||
@@ -792,84 +822,76 @@
|
|||||||
</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"
|
<el-card v-show="housepurchaseshow">
|
||||||
: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>
|
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading10"
|
v-loading="listLoading10"
|
||||||
:data="HouseDataPurchaseIn"
|
:data="HouseDataPurchaseIn"
|
||||||
@@ -1004,7 +1026,11 @@ export default {
|
|||||||
radio2: 1,
|
radio2: 1,
|
||||||
radio3: 1,
|
radio3: 1,
|
||||||
basicshow: true,
|
basicshow: true,
|
||||||
|
genneralshow: false,
|
||||||
purchaseshow: true,
|
purchaseshow: true,
|
||||||
|
standardshow: false,
|
||||||
|
housebasicshow: true,
|
||||||
|
housepurchaseshow: false,
|
||||||
HouseDataBasic: [],
|
HouseDataBasic: [],
|
||||||
HouseDataBasicOut: [],
|
HouseDataBasicOut: [],
|
||||||
HouseDataBasicIn: [],
|
HouseDataBasicIn: [],
|
||||||
@@ -1020,12 +1046,31 @@ export default {
|
|||||||
handleClick(tab, event) {
|
handleClick(tab, event) {
|
||||||
},
|
},
|
||||||
BasicShow() {
|
BasicShow() {
|
||||||
this.basicshow = true
|
if (this.radio === 1) {
|
||||||
this.purchaseshow = false
|
this.basicshow = true
|
||||||
|
this.genneralshow = false
|
||||||
|
} else if (this.radio === 2) {
|
||||||
|
this.basicshow = false
|
||||||
|
this.genneralshow = true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
GeneralShow() {
|
GeneralShow() {
|
||||||
this.purchaseshow = true
|
if (this.radio === 3) {
|
||||||
this.basicshow = false
|
this.purchaseshow = true
|
||||||
|
this.standardshow = false
|
||||||
|
} else {
|
||||||
|
this.purchaseshow = false
|
||||||
|
this.standardshow = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
HouseShow() {
|
||||||
|
if (this.radio === 5) {
|
||||||
|
this.housebasicshow = true
|
||||||
|
this.housepurchaseshow = false
|
||||||
|
} else {
|
||||||
|
this.housebasicshow = false
|
||||||
|
this.housepurchaseshow = true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fetchData() {
|
fetchData() {
|
||||||
this.getSelect(initProject, ['项目名称', '项目流水号'], 'Project') // 项目名称
|
this.getSelect(initProject, ['项目名称', '项目流水号'], 'Project') // 项目名称
|
||||||
|
|||||||
@@ -158,13 +158,83 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<div class="block" style="margin-top: 10px;">
|
<div class="block" style="margin-top: 10px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:current-page="PageCurrent1"
|
:current-page="pageCurrent4"
|
||||||
:page-sizes="[10, 20, 30, 40]"
|
:page-sizes="[10, 20, 30, 40]"
|
||||||
:page-size="10"
|
:page-size="pageSize4"
|
||||||
:total="total1"
|
:total="total4"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
@size-change="handleSizeChange1"
|
@size-change="handleSizeChange4"
|
||||||
@current-change="handleCurrentChange1"/>
|
@current-change="handleCurrentChange4"/>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card>
|
||||||
|
<el-table
|
||||||
|
v-loading="listLoading2"
|
||||||
|
:data="tableData1"
|
||||||
|
border
|
||||||
|
style="width: 100%;"
|
||||||
|
height="300">
|
||||||
|
<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="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>
|
||||||
|
<div class="block" style="margin-top: 10px;">
|
||||||
|
<el-pagination
|
||||||
|
:current-page="pageCurrent5"
|
||||||
|
:page-sizes="[10, 20, 30, 40]"
|
||||||
|
:page-size="pageSize5"
|
||||||
|
:total="total5"
|
||||||
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
|
@size-change="handleSizeChange5"
|
||||||
|
@current-change="handleCurrentChange5"/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-dialog :visible.sync="dialogFormVisible2" title="选择机床" center style="min-height: 300px">
|
<el-dialog :visible.sync="dialogFormVisible2" title="选择机床" center style="min-height: 300px">
|
||||||
@@ -273,7 +343,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { initProject, searchTable, searchmachine, searchgroup, searchPurchaseTable } from '@/api/ManufacturingCenter/GroupMatching'
|
import { initProject, searchTable, searchmachine, searchgroup, searchPurchaseTable, searchTable1 } from '@/api/ManufacturingCenter/GroupMatching'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -293,13 +363,22 @@ export default {
|
|||||||
pageSize1: 10,
|
pageSize1: 10,
|
||||||
pageCurrent2: 1,
|
pageCurrent2: 1,
|
||||||
pageSize2: 10,
|
pageSize2: 10,
|
||||||
|
pageCurrent4: 1,
|
||||||
|
pageSize4: 10,
|
||||||
|
pageCurrent5: 1,
|
||||||
|
pageSize5: 10,
|
||||||
tableData7: [],
|
tableData7: [],
|
||||||
tableData6: [],
|
tableData6: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
tableData1: [],
|
||||||
state: null,
|
state: null,
|
||||||
total: null,
|
listLoading1: false,
|
||||||
total1: null,
|
listLoading2: false,
|
||||||
total2: null,
|
total: 0,
|
||||||
|
total1: 0,
|
||||||
|
total2: 0,
|
||||||
|
total4: 0,
|
||||||
|
total5: 0,
|
||||||
title: '',
|
title: '',
|
||||||
dialogFormVisible2: false,
|
dialogFormVisible2: false,
|
||||||
dialogFormVisible3: false,
|
dialogFormVisible3: false,
|
||||||
@@ -359,6 +438,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
searchData() {
|
searchData() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
this.listLoading1 = true
|
||||||
|
this.listLoading2 = true
|
||||||
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
this.check = 1
|
this.check = 1
|
||||||
@@ -406,8 +487,14 @@ export default {
|
|||||||
searchPurchaseTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
searchPurchaseTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
||||||
console.log(response)
|
console.log(response)
|
||||||
this.tableDataPurchase = response.data.rows
|
this.tableDataPurchase = response.data.rows
|
||||||
this.listLoading = false
|
this.listLoading1 = false
|
||||||
this.total1 = response.data.total
|
this.total4 = parseInt(response.data.total)
|
||||||
|
})
|
||||||
|
searchTable1(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
||||||
|
console.log(response)
|
||||||
|
this.tableData1 = response.data.rows
|
||||||
|
this.listLoading2 = false
|
||||||
|
this.total5 = parseInt(response.data.total)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -481,11 +568,105 @@ export default {
|
|||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
this.pageCurrent = 1
|
this.pageCurrent = 1
|
||||||
this.pageSize = val
|
this.pageSize = val
|
||||||
this.searchData()
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
this.check = 1
|
||||||
|
} else {
|
||||||
|
this.check = 0
|
||||||
|
}
|
||||||
|
if (this.machineToolNumber !== '') {
|
||||||
|
this.check1 = 1
|
||||||
|
} else {
|
||||||
|
this.check1 = 0
|
||||||
|
}
|
||||||
|
if (this.groupNumber !== '') {
|
||||||
|
this.check2 = 1
|
||||||
|
} else {
|
||||||
|
this.check2 = 0
|
||||||
|
}
|
||||||
|
if (this.year !== null && this.year !== '') {
|
||||||
|
this.check3 = 1
|
||||||
|
} else {
|
||||||
|
this.check3 = 0
|
||||||
|
}
|
||||||
|
if (this.month !== null && this.month !== '') {
|
||||||
|
this.check4 = 1
|
||||||
|
} else {
|
||||||
|
this.check4 = 0
|
||||||
|
}
|
||||||
|
if (this.time !== '' && this.time !== null) {
|
||||||
|
this.check5 = 1
|
||||||
|
} else {
|
||||||
|
this.check5 = 0
|
||||||
|
}
|
||||||
|
searchTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
||||||
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
|
if (response.data.rows[i].入库时间 !== null) {
|
||||||
|
response.data.rows[i].入库时间 = response.data.rows[i].入库时间.split(' ', 2)[0]
|
||||||
|
}
|
||||||
|
if (response.data.rows[i].计划完成时间 !== null) {
|
||||||
|
response.data.rows[i].计划完成时间 = response.data.rows[i].计划完成时间.split(' ', 2)[0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.tableData = response.data.rows
|
||||||
|
this.total = parseInt(response.data.total)
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.warning('请先选择项目')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleCurrentChange(val) {
|
handleCurrentChange(val) {
|
||||||
this.pageCurrent = val
|
this.pageCurrent = val
|
||||||
this.searchData()
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
this.check = 1
|
||||||
|
} else {
|
||||||
|
this.check = 0
|
||||||
|
}
|
||||||
|
if (this.machineToolNumber !== '') {
|
||||||
|
this.check1 = 1
|
||||||
|
} else {
|
||||||
|
this.check1 = 0
|
||||||
|
}
|
||||||
|
if (this.groupNumber !== '') {
|
||||||
|
this.check2 = 1
|
||||||
|
} else {
|
||||||
|
this.check2 = 0
|
||||||
|
}
|
||||||
|
if (this.year !== null && this.year !== '') {
|
||||||
|
this.check3 = 1
|
||||||
|
} else {
|
||||||
|
this.check3 = 0
|
||||||
|
}
|
||||||
|
if (this.month !== null && this.month !== '') {
|
||||||
|
this.check4 = 1
|
||||||
|
} else {
|
||||||
|
this.check4 = 0
|
||||||
|
}
|
||||||
|
if (this.time !== '' && this.time !== null) {
|
||||||
|
this.check5 = 1
|
||||||
|
} else {
|
||||||
|
this.check5 = 0
|
||||||
|
}
|
||||||
|
searchTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
||||||
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
|
if (response.data.rows[i].入库时间 !== null) {
|
||||||
|
response.data.rows[i].入库时间 = response.data.rows[i].入库时间.split(' ', 2)[0]
|
||||||
|
}
|
||||||
|
if (response.data.rows[i].计划完成时间 !== null) {
|
||||||
|
response.data.rows[i].计划完成时间 = response.data.rows[i].计划完成时间.split(' ', 2)[0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.tableData = response.data.rows
|
||||||
|
this.total = parseInt(response.data.total)
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.warning('请先选择项目')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSizeChange1(val) {
|
handleSizeChange1(val) {
|
||||||
this.pageCurrent1 = 1
|
this.pageCurrent1 = 1
|
||||||
@@ -504,6 +685,184 @@ export default {
|
|||||||
handleCurrentChange3(val) {
|
handleCurrentChange3(val) {
|
||||||
this.pageCurrent2 = val
|
this.pageCurrent2 = val
|
||||||
this.searchGroupList()
|
this.searchGroupList()
|
||||||
|
},
|
||||||
|
handleSizeChange4(val) {
|
||||||
|
this.pageCurrent4 = 1
|
||||||
|
this.pageSize4 = val
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
this.check = 1
|
||||||
|
} else {
|
||||||
|
this.check = 0
|
||||||
|
}
|
||||||
|
if (this.machineToolNumber !== '') {
|
||||||
|
this.check1 = 1
|
||||||
|
} else {
|
||||||
|
this.check1 = 0
|
||||||
|
}
|
||||||
|
if (this.groupNumber !== '') {
|
||||||
|
this.check2 = 1
|
||||||
|
} else {
|
||||||
|
this.check2 = 0
|
||||||
|
}
|
||||||
|
if (this.year !== null && this.year !== '') {
|
||||||
|
this.check3 = 1
|
||||||
|
} else {
|
||||||
|
this.check3 = 0
|
||||||
|
}
|
||||||
|
if (this.month !== null && this.month !== '') {
|
||||||
|
this.check4 = 1
|
||||||
|
} else {
|
||||||
|
this.check4 = 0
|
||||||
|
}
|
||||||
|
if (this.time !== '' && this.time !== null) {
|
||||||
|
this.check5 = 1
|
||||||
|
} else {
|
||||||
|
this.check5 = 0
|
||||||
|
}
|
||||||
|
searchPurchaseTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent4, this.pageSize4).then(response => {
|
||||||
|
console.log(response)
|
||||||
|
this.tableDataPurchase = response.data.rows
|
||||||
|
this.listLoading1 = false
|
||||||
|
this.total4 = parseInt(response.data.total)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.warning('请先选择项目')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleCurrentChange4(val) {
|
||||||
|
this.pageCurrent4 = val
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
this.check = 1
|
||||||
|
} else {
|
||||||
|
this.check = 0
|
||||||
|
}
|
||||||
|
if (this.machineToolNumber !== '') {
|
||||||
|
this.check1 = 1
|
||||||
|
} else {
|
||||||
|
this.check1 = 0
|
||||||
|
}
|
||||||
|
if (this.groupNumber !== '') {
|
||||||
|
this.check2 = 1
|
||||||
|
} else {
|
||||||
|
this.check2 = 0
|
||||||
|
}
|
||||||
|
if (this.year !== null && this.year !== '') {
|
||||||
|
this.check3 = 1
|
||||||
|
} else {
|
||||||
|
this.check3 = 0
|
||||||
|
}
|
||||||
|
if (this.month !== null && this.month !== '') {
|
||||||
|
this.check4 = 1
|
||||||
|
} else {
|
||||||
|
this.check4 = 0
|
||||||
|
}
|
||||||
|
if (this.time !== '' && this.time !== null) {
|
||||||
|
this.check5 = 1
|
||||||
|
} else {
|
||||||
|
this.check5 = 0
|
||||||
|
}
|
||||||
|
searchPurchaseTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent4, this.pageSize4).then(response => {
|
||||||
|
console.log(response)
|
||||||
|
this.tableDataPurchase = response.data.rows
|
||||||
|
this.listLoading1 = false
|
||||||
|
this.total4 = parseInt(response.data.total)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.warning('请先选择项目')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSizeChange5(val) {
|
||||||
|
this.pageCurrent5 = 1
|
||||||
|
this.pageSize5 = val
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
this.check = 1
|
||||||
|
} else {
|
||||||
|
this.check = 0
|
||||||
|
}
|
||||||
|
if (this.machineToolNumber !== '') {
|
||||||
|
this.check1 = 1
|
||||||
|
} else {
|
||||||
|
this.check1 = 0
|
||||||
|
}
|
||||||
|
if (this.groupNumber !== '') {
|
||||||
|
this.check2 = 1
|
||||||
|
} else {
|
||||||
|
this.check2 = 0
|
||||||
|
}
|
||||||
|
if (this.year !== null && this.year !== '') {
|
||||||
|
this.check3 = 1
|
||||||
|
} else {
|
||||||
|
this.check3 = 0
|
||||||
|
}
|
||||||
|
if (this.month !== null && this.month !== '') {
|
||||||
|
this.check4 = 1
|
||||||
|
} else {
|
||||||
|
this.check4 = 0
|
||||||
|
}
|
||||||
|
if (this.time !== '' && this.time !== null) {
|
||||||
|
this.check5 = 1
|
||||||
|
} else {
|
||||||
|
this.check5 = 0
|
||||||
|
}
|
||||||
|
searchTable1(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent5, this.pageSize5).then(response => {
|
||||||
|
console.log(response)
|
||||||
|
this.tableData1 = response.data.rows
|
||||||
|
this.listLoading2 = false
|
||||||
|
this.total5 = parseInt(response.data.total)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.warning('请先选择项目')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleCurrentChange5(val) {
|
||||||
|
this.pageCurrent5 = val
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
||||||
|
this.check = 1
|
||||||
|
} else {
|
||||||
|
this.check = 0
|
||||||
|
}
|
||||||
|
if (this.machineToolNumber !== '') {
|
||||||
|
this.check1 = 1
|
||||||
|
} else {
|
||||||
|
this.check1 = 0
|
||||||
|
}
|
||||||
|
if (this.groupNumber !== '') {
|
||||||
|
this.check2 = 1
|
||||||
|
} else {
|
||||||
|
this.check2 = 0
|
||||||
|
}
|
||||||
|
if (this.year !== null && this.year !== '') {
|
||||||
|
this.check3 = 1
|
||||||
|
} else {
|
||||||
|
this.check3 = 0
|
||||||
|
}
|
||||||
|
if (this.month !== null && this.month !== '') {
|
||||||
|
this.check4 = 1
|
||||||
|
} else {
|
||||||
|
this.check4 = 0
|
||||||
|
}
|
||||||
|
if (this.time !== '' && this.time !== null) {
|
||||||
|
this.check5 = 1
|
||||||
|
} else {
|
||||||
|
this.check5 = 0
|
||||||
|
}
|
||||||
|
searchTable1(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent5, this.pageSize5).then(response => {
|
||||||
|
console.log(response)
|
||||||
|
this.tableData1 = response.data.rows
|
||||||
|
this.listLoading2 = false
|
||||||
|
this.total5 = parseInt(response.data.total)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.warning('请先选择项目')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -490,6 +490,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
searchData() {
|
searchData() {
|
||||||
searchData(this.contractNumValue).then(response => {
|
searchData(this.contractNumValue).then(response => {
|
||||||
|
for (let j = 0; j < response.data.length; j++) {
|
||||||
|
response.data[j].物料计划到货时间 = (response.data[j].物料计划到货时间).split(' ')[0]
|
||||||
|
}
|
||||||
this.tableData3 = response.data
|
this.tableData3 = response.data
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.deliveryDay[i] = 0
|
this.deliveryDay[i] = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user