更新仓库bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2023-08-01 13:52:10
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-11-04 16:24:41
|
||||
* @LastEditTime: 2023-11-20 15:14:00
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -68,7 +68,6 @@
|
||||
v-model="dataForm.goodsBatch"
|
||||
filterable
|
||||
clearable
|
||||
@change="setBatchInfo"
|
||||
placeholder="请选择物品名称">
|
||||
<el-option
|
||||
v-for="(item, index) in Batch"
|
||||
@@ -79,13 +78,12 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="入库数量" prop="numDet">
|
||||
<el-form-item :label="dataForm.id?'出库数量':'入库数量'" prop="numDet">
|
||||
<el-input-number
|
||||
v-model="dataForm.numDet"
|
||||
clearable
|
||||
:min="0"
|
||||
:max="max?max:9999999"
|
||||
placeholder="请输入入库数量" />
|
||||
placeholder="请输入数量" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -130,7 +128,6 @@ export default {
|
||||
},
|
||||
goodsArr: [],
|
||||
Batch: [],
|
||||
max: 0,
|
||||
dataRule: {
|
||||
goodsId: [
|
||||
{ required: true, message: '物品名称不能为空', trigger: 'change' },
|
||||
@@ -143,7 +140,7 @@ export default {
|
||||
},
|
||||
],
|
||||
numDet: [
|
||||
{ required: true, message: '入库数量不能为空', trigger: 'blur' },
|
||||
{ required: true, message: '数量不能为空', trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
};
|
||||
@@ -172,13 +169,6 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
setBatchInfo(){
|
||||
this.Batch.forEach((item) => {
|
||||
if (item.goodsBatch === this.dataForm.goodsBatch) {
|
||||
this.max = item.numDet
|
||||
}
|
||||
});
|
||||
},
|
||||
outWare(data) {
|
||||
this.getArr();
|
||||
this.visible = true;
|
||||
|
||||
Reference in New Issue
Block a user