|
|
|
@ -22,6 +22,10 @@ export default { |
|
|
|
type: String, |
|
|
|
type: String, |
|
|
|
default: '', |
|
|
|
default: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
rowItem:{ |
|
|
|
|
|
|
|
type: Object, |
|
|
|
|
|
|
|
default: () => ({}) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -78,17 +82,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.openShow = this.showDialog; |
|
|
|
this.openShow = this.showDialog; |
|
|
|
// this.getWorkOrderByCardNo() |
|
|
|
this.form = this.rowItem |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getWorkOrderByCardNo() { |
|
|
|
|
|
|
|
getWorkOrderByCardNo({ |
|
|
|
|
|
|
|
cardNo: this.cardNo, |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
console.log(res, 'res'); |
|
|
|
|
|
|
|
this.form = res.data.data; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
closeDialog(type) { |
|
|
|
closeDialog(type) { |
|
|
|
this.openShow = false; |
|
|
|
this.openShow = false; |
|
|
|
this.$emit('closeDialog', type); |
|
|
|
this.$emit('closeDialog', type); |
|
|
|
@ -105,9 +102,11 @@ export default { |
|
|
|
done(); |
|
|
|
done(); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catvh(err => { |
|
|
|
.catvh(err => { |
|
|
|
|
|
|
|
this.closeDialog(true); |
|
|
|
this.saveLoading = false; |
|
|
|
this.saveLoading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
this.closeDialog(true); |
|
|
|
console.log('error submit!!'); |
|
|
|
console.log('error submit!!'); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|