/******/ (function() { // webpackBootstrap
/******/ 	"use strict";
/******/ 	// The require scope
/******/ 	var __webpack_require__ = {};
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "default": function() { return /* binding */ track; }
});

;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/track/src/main.vue?vue&type=template&id=6eea6e17&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "jdf-track"
  }, [_vm.dialogVisible ? _c("el-dialog", _vm._b({
    directives: [{
      name: "el-drag-dialog",
      rawName: "v-el-drag-dialog",
      value: true,
      expression: "true"
    }],
    ref: "elDialog",
    attrs: {
      width: _vm.dialogWidth,
      title: _vm.dialogTitle,
      visible: _vm.dialogVisible,
      "modal-append-to-body": _vm.modalAppendToBody,
      "append-to-body": _vm.appendToBody,
      "before-close": _vm.handleDialogClose,
      top: "10vh",
      "custom-class": "jdf-track-dialog"
    },
    on: {
      "update:visible": function updateVisible($event) {
        _vm.dialogVisible = $event;
      }
    }
  }, "el-dialog", _vm.dialogAttrs, false), [_c("el-scrollbar", {
    staticClass: "track-scroll"
  }, [_c("div", {
    staticClass: "jdf-track-read-text-journal"
  }, [_c("h3", [_vm._v("阅文日志")]), _c("div", {
    staticClass: "collapse-read",
    on: {
      click: _vm.openHideRead
    }
  }, [_c("i", {
    staticClass: "el-collapse-item__arrow el-icon-arrow-right",
    class: {
      "is-active": _vm.readIsOpen
    }
  })]), _c("el-table", _vm._b({
    ref: "RTTableRef",
    staticClass: "jdf-track-read-text-journal-table",
    attrs: {
      id: "RTTable",
      data: _vm.RTList
    }
  }, "el-table", _vm.tableAttrs, false), [_c("el-table-column", {
    attrs: {
      type: "index",
      width: "55",
      align: "center",
      label: "序号"
    }
  }), _vm._l(_vm.RTDefaultColumns, function (item, index) {
    return [_vm.useBrowserTitle ? _c("el-table-column", {
      key: item.prop,
      attrs: {
        width: item.width,
        "min-width": item.minWidth,
        label: item.label,
        prop: item.prop,
        align: item.align
      },
      scopedSlots: _vm._u([{
        key: "default",
        fn: function fn(_ref) {
          var row = _ref.row;
          return [_c("span", {
            staticClass: "tooltip",
            class: {
              "not-handle": !row.nextNodeKey
            },
            attrs: {
              set: _vm.text = item.formatter ? item.formatter(row) : row[item.prop],
              title: _vm.text
            }
          }, [_vm._v("\n                  " + _vm._s(_vm.text) + "\n                ")])];
        }
      }], null, true)
    }) : _c("el-table-column", {
      key: index,
      attrs: {
        "show-overflow-tooltip": "",
        width: item.width,
        "min-width": item.minWidth,
        label: item.label,
        prop: item.prop,
        align: item.align
      },
      scopedSlots: _vm._u([{
        key: "default",
        fn: function fn(_ref2) {
          var row = _ref2.row;
          return [_c("span", {
            class: {
              "not-handle": !row.nextNodeKey
            },
            attrs: {
              set: _vm.text = item.formatter ? item.formatter(row) : row[item.prop]
            }
          }, [_vm._v("\n                  " + _vm._s(_vm.text || (index === 0 ? row.deptName : "")) + "\n                ")])];
        }
      }], null, true)
    })];
  })], 2)], 1), _c("div", {
    staticClass: "jdf-track-the-Receipt-log"
  }, [_c("h3", [_vm._v("收文日志")]), _c("div", {
    staticClass: "collapse-all",
    on: {
      click: _vm.openHideAll
    }
  }, [_vm._v("\n          " + _vm._s(_vm.collapseText) + "\n          "), _c("i", {
    staticClass: "el-collapse-item__arrow el-icon-arrow-right",
    class: {
      "is-active": _vm.isOpenAll
    }
  })]), _vm._l(_vm.PTTableList, function (item, index) {
    return _c("div", {
      key: index,
      ref: "PTListTable",
      refInFor: true,
      staticClass: "ptdiv"
    }, [_c("h4", [_vm._v(_vm._s(item.orgType))]), _c("h4", [_vm._v(_vm._s(item.processTrackingFlag ? "\uFF08\u5171\u8BA1".concat(item.unitsTotalNumber, "\u5BB6\u90E8\u95E8\uFF0C\u53D1\u9001").concat(item.sendCount, "\u5BB6\u90E8\u95E8\uFF09") : "\uFF08\u5171\u8BA1".concat(item.unitsTotalNumber, "\u5BB6\u5355\u4F4D\uFF0C\u53D1\u9001").concat(item.sendCount, "\u5BB6\u5355\u4F4D\uFF09")) + "\n          ")]), _c("div", {
      staticClass: "collapse-item",
      on: {
        click: function click($event) {
          return _vm.openHide(item, index);
        }
      }
    }, [_c("i", {
      staticClass: "el-collapse-item__arrow el-icon-arrow-right",
      class: {
        "is-active": item.isActive
      }
    })]), _c("el-table", _vm._b({
      ref: "SOListTable",
      refInFor: true,
      staticClass: "jdf-track-send-org-record-table",
      staticStyle: {
        width: "100%"
      },
      attrs: {
        data: item.sendOrgRecordVoList,
        "row-key": _vm.rowKey,
        id: "ptTable".concat(index)
      }
    }, "el-table", _vm.tableAttrs, false), [_c("el-table-column", {
      attrs: {
        type: "index",
        width: "55",
        label: "序号",
        align: "center"
      }
    }), _vm._l(_vm.PTDefaultColumns, function (c, i) {
      return [_vm.useBrowserTitle ? _c("el-table-column", {
        key: c.prop,
        attrs: {
          width: c.width,
          "min-width": c.minWidth,
          prop: c.prop,
          label: c.prop === "receiveOrgName" ? "".concat(c.label).concat(item.processTrackingFlag ? "部门" : "单位") : c.label,
          align: c.align
        },
        scopedSlots: _vm._u([{
          key: "default",
          fn: function fn(_ref3) {
            var row = _ref3.row;
            return [_c("span", {
              staticClass: "tooltip",
              class: {
                "not-handle": !row.nextNodeKey
              },
              attrs: {
                set: _vm.text = c.formatter ? c.formatter(row) : row[c.prop],
                title: _vm.text
              }
            }, [_vm._v("\n                    " + _vm._s(_vm.text) + "\n                  ")])];
          }
        }], null, true)
      }) : _c("el-table-column", {
        key: i,
        attrs: {
          "show-overflow-tooltip": "",
          width: c.width,
          "min-width": c.minWidth,
          label: c.prop === "receiveOrgName" ? "".concat(c.label).concat(item.processTrackingFlag ? "部门" : "单位") : c.label,
          prop: c.prop,
          align: c.align
        },
        scopedSlots: _vm._u([{
          key: "default",
          fn: function fn(_ref4) {
            var row = _ref4.row;
            return [_c("span", {
              class: {
                "not-handle": !row.nextNodeKey
              },
              attrs: {
                set: _vm.text = c.formatter ? c.formatter(row) : row[c.prop]
              }
            }, [_vm._v("\n                    " + _vm._s(_vm.text || (index === 0 ? row.deptName : "")) + "\n                  ")])];
          }
        }], null, true)
      })];
    }), _c("el-table-column", {
      attrs: {
        width: "100"
      },
      scopedSlots: _vm._u([{
        key: "default",
        fn: function fn(scope) {
          return [scope.row.receivePiid ? _c("el-button", {
            attrs: {
              type: "text",
              loading: scope.row.loading
            },
            on: {
              click: function click($event) {
                return _vm.toogleExpand(scope.row);
              }
            }
          }, [_vm._v("\n                  " + _vm._s(scope.row.expansion ? "收起日志" : "查看日志") + "\n                ")]) : _vm._e()];
        }
      }], null, true)
    }), _c("el-table-column", {
      attrs: {
        type: "expand",
        width: "1"
      },
      scopedSlots: _vm._u([{
        key: "default",
        fn: function fn(props) {
          return [_c("el-table", _vm._b({
            ref: "readRef",
            refInFor: true,
            staticClass: "jdf-track-blog-info-table",
            attrs: {
              data: props.row.childrenList,
              "empty-text": ""
            }
          }, "el-table", _vm.tableAttrs, false), [_vm._l(_vm.PTChildDefaultColumns, function (p, pi) {
            return [_vm.useBrowserTitle ? _c("el-table-column", {
              key: p.prop,
              attrs: {
                width: p.width,
                "min-width": p.minWidth,
                prop: p.prop,
                label: p.label,
                align: p.align
              },
              scopedSlots: _vm._u([{
                key: "default",
                fn: function fn(_ref5) {
                  var row = _ref5.row;
                  return [_c("span", {
                    staticClass: "tooltip",
                    class: {
                      "not-handle": !row.nextNodeKey
                    },
                    attrs: {
                      set: _vm.text = item.formatter ? item.formatter(row) : row[item.prop],
                      title: _vm.text
                    }
                  }, [_vm._v("\n                          " + _vm._s(_vm.text) + "\n                        ")])];
                }
              }], null, true)
            }) : _c("el-table-column", {
              key: pi,
              attrs: {
                "show-overflow-tooltip": "",
                width: p.width,
                "min-width": p.minWidth,
                label: p.label,
                prop: p.prop,
                align: p.align
              },
              scopedSlots: _vm._u([{
                key: "default",
                fn: function fn(_ref6) {
                  var row = _ref6.row;
                  return [_c("span", {
                    class: {
                      "not-handle": !row.nextNodeKey
                    },
                    attrs: {
                      set: _vm.text = p.formatter ? p.formatter(row) : row[p.prop]
                    }
                  }, [_vm._v("\n                          " + _vm._s(_vm.text || (index === 0 ? row.deptName : "")) + "\n                        ")])];
                }
              }], null, true)
            })];
          })], 2)];
        }
      }], null, true)
    })], 2)], 1);
  })], 2)])], 1) : _vm._e()], 1);
};
var staticRenderFns = [];
render._withStripped = true;

;// CONCATENATED MODULE: ./packages/track/src/main.vue?vue&type=template&id=6eea6e17&

;// CONCATENATED MODULE: external "@babel/runtime/helpers/asyncToGenerator"
var asyncToGenerator_namespaceObject = require("@babel/runtime/helpers/asyncToGenerator");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator_namespaceObject);
;// CONCATENATED MODULE: external "@babel/runtime/helpers/defineProperty"
var defineProperty_namespaceObject = require("@babel/runtime/helpers/defineProperty");
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_namespaceObject);
;// CONCATENATED MODULE: external "@babel/runtime/regenerator"
var regenerator_namespaceObject = require("@babel/runtime/regenerator");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_namespaceObject);
;// CONCATENATED MODULE: external "globalthis/implementation"
var implementation_namespaceObject = require("globalthis/implementation");
;// CONCATENATED MODULE: external "jdf-jssdk"
var external_jdf_jssdk_namespaceObject = require("jdf-jssdk");
;// CONCATENATED MODULE: external "lodash/map"
var map_namespaceObject = require("lodash/map");
var map_default = /*#__PURE__*/__webpack_require__.n(map_namespaceObject);
;// CONCATENATED MODULE: external "xregexp"
var external_xregexp_namespaceObject = require("xregexp");
var external_xregexp_default = /*#__PURE__*/__webpack_require__.n(external_xregexp_namespaceObject);
;// CONCATENATED MODULE: ./src/directives/el-drag-dialog/drag.js
/*
 * @Author: lirl
 * @Date: 2020-08-03 10:31:13
 * @LastEditTime: 2022-12-07 14:35:00
 * @Description: dialog拖动
 */



/** 宽度高度为百分比 */
var PERSENT_WH = external_xregexp_default()('%', 'g');
/** 宽度高度为像素 */
var PIXEL_WH = external_xregexp_default()('px', 'g');
/* harmony default export */ var drag = ({
  bind: function bind(el, binding, vnode) {
    // 自定义属性，判断是否可拖拽
    if (!binding.value) return;
    var dialogHeaderEl = el.querySelector('.el-dialog__header');
    var dragDom = el.querySelector('.el-dialog');
    dialogHeaderEl.style.cssText += ';cursor:move;';
    dragDom.style.cssText += ';top:0px;';

    // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
    var getStyle = function () {
      if (implementation_namespaceObject.window.document.currentStyle) {
        return function (dom, attr) {
          return dom.currentStyle[attr];
        };
      }
      return function (dom, attr) {
        return getComputedStyle(dom, false)[attr];
      };
    }();
    dialogHeaderEl.onmousedown = function (e) {
      // 鼠标按下，计算当前元素距离可视区的距离
      var disX = e.clientX - dialogHeaderEl.offsetLeft;
      var disY = e.clientY - dialogHeaderEl.offsetTop;
      var dragDomWidth = dragDom.offsetWidth;
      var dragDomheight = dragDom.offsetHeight;
      var screenWidth = implementation_namespaceObject.document.body.clientWidth;
      var screenHeight = implementation_namespaceObject.document.body.clientHeight;
      var minDragDomLeft = dragDom.offsetLeft + dragDomWidth * 0.7;
      var maxDragDomLeft = screenWidth - dragDom.offsetLeft - dragDomWidth * 0.3;
      var minDragDomTop = dragDom.offsetTop;
      var maxDragDomTop = screenHeight - dragDom.offsetTop - dragDomheight * 0.3;

      // 获取到的值带px 正则匹配替换
      var styL = getStyle(dragDom, 'left');
      var styT = getStyle(dragDom, 'top');
      if (styL.includes('%')) {
        styL = +implementation_namespaceObject.document.body.clientWidth * (+external_xregexp_default().replace(styL, PERSENT_WH, '') / 100);
        styT = +implementation_namespaceObject.document.body.clientHeight * (+external_xregexp_default().replace(styT, PERSENT_WH, '') / 100);
      } else {
        styL = +external_xregexp_default().replace(styL, PIXEL_WH, '');
        styT = +external_xregexp_default().replace(styT, PIXEL_WH, '');
      }
      implementation_namespaceObject.document.onmousemove = function (evt) {
        // 通过事件委托，计算移动的距离
        var left = evt.clientX - disX;
        var top = evt.clientY - disY;

        // 边界处理
        if (-left > minDragDomLeft) {
          left = -minDragDomLeft;
        } else if (left > maxDragDomLeft) {
          left = maxDragDomLeft;
        }
        if (-top > minDragDomTop) {
          top = -minDragDomTop;
        } else if (top > maxDragDomTop) {
          top = maxDragDomTop;
        }

        // 移动当前元素
        dragDom.style.cssText += ";left:".concat(left + styL, "px;top:").concat(top + styT, "px;");

        // emit onDrag event
        vnode.child.$emit('dragDialog');
      };
      implementation_namespaceObject.document.onmouseup = function () {
        implementation_namespaceObject.document.onmousemove = null;
        implementation_namespaceObject.document.onmouseup = null;
      };
    };
  }
});
;// CONCATENATED MODULE: ./src/directives/el-drag-dialog/index.js


var install = function install(Vue) {
  Vue.directive('el-drag-dialog', drag);
};
if (implementation_namespaceObject.window.Vue) {
  implementation_namespaceObject.window['el-drag-dialog'] = drag;
  implementation_namespaceObject.window.Vue.use(install);
}
drag.install = install;
/* harmony default export */ var el_drag_dialog = (drag);
;// CONCATENATED MODULE: ./src/mixins/dialogAttrs.js

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
/* eslint-disable no-undef */
/* eslint-disable no-param-reassign */
/*
 * @Author: lirl
 * @Date: 2023-02-02 19:37:40
 * @Description: file content
 */
/* harmony default export */ var dialogAttrs = ({
  data: function data() {
    var _this$$JDF = this.$JDF,
      dialogAttrs = _this$$JDF.dialogAttrs,
      lockScroll = _this$$JDF.lockScroll;
    return {
      // el-dialog属性，closeOnClickModal需要设为false，这样才可以向遮罩层添加关闭弹窗事件
      dialogAttrs: dialogAttrs ? _objectSpread(_objectSpread({}, dialogAttrs), {}, {
        closeOnClickModal: false
      }) : {
        appendToBody: true,
        lockScroll: lockScroll !== null && lockScroll !== void 0 ? lockScroll : false,
        closeOnClickModal: false,
        closeOnPressEscape: false,
        customClass: 'jdf-common-dialog'
      },
      // 当前为拖动鼠标还是点击鼠标
      isMove: false
    };
  },
  methods: {
    /**
     * 添加关闭弹窗事件，鼠标拖动到遮罩时不关闭弹窗，鼠标点击到遮罩时关闭弹窗
     */
    addCloseDialogEvent: function addCloseDialogEvent(dialogRef) {
      var _this = this;
      this.$nextTick(function () {
        var isMove = _this.isMove;
        var dialogEles = document.querySelectorAll('.el-dialog__wrapper');
        var handleMousemove = function handleMousemove() {
          isMove = true;
        };
        dialogEles === null || dialogEles === void 0 ? void 0 : dialogEles.forEach(function (ele) {
          if (ele) {
            ele.onclick = function (event) {
              if (!isMove && event.target === ele) {
                var dialogName = dialogRef || 'elDialog';
                _this.$refs[dialogName].handleClose();
              }
            };
            ele.onmousedown = function () {
              isMove = false;
              window.addEventListener('mousemove', handleMousemove);
            };
            ele.onmouseup = function () {
              return window.removeEventListener('mousemove', handleMousemove);
            };
          }
        });
      });
    }
  }
});
;// CONCATENATED MODULE: external "dayjs"
var external_dayjs_namespaceObject = require("dayjs");
var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_namespaceObject);
;// CONCATENATED MODULE: ./src/utils/day-util.js
/*
 * @Author: lirl
 * @Date: 2020-04-21 10:08:54
 * @LastEditTime: 2022-04-21 09:40:22
 * @Description: 日期转换工具方法
 */


/**
 * 将毫秒值的时间格式化为format格式.
 * @param {Number} millisecond 毫秒
 * @param {String} format 要转换的格式
 */
var formatMillisecondToString = function formatMillisecondToString(millisecond) {
  var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';
  return millisecond ? external_dayjs_default()(millisecond).format(format) : '';
};

/**
 * 获取当前时间的毫秒值
 */
var getCurrentMillisecond = function getCurrentMillisecond() {
  return dayjs().valueOf();
};

;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/track/src/main.vue?vue&type=script&lang=js&



function mainvue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function mainvue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? mainvue_type_script_lang_js_ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : mainvue_type_script_lang_js_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }






/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'JdfTrack',
  directives: {
    elDragDialog: el_drag_dialog
  },
  mixins: [dialogAttrs],
  props: {
    // dialog标题
    dialogTitle: {
      type: String,
      default: '发送跟踪'
    },
    // dialog宽度
    dialogWidth: {
      type: String,
      default: '1200px'
    },
    // 遮罩层是否插入至 body 元素上，若为 false，则遮罩层会插入至 Dialog 的父元素上
    modalAppendToBody: {
      type: Boolean,
      default: true
    },
    // Dialog 自身是否插入至 body 元素上。嵌套的 Dialog 必须指定该属性并赋值为 true
    appendToBody: {
      type: Boolean,
      default: false
    },
    // 阅文日志数据
    RTList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    // 阅文日志列数据源的数据
    RTDefaultColumns: {
      type: Array,
      default: function _default() {
        return [{
          label: '阅文人',
          formatter: function formatter(row) {
            var _row$operateUser$user, _row$operateUser;
            return (_row$operateUser$user = (_row$operateUser = row.operateUser) === null || _row$operateUser === void 0 ? void 0 : _row$operateUser.userName) !== null && _row$operateUser$user !== void 0 ? _row$operateUser$user : '';
          }
        }, {
          label: '到达时间',
          formatter: function formatter(row) {
            return row.createTime ? formatMillisecondToString(row.createTime) : '*';
          },
          width: 180
        }, {
          label: '处理时间',
          formatter: function formatter(row) {
            return row.operateTime ? formatMillisecondToString(row.operateTime) : '*';
          },
          width: 180
        }];
      }
    },
    // 收文日志数据
    PTList: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    // 收文日志列数据源的数据
    PTDefaultColumns: {
      type: Array,
      default: function _default() {
        return [{
          prop: 'receiveOrgName',
          label: '收文'
        }, {
          label: '发送附件',
          formatter: function formatter(row) {
            return row.attachmentNameList.join(',');
          }
        }, {
          label: '到达时间',
          formatter: function formatter(row) {
            return row.sendTime ? formatMillisecondToString(row.sendTime) : '*';
          },
          width: 180
        }, {
          label: '处理时间',
          formatter: function formatter(row) {
            return row.processingTime ? formatMillisecondToString(row.processingTime) : '*';
          },
          width: 180
        }];
      }
    },
    // 收文日志子表格列数据源的数据
    PTChildDefaultColumns: {
      type: Array,
      default: function _default() {
        return [{
          prop: 'nodeName',
          label: '环节'
        }, {
          label: '当前处理人',
          formatter: function formatter(row) {
            return row.operateUser.userName;
          }
        }, {
          prop: 'transitionName',
          label: '提交路径'
        }, {
          prop: 'opinion',
          label: '处理意见'
        }, {
          label: '到达时间',
          formatter: function formatter(row) {
            return row.createTime ? formatMillisecondToString(row.createTime) : '*';
          },
          width: 180
        }, {
          label: '处理时间',
          formatter: function formatter(row) {
            return row.operateTime ? formatMillisecondToString(row.operateTime) : '*';
          },
          width: 180
        }, {
          label: '下一处理人',
          width: 100,
          formatter: function formatter(row) {
            return map_default()(row.nextHandlers, 'userName').join(',');
          }
        }];
      }
    },
    // 文字超长时是否使用浏览器默认的title，true：是，false: 否, 使用element-ui的tooltip展示
    useBrowserTitle: {
      type: Boolean,
      default: false
    },
    rowKey: {
      type: String,
      default: 'id'
    },
    tableAttrs: {
      type: Object,
      default: function _default() {
        return {
          border: true
        };
      }
    }
  },
  data: function data() {
    return {
      // dialog显示隐藏
      dialogVisible: false,
      // loading加载
      loading: false,
      // 阅文日志折叠面板
      readTextJournalActiveNames: ['1'],
      PTTableList: [],
      collapseText: '全部收起',
      isOpenAll: true,
      readIsOpen: true,
      lockScroll: this.$JDF.lockScroll
    };
  },
  methods: {
    /**
     * 隐藏窗口
     */
    hide: function hide() {
      this.dialogVisible = false;
    },
    /**
     * 打开窗口
     */
    show: function show() {
      var _this = this;
      this.dialogVisible = true;
      this.$nextTick(function () {
        _this.PTTableList = map_default()(_this.PTList, function (pt) {
          return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, pt), {}, {
            isActive: true,
            sendOrgRecordVoList: map_default()(pt.sendOrgRecordVoList, function (s) {
              return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, s), {}, {
                expansion: false,
                loading: false
              });
            })
          });
        });
        _this.$nextTick(function () {
          _this.$refs.RTTableRef.doLayout();
          var $SOListTable = _this.$refs.SOListTable;
          _this.PTTableList.forEach(function (v, i) {
            $SOListTable[i].doLayout();
          });
        });
      });
      // 添加关闭弹窗事件
      this.addCloseDialogEvent();
    },
    /**
     * 嵌套表格展开方法
     */
    toogleExpand: function toogleExpand(row) {
      var _this2 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee2() {
        var $SOListTable;
        return regenerator_default().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              $SOListTable = _this2.$refs.SOListTable;
              _this2.PTTableList.forEach(function (item, index) {
                item.sendOrgRecordVoList.forEach( /*#__PURE__*/function () {
                  var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee(el) {
                    var data;
                    return regenerator_default().wrap(function _callee$(_context) {
                      while (1) switch (_context.prev = _context.next) {
                        case 0:
                          if (!(row.id !== el.id)) {
                            _context.next = 5;
                            break;
                          }
                          $SOListTable[index].toggleRowExpansion(el, false);
                          _this2.$set(el, 'expansion', false);
                          _context.next = 21;
                          break;
                        case 5:
                          if (!(el.expansion !== true && el.receivePiid !== null)) {
                            _context.next = 18;
                            break;
                          }
                          _context.prev = 6;
                          _this2.$set(el, 'loading', true);
                          _context.next = 10;
                          return new external_jdf_jssdk_namespaceObject.ProcessService(_this2.$JDF.baseUrl).getTaskFlowList(el.receivePiid);
                        case 10:
                          data = _context.sent;
                          _this2.$set(el, 'childrenList', data);
                          _this2.$nextTick(function () {
                            var _this2$$refs$readRef$;
                            (_this2$$refs$readRef$ = _this2.$refs.readRef[0]) === null || _this2$$refs$readRef$ === void 0 ? void 0 : _this2$$refs$readRef$.doLayout();
                          });
                        case 13:
                          _context.prev = 13;
                          _this2.$set(el, 'loading', false);
                          return _context.finish(13);
                        case 16:
                          _context.next = 19;
                          break;
                        case 18:
                          _this2.$set(el, 'childrenList', []);
                        case 19:
                          _this2.$set(el, 'expansion', !el.expansion);
                          $SOListTable[index].toggleRowExpansion(el, el.expansion);
                        case 21:
                        case "end":
                          return _context.stop();
                      }
                    }, _callee, null, [[6,, 13, 16]]);
                  }));
                  return function (_x) {
                    return _ref.apply(this, arguments);
                  };
                }());
              });
            case 2:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 关闭dialog回调
     */
    handleDialogClose: function handleDialogClose() {
      this.hide();
    },
    /**
     * 单条展开隐藏
     */
    openHideItem: function openHideItem(item, index) {
      var status = item.isActive;
      // 禁用原因：需要修改当前点击的dom的展开状态
      // eslint-disable-next-line no-param-reassign
      item.isActive = !status;
      implementation_namespaceObject.document.getElementById("ptTable".concat(index)).childNodes[2].style.display = status ? 'none' : 'block';
    },
    /**
     * 展开隐藏单家公司的收文日志
     * @param {Object} item 
     * @param {Number} index 
     */
    openHide: function openHide(item, index) {
      this.openHideItem(item, index);
      // 判断是否所有都展开/隐藏
      var status = item.isActive;
      var isAll = this.PTTableList.every(function (t) {
        return t.isActive === status;
      });
      if (isAll) {
        this.isOpenAll = status;
        this.collapseText = status ? '全部收起' : '全部展开';
      }
    },
    /**
     * 全部收起/展示
     */
    openHideAll: function openHideAll() {
      var _this3 = this;
      var status = this.isOpenAll;
      this.isOpenAll = !status;
      this.collapseText = status ? '全部展开' : '全部收起';
      this.PTTableList = this.PTTableList.map(function (t, index) {
        _this3.openHideItem(mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, t), {}, {
          isActive: status
        }), index);
        return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, t), {}, {
          isActive: !status
        });
      });
    },
    /**
     * 阅知展开隐藏
     */
    openHideRead: function openHideRead() {
      var status = this.readIsOpen;
      this.readIsOpen = !status;
      implementation_namespaceObject.document.getElementById('RTTable').childNodes[2].style.display = status ? 'none' : 'block';
    }
  }
});
;// CONCATENATED MODULE: ./packages/track/src/main.vue?vue&type=script&lang=js&
 /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_); 
;// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}

;// CONCATENATED MODULE: ./packages/track/src/main.vue





/* normalize component */
;
var component = normalizeComponent(
  src_mainvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var main = (component.exports);
;// CONCATENATED MODULE: ./packages/track/index.js
// 导入组件，必须声明name


// 为组件提供install安装方法，供按需引入
main.install = function (Vue) {
  Vue.component(main.name, main);
};
/* harmony default export */ var track = (main);
module.exports = __webpack_exports__;
/******/ })()
;