408249787 2 年之前
父节点
当前提交
e41147330f
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/repair/application-form/modules/BaseOutForm.vue

+ 5 - 1
src/views/repair/application-form/modules/BaseOutForm.vue

@@ -11,6 +11,7 @@
 
       <a-form-item v-show="false" >
         <a-input v-decorator="['id']" type="hidden"/>
+        <a-input v-decorator="['sbId']" type="hidden"/>
       </a-form-item>
 
       <row-list :col="2">
@@ -121,6 +122,7 @@ export default {
   },
   methods: {
     base (record, mainForm = {}) {
+      console.log(mainForm)
       this.visible = true
       // 如果是空标识添加
       const { form: { setFieldsValue } } = this
@@ -129,7 +131,8 @@ export default {
         if (mainForm != null && mainForm.id != null) {
           this.$nextTick(() => {
             setFieldsValue({
-              id: mainForm.id
+              id: mainForm.id,
+              sbId: mainForm.sbId
             })
           })
         }
@@ -170,6 +173,7 @@ export default {
           this.confirmLoading = false
           return
         }
+        console.log(values)
         values.type = 2
         if (this.BaseTool.String.isBlank(values.id)) {
           addRepairApplicationForm(values)