外协
This commit is contained in:
@@ -109,7 +109,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="callOff('form')">取消</el-button>
|
<el-button @click="callOff('form')">取消</el-button>
|
||||||
<el-button type="primary" @click="submit('form')" >确定</el-button>
|
<el-button :disabled="editType1_disable" type="primary" @click="submit('form')" >确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
@@ -121,6 +121,7 @@ import { searchtable, edittype, handlechange, handledelete } from '@/api/Outsour
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
editType1_disable: false,
|
||||||
loading0: false,
|
loading0: false,
|
||||||
count1: 0,
|
count1: 0,
|
||||||
count2: 0, // 清表单验证计数器
|
count2: 0, // 清表单验证计数器
|
||||||
@@ -270,10 +271,12 @@ export default {
|
|||||||
this.form.EquipmentCondition = ''
|
this.form.EquipmentCondition = ''
|
||||||
this.form.ManufacturerAbbreviation = ''
|
this.form.ManufacturerAbbreviation = ''
|
||||||
this.form.attention = ''
|
this.form.attention = ''
|
||||||
|
this.editType1_disable = false
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
},
|
},
|
||||||
// 增加确定
|
// 增加确定
|
||||||
editType() {
|
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 => {
|
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') {
|
if (response.data[0].result === '1') {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
@@ -285,6 +288,7 @@ export default {
|
|||||||
this.pageSize = 50
|
this.pageSize = 50
|
||||||
this.searchTable()
|
this.searchTable()
|
||||||
} else {
|
} else {
|
||||||
|
this.editType1_disable = false
|
||||||
this.$message.error('信息增加失败')
|
this.$message.error('信息增加失败')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -307,12 +311,14 @@ export default {
|
|||||||
this.form.EquipmentCondition = row.设备情况
|
this.form.EquipmentCondition = row.设备情况
|
||||||
this.form.ManufacturerAbbreviation = row.外协厂家简称
|
this.form.ManufacturerAbbreviation = row.外协厂家简称
|
||||||
this.form.attention = row.关注
|
this.form.attention = row.关注
|
||||||
this.dialogFormVisible = true
|
|
||||||
this.title1 = '编辑外协厂家'
|
this.title1 = '编辑外协厂家'
|
||||||
this.CoManufacturerFlowNumber1 = row.外协厂家流水号
|
this.CoManufacturerFlowNumber1 = row.外协厂家流水号
|
||||||
|
this.editType1_disable = false
|
||||||
|
this.dialogFormVisible = true
|
||||||
},
|
},
|
||||||
// 编辑确定
|
// 编辑确定
|
||||||
handleChange() {
|
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 => {
|
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') {
|
if (response.data[0].result === '1') {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
@@ -322,6 +328,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.searchTable()
|
this.searchTable()
|
||||||
} else {
|
} else {
|
||||||
|
this.editType1_disable = false
|
||||||
this.$message.error('信息修改失败')
|
this.$message.error('信息修改失败')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user