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

/***/ 0:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 3:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

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

"use strict";
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SpecialPersonnelLedger_vue_vue_type_style_index_0_id_7570fa72_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ee6e");
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SpecialPersonnelLedger_vue_vue_type_style_index_0_id_7570fa72_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SpecialPersonnelLedger_vue_vue_type_style_index_0_id_7570fa72_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

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

exports = module.exports = __webpack_require__("2350")(false);
// imports


// module
exports.push([module.i, "[data-v-7570fa72] .el-card__body{height:100%}", ""]);

// exports


/***/ }),

/***/ "cbdb":
/***/ (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":"44521ab8-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/SpecialPersonnelLedger.vue?vue&type=template&id=7570fa72&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:"h-full"},[_c('div',{staticClass:"h-full flex flex-col"},[_c('div',[_c('div',{staticClass:"flex justify-between justify-items-center mb-10px overflow-hidden"},[_c('div',{staticClass:"flex items-center mb-5px"},[_c('span',{staticClass:"border-l-3 border-color-primary pl-10px text-18px"},[_vm._v("特种作业人员台账")])]),_c('div',[_c('span',{staticClass:"mr-8px"},[_vm._v("选择单位:")]),_c('el-select',{attrs:{"disabled":!!_vm.contractorId,"size":"small","placeholder":"请选择单位","clearable":""},on:{"change":_vm.unitChange},model:{value:(_vm.formData.contractorId),callback:function ($$v) {_vm.$set(_vm.formData, "contractorId", $$v)},expression:"formData.contractorId"}},_vm._l((_vm.unitList),function(item){return _c('el-option',{key:item.id,attrs:{"value":item.id,"label":item.orgName}})}),1)],1)]),_c('div',{staticClass:"flex h-415px"},[_c('div',{staticClass:"flex-1 mr-15px  border-inherit border-1 flex flex-col w-1/2"},[_c('h3',{staticClass:"h-50px pl-10px flex text-hex-$contentTextColor items-center"},[_vm._v("\n            不同工种人员分布\n          ")]),_c('div',{staticClass:"flex-1"},[(_vm.isShowPieChart)?_c('div',{staticClass:"h-full pie-chart",attrs:{"id":"ledger-pie-chart"}},[_c('v-chart',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.chartLoading),expression:"chartLoading"}],staticClass:"w-full",attrs:{"options":_vm.option,"autoresize":"","theme":_vm.currentTheme}})],1):_vm._e()])]),_c('div',{staticClass:"flex-1  border-inherit border-1 px-10px w-1/2"},[_c('h3',{staticClass:"flex justify-between h-50px text-hex-$contentTextColor items-center"},[_c('span',[_vm._v("最近"+_vm._s(_vm.expireDay)+"天证件到期提醒")]),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){_vm.dayDialog = true}}},[_vm._v("设置")])],1),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.certificateTableLoading),expression:"certificateTableLoading"}],attrs:{"data":_vm.certificateTableData,"border":"","height":_vm.tableHeight,"stripe":""}},[_c('el-table-column',{attrs:{"label":"序号","type":"index","width":"50"}}),_c('el-table-column',{attrs:{"label":"姓名","prop":"personnelName","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"工种","prop":"jobs","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n                "+_vm._s(_vm.findWorkName(scope.row.jobs))+"\n              ")]}}])}),_c('el-table-column',{attrs:{"label":"提醒内容","prop":"certificateName","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(_vm.dayjs(scope.row.certificateDate) < _vm.dayjs(_vm.dayjs().format('YYYY-MM-DD')))?_c('span',[_vm._v("您的\""+_vm._s(scope.row.certificateName)+"作业证\"已过期，请及时更换")]):_c('span',[_vm._v("您的\""+_vm._s(scope.row.certificateName)+"作业证\"即将过期，请及时更换")])]}}])}),_c('el-table-column',{attrs:{"label":"到期日期","prop":"certificateDate"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(_vm.dayjs(scope.row.certificateDate) < _vm.dayjs(_vm.dayjs().format('YYYY-MM-DD')))?_c('span',{staticClass:"text-rose-500"},[_vm._v("\n                  "+_vm._s(_vm.dayjs(scope.row.certificateDate).format('YYYY-MM-DD'))+"\n                ")]):_c('span',[_vm._v(" "+_vm._s(_vm.dayjs(scope.row.certificateDate).format('YYYY-MM-DD'))+" ")])]}}])})],1)],1)])]),_c('div',{staticClass:"flex-1 overflow-y-auto"},[_c('h3',{staticClass:"h-50px flex text-hex-$contentTextColor items-center pl-10px"},[_vm._v("\n        不同工种人员分布详情\n      ")]),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.personTableLoading),expression:"personTableLoading"}],attrs:{"data":_vm.personTableData,"border":"","height":_vm.tableHeight,"stripe":""}},[_c('el-table-column',{attrs:{"label":"序号","type":"index","width":"50"}}),_c('el-table-column',{attrs:{"label":"姓名","prop":"name","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"工种","prop":"jobs","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n            "+_vm._s(_vm.wordJob(scope.row.jobs + ''))+"\n          ")]}}])}),_c('el-table-column',{attrs:{"label":"持证数量","prop":"certificateCount","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"人员状态","prop":"workflowStatus","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n            "+_vm._s(_vm.wordPerson(scope.row.workflowStatus + ''))+"\n          ")]}}])})],1)],1)]),_c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{"close-on-click-modal":false,"title":"设置证件到期提醒天数","visible":_vm.dayDialog,"width":"400px"},on:{"update:visible":function($event){_vm.dayDialog=$event},"open":_vm.dialogOpened}},[_c('div',{staticClass:"flex mb-10px justify-center"},[_c('el-input-number',{attrs:{"controls-position":"right","min":1,"placeholder":"","size":"small","clearable":""},model:{value:(_vm.formDay),callback:function ($$v) {_vm.formDay=$$v},expression:"formDay"}}),_c('span',{staticClass:"ml-5px flex items-center"},[_vm._v("天")])],1),_c('div',{staticClass:"flex justify-center"},[_c('el-button',{attrs:{"size":"small","type":"primary","icon":"iconfont icon-save","loading":_vm.saveLoading},on:{"click":_vm.saveForm}},[_vm._v("确定")]),_c('el-button',{attrs:{"size":"small","icon":"iconfont icon-close"},on:{"click":function($event){_vm.dayDialog = false}}},[_vm._v("取消")])],1)])],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/contractor-management-sm/views/SpecialPersonnelLedger.vue?vue&type=template&id=7570fa72&scoped=true

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

// 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/@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__("5530");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
var es_array_filter = __webpack_require__("4de4");

// 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.iterator.js
var es_array_iterator = __webpack_require__("e260");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
var es_array_map = __webpack_require__("d81d");

// 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.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__("159b");

// 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: ./node_modules/@wiz-api/setting-management/lib/setting-management.umd.js
var setting_management_umd = __webpack_require__("2160");

// EXTERNAL MODULE: ./node_modules/@wiz-api/abp-application/lib/abp-application.umd.js
var abp_application_umd = __webpack_require__("39d3");

// EXTERNAL MODULE: ./node_modules/@wiz-api/data-category-management/lib/data-category-management.umd.js
var data_category_management_umd = __webpack_require__("2adf");

// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
var dayjs_min = __webpack_require__("5a0c");

// EXTERNAL MODULE: external "Vuex"
var external_Vuex_ = __webpack_require__("5880");

// 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/SpecialPersonnelLedger.vue?vue&type=script&lang=js












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







var contractorAccountRelationApi = new contractor_management_umd["ContractorAccountRelationApi"]();
var abpApplicationConfigurationApi = new abp_application_umd["AbpApplicationConfigurationApi"]();
var dataCategoryApi = new data_category_management_umd["DataCategoryApi"]();
var contractorApi = new contractor_management_umd["ContractorApi"]();
var specialWorkDynamicLedgerApi = new contractor_management_umd["SpecialWorkDynamicLedgerApi"]();
var settingApi = new setting_management_umd["SettingApi"]();
/* harmony default export */ var SpecialPersonnelLedgervue_type_script_lang_js = ({
  name: 'special-personnel-ledger',
  computed: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, Object(external_Vuex_["mapGetters"])({
    currentTheme: 'System/currentTheme'
  })), {}, {
    tableHeight: function tableHeight() {
      return 'calc(100% - 60px)';
    },
    findWorkName: function findWorkName() {
      var _this = this;
      return function (val) {
        var _this$workTypeList$fi;
        return ((_this$workTypeList$fi = _this.workTypeList.find(function (i) {
          // eslint-disable-next-line eqeqeq
          return i.code == val;
        })) === null || _this$workTypeList$fi === void 0 ? void 0 : _this$workTypeList$fi.displayName) || '';
      };
    },
    wordJob: function wordJob() {
      var _this2 = this;
      return function (value) {
        var _this2$workTypeList$f;
        return ((_this2$workTypeList$f = _this2.workTypeList.find(function (item) {
          return item.code === value;
        })) === null || _this2$workTypeList$f === void 0 ? void 0 : _this2$workTypeList$f.displayName) || '';
      };
    },
    wordPerson: function wordPerson() {
      var _this3 = this;
      return function (value) {
        var _this3$personStatusLi;
        return ((_this3$personStatusLi = _this3.personStatusList.find(function (item) {
          return item.code === value;
        })) === null || _this3$personStatusLi === void 0 ? void 0 : _this3$personStatusLi.displayName) || '';
      };
    }
  }),
  data: function data() {
    return {
      isShowPieChart: false,
      chartLoading: false,
      saveLoading: false,
      formDay: 1,
      expireDay: 1,
      dayDialog: false,
      contractorId: '',
      formData: {
        contractorId: ''
      },
      unitList: [],
      certificateTableData: [],
      certificateTableLoading: false,
      personTableData: [],
      personTableLoading: false,
      option: {
        tooltip: {
          trigger: 'item'
        },
        legend: {
          bottom: '20px'
        },
        series: [{
          name: '工种人员分布',
          type: 'pie',
          radius: ['40%', '70%'],
          avoidLabelOverlap: false,
          itemStyle: {
            borderRadius: 10,
            borderColor: '#fff',
            borderWidth: 2
          },
          label: {
            show: false,
            position: 'center'
          },
          emphasis: {
            label: {
              show: true,
              fontSize: 40,
              fontWeight: 'bold'
            }
          },
          labelLine: {
            show: false
          },
          data: []
        }]
      },
      workTypeList: [],
      personStatusList: []
    };
  },
  methods: {
    getUnit: function getUnit() {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _yield$contractorApi$, _yield$contractorApi$2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return contractorApi.contractorNamesDto();
            case 2:
              _yield$contractorApi$ = _context.sent;
              _yield$contractorApi$2 = Object(slicedToArray["a" /* default */])(_yield$contractorApi$, 2);
              err = _yield$contractorApi$2[0];
              res = _yield$contractorApi$2[1];
              if (!err) {
                _this4.unitList = res.filter(function (item) {
                  return item.status === 1 && item.isBlock === false;
                });
              }
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    saveForm: function saveForm() {
      var _this5 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$settingApi$upd, _yield$settingApi$upd2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return settingApi.update({
                settingName: 'ContractorManagement.SystemConfigure.CertificateExpireDays',
                settingValue: _this5.formDay
              });
            case 2:
              _yield$settingApi$upd = _context2.sent;
              _yield$settingApi$upd2 = Object(slicedToArray["a" /* default */])(_yield$settingApi$upd, 2);
              err = _yield$settingApi$upd2[0];
              res = _yield$settingApi$upd2[1];
              if (!err) {
                _this5.$message({
                  type: 'success',
                  message: '更新成功!'
                });
                _this5.getExpireDay();
                _this5.getCertificateTableData();
                _this5.dayDialog = false;
              }
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    getExpireDay: function getExpireDay() {
      var _this6 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var _yield$settingApi$get, _yield$settingApi$get2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 2;
              return settingApi.getValue('ContractorManagement.SystemConfigure.CertificateExpireDays');
            case 2:
              _yield$settingApi$get = _context3.sent;
              _yield$settingApi$get2 = Object(slicedToArray["a" /* default */])(_yield$settingApi$get, 2);
              err = _yield$settingApi$get2[0];
              res = _yield$settingApi$get2[1];
              if (!err) {
                _this6.expireDay = res;
              }
            case 7:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    dialogOpened: function dialogOpened() {
      this.formDay = this.expireDay;
    },
    getEcahrtOption: function getEcahrtOption() {
      var _this7 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var _yield$specialWorkDyn, _yield$specialWorkDyn2, err, res, data;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _this7.chartLoading = true;
              _context4.next = 3;
              return _this7.getDataCategory();
            case 3:
              _context4.next = 5;
              return specialWorkDynamicLedgerApi.getWorkTypeLedger(Object(objectSpread2["a" /* default */])({}, _this7.formData));
            case 5:
              _yield$specialWorkDyn = _context4.sent;
              _yield$specialWorkDyn2 = Object(slicedToArray["a" /* default */])(_yield$specialWorkDyn, 2);
              err = _yield$specialWorkDyn2[0];
              res = _yield$specialWorkDyn2[1];
              if (!err) {
                _this7.isShowPieChart = !!(res && res.length > 0);
                data = _this7.workTypeList.map(function (item) {
                  var _res$find;
                  var value = ((_res$find = res.find(function (i) {
                    return i.name === item.code;
                  })) === null || _res$find === void 0 ? void 0 : _res$find.value) || 0;
                  return {
                    name: item.displayName,
                    value: value
                  };
                });
                _this7.option.series[0].data = data;
              }
              _this7.chartLoading = false;
            case 11:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    unitChange: function unitChange() {
      this.getCertificateTableData();
      this.getPersonTableData();
      this.getEcahrtOption();
    },
    getCertificateTableData: function getCertificateTableData() {
      var _this8 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee5() {
        var _yield$specialWorkDyn3, _yield$specialWorkDyn4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              _context5.next = 2;
              return specialWorkDynamicLedgerApi.getCertificateExpiredRemind(Object(objectSpread2["a" /* default */])({
                maxResultCount: 999,
                skipCount: 0
              }, _this8.formData));
            case 2:
              _yield$specialWorkDyn3 = _context5.sent;
              _yield$specialWorkDyn4 = Object(slicedToArray["a" /* default */])(_yield$specialWorkDyn3, 2);
              err = _yield$specialWorkDyn4[0];
              res = _yield$specialWorkDyn4[1];
              if (!err) {
                _this8.certificateTableData = res.items;
              }
            case 7:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    getPersonTableData: function getPersonTableData() {
      var _this9 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee6() {
        var _yield$specialWorkDyn5, _yield$specialWorkDyn6, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              _context6.next = 2;
              return specialWorkDynamicLedgerApi.getDetail(Object(objectSpread2["a" /* default */])({
                maxResultCount: 999,
                skipCount: 0
              }, _this9.formData));
            case 2:
              _yield$specialWorkDyn5 = _context6.sent;
              _yield$specialWorkDyn6 = Object(slicedToArray["a" /* default */])(_yield$specialWorkDyn5, 2);
              err = _yield$specialWorkDyn6[0];
              res = _yield$specialWorkDyn6[1];
              if (!err) {
                _this9.personTableData = res.items;
              }
            case 7:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    getDataCategory: function getDataCategory() {
      var _this10 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee7() {
        var _yield$abpApplication, _yield$abpApplication2, configError, abpConfigList, codes, _yield$dataCategoryAp, _yield$dataCategoryAp2, statusError, statusRes, values, codeMap, _yield$dataCategoryAp3, _yield$dataCategoryAp4, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee7$(_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              _context7.next = 2;
              return abpApplicationConfigurationApi.get();
            case 2:
              _yield$abpApplication = _context7.sent;
              _yield$abpApplication2 = Object(slicedToArray["a" /* default */])(_yield$abpApplication, 2);
              configError = _yield$abpApplication2[0];
              abpConfigList = _yield$abpApplication2[1];
              if (configError) {
                _context7.next = 24;
                break;
              }
              codes = [abpConfigList.setting.values['ContractorManagement.DataCategory.Jobs'], abpConfigList.setting.values['ContractorManagement.DataCategory.IncomingfactoryStatus']];
              _context7.next = 10;
              return dataCategoryApi.getListByCodes({
                codes: codes,
                includeDetails: true
              });
            case 10:
              _yield$dataCategoryAp = _context7.sent;
              _yield$dataCategoryAp2 = Object(slicedToArray["a" /* default */])(_yield$dataCategoryAp, 2);
              statusError = _yield$dataCategoryAp2[0];
              statusRes = _yield$dataCategoryAp2[1];
              values = ['workTypeList', 'personStatusList'];
              codeMap = codes.reduce(function (pre, code, index) {
                pre[code] = values[index];
                return pre;
              }, {});
              if (statusError) {
                _context7.next = 24;
                break;
              }
              _context7.next = 19;
              return dataCategoryApi.getListByIds({
                ids: statusRes.map(function (item) {
                  return item.id;
                }),
                includeDetails: true
              });
            case 19:
              _yield$dataCategoryAp3 = _context7.sent;
              _yield$dataCategoryAp4 = Object(slicedToArray["a" /* default */])(_yield$dataCategoryAp3, 2);
              err = _yield$dataCategoryAp4[0];
              res = _yield$dataCategoryAp4[1];
              if (!err) {
                res.forEach(function (item) {
                  _this10[codeMap[item.code]] = item.dataItems.map(function (i) {
                    return Object(objectSpread2["a" /* default */])({
                      value: i.code,
                      label: i.displayName
                    }, i);
                  });
                });
              }
            case 24:
            case "end":
              return _context7.stop();
          }
        }, _callee7);
      }))();
    },
    getContractorInfo: function getContractorInfo() {
      var _this11 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee8() {
        var _yield$contractorAcco, _yield$contractorAcco2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee8$(_context8) {
          while (1) switch (_context8.prev = _context8.next) {
            case 0:
              _context8.next = 2;
              return contractorAccountRelationApi.getContractorAccountRelationByUserDto();
            case 2:
              _yield$contractorAcco = _context8.sent;
              _yield$contractorAcco2 = Object(slicedToArray["a" /* default */])(_yield$contractorAcco, 2);
              err = _yield$contractorAcco2[0];
              res = _yield$contractorAcco2[1];
              if (!err) {
                // 检查是否是承包商
                _this11.formData.contractorId = res.contractorId;
                _this11.contractorId = res.contractorId;
                _this11.profileTemplateId = res.profileTemplateId;
              }
              _this11.getEcahrtOption();
              _this11.getCertificateTableData();
              _this11.getPersonTableData();
            case 10:
            case "end":
              return _context8.stop();
          }
        }, _callee8);
      }))();
    }
  },
  mounted: function mounted() {
    this.getContractorInfo();
    // this.getEcahrtOption()
    // this.getCertificateTableData()
    // this.getPersonTableData()
    this.getExpireDay();
    this.getUnit();
  }
});
// CONCATENATED MODULE: ./src/modules/contractor-management-sm/views/SpecialPersonnelLedger.vue?vue&type=script&lang=js
 /* harmony default export */ var views_SpecialPersonnelLedgervue_type_script_lang_js = (SpecialPersonnelLedgervue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/contractor-management-sm/views/SpecialPersonnelLedger.vue?vue&type=style&index=0&id=7570fa72&prod&lang=scss&scoped=true
var SpecialPersonnelLedgervue_type_style_index_0_id_7570fa72_prod_lang_scss_scoped_true = __webpack_require__("67bf");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

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






/* normalize component */

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

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

/***/ }),

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

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("8ead");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("62715e43", content, true, {"sourceMap":false,"shadowMode":false});

/***/ })

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