更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
<el-card style="width: 1000px">
|
||||
<el-row>
|
||||
<span style="margin-left: 10px">零件图号</span>
|
||||
<el-input v-model="Partpaint" clearable size="small" style="width:200px;height: 29px;margin-top: 10px;margin-bottom: 10px" />
|
||||
@@ -11,19 +11,29 @@
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将所有机床零件入库" placement="top">
|
||||
<el-button type="warning" size="small" class="el-icon-success" style="margin: 0 0 0 10px" plain @click="Innumber">入库</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="清除该条零件信息" placement="top">
|
||||
<el-button
|
||||
size="small"
|
||||
type="danger"
|
||||
style="float: right; margin-right: 10px;margin-top: 12px"
|
||||
plain
|
||||
class="el-icon-delete"
|
||||
@click="handleDelete()">移除</el-button>
|
||||
</el-tooltip>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-card style="width: 1000px">
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
:data="tableDataNum"
|
||||
:row-class-name="tableRowClassName"
|
||||
stripe
|
||||
highlight-current-row
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;margin: 3px 0px"
|
||||
height="650px">
|
||||
height="750px">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
@@ -39,33 +49,22 @@
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="零件图号" align="center" min-width="100">
|
||||
<el-table-column label="零件图号" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="计划数量" align="center" min-width="100">
|
||||
<el-table-column label="计划数量" align="center" min-width="70">
|
||||
<template slot-scope="scope" align="center">
|
||||
{{ tableDataNum[scope.$index].plannumber }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="入库数量" align="center" min-width="100">
|
||||
<el-table-column label="入库数量" align="center" min-width="70">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="tableDataNum[scope.$index].innumber" clearable size="mini"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="仓库" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="inventoryNumber" filterable clearable size="mini" placeholder="仓库名称" @change="Getlocate">
|
||||
<el-option
|
||||
v-for="item in inventoryName"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="货位" align="center" min-width="120">
|
||||
<el-table-column label="货位" align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="locateNumber" filterable clearable size="mini" placeholder="货位名称">
|
||||
<el-option
|
||||
@@ -81,26 +80,13 @@
|
||||
<el-input v-model="tableData[scope.$index].note" clearable size="mini"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="清除该条零件信息" placement="top">
|
||||
<el-button
|
||||
:disabled="scope.row.是否禁用"
|
||||
size="mini"
|
||||
type="danger"
|
||||
plain
|
||||
class="el-icon-delete"
|
||||
@click="handleDelete(scope.$index, scope.row)">移除</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchTable, insertOne, getinventory, getlocate, searchPartNumber, CraftNumber } from '@/api/Inventory/Inboundscanning'
|
||||
import { searchTable, insertOne, getlocate, searchPartNumber, CraftNumber } from '@/api/Inventory/Inboundscanning'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { wsuri, name } from '@/utils/request'
|
||||
export default {
|
||||
@@ -114,6 +100,7 @@ export default {
|
||||
craftplannumber: '',
|
||||
radio2: 3,
|
||||
PeopleNumber: '',
|
||||
NUM: '',
|
||||
inventoryName: [], // 仓库名称下拉框
|
||||
inventoryNumber: '',
|
||||
locateName: [], // 货位名称下拉框
|
||||
@@ -131,13 +118,21 @@ export default {
|
||||
created() {
|
||||
this.initWebpack()
|
||||
this.getpeopleid()
|
||||
this.Getinvent()
|
||||
this.Getlocate()
|
||||
},
|
||||
methods: {
|
||||
// 移除
|
||||
handleDelete(index, row) {
|
||||
this.tableDataNum.splice(index, 1)
|
||||
this.tableData.splice(index, 1)
|
||||
handleDelete() {
|
||||
this.tableDataNum.splice(this.NUM, 1)
|
||||
this.tableData.splice(this.NUM, 1)
|
||||
this.NUM = ''
|
||||
},
|
||||
tableRowClassName({ row, rowIndex }) {
|
||||
console.log(rowIndex)
|
||||
this.NUM = rowIndex
|
||||
},
|
||||
searchData(index) {
|
||||
this.NUM = index
|
||||
},
|
||||
// 获取人员编号
|
||||
getpeopleid() {
|
||||
@@ -309,17 +304,11 @@ export default {
|
||||
this.tableDataNum = []
|
||||
this.Partpaint = ''
|
||||
},
|
||||
// 仓库查询
|
||||
Getinvent() {
|
||||
this.getSelect(getinventory, ['仓库名称', '仓库流水号'], 'inventoryName')
|
||||
},
|
||||
// 根据仓库获取货位
|
||||
Getlocate() {
|
||||
this.locateName = []
|
||||
this.locateNumber = ''
|
||||
if (this.inventoryNumber) {
|
||||
this.getSelect(getlocate, ['货位名称', '货位流水号'], 'locateName', this.inventoryNumber)
|
||||
}
|
||||
this.getSelect(getlocate, ['货位名称', '货位流水号'], 'locateName')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,12 +34,7 @@
|
||||
size="mini"
|
||||
highlight-current-row
|
||||
border
|
||||
height="550">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
width="55"
|
||||
type="index"/>
|
||||
height="730">
|
||||
<el-table-column align="center" label="零件名称" prop="零件名称" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
@@ -50,7 +45,7 @@
|
||||
{{ scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="出库数量" width="120px">
|
||||
<el-table-column align="center" label="出库数" width="70px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.出库数量 }}
|
||||
</template>
|
||||
@@ -60,29 +55,29 @@
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组号" prop="组号" width="120px">
|
||||
<el-table-column align="center" label="组号" prop="组号" width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="领料人" prop="出库备注">
|
||||
<el-table-column align="center" label="领料人" prop="出库备注" width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.出库备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="出库时间" prop="出库时间">
|
||||
<el-table-column align="center" label="出库时间" prop="出库时间" width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.出库时间 }}
|
||||
{{ scope.row.出库时间 ? scope.row.出库时间.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<el-pagination
|
||||
v-if="!listLoading1"
|
||||
:current-page="pageCurrent"
|
||||
:page-sizes="[15, 20, 30, 40]"
|
||||
:page-size="pageSize"
|
||||
:total="total"
|
||||
:current-page="pageCurrent1"
|
||||
:page-sizes="[15, 20, 30, 500]"
|
||||
:page-size="pageSize1"
|
||||
:total="total1"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"/>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
<span style="margin-left: 10px">机床号:</span>
|
||||
<el-select v-model="Machine" filterable clearable size="small" style="margin-top:10px;margin-bottom: 10px;width: 220px" placeholder="机床号" @change="getGroup()">
|
||||
<el-select v-model="Machine" filterable clearable size="small" style="margin-top:10px;margin-bottom: 10px;width: 120px" placeholder="机床号" @change="getGroup()">
|
||||
<el-option
|
||||
v-for="item in Machines"
|
||||
:key="item.value"
|
||||
@@ -13,7 +13,7 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
<span>组号:</span>
|
||||
<el-select v-model="Group" size="small" clearable placeholder="组号" style="margin-top:10px;width: 180px;">
|
||||
<el-select v-model="Group" size="small" clearable placeholder="组号" style="margin-top:10px;width: 120px;">
|
||||
<el-option
|
||||
v-for="item in Groups"
|
||||
:key="item.value"
|
||||
@@ -21,36 +21,32 @@
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>零件图号:</span>
|
||||
<el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 180px;"/>
|
||||
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="getTableData();pageCurrent=1;pageSize=15;total = 0">查询</el-button>
|
||||
<el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 120px;"/>
|
||||
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="getTableData();pageCurrent=1;pageSize=500;total = 0">查询</el-button>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-card style="width: 49.5%; float: left">
|
||||
<el-table
|
||||
v-loading="listLoading1"
|
||||
:data="tableData1"
|
||||
stripe
|
||||
size="mini"
|
||||
style="width: 100%"
|
||||
highlight-current-row
|
||||
class="table"
|
||||
border
|
||||
height="550">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
width="55"
|
||||
type="index"/>
|
||||
height="730">
|
||||
<el-table-column align="center" label="零件名称" prop="零件名称" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件图号" prop="零件图号" width="150px">
|
||||
<el-table-column align="center" label="零件图号" prop="零件图号" min-width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="入库数量" width="120px">
|
||||
<el-table-column align="center" label="入库数" width="70px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.入库数量 }}
|
||||
</template>
|
||||
@@ -60,24 +56,19 @@
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组号" prop="组号" width="120px">
|
||||
<el-table-column align="center" label="组号" prop="组号" width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="仓库名称" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.仓库名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="货位名称" prop="货位名称" width="120px">
|
||||
<el-table-column align="center" label="货位名称" prop="货位名称" width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.货位名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="入库时间" prop="入库时间">
|
||||
<el-table-column align="center" label="入库时间" prop="入库时间" width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.入库时间 }}
|
||||
{{ scope.row.入库时间 ? scope.row.入库时间.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -85,7 +76,7 @@
|
||||
<el-pagination
|
||||
v-if="!listLoading1"
|
||||
:current-page="pageCurrent"
|
||||
:page-sizes="[15, 20, 30, 40]"
|
||||
:page-sizes="[15, 20, 30, 500]"
|
||||
:page-size="pageSize"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@@ -94,11 +85,71 @@
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-card style="width: 49.5%; float: left;margin-left: 10px">
|
||||
<el-table
|
||||
v-loading="listLoading2"
|
||||
:data="tableData0"
|
||||
class="table"
|
||||
stripe
|
||||
size="mini"
|
||||
style="width: 100%"
|
||||
highlight-current-row
|
||||
border
|
||||
height="730">
|
||||
<el-table-column align="center" label="零件名称" prop="零件名称" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件图号" prop="零件图号" min-idth="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="出库数" width="70px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.出库数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="机床图号" prop="机床图号" width="120px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床图号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组号" prop="组号" width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.组号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="领料人" prop="出库备注" width="80px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.出库备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="出库时间" prop="出库时间" width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.出库时间 ? scope.row.出库时间.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<el-pagination
|
||||
v-if="!listLoading2"
|
||||
:current-page="pageCurrent0"
|
||||
:page-sizes="[15, 20, 30, 500]"
|
||||
:page-size="pageSize0"
|
||||
:total="total0"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"/>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getMachines, getGroups, getTable } from '@/api/Inventory/StockInquiry'
|
||||
import { getMachines, getGroups, getTable, getTable1 } from '@/api/Inventory/StockInquiry'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -112,10 +163,15 @@ export default {
|
||||
checkbox_Group: false,
|
||||
checkbox_number: false,
|
||||
tableData1: [],
|
||||
tableData0: [],
|
||||
listLoading1: false,
|
||||
listLoading2: false,
|
||||
total: 0, // 总条数
|
||||
pageSize: 15,
|
||||
pageCurrent: 1
|
||||
pageSize: 500,
|
||||
pageCurrent: 1,
|
||||
total0: 0, // 总条数
|
||||
pageSize0: 500,
|
||||
pageCurrent0: 1
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -153,6 +209,7 @@ export default {
|
||||
// 按条件查询
|
||||
getTableData() {
|
||||
this.listLoading1 = true
|
||||
this.listLoading2 = true
|
||||
if (this.Machine === '') {
|
||||
this.checkbox_Machine = 0
|
||||
} else {
|
||||
@@ -169,6 +226,7 @@ export default {
|
||||
this.checkbox_number = 1
|
||||
}
|
||||
this.tableData1 = []
|
||||
this.tableData0 = []
|
||||
getTable(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, this.pageCurrent, this.pageSize).then(response => {
|
||||
if (response.data.total === 0) {
|
||||
this.listLoading1 = false
|
||||
@@ -178,6 +236,15 @@ export default {
|
||||
this.listLoading1 = false
|
||||
}
|
||||
})
|
||||
getTable1(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, this.pageCurrent0, this.pageSize0).then(response => {
|
||||
if (response.data.total === 0) {
|
||||
this.listLoading2 = false
|
||||
} else {
|
||||
this.tableData0 = response.data.rows
|
||||
this.total0 = response.data.total
|
||||
this.listLoading2 = false
|
||||
}
|
||||
})
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
this.pageCurrent = 1
|
||||
|
||||
Reference in New Issue
Block a user