"use strict";

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _FormModal = _interopRequireDefault(require("../../../../FormModal"));
var _config = _interopRequireDefault(require("../../../../../_mapUtil/config"));
var _serviceConfig = _interopRequireDefault(require("../../../../../_mapUtil/serviceConfig"));
var _config2 = _interopRequireDefault(require("../../../Components/config"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /**
 * 工单流程详情---客服工单
 */
var getDetailsModalValue = _config2["default"].getDetailsModalValue,
  getManageType = _config2["default"].getManageType;
var getOrgList = _serviceConfig["default"].getOrgList;
var ProcessDetails = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
  var _props$detailsVal = props.detailsVal,
    detailsVal = _props$detailsVal === void 0 ? {} : _props$detailsVal,
    modalType = props.modalType,
    _props$details = props.details,
    details = _props$details === void 0 ? {} : _props$details;
  var _useState = (0, _react.useState)([]),
    _useState2 = _slicedToArray(_useState, 2),
    orgData = _useState2[0],
    setOrgData = _useState2[1]; // 部门数据
  var _useState3 = (0, _react.useState)([]),
    _useState4 = _slicedToArray(_useState3, 2),
    formData = _useState4[0],
    setFormData = _useState4[1]; // 详情信息
  var _useState5 = (0, _react.useState)([]),
    _useState6 = _slicedToArray(_useState5, 2),
    manageList = _useState6[0],
    setManageList = _useState6[1]; // 办理部门相关
  var myForm = (0, _react.useRef)();
  (0, _react.useEffect)(function () {
    getOrgList(function (data) {
      return setOrgData(data);
    }); // 部门数据
  }, []);

  // 整理详情信息
  (0, _react.useEffect)(function () {
    if (detailsVal) {
      handleDetails();
      // getManageInfo(details || {});
      // getDeptOrgList(details?.disposeDeptList || []);
    }
  }, [detailsVal]);

  // 获取办理相关信息字段---区分派发和转派
  // const getManageInfo = (data = {}) => {
  // const manageType = getManageType({modalType});
  //   const manageData = manageType === 'gs' ? data?.disposeDeptList : data?.disposeDeptList || [];
  //   manageType === 'gs' ? getCompanyList(manageData) : getDeptOrgList(manageData);
  // };

  // 办理单位相关
  var getCompanyList = function getCompanyList() {
    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
    var list = [];
    (data === null || data === void 0 ? void 0 : data.length) && data.map(function (item, index) {
      var currentList = [{
        type: 'treeSelect',
        label: '办理单位',
        paramName: "companyId-".concat(index),
        itemProps: {
          treeData: [],
          showInitialValue: item === null || item === void 0 ? void 0 : item.disposeDeptName
        }
      }, {
        type: 'treeSelect',
        label: '办理单位负责人',
        paramName: "companyDutyMan-".concat(index),
        itemProps: {
          treeData: [],
          showInitialValue: item === null || item === void 0 ? void 0 : item.disposeDeptDutyManStr
        }
      }, {
        type: 'input',
        label: '联系方式',
        paramName: "phone-".concat(index),
        formItemLayout: {
          initialValue: item === null || item === void 0 ? void 0 : item.phone
        }
      }];
      list.push.apply(list, currentList);
    });
    // setManageList(list);
    return list;
  };

  // 办理部门相关
  var getDeptOrgList = function getDeptOrgList() {
    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
    var list = [];
    (data === null || data === void 0 ? void 0 : data.length) && data.map(function (item, index) {
      var currentList = [{
        type: 'treeSelect',
        label: '办理部门',
        paramName: "disposeDeptId-".concat(index),
        itemProps: {
          treeData: [],
          showInitialValue: item === null || item === void 0 ? void 0 : item.disposeDeptName
        }
      }, {
        type: 'treeSelect',
        label: '办理部门负责人',
        paramName: "disposeDeptDutyMan-".concat(index),
        itemProps: {
          treeData: [],
          showInitialValue: item === null || item === void 0 ? void 0 : item.disposeDeptDutyManStr
        }
      }, {
        type: 'input',
        label: '联系方式',
        paramName: "phone-".concat(index),
        formItemLayout: {
          initialValue: item === null || item === void 0 ? void 0 : item.phone
        }
      }];
      list.push.apply(list, currentList);
    });
    // setManageList(list);
    return list;
  };
  var detailsItems = function detailsItems() {
    var _detailsVal$operateCo, _detailsVal$operateCo2;
    var listDatas = {
      // 信息中心派发、重新派发
      Payout: [{
        type: 'datePicker',
        label: '查阅截至时间',
        paramName: 'readLimitTime',
        itemProps: {
          showTime: {
            format: 'HH:mm:ss'
          },
          format: 'YYYY-MM-DD HH:mm:ss'
        },
        formItemLayout: {
          // initialValue: details?.deadline,
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }, {
        type: 'radio',
        label: '是否介入督办',
        paramName: 'interveneSupervises',
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        itemProps: {
          options: [{
            label: '是',
            value: true
          }, {
            label: '否',
            value: false
          }]
        },
        weights: detailsVal !== null && detailsVal !== void 0 && detailsVal.interveneSupervises ? 1 : 2
      }].concat(_toConsumableArray(detailsVal !== null && detailsVal !== void 0 && detailsVal.interveneSupervises ? [{
        type: 'treeSelect',
        label: '督办部门',
        paramName: 'supervisesDeptId',
        itemProps: {
          treeData: orgData,
          treeDefaultExpandAll: true
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }] : []), _toConsumableArray(getCompanyList((detailsVal === null || detailsVal === void 0 ? void 0 : detailsVal.companyList) || (details === null || details === void 0 ? void 0 : details.companyList)) || []), [{
        type: 'datePicker',
        label: '办理截止时间',
        paramName: 'finishLimitTime',
        itemProps: {
          showTime: {
            format: 'HH:mm:ss'
          },
          format: 'YYYY-MM-DD HH:mm:ss'
        },
        formItemLayout: {
          // initialValue: details?.finishLimitTime,
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }, {
        type: 'textArea',
        label: '备注',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        weights: 3
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }]),
      // 子公司部门处置
      Dispose: [{
        type: 'textArea',
        label: '办理结果',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }, {
        type: 'vtxUpload',
        label: '照片',
        paramName: 'disposePhoto',
        weights: 3,
        formItemLayout: {
          initialValue: formData.disposePhoto || []
        },
        itemProps: {
          maxLength: 3,
          maxSize: 100 * 1024 * 1024,
          accept: '.jpg, .jpeg, .png'
        }
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }],
      // 公司处置
      UnitDispose: [{
        type: 'textArea',
        label: '办理结果',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }, {
        type: 'vtxUpload',
        label: '照片',
        paramName: 'disposePhoto',
        weights: 3,
        formItemLayout: {
          initialValue: formData.disposePhoto || []
        },
        itemProps: {
          maxLength: 3,
          maxSize: 100 * 1024 * 1024,
          accept: '.jpg, .jpeg, .png'
        }
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }],
      // 子公司反馈
      UnitFeedback: [{
        type: 'textArea',
        label: '办理结果',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }, {
        type: 'vtxUpload',
        label: '照片',
        paramName: 'disposePhoto',
        weights: 3,
        formItemLayout: {
          initialValue: formData.disposePhoto || []
        },
        itemProps: {
          maxLength: 3,
          maxSize: 100 * 1024 * 1024,
          accept: '.jpg, .jpeg, .png'
        }
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }],
      // 延期申请
      TimeOutApply: [
      // {
      //   type: 'datePicker',
      //   label: '截止时间',
      //   paramName: 'deadline',
      //   itemProps: {
      //     disabled: true,
      //     showTime: { format: 'HH:mm:ss' },
      //     format: 'YYYY-MM-DD HH:mm:ss',
      //   },
      //   formItemLayout: {
      //     initialValue: dayjs(),
      //   },
      // },
      {
        type: 'datePicker',
        label: '延期至',
        paramName: 'deadline',
        itemProps: {
          showTime: {
            format: 'HH:mm:ss'
          },
          format: 'YYYY-MM-DD HH:mm:ss'
        },
        formItemLayout: {
          initialValue: details === null || details === void 0 ? void 0 : details.deadline,
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }, {
        type: 'textArea',
        label: '延期说明',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }, {
        type: 'vtxUpload',
        label: '照片',
        paramName: 'disposePhoto',
        weights: 3,
        formItemLayout: {
          initialValue: formData.disposePhoto || []
        },
        itemProps: {
          maxLength: 3,
          maxSize: 100 * 1024 * 1024,
          accept: '.jpg, .jpeg, .png'
        }
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }],
      // 批示
      Written: [{
        type: 'textArea',
        label: '批示内容',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }, {
        type: 'vtxUpload',
        label: '照片',
        paramName: 'disposePhoto',
        weights: 3,
        formItemLayout: {
          initialValue: formData.disposePhoto || []
        },
        itemProps: {
          maxLength: 6,
          maxSize: 100 * 1024 * 1024,
          accept: '.jpg, .jpeg, .png'
        }
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }],
      // 延期审核
      TimeOutCheck: [{
        type: 'radio',
        label: '是否批准延期',
        paramName: 'beenPass',
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        itemProps: {
          options: [{
            label: '是',
            value: true
          }, {
            label: '否',
            value: false
          }]
        }
      }].concat(_toConsumableArray(detailsVal !== null && detailsVal !== void 0 && detailsVal.beenPass ? [{
        type: 'datePicker',
        label: '办理截止时间',
        paramName: 'deadline',
        itemProps: {
          showTime: {
            format: 'HH:mm:ss'
          },
          format: 'YYYY-MM-DD HH:mm:ss'
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }] : []), [{
        type: 'textArea',
        label: '备注',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        weights: 3
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }]),
      // 子公司审核---二级审核
      OrderCheck: [{
        type: 'input',
        label: '审核结果',
        paramName: 'operateContent',
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }].concat(_toConsumableArray((detailsVal === null || detailsVal === void 0 || (_detailsVal$operateCo = detailsVal.operateContent) === null || _detailsVal$operateCo === void 0 ? void 0 : _detailsVal$operateCo.indexOf('审核通过')) < 0 ? [].concat(_toConsumableArray(getDeptOrgList(details === null || details === void 0 ? void 0 : details.disposeDeptList) || []), [{
        type: 'textArea',
        label: '退回说明',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }]) : [])),
      // 信息中心审核---一级审核
      InfoOrderCheck: [{
        type: 'input',
        label: '审核结果',
        paramName: 'operateContent',
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }].concat(_toConsumableArray((detailsVal === null || detailsVal === void 0 || (_detailsVal$operateCo2 = detailsVal.operateContent) === null || _detailsVal$operateCo2 === void 0 ? void 0 : _detailsVal$operateCo2.indexOf('审核通过')) < 0 ? [].concat(_toConsumableArray(getCompanyList(details === null || details === void 0 ? void 0 : details.disposeDeptList) || []), [{
        type: 'textArea',
        label: '退回说明',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }]) : [])),
      // 再次办理
      OrderTwoManage: [{
        type: 'treeSelect',
        label: '督办部门',
        paramName: 'supervisesDeptId',
        itemProps: {
          treeData: orgData,
          treeDefaultExpandAll: true
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }].concat(_toConsumableArray(getCompanyList((detailsVal === null || detailsVal === void 0 ? void 0 : detailsVal.companyList) || (details === null || details === void 0 ? void 0 : details.companyList)) || []), [{
        type: 'datePicker',
        label: '查阅截至时间',
        paramName: 'readLimitTime',
        itemProps: {
          showTime: {
            format: 'HH:mm:ss'
          },
          format: 'YYYY-MM-DD HH:mm:ss'
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }, {
        type: 'datePicker',
        label: '二次办理截止时间',
        paramName: 'finishLimitTime',
        itemProps: {
          showTime: {
            format: 'HH:mm:ss'
          },
          format: 'YYYY-MM-DD HH:mm:ss'
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }, {
        type: 'textArea',
        label: '二次办理说明',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        },
        weights: 3
      }]),
      // 回访
      PayReturn: [{
        type: 'input',
        label: '',
        paramName: 'operateContent',
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }, {
        type: 'textArea',
        label: '评价内容',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        weights: 3
      }],
      // 结束
      EndOrder: [{
        type: 'textArea',
        label: '说明',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        weights: 3
      }],
      // 子公司撤回
      Recall: [{
        type: 'treeSelect',
        label: '撤回办理部门',
        paramName: 'supervisesDeptId',
        paramNameStr: 'supervisesDeptName',
        itemProps: {
          treeData: orgData,
          treeDefaultExpandAll: true
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }],
      // 信息中心撤回
      InfoRecall: [{
        type: 'treeSelect',
        label: '撤回办理单位',
        paramName: 'supervisesDeptId',
        paramNameStr: 'supervisesDeptName',
        itemProps: {
          treeData: orgData,
          treeDefaultExpandAll: true
        },
        formItemLayout: {
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }],
      // 子公司转派、重新转派
      Redeploy: [].concat(_toConsumableArray(getDeptOrgList((detailsVal === null || detailsVal === void 0 ? void 0 : detailsVal.deptOrgList) || (details === null || details === void 0 ? void 0 : details.deptOrgList)) || []), [{
        type: 'datePicker',
        label: '办理截止时间',
        paramName: 'finishLimitTime',
        itemProps: {
          showTime: {
            format: 'HH:mm:ss'
          },
          format: 'YYYY-MM-DD HH:mm:ss'
        },
        formItemLayout: {
          // initialValue: details?.finishLimitTime,
          rules: [_objectSpread({}, _config["default"].reg.required)]
        }
      }, {
        type: 'textArea',
        label: '备注',
        paramName: 'suggestion',
        itemProps: {
          maxLength: 200
        },
        weights: 3
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }]),
      // 退回---1、子公司退回  2、子公司部门退回
      Back: [{
        type: 'textArea',
        label: '退回原因',
        paramName: 'suggestion',
        weights: 3
      }, {
        type: 'vtxUpload',
        label: '照片',
        paramName: 'disposePhoto',
        weights: 3,
        formItemLayout: {
          initialValue: formData.disposePhoto || []
        },
        itemProps: {
          maxLength: 6,
          maxSize: 100 * 1024 * 1024,
          accept: '.jpg, .jpeg, .png'
        }
      }, {
        type: 'fileUpload',
        label: '附件',
        paramName: 'disposeAttach',
        weights: 3,
        fileView: true,
        formItemLayout: {
          initialValue: formData.disposeAttach || []
        },
        itemProps: {
          maxLength: 5,
          maxSize: 50 * 1024 * 1024,
          type: ['doc', 'docx', 'pdf', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'zip', 'rar', 'mp3', 'mp4'],
          accept: ['.doc', '.docx', '.pdf', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.zip', '.rar', '.mp3', '.mp4']
        }
      }],
      // 审核退回
      OrderCheckBack: [{
        type: 'input',
        label: '审核结果',
        paramName: 'operateContent',
        formItemLayout: {
          initialValue: '不通过'
        }
      }].concat(_toConsumableArray(getDeptOrgList(details === null || details === void 0 ? void 0 : details.disposeDeptList) || []), [{
        type: 'textArea',
        label: '退回说明',
        paramName: 'suggestion',
        weights: 3
      }])
    };
    var list = (listDatas === null || listDatas === void 0 ? void 0 : listDatas[modalType]) || [];
    return list;
  };
  var items = detailsItems() || [];

  // 整理详情展示信息
  var handleDetails = function handleDetails() {
    var modalVal = getDetailsModalValue({
      formItems: items,
      formValue: detailsVal
    }) || {};
    setFormData(modalVal);
  };
  return /*#__PURE__*/_react["default"].createElement(_FormModal["default"], {
    width: 1200,
    column: 3,
    ref: myForm,
    visible: true,
    formData: formData,
    disabled: true,
    title: "",
    items: items,
    isShowModal: false,
    footerShow: false,
    formStyle: {
      width: '100%'
    }
  });
});
var _default = exports["default"] = ProcessDetails;
//# sourceMappingURL=index.js.map
