Commit de945359 authored by 田翔's avatar 田翔

fix: 关联表单映射字段查询添加的字段

parent 4650de1d
{
"name": "panda-xform",
"version": "2.8.2",
"description": "2.8.2: 附件列表情况下下载图标为黑色,坐标类控件无值情况不允许点开",
"version": "2.8.3",
"description": "2.8.3: 关联表单映射字段查询添加的字段",
"keywords": [
"panda-xform"
],
......
......@@ -300,6 +300,14 @@ export function QueryFields(accountName) {
})
}
//获取台账添加字段
export function QueryAddFields(accountName) {
return request({
url: `/PandaOMS/OMS/WorkOrderCenter/GetCMLedger_QueryAddFields${accountName ? `?accountName=${accountName}` : ''}`,
method: 'get'
})
}
//获取表字段
export function LoadTableFields(paramas) {
return request({
......
......@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react'
import { Form, Space, TreeSelect, Button, Input, Modal, message } from 'antd'
import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons'
import styles from './index.less'
import { ReloadTableFields, QueryFields } from '../../../../../apis/process'
import { ReloadTableFields, QueryFields, QueryAddFields } from '../../../../../apis/process'
import Drag from '../../../../components/Drag'
const { TreeNode } = TreeSelect
......@@ -20,7 +20,7 @@ const MappedField = (props) => {
if (!accountName) {
message.info('请选择台账名称')
}
const req1 = QueryFields(accountName)
const req1 = QueryAddFields(accountName)
const req2 = ReloadTableFields({ tableName: tableNameParent })
const [res1, res2] = await Promise.all([req1, req2])
if (res1.code === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment