This commit is contained in:
zds
2022-11-22 20:01:47 +08:00
parent dc910c9a35
commit ac9b5a8835
10 changed files with 123 additions and 48 deletions

View File

@@ -4,6 +4,7 @@
:visible.sync="dialogVisible"
:show-close="false"
@close="close"
@open="open"
>
<span slot="title" class="dialog-footer">
<div class="crud-opts2">
@@ -173,11 +174,13 @@ export default {
workorder.getDepts().then(res => {
this.Depts = res
})
producetask.getDevices().then(res => {
this.Devices = res
})
},
methods: {
open() {
producetask.getDevices({ product_series_id: this.form.product_series}).then(res => {
this.Devices = res
})
},
close() {
this.$emit('update:dialogShow', false)
this.form = {}
@@ -185,7 +188,6 @@ export default {
},
submit() {
producetask.submit3(this.form).then(res => {
debugger
this.$emit('update:dialogShow', false)
this.form = {}
this.$emit('AddChanged')