Commit 23623161 authored by 涂伟's avatar 涂伟

feat: '新增建始物资盘存辅助视图'

parent b3f51977
......@@ -6,19 +6,19 @@ import MobileParmarModal from '../../../../workFlow/flowNode/flowNodeComponents/
const WebPages = [
{
lable: 'FeedbackAccount:工单反馈标准视图',
lable: 'FeedbackAccount:工单反馈',
value: 'FeedbackAccount',
type: '标准',
color: 'blue',
},
{
lable: 'GisGatherProjectView:管网采集辅助视图',
lable: 'GisGatherProjectView:管网采集',
value: 'GisGatherProjectView',
type: '专用',
color: 'purple',
},
{
lable: 'CRMProductDetailView:CRM产品调拨辅助视图',
lable: 'CRMProductDetailView:CRM产品调拨',
value: 'CRMProductDetailView',
type: '专用',
color: 'purple',
......@@ -35,6 +35,12 @@ const WebPages = [
type: '专用',
color: 'purple',
},
{
lable: 'InventoryMaterials:物资盘存',
value: 'InventoryMaterials',
type: '专用',
color: 'purple',
},
];
const { Option } = Select;
......@@ -58,7 +64,9 @@ const AddView = props => {
}, [visible]);
// 获取表单回显
const getFormData = () => {
if (msg.WebPage === 'GisGatherProjectView' && msg.WebParam) {
console.log(msg, 'msgmsgmsgmsg');
if ((msg.WebPage === 'GisGatherProjectView' || msg.WebPage === 'InventoryMaterials') && msg.WebParam) {
if (!Array.isArray(msg.WebParam)) {
msg.WebParam = msg.WebParam?.split(',');
}
......@@ -71,7 +79,7 @@ const AddView = props => {
const onFinish = () => {
form.validateFields().then(validate => {
if (validate) {
if (validate.WebPage === 'GisGatherProjectView' && validate.WebParam) {
if ((validate.WebPage === 'GisGatherProjectView' || validate.WebPage === 'InventoryMaterials') && validate.WebParam) {
validate.WebParam = validate.WebParam.toString();
}
let obj = {};
......@@ -80,6 +88,8 @@ const AddView = props => {
} else {
obj = { ...validate, key: msg.key };
}
console.log(obj, 'objobjobjobjobj');
onSubumit(obj, modalType);
}
});
......@@ -104,7 +114,7 @@ const AddView = props => {
};
return (
<Modal
title="流程节点辅助视图配置"
title="流程节点辅助视图配置2"
width={600}
visible={visible}
onOk={onFinish}
......@@ -162,6 +172,21 @@ const AddView = props => {
))}
</Select>
</Form.Item>
<Form.Item
label="视图参数"
name="WebParam"
style={{
display: form.getFieldValue('WebPage') === 'InventoryMaterials' ? 'flex' : 'none',
}}
>
<Select placeholder="选择视图参数" showSearch mode="multiple">
{['edit'].map((item, index) => (
<Option key={index} value={item}>
{item}
</Option>
))}
</Select>
</Form.Item>
<Form.Item label="手持标签" name="MobileLabel">
<Input placeholder="请输入手持标签" />
</Form.Item>
......
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