zs 7 miesięcy temu
rodzic
commit
a754252302

+ 6 - 3
src/views/information/parts/platform/match.vue

@@ -173,6 +173,7 @@ const dictDataStore = DictDataStore()
 const tagsStore = TagsStore()
 const sectorStore = SectorStore()
 const processStore = ProcessStore()
+const match_id = ref('')
 const data = ref([])
 const searchForm = ref({})
 const fields = [
@@ -398,9 +399,10 @@ const toSave = async () => {
   if (get(data, 'id')) res = await store.update({ ...data, ...other })
   else res = await store.create({ ...data, ...other })
   if ($checkRes(res, true)) {
-    toProcessSave()
-    search({ skip, limit })
-    toClose()
+    if (res.data.id) match_id.value = res.data.id
+    await toProcessSave()
+    await search({ skip, limit })
+    await toClose()
   }
 }
 // 审核
@@ -437,6 +439,7 @@ const toProcessSave = async () => {
   for (const val of processList.value) {
     const data = cloneDeep(val)
     delete data.sid
+    if (!val.match) val.match = match_id.value
     if (get(data, 'id')) await processStore.update(data)
     else await processStore.create(data)
   }

+ 1 - 1
src/views/user/parts/user/state.vue

@@ -16,7 +16,7 @@
       <el-row :gutter="20">
         <el-col :span="12">
           <el-form-item label="负责人电话" prop="person_phone">
-            <el-input clearable v-model="form.person_phone" placeholder="请输入负责人电话" />
+            <el-input clearable v-model="form.person_phone" place holder="请输入负责人电话" />
           </el-form-item>
         </el-col>
         <el-col :span="12">