fix:fmlog日志中编辑mlog时取消领料数量不能大于当前工段库存数的限制,且合格不合格禁用
This commit is contained in:
parent
9734d461cf
commit
6f717b03ec
|
@ -131,8 +131,7 @@
|
||||||
<el-form-item label="领用数量">
|
<el-form-item label="领用数量">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form.count_use"
|
v-model="form.count_use"
|
||||||
:min="1"
|
:min="0"
|
||||||
:max="materialCount"
|
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
class="width100"
|
class="width100"
|
||||||
@change = "countUseChange"
|
@change = "countUseChange"
|
||||||
|
@ -159,14 +158,13 @@
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
<!-- countChanges -->
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="合格数量">
|
<el-form-item label="合格数量">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form.count_ok"
|
v-model="form.count_ok"
|
||||||
:min="0"
|
disabled
|
||||||
class="width100"
|
class="width100"
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
/>
|
/>
|
||||||
|
@ -176,9 +174,8 @@
|
||||||
<el-form-item label="不合格数量">
|
<el-form-item label="不合格数量">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form.count_notok"
|
v-model="form.count_notok"
|
||||||
:min="0"
|
disabled
|
||||||
class="width100"
|
class="width100"
|
||||||
@change="countChanges"
|
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -397,7 +394,7 @@ export default {
|
||||||
work_end_time:[{required: true,message: "请选择生产开始时间",trigger: "blur",},],
|
work_end_time:[{required: true,message: "请选择生产开始时间",trigger: "blur",},],
|
||||||
route: [{required: true,message: "请选择工艺路线",trigger: "blur",},]
|
route: [{required: true,message: "请选择工艺路线",trigger: "blur",},]
|
||||||
},
|
},
|
||||||
materialCount:1,
|
materialCount:1,//领料批次现有库存数
|
||||||
material_in:'',
|
material_in:'',
|
||||||
material_out:'',
|
material_out:'',
|
||||||
shiftOtions:[],
|
shiftOtions:[],
|
||||||
|
@ -475,8 +472,21 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.materialOptions.forEach(item=>{
|
that.materialOptions.forEach(item=>{
|
||||||
if(item.id == val){
|
if(item.id == val){
|
||||||
that.materialCount = item.count;
|
that.form.count_n_hs =
|
||||||
that.form.count_use = item.count;
|
that.form.count_n_qp =
|
||||||
|
that.form.count_n_swen =
|
||||||
|
that.form.count_n_bb =
|
||||||
|
that.form.count_n_xbb =
|
||||||
|
that.form.count_n_md =
|
||||||
|
that.form.count_n_xh =
|
||||||
|
that.form.count_n_ps =
|
||||||
|
that.form.count_n_zq =
|
||||||
|
that.form.count_n_qt =
|
||||||
|
that.form.count_n_wm=0;
|
||||||
|
that.materialCount =
|
||||||
|
that.form.count_use =
|
||||||
|
that.form.count_real =
|
||||||
|
that.form.count_ok = item.count;
|
||||||
that.form.count_real = item.count-that.form.count_pn_jgqbl;
|
that.form.count_real = item.count-that.form.count_pn_jgqbl;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -512,9 +522,9 @@ export default {
|
||||||
this.form.count_n_wm;
|
this.form.count_n_wm;
|
||||||
this.form.count_ok = this.form.count_real - this.form.count_notok;
|
this.form.count_ok = this.form.count_real - this.form.count_notok;
|
||||||
},
|
},
|
||||||
countChanges(){
|
// countChanges(){
|
||||||
this.form.count_ok = this.form.count_real - this.form.count_notok;
|
// this.form.count_ok = this.form.count_real - this.form.count_notok;
|
||||||
},
|
// },
|
||||||
//表单提交方法
|
//表单提交方法
|
||||||
submit() {
|
submit() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
Loading…
Reference in New Issue