diff --git a/src/views/wpm/mlog6_form.vue b/src/views/wpm/mlog6_form.vue
index 364abe04..5b93a337 100644
--- a/src/views/wpm/mlog6_form.vue
+++ b/src/views/wpm/mlog6_form.vue
@@ -21,20 +21,22 @@
v-if="mode == 'edit'"
v-model="form.batch"
>
-
-
-
+
+
+
+
@@ -598,13 +600,19 @@ export default {
leader_name: "",
count_n_all: null,
rules: {},
+ selectBatch:{},
+ params:{
+ material__in: this.material_in,
+ belong_dept__name: "6车间"
+ },
+ apiObj:this.$API.wpm.wmaterial.list,
};
},
mounted() {
- this.getBatchs();
+ // this.getBatchs();
this.getUserList();
this.getEquipment();
- this.getWMaterial();
+ // this.getWMaterial();
this.getShiftOptions();
this.form.material_out = this.material_out;
this.form.handle_date = this.handle_date;
@@ -653,6 +661,12 @@ export default {
}
});
},
+ batchChange(){
+ let that = this;
+ that.form.count_use = that.selectBatch.count_cando;
+ that.form.count_real = that.selectBatch.count_cando;
+ that.form.count_ok = that.selectBatch.count_cando;
+ },
//获取车间物料批次号
getBatchs() {
let that = this;
@@ -710,6 +724,7 @@ export default {
Number(this.form.count_n_wq) +
Number(this.form.count_n_qt) +
Number(this.form.count_n_zw);
+ this.form.count_real = this.form.count_use-this.form.count_notok;
},
//提交
submit() {