{"remainingRequest":"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\\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//\n\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport {\n\tdragControllerDiv\n} 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\tname: 'SpareManage',\n\tmixins: [TableMixin],\n\tcomponents: {\n\t\tSpareManageModal,\n\t\tspareWarehouseDialog\n\t},\n\tdata() {\n\t\treturn {\n\t\t\turl: {\n\t\t\t\tdelete: '/device/base/spare/'\n\t\t\t}, // 备件删除信息\n\t\t\tloading: false, // 页面加载\n\t\t\tshowFormDia: false, //备件弹窗显示\n\t\t\tshowMore: false,\n\t\t\tpId: '', //修改时传的id值\n\t\t\tmultipleSelection: [], // 复选框\n\t\t\tSpareTypes: [], //备件类型\n\t\t\t// 备件库树\n\t\t\ttreeData: [],\n\t\t\ttreeNode: {\n\t\t\t\tcode: '',\n\t\t\t\tid: 0,\n\t\t\t\tname: '备件库管理',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t},\n\t\t\tdefaultProps: {\n\t\t\t\tchildren: 'children',\n\t\t\t\tlabel: 'warehouseName'\n\t\t\t},\n\t\t\t// 查询条件传参\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'spareName',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'spareSpecs',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'spareType',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'warehouseId',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: ''\n\t\t\t\t}\n\t\t\t],\n\t\t\ttotal: 0, // 总条目数\n\t\t\ttableData: [] // 备件列表数据\n\t\t}\n\t},\n\tcomputed: {},\n\tcreated() {\n\t\tthis.SpareTypes = dictSpare.getDictItemsFromCache('bjlx')\n\t\t// this.getTreen()\n\t},\n\tmounted() {\n\t\tdragControllerDiv()\n\t},\n\tmethods: {\n\t\t// 打开搜索更多\n\t\topenMore() {\n\t\t\tthis.showMore = !this.showMore\n\t\t},\n\t\t// 删除单个备件库信息\n\t\tSpareWarehouseDelete(item) {\n\t\t\tthis.$confirm('确定删除选中数据?', '提示', {\n\t\t\t\t\tdistinguishCancelAndClose: true,\n\t\t\t\t\tconfirmButtonText: '确 定',\n\t\t\t\t\tcancelButtonText: '取 消'\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tSpareWarehouse.removeSpareWarehouse(item.id).then(res => {\n\t\t\t\t\t\tif (res.data.state) {\n\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\tmessage: '删除成功',\n\t\t\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t// this.getTreen()\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\t.catch(action => {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'info',\n\t\t\t\t\t\tmessage: action === 'cancel' ? '已取消删除' : '停留在当前页面'\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t},\n\t\t// 备品库新增\n\t\tappend() {\n\t\t\tthis.$refs.WarehouseDia.add()\n\t\t},\n\t\t// 备品库修改\n\t\tupDateinfo(data, type) {\n\t\t\tconsole.log(data)\n\t\t\tthis.$refs.WarehouseDia.edit(data)\n\t\t},\n\t\t// 备件库组织树查询\n\t\tgetTreen() {\n\t\t\tSpareWarehouse.findSWList({}, res => {\n\t\t\t\tthis.treeData = res.rows\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\t\t// renderContent(h, {node, data, store}) {\n\t\t// return (\n\t\t// {\n\t\t// this.show = true\n\t\t// }}\n\t\t// on-mouseout={() => {\n\t\t// this.show = false\n\t\t// }}\n\t\t// >\n\t\t// {data.warehouseName}\n\t\t// \n\t\t// \n\t\t// this.append()}\n\t\t// >\n\t\t// 新增\n\t\t// \n\t\t// this.upDateinfo(data, '')}\n\t\t// >\n\t\t// 修改\n\t\t// \n\t\t// this.SpareWarehouseDelete(data)}\n\t\t// >\n\t\t// 删除\n\t\t// \n\t\t// \n\t\t// \n\t\t// \n\t\t// \n\t\t// )\n\t\t// },\n\t\t// 重置\n\t\tclearQuerys() {\n\t\t\tthis.querys[0].value = ''\n\t\t\tthis.querys[1].value = ''\n\t\t\tthis.querys[2].value = ''\n\t\t},\n\t\t// 新增备件\n\t\topenFormDiao() {\n\t\t\tthis.$refs.formModal.add()\n\t\t},\n\t\t// 关闭备件增改弹窗\n\t\tcloseFormDiao() {\n\t\t\tthis.$refs.formModal.closeFormDiao()\n\t\t},\n\t\t// 备件修改\n\t\thandleUpdate(row) {\n\t\t\t// console.log(row)\n\t\t\tthis.pId = row.id\n\t\t\tthis.$refs.formModal.Update(row)\n\t\t},\n\t\t// 获取备件信息\n\t\tloadData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tif (this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tif (this.querys[3].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[3])\n\t\t\t}\n\t\t\tSpares.findSMList(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\t\t// 点击备件库查看备件信息\n\t\thandleNodeClick(data) {\n\t\t\tthis.treeNode = data\n\t\t\tconsole.log(this.treeNode, 'ssssss')\n\t\t\tif (data.id == '0') {\n\t\t\t\tthis.querys[3].value = this.treeNode.id\n\t\t\t\tthis.loadData(1)\n\t\t\t} else {\n\t\t\t\tthis.querys[3].value = this.treeNode.id\n\t\t\t\tthis.loadData(1)\n\t\t\t}\n\t\t}\n\t}\n}\n",null]}