fix:禅道166
This commit is contained in:
parent
fb428464c2
commit
30f677d119
|
|
@ -86,9 +86,11 @@
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
:min="0"
|
:min="0"
|
||||||
:step="1"
|
:step="1"
|
||||||
|
:max="count_cando"
|
||||||
:step-strictly="true"
|
:step-strictly="true"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
placeholder="请输入领用数量"
|
placeholder="请输入领用数量"
|
||||||
|
@change="countUseChange"
|
||||||
>
|
>
|
||||||
</el-input-number>
|
</el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -100,6 +102,7 @@
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
:min="0"
|
:min="0"
|
||||||
:step="1"
|
:step="1"
|
||||||
|
:max="form.count_use"
|
||||||
:step-strictly="true"
|
:step-strictly="true"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
placeholder="请输入加工数量"
|
placeholder="请输入加工数量"
|
||||||
|
|
@ -114,6 +117,7 @@
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
:min="0"
|
:min="0"
|
||||||
:step="1"
|
:step="1"
|
||||||
|
disabled="true"
|
||||||
:step-strictly="true"
|
:step-strictly="true"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
placeholder="请输入合格数"
|
placeholder="请输入合格数"
|
||||||
|
|
@ -586,6 +590,7 @@ export default {
|
||||||
|
|
||||||
handle_user: "",
|
handle_user: "",
|
||||||
},
|
},
|
||||||
|
count_cando:0,
|
||||||
mlogb: [],
|
mlogb: [],
|
||||||
userList: [],
|
userList: [],
|
||||||
batchOptions: [],
|
batchOptions: [],
|
||||||
|
|
@ -663,9 +668,31 @@ export default {
|
||||||
},
|
},
|
||||||
batchChange(){
|
batchChange(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.form.count_use = that.selectBatch.count_cando;
|
this.form.count_notok =
|
||||||
that.form.count_real = that.selectBatch.count_cando;
|
this.form.count_n_hs =
|
||||||
that.form.count_ok = that.selectBatch.count_cando;
|
this.form.count_n_cs =
|
||||||
|
this.form.count_n_zz =
|
||||||
|
this.form.count_n_tw =
|
||||||
|
this.form.count_n_zdd =
|
||||||
|
this.form.count_n_d =
|
||||||
|
this.form.count_n_dl =
|
||||||
|
this.form.count_n_qp =
|
||||||
|
this.form.count_n_bl =
|
||||||
|
this.form.count_n_hw =
|
||||||
|
this.form.count_n_yp =
|
||||||
|
this.form.count_n_bp =
|
||||||
|
this.form.count_n_sc =
|
||||||
|
this.form.count_n_zjd =
|
||||||
|
this.form.count_n_zjx =
|
||||||
|
this.form.count_n_qx =
|
||||||
|
this.form.count_n_js =
|
||||||
|
this.form.count_n_tydd =
|
||||||
|
this.form.count_n_sw =
|
||||||
|
this.form.count_n_bhpcd =
|
||||||
|
this.form.count_n_wq =
|
||||||
|
this.form.count_n_qt =
|
||||||
|
this.form.count_n_zw = 0;
|
||||||
|
that.count_cando = that.form.count_use = that.form.count_real = that.form.count_ok = that.selectBatch.count_cando;
|
||||||
},
|
},
|
||||||
//获取车间物料批次号
|
//获取车间物料批次号
|
||||||
getBatchs() {
|
getBatchs() {
|
||||||
|
|
@ -699,6 +726,12 @@ export default {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
countUseChange(){
|
||||||
|
if(this.form.count_real>this.form.count_use){
|
||||||
|
this.form.count_real = this.form.count_use;
|
||||||
|
this.count_ok = this.form.count_real - this.form.count_notok;
|
||||||
|
}
|
||||||
|
},
|
||||||
countNotOkSun() {
|
countNotOkSun() {
|
||||||
this.form.count_notok =
|
this.form.count_notok =
|
||||||
Number(this.form.count_n_hs) +
|
Number(this.form.count_n_hs) +
|
||||||
|
|
@ -724,7 +757,7 @@ export default {
|
||||||
Number(this.form.count_n_wq) +
|
Number(this.form.count_n_wq) +
|
||||||
Number(this.form.count_n_qt) +
|
Number(this.form.count_n_qt) +
|
||||||
Number(this.form.count_n_zw);
|
Number(this.form.count_n_zw);
|
||||||
this.form.count_real = this.form.count_use-this.form.count_notok;
|
this.form.count_ok = this.form.count_real-this.form.count_notok;
|
||||||
},
|
},
|
||||||
//提交
|
//提交
|
||||||
submit() {
|
submit() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue