|
@@ -1,5 +1,5 @@
|
|
|
<script setup>
|
|
|
-import { reactive, ref } from 'vue'
|
|
|
+import { reactive, ref,watch } from 'vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { customInterence, ficcManageInterface } from "@/api/api.js";
|
|
|
import $ from 'jquery';
|
|
@@ -28,6 +28,18 @@ const formRule = {
|
|
|
{ required: true, message: "请选择是否为决策人", trigger: "change" },
|
|
|
],
|
|
|
}
|
|
|
+
|
|
|
+watch(() => props.isShow,
|
|
|
+ (newval) => {
|
|
|
+ if(!newval) return
|
|
|
+
|
|
|
+ userForm.id = props.item.UserId;
|
|
|
+ userForm.name = props.item.RealName;
|
|
|
+ userForm.mobile = props.item.Mobile;
|
|
|
+ userForm.mail = props.item.Email;
|
|
|
+ }
|
|
|
+)
|
|
|
+
|
|
|
const userForm = reactive({
|
|
|
id: "",
|
|
|
type: "",
|
|
@@ -81,7 +93,7 @@ function saveHandle() {
|
|
|
SellerId:Number(SellerId),
|
|
|
Sex:Number(userForm.sex),
|
|
|
UserId: Number(userForm.id),
|
|
|
- ApplyRecordId: Number(item.ApplyRecordId),
|
|
|
+ ApplyRecordId: Number(props.item.ApplyRecordId),
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret === 200) {
|