diff --git a/src/views/mes/qc/ipqc/index.vue b/src/views/mes/qc/ipqc/index.vue index 48a9327..53f8e85 100644 --- a/src/views/mes/qc/ipqc/index.vue +++ b/src/views/mes/qc/ipqc/index.vue @@ -610,19 +610,23 @@ export default { }, /** 提交按钮 */ submitForm() { + console.log('测试新增') this.$refs["form"].validate(valid => { if (valid) { + console.log('------111----') if (this.form.ipqcId != null) { + console.log('----22222-----') updateIpqc(this.form).then(response => { this.$modal.msgSuccess("修改成功"); - //this.open = false; + this.open = false; this.getList(); }); } else { + console.log('-----3333-----') addIpqc(this.form).then(response => { this.$modal.msgSuccess("新增成功"); this.form.ipqcId = response.data; //将返回的ID保存 - //this.open = false; + this.open = false; this.getList(); }); } @@ -660,7 +664,7 @@ export default { }, /** 导出按钮操作 */ handleExport() { - this.download('qc/ipqc/export', { + this.download('mes/qc/ipqc/export', { ...this.queryParams }, `ipqc_${new Date().getTime()}.xlsx`) },