物料出库
This commit is contained in:
@@ -5,13 +5,19 @@
|
|||||||
<el-button size="small" type="primary" icon="el-icon-search" style="margin: 0 0 0 10px" plain @click="searchList()">查询</el-button>
|
<el-button size="small" type="primary" icon="el-icon-search" style="margin: 0 0 0 10px" plain @click="searchList()">查询</el-button>
|
||||||
<el-button size="small" style="margin-left: 100px" type="distribution" @click="inputPassword()">领料确认</el-button>
|
<el-button size="small" style="margin-left: 100px" type="distribution" @click="inputPassword()">领料确认</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading1" :data="pickListTable2" :row-class-name="tableRowClassName1" highlight-current-row border style="width: 1000px" size="mini" height="600" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading1" :data="pickListTable2" :row-class-name="tableRowClassName1" highlight-current-row border style="width: 1015px" size="mini" height="600" @selection-change="handleSelectionChange">
|
||||||
<el-table-column label="名称" show-overflow-tooltip prop="名称" align="center" width="90">
|
<el-table-column align="center" type="selection" width="50"/>
|
||||||
|
<el-table-column label="领料单编号" show-overflow-tooltip prop="名称" align="center" width="150">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.领料单编号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="名称" show-overflow-tooltip prop="名称" align="center" width="110">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.名称 }}
|
{{ scope.row.名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="图号或型号" prop="图号或型号" align="center" width="110" show-overflow-tooltip>
|
<el-table-column label="图号或型号" prop="图号或型号" align="center" width="120" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.图号或型号 || '—' }}
|
{{ scope.row.图号或型号 || '—' }}
|
||||||
</template>
|
</template>
|
||||||
@@ -136,7 +142,8 @@ export default {
|
|||||||
rules3: {
|
rules3: {
|
||||||
password: [{ required: true, message: '请输入' }],
|
password: [{ required: true, message: '请输入' }],
|
||||||
outTypeValue: [{ required: true, message: '请选择' }]
|
outTypeValue: [{ required: true, message: '请选择' }]
|
||||||
}
|
},
|
||||||
|
multipleSelection1: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -215,10 +222,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 多选
|
// 多选
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection1 = []
|
this.multipleSelection1 = val
|
||||||
val.map(v => {
|
|
||||||
this.multipleSelection1.push(v.领料单明细流水号)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 领料确认
|
// 领料确认
|
||||||
inputPassword() {
|
inputPassword() {
|
||||||
@@ -251,18 +255,17 @@ export default {
|
|||||||
this.machineValue = []
|
this.machineValue = []
|
||||||
this.offlineNum = []
|
this.offlineNum = []
|
||||||
this.outNumber = []
|
this.outNumber = []
|
||||||
for (let i = 0; i < this.pickListTable2.length; i++) {
|
for (let i = 0; i < this.multipleSelection1.length; i++) {
|
||||||
console.log(this.pickListTable2[i].出库数量, 1233)
|
if (this.multipleSelection1[i].出库数量 !== 0) {
|
||||||
if (this.pickListTable2[i].出库数量 !== 0) {
|
this.multipleSelection.push(this.multipleSelection1[i].领料单明细流水号)
|
||||||
this.multipleSelection.push(this.pickListTable2[i].领料单明细流水号)
|
this.basePartNum.push(this.multipleSelection1[i].基本件流水号)
|
||||||
this.basePartNum.push(this.pickListTable2[i].基本件流水号)
|
this.materialNum.push(this.multipleSelection1[i].物料流水号)
|
||||||
this.materialNum.push(this.pickListTable2[i].物料流水号)
|
this.parchasePartNum.push(this.multipleSelection1[i].标准件和外购件流水号)
|
||||||
this.parchasePartNum.push(this.pickListTable2[i].标准件和外购件流水号)
|
this.purchaseBillNum.push(this.multipleSelection1[i].请购单明细流水号)
|
||||||
this.purchaseBillNum.push(this.pickListTable2[i].请购单明细流水号)
|
this.groupNumValue.push(this.multipleSelection1[i].组件流水号)
|
||||||
this.groupNumValue.push(this.pickListTable2[i].组件流水号)
|
this.machineValue.push(this.multipleSelection1[i].机床流水号)
|
||||||
this.machineValue.push(this.pickListTable2[i].机床流水号)
|
this.offlineNum.push(this.multipleSelection1[i].离线采购件流水号)
|
||||||
this.offlineNum.push(this.pickListTable2[i].离线采购件流水号)
|
this.outNumber.push(this.multipleSelection1[i].出库数量)
|
||||||
this.outNumber.push(this.pickListTable2[i].出库数量)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Number(this.form3.password) === Number(this.form3.DirectNote)) {
|
if (Number(this.form3.password) === Number(this.form3.DirectNote)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user