{"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\\Device\\resourceManage\\SpareManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\SpareManage.vue","mtime":1686792516249},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin';\nimport { dragControllerDiv } from '@/mixins/dragControllerDiv';\nimport SpareManageModal from '@/views/Device/resourceManage/components/spareManageDialog';\nimport spareWarehouseDialog from '@/views/Device/resourceManage/components/spareWarehouseDialog';\nimport Spares from '@/api/device/SpareManage.js';\nimport SpareWarehouse from '@/api/device/SpareWarehouse.js';\nimport dictSpare from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'SpareManage',\n mixins: [TableMixin],\n components: {\n SpareManageModal: SpareManageModal,\n spareWarehouseDialog: spareWarehouseDialog\n },\n data: function data() {\n return {\n url: {\n delete: '/device/base/spare/'\n },\n // 备件删除信息\n loading: false,\n // 页面加载\n showFormDia: false,\n //备件弹窗显示\n showMore: false,\n pId: '',\n //修改时传的id值\n multipleSelection: [],\n // 复选框\n SpareTypes: [],\n //备件类型\n // 备件库树\n treeData: [],\n treeNode: {\n code: '',\n id: 0,\n name: '备件库管理',\n type: 0,\n children: []\n },\n defaultProps: {\n children: 'children',\n label: 'warehouseName'\n },\n // 查询条件传参\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'spareName',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'spareSpecs',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'spareType',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'warehouseId',\n relation: 'AND',\n value: ''\n }],\n total: 0,\n // 总条目数\n tableData: [] // 备件列表数据\n\n };\n },\n computed: {},\n created: function created() {\n this.SpareTypes = dictSpare.getDictItemsFromCache('bjlx'); // this.getTreen()\n },\n mounted: function mounted() {\n dragControllerDiv();\n },\n methods: {\n // 打开搜索更多\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n // 删除单个备件库信息\n SpareWarehouseDelete: function SpareWarehouseDelete(item) {\n var _this = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n distinguishCancelAndClose: true,\n confirmButtonText: '确 定',\n cancelButtonText: '取 消'\n }).then(function () {\n SpareWarehouse.removeSpareWarehouse(item.id).then(function (res) {\n if (res.data.state) {\n _this.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n }); // this.getTreen()\n\n }\n });\n }).catch(function (action) {\n _this.$notify({\n type: 'info',\n message: action === 'cancel' ? '已取消删除' : '停留在当前页面'\n });\n });\n },\n // 备品库新增\n append: function append() {\n this.$refs.WarehouseDia.add();\n },\n // 备品库修改\n upDateinfo: function upDateinfo(data, type) {\n console.log(data);\n this.$refs.WarehouseDia.edit(data);\n },\n // 备件库组织树查询\n getTreen: function getTreen() {\n var _this2 = this;\n\n SpareWarehouse.findSWList({}, function (res) {\n _this2.treeData = res.rows;\n\n _this2.$set(_this2.treeData);\n });\n },\n // renderContent(h, {node, data, store}) {\n // return (\n // {\n // this.show = true\n // }}\n // on-mouseout={() => {\n // this.show = false\n // }}\n // >\n // {data.warehouseName}\n // \n // \n // this.append()}\n // >\n // 新增\n // \n // this.upDateinfo(data, '')}\n // >\n // 修改\n // \n // this.SpareWarehouseDelete(data)}\n // >\n // 删除\n // \n // \n // \n // \n // \n // )\n // },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n },\n // 新增备件\n openFormDiao: function openFormDiao() {\n this.$refs.formModal.add();\n },\n // 关闭备件增改弹窗\n closeFormDiao: function closeFormDiao() {\n this.$refs.formModal.closeFormDiao();\n },\n // 备件修改\n handleUpdate: function handleUpdate(row) {\n // console.log(row)\n this.pId = row.id;\n this.$refs.formModal.Update(row);\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.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 Spares.findSMList(this.queryParam, function (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 handleNodeClick: function handleNodeClick(data) {\n this.treeNode = data;\n console.log(this.treeNode, 'ssssss');\n\n if (data.id == '0') {\n this.querys[3].value = this.treeNode.id;\n this.loadData(1);\n } else {\n this.querys[3].value = this.treeNode.id;\n this.loadData(1);\n }\n }\n }\n};",null]}