This commit is contained in:
Vergil
2020-04-08 17:53:36 +08:00
parent c94a5d21d1
commit e9c515bb8f
4 changed files with 46 additions and 18 deletions

View File

@@ -379,7 +379,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="callOff('form10')">取消</el-button>
<el-button type="primary" @click="submit10('form10')">确定</el-button>
<el-button :disabled="openUrgentItem_disable" type="primary" @click="submit10('form10')">确定</el-button>
</div>
</el-dialog>
@@ -394,6 +394,7 @@ import Cookie from 'js-cookie'
export default {
data() {
return {
openUrgentItem_disable: false,
checked_hebing: true,
checked_UrgentItem: false,
UrgentItem: 0,
@@ -619,6 +620,7 @@ export default {
if (this.$refs['form10'] !== undefined) {
this.$refs['form10'].resetFields()
}
this.openUrgentItem_disable = false
this.dialogFormVisible10 = true
},
typeChange() {
@@ -705,11 +707,13 @@ export default {
submit10(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.openUrgentItem_disable = true
addUrgentItem(this.form10.机床号, this.form10.组号, this.form10.零件图号, this.form10.零件名称, this.form10.规格, this.form10.零件数量, this.form10.零件备注, this.id, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time).then(response => {
if (response.data[0].result === '1') {
this.$message.success('添加成功')
this.dialogFormVisible10 = false
} else {
this.openUrgentItem_disable = false
this.$message.error('添加失败')
}
})