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

/***/ "417e":
/***/ (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_TemplateForm_vue_vue_type_style_index_0_id_7255807d_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cf17");
/* 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_TemplateForm_vue_vue_type_style_index_0_id_7255807d_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_TemplateForm_vue_vue_type_style_index_0_id_7255807d_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "43f9":
/***/ (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/ContractorTemplate.vue?vue&type=template&id=dc5a9dfc&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:"w-full h-full"},[_c('div',{staticClass:"flex mb-20px mr-20px"},[_c('div',[_c('el-input',{staticClass:"mr-10px !w-50",attrs:{"size":"small","placeholder":"请输入模板名称","clearable":""},model:{value:(_vm.searchData.templateName),callback:function ($$v) {_vm.$set(_vm.searchData, "templateName", $$v)},expression:"searchData.templateName"}}),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.handleSearch}},[_vm._v("搜索")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.resetSearch}},[_vm._v("重置")]),_c('el-button',{attrs:{"size":"small","type":"primary","disabled":!_vm.$hasAccess('create')},on:{"click":function($event){return _vm.handleAdd()}}},[_vm._v("新增")])],1)]),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.tableLoading),expression:"tableLoading"}],attrs:{"data":_vm.dataList,"border":"","height":_vm.tableHeight,"stripe":""}},[_c('el-table-column',{attrs:{"label":"序号","type":"index","width":"50"}}),_c('el-table-column',{attrs:{"label":"模板名称","prop":"templateName","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"创建人","prop":"operatorName","width":"180","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"创建时间","prop":"creationTime","width":"260","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n          "+_vm._s(_vm.dayjs(scope.row.creationTime).format('YYYY-MM-DD HH:mm:ss'))+"\n        ")]}}])}),_c('el-table-column',{attrs:{"label":"操作","width":"160"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini","disabled":!_vm.$hasAccess('update')},on:{"click":function($event){return _vm.handleEdit(scope.row)}}},[_vm._v("编辑")]),_c('el-button',{attrs:{"size":"mini","disabled":!_vm.$hasAccess('delete')},on:{"click":function($event){return _vm.handleDel(scope.row)}}},[_vm._v("删除")])]}}])})],1),_c('el-pagination',{staticClass:"float-right mt-20px ml-20px",attrs:{"background":"","current-page":_vm.pageConfig.SkipCount,"page-size":_vm.pageConfig.MaxResultCount,"layout":"total, sizes, prev, pager, next, jumper","page-sizes":[15, 30, 45, 60, 75, 90],"total":_vm.totalCount},on:{"size-change":_vm.tableSizeChange,"current-change":_vm.tableCurrentChange,"update:currentPage":function($event){return _vm.$set(_vm.pageConfig, "SkipCount", $event)},"update:current-page":function($event){return _vm.$set(_vm.pageConfig, "SkipCount", $event)},"update:pageSize":function($event){return _vm.$set(_vm.pageConfig, "MaxResultCount", $event)},"update:page-size":function($event){return _vm.$set(_vm.pageConfig, "MaxResultCount", $event)}}})],1),(_vm.dialogShow)?_c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{"close-on-click-modal":false,"title":_vm.pageType === 'create' ? '新增模板' : _vm.pageType === 'update' ? '编辑模板' : '模板详情',"visible":_vm.dialogShow,"width":"1330px"},on:{"update:visible":function($event){_vm.dialogShow=$event}}},[_c('template-form',{attrs:{"FormData":_vm.FormData,"pageType":_vm.pageType},on:{"save":_vm.handleSave,"cancel":function($event){_vm.dialogShow = false}}})],1):_vm._e()],1)}
var staticRenderFns = []


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

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

// 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/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.iterator.constructor.js
var es_iterator_constructor = __webpack_require__("e9f5");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
var es_iterator_for_each = __webpack_require__("7d54");

// 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/dayjs/dayjs.min.js
var dayjs_min = __webpack_require__("5a0c");

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

// 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/components/TemplateForm.vue?vue&type=template&id=7255807d&scoped=true
var TemplateFormvue_type_template_id_7255807d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"w-full custom-height"},[_c('div',{staticClass:"w-full overflow-y-auto overflow-x-hidden px-3"},[_c('el-form',{ref:"formAdd",attrs:{"label-width":"80px","label-position":"left","rules":_vm.rules,"model":_vm.formData}},[_c('el-form-item',{attrs:{"label":"模板名称","prop":"templateName"}},[_c('el-input',{staticClass:"w-full",attrs:{"placeholder":"请输入模板名称","maxlength":"50","show-word-limit":""},model:{value:(_vm.formData.templateName),callback:function ($$v) {_vm.$set(_vm.formData, "templateName", $$v)},expression:"formData.templateName"}})],1),_c('p',{staticClass:"font-bold mb-5"},[_vm._v("请勾选所需资质模板类型")]),_c('el-form-item',{staticClass:"form-nolabel",attrs:{"prop":"value"}},[_c('el-row',{attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('el-col',{attrs:{"span":11}},[_c('div',{staticClass:"flex mb-10px justify-between"},[_c('div',{staticClass:"mb-10px"},[_c('el-input',{staticClass:"mr-10px !w-50",attrs:{"size":"small","placeholder":"请输入标题","clearable":""},model:{value:(_vm.searchData.title),callback:function ($$v) {_vm.$set(_vm.searchData, "title", $$v)},expression:"searchData.title"}}),_c('el-select',{staticClass:"mr-10px !w-50",attrs:{"size":"small","placeholder":"请选择资质类别","clearable":""},model:{value:(_vm.searchData.directoryId),callback:function ($$v) {_vm.$set(_vm.searchData, "directoryId", $$v)},expression:"searchData.directoryId"}},_vm._l((_vm.typeList),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.name,"value":item.id}})}),1),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.handleSearch}},[_vm._v("搜索")])],1)]),_c('el-table',{ref:"tables",staticClass:"w-full",attrs:{"data":_vm.dataList,"border":"","height":"400px"},on:{"selection-change":_vm.selectChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"50","align":"center","selectable":_vm.isDisabled}}),_c('el-table-column',{attrs:{"label":"标题","align":"center","prop":"title","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"资质类别","align":"center","prop":"directoryName","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('span',{staticClass:"pr-10px"},[_vm._v("资质类别")]),_vm._v(_vm._s(_vm.number)+" ")]},proxy:true}])})],1)],1),_c('el-col',{staticClass:"ml-5 mr-5 text-center",attrs:{"span":2}},[_c('el-button',{staticClass:"button-normal",attrs:{"type":"primary","icon":"iconfont icon-line-right","disabled":_vm.disabledChoose,"size":"small"},on:{"click":_vm.choose}})],1),_c('el-col',{attrs:{"span":11}},[_c('div',{staticClass:"flex mb-10px justify-between"},[_c('div',{staticClass:"mb-10px"},[_c('el-input',{staticClass:"mr-10px !w-50",attrs:{"size":"small","placeholder":"请输入标题","clearable":""},model:{value:(_vm.searchChooseData.title),callback:function ($$v) {_vm.$set(_vm.searchChooseData, "title", $$v)},expression:"searchChooseData.title"}}),_c('el-select',{staticClass:"mr-10px !w-50",attrs:{"size":"small","placeholder":"请选择资质类别","clearable":""},model:{value:(_vm.searchChooseData.directoryId),callback:function ($$v) {_vm.$set(_vm.searchChooseData, "directoryId", $$v)},expression:"searchChooseData.directoryId"}},_vm._l((_vm.typeList),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.name,"value":item.name}})}),1),_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.handleChooseData}},[_vm._v("搜索")])],1)]),_c('el-table',{staticClass:"w-full",attrs:{"data":_vm.chooseFilterList,"border":"","height":"400px"}},[_c('el-table-column',{attrs:{"label":"标题","align":"center","prop":"title","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":"资质类别","align":"center","prop":"directoryName","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('span',{staticClass:"pr-10px"},[_vm._v("资质类别")]),_vm._v(_vm._s(_vm.count)+" ")]},proxy:true}])}),_c('el-table-column',{attrs:{"label":"操作","align":"center","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){return _vm.handleDel(scope.row)}}},[_vm._v("删除")])]}}])})],1)],1)],1)],1),_c('el-form-item',{staticClass:"form-nolabel"},[_c('div',{staticClass:"text-center w-full h-10 leading-10 mt-10px"},[_c('el-button',{attrs:{"size":"small","type":"primary","loading":_vm.formLoading},on:{"click":_vm.handleSave}},[_vm._v("保存")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.$emit('cancel')}}},[_vm._v("取消")])],1)])],1)],1)])}
var TemplateFormvue_type_template_id_7255807d_scoped_true_staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/contractor-management-sm/components/TemplateForm.vue?vue&type=template&id=7255807d&scoped=true

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

// 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.filter.js
var es_array_filter = __webpack_require__("4de4");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
var es_array_find_index = __webpack_require__("c740");

// 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.map.js
var es_array_map = __webpack_require__("d81d");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
var es_array_splice = __webpack_require__("a434");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js
var es_iterator_filter = __webpack_require__("910d");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js
var es_iterator_map = __webpack_require__("ab43");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.reduce.js
var es_iterator_reduce = __webpack_require__("9485");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
var es_iterator_some = __webpack_require__("a732");

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

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

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




















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



var guidanceConfigurationApi = new contractor_management_umd["GuidanceConfigurationApi"]();
var guidanceConfigurationDirectoryApi = new contractor_management_umd["GuidanceConfigurationDirectoryApi"]();
var profileTemplateConfigurationApi = new contractor_management_umd["ProfileTemplateConfigurationApi"]();
var profileTemplateGuidanceConfigurationApi = new contractor_management_umd["ProfileTemplateGuidanceConfigurationApi"]();
/* harmony default export */ var TemplateFormvue_type_script_lang_js = ({
  name: 'project-form',
  props: {
    pageType: {
      type: String,
      default: 'create'
    },
    FormData: {
      type: Object,
      default: function _default() {}
    }
  },
  created: function created() {
    // 获取模板配置资料
    this.getConfigList();
    // 获取配置列表
    this.getTypeList();
  },
  data: function data() {
    return {
      chooseTypeList: [],
      typeList: [],
      value: true,
      selection: [],
      searchData: {
        directoryId: '',
        title: '',
        // 是否排除人员指引配置
        excludePersonConfig: true
      },
      searchChooseData: {
        title: '',
        directoryId: ''
      },
      formLoading: false,
      formData: null,
      rules: {
        templateName: [{
          required: true,
          message: '请输入项目编号',
          trigger: 'blur'
        }]
      },
      // 选中资质模板过滤后显示的字段
      chooseFilterList: [],
      dataList: []
    };
  },
  computed: {
    number: function number() {
      console.log("".concat(this.formData.chooseList.length, "/").concat(this.dataList.length), '123');
      return "".concat(this.formData.chooseList.length, "/").concat(this.dataList.length);
    },
    count: function count() {
      console.log("".concat(this.formData.chooseList.length, "/").concat(this.formData.chooseList.length), '123');
      return "".concat(this.formData.chooseList.length, "/").concat(this.formData.chooseList.length);
    },
    disabledChoose: function disabledChoose() {
      return Object(external_["differenceBy"])(this.dataList, this.formData.chooseList, 'id').length === 0;
    }
  },
  watch: {
    FormData: {
      handler: function handler(newVal, oldVal) {
        var _this = this;
        this.formData = newVal;
        this.$nextTick(function () {
          _this.$refs.formAdd.clearValidate();
        });
      },
      deep: true,
      immediate: true
    }
  },
  methods: {
    // 获取配置列表
    getTypeList: function getTypeList() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee() {
        var _yield$guidanceConfig, _yield$guidanceConfig2, error, res;
        return Object(regenerator["a" /* default */])().w(function (_context) {
          while (1) switch (_context.n) {
            case 0:
              _context.n = 1;
              return guidanceConfigurationDirectoryApi.guidanceConfigurationDirectoryNamesDto();
            case 1:
              _yield$guidanceConfig = _context.v;
              _yield$guidanceConfig2 = Object(slicedToArray["a" /* default */])(_yield$guidanceConfig, 2);
              error = _yield$guidanceConfig2[0];
              res = _yield$guidanceConfig2[1];
              if (!error) {
                _this2.typeList = res;
              }
            case 2:
              return _context.a(2);
          }
        }, _callee);
      }))();
    },
    // 搜索
    handleChooseData: function handleChooseData() {
      var _this3 = this;
      if (!this.searchChooseData.title && !this.searchChooseData.directoryId) {
        this.chooseFilterList = this.formData.chooseList;
      } else if (this.searchChooseData.title && !this.searchChooseData.directoryId) {
        this.chooseFilterList = this.formData.chooseList.filter(function (item) {
          return item.title.includes(_this3.searchChooseData.title);
        });
      } else if (this.searchChooseData.directoryId && !this.searchChooseData.title) {
        this.chooseFilterList = this.formData.chooseList.filter(function (item) {
          return item.directoryName === _this3.searchChooseData.directoryId;
        });
      } else {
        this.chooseFilterList = this.formData.chooseList.filter(function (item) {
          return item.directoryName === _this3.searchChooseData.directoryId && item.title.includes(_this3.searchChooseData.title);
        });
      }
    },
    // 搜索
    handleSearch: function handleSearch() {
      this.getConfigList();
    },
    // 删除
    handleDel: function handleDel(row) {
      var index = this.formData.chooseList.findIndex(function (item) {
        return item.id === row.id;
      });
      if (index !== -1) {
        this.formData.chooseList.splice(index, 1);
      }
      var data = Object(external_["find"])(this.dataList, {
        id: row.id
      });
      if (data) {
        this.$refs.tables.toggleRowSelection(data, false);
      }
      this.searchChooseData = {
        title: '',
        directoryId: ''
      };
      this.handleChooseData();
      this.$nextTick(function () {});
    },
    // 事件-选中
    choose: function choose() {
      if (this.selection.length === 0) {
        this.$message({
          showClose: true,
          message: '请勾选所需资质模板类型',
          type: 'warning'
        });
        return;
      }
      var chooseList = [].concat(Object(toConsumableArray["a" /* default */])(this.selection), Object(toConsumableArray["a" /* default */])(this.formData.chooseList));
      this.formData.chooseList = chooseList.reduce(function (all, next) {
        return all.some(function (item) {
          return item.id === next.id;
        }) ? all : [].concat(Object(toConsumableArray["a" /* default */])(all), [next]);
      }, []);
      this.handleChooseData();
    },
    // 禁用复选框
    isDisabled: function isDisabled(row) {
      var selection = this.formData.chooseList.map(function (item) {
        return item.configurationId;
      });
      if (selection.includes(row.configurationId)) {
        return 0;
      }
      return 1;
    },
    // 选中复制到选中列表
    selectChange: function selectChange(val) {
      console.log(val);
      this.selection = Object(external_["uniqBy"])(val, 'id');
    },
    // 获取承包商信息列表
    getConfigList: function getConfigList() {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee2() {
        var _yield$guidanceConfig3, _yield$guidanceConfig4, error, res;
        return Object(regenerator["a" /* default */])().w(function (_context2) {
          while (1) switch (_context2.n) {
            case 0:
              _context2.n = 1;
              return guidanceConfigurationApi.pagedListQuery(Object(objectSpread2["a" /* default */])({
                skipCount: 0,
                maxResultCount: 999
              }, _this4.searchData));
            case 1:
              _yield$guidanceConfig3 = _context2.v;
              _yield$guidanceConfig4 = Object(slicedToArray["a" /* default */])(_yield$guidanceConfig3, 2);
              error = _yield$guidanceConfig4[0];
              res = _yield$guidanceConfig4[1];
              if (!error) {
                res.items.forEach(function (item) {
                  item.directoryId = item.id;
                  item.configurationId = item.id;
                });
                _this4.dataList = res.items;
                console.log(_this4.formData.chooseList);
                _this4.chooseFilterList = _this4.formData.chooseList || [];
                _this4.$nextTick(function () {
                  _this4.$refs.tables.clearSelection();
                  _.forEach(_this4.formData.chooseList, function (item) {
                    var data = Object(external_["find"])(_this4.dataList, {
                      id: item.id
                    });
                    if (data) {
                      _this4.$refs.tables.toggleRowSelection(data, true);
                    }
                  });
                });
              }
            case 2:
              return _context2.a(2);
          }
        }, _callee2);
      }))();
    },
    // 保存
    handleSave: function handleSave() {
      var _this5 = this;
      this.$refs.formAdd.validate(function (valid) {
        if (valid) {
          if (_this5.formData.chooseList.length === 0) {
            _this5.$message({
              showClose: true,
              message: '请勾选资质模板类型',
              type: 'warning'
            });
            return;
          }
          _this5.saveForm();
        }
      });
    },
    // 接口保存表单
    saveForm: function saveForm() {
      var _this6 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee3() {
        var error, res, _yield$profileTemplat, _yield$profileTemplat2, _yield$profileTemplat3, _yield$profileTemplat4, params, _yield$profileTemplat5, _yield$profileTemplat6, err, result;
        return Object(regenerator["a" /* default */])().w(function (_context3) {
          while (1) switch (_context3.n) {
            case 0:
              _this6.formLoading = true;
              error = null, res = null;
              if (!(_this6.pageType === 'create')) {
                _context3.n = 2;
                break;
              }
              ;
              _context3.n = 1;
              return profileTemplateConfigurationApi.create({
                body: {
                  templateName: _this6.formData.templateName
                }
              });
            case 1:
              _yield$profileTemplat = _context3.v;
              _yield$profileTemplat2 = Object(slicedToArray["a" /* default */])(_yield$profileTemplat, 2);
              error = _yield$profileTemplat2[0];
              res = _yield$profileTemplat2[1];
              _context3.n = 4;
              break;
            case 2:
              ;
              _context3.n = 3;
              return profileTemplateConfigurationApi.update(_this6.formData.id, {
                body: {
                  templateName: _this6.formData.templateName,
                  id: _this6.formData.id
                }
              });
            case 3:
              _yield$profileTemplat3 = _context3.v;
              _yield$profileTemplat4 = Object(slicedToArray["a" /* default */])(_yield$profileTemplat3, 2);
              error = _yield$profileTemplat4[0];
              res = _yield$profileTemplat4[1];
            case 4:
              if (error) {
                _context3.n = 6;
                break;
              }
              params = _this6.formData.chooseList.map(function (item) {
                return {
                  configurationId: item.id,
                  templateId: _this6.pageType === 'create' ? res.id : _this6.formData.id
                };
              });
              _context3.n = 5;
              return profileTemplateGuidanceConfigurationApi.manyAndDelete({
                body: params
              });
            case 5:
              _yield$profileTemplat5 = _context3.v;
              _yield$profileTemplat6 = Object(slicedToArray["a" /* default */])(_yield$profileTemplat5, 2);
              err = _yield$profileTemplat6[0];
              result = _yield$profileTemplat6[1];
              if (!err) {
                _this6.$message({
                  showClose: true,
                  message: _this6.pageType === 'create' ? '新增成功' : '编辑成功',
                  type: 'success'
                });
                _this6.$emit('save');
                _this6.formLoading = false;
              }
            case 6:
              return _context3.a(2);
          }
        }, _callee3);
      }))();
    }
  }
});
// CONCATENATED MODULE: ./src/modules/contractor-management-sm/components/TemplateForm.vue?vue&type=script&lang=js
 /* harmony default export */ var components_TemplateFormvue_type_script_lang_js = (TemplateFormvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/contractor-management-sm/components/TemplateForm.vue?vue&type=style&index=0&id=7255807d&prod&lang=scss&scoped=true
var TemplateFormvue_type_style_index_0_id_7255807d_prod_lang_scss_scoped_true = __webpack_require__("417e");

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

// CONCATENATED MODULE: ./src/modules/contractor-management-sm/components/TemplateForm.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_TemplateFormvue_type_script_lang_js,
  TemplateFormvue_type_template_id_7255807d_scoped_true_render,
  TemplateFormvue_type_template_id_7255807d_scoped_true_staticRenderFns,
  false,
  null,
  "7255807d",
  null
  
)

/* harmony default export */ var TemplateForm = (component.exports);
// 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/ContractorTemplate.vue?vue&type=script&lang=js








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




var ContractorTemplatevue_type_script_lang_js_profileTemplateConfigurationApi = new contractor_management_umd["ProfileTemplateConfigurationApi"]();
var ContractorTemplatevue_type_script_lang_js_profileTemplateGuidanceConfigurationApi = new contractor_management_umd["ProfileTemplateGuidanceConfigurationApi"]();
/* harmony default export */ var ContractorTemplatevue_type_script_lang_js = ({
  name: 'contractorTemplate',
  components: {
    TemplateForm: TemplateForm
  },
  data: function data() {
    return {
      rules: {},
      dialogShow: false,
      // 0 新增 1编辑 2详情
      pageType: 'create',
      tableLoading: false,
      dataList: [],
      totalCount: 0,
      searchData: {
        templateName: ''
      },
      pageConfig: {
        SkipCount: 1,
        MaxResultCount: 15
      },
      FormData: {}
    };
  },
  created: function created() {
    this.getList();
    this.initForm();
  },
  computed: {
    tableHeight: function tableHeight() {
      return 'calc(100% - 110px)';
    }
  },
  methods: {
    // 新增-保存
    handleSave: function handleSave() {
      this.dialogShow = false;
      this.getList();
    },
    // 初始化表单
    initForm: function initForm() {
      this.FormData = {
        templateName: '',
        chooseList: []
      };
    },
    // 新增
    handleAdd: function handleAdd() {
      this.initForm();
      this.pageType = 'create';
      this.dialogShow = true;
    },
    /**
     * 编辑、详情
     * @param {*} row 行信息
     * @param {*} type 1编辑 2详情
     */
    handleEdit: function handleEdit(row) {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee() {
        var _yield$profileTemplat, _yield$profileTemplat2, error, res;
        return Object(regenerator["a" /* default */])().w(function (_context) {
          while (1) switch (_context.n) {
            case 0:
              _this.initForm();
              _this.pageType = 'update';
              _context.n = 1;
              return ContractorTemplatevue_type_script_lang_js_profileTemplateGuidanceConfigurationApi.profileTemplateGuidanceConfigurationList({
                templateId: row.id
              });
            case 1:
              _yield$profileTemplat = _context.v;
              _yield$profileTemplat2 = Object(slicedToArray["a" /* default */])(_yield$profileTemplat, 2);
              error = _yield$profileTemplat2[0];
              res = _yield$profileTemplat2[1];
              if (!error) {
                res.forEach(function (item) {
                  item.id = item.configurationId;
                });
                _this.FormData.chooseList = res;
                _this.$set(_this.FormData, 'templateName', row.templateName);
                _this.$set(_this.FormData, 'id', row.id);
                _this.dialogShow = true;
              }
            case 2:
              return _context.a(2);
          }
        }, _callee);
      }))();
    },
    // 删除
    handleDel: function handleDel(row) {
      var _this2 = this;
      this.$confirm("\u662F\u5426\u5220\u9664\u3010".concat(row.templateName, "\u3011"), '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(/*#__PURE__*/Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee2() {
        var _yield$profileTemplat3, _yield$profileTemplat4, err, res;
        return Object(regenerator["a" /* default */])().w(function (_context2) {
          while (1) switch (_context2.n) {
            case 0:
              _context2.n = 1;
              return ContractorTemplatevue_type_script_lang_js_profileTemplateConfigurationApi.callDelete(row.id);
            case 1:
              _yield$profileTemplat3 = _context2.v;
              _yield$profileTemplat4 = Object(slicedToArray["a" /* default */])(_yield$profileTemplat3, 2);
              err = _yield$profileTemplat4[0];
              res = _yield$profileTemplat4[1];
              if (!err) {
                _this2.$message({
                  showClose: true,
                  message: '删除成功',
                  type: 'success'
                });
                _this2.getList();
              }
            case 2:
              return _context2.a(2);
          }
        }, _callee2);
      }))).catch(function () {});
    },
    // 搜索
    handleSearch: function handleSearch() {
      this.pageConfig.SkipCount = 1;
      this.getList();
    },
    resetSearch: function resetSearch() {
      this.searchData = this.$options.data().searchData;
      this.handleSearch();
    },
    // 页码改变
    tableSizeChange: function tableSizeChange(SkipCount) {
      this.pageConfig.SkipCount = SkipCount;
      this.getList();
    },
    // 页数改变
    tableCurrentChange: function tableCurrentChange(MaxResultCount) {
      this.pageConfig.MaxResultCount = MaxResultCount;
      this.getList();
    },
    // 获取消息列表
    getList: function getList() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regenerator["a" /* default */])().m(function _callee3() {
        var data, _yield$profileTemplat5, _yield$profileTemplat6, err, result;
        return Object(regenerator["a" /* default */])().w(function (_context3) {
          while (1) switch (_context3.n) {
            case 0:
              _this3.tableLoading = true;
              data = Object(objectSpread2["a" /* default */])({
                maxResultCount: _this3.pageConfig.MaxResultCount,
                // 每页多少条
                skipCount: (_this3.pageConfig.SkipCount - 1) * _this3.pageConfig.MaxResultCount
              }, _this3.searchData);
              _context3.n = 1;
              return ContractorTemplatevue_type_script_lang_js_profileTemplateConfigurationApi.pagedListQuery(data);
            case 1:
              _yield$profileTemplat5 = _context3.v;
              _yield$profileTemplat6 = Object(slicedToArray["a" /* default */])(_yield$profileTemplat5, 2);
              err = _yield$profileTemplat6[0];
              result = _yield$profileTemplat6[1];
              if (!err) {
                _this3.dataList = result.items || [];
                _this3.totalCount = result.totalCount || 0;
              }
              _this3.tableLoading = false;
            case 2:
              return _context3.a(2);
          }
        }, _callee3);
      }))();
    }
  }
});
// CONCATENATED MODULE: ./src/modules/contractor-management-sm/views/ContractorTemplate.vue?vue&type=script&lang=js
 /* harmony default export */ var views_ContractorTemplatevue_type_script_lang_js = (ContractorTemplatevue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/contractor-management-sm/views/ContractorTemplate.vue?vue&type=style&index=0&id=dc5a9dfc&prod&lang=scss&scoped=true
var ContractorTemplatevue_type_style_index_0_id_dc5a9dfc_prod_lang_scss_scoped_true = __webpack_require__("5d22");

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






/* normalize component */

var ContractorTemplate_component = Object(componentNormalizer["a" /* default */])(
  views_ContractorTemplatevue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "dc5a9dfc",
  null
  
)

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

/***/ }),

/***/ "5d22":
/***/ (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_ContractorTemplate_vue_vue_type_style_index_0_id_dc5a9dfc_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("67a6");
/* 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_ContractorTemplate_vue_vue_type_style_index_0_id_dc5a9dfc_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_ContractorTemplate_vue_vue_type_style_index_0_id_dc5a9dfc_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "67a6":
/***/ (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__("6d3b");
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("886f308a", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

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

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


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

// exports


/***/ }),

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

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


// module
exports.push([module.i, ".title[data-v-7255807d]{position:relative}.title[data-v-7255807d]:before{position:absolute;content:\"\";width:2px;height:70%;left:-8px;top:4px;background-color:#0082f7}.custom-height[data-v-7255807d]{height:calc(100% - 50px)}.form-nolabel[data-v-7255807d]  .el-form-item__content{margin-left:0!important}", ""]);

// exports


/***/ }),

/***/ "cf17":
/***/ (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__("cbdf");
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("67c906cc", content, true, {"sourceMap":false,"shadowMode":false});

/***/ })

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