领用滞货
This commit is contained in:
@@ -325,19 +325,17 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="货位存量" align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
123123123
|
||||
{{ scope.row.数量 }}
|
||||
{{ scope.row.关联数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="待出库数量" align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
123123123
|
||||
{{ scope.row.数量 }}
|
||||
{{ scope.row.待出库数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="可出库数量" align="center" width="90">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.可出库数量 = scope.row.货位存量 - scope.row.待出库数量 }}
|
||||
{{ scope.row.可出库数量 = scope.row.关联数量 - scope.row.待出库数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="100">
|
||||
@@ -512,7 +510,7 @@
|
||||
|
||||
<script>
|
||||
import { initProject, searchmachine, searchTeam, searchPurchasePart, searchBasicPart, searchList, addList, dropList,
|
||||
addListDetail, searchListDetail, dropListDetail, searchHoursePart } from '@/api/Inventory/PickingList'
|
||||
addListDetail, searchListDetail, dropListDetail, searchHoursePart, searchBacklogPart, submitAddBacklogList } from '@/api/Inventory/PickingList'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
@@ -819,7 +817,12 @@ export default {
|
||||
searchBacklogPart() {
|
||||
this.listLoading3 = true
|
||||
this.tableDataBacklog = []
|
||||
this.listLoading3 = false
|
||||
searchBacklogPart(this.PageCurrent3, this.PageSize3, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||
console.log(response.data.rows, 123)
|
||||
this.tableDataBacklog = response.data.rows
|
||||
this.listLoading3 = false
|
||||
this.total3 = response.data.total
|
||||
})
|
||||
},
|
||||
// 滞货件分页
|
||||
handleSizeChange3(val) {
|
||||
@@ -963,9 +966,47 @@ export default {
|
||||
}
|
||||
},
|
||||
// 增加滞货件领料单明细
|
||||
addBacklogList(row) {},
|
||||
addBacklogList(row) {
|
||||
if (this.$refs['form3'] !== undefined) {
|
||||
this.$refs['form3'].resetFields()
|
||||
}
|
||||
console.log(row)
|
||||
this.dialogFormVisible3 = true
|
||||
this.partProjectNumber = row.项目流水号
|
||||
this.partMachineNumber = row.机床流水号
|
||||
this.partGroupNumber = row.组件流水号
|
||||
this.form3.outNumber = ''
|
||||
this.form3.outNote = ''
|
||||
this.locatenumber = row.货位流水号
|
||||
this.materialLocate = row.物料与货位对照流水号
|
||||
this.materialName = row.物料名称
|
||||
this.materialType = row.物料规格
|
||||
this.materialNumber = row.物料型号
|
||||
this.enableOut = Number(row.可出库数量)
|
||||
},
|
||||
// 提交增加滞货件领料单明细
|
||||
submitAddBacklogList() {},
|
||||
submitAddBacklogList() {
|
||||
console.log(123)
|
||||
this.$refs['form3'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.pickingListNumberx === '') {
|
||||
this.$message.error('请选择领料单')
|
||||
} else {
|
||||
submitAddBacklogList(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.form3.outNumber, this.form3.outNote, this.locatenumber, this.materialLocate, this.materialName, this.materialType, this.materialNumber).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('增加成功')
|
||||
this.searchPartinfo()
|
||||
this.searchListinfor()
|
||||
this.searchListDetailt()
|
||||
this.dialogFormVisible3 = false
|
||||
} else {
|
||||
this.$message.error('增加失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 增加车间采购领料单明细
|
||||
addWorkshopList(row) {
|
||||
if (this.$refs['form2'] !== undefined) {
|
||||
@@ -998,7 +1039,7 @@ export default {
|
||||
if (this.pickingListNumberx === '') {
|
||||
this.$message.error('请选择领料单')
|
||||
} else {
|
||||
addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.form3.outNumber, this.partType, this.form3.outNote, this.craftplannumber, this.receive, this.purchaseDetailNum, this.askPurchaseNumber, this.locatenumber, this.outType, this.materialLocate, this.materialName, this.materialType, this.materialNumber, this.partPiant, this.material).then(response => {
|
||||
addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.form4.outNumber, this.partType, this.form4.outNote, this.craftplannumber, this.receive, this.purchaseDetailNum, this.askPurchaseNumber, this.locatenumber, this.outType, this.materialLocate, this.materialName, this.materialType, this.materialNumber, this.partPiant, this.material).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('增加成功')
|
||||
this.searchPartinfo()
|
||||
|
||||
Reference in New Issue
Block a user