diff --git a/src/views/mes/qc/ipqc/index.vue b/src/views/mes/qc/ipqc/index.vue index 934e161..68aacdf 100644 --- a/src/views/mes/qc/ipqc/index.vue +++ b/src/views/mes/qc/ipqc/index.vue @@ -639,7 +639,7 @@ export default { this.$refs["form"].validate(valid => { if (valid) { this.$modal.confirm('是否完成检验单编制?【完成后将不能更改】').then(function(){ - that.form.status = 'CONFIRMED'; + that.form.status = 'FINISHED'; that.submitForm(); that.open = false; }); diff --git a/src/views/mes/wm/productrecpt/index.vue b/src/views/mes/wm/productrecpt/index.vue index 0834df5..b4bc749 100644 --- a/src/views/mes/wm/productrecpt/index.vue +++ b/src/views/mes/wm/productrecpt/index.vue @@ -87,7 +87,15 @@ - + + + @@ -389,6 +397,7 @@ export default { this.reset(); this.open = true; this.title = "添加产品入库单"; + this.optType = 'add' }, /** 修改按钮操作 */ handleUpdate(row) { @@ -398,6 +407,18 @@ export default { this.form = response.data; this.open = true; this.title = "修改产品入库单"; + this.optType = 'edit' + }); + }, + /** 查看单据 */ + handleView(row) { + this.reset(); + const recptId = row.recptId || this.ids + getProductrecpt(recptId).then(response => { + this.form = response.data; + this.open = true; + this.title = "查看产品入库单"; + this.optType = 'view' }); }, //执行入库