{"remainingRequest":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\assetsOperating\\profilesCustomer\\IndividualCustomers\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\assetsOperating\\profilesCustomer\\IndividualCustomers\\index.vue","mtime":1701943659908},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/ljzc-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"D:/jenkins/workspace/ljzc-fvue/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport utils from '@/utils.js';\nimport detailDialog from \"./components/detailDialog.vue\";\nimport editAddDialog from \"./components/editAddDialog.vue\";\nimport SuperSearch from '@/components/SuperSearch/index.vue';\nimport api from '@/api/assetsOperating/profilesCustomer/IndividualCustomers.js';\nexport default {\n name: 'IndividualCustomers',\n components: {\n SuperSearch: SuperSearch,\n pagination: pagination,\n editAddDialog: editAddDialog,\n detailDialog: detailDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: '600px',\n loading: false,\n tableLoading: false,\n componentName: 'table',\n cardTypeData: [{\n name: '营业执照',\n value: 0\n }, {\n name: '身份证',\n value: 1\n }, {\n name: '驾驶证',\n value: 2\n }, {\n name: '军官证',\n value: 3\n }, {\n name: '护照',\n value: 4\n }],\n tableData: [],\n multipleSelection: [],\n queryParams: {\n page: 1,\n pageSize: 20,\n total: 0,\n clientsType: 1,\n clientsStatus: 0,\n cardType: []\n },\n searchForm: {},\n // 顶部搜索对象\n currentDataDel: [],\n sorter: [{\n direction: 'DESC',\n property: 'createTime'\n }],\n basisOption: [{\n itemLabel: '证件类型',\n itemProp: 'cardType',\n itemType: 'checkbox',\n searchType: 'basic',\n labelWidth: '100px',\n option: []\n }, {\n itemLabel: '客户名称',\n itemProp: 'clientsName',\n itemType: 'input',\n labelWidth: '90px',\n searchType: 'advance'\n }, {\n itemLabel: '证件编码',\n itemProp: 'cardNo',\n itemType: 'input',\n labelWidth: '90px',\n searchType: 'advance'\n }]\n };\n },\n created: function created() {\n this.basisOption[0].option = utils.getDictItemsFromCache('zjlx');\n this.loadData();\n },\n mounted: function mounted() {\n var _this = this;\n\n this.calcTableHeight();\n this.$root.$on('resize', function () {\n _this.calcTableHeight(500);\n });\n },\n computed: {\n // 加工为后端需要的请求格式\n computedQuery: function computedQuery() {\n /*\r\n * 定义 escapeOpt 字段对应字典名 对象\r\n * 为重新加工结构赋值的新请求配置参数\r\n * */\n var querys = [{\n operation: 'LIKE',\n property: 'clientsType',\n relation: 'AND'\n }, {\n operation: 'LIKE',\n property: 'clientsStatus',\n relation: 'AND'\n }, {\n operation: 'IN',\n property: 'cardType',\n relation: 'AND'\n }, {\n operation: 'LIKE',\n property: 'clientsName',\n relation: 'AND'\n }, {\n operation: 'LIKE',\n property: 'cardNo',\n relation: 'AND'\n }];\n\n var _this$queryParams = this.queryParams,\n pageSize = _this$queryParams.pageSize,\n page = _this$queryParams.page,\n item = _objectWithoutProperties(_this$queryParams, [\"pageSize\", \"page\"]);\n\n return {\n pageBean: {\n pageSize: pageSize,\n page: page\n },\n querys: querys.flatMap(function (i) {\n var value = item[i.property];\n console.log(i);\n console.log(value);\n if (Array.isArray(value) && !value.length) return [];\n if (value === '') return [];\n return _objectSpread(_objectSpread({\n group: 'main'\n }, i), {}, {\n value: value\n });\n }),\n sorter: this.sorter.filter(function (i) {\n return i.direction !== '';\n })\n };\n }\n },\n methods: {\n //关闭组件\n closeComponent: function closeComponent(row) {\n this.componentName = 'table';\n this.loadData();\n },\n //证件类型翻译回显\n cardTypeName: function cardTypeName(value) {\n if (value != '') {\n return this.cardTypeData.filter(function (item) {\n return item.value == value;\n })[0].name;\n }\n },\n //字典翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData() {\n var _this2 = this;\n\n this.tableLoading = true;\n api.queryData(this.computedQuery, function (res) {\n if (res.rows) {\n _this2.tableData = res.rows;\n _this2.queryParams.total = res.total;\n _this2.tableLoading = false;\n }\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.componentName = 'editAddDialog';\n this.$refs.editAddDialog.addModifyBtn();\n },\n //详情\n detailBtn: function detailBtn(row) {\n this.componentName = 'detailDialog';\n this.$refs.detailDialog.detail(row);\n },\n // 删除\n handleDelete: function handleDelete(val) {\n var _this3 = this;\n\n var ids;\n\n if (val) {\n ids = val.id;\n } else {\n ids = this.currentDataDel.join();\n }\n\n this.$confirm('确定删除选中数据吗?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n api.deleteData(ids, function (res) {\n if (res.state) {\n _this3.$message.success('删除成功');\n\n _this3.loadData();\n }\n });\n });\n },\n //加入黑名单\n blacklistBtn: function blacklistBtn(val) {\n var _this4 = this;\n\n this.$confirm('确定将此用户加入黑名单吗?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n api.getBlack(val.id, function (res) {\n if (res.state) {\n _this4.$message.success('加入成功');\n\n _this4.loadData();\n }\n });\n });\n },\n //修改\n handleDbClick: function handleDbClick(row) {\n this.componentName = 'editAddDialog';\n this.$refs.editAddDialog.addModifyBtn(row);\n },\n // 顶部搜索\n handleSearch: function handleSearch(data) {\n // data.cardType = data.cardType?data.cardType.join():''\n this.queryParams = data;\n this.loadData();\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n //表格选中\n handleSelectionChange: function handleSelectionChange(val) {\n this.currentDataDel = val.map(function (item) {\n return item.id;\n });\n },\n //分页页数\n handleCurrentChange: function handleCurrentChange(page) {\n this.queryParams.page = page;\n this.loadData();\n },\n //分页大小\n handleSizeChange: function handleSizeChange(pageSize) {\n this.queryParams.pageSize = pageSize;\n this.loadData();\n }\n }\n};",null]}