{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\MaterialInfoManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\MaterialInfoManager.vue","mtime":1686706098958},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-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/bzzgj-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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { mapState } from 'vuex';\nimport { dragControllerDiv } from \"./api/dragControllerDiv\";\nimport classManage from '@/api/manager/material/materialInfoManage.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUsers from '@/components/dict/DictSelectUtils.js';\nimport materialInfoDialog from '@/views/Manage/material/components/MaterialInfoDialog.vue';\nimport materialClassDialog from '@/views/Manage/material/components/MaterialClassDialog.vue';\nexport default {\n name: 'MaterialInfoManage',\n components: {\n materialInfoDialog: materialInfoDialog,\n materialClassDialog: materialClassDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n //携带参数\n uploadData: {\n mainId: ''\n },\n sortList: {},\n titles: '',\n tableData: [],\n showFormDias: false,\n treeData: [{\n code: '0',\n id: '0',\n name: '物资分类信息',\n parentId: null,\n children: []\n }],\n defaultProps: {\n value: 'id',\n label: 'typeName',\n parentId: 'parentId',\n code: 'code',\n children: 'children'\n },\n data: [],\n treeNode: {\n code: '0',\n id: '0',\n name: '物资分类信息',\n parentId: null,\n children: []\n },\n updateTreeNode: null,\n url: {\n delete: '/manager/material/materialinfo/'\n },\n sorter: [{\n direction: 'ASC',\n property: 'sn_'\n }],\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name_',\n relation: 'AND',\n value: ''\n }, // {\n // group: 'main',\n // operation: 'LIKE',\n // parentGroup: '',\n // property: 'warehouse_',\n // relation: 'AND',\n // value: ''\n // },\n {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'manufacturer_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'class_Id_',\n relation: 'AND',\n value: ''\n }]\n };\n },\n watch: {\n filterText: function filterText(val) {\n console.log(val);\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {\n //在created里面区获取actionUrl\n this.actionUrl = window.context.portal; // this.types = dictUsers.getDictItemsFromCache('rylx')\n },\n mounted: function mounted() {\n dragControllerDiv();\n this.$refs['tree'].setCurrentKey('物资分类信息');\n this.getTreen();\n },\n //获取token\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n methods: {\n //上传成功\n handleAvatarSuccess: function handleAvatarSuccess(res, file) {\n //提示\n this.$notify({\n type: 'success',\n message: this.$t('domestic.success'),\n duration: 2000\n });\n this.loadData(); //调用用页面查询接口,刷新数据\n },\n //上传失败\n handleAvatarError: function handleAvatarError(err, file, fileList) {\n //提示\n this.$notify({\n type: 'error',\n message: this.$t('domestic.failure'),\n duration: 2000\n });\n },\n //数据导入\n importData: function importData() {},\n //数据导出\n exportData: function exportData() {\n var exportParam = _objectSpread({}, this.queryParam);\n\n exportParam.pageBean = {\n page: 1,\n pageSize: -1\n };\n classManage.materialinfoExport(this.queryParam, function (res) {});\n this.loadData();\n },\n //模板下载\n downloadTemplate: function downloadTemplate() {},\n // 树查询\n getTreen: function getTreen() {\n var _this = this;\n\n classManage.loadAllClass({}, function (res) {\n // console.log('======loadAllClass====res======', res.value)\n _this.treeData[0].children = res.value;\n\n _this.$set(_this.treeData);\n });\n },\n renderContent: function renderContent(h, _ref) {\n var _this2 = this;\n\n var node = _ref.node,\n data = _ref.data,\n store = _ref.store;\n return h(\"span\", {\n \"class\": \"custom-tree-node\",\n \"on\": {\n \"mouseover\": function mouseover() {\n _this2.show = true;\n },\n \"mouseout\": function mouseout() {\n _this2.show = false;\n }\n }\n }, [h(\"span\", [data.name]), h(\"span\", [h(\"el-popover\", {\n \"attrs\": {\n \"placement\": \"bottom\",\n \"width\": \"55\",\n \"trigger\": \"hover\"\n }\n }, [h(\"el-button\", {\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-plus\"\n },\n \"on\": {\n \"click\": function click() {\n return _this2.append();\n }\n }\n }, [\"\\u65B0\\u589E\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.id\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-edit\"\n },\n \"on\": {\n \"click\": function click() {\n return _this2.upDateinfo(data, node);\n }\n }\n }, [\"\\u4FEE\\u6539\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.id\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"icon\": \"el-icon-delete\",\n \"type\": \"text\"\n },\n \"on\": {\n \"click\": function click() {\n return _this2.remove(data);\n }\n }\n }, [\"\\u5220\\u9664\"]), h(\"i\", {\n \"slot\": \"reference\",\n \"class\": \"el-icon-more-outline\",\n \"style\": \"font-size: 15px;\"\n })])])]);\n },\n reload: function reload() {\n this.treeData = [{\n code: '',\n id: '0',\n name: '物资管理',\n parentId: null,\n children: []\n }];\n this.$set(this.treeData);\n this.getTreen();\n this.loadData();\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n },\n // 分页查询物资信息\n loadData: function loadData(page) {\n var _this3 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.sorter = this.sorter;\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 } // if (this.querys[3].value) {\n // this.queryParam.querys.push(this.querys[3])\n // }\n\n\n classManage.materialInfoQuery(this.queryParam).then(function (res) {\n console.log(res);\n _this3.total = res.total;\n _this3.tableData = res.rows;\n\n _this3.$set(_this3.tableData);\n\n _this3.loading = false;\n });\n },\n //排序\n insort: function insort(id, num) {\n // console.log(id, num)\n this.sortList[id] = num; // console.log(this.sortList)\n },\n // insortAdd() {\n // //排序保存\n // classManage.updateSequenceClass(this.sortList).then(res => {\n // // console.log(res)\n // this.loadData()\n // })\n // },\n handleAdd: function handleAdd() {\n // 新增物资信息\n if (this.treeNode.id == 0) {\n this.$message.warning('请选择分类!');\n return;\n }\n\n this.$refs.formModal.add(this.treeNode);\n },\n handleNodeClick: function handleNodeClick(data, node, t) {\n // 点击分类树节点\n this.treeNode = data;\n\n if (data.id === '0') {\n this.querys[2].value = '';\n this.loadData(1);\n } else {\n this.querys[2].value = this.treeNode.id;\n this.loadData(1);\n }\n },\n closeFormDiaos: function closeFormDiaos() {\n this.showFormDias = false;\n this.getTreen();\n this.loadData();\n },\n // 删除分类信息\n remove: function remove(data) {\n var _this4 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n classManage.deleteClass(data.id, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this4.queryParam.pageBean.page = 1; // this.loadData()\n\n _this4.getTreen();\n\n _this4.$set(_this4.treeData, _this4.treeData, _this4.treeData);\n } else {\n _this4.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n }\n });\n }).catch(function () {});\n },\n append: function append() {\n // 新增分类信息\n this.titles = '新增';\n this.updateTreeNode = {};\n this.showFormDias = true;\n },\n upDateinfo: function upDateinfo(data, node) {\n // 修改分类信息\n this.titles = '修改';\n\n if (node.parent && node.parent.data) {\n this.updateTreeNode = _objectSpread(_objectSpread({}, data), {}, {\n parentId: node.parent.data.id\n });\n } else {\n this.updateTreeNode = data;\n }\n\n this.showFormDias = true;\n }\n }\n};",null]}