/******/ (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 */ doc_number; }
});

;// 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/doc-number/src/main.vue?vue&type=template&id=820c558a&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c("div", {
    staticClass: "jdf-doc-number"
  }, [_c("el-dialog", _vm._b({
    directives: [{
      name: "el-drag-dialog",
      rawName: "v-el-drag-dialog",
      value: true,
      expression: "true"
    }],
    ref: "elDialog",
    attrs: {
      title: _vm.title,
      visible: _vm.dialogVisible,
      "custom-class": "jdf-doc-number-dialog",
      width: "389px"
    },
    on: {
      "update:visible": function updateVisible($event) {
        _vm.dialogVisible = $event;
      },
      close: _vm.hide
    }
  }, "el-dialog", _vm.dialogAttrs, false), [_c("el-form", {
    directives: [{
      name: "loading",
      rawName: "v-loading",
      value: _vm.loadLoading,
      expression: "loadLoading"
    }],
    ref: "numberFormRef",
    attrs: {
      model: _vm.numberData,
      "label-width": "90px",
      rules: _vm.rules,
      "hide-required-asterisk": ""
    },
    nativeOn: {
      submit: function submit($event) {
        $event.preventDefault();
      }
    }
  }, _vm._l(_vm.showFormulaRules, function (item, index) {
    return _c("el-form-item", {
      key: index,
      attrs: {
        prop: item.prop
      },
      scopedSlots: _vm._u([{
        key: "label",
        fn: function fn() {
          return [_c("div", [_c("span", {
            staticClass: "c-label"
          }, [_vm._v(_vm._s(item.label))]), _c("span", [_vm._v("：")])])];
        },
        proxy: true
      }], null, true)
    }, [_vm.isSerialCrown(item) ? [item.ruleCode === _vm.formulaRuleEnum.BUSINCESS_PROPRTY ? _c("el-input", {
      attrs: {
        disabled: !item.edit
      },
      model: {
        value: _vm.numberData[item.prop],
        callback: function callback($$v) {
          _vm.$set(_vm.numberData, item.prop, $$v);
        },
        expression: "numberData[item.prop]"
      }
    }) : _c("el-select", {
      staticStyle: {
        width: "100%"
      },
      attrs: {
        placeholder: "请选择",
        disabled: !item.edit,
        filterable: "",
        "allow-create": _vm.manualInputSerialCrown,
        "default-first-option": "",
        clearable: _vm.manualInputSerialCrown
      },
      on: {
        change: _vm.renderTempNumber
      },
      model: {
        value: _vm.numberData[item.prop],
        callback: function callback($$v) {
          _vm.$set(_vm.numberData, item.prop, $$v);
        },
        expression: "numberData[item.prop]"
      }
    }, _vm._l(_vm.serialCrownConfig[item.prop], function (item, index) {
      return _c("el-option", {
        key: index,
        attrs: {
          label: item,
          value: item
        }
      });
    }), 1)] : item.ruleCode === _vm.formulaRuleEnum.TIME ? _c("el-input", {
      attrs: {
        disabled: !item.edit
      },
      model: {
        value: _vm.numberData[item.prop],
        callback: function callback($$v) {
          _vm.$set(_vm.numberData, item.prop, $$v);
        },
        expression: "numberData[item.prop]"
      }
    }) : item.ruleCode === _vm.formulaRuleEnum.SERIAL_NUMBER ? _c("el-input-number", {
      staticStyle: {
        width: "100%"
      },
      attrs: {
        min: 1,
        controls: false,
        percision: 0,
        disabled: !item.edit
      },
      on: {
        change: _vm.changSerialNumber
      },
      model: {
        value: _vm.numberData.serialNumber,
        callback: function callback($$v) {
          _vm.$set(_vm.numberData, "serialNumber", $$v);
        },
        expression: "numberData.serialNumber"
      }
    }) : _vm._e()], 2);
  }), 1), !_vm.loadLoading ? _c("div", {
    staticClass: "dialog-footer",
    attrs: {
      slot: "footer"
    },
    slot: "footer"
  }, [_c("el-button", {
    attrs: {
      type: "primary",
      loading: _vm.saveLoading
    },
    on: {
      click: _vm.confirm
    }
  }, [_vm._v("确 定")]), _c("el-button", {
    on: {
      click: _vm.hide
    }
  }, [_vm._v("取 消")])], 1) : _vm._e()], 1)], 1);
};
var staticRenderFns = [];
render._withStripped = true;

;// CONCATENATED MODULE: ./packages/doc-number/src/main.vue?vue&type=template&id=820c558a&

;// 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/helpers/slicedToArray"
var slicedToArray_namespaceObject = require("@babel/runtime/helpers/slicedToArray");
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray_namespaceObject);
;// 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/regenerator"
var regenerator_namespaceObject = require("@babel/runtime/regenerator");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_namespaceObject);
;// 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 "lodash/fill"
var fill_namespaceObject = require("lodash/fill");
var fill_default = /*#__PURE__*/__webpack_require__.n(fill_namespaceObject);
;// CONCATENATED MODULE: external "lodash/pick"
var pick_namespaceObject = require("lodash/pick");
var pick_default = /*#__PURE__*/__webpack_require__.n(pick_namespaceObject);
;// CONCATENATED MODULE: external "lodash/isEmpty"
var isEmpty_namespaceObject = require("lodash/isEmpty");
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_namespaceObject);
;// CONCATENATED MODULE: external "lodash/map"
var map_namespaceObject = require("lodash/map");
var map_default = /*#__PURE__*/__webpack_require__.n(map_namespaceObject);
;// CONCATENATED MODULE: external "lodash/isFunction"
var isFunction_namespaceObject = require("lodash/isFunction");
var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction_namespaceObject);
;// CONCATENATED MODULE: external "lodash/isArray"
var isArray_namespaceObject = require("lodash/isArray");
var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray_namespaceObject);
;// CONCATENATED MODULE: external "jdf-jssdk"
var external_jdf_jssdk_namespaceObject = require("jdf-jssdk");
;// CONCATENATED MODULE: external "globalthis/implementation"
var implementation_namespaceObject = require("globalthis/implementation");
;// CONCATENATED MODULE: ./src/utils/tools/validateForm.js

/*
 * @Author: lirl
 * @Date: 2023-02-26 21:50:39
 * @Description: 校验表单
 */

function validateForm(form) {
  var focusError = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  return new Promise(function (resolve) {
    if (!form) {
      resolve();
    }
    form.validate(function (valid) {
      if (valid) {
        resolve();
      } else if (focusError) {
        setTimeout(function () {
          var _document$getElements = implementation_namespaceObject.document.getElementsByClassName('is-error'),
            _document$getElements2 = slicedToArray_default()(_document$getElements, 1),
            error = _document$getElements2[0];
          if (error) {
            var selector = error.querySelector('input,textarea');
            selector && selector.focus();
          }
        }, 100);
      }
    });
  });
}
;// CONCATENATED MODULE: external "lodash/flatten"
var flatten_namespaceObject = require("lodash/flatten");
var flatten_default = /*#__PURE__*/__webpack_require__.n(flatten_namespaceObject);
;// CONCATENATED MODULE: ./src/utils/tools/getLabelFromConfigs.js
/*
 * @Author: lirl
 * @Date: 2023-03-22 19:52:30
 * @Description: file content
 */



/**
 * 从表单配置中获取属性的label
 */
function getLabelFromConfigs(prop, value, configs) {
  var _flatten$find, _ref, _options$find;
  var options = (_flatten$find = flatten_default()(configs).find(function (t) {
    return t.formElCode === prop;
  })) === null || _flatten$find === void 0 ? void 0 : _flatten$find.options;
  return (_ref = options && ((_options$find = options.find(function (t) {
    return t.value === value;
  })) === null || _options$find === void 0 ? void 0 : _options$find.label)) !== null && _ref !== void 0 ? _ref : '';
}
;// CONCATENATED MODULE: external "element-ui"
var external_element_ui_namespaceObject = require("element-ui");
;// CONCATENATED MODULE: external "lodash/isString"
var isString_namespaceObject = require("lodash/isString");
var isString_default = /*#__PURE__*/__webpack_require__.n(isString_namespaceObject);
;// CONCATENATED MODULE: ./src/utils/message.js


/*
 * @Author: lirl
 * @Date: 2020-06-03 15:09:21
 * @LastEditTime: 2023-03-02 14:10:57
 * @Description: 消息提示
 */
// 信息提示框




var TOKEN_CODES = (/* unused pure expression or super */ null && (['B004-000-10', 'B004-000-11', 'B004-000-09']));

/**
 * 消息提示框.
 * @param {String} text 消息提示文字
 * @param {String} type success/warning/info/error,默认为success
 */
var message = function message(text) {
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
  var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2000;
  var showClose = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  var className = type === 'success' ? 'pj-common-message' : 'pj-ui-validate';
  return (0,external_element_ui_namespaceObject.Message)({
    message: text,
    type: type,
    offset: 300,
    dangerouslyUseHTMLString: false,
    duration: duration,
    showClose: showClose,
    customClass: className
  });
};

/**
 * 弹出提示框.
 * @param {String} content 提示内容
 * @param {String} type 提示类型 success / info / warning / error
 * @param {Boolean} center 是否居中显示
 */
var messageAlert = function messageAlert(content) {
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'success';
  var center = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  return MessageBox.alert(content, '提示', {
    confirmButtonText: '确定',
    type: type,
    dangerouslyUseHTMLString: false,
    center: center
  });
};

/**
 * 弹出确认框.
 * @param {String} content 提示内容
 * @param {Function} yes 点击确定按钮的回调
 * @param {Function} cancel 点击取消按钮的回调
 * @returns Promise 调用方式： mmessageConfirm("提示信息", () => {
 *  alert('确定');
 * }, () => {
 *  alert('取消');
 * })
 */
var messageConfirm = /*#__PURE__*/function () {
  var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee(content, yes, cancel) {
    var title,
      _args = arguments;
    return regenerator_default().wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          title = _args.length > 3 && _args[3] !== undefined ? _args[3] : '温馨提示';
          _context.prev = 1;
          _context.next = 4;
          return external_element_ui_namespaceObject.MessageBox.confirm(content, title, {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            cancelButtonClass: 'fr ml10',
            confirmButtonClass: 'fr',
            type: 'warning',
            lockScroll: false,
            dangerouslyUseHTMLString: false,
            iconClass: 'el-icon-question orange'
          });
        case 4:
          return _context.abrupt("return", yes === null || yes === void 0 ? void 0 : yes());
        case 7:
          _context.prev = 7;
          _context.t0 = _context["catch"](1);
          cancel === null || cancel === void 0 ? void 0 : cancel();
          return _context.abrupt("return", false);
        case 11:
        case "end":
          return _context.stop();
      }
    }, _callee, null, [[1, 7]]);
  }));
  return function messageConfirm(_x, _x2, _x3) {
    return _ref.apply(this, arguments);
  };
}();
var showErrorMsg = function showErrorMsg(error, customClass) {
  var msg = isString_default()(error) ? error : error === null || error === void 0 ? void 0 : error.message;
  msg && (0,external_element_ui_namespaceObject.Message)({
    message: msg,
    type: 'warning',
    offset: 300,
    dangerouslyUseHTMLString: false,
    duration: 3000,
    showClose: true,
    customClass: customClass
  });
};

/**
 * 弹出接口错误信息
 */
var alertErrorMsg = function alertErrorMsg(error) {
  if (!error) {
    return;
  }
  if (isString(error)) {
    messageAlert(error, 'warning');
    return;
  }
  var ssoPage = sessionStorage.getItem('ssoPage');
  if (TOKEN_CODES.includes(error.code) && ssoPage) {
    window.open(decodeURIComponent(ssoPage), '_self');
  } else {
    var msg = error === null || error === void 0 ? void 0 : error.message;
    msg && messageAlert(msg, 'warning');
  }
};
var showSubmitPrompt = /*#__PURE__*/(/* unused pure expression or super */ null && (function () {
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(msg, wordLimit, isRequired, yesCallback, cancelCallback) {
    var inputWordLimit, _yield$MessageBox$pro, value;
    return _regeneratorRuntime.wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          _context2.prev = 0;
          inputWordLimit = wordLimit !== null && wordLimit !== void 0 ? wordLimit : 200;
          _context2.next = 4;
          return MessageBox.prompt(msg, '流程提交', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            cancelButtonClass: 'fr ml10',
            confirmButtonClass: 'fr',
            inputValidator: function inputValidator(v) {
              if (isRequired && isEmptyStr(v)) {
                return '请填写意见';
              }
              if ((v === null || v === void 0 ? void 0 : v.length) > inputWordLimit) {
                return "\u8BF7\u6700\u591A\u8F93\u5165".concat(inputWordLimit, "\u5B57");
              }
              return true;
            },
            inputErrorMessage: '请填写意见',
            closeOnClickModal: false,
            inputType: 'textarea',
            inputPlaceholder: "\u8BF7\u586B\u5199\u610F\u89C1\uFF0C\u6700\u591A".concat(inputWordLimit, "\u5B57")
          });
        case 4:
          _yield$MessageBox$pro = _context2.sent;
          value = _yield$MessageBox$pro.value;
          yesCallback === null || yesCallback === void 0 ? void 0 : yesCallback(value);
          _context2.next = 12;
          break;
        case 9:
          _context2.prev = 9;
          _context2.t0 = _context2["catch"](0);
          cancelCallback === null || cancelCallback === void 0 ? void 0 : cancelCallback();
        case 12:
        case "end":
          return _context2.stop();
      }
    }, _callee2, null, [[0, 9]]);
  }));
  return function showSubmitPrompt(_x4, _x5, _x6, _x7, _x8) {
    return _ref2.apply(this, arguments);
  };
}()));
;// 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: ./packages/doc-number/src/formulaConfig.js
/*
 * @Author: lirl
 * @Date: 2022-10-19 11:20:20
 * @Description: 编号配置
 */

/**
 * 编号规则枚举
 */
var formulaRuleEnum = {
  // 公司代字
  COMPANY_CODE: 'companyCode',
  // 部门代字
  DEPT_CODE: 'deptCode',
  // 顶级部门代字
  TOP_DEPT_CODE: 'topDeptCode',
  // 符号
  SYMBOL: 'SYMBOL',
  // 组织代号
  VARIABLE: 'VARIABLE',
  // 常量
  CONSTANT: 'CONSTANT',
  // 时间
  TIME: 'TIME',
  // 流水号
  SERIAL_NUMBER: 'SERIAL_NUMBER',
  // 业务代字
  BUSINCESS_PROPRTY: 'BUSINCESS_PROPRTY'
};

/**
 * 编号规则对应的标签名称
 */
var formulaRuleNameEnum = {
  COMPANY_CODE: '文件代字',
  TIME: '年份',
  SERIAL_NUMBER: '文件编号',
  DEPT_CODE: '部门代字'
};
var bizParamTypeEnum = {
  SELECT: 'select',
  RADIO: 'radio',
  CHECKBOX: 'checkbox',
  INPUT: 'input'
};
var needConvert = function needConvert(type) {
  return [bizParamTypeEnum.SELECT, bizParamTypeEnum.RADIO, bizParamTypeEnum.CHECKBOX].includes(type);
};

;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/doc-number/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; }














var SERIAL_NUMBER = formulaRuleEnum.SERIAL_NUMBER;
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'JdfDocNumber',
  mixins: [dialogAttrs],
  directives: {
    elDragDialog: el_drag_dialog
  },
  props: {
    // 弹窗是否可见
    visible: Boolean,
    // 弹窗的标题
    title: {
      type: String,
      default: '设置文件编号'
    },
    // 流程实例编码
    piid: {
      type: String,
      required: true
    },
    // 编号公式
    formulaCode: {
      type: String,
      required: true
    },
    // 文种
    templateCode: String,
    // 获取文件代字时传的参数
    serialCrownParam: {
      type: Object,
      default: function _default() {}
    },
    // 业务表单数据
    bizFormData: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    // 是否需要手动输入代字
    manualInputSerialCrown: Boolean,
    // 保存编号的方法，如果不传将调用内置方法
    saveFn: Function
  },
  data: function data() {
    return {
      formulaRuleEnum: formulaRuleEnum,
      isEmpty: (isEmpty_default()),
      dialogVisible: false,
      // 表单数据
      numberData: {
        serialNumber: undefined
      },
      // 备份一下原编号，判断是否手动编辑过
      originalNumber: null,
      // 临时编号对象
      tempNumber: {},
      // 文种代字配置
      serialCrownConfig: {},
      // 编号规则
      formulaRules: [],
      // 校验规则
      rules: {
        serialNumber: {
          required: true,
          message: '请填写文件编号',
          trigger: 'blur'
        }
      },
      numberSplit: '#@#',
      saveLoading: false,
      // 当前最大号
      currMaxNumber: 0,
      loadLoading: false
    };
  },
  watch: {
    visible: {
      handler: function handler(val) {
        val && this.show();
      },
      immediate: true
    }
  },
  computed: {
    /**
     * 可变的公式规则
     */
    changeableFormulaRules: function changeableFormulaRules() {
      var _this = this;
      return this.formulaRules.filter(function (t) {
        return _this.isVariable(t);
      });
    },
    /**
     * 展示的公式规则
     */
    showFormulaRules: function showFormulaRules() {
      return this.changeableFormulaRules.filter(function (t) {
        return t.display;
      });
    },
    /**
     * 文种代字规则
     */
    serialCrownRules: function serialCrownRules() {
      var _this2 = this;
      return this.changeableFormulaRules.filter(function (t) {
        return _this2.isSerialCrown(t);
      });
    },
    /**
     * 文种代字变量名
     */
    serialCrownVarNames: function serialCrownVarNames() {
      return map_default()(this.serialCrownRules, 'propertyValue');
    },
    /**
     * 未过滤掉隐藏的编号规则时，获取流水号在第几个
     */
    serialNumberIndex: function serialNumberIndex() {
      return this.formulaRules.findIndex(function (t) {
        return t.ruleCode === SERIAL_NUMBER;
      });
    },
    /**
     * 过滤掉隐藏的编号规则后，获取流水号在第几个
     */
    showSerialNumberIndex: function showSerialNumberIndex() {
      return this.formulaRules.filter(function (t) {
        return t.display;
      }).findIndex(function (t) {
        return t.ruleCode === SERIAL_NUMBER;
      });
    },
    docNumberService: function docNumberService() {
      return new external_jdf_jssdk_namespaceObject.DocNumberService(this.$JDF.baseUrl);
    }
  },
  methods: {
    /**
     * 展示编号窗口
     */
    show: function show() {
      var _this3 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee() {
        var _this3$serialCrownPar, _this3$bizFormData, serialNumber, showSplit, numberData, $set;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _this3.dialogVisible = true;
              _context.prev = 1;
              _this3.loadLoading = true;
              // 先获取编号公式
              _context.next = 5;
              return _this3.getFormula();
            case 5:
              if (_this3.manualInputSerialCrown) {
                _context.next = 8;
                break;
              }
              _context.next = 8;
              return _this3.getCrownWords((_this3$serialCrownPar = _this3.serialCrownParam) !== null && _this3$serialCrownPar !== void 0 ? _this3$serialCrownPar : {});
            case 8:
              _this3$bizFormData = _this3.bizFormData, serialNumber = _this3$bizFormData.serialNumber, showSplit = _this3$bizFormData.showSplit; // 回显已存在的编号
              if (!(serialNumber && showSplit)) {
                _context.next = 14;
                break;
              }
              _context.next = 12;
              return _this3.setExistNumber(serialNumber, showSplit);
            case 12:
              _context.next = 18;
              break;
            case 14:
              numberData = _this3.numberData, $set = _this3.$set; // 默认选中第一个代字
              Object.entries(_this3.serialCrownConfig).forEach(function (_ref) {
                var _ref2 = slicedToArray_default()(_ref, 2),
                  k = _ref2[0],
                  v = _ref2[1];
                $set(numberData, k, isArray_default()(v) ? v[0] : v);
              });
              // 获取临时编号
              _context.next = 18;
              return _this3.renderTempNumber();
            case 18:
              _context.next = 23;
              break;
            case 20:
              _context.prev = 20;
              _context.t0 = _context["catch"](1);
              showErrorMsg(_context.t0);
            case 23:
              _context.prev = 23;
              _this3.loadLoading = false;
              return _context.finish(23);
            case 26:
              // 添加关闭弹窗事件
              _this3.addCloseDialogEvent();
            case 27:
            case "end":
              return _context.stop();
          }
        }, _callee, null, [[1, 20, 23, 26]]);
      }))();
    },
    /**
     * 编号规则是否是代字
     * @param {*} rule 规则
     */
    isSerialCrown: function isSerialCrown(rule) {
      return [formulaRuleEnum.COMPANY_CODE, formulaRuleEnum.DEPT_CODE, formulaRuleEnum.TOP_DEPT_CODE, formulaRuleEnum.BUSINCESS_PROPRTY].includes(rule.ruleCode);
    },
    /**
     * 编号规则是否是变量
     * @param {*} rule 规则
     */
    isVariable: function isVariable(rule) {
      return ![formulaRuleEnum.CONSTANT, formulaRuleEnum.SYMBOL].includes(rule.ruleCode);
    },
    /**
     * 获取编号公式
     */
    getFormula: function getFormula() {
      var _this4 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee2() {
        var formula;
        return regenerator_default().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return _this4.docNumberService.getFormula(_this4.formulaCode);
            case 2:
              formula = _context2.sent;
              // 重新组装编号公式，构建需要的字段
              _this4.formulaRules = map_default()(formula, function (v) {
                var _v$numFormulaProperty, _formulaRuleNameEnum$;
                var numRuleVo = v.numRuleVo;
                var obj = mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({
                  // 是否可编辑
                  edit: v.edit,
                  // 是否显示
                  display: v.display
                }, pick_default()(numRuleVo, ['ruleName', 'ruleCode'])), pick_default()((_v$numFormulaProperty = v.numFormulaPropertyRuleVoList) === null || _v$numFormulaProperty === void 0 ? void 0 : _v$numFormulaProperty[0], ['formulaPropertyId', 'rulePropertyId', 'formulaId', 'propertyValue']));
                return mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, obj), {}, {
                  // 设置el-item的prop
                  prop: numRuleVo.ruleCode === SERIAL_NUMBER ? 'serialNumber' : obj.propertyValue,
                  // 公式显示的标签名称
                  label: (_formulaRuleNameEnum$ = formulaRuleNameEnum[numRuleVo.ruleCode]) !== null && _formulaRuleNameEnum$ !== void 0 ? _formulaRuleNameEnum$ : numRuleVo.ruleName
                });
              });
            case 4:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    /**
     * 获取文种代字
     * @param {String} units 主办单位
     * @param {String} deptCode 起草人部门名称
     */
    getCrownWords: function getCrownWords(_ref3) {
      var _this5 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee4() {
        var units, deptCode, serialCrownRules, bizFormData, templateCode, serialCrownList;
        return regenerator_default().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              units = _ref3.units, deptCode = _ref3.deptCode;
              // 如果编号规则中没有配置代字规则，则不获取代字
              serialCrownRules = _this5.serialCrownRules;
              if (!isEmpty_default()(_this5.serialCrownRules)) {
                _context4.next = 4;
                break;
              }
              return _context4.abrupt("return");
            case 4:
              bizFormData = _this5.bizFormData, templateCode = _this5.templateCode;
              _context4.next = 7;
              return Promise.all(map_default()(serialCrownRules, /*#__PURE__*/function () {
                var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee3(r) {
                  var propertyValue, _propertyValue$split, _propertyValue$split2, property, convertType, value, list;
                  return regenerator_default().wrap(function _callee3$(_context3) {
                    while (1) switch (_context3.prev = _context3.next) {
                      case 0:
                        // 如果代字是业务表单字段，
                        propertyValue = r.propertyValue;
                        if (!(r.ruleCode === formulaRuleEnum.BUSINCESS_PROPRTY)) {
                          _context3.next = 5;
                          break;
                        }
                        // 如果属性值以#分隔，则表示该值需要根据#后面的规则进行转换
                        _propertyValue$split = propertyValue.split('#'), _propertyValue$split2 = slicedToArray_default()(_propertyValue$split, 2), property = _propertyValue$split2[0], convertType = _propertyValue$split2[1];
                        value = needConvert(convertType) ? getLabelFromConfigs(property, bizFormData[property], bizFormData.configs) : bizFormData[property];
                        return _context3.abrupt("return", [propertyValue, value]);
                      case 5:
                        _context3.next = 7;
                        return _this5.docNumberService.getCrownWord(templateCode, deptCode, units);
                      case 7:
                        list = _context3.sent;
                        return _context3.abrupt("return", [propertyValue, list]);
                      case 9:
                      case "end":
                        return _context3.stop();
                    }
                  }, _callee3);
                }));
                return function (_x) {
                  return _ref4.apply(this, arguments);
                };
              }()));
            case 7:
              serialCrownList = _context4.sent;
              _this5.serialCrownConfig = Object.fromEntries(serialCrownList);
            case 9:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    /**
     * 获取临时编号
     */
    getTemp: function getTemp() {
      var _this6 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee5() {
        var numberData, serialCrownRules, notPassValidate, params, tempNumber;
        return regenerator_default().wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              numberData = _this6.numberData, serialCrownRules = _this6.serialCrownRules; // 如果配置了代字规则，但是没有选择文件代字，则弹出提示
              if (isEmpty_default()(serialCrownRules)) {
                _context5.next = 5;
                break;
              }
              notPassValidate = map_default()(serialCrownRules.filter(function (t) {
                return !numberData[t.prop];
              }), 'label');
              if (isEmpty_default()(notPassValidate)) {
                _context5.next = 5;
                break;
              }
              throw new Error("\u8BF7\u5148\u8BBE\u7F6E".concat(notPassValidate.join('、'), "\uFF01"));
            case 5:
              // 如果有文件代字，则构建文件代字参数
              params = Object.keys(_this6.serialCrownConfig).map(function (k) {
                return {
                  varName: k,
                  varValue: numberData[k]
                };
              }); // 获取临时编号
              _context5.next = 8;
              return _this6.docNumberService.getTempNumber(_this6.formulaCode, params);
            case 8:
              tempNumber = _context5.sent;
              return _context5.abrupt("return", tempNumber);
            case 10:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    /**
     * 渲染临时编号
     */
    renderTempNumber: function renderTempNumber() {
      var _this7 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee6() {
        var tempNumber;
        return regenerator_default().wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              _context6.next = 2;
              return _this7.getTemp();
            case 2:
              tempNumber = _context6.sent;
              _this7.tempNumber = tempNumber;
              _this7.setTempNumber(tempNumber);
            case 5:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    /**
     * 回显已存在的编号
     * @param {String} docNumber 已存在的编号，如 移信团〔2022〕7
     * @param {String} splitValue 已存在的编号规则
     */
    setExistNumber: function setExistNumber(docNumber, splitValue) {
      var _this8 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee7() {
        var list, numberData, $set, isVariable, showSplit, serialNumber, temp;
        return regenerator_default().wrap(function _callee7$(_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              // 回显已存在的编号到表单中
              list = splitValue.split(_this8.numberSplit);
              numberData = _this8.numberData, $set = _this8.$set, isVariable = _this8.isVariable;
              showSplit = []; // 遍历编号规则列表，编号规则列表与编号组成列表一一对应，根据编号规则的prop设置编号组成的信息
              _this8.formulaRules.forEach(function (t, index) {
                // 如果规则是变量，则将变量的值回写到numberData中，如果变量配置的是显示，则将变量的值放到showSplit中
                if (isVariable(t)) {
                  var val = list[index];
                  $set(numberData, t.prop, val);
                  t.display && showSplit.push(val);
                } else if (t.display) {
                  // 如果是常量并且显示，则将常量的值放到showSplit中
                  showSplit.push(t.propertyValue);
                }
              });
              serialNumber = numberData.serialNumber;
              _context7.next = 7;
              return _this8.getTemp();
            case 7:
              temp = _context7.sent;
              // 根据已存在的编号规则，构建一个临时编号
              _this8.tempNumber = {
                id: null,
                formulaCode: _this8.formulaCode,
                serialNumber: Number(serialNumber),
                showSplit: showSplit.filter(function (t) {
                  return t;
                }).join(_this8.numberSplit),
                splitValue: splitValue,
                showValue: docNumber,
                groupValue: temp.groupValue,
                sumValue: temp.sumValue
              };
              _this8.originalNumber = serialNumber;
              _this8.currMaxNumber = temp.serialNumber;
            case 11:
            case "end":
              return _context7.stop();
          }
        }, _callee7);
      }))();
    },
    /**
     * 回显临时编号
     * @param {Object} tempNumber 临时编号
     */
    setTempNumber: function setTempNumber(tempNumber) {
      var _this9 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee8() {
        var list, numberData, $set, isVariable;
        return regenerator_default().wrap(function _callee8$(_context8) {
          while (1) switch (_context8.prev = _context8.next) {
            case 0:
              // 将生成的编号以分隔符分隔，获取编号组成列表
              list = tempNumber.splitValue.split(_this9.numberSplit);
              numberData = _this9.numberData, $set = _this9.$set, isVariable = _this9.isVariable; // 遍历编号规则列表，编号规则列表与编号组成列表一一对应，根据编号规则的prop设置编号组成的信息
              _this9.formulaRules.forEach(function (t, index) {
                if (isVariable(t)) {
                  $set(numberData, t.prop, list[index]);
                }
              });
              // 原始流水号
              _this9.originalNumber = numberData.serialNumber;
              // 当前最大号
              _this9.currMaxNumber = tempNumber.serialNumber;
            case 5:
            case "end":
              return _context8.stop();
          }
        }, _callee8);
      }))();
    },
    /**
     * 用户手动更新流水号时，替换临时编号中的流水号
     * @param {String} splitValue 当前临时编号中以##分隔的编号规则
     * @param {String} newNumber 用户输入的编号
     * @param {String} numberIndex 编号在规则中的位置
     */
    replaceSerialNumber: function replaceSerialNumber(splitValue, newNumber, numberIndex) {
      var list = splitValue.split(this.numberSplit);
      return fill_default()(list, newNumber, numberIndex, numberIndex + 1);
    },
    /**
     * 更改流水号，用户输入流水号后，
     */
    changSerialNumber: function changSerialNumber(number) {
      var tempNumber = this.tempNumber,
        numberSplit = this.numberSplit,
        replaceSerialNumber = this.replaceSerialNumber;

      // 替换【可见的以分隔符分隔的】临时编号中的流水号
      var showList = replaceSerialNumber(tempNumber.showSplit, number, this.showSerialNumberIndex);
      // 替换【整个以分隔符分隔的】临时编号中的流水号
      var list = replaceSerialNumber(tempNumber.splitValue, number, this.serialNumberIndex);
      this.tempNumber = mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, tempNumber), {}, {
        showSplit: showList.join(numberSplit),
        showValue: showList.join(''),
        splitValue: list.join(numberSplit),
        serialNumber: number
      });
    },
    /**
     * 保存编号
     */
    confirm: function confirm() {
      var _this10 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee9() {
        var inputNumber, maxNumber, length;
        return regenerator_default().wrap(function _callee9$(_context9) {
          while (1) switch (_context9.prev = _context9.next) {
            case 0:
              // 如果用户手动修改过，则判断是否有漏号，否则直接保存编号
              // 比较最大号与用户输入的号，来计算有几个空闲号
              inputNumber = Number(_this10.tempNumber.serialNumber);
              maxNumber = Number(_this10.currMaxNumber); // 如果用户没有手动修改过编号 或者 当前最大号大于等于用户输入的编号，则不判断漏号，直接保存
              if (!(Number(_this10.originalNumber) === inputNumber || maxNumber >= inputNumber)) {
                _context9.next = 4;
                break;
              }
              return _context9.abrupt("return", _this10.saveNumber());
            case 4:
              // 计算漏号个数
              length = inputNumber - maxNumber;
              if (length) {
                _context9.next = 7;
                break;
              }
              return _context9.abrupt("return", _this10.saveNumber());
            case 7:
              return _context9.abrupt("return", messageConfirm("\u7CFB\u7EDF\u4F1A\u4EA7\u751F".concat(length, "\u6761\u6F0F\u53F7\uFF0C\u786E\u8BA4\u6267\u884C\u4FEE\u6539\u5417\uFF1F"), function () {
                _this10.saveNumber();
              }, function () {}, '漏号提醒'));
            case 8:
            case "end":
              return _context9.stop();
          }
        }, _callee9);
      }))();
    },
    /**
     * 调用后台保存编号接口保存编号
     */
    saveNumber: function saveNumber() {
      var _this11 = this;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default().mark(function _callee10() {
        var tempNumber, saveFn, numberParam;
        return regenerator_default().wrap(function _callee10$(_context10) {
          while (1) switch (_context10.prev = _context10.next) {
            case 0:
              _context10.next = 2;
              return validateForm(_this11.$refs.numberFormRef);
            case 2:
              tempNumber = _this11.tempNumber, saveFn = _this11.saveFn;
              numberParam = {
                numDataVo: mainvue_type_script_lang_js_objectSpread(mainvue_type_script_lang_js_objectSpread({}, tempNumber), {}, {
                  numStatus: 1
                }),
                serialNumber: tempNumber.showValue,
                processInstanceId: _this11.piid
              };
              _this11.saveLoading = true;
              _context10.prev = 5;
              _context10.next = 8;
              return isFunction_default()(saveFn) ? saveFn(numberParam) : _this11.docNumberService.save(numberParam);
            case 8:
              message('编号成功');
              _this11.$emit('save', tempNumber);
              _this11.hide();
              _context10.next = 17;
              break;
            case 13:
              _context10.prev = 13;
              _context10.t0 = _context10["catch"](5);
              message(_context10.t0.message, 'warning', 3000);
              // 如果编号已存在，则重新生成临时编号
              _this11.renderTempNumber();
            case 17:
              _context10.prev = 17;
              _this11.saveLoading = false;
              return _context10.finish(17);
            case 20:
            case "end":
              return _context10.stop();
          }
        }, _callee10, null, [[5, 13, 17, 20]]);
      }))();
    },
    /**
     * 隐藏dialog
     */
    hide: function hide() {
      this.dialogVisible = false;
      this.numberData = {};
      this.$emit('update:visible', false);
    }
  }
});
;// CONCATENATED MODULE: ./packages/doc-number/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/doc-number/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/doc-number/index.js

main.install = function (Vue) {
  Vue.component(main.name, main);
};
/* harmony default export */ var doc_number = (main);
module.exports = __webpack_exports__;
/******/ })()
;