AddModal.jsx 88.1 KB
Newer Older
1
/* eslint-disable react/jsx-boolean-value */
皮倩雯's avatar
皮倩雯 committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/* eslint-disable indent */
/* eslint-disable prettier/prettier */
/* eslint-disable prefer-promise-reject-errors */
/* eslint-disable block-scoped-var */
/* eslint-disable no-var */
/* eslint-disable vars-on-top */
/* eslint-disable no-plusplus */
/* eslint-disable no-array-constructor */
/* eslint-disable prefer-destructuring */
/* eslint-disable array-callback-return */
/* eslint-disable guard-for-in */
/* eslint-disable no-restricted-syntax */
/* eslint-disable spaced-comment */
/* eslint-disable no-shadow */
/* eslint-disable no-unused-expressions */
/* eslint-disable eqeqeq */
/* eslint-disable camelcase */
/* eslint-disable import/no-unresolved */
/* eslint-disable no-dupe-keys */
皮倩雯's avatar
皮倩雯 committed
21
import React, { useEffect, useState } from 'react';
皮倩雯's avatar
皮倩雯 committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
import {
  Modal,
  Drawer,
  Form,
  Input,
  notification,
  Space,
  Row,
  Col,
  Select,
  Checkbox,
  Radio,
  Dropdown,
  Menu,
  Button,
皮倩雯's avatar
皮倩雯 committed
37
  Tooltip,
38 39
  Upload,
  Image,
40
  Switch,
41
  message,
42
  Spin,
皮倩雯's avatar
皮倩雯 committed
43 44 45 46 47 48 49 50
} from 'antd';
import {
  GetCM_Event_LoadEventTypeTable,
  LoadEventFields,
  CM_Event_LoadDepartmentAndRoles,
  CM_Event_EditEventTable,
  GetCM_Event_QueryEventType,
  CM_Event_AddEventTable,
51
  GetCM_Event_LoadEvenFlows,
皮倩雯's avatar
皮倩雯 committed
52
} from '@/services/standingBook/api';
53 54 55 56 57 58 59
import {
  PlusOutlined,
  DownOutlined,
  InfoCircleOutlined,
  DeleteOutlined,
  PictureOutlined,
} from '@ant-design/icons';
皮倩雯's avatar
皮倩雯 committed
60
import styles from './incident.less';
皮倩雯's avatar
皮倩雯 committed
61
import ChangeAdd from './changeAdd';
皮倩雯's avatar
皮倩雯 committed
62
import ChangeEdit from './changeEdit';
63
import RMSComponents from '@/components/RolePmSite/index';
64
import PreviewModal from './PreviewModal';
65 66 67
import EditTypeModal from './EditTypeModal';
import eventImg from '@/assets/images/workOptions/事件.png';
import caseImg from '@/assets/images/workOptions/工单.png';
68 69
import caseChooseImg from '@/assets/images/workOptions/工单发起选中.png';
import eventChooseImg from '@/assets/images/workOptions/事件选中.png';
皮倩雯's avatar
皮倩雯 committed
70 71 72

const { Option } = Select;
const AddModal = props => {
皮倩雯's avatar
皮倩雯 committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
  const {
    callBackSubmit = () => {},
    visible,
    type,
    formObj,
    treeData,
    maxLength,
    selectData,
    rember1,
  } = props;
  const [strChineseFirstPY, setStrChineseFirstPY] = useState(
    'YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWR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TTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY',
  );
  const [oMultiDiff, setOMultiDiff] = useState({
    '19969': 'DZ',
    '19975': 'WM',
    '19988': 'QJ',
    '20048': 'YL',
    '20056': 'SC',
    '20060': 'NM',
    '20094': 'QG',
    '20127': 'QJ',
    '20167': 'QC',
    '20193': 'YG',
    '20250': 'KH',
    '20256': 'ZC',
    '20282': 'SC',
    '20285': 'QJG',
    '20291': 'TD',
    '20314': 'YD',
    '20340': 'NE',
    '20375': 'TD',
    '20389': 'YJ',
    '20391': 'CZ',
    '20415': 'PB',
    '20446': 'YS',
    '20447': 'SQ',
    '20504': 'TC',
    '20608': 'KG',
    '20854': 'QJ',
    '20857': 'ZC',
    '20911': 'PF',
    '20504': 'TC',
    '20608': 'KG',
    '20854': 'QJ',
    '20857': 'ZC',
    '20911': 'PF',
    '20985': 'AW',
    '21032': 'PB',
    '21048': 'XQ',
    '21049': 'SC',
    '21089': 'YS',
    '21119': 'JC',
    '21242': 'SB',
    '21273': 'SC',
    '21305': 'YP',
    '21306': 'QO',
    '21330': 'ZC',
    '21333': 'SDC',
    '21345': 'QK',
    '21378': 'CA',
    '21397': 'SC',
    '21414': 'XS',
    '21442': 'SC',
    '21477': 'JG',
    '21480': 'TD',
    '21484': 'ZS',
    '21494': 'YX',
    '21505': 'YX',
    '21512': 'HG',
    '21523': 'XH',
    '21537': 'PB',
    '21542': 'PF',
    '21549': 'KH',
    '21571': 'E',
    '21574': 'DA',
    '21588': 'TD',
    '21589': 'O',
    '21618': 'ZC',
    '21621': 'KHA',
    '21632': 'ZJ',
    '21654': 'KG',
    '21679': 'LKG',
    '21683': 'KH',
    '21710': 'A',
    '21719': 'YH',
    '21734': 'WOE',
    '21769': 'A',
    '21780': 'WN',
    '21804': 'XH',
    '21834': 'A',
    '21899': 'ZD',
    '21903': 'RN',
    '21908': 'WO',
    '21939': 'ZC',
    '21956': 'SA',
    '21964': 'YA',
    '21970': 'TD',
    '22003': 'A',
    '22031': 'JG',
    '22040': 'XS',
    '22060': 'ZC',
    '22066': 'ZC',
    '22079': 'MH',
    '22129': 'XJ',
    '22179': 'XA',
    '22237': 'NJ',
    '22244': 'TD',
    '22280': 'JQ',
    '22300': 'YH',
    '22313': 'XW',
    '22331': 'YQ',
    '22343': 'YJ',
    '22351': 'PH',
    '22395': 'DC',
    '22412': 'TD',
    '22484': 'PB',
    '22500': 'PB',
    '22534': 'ZD',
    '22549': 'DH',
    '22561': 'PB',
    '22612': 'TD',
    '22771': 'KQ',
    '22831': 'HB',
    '22841': 'JG',
    '22855': 'QJ',
    '22865': 'XQ',
    '23013': 'ML',
    '23081': 'WM',
    '23487': 'SX',
    '23558': 'QJ',
    '23561': 'YW',
    '23586': 'YW',
    '23614': 'YW',
    '23615': 'SN',
    '23631': 'PB',
    '23646': 'ZS',
    '23663': 'ZT',
    '23673': 'YG',
    '23762': 'TD',
    '23769': 'ZS',
    '23780': 'QJ',
    '23884': 'QK',
    '24055': 'XH',
    '24113': 'DC',
    '24162': 'ZC',
    '24191': 'GA',
    '24273': 'QJ',
    '24324': 'NL',
    '24377': 'TD',
    '24378': 'QJ',
    '24439': 'PF',
    '24554': 'ZS',
    '24683': 'TD',
    '24694': 'WE',
    '24733': 'LK',
    '24925': 'TN',
    '25094': 'ZG',
    '25100': 'XQ',
    '25103': 'XH',
    '25153': 'PB',
    '25170': 'PB',
    '25179': 'KG',
    '25203': 'PB',
    '25240': 'ZS',
    '25282': 'FB',
    '25303': 'NA',
    '25324': 'KG',
    '25341': 'ZY',
    '25373': 'WZ',
    '25375': 'XJ',
    '25384': 'A',
    '25457': 'A',
    '25528': 'SD',
    '25530': 'SC',
    '25552': 'TD',
    '25774': 'ZC',
    '25874': 'ZC',
    '26044': 'YW',
    '26080': 'WM',
    '26292': 'PB',
    '26333': 'PB',
    '26355': 'ZY',
    '26366': 'CZ',
    '26397': 'ZC',
    '26399': 'QJ',
    '26415': 'ZS',
    '26451': 'SB',
    '26526': 'ZC',
    '26552': 'JG',
    '26561': 'TD',
    '26588': 'JG',
    '26597': 'CZ',
    '26629': 'ZS',
    '26638': 'YL',
    '26646': 'XQ',
    '26653': 'KG',
    '26657': 'XJ',
    '26727': 'HG',
    '26894': 'ZC',
    '26937': 'ZS',
    '26946': 'ZC',
    '26999': 'KJ',
    '27099': 'KJ',
    '27449': 'YQ',
    '27481': 'XS',
    '27542': 'ZS',
    '27663': 'ZS',
    '27748': 'TS',
    '27784': 'SC',
    '27788': 'ZD',
    '27795': 'TD',
    '27812': 'O',
    '27850': 'PB',
    '27852': 'MB',
    '27895': 'SL',
    '27898': 'PL',
    '27973': 'QJ',
    '27981': 'KH',
    '27986': 'HX',
    '27994': 'XJ',
    '28044': 'YC',
    '28065': 'WG',
    '28177': 'SM',
    '28267': 'QJ',
    '28291': 'KH',
    '28337': 'ZQ',
    '28463': 'TL',
    '28548': 'DC',
    '28601': 'TD',
    '28689': 'PB',
    '28805': 'JG',
    '28820': 'QG',
    '28846': 'PB',
    '28952': 'TD',
    '28975': 'ZC',
    '29100': 'A',
    '29325': 'QJ',
    '29575': 'SL',
    '29602': 'FB',
    '30010': 'TD',
    '30044': 'CX',
    '30058': 'PF',
    '30091': 'YSP',
    '30111': 'YN',
    '30229': 'XJ',
    '30427': 'SC',
    '30465': 'SX',
    '30631': 'YQ',
    '30655': 'QJ',
    '30684': 'QJG',
    '30707': 'SD',
    '30729': 'XH',
    '30796': 'LG',
    '30917': 'PB',
    '31074': 'NM',
    '31085': 'JZ',
    '31109': 'SC',
    '31181': 'ZC',
    '31192': 'MLB',
    '31293': 'JQ',
    '31400': 'YX',
    '31584': 'YJ',
    '31896': 'ZN',
    '31909': 'ZY',
    '31995': 'XJ',
    '32321': 'PF',
    '32327': 'ZY',
    '32418': 'HG',
    '32420': 'XQ',
    '32421': 'HG',
    '32438': 'LG',
    '32473': 'GJ',
    '32488': 'TD',
    '32521': 'QJ',
    '32527': 'PB',
    '32562': 'ZSQ',
    '32564': 'JZ',
    '32735': 'ZD',
    '32793': 'PB',
    '33071': 'PF',
    '33098': 'XL',
    '33100': 'YA',
    '33152': 'PB',
    '33261': 'CX',
    '33324': 'BP',
    '33333': 'TD',
    '33406': 'YA',
    '33426': 'WM',
    '33432': 'PB',
    '33445': 'JG',
    '33486': 'ZN',
    '33493': 'TS',
    '33507': 'QJ',
    '33540': 'QJ',
    '33544': 'ZC',
    '33564': 'XQ',
    '33617': 'YT',
    '33632': 'QJ',
    '33636': 'XH',
    '33637': 'YX',
    '33694': 'WG',
    '33705': 'PF',
    '33728': 'YW',
    '33882': 'SR',
    '34067': 'WM',
    '34074': 'YW',
    '34121': 'QJ',
    '34255': 'ZC',
    '34259': 'XL',
    '34425': 'JH',
    '34430': 'XH',
    '34485': 'KH',
    '34503': 'YS',
    '34532': 'HG',
    '34552': 'XS',
    '34558': 'YE',
    '34593': 'ZL',
    '34660': 'YQ',
    '34892': 'XH',
    '34928': 'SC',
    '34999': 'QJ',
    '35048': 'PB',
    '35059': 'SC',
    '35098': 'ZC',
    '35203': 'TQ',
    '35265': 'JX',
    '35299': 'JX',
    '35782': 'SZ',
    '35828': 'YS',
    '35830': 'E',
    '35843': 'TD',
    '35895': 'YG',
    '35977': 'MH',
    '36158': 'JG',
    '36228': 'QJ',
    '36426': 'XQ',
    '36466': 'DC',
    '36710': 'JC',
    '36711': 'ZYG',
    '36767': 'PB',
    '36866': 'SK',
    '36951': 'YW',
    '37034': 'YX',
    '37063': 'XH',
    '37218': 'ZC',
    '37325': 'ZC',
    '38063': 'PB',
    '38079': 'TD',
    '38085': 'QY',
    '38107': 'DC',
    '38116': 'TD',
    '38123': 'YD',
    '38224': 'HG',
    '38241': 'XTC',
    '38271': 'ZC',
    '38415': 'YE',
    '38426': 'KH',
    '38461': 'YD',
    '38463': 'AE',
    '38466': 'PB',
    '38477': 'XJ',
    '38518': 'YT',
    '38551': 'WK',
    '38585': 'ZC',
    '38704': 'XS',
    '38739': 'LJ',
    '38761': 'GJ',
    '38808': 'SQ',
    '39048': 'JG',
    '39049': 'XJ',
    '39052': 'HG',
    '39076': 'CZ',
    '39271': 'XT',
    '39534': 'TD',
    '39552': 'TD',
    '39584': 'PB',
    '39647': 'SB',
    '39730': 'LG',
    '39748': 'TPB',
    '40109': 'ZQ',
    '40479': 'ND',
    '40516': 'HG',
    '40536': 'HG',
    '40583': 'QJ',
    '40765': 'YQ',
    '40784': 'QJ',
    '40840': 'YK',
    '40863': 'QJG',
  });
  const [checkedList1, setCheckedList1] = useState([]);
  const [nu, setNu] = useState([]);
  const [nu1, setNu1] = useState([]);
  const [editable, setEditable] = useState(false);
  const [ReportFromMobile, setReportFromMobile] = useState(false);
  const [ReportFromWeb, setReportFromWeb] = useState(false);
469
  const [chee, setChee] = useState('');
皮倩雯's avatar
皮倩雯 committed
470 471 472 473
  const [pickItem, setPickItem] = useState('');
  const [prefixName, setPrefixName] = useState('');
  const [selectValue, setSelectValue] = useState('');
  const [loading, setLoading] = useState(false);
474
  const [modalLoading, setModalLoading] = useState(true);
皮倩雯's avatar
皮倩雯 committed
475 476 477 478
  const [standingTable, setStandingTable] = useState([]);
  const [filed, setFiled] = useState({}); // 传给子组件列表数据
  const [filed1, setFiled1] = useState({}); // 传给子组件列表数据
  const [flag, setFlag] = useState(0);
皮倩雯's avatar
皮倩雯 committed
479
  const [value, setValue] = useState(''); // 单选
皮倩雯's avatar
皮倩雯 committed
480 481
  const [Order, setOrder] = useState(''); // 弹窗类型
  const [Type1, setType1] = useState('');
皮倩雯's avatar
皮倩雯 committed
482 483
  const [isVisible, setIsVisible] = useState(false); // 事件权限弹窗
  const [isVisibleEdit, setIsVisibleEdit] = useState(false); // 字段弹框
皮倩雯's avatar
皮倩雯 committed
484
  const [form] = Form.useForm();
皮倩雯's avatar
皮倩雯 committed
485 486 487 488 489 490 491 492 493 494
  const [summaryIsShow, setSummaryIsShow] = useState('none'); // 摘要字段外部字段是否显示
  const [reportIsShow, setReportIsShow] = useState('none'); // 上报字段外部字段是否显示
  const [displayIsShow, setDisplayIsShow] = useState('none'); // 显示字段外部字段是否显示
  const [editableIsShow, setEditableIsShow] = useState('none'); // 编辑字段外部字段是否显示
  const [transitIsShow, setTransitIsShow] = useState('none'); // 转单字段外部字段是否显示
  const [relatedEventIsShow, setRelatedEventIsShow] = useState('none'); // 关联字段外部字段是否显示
  const [summaryValue, setSummaryValue] = useState(); // 保存摘要字段外部字段
  const [reportValue, setReportValue] = useState(); // 保存上报字段外部字段
  const [displayValue, setDisplayValue] = useState(); // 保存显示字段外部字段
  const [editableValue, setEditableValue] = useState(); // 保存编辑字段外部字段
皮倩雯's avatar
皮倩雯 committed
495
  const [displayColumns, setDisplayColumns] = useState(); // 保存显示列字段外部字段
皮倩雯's avatar
皮倩雯 committed
496
  const [relatedEventValue, setRelatedEventValue] = useState(); // 保存关联字段外部字段
497 498 499
  const [groupName, setGroupName] = useState('角色');
  const [chooseGroupName, setChooseGroupName] = useState(['角色', '部门', '站点']);
  const [keepFiled, setKeepFiled] = useState([]);
皮倩雯's avatar
皮倩雯 committed
500
  const { Item } = Form;
501 502 503 504
  const [imageUrl, setImageUrl] = useState();
  const [keepImgeUrl, setKeepImgeUrl] = useState('');
  const [im, setIm] = useState();
  const [previewModal, setPreviewModal] = useState(false);
505 506
  const [editTypeModal, setEditTypeModal] = useState(false);
  const [flowTableData, setFlowTableData] = useState([]);
507
  const [eventFlowId, setEventFlowId] = useState(0);
508
  const [show, setShow] = useState('hidden');
509
  const [visibleChecked, setVisibleChecked] = useState(true);
邓超's avatar
邓超 committed
510
  const [initWay, setInitWay] = useState(); // 初始上报方式
皮倩雯's avatar
皮倩雯 committed
511 512 513 514 515 516 517 518
  const onSubmit = () => {
    form.validateFields().then(validate => {
      if (validate) {
        setLoading(true);
        let obj = form.getFieldsValue();
        obj.Code = obj.Code.toString();
        if (obj.BusinessType === undefined) {
          obj.BusinessType = rember1;
皮倩雯's avatar
皮倩雯 committed
519
        }
皮倩雯's avatar
皮倩雯 committed
520 521
        if (obj.TableName === undefined) {
          obj.TableName = selectValue;
皮倩雯's avatar
皮倩雯 committed
522
        }
皮倩雯's avatar
皮倩雯 committed
523
        if (obj.CreateMode === undefined) {
524
          obj.CreateMode = 1;
皮倩雯's avatar
皮倩雯 committed
525
        }
皮倩雯's avatar
皮倩雯 committed
526
        // eslint-disable-next-line no-constant-condition
皮倩雯's avatar
皮倩雯 committed
527 528
        if (obj.CreateMode === 0 || 1) {
          obj.CreateMode = obj.CreateMode.toString();
皮倩雯's avatar
皮倩雯 committed
529
        }
530
        obj.CreateMode = value;
皮倩雯's avatar
皮倩雯 committed
531
        if (editable != true) {
532
          obj.Editable = false;
皮倩雯's avatar
皮倩雯 committed
533
        } else {
534
          obj.Editable = editable;
皮倩雯's avatar
皮倩雯 committed
535
        }
536
        if (ReportFromWeb === true && ReportFromMobile === true) {
537
          // obj.Reportable = '均可';
皮倩雯's avatar
皮倩雯 committed
538 539
          obj.ReportFromMobile = '手持';
          obj.ReportFromWeb = '前端';
540
        } else if (ReportFromWeb === true) {
541
          // obj.Reportable = '前端';
皮倩雯's avatar
皮倩雯 committed
542 543
          obj.ReportFromMobile = '';
          obj.ReportFromWeb = '前端';
544
        } else if (ReportFromMobile === true) {
545
          // obj.Reportable = '手持';
皮倩雯's avatar
皮倩雯 committed
546 547 548
          obj.ReportFromMobile = '手持';
          obj.ReportFromWeb = '';
        } else {
549
          // obj.Reportable = '否';
皮倩雯's avatar
皮倩雯 committed
550 551 552
          obj.ReportFromMobile = '';
          obj.ReportFromWeb = '';
        }
553
        if (visibleChecked) {
554 555 556
          obj.Reportable = true;
        } else {
          obj.Reportable = false;
557
        }
558 559
        // if ((obj.Roles == '' || obj.Roles == undefined) && obj.CreateMode === '0' ) {
        if ((obj.Roles == '' || obj.Roles == undefined) && value === 0) {
560
          console.log(obj.CreateMode);
皮倩雯's avatar
皮倩雯 committed
561 562
          notification.warning({
            message: '提示',
563
            description: '事件权限必填',
皮倩雯's avatar
皮倩雯 committed
564 565 566 567 568
          });
        } else {
          if (type == 'edit') {
            CM_Event_EditEventTable({
              ID: formObj.ID,
569 570
              ...obj,
              Order,
涂伟's avatar
涂伟 committed
571
              EventFlowId: eventFlowId,
572 573 574 575 576 577
            }).then(res => {
              setLoading(false);
              if (res.msg === 'Ok') {
                form.resetFields();
                setValue('');
                callBackSubmit();
578
                setChee('');
579 580 581 582 583 584
                notification.success({
                  message: '提示',
                  duration: 3,
                  description: '编辑成功',
                });
              } else {
皮倩雯's avatar
皮倩雯 committed
585 586 587
                notification.error({
                  message: '提示',
                  duration: 3,
588
                  description: res.msg,
皮倩雯's avatar
皮倩雯 committed
589
                });
590 591
              }
            });
皮倩雯's avatar
皮倩雯 committed
592 593 594
            setFlag(0);
          }
          if (type == 'add') {
皮倩雯's avatar
皮倩雯 committed
595 596
            if (obj.DisplayColumns == undefined) {
              obj.DisplayColumns = '';
597 598 599 600 601 602 603 604 605
            }
            if (obj.Roles == undefined) {
              obj.Roles = '';
            }
            CM_Event_AddEventTable({ ...obj, Order: maxLength }).then(res => {
              setLoading(false);
              if (res.msg === 'Ok') {
                form.resetFields();
                setValue('');
606
                setChee('');
607 608 609 610 611 612 613
                callBackSubmit();
                notification.success({
                  message: '提示',
                  duration: 3,
                  description: '新增成功',
                });
              } else {
皮倩雯's avatar
皮倩雯 committed
614 615 616
                notification.error({
                  message: '提示',
                  duration: 3,
617
                  description: res.msg,
皮倩雯's avatar
皮倩雯 committed
618
                });
619 620
              }
            });
皮倩雯's avatar
皮倩雯 committed
621 622
            setFlag(0);
          }
皮倩雯's avatar
皮倩雯 committed
623
        }
皮倩雯's avatar
皮倩雯 committed
624 625 626
      }
    });
  };
皮倩雯's avatar
皮倩雯 committed
627

皮倩雯's avatar
皮倩雯 committed
628
  useEffect(() => {
皮倩雯's avatar
皮倩雯 committed
629
    setValue('');
630
    setModalLoading(true)
皮倩雯's avatar
皮倩雯 committed
631 632 633 634 635 636 637
    // 关闭时不会调用
    if (visible) {
      getRole();
      if (type === 'add') {
        setType1(rember1);
        form.setFieldsValue({ BusinessType: rember1 });
        setReportFromWeb(true);
邓超's avatar
邓超 committed
638
        setChee(1);
639
        setValue(1);
皮倩雯's avatar
皮倩雯 committed
640 641 642 643 644 645
        getEventData();
        setSelectValue(selectData[0]);
        setFiled({});
        setFiled1({});
        form.resetFields();
        setEditable(false);
646
        setReportFromMobile(true);
647 648 649
        form.setFieldsValue({
          ImageExpression: 'assets/images/caseCenter/events/通用问题1.png',
        });
650 651 652
        setImageUrl(
          `${window.location.origin}/civweb4/assets/images/caseCenter/events/通用问题1.png`,
        );
653
        setIm('assets/images/caseCenter/events/通用问题1.png');
654
        setModalLoading(false)
皮倩雯's avatar
皮倩雯 committed
655
      } else if (type === 'edit') {
656
        setChee();
皮倩雯's avatar
皮倩雯 committed
657 658 659 660
        getEventData1();
        GetCM_Event_QueryEventType({ eventTypeId: formObj.ID }).then(res => {
          if (res.data.root) {
            setEditable(res.data.root.Editable);
661
            setInitWay(res.data.root.CreateMode);
662
            setValue(res.data.root.CreateMode);
皮倩雯's avatar
皮倩雯 committed
663 664
            setReportFromMobile(res.data.root.ReportFromMobile);
            setReportFromWeb(res.data.root.ReportFromWeb);
665
            if (res.data.root.Reportable === false) {
666
              setVisibleChecked(false);
667 668
            } else {
              setVisibleChecked(true);
669
            }
皮倩雯's avatar
皮倩雯 committed
670 671 672
            setType1(res.data.root.BusinessType);
            setOrder(res.data.root.Order);
            form.setFieldsValue({ ...res.data.root });
673
            if (res.data.root.ImageExpression) {
674
              setImageUrl(`${window.location.origin}/civweb4/${res.data.root.ImageExpression}`);
675 676 677
              setIm(res.data.root.ImageExpression);
            } else {
              form.setFieldsValue({
678
                ImageExpression: 'assets/images/caseCenter/events/通用问题1.png',
679
              });
680 681 682
              setImageUrl(
                `${window.location.origin}/civweb4/assets/images/caseCenter/events/通用问题1.png`,
              );
683
              setIm('assets/images/caseCenter/events/通用问题1.png');
684
            }
皮倩雯's avatar
皮倩雯 committed
685 686 687 688 689 690 691
            LoadEventFields({
              eventTableName: res.data.root.TableName,
              distinctFields: '',
            }).then(res => {
              if (res.data.root) {
                setNu(res.data.root);
                setFiled(formateArrDataA(res.data.root, 'group'));
692
                setModalLoading(false)
皮倩雯's avatar
皮倩雯 committed
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719
              }
            });
            // 外部字段逻辑处理
            setSummaryValue(res.data.root.outSummaryFields);
            if (res.data.root.outSummaryFields != 0) {
              setSummaryIsShow('inline');
            } else {
              setSummaryIsShow('none');
            }
            setReportValue(res.data.root.outReportFields);
            if (res.data.root.outReportFields != 0) {
              setReportIsShow('inline');
            } else {
              setReportIsShow('none');
            }
            setDisplayValue(res.data.root.outDisplayFields);
            if (res.data.root.outDisplayFields != 0) {
              setDisplayIsShow('inline');
            } else {
              setDisplayIsShow('none');
            }
            setEditableValue(res.data.root.outEditableFields);
            if (res.data.root.outEditableFields != 0) {
              setEditableIsShow('inline');
            } else {
              setEditableIsShow('none');
            }
皮倩雯's avatar
皮倩雯 committed
720 721
            setDisplayColumns(res.data.root.outDisplayColumns);
            if (res.data.root.outDisplayColumns != 0) {
皮倩雯's avatar
皮倩雯 committed
722 723 724 725 726 727 728 729 730 731 732
              setTransitIsShow('inline');
            } else {
              setTransitIsShow('none');
            }
            setRelatedEventValue(res.data.root.outRelatedEventFields);
            if (res.data.root.outRelatedEventFields != 0) {
              setRelatedEventIsShow('inline');
            } else {
              setRelatedEventIsShow('none');
            }
          }
733
          // setModalLoading(false)
皮倩雯's avatar
皮倩雯 committed
734 735 736
        });
      }
      setFlag(0);
737
    } else if (type == 'edit' || type == 'add') {
邓超's avatar
邓超 committed
738
      setInitWay(null);
皮倩雯's avatar
皮倩雯 committed
739 740 741 742
      setEditable(false);
      setReportFromMobile(false);
      setReportFromWeb(false);
      form.resetFields();
743 744 745
      setImageUrl('');
      setIm('');
      setKeepImgeUrl('');
皮倩雯's avatar
皮倩雯 committed
746
      setValue('');
747
      setChee('');
748 749 750 751 752 753
      setSummaryIsShow('none');
      setReportIsShow('none');
      setDisplayIsShow('none');
      setEditableIsShow('none');
      setTransitIsShow('none');
      setRelatedEventIsShow('none');
皮倩雯's avatar
皮倩雯 committed
754 755
    }
  }, [visible]);
皮倩雯's avatar
皮倩雯 committed
756

皮倩雯's avatar
皮倩雯 committed
757 758 759 760
  const getRole = () => {
    CM_Event_LoadDepartmentAndRoles().then(res => {
      if (res.msg === 'Ok') {
        setNu1(res.data);
761
        // setFiled1(formateArrDataA1(res.data, 'groupType'));
762
        setKeepFiled(groupArr(res.data, 'groupType'));
皮倩雯's avatar
皮倩雯 committed
763 764 765
      }
    });
  };
皮倩雯's avatar
皮倩雯 committed
766

皮倩雯's avatar
皮倩雯 committed
767 768 769 770 771 772 773 774 775 776 777 778 779
  const getEventData = () => {
    GetCM_Event_LoadEventTypeTable().then(res => {
      if (res.msg === 'Ok') {
        setStandingTable(res.data);
        let arr = [];
        res.data.map((item, index) => {
          arr.push(item.text);
        });
        // setSelectValue(arr[0])
        // changTable(arr[0])
      }
    });
  };
皮倩雯's avatar
皮倩雯 committed
780

皮倩雯's avatar
皮倩雯 committed
781 782 783 784 785 786 787 788
  const getEventData1 = () => {
    setType1('');
    GetCM_Event_LoadEventTypeTable().then(res => {
      if (res.msg === 'Ok') {
        setStandingTable(res.data);
      }
    });
  };
皮倩雯's avatar
皮倩雯 committed
789

皮倩雯's avatar
皮倩雯 committed
790 791 792 793 794
  const changTable = value => {
    setFlag(flag + 1);
    LoadEventFields({ eventTableName: value, distinctFields: '' }).then(res => {
      if (res.data.root) {
        setNu(res.data.root);
皮倩雯's avatar
皮倩雯 committed
795
        console.log(res.data.root);
皮倩雯's avatar
皮倩雯 committed
796
        setFiled(formateArrDataA(res.data.root, 'group'));
皮倩雯's avatar
皮倩雯 committed
797 798 799 800 801 802 803 804 805 806 807 808
        ExternalSummaryField(res.data.root);
        ExternalReportField(res.data.root);
        ExternalDisplayField(res.data.root);
        ExternalEditableField(res.data.root);
        ExternalTransitField(res.data.root);
        ExternalRelatedEventField(res.data.root);
      }
    });
  };

  // 摘要字段外部字段
  const ExternalSummaryField = e => {
809 810 811 812 813 814 815 816 817 818
    if (form.getFieldValue().SummaryFields) {
      let pp = formateArrDataA(e, 'group');
      let ab = form.getFieldValue().SummaryFields.split(',');
      let arr = Object.keys(pp);
      let b = [];
      let a = [];
      arr.map((item, index) => {
        pp[item].map((i, j) => {
          b.push(i);
        });
皮倩雯's avatar
皮倩雯 committed
819
      });
820 821 822 823 824 825 826
      ab.map((item, index) => {
        if (b.includes(item) == false) {
          if (item == '') {
            a = [];
          } else {
            a.push(item);
          }
皮倩雯's avatar
皮倩雯 committed
827
        }
828 829 830 831 832 833
      });
      setSummaryValue(a.length);
      if (a.length != 0) {
        setSummaryIsShow('inline');
      } else {
        setSummaryIsShow('none');
皮倩雯's avatar
皮倩雯 committed
834 835 836 837 838 839 840
      }
    } else {
      setSummaryIsShow('none');
    }
  };
  // 上报字段外部字段
  const ExternalReportField = e => {
841 842 843 844 845 846 847 848 849 850
    if (form.getFieldValue().ReportFields) {
      let pp = formateArrDataA(e, 'group');
      let ab = form.getFieldValue().ReportFields.split(',');
      let arr = Object.keys(pp);
      let b = [];
      let a = [];
      arr.map((item, index) => {
        pp[item].map((i, j) => {
          b.push(i);
        });
皮倩雯's avatar
皮倩雯 committed
851
      });
852 853 854 855 856 857 858
      ab.map((item, index) => {
        if (b.includes(item) == false) {
          if (item == '') {
            a = [];
          } else {
            a.push(item);
          }
皮倩雯's avatar
皮倩雯 committed
859
        }
860 861 862 863 864 865
      });
      setReportValue(a.length);
      if (a.length != 0) {
        setReportIsShow('inline');
      } else {
        setReportIsShow('none');
皮倩雯's avatar
皮倩雯 committed
866 867 868 869 870 871 872
      }
    } else {
      setReportIsShow('none');
    }
  };
  // 显示字段外部字段
  const ExternalDisplayField = e => {
873 874 875 876 877 878 879 880 881 882
    if (form.getFieldValue().DisplayFields) {
      let pp = formateArrDataA(e, 'group');
      let ab = form.getFieldValue().DisplayFields.split(',');
      let arr = Object.keys(pp);
      let b = [];
      let a = [];
      arr.map((item, index) => {
        pp[item].map((i, j) => {
          b.push(i);
        });
皮倩雯's avatar
皮倩雯 committed
883
      });
884 885 886 887 888 889 890
      ab.map((item, index) => {
        if (b.includes(item) == false) {
          if (item == '') {
            a = [];
          } else {
            a.push(item);
          }
皮倩雯's avatar
皮倩雯 committed
891
        }
892 893 894 895 896 897
      });
      setDisplayValue(a.length);
      if (a.length != 0) {
        setDisplayIsShow('inline');
      } else {
        setDisplayIsShow('none');
皮倩雯's avatar
皮倩雯 committed
898 899 900 901 902 903 904
      }
    } else {
      setDisplayIsShow('none');
    }
  };
  // 编辑字段外部字段
  const ExternalEditableField = e => {
905 906 907 908 909 910 911 912 913 914
    if (form.getFieldValue().EditableFields) {
      let pp = formateArrDataA(e, 'group');
      let ab = form.getFieldValue().EditableFields.split(',');
      let arr = Object.keys(pp);
      let b = [];
      let a = [];
      arr.map((item, index) => {
        pp[item].map((i, j) => {
          b.push(i);
        });
皮倩雯's avatar
皮倩雯 committed
915
      });
916 917 918 919 920 921 922
      ab.map((item, index) => {
        if (b.includes(item) == false) {
          if (item == '') {
            a = [];
          } else {
            a.push(item);
          }
皮倩雯's avatar
皮倩雯 committed
923
        }
924 925 926 927 928 929
      });
      setEditableValue(a.length);
      if (a.length != 0) {
        setEditableIsShow('inline');
      } else {
        setEditableIsShow('none');
皮倩雯's avatar
皮倩雯 committed
930 931 932 933 934
      }
    } else {
      setEditableIsShow('none');
    }
  };
皮倩雯's avatar
皮倩雯 committed
935
  // 显示列字段外部字段
皮倩雯's avatar
皮倩雯 committed
936
  const ExternalTransitField = e => {
皮倩雯's avatar
皮倩雯 committed
937
    if (form.getFieldValue().DisplayColumns) {
938
      let pp = formateArrDataA(e, 'group');
皮倩雯's avatar
皮倩雯 committed
939
      let ab = form.getFieldValue().DisplayColumns.split(',');
940 941 942 943 944 945 946
      let arr = Object.keys(pp);
      let b = [];
      let a = [];
      arr.map((item, index) => {
        pp[item].map((i, j) => {
          b.push(i);
        });
皮倩雯's avatar
皮倩雯 committed
947
      });
948 949 950 951 952 953 954
      ab.map((item, index) => {
        if (b.includes(item) == false) {
          if (item == '') {
            a = [];
          } else {
            a.push(item);
          }
皮倩雯's avatar
皮倩雯 committed
955
        }
956
      });
皮倩雯's avatar
皮倩雯 committed
957
      setDisplayColumns(a.length);
958 959 960 961
      if (a.length != 0) {
        setTransitIsShow('inline');
      } else {
        setTransitIsShow('none');
皮倩雯's avatar
皮倩雯 committed
962 963 964 965 966 967 968
      }
    } else {
      setTransitIsShow('none');
    }
  };
  // 关联字段外部字段
  const ExternalRelatedEventField = e => {
969 970 971 972 973 974 975 976 977 978
    if (form.getFieldValue().RelatedEventFields) {
      let pp = formateArrDataA(e, 'group');
      let ab = form.getFieldValue().RelatedEventFields.split(',');
      let arr = Object.keys(pp);
      let b = [];
      let a = [];
      arr.map((item, index) => {
        pp[item].map((i, j) => {
          b.push(i);
        });
皮倩雯's avatar
皮倩雯 committed
979
      });
980 981 982 983 984 985 986
      ab.map((item, index) => {
        if (b.includes(item) == false) {
          if (item == '') {
            a = [];
          } else {
            a.push(item);
          }
皮倩雯's avatar
皮倩雯 committed
987
        }
988 989 990 991 992 993
      });
      setRelatedEventValue(a.length);
      if (a.length != 0) {
        setRelatedEventIsShow('inline');
      } else {
        setRelatedEventIsShow('none');
皮倩雯's avatar
皮倩雯 committed
994
      }
皮倩雯's avatar
皮倩雯 committed
995 996 997
    } else {
      setRelatedEventIsShow('none');
    }
皮倩雯's avatar
皮倩雯 committed
998
  };
皮倩雯's avatar
皮倩雯 committed
999

皮倩雯's avatar
皮倩雯 committed
1000 1001 1002 1003
  const formateArrDataA = (initialArr, name) => {
    // 判定传参是否符合规则
    if (!(initialArr instanceof Array)) {
      return '请传入正确格式的数组';
皮倩雯's avatar
皮倩雯 committed
1004
    }
皮倩雯's avatar
皮倩雯 committed
1005 1006
    if (!name) {
      return '请传入对象属性';
皮倩雯's avatar
皮倩雯 committed
1007
    }
1008
    //先获取一下这个数组中name的集合放进新数组
皮倩雯's avatar
皮倩雯 committed
1009 1010 1011 1012 1013
    let nameArr = [];
    for (let i in initialArr) {
      if (nameArr.indexOf(initialArr[i][`${name}`]) === -1) {
        nameArr.push(initialArr[i][`${name}`]);
      }
皮倩雯's avatar
皮倩雯 committed
1014
    }
1015 1016
    console.log(nameArr);
    console.log(initialArr);
皮倩雯's avatar
皮倩雯 committed
1017 1018
    //新建一个包含多个list的结果对象
    let tempObj = {};
1019
    let aa = [];
皮倩雯's avatar
皮倩雯 committed
1020 1021 1022 1023 1024
    // 根据不同的"name"生成多个数组
    // eslint-disable-next-line guard-for-in
    for (let k in nameArr) {
      for (let j in initialArr) {
        if (initialArr[j][`${name}`] == nameArr[k]) {
1025 1026 1027
          // 每次外循环时新建一个对应"name"的数组, 内循环时当前数组不变
          tempObj[nameArr[k]] = tempObj[nameArr[k]] || [];
          if (initialArr[j].isDefaultField == false) {
1028
            tempObj[nameArr[k]].push(initialArr[j]);
1029
          } else {
1030 1031
            aa.push(initialArr[j].fieldName);
          }
皮倩雯's avatar
皮倩雯 committed
1032
        }
皮倩雯's avatar
皮倩雯 committed
1033
      }
皮倩雯's avatar
皮倩雯 committed
1034
    }
1035

1036 1037
    console.log(aa);
    // tempObj.内置字段 = aa;
皮倩雯's avatar
皮倩雯 committed
1038 1039 1040 1041 1042 1043
    for (let key in tempObj) {
      let arr = [];
      tempObj[key].map(item => {
        tempObj[key] = arr;
        arr.push(item.fieldName);
      });
皮倩雯's avatar
皮倩雯 committed
1044
    }
1045
    if (aa.length > 0) {
1046 1047
      tempObj.内置字段 = [...aa];
    }
1048 1049 1050 1051 1052 1053 1054 1055 1056
    let list = {};
    Object.keys(tempObj).forEach(i => {
      console.log(i);
      if (tempObj[i].length > 0) {
        console.log(tempObj[i]);
        list[i] = [...tempObj[i]];
      }
    });
    console.log(list);
皮倩雯's avatar
皮倩雯 committed
1057
    return list;
皮倩雯's avatar
皮倩雯 committed
1058
  };
1059 1060 1061 1062 1063 1064 1065 1066

  const groupArr = (initialArr, name) => {
    let list = {};
    initialArr.data.map(i => {
      let ar = [];
      i.root.map(j => {
        let ss = {};
        ss.label = j.Name;
1067
        ss.value = j.ID.toString();
1068 1069 1070 1071 1072 1073 1074
        ar.push(ss);
      });
      list[i.groupType] = ar;
    });
    return list;
  };

1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101
  // const formateArrDataA1 = (initialArr, name) => {
  //   console.log(initialArr);
  //   let aa = [];
  //   let a1 = [];
  //   let a2;
  //   let a3 = [];
  //   initialArr.data.map(i => {
  //     // console.log(i.groupType)
  //     a2 = i.groupType;
  //     // console.log(a2)
  //     // console.log(i.root)
  //     a1 = i.root;
  //     a1.map(j => {
  //       j.group = a2;
  //       // console.log(j)
  //     });
  //     aa.push(i.root);
  //   });
  //   // console.log(aa)
  //   aa.map(p => {
  //     // console.log(p)
  //     p.map(o => {
  //       // console.log(o)
  //       a3.push(o);
  //     });
  //   });
  //   console.log(a3);
皮倩雯's avatar
皮倩雯 committed
1102

1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138
  //   // 判定传参是否符合规则
  //   if (!(a3 instanceof Array)) {
  //     return '请传入正确格式的数组';
  //   }
  //   if (!name) {
  //     return '请传入对象属性';
  //   }
  //   //先获取一下这个数组中有多少个"name"
  //   let nameArr = [];
  //   a3.map(i => {
  //     if (nameArr.indexOf(i.group) === -1) {
  //       nameArr.push(i.group);
  //     }
  //   });
  //   console.log(nameArr);
  //   //新建一个包含多个list的结果对象
  //   let tempObj = {};
  //   // 根据不同的"name"生成多个数组
  //   for (let k in nameArr) {
  //     for (let j in a3) {
  //       if (a3[j].group == nameArr[k]) {
  //         // 每次外循环时新建一个对应"name"的数组, 内循环时当前数组不变
  //         tempObj[nameArr[k]] = tempObj[nameArr[k]] || [];
  //         tempObj[nameArr[k]].push(a3[j]);
  //       }
  //     }
  //   }
  //   for (let key in tempObj) {
  //     let arr = [];
  //     tempObj[key].map(item => {
  //       tempObj[key] = arr;
  //       arr.push(item.Name);
  //     });
  //   }
  //   return tempObj;
  // };
皮倩雯's avatar
皮倩雯 committed
1139 1140 1141 1142 1143

  const onChange1 = e => {
    setEditable(e.target.checked);
  };
  const onChange2 = e => {
1144 1145 1146 1147 1148
    if (e === 1 && initWay === 0) {
      // message.warning('事件模型切换为工单模型流程会清空,请谨慎修改');
      GetCM_Event_LoadEvenFlows({ eventTypeId: formObj.ID }).then(res => {
        if (res.msg === 'Ok') {
          if (res.data.length && res.data.length === 1) {
涂伟's avatar
涂伟 committed
1149
            setEventFlowId(res.data[0].ID);
1150
          } else {
1151
            setEventFlowId(0);
1152 1153 1154 1155 1156
            setFlowTableData(res.data);
            setEditTypeModal(true);
          }
        }
      });
1157
    }
1158
    setValue(e);
皮倩雯's avatar
皮倩雯 committed
1159 1160 1161 1162 1163 1164 1165 1166
  };
  const onChange3 = e => {
    setReportFromWeb(e.target.checked);
  };
  const onChange4 = e => {
    setReportFromMobile(e.target.checked);
  };
  const onOK = prop => {
皮倩雯's avatar
皮倩雯 committed
1167
    setIsVisible(false);
1168
    let inputText = {};
皮倩雯's avatar
皮倩雯 committed
1169 1170
    inputText[prop.pickItem] = prop.str;
    setCheckedList1(prop.stt);
1171
    form.setFieldsValue(inputText);
皮倩雯's avatar
皮倩雯 committed
1172 1173 1174
  };
  const onOK1 = prop => {
    setIsVisibleEdit(false);
1175
    let inputText = {};
皮倩雯's avatar
皮倩雯 committed
1176 1177
    inputText[prop.pickItem] = prop.str;
    setCheckedList1(prop.stt);
1178
    form.setFieldsValue(inputText);
皮倩雯's avatar
皮倩雯 committed
1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
    // 外部字段提示
    if (prop.pickItem == 'SummaryFields') {
      setSummaryValue(prop.valueArr.length);
      if (prop.valueArr.length != 0) {
        setSummaryIsShow('inline');
      } else {
        setSummaryIsShow('none');
      }
    }
    if (prop.pickItem == 'ReportFields') {
      setReportValue(prop.valueArr.length);
      if (prop.valueArr.length != 0) {
        setReportIsShow('inline');
      } else {
        setReportIsShow('none');
      }
    }
    if (prop.pickItem == 'DisplayFields') {
      setDisplayValue(prop.valueArr.length);
      if (prop.valueArr.length != 0) {
        setDisplayIsShow('inline');
      } else {
        setDisplayIsShow('none');
      }
    }
    if (prop.pickItem == 'EditableFields') {
      setEditableValue(prop.valueArr.length);
      if (prop.valueArr.length != 0) {
        setEditableIsShow('inline');
      } else {
        setEditableIsShow('none');
      }
    }
皮倩雯's avatar
皮倩雯 committed
1212 1213
    if (prop.pickItem == 'DisplayColumns') {
      setDisplayColumns(prop.valueArr.length);
皮倩雯's avatar
皮倩雯 committed
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227
      if (prop.valueArr.length != 0) {
        setTransitIsShow('inline');
      } else {
        setTransitIsShow('none');
      }
    }
    if (prop.pickItem == 'RelatedEventFields') {
      setRelatedEventValue(prop.valueArr.length);
      if (prop.valueArr.length != 0) {
        setRelatedEventIsShow('inline');
      } else {
        setRelatedEventIsShow('none');
      }
    }
皮倩雯's avatar
皮倩雯 committed
1228
  };
1229

1230
  const chooseFlowOk = prop => {
涂伟's avatar
涂伟 committed
1231
    setEventFlowId(prop);
1232
    setEditTypeModal(false);
1233 1234
  };

皮倩雯's avatar
皮倩雯 committed
1235
  const pickFiled = fileds => {
皮倩雯's avatar
皮倩雯 committed
1236 1237
    if (form.getFieldsValue().TableName) {
      setFlag(flag + 1);
皮倩雯's avatar
皮倩雯 committed
1238 1239 1240 1241 1242 1243 1244 1245 1246 1247
      let pp = formateArrDataA(nu, 'group');
      if (form.getFieldValue(fileds)) {
        let ab = form.getFieldValue(fileds).split(',');
        let arr = Object.keys(pp);
        let b = [];
        let a = [];
        arr.map((item, index) => {
          pp[item].map((i, j) => {
            b.push(i);
          });
1248
        });
皮倩雯's avatar
皮倩雯 committed
1249 1250 1251 1252 1253 1254 1255
        ab.map((item, index) => {
          if (b.includes(item) == false) {
            if (item == '') {
              a = [];
            } else {
              a.push(item);
            }
1256
          }
皮倩雯's avatar
皮倩雯 committed
1257 1258 1259 1260
        });
        if (a.length > 0) {
          pp.外部字段 = a;
          arr.push('外部字段');
皮倩雯's avatar
皮倩雯 committed
1261
        }
皮倩雯's avatar
皮倩雯 committed
1262 1263 1264 1265 1266 1267 1268 1269 1270
        setFiled(pp);
        setCheckedList1(form.getFieldValue(fileds).split(','));
        setPickItem(fileds);
        setIsVisibleEdit(true);
      } else {
        setFiled(pp);
        setCheckedList1([]);
        setPickItem(fileds);
        setIsVisibleEdit(true);
皮倩雯's avatar
皮倩雯 committed
1271
      }
1272
    } else {
皮倩雯's avatar
皮倩雯 committed
1273 1274 1275 1276 1277
      notification.warning({
        message: '提示',
        duration: 3,
        description: '请先选择事件主表',
      });
皮倩雯's avatar
皮倩雯 committed
1278
    }
皮倩雯's avatar
皮倩雯 committed
1279
  };
1280

皮倩雯's avatar
皮倩雯 committed
1281
  const pickFiled1 = fileds => {
1282
    console.log(nu1);
1283
    // let pp = formateArrDataA1(nu1, 'group');
1284
    setKeepFiled(groupArr(nu1, 'group'));
1285
    if (form.getFieldValue(fileds)) {
1286
      // setFiled1(pp);
1287 1288 1289 1290
      setCheckedList1(form.getFieldValue(fileds).split(','));
      setPickItem(fileds);
      setIsVisible(true);
    } else {
1291
      // setFiled1(pp);
1292 1293 1294 1295
      setCheckedList1([]);
      setPickItem(fileds);
      setIsVisible(true);
    }
皮倩雯's avatar
皮倩雯 committed
1296
  };
1297

皮倩雯's avatar
皮倩雯 committed
1298 1299 1300 1301 1302 1303 1304
  const prefix = e => {
    let str = e.target.value;
    if (typeof str != 'string') {
      throw new Error(
        -1,
        '\u51fd\u6570makePy\u9700\u8981\u5b57\u7b26\u4e32\u7c7b\u578b\u53c2\u6570!',
      );
皮倩雯's avatar
皮倩雯 committed
1305
    }
皮倩雯's avatar
皮倩雯 committed
1306 1307 1308 1309 1310 1311
    let arrResult = new Array(); //保存中间结果的数组
    for (let i = 0, len = str.length; i < len; i++) {
      //获得unicode码
      let ch = str.charAt(i);
      //检查该unicode码是否在处理范围之内,在则返回该码对映汉字的拼音首字母,不在则调用其它函数处理
      arrResult.push(checkCh(ch));
皮倩雯's avatar
皮倩雯 committed
1312
    }
皮倩雯's avatar
皮倩雯 committed
1313
    // setPrefixName(mkRslt(arrResult))
1314
    console.log(mkRslt(arrResult));
皮倩雯's avatar
皮倩雯 committed
1315 1316 1317 1318 1319 1320 1321 1322 1323 1324
    form.setFieldsValue({ Code: mkRslt(arrResult) });
  };

  const checkCh = ch => {
    let uni = ch.charCodeAt(0);
    //如果不在汉字处理范围之内,返回原字符,也可以调用自己的处理函数
    if (uni > 40869 || uni < 19968) {
      return ch;
    } //dealWithOthers(ch);
    //检查是否是多音字,是按多音字处理,不是就直接在strChineseFirstPY字符串中找对应的首字母
皮倩雯's avatar
皮倩雯 committed
1325
    return oMultiDiff[uni] ? oMultiDiff[uni] : strChineseFirstPY.charAt(uni - 19968);
皮倩雯's avatar
皮倩雯 committed
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351
  };

  const mkRslt = arr => {
    let arrRslt = [''];
    for (let i = 0, len = arr.length; i < len; i++) {
      let str = arr[i];
      let strlen = str.length;
      if (strlen == 1) {
        for (var k = 0; k < arrRslt.length; k++) {
          arrRslt[k] += str;
          console.log(str);
        }
      } else {
        let tmpArr = arrRslt.slice(0);
        arrRslt = [];
        for (k = 0; k < strlen; k++) {
          //复制一个相同的arrRslt
          let tmp = tmpArr.slice(0);
          //把当前字符str[k]添加到每个元素末尾
          for (let j = 0; j < tmp.length; j++) {
            tmp[j] += str.charAt(k);
          }
          //把复制并修改后的数组连接到arrRslt上
          arrRslt = arrRslt.concat(tmp);
        }
      }
皮倩雯's avatar
皮倩雯 committed
1352
    }
1353 1354 1355
    let data = arrRslt.toString().slice(0, 6);
    console.log(arrRslt.toString().slice(0, 6));
    return data;
皮倩雯's avatar
皮倩雯 committed
1356 1357
  };

1358 1359 1360 1361 1362
  const inputType = value => {
    console.log(value);
    if (value) {
      form.setFieldsValue({ BusinessType: value });
    }
皮倩雯's avatar
皮倩雯 committed
1363 1364 1365 1366
  };
  const onCancel = () => {
    setIsVisible(false);
  };
皮倩雯's avatar
皮倩雯 committed
1367 1368 1369
  const onCancel11 = () => {
    setIsVisibleEdit(false);
  };
1370

1371 1372 1373 1374 1375 1376 1377
  // 搜索框监听
  const onSearch = value => {
    if (value) {
      form.setFieldsValue({ TableName: value });
    }
  };

1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395
  const pictruePreview = () => {
    setPreviewModal(true);
  };

  const uploadButton = (
    <div>
      <div
        style={{
          marginTop: 8,
        }}
      >
        请从图片库中选择
      </div>
    </div>
  );

  const onOk = props => {
    if (props) {
1396
      setImageUrl(`${window.location.origin}/civweb4/${props}`);
1397 1398 1399 1400 1401 1402 1403
      setIm(props);
      setKeepImgeUrl(props);
      form.setFieldsValue({ ImageExpression: `${props}` });
    }
    setShow('hidden');
  };

1404 1405 1406 1407
  const change = e => {
    setVisibleChecked(e);
  };

皮倩雯's avatar
皮倩雯 committed
1408 1409 1410
  return (
    <Drawer
      title={type === 'add' ? '添加事件类型' : '编辑事件类型'}
1411
      width="600px"
皮倩雯's avatar
皮倩雯 committed
1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422
      destroyOnClose
      {...props}
      footer={
        <Space>
          <Button onClick={onSubmit} type="primary">
            确定
          </Button>
        </Space>
      }
      // confirmLoading={loading}
    >
1423 1424
      <Spin tip="loading..." spinning={modalLoading}>
        {modalLoading ? null : <Form form={form}>
皮倩雯's avatar
皮倩雯 committed
1425
        <Row>
1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454
          {/* <Col span={24}>
            <Item
              label={
                <div style={{ display: 'flex', alignItems: 'center', fontWeight: 'bold' }}>
                  <Tooltip title="选择仅上报时,事件权限必填">
                    <InfoCircleOutlined
                      style={{
                        color: '#1890ff',
                      }}
                    />
                  </Tooltip>
                  <span>上报方式</span>
                </div>
              }
              name="CreateMode"
              labelCol={{ span: 5 }}
            >
              <Radio.Group onChange={onChange2} value={value} defaultValue={chee}>
                <Radio value={1}>立即发起(工单模型)</Radio>
                <Radio value={0}>仅上报(事件模型)</Radio>
              </Radio.Group>
            </Item>
          </Col> */}
          <Col span={24}>
            <Item name="CreateMode" labelCol={{ span: 5 }}>
              <div
                style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}
                className={styles.eventType}
              >
1455 1456 1457 1458 1459
                <Tooltip title="直接发起工单,上报权限使用工作流首节点字段配置和权限">
                  <img
                    onClick={() => onChange2(1)}
                    style={{
                      width: '100%',
1460
                      flex: 1
1461 1462 1463 1464 1465 1466
                    }}
                    src={value === 1 ? caseChooseImg : caseImg}
                    alt=""
                  />
                </Tooltip>
                <Tooltip title="事件填报后仅上报,进入调度箱进行办理,事件上报权限单独管理">
1467 1468
                  <img
                    onClick={() => onChange2(0)}
1469 1470 1471 1472
                    style={{ 
                      flex: 1,
                      width: '100%'
                     }}
1473
                    src={value === 0 ? eventChooseImg : eventImg}
1474 1475 1476 1477 1478 1479
                    alt=""
                  />
                </Tooltip>
              </div>
            </Item>
          </Col>
1480
          <Col span={15}>
皮倩雯's avatar
皮倩雯 committed
1481
            <Item
1482
              label="事件类型"
1483
              labelCol={{ span: 8 }}
皮倩雯's avatar
皮倩雯 committed
1484 1485 1486 1487
              name="Name"
              rules={[
                {
                  required: true,
1488
                  message: '请输入事件类型',
皮倩雯's avatar
皮倩雯 committed
1489 1490 1491
                },
              ]}
            >
1492 1493
              <Input
                onChange={prefix}
1494
                placeholder="请输入事件类型"
1495 1496
                style={{ marginLeft: '-3px' }}
              />
皮倩雯's avatar
皮倩雯 committed
1497 1498
            </Item>
          </Col>
1499
          <Col span={9}>
皮倩雯's avatar
皮倩雯 committed
1500 1501
            <Item
              label="编码前缀"
1502
              labelCol={{ span: 12 }}
皮倩雯's avatar
皮倩雯 committed
1503 1504 1505 1506
              name="Code"
              rules={[
                {
                  required: true,
1507
                  message: '请输入编码前缀',
皮倩雯's avatar
皮倩雯 committed
1508
                },
1509 1510 1511 1512 1513 1514 1515 1516 1517
                {
                  validator: (rule, value) => {
                    let regex = new RegExp(/^[A-Z]{2,6}$/g);
                    if (!regex.test(value)) {
                      return Promise.reject('编码只能输入2-6位纯大写英文!');
                    }
                    return Promise.resolve();
                  },
                },
皮倩雯's avatar
皮倩雯 committed
1518 1519
              ]}
            >
1520 1521 1522 1523
              <Input
                value={prefixName}
                placeholder="请输入编码前缀"
                style={{ marginLeft: '-3px' }}
1524
                maxLength={6}
1525
              />
皮倩雯's avatar
皮倩雯 committed
1526 1527
            </Item>
          </Col>
皮倩雯's avatar
皮倩雯 committed
1528
          <Col span={24}>
皮倩雯's avatar
皮倩雯 committed
1529 1530 1531
            <Item
              label="业务类型"
              name="BusinessType"
1532
              labelCol={{ span: 5 }}
皮倩雯's avatar
皮倩雯 committed
1533 1534
              rules={[
                {
1535
                  required: true,
皮倩雯's avatar
皮倩雯 committed
1536 1537 1538 1539 1540 1541 1542 1543 1544
                  validator: (rule, value) => {
                    if (form.getFieldsValue().BusinessType == '') {
                      return Promise.reject('业务类型必填');
                    }
                    return Promise.resolve();
                  },
                },
              ]}
            >
1545
              {/* <div>
1546 1547 1548 1549 1550 1551
                <Input
                  className="ue-editable-select-input"
                  onChange={inputType}
                  value={Type1}
                  style={{ marginLeft: '-3px' }}
                />
皮倩雯's avatar
皮倩雯 committed
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565
                <Dropdown
                  placement="bottomRight"
                  style={{ width: '430px' }}
                  overlay={
                    <Menu>
                      {treeData.length
                        ? treeData.map((item, index) => (
                            <Menu.Item
                              onClick={() => {
                                setType1(item);
                                form.setFieldsValue({ BusinessType: item });
                              }}
                              style={{ width: '430px', marginLeft: '-8px' }}
                              key={index}
皮倩雯's avatar
皮倩雯 committed
1566
                            >
皮倩雯's avatar
皮倩雯 committed
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583
                              {item}
                            </Menu.Item>
                          ))
                        : ''}
                    </Menu>
                  }
                >
                  <div
                    onClick={e => e.preventDefault()}
                    style={{
                      position: 'absolute',
                      left: '94%',
                      width: '1rem',
                      top: '0',
                      marginTop: '6px',
                    }}
                  >
皮倩雯's avatar
皮倩雯 committed
1584
                    <DownOutlined style={{ fontSize: '12px', color: 'rgba(0, 0, 0, 0.25)' }} />
皮倩雯's avatar
皮倩雯 committed
1585 1586
                  </div>
                </Dropdown>
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603
              </div> */}

              <Select
                placeholder="选择业务类型"
                // onChange={inputType}
                onSearch={inputType}
                showSearch
                style={{ marginLeft: '-3px' }}
              >
                {treeData
                  ? treeData.map((item, index) => (
                      <Option key={index} value={item}>
                        {item}
                      </Option>
                    ))
                  : ''}
              </Select>
皮倩雯's avatar
皮倩雯 committed
1604 1605
            </Item>
          </Col>
皮倩雯's avatar
皮倩雯 committed
1606
          <Col span={24}>
皮倩雯's avatar
皮倩雯 committed
1607 1608 1609
            <Item
              label="事件主表"
              name="TableName"
1610
              labelCol={{ span: 5 }}
皮倩雯's avatar
皮倩雯 committed
1611 1612 1613 1614 1615 1616 1617
              rules={[
                {
                  required: true,
                  message: '请选择事件主表',
                },
              ]}
            >
1618 1619 1620
              <Select
                placeholder="选择事件主表"
                onChange={changTable}
皮倩雯's avatar
皮倩雯 committed
1621
                // onSearch={onSearch}
1622
                showSearch
1623 1624
                style={{ marginLeft: '-3px' }}
              >
皮倩雯's avatar
皮倩雯 committed
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634
                {standingTable
                  ? standingTable.map((item, index) => (
                      <Option key={index} value={item.text}>
                        {item.text}
                      </Option>
                    ))
                  : ''}
              </Select>
            </Item>
          </Col>
邓超's avatar
邓超 committed
1635 1636
        </Row>
        {/* </Item> */}
皮倩雯's avatar
皮倩雯 committed
1637

邓超's avatar
邓超 committed
1638
        {/* <Col span={5}>
皮倩雯's avatar
皮倩雯 committed
1639 1640
            <Item />
          </Col>
1641
          <Col span={19}>
皮倩雯's avatar
皮倩雯 committed
1642 1643 1644 1645 1646
            <Item name="Editable">
              <Checkbox onChange={onChange1} checked={editable}>
                上报后可以编辑(需配置编辑字段)
              </Checkbox>
            </Item>
1647
          </Col> */}
邓超's avatar
邓超 committed
1648
        <Row>
1649
          {/* <Col span={24}>
1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661
            <Item
              label={
                <div style={{ display: 'flex', alignItems: 'center' }}>
                  <Tooltip title="选择仅上报时,事件权限必填">
                    <InfoCircleOutlined
                      style={{
                        color: '#1890ff',
                      }}
                    />
                  </Tooltip>
                  <span>上报方式</span>
                </div>
1662 1663
              }
              name="CreateMode"
1664
              labelCol={{ span: 5 }}
1665
            >
皮倩雯's avatar
皮倩雯 committed
1666
              <Radio.Group onChange={onChange2} value={value} defaultValue={chee}>
1667
                <Radio value={1}>立即发起(工单模型)</Radio>
1668
                <Radio value={0}>仅上报(事件模型)</Radio>
皮倩雯's avatar
皮倩雯 committed
1669 1670
              </Radio.Group>
            </Item>
1671
          </Col> */}
皮倩雯's avatar
皮倩雯 committed
1672
          <Col span={24}>
皮倩雯's avatar
皮倩雯 committed
1673
            <Item
皮倩雯's avatar
皮倩雯 committed
1674
              label={
1675
                <div style={{ display: 'flex', alignItems: 'center' }}>
皮倩雯's avatar
皮倩雯 committed
1676 1677 1678 1679 1680 1681 1682 1683
                  <Tooltip title={`存在${summaryValue}个外部字段`}>
                    <InfoCircleOutlined
                      style={{
                        color: 'red',
                        display: summaryIsShow,
                      }}
                    />
                  </Tooltip>
1684

皮倩雯's avatar
皮倩雯 committed
1685 1686 1687
                  <span>摘要字段</span>
                </div>
              }
皮倩雯's avatar
皮倩雯 committed
1688
              name="SummaryFields"
1689
              labelCol={{ span: 5 }}
皮倩雯's avatar
皮倩雯 committed
1690 1691 1692
              rules={[
                {
                  validator: (rule, value) => {
1693
                    console.log(checkedList1);
1694 1695
                    let aa = form.getFieldValue().SummaryFields;
                    let bb = [];
1696
                    console.log(aa.split(','));
1697 1698 1699
                    aa.split(',').map(i => {
                      if (i != '') {
                        bb.push(i);
1700
                      }
1701
                    });
1702 1703
                    console.log(bb);
                    if (aa == '') {
皮倩雯's avatar
皮倩雯 committed
1704 1705
                      return Promise.reject('摘要字段必选');
                    }
1706 1707 1708 1709 1710
                    // if (bb.length < 1 || aa.split(',').length > 5) {
                    //   return Promise.reject('最少配置一个字段,最多配置五个字段');
                    // }
                    if (bb.length < 1) {
                      return Promise.reject('最少配置一个字段');
1711
                    }
皮倩雯's avatar
皮倩雯 committed
1712 1713 1714
                    return Promise.resolve();
                  },
                },
1715 1716 1717 1718
                {
                  required: true,
                  message: '请选择摘要字段',
                },
皮倩雯's avatar
皮倩雯 committed
1719 1720
              ]}
            >
1721 1722 1723 1724
              <div style={{ display: 'flex' }}>
                <Form.Item name="SummaryFields" style={{ marginBottom: 0, width: '100%' }}>
                  <Input placeholder="请选择摘要字段" allowClear />
                </Form.Item>
皮倩雯's avatar
皮倩雯 committed
1725 1726 1727 1728
                <Button
                  type="dashed"
                  onClick={() => pickFiled('SummaryFields')}
                  icon={<PlusOutlined style={{ marginTop: '5px' }} />}
1729
                  style={{ marginLeft: '10px', width: '70px' }}
皮倩雯's avatar
皮倩雯 committed
1730 1731 1732 1733
                />
              </div>
            </Item>
          </Col>
1734 1735 1736 1737 1738 1739 1740 1741 1742
          {value === 0 ? (
            <Col span={24}>
              <Item
                label={
                  <div style={{ display: 'flex', alignItems: 'center' }}>
                    <Tooltip title={`存在${reportValue}个外部字段`}>
                      <InfoCircleOutlined
                        style={{
                          color: 'red',
1743

1744 1745 1746 1747
                          display: reportIsShow,
                        }}
                      />
                    </Tooltip>
1748

1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761
                    <span>上报字段</span>
                  </div>
                }
                name="ReportFields"
                labelCol={{ span: 5 }}
                rules={[
                  {
                    validator: (rule, value) => {
                      if (form.getFieldValue().ReportFields == '') {
                        return Promise.reject('上报字段必选');
                      }
                      return Promise.resolve();
                    },
皮倩雯's avatar
皮倩雯 committed
1762
                  },
1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791
                  {
                    required: true,
                    message: '请选择上报字段',
                  },
                ]}
              >
                <div style={{ display: 'flex' }}>
                  <Form.Item name="ReportFields" style={{ marginBottom: 0, width: '100%' }}>
                    <Input placeholder="请选择上报字段" allowClear />
                  </Form.Item>
                  <Button
                    type="dashed"
                    onClick={() => pickFiled('ReportFields')}
                    icon={<PlusOutlined style={{ marginTop: '5px' }} />}
                    style={{ marginLeft: '10px', width: '70px' }}
                  />
                </div>
              </Item>
            </Col>
          ) : null}
          {value === 0 ? (
            <Col span={24}>
              <Item
                label={
                  <div style={{ display: 'flex', alignItems: 'center' }}>
                    <Tooltip title={`存在${displayValue}个外部字段`}>
                      <InfoCircleOutlined
                        style={{
                          color: 'red',
1792

1793 1794 1795 1796
                          display: displayIsShow,
                        }}
                      />
                    </Tooltip>
1797

1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810
                    <span>显示字段</span>
                  </div>
                }
                name="DisplayFields"
                labelCol={{ span: 5 }}
                rules={[
                  {
                    validator: (rule, value) => {
                      if (form.getFieldValue().DisplayFields == '') {
                        return Promise.reject('显示字段必选');
                      }
                      return Promise.resolve();
                    },
皮倩雯's avatar
皮倩雯 committed
1811
                  },
1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831
                  {
                    required: true,
                    message: '请选择显示字段',
                  },
                ]}
              >
                <div style={{ display: 'flex' }}>
                  <Form.Item name="DisplayFields" style={{ marginBottom: 0, width: '100%' }}>
                    <Input placeholder="请选择显示字段" allowClear />
                  </Form.Item>
                  <Button
                    type="dashed"
                    onClick={() => pickFiled('DisplayFields')}
                    icon={<PlusOutlined style={{ marginTop: '5px' }} />}
                    style={{ marginLeft: '10px', width: '70px' }}
                  />
                </div>
              </Item>
            </Col>
          ) : null}
1832
          {/* <Col span={24}>
皮倩雯's avatar
皮倩雯 committed
1833
            <Item
皮倩雯's avatar
皮倩雯 committed
1834
              label={
1835
                <div style={{ display: 'flex', alignItems: 'center' }}>
皮倩雯's avatar
皮倩雯 committed
1836 1837 1838 1839
                  <Tooltip title={`存在${editableValue}个外部字段`}>
                    <InfoCircleOutlined
                      style={{
                        color: 'red',
1840

皮倩雯's avatar
皮倩雯 committed
1841 1842 1843 1844
                        display: editableIsShow,
                      }}
                    />
                  </Tooltip>
1845

皮倩雯's avatar
皮倩雯 committed
1846 1847 1848
                  <span>编辑字段</span>
                </div>
              }
皮倩雯's avatar
皮倩雯 committed
1849
              name="EditableFields"
1850
              labelCol={{ span: 5 }}
皮倩雯's avatar
皮倩雯 committed
1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864
              // rules={[
              //   {
              //     validator: (rule, value) => {
              //       if (form.getFieldValue().EditableFields == '') {
              //         return Promise.reject('编辑字段必选');
              //       }
              //       return Promise.resolve();
              //     },
              //   },
              //   {
              //     required: true,
              //     message: '请选择编辑字段',
              //   },
              // ]}
皮倩雯's avatar
皮倩雯 committed
1865
            >
1866 1867 1868 1869
              <div style={{ display: 'flex' }}>
                <Form.Item name="EditableFields" style={{ marginBottom: 0, width: '100%' }}>
                  <Input placeholder="请选择编辑字段" allowClear />
                </Form.Item>
皮倩雯's avatar
皮倩雯 committed
1870 1871 1872 1873
                <Button
                  type="dashed"
                  onClick={() => pickFiled('EditableFields')}
                  icon={<PlusOutlined style={{ marginTop: '5px' }} />}
1874
                  style={{ marginLeft: '10px', width: '70px' }}
皮倩雯's avatar
皮倩雯 committed
1875 1876 1877
                />
              </div>
            </Item>
1878
          </Col> */}
皮倩雯's avatar
皮倩雯 committed
1879
          <Col span={24}>
皮倩雯's avatar
皮倩雯 committed
1880 1881
            <Item
              label={
1882
                <div style={{ display: 'flex', alignItems: 'center' }}>
皮倩雯's avatar
皮倩雯 committed
1883
                  <Tooltip title={`存在${displayColumns}个外部字段`}>
皮倩雯's avatar
皮倩雯 committed
1884 1885 1886 1887 1888 1889 1890 1891
                    <InfoCircleOutlined
                      style={{
                        color: 'red',
                        marginRight: '2px',
                        display: transitIsShow,
                      }}
                    />
                  </Tooltip>
皮倩雯's avatar
皮倩雯 committed
1892
                  <span>显示列字段</span>
皮倩雯's avatar
皮倩雯 committed
1893 1894
                </div>
              }
皮倩雯's avatar
皮倩雯 committed
1895
              name="DisplayColumns"
1896
              labelCol={{ span: 5 }}
皮倩雯's avatar
皮倩雯 committed
1897
            >
1898
              <div style={{ display: 'flex' }}>
皮倩雯's avatar
皮倩雯 committed
1899 1900
                <Form.Item name="DisplayColumns" style={{ marginBottom: 0, width: '100%' }}>
                  <Input placeholder="请选择显示列字段" allowClear />
1901
                </Form.Item>
皮倩雯's avatar
皮倩雯 committed
1902 1903
                <Button
                  type="dashed"
皮倩雯's avatar
皮倩雯 committed
1904
                  onClick={() => pickFiled('DisplayColumns')}
皮倩雯's avatar
皮倩雯 committed
1905
                  icon={<PlusOutlined style={{ marginTop: '5px' }} />}
1906
                  style={{ marginLeft: '10px', width: '70px' }}
皮倩雯's avatar
皮倩雯 committed
1907 1908 1909
                />
              </div>
            </Item>
皮倩雯's avatar
皮倩雯 committed
1910
          </Col>
1911
          {/* <Col span={24}>
1912
            <Item label="置顶条件" name="TopWhere" labelCol={{ span: 5 }}>
皮倩雯's avatar
皮倩雯 committed
1913 1914
              <Input placeholder="请输入置顶条件" allowClear />
            </Item>
1915
          </Col> */}
1916
          {/* <Col span={24}>
1917
            <Item label="上报视图" name="ReportPage" labelCol={{ span: 5 }}>
皮倩雯's avatar
皮倩雯 committed
1918 1919 1920
              <Input placeholder="请输入上报视图" allowClear />
            </Item>
          </Col>
皮倩雯's avatar
皮倩雯 committed
1921
          <Col span={24}>
1922
            <Item label="处理视图" name="DealPage" labelCol={{ span: 5 }}>
皮倩雯's avatar
皮倩雯 committed
1923 1924
              <Input placeholder="请输入处理视图" allowClear />
            </Item>
1925
          </Col> */}
1926

1927
          {/* <Col span={24}>
1928
            <Item label="关联事件" name="RelatedEvents" labelCol={{ span: 5 }}>
皮倩雯's avatar
皮倩雯 committed
1929 1930
              <Input placeholder="请输入关联事件" allowClear />
            </Item>
1931 1932
          </Col> */}
          {/* <Col span={24}>
皮倩雯's avatar
皮倩雯 committed
1933
            <Item
皮倩雯's avatar
皮倩雯 committed
1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947
              label={
                <div>
                  <Tooltip title={`存在${relatedEventValue}个外部字段`}>
                    <InfoCircleOutlined
                      style={{
                        color: 'red',
                        marginRight: '2px',
                        display: relatedEventIsShow,
                      }}
                    />
                  </Tooltip>
                  <span>关联字段</span>
                </div>
              }
皮倩雯's avatar
皮倩雯 committed
1948
              name="RelatedEventFields"
1949
              labelCol={{ span: 5 }}
皮倩雯's avatar
皮倩雯 committed
1950
            >
1951 1952 1953 1954
              <div style={{ display: 'flex' }}>
                <Form.Item name="RelatedEventFields" style={{ marginBottom: 0, width: '100%' }}>
                  <Input placeholder="请选择关联字段" allowClear />
                </Form.Item>
皮倩雯's avatar
皮倩雯 committed
1955 1956 1957 1958
                <Button
                  type="dashed"
                  onClick={() => pickFiled('RelatedEventFields')}
                  icon={<PlusOutlined style={{ marginTop: '5px' }} />}
1959
                  style={{ marginLeft: '10px', width: '70px' }}
皮倩雯's avatar
皮倩雯 committed
1960 1961 1962
                />
              </div>
            </Item>
1963
          </Col> */}
1964 1965 1966 1967 1968
          <Col span={24}>
            <Item
              name="Reportable"
              label={
                <div style={{ display: 'flex', alignItems: 'center' }}>
1969
                  <Tooltip
1970
                  title = {<div>标准使用,使用标准工单系统,可通过勾选 前端/手持,来控制是否展示事件的填报入口,勾选及展示;<br/>内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用</div>}
1971 1972 1973
                    // title="标准使用,使用标准工单系统,可通过勾选 前端/手持,来控制是否展示事件的填报入口,勾选及展示;
                    // 内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用。"
                  >
1974 1975 1976
                    <InfoCircleOutlined
                      style={{
                        color: '#1890ff',
1977
                        marginRight: '2px',
1978 1979 1980
                      }}
                    />
                  </Tooltip>
1981
                  <span>使用方式</span>
1982 1983 1984 1985
                </div>
              }
              labelCol={{ span: 5 }}
            >
1986
              <div style={{ display: 'flex' }}>
1987
                {/* <span style={{ marginRight: '5px' }}>内置使用</span> */}
1988
                <Switch
1989 1990
                  checkedChildren="标准用法"
                  unCheckedChildren="内置用法"
1991 1992 1993 1994 1995 1996 1997 1998 1999 2000
                  checked={visibleChecked}
                  onChange={change}
                />
              </div>
            </Item>
          </Col>
          <div style={{ display: 'inline-block', marginLeft: '112px', marginRight: '50px' }}>
            <Item name="ReportFromWeb">
              <Checkbox
                onChange={onChange3}
2001 2002
                checked={ReportFromWeb && visibleChecked}
                disabled={!visibleChecked}
2003 2004 2005 2006 2007 2008 2009 2010 2011
              >
                前端
              </Checkbox>
            </Item>
          </div>
          <div style={{ display: 'inline-block' }}>
            <Item name="ReportFromMobile">
              <Checkbox
                onChange={onChange4}
2012 2013
                checked={ReportFromMobile && visibleChecked}
                disabled={!visibleChecked}
2014 2015 2016 2017 2018 2019 2020
              >
                手持
              </Checkbox>
            </Item>
          </div>
          {value === 0 ? (
            <Col span={24}>
2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031
              <Item
                label="上报权限"
                name="Roles"
                labelCol={{ span: 5 }}
                rules={[
                  {
                    required: true,
                    message: '请选择上报权限',
                  },
                ]}
              >
2032 2033
                <div style={{ display: 'flex' }}>
                  <Form.Item name="Roles" style={{ marginBottom: 0, width: '100%' }}>
2034
                    <Input placeholder="请选择上报权限" allowClear />
2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048
                  </Form.Item>
                  <Button
                    type="dashed"
                    onClick={() => pickFiled1('Roles')}
                    icon={<PlusOutlined style={{ marginTop: '5px' }} />}
                    style={{ marginLeft: '10px', width: '70px' }}
                  />
                </div>
              </Item>
            </Col>
          ) : null}
          <Col span={24}>
            <Item label="接口配置" name="InterfaceConfig" labelCol={{ span: 5 }}>
              <Input placeholder="请输入接口配置" />
2049 2050
            </Item>
          </Col>
皮倩雯's avatar
皮倩雯 committed
2051
        </Row>
2052 2053 2054
        {/* <Item style={{ marginBottom: '0px' }}>
          <span style={{ marginLeft: '112px' }}>客户端上报(需配置事件权限、受理流程)</span>
        </Item> */}
2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095
        <Row>
          <Col span={10}>
            <Item
              label="图标"
              name="ImageExpression"
              style={{ height: '112px' }}
              labelCol={{ span: 12 }}
            >
              {imageUrl ? (
                <div
                  style={{
                    width: '104px',
                    height: '104px',
                    border: '1px solid #d9d9d9',
                    borderRadius: '2px',
                    padding: '8px',
                    position: 'relative',
                  }}
                  onMouseEnter={() => setShow('visible')}
                  onMouseLeave={() => setShow('hidden')}
                >
                  <img
                    src={imageUrl}
                    alt="singleFile"
                    style={{
                      width: '100%',
                      backgroundColor: '#2881a1',
                    }}
                  />

                  {show == 'visible' ? (
                    <>
                      <div className={styles.imgg} />
                      <DeleteOutlined
                        onClick={() => {
                          setImageUrl('');
                          setIm('');
                          setKeepImgeUrl('');
                          form.setFieldsValue({ ImageExpression: '' });
                        }}
                        style={{
皮倩雯's avatar
皮倩雯 committed
2096
                          position: 'absolute',
2097
                          fontSize: '18px',
2098
                          left: '24px',
皮倩雯's avatar
皮倩雯 committed
2099
                          top: '45px',
2100
                          color: 'white',
2101
                          zIndex: '999',
2102 2103
                        }}
                      />
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113
                      <PictureOutlined
                        onClick={pictruePreview}
                        style={{
                          position: 'absolute',
                          fontSize: '18px',
                          left: '54px',
                          top: '45px',
                          color: 'white',
                          zIndex: '999',
                        }}
2114
                      />
2115 2116 2117 2118 2119 2120 2121 2122 2123 2124
                    </>
                  ) : (
                    <></>
                  )}
                </div>
              ) : (
                <Image
                  width="104px"
                  // height={100}
                  src="error"
2125
                  onClick={pictruePreview}
2126 2127 2128 2129 2130
                  fallback="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGD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WsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="
                />
              )}
            </Item>
          </Col>
2131
          {/* <Col span={12}>
2132 2133 2134 2135 2136
            <Item>
              <Button type="primary" onClick={pictruePreview} style={{ marginTop: '33px' }}>
                从图片库中选择
              </Button>
            </Item>
2137
          </Col> */}
2138
        </Row>
2139 2140 2141
      </Form>}
      
      </Spin>
2142
      {/* <ChangeAdd
皮倩雯's avatar
皮倩雯 committed
2143 2144 2145 2146
        visible={isVisible}
        onCancel={onCancel}
        callBackSubmit={onOK}
        newCheckedList={checkedList1}
皮倩雯's avatar
皮倩雯 committed
2147 2148
        filed11={filed1}
        pickItem={pickItem}
2149
      /> */}
2150 2151 2152 2153 2154 2155 2156 2157 2158 2159
      <PreviewModal
        visible={previewModal}
        onCancel={() => {
          setPreviewModal(false);
        }}
        imageUrl={im}
        keepImgeUrl={keepImgeUrl}
        type={type}
        callBackSubmit={onOk}
      />
2160 2161 2162 2163 2164
      <EditTypeModal
        visible={editTypeModal}
        tableData={flowTableData}
        onCancel={() => {
          setEditTypeModal(false);
2165
          setValue(0);
2166 2167 2168
        }}
        callBackSubmit={chooseFlowOk}
      />
2169 2170 2171 2172 2173 2174 2175 2176
      <RMSComponents
        visible={isVisible}
        onCancel={onCancel}
        callBackSubmit={onOK}
        newCheckedList={checkedList1} // 单选框中的值
        pickItem={pickItem}
        groupName={groupName} // 打开组件展示的分组名,用来首次获取数据
        chooseGroupName={chooseGroupName} // 可选分组名
2177
        keepFiled={keepFiled} // 分组数据
2178
        dataType="name"
皮倩雯's avatar
皮倩雯 committed
2179 2180 2181 2182 2183 2184 2185 2186
      />
      <ChangeEdit
        visible={isVisibleEdit}
        onCancel={onCancel11}
        callBackSubmit={onOK1}
        newCheckedList={checkedList1}
        filed={filed}
        flag={flag}
皮倩雯's avatar
皮倩雯 committed
2187 2188 2189 2190 2191
        pickItem={pickItem}
        formObj={formObj}
      />
    </Drawer>
  );
皮倩雯's avatar
皮倩雯 committed
2192 2193
};

皮倩雯's avatar
皮倩雯 committed
2194
export default AddModal;