a
This commit is contained in:
@@ -157,7 +157,7 @@
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="callOff('form')">取消</el-button>
|
||||
<el-button type="primary" @click="submit('form')">确 定</el-button>
|
||||
<el-button :disabled="ADD_disable" type="primary" @click="submit('form')">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog v-el-drag-dialog :title="title1" :visible.sync="dialogFormVisible2" center style="min-height: 300px" width="450px">
|
||||
@@ -177,7 +177,7 @@
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="callOff2('form1')">取消</el-button>
|
||||
<el-button type="primary" @click="submitMachine('form1')">确 定</el-button>
|
||||
<el-button :disabled="addMachine_disable" type="primary" @click="submitMachine('form1')">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@@ -193,6 +193,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
ADD_disable: false,
|
||||
addMachine_disable: false,
|
||||
contractNumber_check: '',
|
||||
contractNumber: '', // 合同编号
|
||||
entryName: [],
|
||||
@@ -344,6 +346,7 @@ export default {
|
||||
},
|
||||
ADD() {
|
||||
this.addForm('form')
|
||||
this.ADD_disable = false
|
||||
this.dialogFormVisible1 = true
|
||||
this.form.contractSigningDate = getNowTime()// new Date()
|
||||
this.temp = 1
|
||||
@@ -364,6 +367,7 @@ export default {
|
||||
})
|
||||
},
|
||||
addTableData1() {
|
||||
this.ADD_disable = true
|
||||
addList(this.form.EntryName, this.form.remark, this.form.contractSigningDate).then(response => {
|
||||
this.dialogFormVisible1 = false
|
||||
if (response.data[0].result === '1') {
|
||||
@@ -371,6 +375,7 @@ export default {
|
||||
this.title = ''
|
||||
this.fetchTableData1()
|
||||
} else {
|
||||
this.ADD_disable = false
|
||||
this.$message.error('添加失败')
|
||||
}
|
||||
})
|
||||
@@ -424,12 +429,14 @@ export default {
|
||||
},
|
||||
addMachine(row) {
|
||||
this.projectNum = row.项目流水号
|
||||
this.addMachine_disable = false
|
||||
this.dialogFormVisible2 = true
|
||||
this.title1 = '新增机床'
|
||||
this.addForm('form1')
|
||||
this.form1.项目名称 = row.项目名称
|
||||
},
|
||||
submitMachine() {
|
||||
this.addMachine_disable = true
|
||||
function a() {
|
||||
selectMachine(this.projectNum).then(response => {
|
||||
this.tableData2 = response.data
|
||||
@@ -438,8 +445,10 @@ export default {
|
||||
}
|
||||
if (this.flag === 1) {
|
||||
this.addTable(submitMachine, [this.projectNum, this.form1.设备型号, this.form1.设备名称, this.form1.机床数量], 'form1', a)
|
||||
this.addMachine_disable = false
|
||||
} else {
|
||||
this.editTable(editMachine, [this.c, this.form1.设备型号, this.form1.设备名称, this.form1.机床数量], 'form1', a)
|
||||
this.addMachine_disable = false
|
||||
}
|
||||
},
|
||||
deleteMachine(row) {
|
||||
|
||||
Reference in New Issue
Block a user