物料出库
This commit is contained in:
@@ -79,7 +79,7 @@ export function submitOutStore(...params) {
|
|||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '库存管理_物料出库_出库记录_增加数据',
|
name: '库存管理_物料出库_出库记录_增加数据',
|
||||||
param: `出库数量=${params[0]}&出库人流水号=${params[1]}&基本件流水号=${params[2]}&标准件和外购件流水号=${params[3]}`
|
param: `物料流水号=${params[0]}&货位流水号=${params[1]}&出库数量=${params[2]}&出库人流水号=${params[3]}&基本件流水号=${params[4]}&标准件和外购件流水号=${params[5]}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -282,6 +282,11 @@
|
|||||||
{{ scope.row.备件数量 }}
|
{{ scope.row.备件数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="已领数量" align="center" min-width="70">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.出库数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column v-if="true" label="操作" align="center" width="100">
|
<el-table-column v-if="true" label="操作" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button :disabled="!!scope.row.是否出库" size="mini" type="danger" icon="el-icon-delete" @click="dropListDetail(scope.row)">删除</el-button>
|
<el-button :disabled="!!scope.row.是否出库" size="mini" type="danger" icon="el-icon-delete" @click="dropListDetail(scope.row)">删除</el-button>
|
||||||
@@ -612,7 +617,7 @@ export default {
|
|||||||
this.$message.success('删除成功')
|
this.$message.success('删除成功')
|
||||||
this.clickList()
|
this.clickList()
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('已确认领回,不可删除')
|
this.$message.error('已领取,不可删除')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
@@ -89,6 +89,11 @@
|
|||||||
{{ scope.row.出库数量 }}
|
{{ scope.row.出库数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" icon="el-icon-back" type="primary" disabled>归还</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
@@ -180,9 +185,6 @@
|
|||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!--<el-form-item label="领料人" prop="DirectNote" label-width="100px">-->
|
|
||||||
<!--<el-input v-model="form1.DirectNote" size="small" placeholder="请输入领料人" style="width: 200px"/>-->
|
|
||||||
<!--</el-form-item>-->
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogFormVisible1=false">取消</el-button>
|
<el-button @click="dialogFormVisible1=false">取消</el-button>
|
||||||
@@ -228,8 +230,7 @@ export default {
|
|||||||
machineValue: '',
|
machineValue: '',
|
||||||
groupNumValue: '',
|
groupNumValue: '',
|
||||||
outNumber: '',
|
outNumber: '',
|
||||||
personValue: '',
|
personValue: ''
|
||||||
DirectNote: ''
|
|
||||||
},
|
},
|
||||||
form2: {
|
form2: {
|
||||||
errorNumber: '',
|
errorNumber: '',
|
||||||
@@ -243,8 +244,7 @@ export default {
|
|||||||
machineValue: [{ required: true, message: '请选择' }],
|
machineValue: [{ required: true, message: '请选择' }],
|
||||||
groupNumValue: [{ required: true, message: '请选择' }],
|
groupNumValue: [{ required: true, message: '请选择' }],
|
||||||
outNumber: [{ required: true, message: '请输入' }],
|
outNumber: [{ required: true, message: '请输入' }],
|
||||||
personValue: [{ required: true, message: '请输入' }],
|
personValue: [{ required: true, message: '请输入' }]
|
||||||
DirectNote: [{ required: true, message: '请输入' }]
|
|
||||||
},
|
},
|
||||||
rules2: {
|
rules2: {
|
||||||
errorNumber: [{ required: true, message: '请输入' }],
|
errorNumber: [{ required: true, message: '请输入' }],
|
||||||
@@ -253,12 +253,13 @@ export default {
|
|||||||
machine: [],
|
machine: [],
|
||||||
group: [],
|
group: [],
|
||||||
person: [],
|
person: [],
|
||||||
materialNum: '', // 中间变量
|
materialNum: '', // 中间变量物料流水号
|
||||||
machineValue: '', // 中间变量
|
machineValue: '', // 中间变量机床流水号
|
||||||
groupNumValue: '', // 中间变量
|
groupNumValue: '', // 中间变量组件流水号
|
||||||
basePartNum: '', // 中间变量
|
basePartNum: '', // 中间变量基本件流水u和
|
||||||
parchasePartNum: '', // 中间变量
|
parchasePartNum: '', // 中间变量标准件和外购件流水号
|
||||||
outNumber: 0 // 中间变量
|
locationNum: '', // 中间变量货位流水号
|
||||||
|
outNumber: 0 // 中间变量出库数量
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -326,21 +327,20 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查看领料单明细
|
// 查看领料单明细
|
||||||
clickList(row) {
|
clickList(row) {
|
||||||
row ? this.pickingListNum = row.领料单流水号 : this.pickingListNum
|
row && row.领料单流水号 ? this.pickingListNum = row.领料单流水号 : this.pickingListNum
|
||||||
row ? this.pickingListNumberShow = row.领料单编号 : this.pickingListNumberShow
|
row && row.领料单编号 ? this.pickingListNumberShow = row.领料单编号 : this.pickingListNumberShow
|
||||||
searchListDetail(this.pickingListNum).then(res => {
|
searchListDetail(this.pickingListNum).then(res => {
|
||||||
this.pickListTable2 = res.data
|
this.pickListTable2 = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 查看领料单明细相关的物料货位数量
|
// 查看领料单明细相关的物料货位数量
|
||||||
clickListDetail(row) {
|
clickListDetail(row) {
|
||||||
console.log(row)
|
row && row.基本件流水号 ? (this.basePartNum = row.基本件流水号, this.materialNum = '', this.parchasePartNum = '') : this.basePartNum
|
||||||
row.基本件流水号 ? (this.basePartNum = row.基本件流水号, this.materialNum = '', this.parchasePartNum = '') : this.basePartNum
|
row && row.物料流水号 ? (this.materialNum = row.物料流水号, this.basePartNum = '') : this.materialNum
|
||||||
row.物料流水号 ? (this.materialNum = row.物料流水号, this.basePartNum = '') : this.materialNum
|
row && row.标准件和外购件流水号 ? (this.parchasePartNum = row.标准件和外购件流水号, this.basePartNum = '') : this.parchasePartNum
|
||||||
row.标准件和外购件流水号 ? (this.parchasePartNum = row.标准件和外购件流水号, this.basePartNum = '') : this.parchasePartNum
|
row && row.机床流水号 ? this.machineValue = row.机床流水号 : this.machineValue
|
||||||
this.machineValue = row.机床流水号
|
row && row.组件流水号 ? this.groupNumValue = row.组件流水号 : this.groupNumValue
|
||||||
this.groupNumValue = row.组件流水号
|
row && row.总数量 ? this.outNumber = row.总数量 : this.outNumber
|
||||||
this.outNumber = row.总数量
|
|
||||||
if (this.materialNum) {
|
if (this.materialNum) {
|
||||||
searchStockNumber(this.materialNum).then(res => {
|
searchStockNumber(this.materialNum).then(res => {
|
||||||
this.StockNumberTable = res.data
|
this.StockNumberTable = res.data
|
||||||
@@ -356,6 +356,9 @@ export default {
|
|||||||
this.$refs['form1'].resetFields()
|
this.$refs['form1'].resetFields()
|
||||||
}
|
}
|
||||||
this.form1.machineValue = this.machineValue
|
this.form1.machineValue = this.machineValue
|
||||||
|
this.locationNum = row.货位流水号
|
||||||
|
this.form1.outNumber = this.outNumber
|
||||||
|
this.form1.personValue = Number(this.id)
|
||||||
this.group = []
|
this.group = []
|
||||||
this.form1.groupNumValue = ''
|
this.form1.groupNumValue = ''
|
||||||
searchgroup(this.form1.machineValue).then(response => {
|
searchgroup(this.form1.machineValue).then(response => {
|
||||||
@@ -367,8 +370,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.form1.groupNumValue = this.groupNumValue
|
this.form1.groupNumValue = this.groupNumValue
|
||||||
this.form1.outNumber = this.outNumber
|
|
||||||
this.form1.personValue = Number(this.id)
|
|
||||||
this.dialogFormVisible1 = true
|
this.dialogFormVisible1 = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -377,7 +378,9 @@ export default {
|
|||||||
this.$refs['form1'].validate((valid) => {
|
this.$refs['form1'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// 出库数量,出库人,基本件流水号/标准件和外购件流水号 => 记录到一个新表
|
// 出库数量,出库人,基本件流水号/标准件和外购件流水号 => 记录到一个新表
|
||||||
submitOutStore(this.form1.outNumber, this.form1.personValue, this.basePartNum, this.parchasePartNum).then(response => {
|
// 物料流水号,货位流水号,出库数量 => 剪掉货位物料数
|
||||||
|
console.log(this.materialNum, this.locationNum)
|
||||||
|
submitOutStore(this.materialNum, this.locationNum, this.form1.outNumber, this.form1.personValue, this.basePartNum, this.parchasePartNum).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('出库成功')
|
this.$message.success('出库成功')
|
||||||
this.dialogFormVisible1 = false
|
this.dialogFormVisible1 = false
|
||||||
|
|||||||
Reference in New Issue
Block a user