fix:半成品和成品检验提交之前不合格计算
This commit is contained in:
parent
d0fef8aa15
commit
5518f090d6
|
@ -820,6 +820,7 @@ export default {
|
|||
this.form.count_n_dxt = 0;
|
||||
this.form.count_n_js = 0;
|
||||
this.form.count_n_qx = 0;
|
||||
this.form.count_n_hs = 0;
|
||||
this.form.count_n_ysq = 0;
|
||||
this.form.count_n_zz = 0;
|
||||
this.form.count_n_b = 0;
|
||||
|
@ -860,7 +861,8 @@ export default {
|
|||
getUserList() {
|
||||
let that = this;
|
||||
this.$API.system.user.list
|
||||
.req({ page: 0, belong_dept__name: "检验管理部" })
|
||||
// .req({ page: 0, belong_dept__name: "检验管理部" })
|
||||
.req({ page: 0 })
|
||||
.then((res) => {
|
||||
that.userList = res;
|
||||
});
|
||||
|
@ -900,6 +902,7 @@ export default {
|
|||
this.form.count_n_dxt +
|
||||
this.form.count_n_js +
|
||||
this.form.count_n_qx +
|
||||
this.form.count_n_hs +
|
||||
this.form.count_n_ysq +
|
||||
this.form.count_n_zz +
|
||||
this.form.count_n_b +
|
||||
|
@ -932,6 +935,49 @@ export default {
|
|||
//提交
|
||||
submit() {
|
||||
let that = this;
|
||||
if (
|
||||
(that.type == "do_in" && that.cate == "halfgood") ||
|
||||
that.type == "other_in"
|
||||
) {
|
||||
this.form.count_notok =
|
||||
this.form.count_n_zw +
|
||||
this.form.count_n_tw +
|
||||
this.form.count_n_qp +
|
||||
this.form.count_n_wq +
|
||||
this.form.count_n_dl +
|
||||
this.form.count_n_pb +
|
||||
this.form.count_n_dxt +
|
||||
this.form.count_n_js +
|
||||
this.form.count_n_qx +
|
||||
this.form.count_n_hs +
|
||||
this.form.count_n_ysq +
|
||||
this.form.count_n_zz +
|
||||
this.form.count_n_b +
|
||||
this.form.count_n_qt;
|
||||
}
|
||||
if (that.type == "do_in" && that.cate == "good") {
|
||||
this.form.count_notok =
|
||||
this.form.count_n_hs +
|
||||
this.form.count_n_zs +
|
||||
this.form.count_n_zz +
|
||||
this.form.count_n_tw +
|
||||
this.form.count_n_d +
|
||||
this.form.count_n_zdd +
|
||||
//棒
|
||||
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_qx +
|
||||
this.form.count_n_js +
|
||||
this.form.count_n_tydu +
|
||||
this.form.count_n_sw +
|
||||
this.form.count_n_bhpcd +
|
||||
this.form.count_n_w;
|
||||
}
|
||||
that.$refs.dialogForm.validate(async (valid) => {
|
||||
if (valid) {
|
||||
that.isSaveing = true;
|
||||
|
|
Loading…
Reference in New Issue