whj 1 year ago
parent
commit
91dfb3749d

+ 1 - 0
src/views/fill/task/modules/BaseForm.vue

@@ -320,6 +320,7 @@ export default {
           return item
         })
         console.log(this.ListForm)
+        this.model.sbIds = this.ListForm.map(item => item.sbId)
       })
     },
     uploadImg (val, i) {

+ 5 - 3
src/views/fill/task/modules/VerifyForm.vue

@@ -52,19 +52,20 @@ export default {
     return {
       confirmLoading: false,
       form: this.$form.createForm(this),
-      visible: false
+      visible: false,
+      modal: {}
       // 下拉框map
     }
   },
   created () {
-    this.getUser()
   },
   methods: {
     base (record) {
       this.visible = true
       const { form: { setFieldsValue } } = this
       // 日期处理
-
+      this.modal = record
+      console.log(record)
       this.$nextTick(() => {
         setFieldsValue(Object.assign(pick(record, [
           'id'
@@ -79,6 +80,7 @@ export default {
           this.confirmLoading = false
           return
         }
+        values.sbIds = this.modal.sbIds
         console.log(values)
         VerifyFillGatherTask(values).then(res => {
           this.$message.success('审核成功!')