二级库模块功能完善
This commit is contained in:
parent
6d93d570f5
commit
307bb01e5a
|
|
@ -51,6 +51,7 @@ public class SecondaryWarehouseServiceImpl implements SecondaryWarehouseService
|
|||
|
||||
@Override
|
||||
public List<TeamLeaseInfo> getRecords(TeamLeaseInfo bean) {
|
||||
// System.out.println(bean.getLeaseMan());
|
||||
return mapper.getNewRecords(bean);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</select>
|
||||
|
||||
<insert id="addNewOperate">
|
||||
insert into receive_detail (parent_id,type_id,out_num,out_time,type,out_name)
|
||||
values (#{id},#{typeId},#{outNum},now(),#{type},#{createBy});
|
||||
insert into receive_detail (parent_id,type_id,out_num,out_time,type,out_name,pick_name)
|
||||
values (#{id},#{typeId},#{outNum},now(),#{type},#{createBy},#{leaseMan});
|
||||
</insert>
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -317,7 +317,11 @@
|
|||
</el-form-item>
|
||||
|
||||
<el-form-item label="出库数量" prop="outNum">
|
||||
<el-input v-model="form.outNum" placeholder="请输入出库数量" maxlength="20" />
|
||||
<el-input
|
||||
v-model="form.outNum"
|
||||
placeholder="请输入出库数量"
|
||||
maxlength="20"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="班组名称" prop="teamName">
|
||||
<el-input
|
||||
|
|
@ -378,6 +382,12 @@
|
|||
disabled
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="领用数量" prop="ckNum">
|
||||
<el-input
|
||||
v-model="nform.ckNum"
|
||||
disabled
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="已出库数量" prop="ckNum">
|
||||
<el-input v-model="nform.ckNum" disabled />
|
||||
</el-form-item>-->
|
||||
|
|
@ -795,7 +805,7 @@ export default {
|
|||
this.$set(this.nform, 'typeName', row.typeName)
|
||||
this.$set(this.nform, 'modelName', row.modelName)
|
||||
|
||||
this.$set(this.nform, 'ckNum', row.ckNum)
|
||||
this.$set(this.nform, 'ckNum', row.receiveNum)
|
||||
this.openIn = true
|
||||
this.title = '退库'
|
||||
},
|
||||
|
|
@ -805,7 +815,7 @@ export default {
|
|||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (
|
||||
parseInt(this.form.num) > parseInt(this.form.kcNum)
|
||||
parseInt(this.form.outNum) > parseInt(this.form.zkNum)
|
||||
) {
|
||||
this.$message.error('出库数量不可大于在库数量')
|
||||
return
|
||||
|
|
@ -826,10 +836,10 @@ export default {
|
|||
this.$refs['nform'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (
|
||||
parseInt(this.nform.num) >
|
||||
parseInt(this.nform.outNum) >
|
||||
parseInt(this.nform.ckNum)
|
||||
) {
|
||||
this.$message.error('退库数量不可大于出库数量')
|
||||
this.$message.error('退库数量不可大于领用数量')
|
||||
return
|
||||
}
|
||||
let param = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue