{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\equipmentLibrary\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\ProcurementManagement\\equipmentLibrary\\index.vue","mtime":1717533647311},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_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 _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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//\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//\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 basicData from '@/api/basicData';\nimport utils from '@/utils.js';\nexport default {\n name: 'DemandEntry',\n components: {\n pagination: pagination\n },\n mixins: [TableMixin],\n data: function data() {\n var _ref;\n\n return _ref = {\n tableHeight: 1000,\n options: [{\n value: '1',\n label: '已选择'\n }, {\n value: '0',\n label: '未选择'\n }],\n tableData: []\n }, _defineProperty(_ref, \"tableHeight\", 1000), _defineProperty(_ref, \"handleDeleteActive\", true), _defineProperty(_ref, \"handleDeleteId\", []), _defineProperty(_ref, \"tableLoading\", false), _defineProperty(_ref, \"queryParam\", {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n }), _defineProperty(_ref, \"querys\", [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'matMaterial',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'matSpec',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'matCategory',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'matCode',\n relation: 'AND',\n value: ''\n }]), _ref;\n },\n mounted: function mounted() {\n //页面缩放从新计算表格的高度\n window.addEventListener('resize', this.calcTableHeight);\n this.selectTree();\n this.loadData();\n },\n created: function created() {\n this.loadData();\n this.selectTree();\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener('resize', this.calcTableHeight);\n },\n methods: {\n //导出数据\n dataExport: function dataExport() {\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n basicData.bizMaterialExportExcelData(this.queryParam).then(function (res) {\n console.log(res);\n });\n },\n // 动态计算表格的高度,自适应当前容器\n calcTableHeight: function calcTableHeight() {\n this.tableHeight = this.$refs.tableContent.offsetHeight;\n },\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n loadData: function loadData() {\n var _this = this;\n\n this.tableLoading = true;\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3]);\n }\n\n basicData.bizMaterialQuery(this.queryParam).then(function (res) {\n _this.queryParam.pageBean.total = res.value.total;\n _this.tableLoading = false;\n _this.tableData = res.value.rows;\n });\n },\n //重置\n clearSearchForm: function clearSearchForm() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.querys[3].value = '';\n this.loadData();\n },\n //添加\n handleAdd: function handleAdd() {\n this.$router.push('addEquipmentLibrary');\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.$router.push({\n name: 'addEquipmentLibrary',\n query: {\n editRows: rows,\n pageBean: this.queryParam\n }\n });\n },\n // 详情\n handleDetail: function handleDetail(rows) {\n this.$router.push({\n name: 'addEquipmentLibrary',\n query: {\n detailRows: rows,\n pageBean: this.queryParam\n }\n });\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this2 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n basicData.bizMaterialRemove(_this2.handleDeleteId).then(function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this2.loadData();\n }\n }).catch(function (res) {\n _this2.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n });\n }).catch(function () {});\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n this.loadData();\n },\n handleSelectionChange: function handleSelectionChange(val) {\n if (val.length !== 0) {\n this.handleDeleteActive = false;\n this.handleDeleteId = val.map(function (item) {\n return item.id;\n });\n } else {\n this.handleDeleteActive = true;\n }\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n page: page\n });\n this.loadData(this.queryParam);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.queryParam.pageBean = _objectSpread(_objectSpread({}, this.queryParam.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.queryParam);\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}