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

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

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


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

// exports


/***/ }),

/***/ "767f":
/***/ (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_ManagementList_vue_vue_type_style_index_0_id_0750c32e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("89c5");
/* 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_ManagementList_vue_vue_type_style_index_0_id_0750c32e_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_ManagementList_vue_vue_type_style_index_0_id_0750c32e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "89c5":
/***/ (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__("1be44");
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("2f13e514", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "bd0b":
/***/ (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":"27800716-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/vehicle-management-sm/views/ManagementList.vue?vue&type=template&id=0750c32e&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:"flex items-center"},[_c('el-input',{staticClass:"w-180px mr-10px",attrs:{"size":"small","placeholder":("" + (_vm.$t('车牌号码'))),"clearable":""},model:{value:(_vm.searchData.carNo),callback:function ($$v) {_vm.$set(_vm.searchData, "carNo", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:"searchData.carNo"}}),_c('el-input',{staticClass:"w-180px mr-10px",attrs:{"size":"small","placeholder":("" + (_vm.$t('车主姓名'))),"clearable":""},model:{value:(_vm.searchData.carOwnerName),callback:function ($$v) {_vm.$set(_vm.searchData, "carOwnerName", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:"searchData.carOwnerName"}}),_c('el-select',{staticClass:"w-180px mr-10px",attrs:{"size":"small","placeholder":("" + (_vm.$t('所属单位'))),"clearable":"","filterable":""},model:{value:(_vm.searchData.affiliatedUnitId),callback:function ($$v) {_vm.$set(_vm.searchData, "affiliatedUnitId", $$v)},expression:"searchData.affiliatedUnitId"}},_vm._l((_vm.departmentList),function(item,index){return _c('el-option',{key:index,attrs:{"label":item.displayName,"value":item.id}})}),1),_c('el-select',{staticClass:"w-180px mr-10px",attrs:{"size":"small","placeholder":("" + (_vm.$t('车辆类型'))),"clearable":"","filterable":""},model:{value:(_vm.searchData.carType),callback:function ($$v) {_vm.$set(_vm.searchData, "carType", $$v)},expression:"searchData.carType"}},_vm._l((_vm.carTypeList),function(item,index){return _c('el-option',{key:index,attrs:{"label":item.displayName,"value":item.id}})}),1),_c('el-select',{staticClass:"w-180px mr-10px",attrs:{"size":"small","placeholder":("" + (_vm.$t('车辆状态'))),"clearable":"","filterable":""},model:{value:(_vm.searchData.carStatus),callback:function ($$v) {_vm.$set(_vm.searchData, "carStatus", $$v)},expression:"searchData.carStatus"}},_vm._l((_vm.carStatusList),function(item,index){return _c('el-option',{key:index,attrs:{"label":item.label,"value":item.value}})}),1)],1),_c('div',{staticClass:"mt-10px"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sizeChange}},[_vm._v(_vm._s(_vm.$t('搜索')))]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.resetKeyword}},[_vm._v(_vm._s(_vm.$t('重置')))]),_c('el-button',{attrs:{"type":"primary","size":"small","disabled":!_vm.$hasAccess('create')},on:{"click":function($event){return _vm.toDetail(null, 'create')}}},[_vm._v(_vm._s(_vm.$t('新增')))]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.importData}},[_vm._v(_vm._s(_vm.$t('批量导入')))])],1),_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.tableLoading),expression:"tableLoading"}],ref:"tableRef",staticClass:"mt-20px",attrs:{"border":"","stripe":"","data":_vm.tableList,"highlight-current-row":true,"row-key":function (record) { return record.id; },"height":"calc(100% - 150px)"},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","reserve-selection":true,"selectable":_vm.IsAuthBtnWrap,"width":"50","align":"center"}}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('序号'))),"type":"index","width":"50"}}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('车辆号码'))),"prop":"carNo","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('车主姓名'))),"prop":"carOwnerName","width":"100px","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('车主电话'))),"width":"130px","prop":"carOwnerPhone","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('车辆状态'))),"prop":"carStatusName","show-overflow-tooltip":"","width":"100px"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(_vm._s(_vm._f("showText")(scope.row.carStatus,'carStatus')))]}}])}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('单位'))),"prop":"affiliatedUnitName","show-overflow-tooltip":""}}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('有效期开始时间'))),"prop":"barrierGateDateStart","show-overflow-tooltip":"","width":"120px"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.barrierGateIsLong)?_c('span',[_vm._v("长期")]):_c('span',[_vm._v(_vm._s(_vm._f("showText")(scope.row.barrierGateDateStart,'time')))])]}}])}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('有效期截至时间'))),"prop":"barrierGateDateEnd","show-overflow-tooltip":"","width":"120px"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.barrierGateIsLong)?_c('span',[_vm._v("长期")]):_c('span',[_vm._v(_vm._s(_vm._f("showText")(scope.row.barrierGateDateEnd,'time')))])]}}])}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('道闸权限'))),"prop":"barrierGate","show-overflow-tooltip":""},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(_vm._s(_vm._f("showText")(scope.row.barrierGate,'barrierGate')))]}}])}),_c('el-table-column',{attrs:{"label":("" + (_vm.$t('操作'))),"width":"200","fixed":"right"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
var row = ref.row;
return [_c('el-button',{attrs:{"size":"mini","disabled":!_vm.$hasAccess('read')},on:{"click":function($event){return _vm.viewDetail(row)}}},[_vm._v("\n          "+_vm._s(_vm.$t('查看'))+"\n        ")]),_c('el-button',{attrs:{"size":"mini","disabled":!_vm.$hasAccess('update')},on:{"click":function($event){return _vm.toDetail(row, 'update')}}},[_vm._v(_vm._s(_vm.$t('编辑')))]),_c('el-button',{attrs:{"size":"mini","disabled":!_vm.$hasAccess('delete')},on:{"click":function($event){return _vm.deletePlan(row, 2)}}},[_vm._v("\n          "+_vm._s(_vm.$t('删除'))+"\n        ")])]}}])})],1),_c('el-pagination',{staticClass:"mt-20px float-right",attrs:{"background":"","small":"","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.page.pageTotal},on:{"size-change":_vm.sizeChange,"current-change":_vm.searchList,"update:currentPage":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"update:current-page":function($event){return _vm.$set(_vm.page, "pageNo", $event)},"update:pageSize":function($event){return _vm.$set(_vm.page, "pageSize", $event)},"update:page-size":function($event){return _vm.$set(_vm.page, "pageSize", $event)}}}),(_vm.authVis)?_c('AuthDia',{attrs:{"visible":_vm.authVis,"deviceList":_vm.deviceList,"selectedList":_vm.selectedList},on:{"update:visible":function($event){_vm.authVis=$event},"success":_vm.searchList}}):_vm._e(),(_vm.addVis)?_c('AddDia',{attrs:{"visible":_vm.addVis,"operateType":_vm.operateType,"operateData":_vm.operateData,"deviceList":_vm.deviceList},on:{"update:visible":function($event){_vm.addVis=$event},"success":_vm.sizeChange}}):_vm._e(),(_vm.isShowUploadDialog)?_c('wiz-upload-file',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{"uploadFileProps":_vm.uploadFileProps},on:{"refreshList":_vm.search,"exportTemplate":_vm.exportTemplate,"importTemplate":_vm.importTemplate,"exportResults":_vm.exportResults}}):_vm._e()],1)}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/vehicle-management-sm/views/ManagementList.vue?vue&type=template&id=0750c32e&scoped=true

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

// 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 + 5 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.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.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.json.stringify.js
var es_json_stringify = __webpack_require__("e9c4");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
var es_object_keys = __webpack_require__("b64b");

// 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.string.iterator.js
var es_string_iterator = __webpack_require__("3ca3");

// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
var esnext_iterator_constructor = __webpack_require__("0643");

// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
var esnext_iterator_map = __webpack_require__("a573");

// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.reduce.js
var esnext_iterator_reduce = __webpack_require__("9d4a");

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

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
var web_url = __webpack_require__("2b3d");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
var web_url_to_json = __webpack_require__("bf19");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
var web_url_search_params = __webpack_require__("9861");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
var web_url_search_params_delete = __webpack_require__("88a7");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
var web_url_search_params_has = __webpack_require__("271a");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
var web_url_search_params_size = __webpack_require__("5494");

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

// EXTERNAL MODULE: ./node_modules/@wiz-api/account/lib/account.umd.js
var account_umd = __webpack_require__("32d0");

// 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/@wiz-api/personnel-safety-management/lib/personnel-safety-management.umd.js
var personnel_safety_management_umd = __webpack_require__("f10f");

// EXTERNAL MODULE: ./node_modules/@wiz-api/iot-device-management/lib/iot-device-management.umd.js
var iot_device_management_umd = __webpack_require__("a826");

// EXTERNAL MODULE: ./node_modules/@wiz-api/file-management/lib/file-management.umd.js
var file_management_umd = __webpack_require__("3c33");

// 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/vehicle-management-sm/views/ManagementList.vue?vue&type=script&lang=js























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







var fileApi = new file_management_umd["FileApi"]();
var carApi = new personnel_safety_management_umd["CarApi"]();
var iOTBarrierGateAccessAuthApi = new iot_device_management_umd["IOTBarrierGateAccessAuthApi"]();
var dataCategoryApi = new data_category_management_umd["DataCategoryApi"]();
var organizationApi = new account_umd["OrganizationApi"]();
var AuthDia = function AuthDia() {
  return __webpack_require__.e(/* import() */ 4).then(__webpack_require__.bind(null, "6626"));
};
var AddDia = function AddDia() {
  return Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, "4a77"));
};
/* harmony default export */ var ManagementListvue_type_script_lang_js = ({
  name: 'car-management-list',
  components: {
    AuthDia: AuthDia,
    AddDia: AddDia
  },
  filters: {
    showText: function showText(val, type) {
      var result = '';
      if (type === 'time' && val) {
        result = dayjs_min_default()(val).format('YYYY-MM-DD');
      }
      if (type === 'barrierGate' && val) {
        val = JSON.parse(val);
        result = val.reduce(function (pre, cur, index) {
          pre += cur.name + (index === val.length - 1 ? '' : ',');
          return pre;
        }, '');
      }
      if (type === 'carStatus') {
        var status = ['临时车', '白名单', '黑名单'];
        result = status[val];
      }
      return result;
    }
  },
  data: function data() {
    return {
      categoryList: [],
      searchData: {
        carStatus: '',
        // 制度名称/文号
        carType: '',
        // 预案类别
        affiliatedUnitId: '',
        // 预案类型
        carOwnerName: '',
        // 状态
        carNo: '' // 所属部门
      },
      // 查询条件
      departmentList: [],
      // 所属部门下拉框数据
      tableList: [{}],
      // 列表数据
      exportLoading: false,
      // 导出按钮loading
      tableLoading: false,
      // 列表loading
      deleteLoading: false,
      // 搜索栏删除按钮loading
      selectedList: [],
      // 列表勾选项
      page: {
        pageNo: 1,
        pageSize: 15,
        pageTotal: 0
      },
      // 分页器
      showDetailDialog: false,
      // 是否显示新增弹窗页面
      operateType: '',
      // 操作类型
      operateData: '',
      // 操作项数据
      authVis: false,
      addVis: false,
      carStatusList: [{
        label: '临时车',
        value: 0
      }, {
        label: '白名单',
        value: 1
      }, {
        label: '黑名单',
        value: 2
      }],
      isShowUploadDialog: false,
      // 是否显示导入弹窗
      uploadFileProps: {
        visible: false,
        // 是否开启弹窗
        active: 0,
        // 目前状态页面1为下载模板 2为上传模板 3为完成
        btnLoading: false,
        // 按钮加载状态
        isTestAndVerify: true,
        // 是否开启校验格式
        type: ['xls', 'xlsx'],
        // 检验文件格式，为数组可传多种同类型格式
        successCount: 0,
        // 上传成功条数
        failureCount: 0,
        // 上传失败条数
        resultFile: ''
      },
      carTypeList: [],
      deviceList: []
    };
  },
  methods: {
    // 黑名单勾选
    IsAuthBtnWrap: function IsAuthBtnWrap(row) {
      if (row.carStatus === 2) return false;
      return true;
    },
    // 开启导入
    importData: function importData() {
      this.uploadFileProps.active = 0;
      this.isShowUploadDialog = true;
      this.uploadFileProps.visible = true;
    },
    // 上传已填写的模板
    importTemplate: function importTemplate(file) {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var formData, _yield$carApi$importF, _yield$carApi$importF2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _this.uploadFileProps.btnLoading = true;
              formData = new FormData();
              _.forIn({
                file: file
              }, function (value, key) {
                formData.append('input', value);
              });
              _context.next = 5;
              return carApi.importFromExcelFile({
                input: formData.get('input')
              });
            case 5:
              _yield$carApi$importF = _context.sent;
              _yield$carApi$importF2 = Object(slicedToArray["a" /* default */])(_yield$carApi$importF, 2);
              err = _yield$carApi$importF2[0];
              res = _yield$carApi$importF2[1];
              if (!err) {
                _this.uploadFileProps.successCount = res.successCount;
                _this.uploadFileProps.failureCount = res.failureCount;
                _this.uploadFileProps.resultFile = res.resultFile;
                _this.uploadFileProps.active = 2;
                _this.searchList();
              }
              _this.uploadFileProps.btnLoading = false;
            case 11:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    exportResults: function exportResults() {
      var _this2 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var _yield$fileApi$downlo, _yield$fileApi$downlo2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _context2.next = 2;
              return fileApi.download(_this2.uploadFileProps.resultFile, {
                returnType: 'Blob'
              });
            case 2:
              _yield$fileApi$downlo = _context2.sent;
              _yield$fileApi$downlo2 = Object(slicedToArray["a" /* default */])(_yield$fileApi$downlo, 2);
              err = _yield$fileApi$downlo2[0];
              res = _yield$fileApi$downlo2[1];
              if (!err) {
                _this2.downLoadExcel('导入结果', res, 'excel');
              }
            case 7:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    // 获取道闸列表
    getGateList: function getGateList() {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var _yield$iOTBarrierGate, _yield$iOTBarrierGate2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 2;
              return iOTBarrierGateAccessAuthApi.authOptionList();
            case 2:
              _yield$iOTBarrierGate = _context3.sent;
              _yield$iOTBarrierGate2 = Object(slicedToArray["a" /* default */])(_yield$iOTBarrierGate, 2);
              err = _yield$iOTBarrierGate2[0];
              res = _yield$iOTBarrierGate2[1];
              if (!err) {
                _this3.deviceList = res;
              }
            case 7:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    // 下载导入模板
    exportTemplate: function exportTemplate() {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var _yield$carApi$downLoa, _yield$carApi$downLoa2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _context4.next = 2;
              return carApi.downLoadTemp();
            case 2:
              _yield$carApi$downLoa = _context4.sent;
              _yield$carApi$downLoa2 = Object(slicedToArray["a" /* default */])(_yield$carApi$downLoa, 2);
              err = _yield$carApi$downLoa2[0];
              res = _yield$carApi$downLoa2[1];
              if (!err) {
                _this4.downLoadExcel('车辆模板', res, 'excel');
                _this4.$message({
                  showClose: true,
                  message: '模板下载成功',
                  type: 'success'
                });
              }
            case 7:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    // 文件流下载
    downLoadExcel: function downLoadExcel() {
      var fileName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '下载文件';
      var data = arguments.length > 1 ? arguments[1] : undefined;
      var type = arguments.length > 2 ? arguments[2] : undefined;
      var fileType = {
        zip: 'application/zip',
        excel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
      };
      var blob = new Blob([data], {
        type: fileType[type]
      });
      var link = document.createElement('a');
      link.href = window.URL.createObjectURL(blob);
      link.download = "".concat(fileName);
      link.click();
      window.URL.revokeObjectURL(link.href);
    },
    // 从数据字典获取
    getRegulationType: function getRegulationType() {
      var _this5 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee5() {
        var _yield$dataCategoryAp, _yield$dataCategoryAp2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee5$(_context5) {
          while (1) switch (_context5.prev = _context5.next) {
            case 0:
              _context5.next = 2;
              return dataCategoryApi.getListByCodes({
                codes: ['CarType'],
                includeDetails: true
              });
            case 2:
              _yield$dataCategoryAp = _context5.sent;
              _yield$dataCategoryAp2 = Object(slicedToArray["a" /* default */])(_yield$dataCategoryAp, 2);
              err = _yield$dataCategoryAp2[0];
              res = _yield$dataCategoryAp2[1];
              if (!err) {
                _context5.next = 8;
                break;
              }
              return _context5.abrupt("return");
            case 8:
              _this5.carTypeList = res[0].dataItems;
            case 9:
            case "end":
              return _context5.stop();
          }
        }, _callee5);
      }))();
    },
    /**
     * @description 部门列表查询
     */
    getDepartmentList: function getDepartmentList() {
      var _this6 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee6() {
        var _yield$organizationAp, _yield$organizationAp2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee6$(_context6) {
          while (1) switch (_context6.prev = _context6.next) {
            case 0:
              _this6.departmentLoading = true;
              _context6.next = 3;
              return organizationApi.getList({
                sorting: '',
                // 排序
                skipCount: 0,
                maxResultCount: 999
              });
            case 3:
              _yield$organizationAp = _context6.sent;
              _yield$organizationAp2 = Object(slicedToArray["a" /* default */])(_yield$organizationAp, 2);
              err = _yield$organizationAp2[0];
              res = _yield$organizationAp2[1];
              _this6.departmentLoading = false;
              if (!err) {
                _this6.departmentList = res.items;
              }
            case 9:
            case "end":
              return _context6.stop();
          }
        }, _callee6);
      }))();
    },
    /**
     * @description 列表查询
     */
    searchList: function searchList() {
      var _this7 = this;
      return Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee7() {
        var _yield$carApi$getList, _yield$carApi$getList2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee7$(_context7) {
          while (1) switch (_context7.prev = _context7.next) {
            case 0:
              _this7.tableLoading = true;
              _context7.next = 3;
              return carApi.getList(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, _this7.searchData), {}, {
                sorting: '',
                // 排序
                skipCount: (_this7.page.pageNo - 1) * _this7.page.pageSize,
                maxResultCount: _this7.page.pageSize
              }));
            case 3:
              _yield$carApi$getList = _context7.sent;
              _yield$carApi$getList2 = Object(slicedToArray["a" /* default */])(_yield$carApi$getList, 2);
              err = _yield$carApi$getList2[0];
              res = _yield$carApi$getList2[1];
              _this7.tableLoading = false;
              if (!err) {
                _this7.tableList = res.items;
                _this7.page.pageTotal = res.totalCount;
                _this7.$refs.tableRef && _this7.$refs.tableRef.clearSelection();
              }
            case 9:
            case "end":
              return _context7.stop();
          }
        }, _callee7);
      }))();
    },
    /**
     * @description 重置查询条件
     */
    resetKeyword: function resetKeyword() {
      this.searchData = this.$options.data().searchData;
      this.sizeChange();
    },
    // 打开批量权限设置
    openAuth: function openAuth() {
      if (!this.selectedList.length) {
        this.$message.warning(this.$t('请先勾选要设置的数据项'));
        return;
      }
      this.authVis = true;
    },
    /**
     * @description 删除预案
     * @param {Object or null} deleteData 删除项数据
     * @param {Number} type 删除表格操作的某一条还是删除勾选项
     */
    deletePlan: function deletePlan(deleteData, type) {
      var _this8 = this;
      var ids = []; // 删除项的id
      if (type === 1) {
        // 删除勾选
        if (!this.selectedList.length) {
          this.$message.warning(this.$t('请先勾选要删除的数据项'));
          return;
        }
        ids = _.map(this.selectedList, 'id');
      } else {
        // 删除表格操作的某一条
        ids = [deleteData.id];
      }
      this.$confirm(this.$t('是否确定删除?'), this.$t('提示'), {
        confirmButtonText: this.$t('确定'),
        cancelButtonText: this.$t('取消'),
        type: 'warning'
      }).then(/*#__PURE__*/Object(asyncToGenerator["a" /* default */])(/*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee8() {
        var _yield$carApi$deleteM, _yield$carApi$deleteM2, err;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee8$(_context8) {
          while (1) switch (_context8.prev = _context8.next) {
            case 0:
              if (type === 1) {
                _this8.deleteLoading = true;
              }
              _context8.next = 3;
              return carApi.deleteMany({
                ids: ids
              });
            case 3:
              _yield$carApi$deleteM = _context8.sent;
              _yield$carApi$deleteM2 = Object(slicedToArray["a" /* default */])(_yield$carApi$deleteM, 1);
              err = _yield$carApi$deleteM2[0];
              if (type === 1) {
                _this8.deleteLoading = false;
              }
              if (!err) {
                _this8.$message.success(_this8.$t('删除成功'));
                if (type === 1) {
                  _this8.sizeChange();
                } else {
                  if (_this8.tableList.length === 1 && _this8.page.pageNo > 1) {
                    _this8.page.pageNo -= 1;
                  }
                  _this8.searchList();
                }
              }
            case 8:
            case "end":
              return _context8.stop();
          }
        }, _callee8);
      })));
    },
    /**
     * @description 跨页多选
     * @param {Array} selectedList 列表勾选项
     */
    handleSelectionChange: function handleSelectionChange(selectedList) {
      this.selectedList = selectedList;
    },
    /**
     * @description 分页数改变
     */
    sizeChange: function sizeChange() {
      this.page.pageNo = 1;
      this.searchList();
    },
    /**
     * @description 编辑、新增
     * @param {Object} planRow 操作项数据
     * @param {String} type 操作类型
     */
    toDetail: function toDetail(planRow, type) {
      this.operateType = type;
      this.operateData = planRow;
      this.addVis = true;
    },
    /**
     * @description 查看
     * @param {Object} planRow 操作项数据
     */
    viewDetail: function viewDetail(planRow) {
      var _Wiz, _Wiz$globalSettings, _Wiz$globalSettings$g;
      window.sessionStorage.setItem('VEHICLE_INFO', JSON.stringify(planRow));
      var url = (_Wiz = Wiz) !== null && _Wiz !== void 0 && (_Wiz$globalSettings = _Wiz.globalSettings) !== null && _Wiz$globalSettings !== void 0 && (_Wiz$globalSettings$g = _Wiz$globalSettings.globalConfig) !== null && _Wiz$globalSettings$g !== void 0 && _Wiz$globalSettings$g.routerBase ? "/".concat(Wiz.globalSettings.globalConfig.routerBase, "/vehicle-management-sm/car-detail") : '/vehicle-management-sm/car-detail'; // 兼容新疆低代码
      this.$router.push({
        path: url,
        query: {
          id: planRow.id,
          carNo: planRow.carNo
        }
      });
    }
  },
  created: function created() {
    this.getDepartmentList();
    this.searchList();
    this.getRegulationType();
    this.getGateList();
  }
});
// CONCATENATED MODULE: ./src/modules/vehicle-management-sm/views/ManagementList.vue?vue&type=script&lang=js
 /* harmony default export */ var views_ManagementListvue_type_script_lang_js = (ManagementListvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/vehicle-management-sm/views/ManagementList.vue?vue&type=style&index=0&id=0750c32e&prod&lang=scss&scoped=true
var ManagementListvue_type_style_index_0_id_0750c32e_prod_lang_scss_scoped_true = __webpack_require__("767f");

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

// CONCATENATED MODULE: ./src/modules/vehicle-management-sm/views/ManagementList.vue






/* normalize component */

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

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

/***/ })

}]);
//# sourceMappingURL=vehicle-management-sm.umd.8.js.map