This commit is contained in:
lcw
2025-12-10 21:46:34 +08:00
parent ab73675b23
commit a19d69453f
55 changed files with 1124 additions and 225 deletions

View File

@ -22,6 +22,9 @@ import { onMounted, reactive, watch, ref } from 'vue'
import FormMessage from "@/components/aboutTable/FormMessage.vue";
import { ElMessage } from 'element-plus'
import { qbcjCzzt, qbcjCzztEdit } from "@/api/qbcj.js"
import { xxcjAddBc,xxcjUpdateBc } from "@/api/xxcj.js"
const props = defineProps({
modelValue: {
type: Boolean,
@ -91,18 +94,20 @@ const formData = ref([
])
const submit = () => {
elform.value.submit((val) => {
const promes = {
xsid: props.dataList.id,
let promes = {
qbid: props.dataList.id,
...listQuery.value
}
if (props.updeteBool) {
qbcjCzztEdit(promes).then(res => {
promes.czlx=props.title=='信息追加'?'02':'01'
xxcjUpdateBc(promes).then(res => {
ElMessage.success('修改成功')
close()
emit('getqbcjCzztList')
})
} else {
qbcjCzzt(promes).then(res => {
promes.czlx=props.title=='信息追加'?'02':'01'
xxcjAddBc(promes).then(res => {
ElMessage.success('新增成功')
close()
})