Commit 23623161 authored by 涂伟's avatar 涂伟

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

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