From 980a5556086c9200d01fb688dc18e363ea33bd97 Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Wed, 8 Apr 2020 14:17:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E5=8D=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Outsourcing/OutFactoryMaintenance/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/Outsourcing/OutFactoryMaintenance/index.vue b/src/views/Outsourcing/OutFactoryMaintenance/index.vue index 4cad0a37..5837582c 100644 --- a/src/views/Outsourcing/OutFactoryMaintenance/index.vue +++ b/src/views/Outsourcing/OutFactoryMaintenance/index.vue @@ -109,7 +109,7 @@ @@ -121,6 +121,7 @@ import { searchtable, edittype, handlechange, handledelete } from '@/api/Outsour export default { data() { return { + editType1_disable: false, loading0: false, count1: 0, count2: 0, // 清表单验证计数器 @@ -270,10 +271,12 @@ export default { this.form.EquipmentCondition = '' this.form.ManufacturerAbbreviation = '' this.form.attention = '' + this.editType1_disable = false this.dialogFormVisible = true }, // 增加确定 editType() { + this.editType1_disable = true edittype(this.form.ManufacturerNumber, this.form.ManufacturerName, this.form.ManufacturerAbbreviation, this.form.address, this.form.roleName, this.form.phNumber, this.form.Fax, this.form.Remarks, this.form.category, this.form.attention, this.form.EquipmentCondition).then(response => { if (response.data[0].result === '1') { this.$notify({ @@ -285,6 +288,7 @@ export default { this.pageSize = 50 this.searchTable() } else { + this.editType1_disable = false this.$message.error('信息增加失败') } }) @@ -307,12 +311,14 @@ export default { this.form.EquipmentCondition = row.设备情况 this.form.ManufacturerAbbreviation = row.外协厂家简称 this.form.attention = row.关注 - this.dialogFormVisible = true this.title1 = '编辑外协厂家' this.CoManufacturerFlowNumber1 = row.外协厂家流水号 + this.editType1_disable = false + this.dialogFormVisible = true }, // 编辑确定 handleChange() { + this.editType1_disable = true handlechange(this.CoManufacturerFlowNumber1, this.form.ManufacturerNumber, this.form.ManufacturerName, this.form.ManufacturerAbbreviation, this.form.address, this.form.roleName, this.form.phNumber, this.form.Fax, this.form.Remarks, this.form.category, this.form.attention, this.form.EquipmentCondition).then(response => { if (response.data[0].result === '1') { this.$notify({ @@ -322,6 +328,7 @@ export default { }) this.searchTable() } else { + this.editType1_disable = false this.$message.error('信息修改失败') } })