This commit is contained in:
lcw
2026-02-05 17:17:25 +08:00
parent 872fcf7332
commit 323fcd25fe
7 changed files with 660 additions and 55 deletions

View File

@ -1,6 +1,8 @@
<template>
<div>
<el-dialog :model-value="modelValue" :destroy-on-close="true" :title="title" @close="close" :close-on-click-modal="true">
<el-dialog :model-value="modelValue" :destroy-on-close="true" :title="title" @close="close"
:close-on-click-modal="true">
{{ getData }}
<FormMessage v-model="listQuery" :formList="formData" labelWidth="120px" ref="elform" :rules="rules">
<template #chryList>
<el-input v-model="chryList" clearable placeholder="请选择参会人员" @click="isShowDialog = true"
@ -24,6 +26,7 @@ import { ref, reactive, computed, getCurrentInstance } from 'vue'
import FormMessage from "@/components/aboutTable/FormMessage.vue";
import ChooseUser from "@/components/ChooseList/ChooseUser/index.vue"
import { wshsAdd } from "@/api/huiShangyp/tacticalApi"
import { qcckGet, qcckPost } from "@/api/qcckApi.js"
const { proxy } = getCurrentInstance();
const props = defineProps({
modelValue: {
@ -58,9 +61,11 @@ const rules = reactive({
]
})
const getData = computed(() => {
console.log(props.dataList, "测试");
return {
glxsid: props.dataList.glzjjdbh || props.dataList.asjbh,
glxsmc: props.dataList.ajmc || props.dataList.bjrmc
glxsmc: props.dataList.ajmc ||props.dataList.bcjjnr|| props.dataList.bjrmc
}
})
const listQuery = ref({})
@ -80,17 +85,41 @@ const close = () => {
const submit = () => {
elform.value.submit((val) => {
if (val) {
const promes = {
...listQuery.value,
...getData.value
let url
switch (props.lx) {
case '01':
const dadta = {
...listQuery.value,
...getData.value,
lylx: props.lx
}
url = '/mosty-gsxt/lzJcjPjdb/createwWshs'
qcckPost(dadta, url).then(res => {
proxy.$message({
message: '添加成功',
type: 'success'
})
emits('update:modelValue', false)
})
break;
default:
const promes = {
...listQuery.value,
...getData.value
}
wshsAdd(promes).then(res => {
proxy.$message({
message: '添加成功',
type: 'success'
})
emits('update:modelValue', false)
})
break;
}
wshsAdd(promes).then(res => {
proxy.$message({
message: '添加成功',
type: 'success'
})
emits('update:modelValue', false)
})
}
})