((typeof self !== 'undefined' ? self : this)["webpackJsonpcontractor_management_sm"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpcontractor_management_sm"] || []).push([[30],{

/***/ "21d8":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return workFlowStatusTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return unitStatusTypes; });
/* unused harmony export planStatusTypes */
/* unused harmony export riskColorTypes */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return statusListTypes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return borrowListTypes; });
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d81d");
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e9f5");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("ab43");
/* harmony import */ var core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_map_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _enumTagType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("a96a");




// 用于构造枚举字段管理对象

function enumManager(name, enums) {
  var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  var values = enums.map(function (item) {
    return item.value;
  });
  var index = values.indexOf(value);
  return enums[index].type;
}
var workFlowStatusTypes = function workFlowStatusTypes(value) {
  return enumManager('workFlowStatus', _enumTagType__WEBPACK_IMPORTED_MODULE_4__[/* workFlowStatus */ "g"], value);
};
var unitStatusTypes = function unitStatusTypes(value) {
  return enumManager('unitStatus', _enumTagType__WEBPACK_IMPORTED_MODULE_4__[/* unitStatus */ "e"], value);
};
var planStatusTypes = function planStatusTypes(value) {
  return enumManager('planStatus', _enumTagType__WEBPACK_IMPORTED_MODULE_4__[/* planStatus */ "b"], value);
};
var riskColorTypes = function riskColorTypes(value) {
  return enumManager('riskColor', _enumTagType__WEBPACK_IMPORTED_MODULE_4__[/* riskColor */ "c"], value);
};
var statusListTypes = function statusListTypes(value) {
  return enumManager('statusList', _enumTagType__WEBPACK_IMPORTED_MODULE_4__[/* statusList */ "d"], value);
};
var borrowListTypes = function borrowListTypes(value) {
  return enumManager('borrowList', _enumTagType__WEBPACK_IMPORTED_MODULE_4__[/* borrowList */ "a"], value);
};

/***/ }),

/***/ "2532":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var uncurryThis = __webpack_require__("e330");
var notARegExp = __webpack_require__("5a34");
var requireObjectCoercible = __webpack_require__("1d80");
var toString = __webpack_require__("577e");
var correctIsRegExpLogic = __webpack_require__("ab13");

var stringIndexOf = uncurryThis(''.indexOf);

// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  includes: function includes(searchString /* , position = 0 */) {
    return !!~stringIndexOf(
      toString(requireObjectCoercible(this)),
      toString(notARegExp(searchString)),
      arguments.length > 1 ? arguments[1] : undefined
    );
  }
});


/***/ }),

/***/ "2baa":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// Should throw an error on invalid iterator
// https://issues.chromium.org/issues/336839115
module.exports = function (methodName, argument) {
  // eslint-disable-next-line es/no-iterator -- required for testing
  var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
  if (method) try {
    method.call({ next: null }, argument).next();
  } catch (error) {
    return true;
  }
};


/***/ }),

/***/ "44e7":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var isObject = __webpack_require__("861d");
var classof = __webpack_require__("c6b6");
var wellKnownSymbol = __webpack_require__("b622");

var MATCH = wellKnownSymbol('match');

// `IsRegExp` abstract operation
// https://tc39.es/ecma262/#sec-isregexp
module.exports = function (it) {
  var isRegExp;
  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
};


/***/ }),

/***/ "4de4":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var $filter = __webpack_require__("b727").filter;
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");

var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');

// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  filter: function filter(callbackfn /* , thisArg */) {
    return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  }
});


/***/ }),

/***/ "53ca":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _typeof; });
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a4d3");
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e01a");
/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d28b");
/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("e260");
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("3ca3");
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("ddb0");
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_6__);







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);
}


/***/ }),

/***/ "5530":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread2; });
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a4d3");
/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("4de4");
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("14d9");
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("e9f5");
/* harmony import */ var core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("910d");
/* harmony import */ var core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_filter_js__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("7d54");
/* harmony import */ var core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("e439");
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("dbb4");
/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("b64b");
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("d3b7");
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("159b");
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("ade3");












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 _objectSpread2(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) {
      Object(_defineProperty_js__WEBPACK_IMPORTED_MODULE_11__[/* default */ "a"])(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;
}


/***/ }),

/***/ "5a0c":
/***/ (function(module, exports, __webpack_require__) {

!function(t,e){ true?module.exports=e():undefined}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));

/***/ }),

/***/ "5a34":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var isRegExp = __webpack_require__("44e7");

var $TypeError = TypeError;

module.exports = function (it) {
  if (isRegExp(it)) {
    throw new $TypeError("The method doesn't accept regular expressions");
  } return it;
};


/***/ }),

/***/ "6964":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var defineBuiltIn = __webpack_require__("cb2d");

module.exports = function (target, src, options) {
  for (var key in src) defineBuiltIn(target, key, src[key], options);
  return target;
};


/***/ }),

/***/ "7db0":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var $find = __webpack_require__("b727").find;
var addToUnscopables = __webpack_require__("44d2");

var FIND = 'find';
var SKIPS_HOLES = true;

// Shouldn't skip holes
// eslint-disable-next-line es/no-array-prototype-find -- testing
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });

// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  find: function find(callbackfn /* , that = undefined */) {
    return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  }
});

// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables(FIND);


/***/ }),

/***/ "910d":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var call = __webpack_require__("c65b");
var aCallable = __webpack_require__("59ed");
var anObject = __webpack_require__("825a");
var getIteratorDirect = __webpack_require__("46c4");
var createIteratorProxy = __webpack_require__("c5cc");
var callWithSafeIterationClosing = __webpack_require__("9bdd");
var IS_PURE = __webpack_require__("c430");
var iteratorClose = __webpack_require__("2a62");
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__("2baa");
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__("f99f");

var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });
var filterWithoutClosingOnEarlyError = !IS_PURE && !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR
  && iteratorHelperWithoutClosingOnEarlyError('filter', TypeError);

var FORCED = IS_PURE || FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;

var IteratorProxy = createIteratorProxy(function () {
  var iterator = this.iterator;
  var predicate = this.predicate;
  var next = this.next;
  var result, done, value;
  while (true) {
    result = anObject(call(next, iterator));
    done = this.done = !!result.done;
    if (done) return;
    value = result.value;
    if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
  }
});

// `Iterator.prototype.filter` method
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
  filter: function filter(predicate) {
    anObject(this);
    try {
      aCallable(predicate);
    } catch (error) {
      iteratorClose(this, 'throw', error);
    }

    if (filterWithoutClosingOnEarlyError) return call(filterWithoutClosingOnEarlyError, this, predicate);

    return new IteratorProxy(getIteratorDirect(this), {
      predicate: predicate
    });
  }
});


/***/ }),

/***/ "99af":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var fails = __webpack_require__("d039");
var isArray = __webpack_require__("e8b5");
var isObject = __webpack_require__("861d");
var toObject = __webpack_require__("7b0b");
var lengthOfArrayLike = __webpack_require__("07fa");
var doesNotExceedSafeInteger = __webpack_require__("3511");
var createProperty = __webpack_require__("8418");
var arraySpeciesCreate = __webpack_require__("65f0");
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var wellKnownSymbol = __webpack_require__("b622");
var V8_VERSION = __webpack_require__("1212");

var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');

// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/679
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  var array = [];
  array[IS_CONCAT_SPREADABLE] = false;
  return array.concat()[0] !== array;
});

var isConcatSpreadable = function (O) {
  if (!isObject(O)) return false;
  var spreadable = O[IS_CONCAT_SPREADABLE];
  return spreadable !== undefined ? !!spreadable : isArray(O);
};

var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');

// `Array.prototype.concat` method
// https://tc39.es/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  // eslint-disable-next-line no-unused-vars -- required for `.length`
  concat: function concat(arg) {
    var O = toObject(this);
    var A = arraySpeciesCreate(O, 0);
    var n = 0;
    var i, k, length, len, E;
    for (i = -1, length = arguments.length; i < length; i++) {
      E = i === -1 ? O : arguments[i];
      if (isConcatSpreadable(E)) {
        len = lengthOfArrayLike(E);
        doesNotExceedSafeInteger(n + len);
        for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
      } else {
        doesNotExceedSafeInteger(n + 1);
        createProperty(A, n++, E);
      }
    }
    A.length = n;
    return A;
  }
});


/***/ }),

/***/ "a222":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"28eb61d9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/contractor-management-sm/views/ShortTermContractor.vue?vue&type=template&id=588fb20b
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-card',{staticClass:"h-full",attrs:{"body-style":{ height: '100%' }}},[_c('div',{staticClass:"flex flex-wrap"},[_c('el-input',{staticClass:"w-200px mr-10px mb-10px",attrs:{"clearable":"","size":"small","maxlength":50,"placeholder":("" + (_vm.$t('单位名称、单位负责人')))},model:{value:(_vm.search.keywords),callback:function ($$v) {_vm.$set(_vm.search, "keywords", $$v)},expression:"search.keywords"}}),_c('el-select',{staticClass:"w-200px mr-10px mb-10px",attrs:{"size":"small","placeholder":("" + (_vm.$t('单位状态'))),"filterable":"","clearable":""},model:{value:(_vm.search.status),callback:function ($$v) {_vm.$set(_vm.search, "status", $$v)},expression:"search.status"}},_vm._l((_vm.unitStatusList),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.displayName,"value":Number(item.code)}})}),1),_c('el-select',{staticClass:"w-200px mr-10px mb-10px",attrs:{"size":"small","placeholder":("" + (_vm.$t('是否黑名单'))),"filterable":"","clearable":""},model:{value:(_vm.search.isBlacklist),callback:function ($$v) {_vm.$set(_vm.search, "isBlacklist", $$v)},expression:"search.isBlacklist"}},_vm._l((_vm.blackList),function(item){return _c('el-option',{key:item.code,attrs:{"label":item.displayName,"value":item.code}})}),1),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.searchList}},[_vm._v("搜索")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.reset}},[_vm._v("重置")]),_c('el-button',{attrs:{"size":"small","type":"primary","disabled":!_vm.$hasAccess('create')},on:{"click":function($event){return _vm.operate('create', null)}}},[_vm._v("新增")]),_c('el-button',{attrs:{"size":"small","disabled":!_vm.$hasAccess('addBlack')},on:{"click":function($event){return _vm.setBlack(true)}}},[_vm._v("加入黑名单")]),_c('el-button',{attrs:{"size":"small","disabled":!_vm.$hasAccess('removeBlack')},on:{"click":function($event){return _vm.setBlack(false)}}},[_vm._v("移除黑名单")])],1),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:"table",staticClass:"mt-10px",attrs:{"data":_vm.tableData,"border":"","stripe":"","height":"calc(100% - 104px)","row-key":"id"},on:{"selection-change":_vm.selectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"50","reserve-selection":""}}),_c('el-table-column',{attrs:{"prop":"name","show-overflow-tooltip":"","label":("" + (_vm.$t('单位名称'))),"min-width":"150"}}),_c('el-table-column',{attrs:{"prop":"projectNames","show-overflow-tooltip":"","label":("" + (_vm.$t('所属项目'))),"min-width":"150"}}),_c('el-table-column',{attrs:{"prop":"leaderName","show-overflow-tooltip":"","width":"120","label":("" + (_vm.$t('单位负责人')))}}),_c('el-table-column',{attrs:{"prop":"phoneNumber","show-overflow-tooltip":"","label":("" + (_vm.$t('联系电话'))),"width":"140"}}),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","label":("" + (_vm.$t('在厂周期'))),"width":"190","prop":"inFactoryCycle"}}),_c('el-table-column',{attrs:{"prop":"status","width":"80","label":("" + (_vm.$t('单位状态')))},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-tag',{attrs:{"size":"mini","type":_vm.unitStatusTypes(scope.row.status)}},[_vm._v(_vm._s(scope.row.statusStr))])]}}])}),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","label":("" + (_vm.$t('单位总人数'))),"width":"100","prop":"inToFactoryCount"}}),_c('el-table-column',{attrs:{"show-overflow-tooltip":"","label":("" + (_vm.$t('已完成入厂人数'))),"width":"120","prop":"personnelCount"}}),_c('el-table-column',{attrs:{"prop":"isBlacklist","width":"100","label":("" + (_vm.$t('是否黑名单')))},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.isBlacklist === true)?_c('el-tag',{attrs:{"size":"mini","type":"danger"}},[_vm._v("是")]):(scope.row.isBlacklist === false)?_c('el-tag',{attrs:{"size":"mini","type":"success"}},[_vm._v("否")]):_c('span')]}}])}),_c('el-table-column',{attrs:{"prop":"approvalStatus","width":"80","label":("" + (_vm.$t('流程状态')))},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-tag',{attrs:{"size":"mini","type":_vm.workFlowStatusTypes(scope.row.approvalStatus)}},[_vm._v(_vm._s(scope.row.approvalStatusStr))])]}}])}),_c('el-table-column',{attrs:{"label":"操作","width":"270px","fixed":"right"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('table-operate-button',{key:scope.row.id,attrs:{"buttons":_vm.buttons(scope.row)}})]}}])})],1),_c('el-pagination',{staticClass:"mt-20px text-right",attrs:{"background":"","current-page":_vm.page.pageNo,"page-sizes":[15, 30, 45, 60, 75, 90],"page-size":_vm.page.pageSize,"layout":"total, sizes, prev, pager, next, jumper","total":_vm.total},on:{"update:currentPage":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"update:current-page":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"size-change":_vm.searchList,"current-change":_vm.findList,"update:pageSize":function($event){return _vm.$set(_vm.page, "pageSize", $event)},"update:page-size":function($event){return _vm.$set(_vm.page, "pageSize", $event)}}})],1),(_vm.approvalFlowDialog)?_c('ApprovalFlowDialog',{attrs:{"visible":_vm.approvalFlowDialog,"id":_vm.flowTaskId},on:{"update:visible":function($event){_vm.approvalFlowDialog=$event},"cancel":function($event){_vm.approvalFlowDialog = false}}}):_vm._e(),_c('ShortTermContractorDialog',{attrs:{"visible":_vm.shortTermContractorDialog,"id":_vm.rowId,"mode":_vm.dialogMode},on:{"update:visible":function($event){_vm.shortTermContractorDialog=$event},"save":_vm.searchList}}),_c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"mini-dialog",attrs:{"close-on-click-modal":false,"title":"加入黑名单","visible":_vm.dialogBlackShow},on:{"update:visible":function($event){_vm.dialogBlackShow=$event}}},[_c('el-form',{ref:"formBlack",attrs:{"label-width":"150px","rules":_vm.rulesForm,"model":_vm.form}},[_c('el-form-item',{attrs:{"label":"评价等级","prop":"evaluationlevel"}},[_c('el-rate',{staticClass:"!leading-loose",attrs:{"show-text":""},model:{value:(_vm.form.evaluationlevel),callback:function ($$v) {_vm.$set(_vm.form, "evaluationlevel", $$v)},expression:"form.evaluationlevel"}})],1),_c('el-form-item',{attrs:{"label":"评价意见","prop":"evaluationOpinions"}},[_c('el-input',{attrs:{"type":"textarea","rows":4,"maxlength":"500","show-word-limit":"","placeholder":"请填写评价意见"},model:{value:(_vm.form.evaluationOpinions),callback:function ($$v) {_vm.$set(_vm.form, "evaluationOpinions", $$v)},expression:"form.evaluationOpinions"}})],1)],1),_c('div',{staticClass:"dialog-footer flex justify-center items-center",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"size":"small","type":"primary","loading":_vm.saveLoading},on:{"click":_vm.saveBlackList}},[_vm._v("确定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogBlackShow = false}}},[_vm._v("取消")])],1)],1),_c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"small-dialog",attrs:{"close-on-click-modal":false,"title":"延期","visible":_vm.delayDialogVisible,"before-close":_vm.closeDelayDialog},on:{"update:visible":function($event){_vm.delayDialogVisible=$event}}},[_c('el-form',{ref:"delayForm",attrs:{"label-width":"150px","model":_vm.delayForm,"rules":_vm.delayRules}},[_c('el-form-item',{attrs:{"label":"单位名称"}},[_c('el-input',{attrs:{"disabled":""},model:{value:(_vm.delayForm.name),callback:function ($$v) {_vm.$set(_vm.delayForm, "name", $$v)},expression:"delayForm.name"}})],1),_c('el-form-item',{attrs:{"label":"延期时间","prop":"delayDate"}},[_c('el-date-picker',{attrs:{"size":"small","type":"date","placeholder":("" + (_vm.$t('请选择'))),"value-format":"yyyy-MM-dd","picker-options":_vm.pickerOptions},model:{value:(_vm.delayForm.delayDate),callback:function ($$v) {_vm.$set(_vm.delayForm, "delayDate", $$v)},expression:"delayForm.delayDate"}})],1),_c('el-form-item',{attrs:{"label":"延期原因","prop":"reason"}},[_c('el-input',{attrs:{"type":"textarea","rows":4,"maxlength":"500","show-word-limit":"","placeholder":"请输入延期原因"},model:{value:(_vm.delayForm.reason),callback:function ($$v) {_vm.$set(_vm.delayForm, "reason", $$v)},expression:"delayForm.reason"}})],1)],1),_c('div',{staticClass:"dialog-footer flex justify-center items-center",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"size":"small","type":"primary","loading":_vm.delayLoading},on:{"click":function($event){return _vm.saveDelay('save')}}},[_vm._v("确定")]),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.saveDelay('submit')}}},[_vm._v("提交")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.closeDelayDialog(null)}}},[_vm._v("取消")])],1)],1)],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/contractor-management-sm/views/ShortTermContractor.vue?vue&type=template&id=588fb20b

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regenerator.js + 1 modules
var regenerator = __webpack_require__("c14f");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__("5530");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
var slicedToArray = __webpack_require__("3835");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("1da1");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
var es_error_cause = __webpack_require__("d9e2");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
var es_array_concat = __webpack_require__("99af");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
var es_array_find = __webpack_require__("7db0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
var es_array_includes = __webpack_require__("caad");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
var es_array_iterator = __webpack_require__("e260");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
var es_array_push = __webpack_require__("14d9");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("b0c0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
var es_iterator_constructor = __webpack_require__("e9f5");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.find.js
var es_iterator_find = __webpack_require__("f665");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__("a9e3");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
var es_promise = __webpack_require__("e6cf");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
var es_regexp_exec = __webpack_require__("ac1f");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
var es_string_includes = __webpack_require__("2532");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
var es_string_iterator = __webpack_require__("3ca3");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
var es_string_search = __webpack_require__("841c");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
var web_dom_collections_iterator = __webpack_require__("ddb0");

// EXTERNAL MODULE: ./node_modules/@wiz-api/contractor-management/lib/contractor-management.umd.js
var contractor_management_umd = __webpack_require__("77b0");

// EXTERNAL MODULE: ./src/components/safety/enumField/enumTypeMethods.js
var enumTypeMethods = __webpack_require__("21d8");

// EXTERNAL MODULE: external "_"
var external_ = __webpack_require__("60bb");

// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
var dayjs_min = __webpack_require__("5a0c");
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);

// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib??ref--12-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/contractor-management-sm/views/ShortTermContractor.vue?vue&type=script&lang=js





















//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//





var TableOperateButton = function TableOperateButton() {
  return __webpack_require__.e(/* import() */ 13).then(__webpack_require__.bind(null, "f22d"));
};
var ApprovalFlowDialog = function ApprovalFlowDialog() {
  return Promise.all(/* import() */[__webpack_require__.e(5), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, "dfed"));
};
var ShortTermContractorDialog = function ShortTermContractorDialog() {
  return Promise.all(/* import() */[__webpack_require__.e(4), __webpack_require__.e(6), __webpack_require__.e(47)]).then(__webpack_require__.bind(null, "6f0f"));
};
var periodContractorApi = new contractor_management_umd["PeriodContractorApi"]();
/* harmony default export */ var ShortTermContractorvue_type_script_lang_js = ({
  components: {
    TableOperateButton: TableOperateButton,
    ApprovalFlowDialog: ApprovalFlowDialog,
    ShortTermContractorDialog: ShortTermContractorDialog
  },
  data: function data() {
    var _this = this;
    var validateDelayDate = function validateDelayDate(rule, value, callback) {
      if (!value) {
        callback(new Error('请选择延期时间'));
      } else if (dayjs_min_default()(_this.delayForm.lastEndDate).valueOf() >= dayjs_min_default()(value).valueOf()) {
        callback(new Error('延期时间必须大于当前在厂周期结束时间'));
      } else {
        callback();
      }
    };
    return {
      unitStatusList: [{
        code: 0,
        displayName: '待入厂'
      }, {
        code: 1,
        displayName: '在厂'
      }, {
        code: 2,
        displayName: '已退场'
      }],
      workFlowStatusList: [{
        code: 0,
        displayName: '待提交'
      }, {
        code: 1,
        displayName: '审核中'
      }, {
        code: 2,
        displayName: '已驳回'
      }, {
        code: 3,
        displayName: '已撤回'
      }, {
        code: 9,
        displayName: '已完成'
      }],
      blackList: [{
        code: true,
        displayName: '是'
      }, {
        code: false,
        displayName: '否'
      }],
      search: {
        status: '',
        keywords: '',
        isBlacklist: ''
      },
      page: {
        pageNo: 1,
        pageSize: 15
      },
      total: 0,
      loading: false,
      tableData: [],
      approvalFlowDialog: false,
      flowTaskId: null,
      shortTermContractorDialog: false,
      rowId: '',
      dialogMode: '',
      dialogBlackShow: false,
      form: {
        evaluationOpinions: ''
      },
      rulesForm: {
        evaluationlevel: [{
          required: true,
          message: '请选择评价等级',
          trigger: ['blur', 'change']
        }]
      },
      selectionData: [],
      delayDialogVisible: false,
      delayForm: {
        name: ''
      },
      delayRules: {
        delayDate: [{
          required: true,
          validator: validateDelayDate,
          trigger: ['change']
        }],
        reason: [{
          required: true,
          message: '请输入延期原因',
          trigger: ['blur']
        }]
      },
      pickerOptions: {
        disabledDate: function disabledDate(time) {
          return time.getTime() < Date.now() - 86400000;
        }
      },
      saveLoading: false,
      delayLoading: false
    };
  },
  computed: {
    unitStatusTypes: function unitStatusTypes() {
      return function (val) {
        return Object(enumTypeMethods["c" /* unitStatusTypes */])(val);
      };
    },
    workFlowStatusTypes: function workFlowStatusTypes() {
      return function (val) {
        var type = '';
        switch (val) {
          case 0:
            type = 'primary';
            break;
          case 1:
            type = 'warning';
            break;
          case 9:
            type = 'success';
            break;
          default:
            type = 'danger';
            break;
        }
        return type;
      };
    },
    unitStatusMap: function unitStatusMap() {
      var _this2 = this;
      return function (val) {
        var _this2$unitStatusList;
        return ((_this2$unitStatusList = _this2.unitStatusList.find(function (i) {
          return Number(i.code) === val;
        })) === null || _this2$unitStatusList === void 0 ? void 0 : _this2$unitStatusList.displayName) || '';
      };
    },
    currentUser: function currentUser() {
      var userInfo = Wiz.AuthHooks.GetUserInfo();
      return (userInfo === null || userInfo === void 0 ? void 0 : userInfo.profile) || {};
    },
    buttons: function buttons() {
      var _this3 = this;
      return function (val) {
        return [{
          text: '查看',
          click: function click() {
            return _this3.operate('read', val);
          },
          isShow: _this3.$hasAccess('read')
        }, {
          text: '编辑',
          click: function click() {
            return _this3.operate('update', val);
          },
          isShow: _this3.$hasAccess('update') && !val.isBlacklist && val.approvalStatus !== 1
        }, {
          text: '删除',
          click: function click() {
            return _this3.deleteData(val);
          },
          // 不是单位负责人且流程状态不为审核中,单位状态为待入厂或者已退场
          isShow: _this3.$hasAccess('delete') && _this3.currentUser.name !== val.account && [0, 2].includes(val.status) && ![1].includes(val.approvalStatus)
        }, {
          text: '提交',
          click: function click() {
            return _this3.operate('submit', val);
          },
          // 待提交、被驳回（只有提交人能再次提交）、已撤回状态和非黑名单下能提交
          isShow: _this3.$hasAccess('submit') && ([0, 3].includes(val.approvalStatus) || [2].includes(val.approvalStatus) && val.taskId) && !val.isBlacklist
        }, {
          text: '审批',
          click: function click() {
            return _this3.operate('approve', val);
          },
          // 是下一审批人且流程状态为审核中
          isShow: _this3.$hasAccess('audit') && val.oprateCode === '001' && [1].includes(val.approvalStatus)
        }, {
          text: '撤回',
          click: function click() {
            return _this3.operate('withdraw', val);
          },
          // 流程状态为审核中
          isShow: (_this3.$hasAccess('withdraw') || _this3.currentUser.id === val.submitUserId) && [1].includes(val.approvalStatus) && !val.isBlacklist && val.activeRevocation === 1
        }, {
          text: '查看流程',
          click: function click() {
            return _this3.handleFlow(val);
          },
          isShow: _this3.$hasAccess('readFlow') && val.flowTaskId
        }, {
          text: '延期',
          click: function click() {
            return _this3.operate('delay', val);
          },
          // 单位状态为在厂或已退场且流程状态为已完成且非黑名单
          isShow: _this3.$hasAccess('delay') && [1, 2].includes(val.status) && !val.isBlacklist && ![1].includes(val.approvalStatus)
        }];
      };
    },
    // 兼容除saas其他项目使用该模块
    basePath: function basePath() {
      return _.get(Wiz, 'globalSettings.globalConfig.routerBase') ? "/".concat(Wiz.globalSettings.globalConfig.routerBase) : '';
    }
  },
  methods: {
    searchList: function searchList() {
      this.page.pageNo = 1;
      this.findList();
    },
    findList: function findList() {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee() {
        var _yield$periodContract, _yield$periodContract2, err, res;
        return Object(regenerator["a" /* default */])().w(function (_context) {
          while (1) switch (_context.n) {
            case 0:
              _this4.$refs.table && _this4.$refs.table.clearSelection();
              _this4.selectionData = [];
              _this4.loading = true;
              _context.n = 1;
              return periodContractorApi.pagedListQuery(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this4.search), {}, {
                skipCount: (_this4.page.pageNo - 1) * _this4.page.pageSize,
                maxResultCount: _this4.page.pageSize
              }));
            case 1:
              _yield$periodContract = _context.v;
              _yield$periodContract2 = Object(slicedToArray["a" /* default */])(_yield$periodContract, 2);
              err = _yield$periodContract2[0];
              res = _yield$periodContract2[1];
              if (!err) {
                _this4.tableData = Object(external_["map"])(res.items, function (item) {
                  item.inFactoryCycle = "".concat(dayjs_min_default()(item.startDate).format('YYYY-MM-DD'), "-").concat(dayjs_min_default()(item.endDate).format('YYYY-MM-DD'));
                  return item;
                });
                _this4.total = res.totalCount;
              }
              _this4.loading = false;
            case 2:
              return _context.a(2);
          }
        }, _callee);
      }))();
    },
    reset: function reset() {
      this.search = this.$options.data().search;
      this.searchList();
    },
    operate: function operate(type, row) {
      var _this5 = this;
      switch (type) {
        case 'create':
          this.shortTermContractorDialog = true;
          this.dialogMode = 'create';
          break;
        case 'update':
        case 'approve':
        case 'read':
          if ([0, 2, 3].includes(row.approvalStatus)) {
            this.shortTermContractorDialog = true;
            this.dialogMode = type;
            this.rowId = row.id;
          } else {
            this.$router.push({
              path: "".concat(this.basePath, "/contractor-management-sm/short-term-contractor-detail"),
              query: {
                id: row.id,
                mode: type
              }
            });
          }
          break;
        case 'submit':
          this.$confirm('是否确认提交当前记录？', '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
          }).then(/*#__PURE__*/Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee2() {
            var err, _yield$periodContract3, _yield$periodContract4, _yield$periodContract5, _yield$periodContract6, _yield$periodContract7, _yield$periodContract8;
            return Object(regenerator["a" /* default */])().w(function (_context2) {
              while (1) switch (_context2.n) {
                case 0:
                  _this5.loading = true;
                  if (!(row.approvalStatus === 2)) {
                    _context2.n = 2;
                    break;
                  }
                  ;
                  _context2.n = 1;
                  return periodContractorApi[row.isDelay ? 'delayApprove' : 'approve']({
                    body: {
                      id: row.id,
                      isPass: true,
                      approve: '',
                      taskId: row.taskId
                    }
                  });
                case 1:
                  _yield$periodContract3 = _context2.v;
                  _yield$periodContract4 = Object(slicedToArray["a" /* default */])(_yield$periodContract3, 1);
                  err = _yield$periodContract4[0];
                  _context2.n = 6;
                  break;
                case 2:
                  if (row.isDelay) {
                    _context2.n = 4;
                    break;
                  }
                  ;
                  _context2.n = 3;
                  return periodContractorApi.submit_0(row.id);
                case 3:
                  _yield$periodContract5 = _context2.v;
                  _yield$periodContract6 = Object(slicedToArray["a" /* default */])(_yield$periodContract5, 1);
                  err = _yield$periodContract6[0];
                  _context2.n = 6;
                  break;
                case 4:
                  ;
                  _context2.n = 5;
                  return periodContractorApi.delaySave({
                    body: {
                      id: row.id,
                      delayTime: dayjs_min_default()(row.delayTime).format('YYYY-MM-DD HH:mm:ss'),
                      delayReason: row.delayReason,
                      isSubmit: true
                    }
                  });
                case 5:
                  _yield$periodContract7 = _context2.v;
                  _yield$periodContract8 = Object(slicedToArray["a" /* default */])(_yield$periodContract7, 1);
                  err = _yield$periodContract8[0];
                case 6:
                  if (!err) {
                    _this5.$message.success('提交成功！');
                    _this5.findList();
                  } else {
                    _this5.loading = false;
                  }
                case 7:
                  return _context2.a(2);
              }
            }, _callee2);
          }))).catch(function () {});
          break;
        case 'delay':
          this.delayDialogVisible = true;
          this.delayForm.name = row.name;
          this.delayForm.id = row.id;
          this.delayForm.approvalStatus = row.approvalStatus;
          this.delayForm.taskId = row.taskId;
          this.delayForm.lastEndDate = dayjs_min_default()(row.endDate).format('YYYY-MM-DD');
          break;
        case 'withdraw':
          this.$confirm('是否确认撤回当前记录？', '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
          }).then(/*#__PURE__*/Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee3() {
            var _yield$periodContract9, _yield$periodContract0, err;
            return Object(regenerator["a" /* default */])().w(function (_context3) {
              while (1) switch (_context3.n) {
                case 0:
                  _this5.loading = true;
                  _context3.n = 1;
                  return periodContractorApi[row.isDelay ? 'delayApprove' : 'approve']({
                    body: {
                      id: row.id,
                      isPass: true,
                      approve: '',
                      taskId: row.flowTaskId,
                      isRevocation: true
                    }
                  });
                case 1:
                  _yield$periodContract9 = _context3.v;
                  _yield$periodContract0 = Object(slicedToArray["a" /* default */])(_yield$periodContract9, 1);
                  err = _yield$periodContract0[0];
                  if (!err) {
                    _this5.$message.success('撤回成功！');
                    _this5.findList();
                  } else {
                    _this5.loading = false;
                  }
                case 2:
                  return _context3.a(2);
              }
            }, _callee3);
          }))).catch(function () {});
          break;
        default:
          break;
      }
    },
    // 查看流程
    handleFlow: function handleFlow(row) {
      this.flowTaskId = row.flowTaskId;
      if (typeof this.flowTaskId === 'string' && _.includes(this.flowTaskId, '-')) {
        window.wiz.OpenWorkFlowDesignByFlowId(this.flowTaskId);
      } else {
        this.approvalFlowDialog = true;
      }
    },
    deleteData: function deleteData(row) {
      var _this6 = this;
      this.$confirm('是否确定删除？', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(/*#__PURE__*/Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee4() {
        var _yield$periodContract1, _yield$periodContract10, err;
        return Object(regenerator["a" /* default */])().w(function (_context4) {
          while (1) switch (_context4.n) {
            case 0:
              _context4.n = 1;
              return periodContractorApi.callDelete(row.id);
            case 1:
              _yield$periodContract1 = _context4.v;
              _yield$periodContract10 = Object(slicedToArray["a" /* default */])(_yield$periodContract1, 1);
              err = _yield$periodContract10[0];
              if (!err) {
                _this6.$message.success('删除成功！');
                _this6.searchList();
              }
            case 2:
              return _context4.a(2);
          }
        }, _callee4);
      }))).catch(function () {});
    },
    selectionChange: function selectionChange(values) {
      this.selectionData = values;
    },
    setBlack: function setBlack(isBlack) {
      var _this$selectionData,
        _this7 = this;
      if (((_this$selectionData = this.selectionData) === null || _this$selectionData === void 0 ? void 0 : _this$selectionData.length) === 0) {
        this.$message.warning('请选择记录');
        return;
      }
      if (isBlack) {
        var filterData = Object(external_["filter"])(this.selectionData, function (item) {
          return item.isBlacklist;
        });
        if (filterData.length > 0) {
          this.$message.warning('请选择非黑名单记录');
          return;
        }
        // 加入黑名单
        this.dialogBlackShow = true;
        this.$nextTick(function () {
          _this7.$refs.formBlack.resetFields();
        });
      } else {
        var _filterData = Object(external_["filter"])(this.selectionData, function (item) {
          return !item.isBlacklist;
        });
        if (_filterData.length > 0) {
          this.$message.warning('请选择黑名单记录');
          return;
        }
        this.$confirm('确认移除黑名单？', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(/*#__PURE__*/Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee5() {
          var _yield$periodContract11, _yield$periodContract12, err;
          return Object(regenerator["a" /* default */])().w(function (_context5) {
            while (1) switch (_context5.n) {
              case 0:
                _context5.n = 1;
                return periodContractorApi.moveOutBlacklist({
                  body: Object(external_["map"])(_this7.selectionData, 'id')
                });
              case 1:
                _yield$periodContract11 = _context5.v;
                _yield$periodContract12 = Object(slicedToArray["a" /* default */])(_yield$periodContract11, 1);
                err = _yield$periodContract12[0];
                if (!err) {
                  _this7.$message.success('移除黑名单成功！');
                  _this7.findList();
                }
              case 2:
                return _context5.a(2);
            }
          }, _callee5);
        }))).catch(function () {});
      }
    },
    saveBlackList: function saveBlackList() {
      var _this8 = this;
      this.$refs.formBlack.validate(/*#__PURE__*/function () {
        var _ref5 = Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee6(valid) {
          var _yield$periodContract13, _yield$periodContract14, err;
          return Object(regenerator["a" /* default */])().w(function (_context6) {
            while (1) switch (_context6.n) {
              case 0:
                if (!valid) {
                  _context6.n = 2;
                  break;
                }
                _this8.saveLoading = true;
                _context6.n = 1;
                return periodContractorApi.moveToBlacklist({
                  body: Object(external_["map"])(_this8.selectionData, function (item) {
                    return {
                      id: item.id,
                      appraiseGrade: _this8.form.evaluationlevel,
                      appraiseOpinion: _this8.form.evaluationOpinions
                    };
                  })
                });
              case 1:
                _yield$periodContract13 = _context6.v;
                _yield$periodContract14 = Object(slicedToArray["a" /* default */])(_yield$periodContract13, 1);
                err = _yield$periodContract14[0];
                _this8.saveLoading = false;
                if (!err) {
                  _this8.$message.success('设置黑名单成功！');
                  _this8.dialogBlackShow = false;
                  _this8.findList();
                }
              case 2:
                return _context6.a(2);
            }
          }, _callee6);
        }));
        return function (_x) {
          return _ref5.apply(this, arguments);
        };
      }());
    },
    saveDelay: function saveDelay(type) {
      var _this9 = this;
      this.$refs.delayForm.validate(/*#__PURE__*/function () {
        var _ref6 = Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee7(valid) {
          var apiRes;
          return Object(regenerator["a" /* default */])().w(function (_context7) {
            while (1) switch (_context7.n) {
              case 0:
                if (!valid) {
                  _context7.n = 5;
                  break;
                }
                _this9.delayLoading = true;
                apiRes = [];
                if (!(_this9.delayForm.approvalStatus === 2)) {
                  _context7.n = 2;
                  break;
                }
                _context7.n = 1;
                return periodContractorApi.delayApprove({
                  body: {
                    id: _this9.delayForm.id,
                    isPass: true,
                    approve: '',
                    taskId: _this9.delayForm.taskId
                  }
                });
              case 1:
                apiRes = _context7.v;
                _context7.n = 4;
                break;
              case 2:
                _context7.n = 3;
                return periodContractorApi.delaySave({
                  body: {
                    id: _this9.delayForm.id,
                    delayTime: dayjs_min_default()(_this9.delayForm.delayDate).format('YYYY-MM-DD 23:59:59'),
                    delayReason: _this9.delayForm.reason,
                    isSubmit: type === 'submit'
                  }
                });
              case 3:
                apiRes = _context7.v;
              case 4:
                _this9.delayLoading = false;
                if (!apiRes[0]) {
                  _this9.$message.success("".concat(type === 'save' ? '保存' : '提交', "\u6210\u529F\uFF01"));
                  _this9.closeDelayDialog();
                  _this9.findList();
                }
              case 5:
                return _context7.a(2);
            }
          }, _callee7);
        }));
        return function (_x2) {
          return _ref6.apply(this, arguments);
        };
      }());
    },
    closeDelayDialog: function closeDelayDialog(done) {
      this.delayForm = this.$options.data().delayForm;
      this.$refs.delayForm.clearValidate();
      if (done) {
        done();
      } else {
        this.delayDialogVisible = false;
      }
    }
  },
  created: function created() {
    var _this0 = this;
    return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee8() {
      return Object(regenerator["a" /* default */])().w(function (_context8) {
        while (1) switch (_context8.n) {
          case 0:
            _context8.n = 1;
            return _this0.searchList();
          case 1:
            return _context8.a(2);
        }
      }, _callee8);
    }))();
  }
});
// CONCATENATED MODULE: ./src/modules/contractor-management-sm/views/ShortTermContractor.vue?vue&type=script&lang=js
 /* harmony default export */ var views_ShortTermContractorvue_type_script_lang_js = (ShortTermContractorvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/modules/contractor-management-sm/views/ShortTermContractor.vue





/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  views_ShortTermContractorvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var ShortTermContractor = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "a38e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ toPropertyKey; });

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__("53ca");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
var es_symbol_to_primitive = __webpack_require__("8172");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
var es_error_cause = __webpack_require__("d9e2");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.date.to-primitive.js
var es_date_to_primitive = __webpack_require__("efec");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__("a9e3");

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js





function toPrimitive(t, r) {
  if ("object" != Object(esm_typeof["a" /* default */])(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != Object(esm_typeof["a" /* default */])(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}

// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js


function toPropertyKey(t) {
  var i = toPrimitive(t, "string");
  return "symbol" == Object(esm_typeof["a" /* default */])(i) ? i : i + "";
}


/***/ }),

/***/ "a96a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return workFlowStatus; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return unitStatus; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return planStatus; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return statusList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return borrowList; });
/* unused harmony export evaluateStatus */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return riskColor; });
/* unused harmony export riskList */
/* unused harmony export lslList */
/* unused harmony export lsLevel */
/* unused harmony export lecLevel */
/* unused harmony export lssList */
/* unused harmony export leclList */
/* unused harmony export leceList */
/* unused harmony export leccList */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return wordsList; });
// 用于管理枚举字段

// 审批状态
var workFlowStatus = [{
  label: '待提交',
  value: 0,
  type: 'primary'
}, {
  label: '审核中',
  value: 1,
  type: 'warning'
}, {
  label: '已完成',
  value: 2,
  type: 'success'
}, {
  label: '已驳回',
  value: 3,
  type: 'danger'
}];

// 单位入厂状态
var unitStatus = [{
  label: '待入厂',
  value: 0,
  type: 'primary'
}, {
  label: '在厂',
  value: 1,
  type: 'success'
}, {
  label: '已退厂',
  value: 2,
  type: 'danger'
}, {
  label: '黑名单',
  value: 3,
  type: 'danger'
}];

// 危险源辨识计划 计划状态
var planStatus = [{
  label: '待发布',
  value: 0,
  type: 'primary'
}, {
  label: '已发布',
  value: 1,
  type: 'warning'
}, {
  label: '已逾期',
  value: 2,
  type: 'danger'
}, {
  label: '已完成',
  value: 3,
  type: 'success'
}];

// 工器具管理-试验状态
var statusList = [{
  label: '正常',
  value: 0,
  type: 'success'
}, {
  label: '超期未检',
  value: 1,
  type: 'danger'
}, {
  label: '即将到期',
  value: 2,
  type: 'warning'
}, {
  label: '报废',
  value: 3,
  type: 'danger'
}];

// 工器具管理-借用状态
var borrowList = [{
  label: '借用中',
  value: 0,
  type: 'primary'
}, {
  label: '不可借',
  value: 1,
  type: 'danger'
}, {
  label: '可借',
  value: 2,
  type: 'success'
}];

// 评估状态计算
var evaluateStatus = [{
  value: 0,
  label: '待评估',
  type: 'primary'
}, {
  value: 1,
  displayName: '已评估',
  type: 'success'
}, {
  value: 2,
  label: '已逾期',
  type: 'danger'
}, {
  value: 3,
  label: '被驳回',
  type: 'danger'
}];

// 管控级别对应的风险颜色
var riskColor = [{
  value: '重大风险',
  type: '红色'
}, {
  value: '较大风险',
  type: '橙色'
}, {
  value: '一般风险',
  type: '黄色'
}, {
  value: '低风险',
  type: '蓝色'
}];

// 风险等级
var riskList = [{
  label: '重大风险',
  value: 0
}, {
  label: '较大风险',
  value: 1
}, {
  label: '一般风险',
  value: 2
}, {
  label: '低风险',
  value: 3
}];

// 风险等级
var lslList = [{
  label: '企业经常发生此类事故过5分',
  value: 5
}, {
  label: '企业管控措施不足预期发生4分',
  value: 4
}, {
  label: '行业内有发生过此类事故3分',
  value: 3
}, {
  label: '偶尔发生此类事故2分',
  value: 2
}, {
  label: '没有发生过1分',
  value: 1
}];

// 风险等级
var lsLevel = [{
  min: 20,
  max: 25,
  deep: 'A/1级',
  level: '重大风险',
  color: '红色',
  value: 0
}, {
  min: 15,
  max: 16,
  deep: 'B/2级',
  level: '较大风险',
  color: '橙色',
  value: 1
}, {
  min: 9,
  max: 12,
  deep: 'C/3级',
  level: '一般风险',
  color: '黄色',
  value: 2
}, {
  min: 4,
  max: 8,
  deep: 'D/4级',
  level: '低风险',
  color: '蓝色',
  value: 3
}, {
  min: 1,
  max: 3,
  deep: 'E/5级',
  level: '低风险',
  color: '蓝色',
  value: 4
}];

// 风险等级
var lecLevel = [{
  max: 2000000,
  min: 320,
  deep: 'A/1级',
  level: '重大风险',
  color: '红色',
  value: 0
}, {
  min: 160,
  max: 320,
  deep: 'B/2级',
  level: '较大风险',
  color: '橙色',
  value: 1
}, {
  min: 70,
  max: 160,
  deep: 'C/3级',
  level: '一般风险',
  color: '黄色',
  value: 2
}, {
  min: 20,
  max: 70,
  deep: 'D/4级',
  level: '低风险',
  color: '蓝色',
  value: 3
}, {
  min: 0,
  max: 20,
  deep: 'E/5级',
  level: '低风险',
  color: '蓝色',
  value: 4
}];

// 风险等级
var lssList = [{
  label: '人员死亡损失百万以上5分',
  value: 5
}, {
  label: '丧失劳动力损失50万以上4分',
  value: 4
}, {
  label: '轻伤或慢性疾病一万元以上3分',
  value: 3
}, {
  label: '轻微伤一万元以下2分',
  value: 2
}, {
  label: '无伤亡无损失1分',
  value: 1
}];
var leclList = [{
  label: '完全可以预料到会发生10分',
  value: 10
}, {
  label: '相当可能6分',
  value: 6
}, {
  label: '可能，但不经常3分',
  value: 3
}, {
  label: '可能性小，完全意外1分',
  value: 1
}, {
  label: '极不可能0.2分',
  value: 0.2
}, {
  label: '实际不可能0.1分',
  value: 0.1
}];
var leceList = [{
  label: '一日连续暴露10分',
  value: 10
}, {
  label: '每天工作时问内暴露6分',
  value: 6
}, {
  label: '每周一次，或偶然暴露3分',
  value: 3
}, {
  label: '每月一次暴露2分',
  value: 2
}, {
  label: '每年几次暴露1分',
  value: 1
}, {
  label: '非常罕见的暴露0.5分',
  value: 0.5
}];
var leccList = [{
  label: '10人以上死亡造成重大财产损失100分',
  value: 100
}, {
  label: '数人死亡，或造成很大财产损失40分',
  value: 40
}, {
  label: '一人死亡，或造成一定的财产损失15分',
  value: 15
}, {
  label: '严重，重伤，致残，或较小的财产损失7分',
  value: 7
}, {
  label: '轻伤或很小的财产损失3分',
  value: 3
}, {
  label: '无伤亡，不利于基本的安全卫生要求1分',
  value: 1
}];
var wordsList = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];

/***/ }),

/***/ "ab13":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var wellKnownSymbol = __webpack_require__("b622");

var MATCH = wellKnownSymbol('match');

module.exports = function (METHOD_NAME) {
  var regexp = /./;
  try {
    '/./'[METHOD_NAME](regexp);
  } catch (error1) {
    try {
      regexp[MATCH] = false;
      return '/./'[METHOD_NAME](regexp);
    } catch (error2) { /* empty */ }
  } return false;
};


/***/ }),

/***/ "ab43":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var call = __webpack_require__("c65b");
var aCallable = __webpack_require__("59ed");
var anObject = __webpack_require__("825a");
var getIteratorDirect = __webpack_require__("46c4");
var createIteratorProxy = __webpack_require__("c5cc");
var callWithSafeIterationClosing = __webpack_require__("9bdd");
var iteratorClose = __webpack_require__("2a62");
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__("2baa");
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__("f99f");
var IS_PURE = __webpack_require__("c430");

var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });
var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
  && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);

var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;

var IteratorProxy = createIteratorProxy(function () {
  var iterator = this.iterator;
  var result = anObject(call(this.next, iterator));
  var done = this.done = !!result.done;
  if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
});

// `Iterator.prototype.map` method
// https://tc39.es/ecma262/#sec-iterator.prototype.map
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
  map: function map(mapper) {
    anObject(this);
    try {
      aCallable(mapper);
    } catch (error) {
      iteratorClose(this, 'throw', error);
    }

    if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);

    return new IteratorProxy(getIteratorDirect(this), {
      mapper: mapper
    });
  }
});


/***/ }),

/***/ "ade3":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a38e");

function _defineProperty(e, r, t) {
  return (r = Object(_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(r)) in e ? Object.defineProperty(e, r, {
    value: t,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[r] = t, e;
}


/***/ }),

/***/ "b64b":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var toObject = __webpack_require__("7b0b");
var nativeKeys = __webpack_require__("df75");
var fails = __webpack_require__("d039");

var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });

// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
  keys: function keys(it) {
    return nativeKeys(toObject(it));
  }
});


/***/ }),

/***/ "b64e":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var iteratorClose = __webpack_require__("2a62");

module.exports = function (iters, kind, value) {
  for (var i = iters.length - 1; i >= 0; i--) {
    if (iters[i] === undefined) continue;
    try {
      value = iteratorClose(iters[i].iterator, kind, value);
    } catch (error) {
      kind = 'throw';
      value = error;
    }
  }
  if (kind === 'throw') throw value;
  return value;
};


/***/ }),

/***/ "c5cc":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var call = __webpack_require__("c65b");
var create = __webpack_require__("7c73");
var createNonEnumerableProperty = __webpack_require__("9112");
var defineBuiltIns = __webpack_require__("6964");
var wellKnownSymbol = __webpack_require__("b622");
var InternalStateModule = __webpack_require__("69f3");
var getMethod = __webpack_require__("dc4a");
var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
var createIterResultObject = __webpack_require__("4754");
var iteratorClose = __webpack_require__("2a62");
var iteratorCloseAll = __webpack_require__("b64e");

var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var ITERATOR_HELPER = 'IteratorHelper';
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
var NORMAL = 'normal';
var THROW = 'throw';
var setInternalState = InternalStateModule.set;

var createIteratorProxyPrototype = function (IS_ITERATOR) {
  var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);

  return defineBuiltIns(create(IteratorPrototype), {
    next: function next() {
      var state = getInternalState(this);
      // for simplification:
      //   for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
      //   for `%IteratorHelperPrototype%.next` - just a value
      if (IS_ITERATOR) return state.nextHandler();
      if (state.done) return createIterResultObject(undefined, true);
      try {
        var result = state.nextHandler();
        return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
      } catch (error) {
        state.done = true;
        throw error;
      }
    },
    'return': function () {
      var state = getInternalState(this);
      var iterator = state.iterator;
      state.done = true;
      if (IS_ITERATOR) {
        var returnMethod = getMethod(iterator, 'return');
        return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
      }
      if (state.inner) try {
        iteratorClose(state.inner.iterator, NORMAL);
      } catch (error) {
        return iteratorClose(iterator, THROW, error);
      }
      if (state.openIters) try {
        iteratorCloseAll(state.openIters, NORMAL);
      } catch (error) {
        return iteratorClose(iterator, THROW, error);
      }
      if (iterator) iteratorClose(iterator, NORMAL);
      return createIterResultObject(undefined, true);
    }
  });
};

var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
var IteratorHelperPrototype = createIteratorProxyPrototype(false);

createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');

module.exports = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
  var IteratorProxy = function Iterator(record, state) {
    if (state) {
      state.iterator = record.iterator;
      state.next = record.next;
    } else state = record;
    state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
    state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
    state.nextHandler = nextHandler;
    state.counter = 0;
    state.done = false;
    setInternalState(this, state);
  };

  IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;

  return IteratorProxy;
};


/***/ }),

/***/ "caad":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var $includes = __webpack_require__("4d64").includes;
var fails = __webpack_require__("d039");
var addToUnscopables = __webpack_require__("44d2");

// FF99+ bug
var BROKEN_ON_SPARSE = fails(function () {
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
  return !Array(1).includes();
});

// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  includes: function includes(el /* , fromIndex = 0 */) {
    return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  }
});

// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('includes');


/***/ }),

/***/ "d81d":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var $map = __webpack_require__("b727").map;
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");

var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');

// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  map: function map(callbackfn /* , thisArg */) {
    return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  }
});


/***/ }),

/***/ "dbb4":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var DESCRIPTORS = __webpack_require__("83ab");
var ownKeys = __webpack_require__("56ef");
var toIndexedObject = __webpack_require__("fc6a");
var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
var createProperty = __webpack_require__("8418");

// `Object.getOwnPropertyDescriptors` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
  getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
    var O = toIndexedObject(object);
    var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
    var keys = ownKeys(O);
    var result = {};
    var index = 0;
    var key, descriptor;
    while (keys.length > index) {
      descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
      if (descriptor !== undefined) createProperty(result, key, descriptor);
    }
    return result;
  }
});


/***/ }),

/***/ "e439":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var fails = __webpack_require__("d039");
var toIndexedObject = __webpack_require__("fc6a");
var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f;
var DESCRIPTORS = __webpack_require__("83ab");

var FORCED = !DESCRIPTORS || fails(function () { nativeGetOwnPropertyDescriptor(1); });

// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
  getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
    return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
  }
});


/***/ }),

/***/ "f665":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var call = __webpack_require__("c65b");
var iterate = __webpack_require__("2266");
var aCallable = __webpack_require__("59ed");
var anObject = __webpack_require__("825a");
var getIteratorDirect = __webpack_require__("46c4");
var iteratorClose = __webpack_require__("2a62");
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__("f99f");

var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('find', TypeError);

// `Iterator.prototype.find` method
// https://tc39.es/ecma262/#sec-iterator.prototype.find
$({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
  find: function find(predicate) {
    anObject(this);
    try {
      aCallable(predicate);
    } catch (error) {
      iteratorClose(this, 'throw', error);
    }

    if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate);

    var record = getIteratorDirect(this);
    var counter = 0;
    return iterate(record, function (value, stop) {
      if (predicate(value, counter++)) return stop(value);
    }, { IS_RECORD: true, INTERRUPTED: true }).result;
  }
});


/***/ })

}]);
//# sourceMappingURL=contractor-management-sm.umd.30.js.map