| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <a-card :bordered="false" style="flex: 1;overflow:auto;max-height: 600px; min-height: 600px"> |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchHeightQuery" |
| | | icon="search" |
| | | style="margin-left: 8px" |
| | | :disabled=" |
| | | !nodeSelected.key || |
| | | nodeSelected.entity.leafFlag === '2' || |
| | | (this.paraTypeFlag != '2' && |
| | | this.paraTypeFlag != '3' && |
| | | this.paraTypeFlag != '4' && |
| | | this.paraTypeFlag != '5' && |
| | | this.paraTypeFlag != '6') |
| | | " |
| | | >高级查询</a-button> |
| | | </span> |
| | | </a-col> |
| | | |
| | |
| | | <stocktaking-list ref="stocktakingList"></stocktaking-list> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <para-hole-tools-search-modal |
| | | ref="paraHoleToolsSearchModal" |
| | | @searchParams="paraHoleToolsOk" |
| | | ></para-hole-tools-search-modal> |
| | | <para-turning-tools-search-modal |
| | | ref="paraTurningToolsSearchModal" |
| | | @searchParams="paraTurningToolsOk" |
| | | ></para-turning-tools-search-modal> |
| | | <para-threading-tool-search-modal |
| | | ref="paraThreadingToolSearchModal" |
| | | @searchParams="paraThreadingToolOk" |
| | | ></para-threading-tool-search-modal> |
| | | <para-mill-tool-search-modal |
| | | ref="paraMillToolSearchModal" |
| | | @searchParams="paraMillToolOk" |
| | | ></para-mill-tool-search-modal> |
| | | <para-blade-search-modal ref="paraBladeSearchModal" @searchParams="paraBladeOk"></para-blade-search-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import StocktakingList from './StocktakingList' |
| | | import InStoreDetailList from './InStoreDetailList' |
| | | import OutStoreDetailList from './OutStoreDetailList' |
| | | import ParaHoleToolsSearchModal from '../baseTools/ParaHoleToolsSearchModal' |
| | | import ParaMillToolSearchModal from '../baseTools/ParaMillToolSearchModal' |
| | | import ParaThreadingToolSearchModal from '../baseTools/ParaThreadingToolSearchModal' |
| | | import ParaTurningToolsSearchModal from '../baseTools/ParaTurningToolsSearchModal' |
| | | import ParaBladeSearchModal from '../baseTools/ParaBladeSearchModal' |
| | | |
| | | export default { |
| | | name: 'ToolLedgerListRight', |
| | |
| | | ToolSharpenList, |
| | | StocktakingList, |
| | | InStoreDetailList, |
| | | OutStoreDetailList |
| | | OutStoreDetailList, |
| | | ParaHoleToolsSearchModal, |
| | | ParaMillToolSearchModal, |
| | | ParaThreadingToolSearchModal, |
| | | ParaTurningToolsSearchModal, |
| | | ParaBladeSearchModal, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | /* 分页参数 */ |
| | | ipagination:{ |
| | | current: 1, |
| | | pageSize: 10, |
| | | pageSizeOptions: ['10', '20', '50'], |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '30'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " 共" + total + "条" |
| | | }, |
| | |
| | | dataIndex: 'applicationType' |
| | | }, |
| | | { |
| | | title:'管理等级', |
| | | title:'精度等级', |
| | | align:"center", |
| | | dataIndex: 'accuracyClass' |
| | | dataIndex: 'accuracyClassName' |
| | | }, |
| | | { |
| | | title:'存储位置', |
| | | align:"center", |
| | | dataIndex: 'storageLocation' |
| | | }, |
| | | // { |
| | | // title:'存储位置', |
| | | // align:"center", |
| | | // dataIndex: 'storageLocation' |
| | | // }, |
| | | { |
| | | title:'库位号', |
| | | align:"center", |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('getCurrSelected', (data) => { |
| | | //getCurrSelected 事件 接收组件传递的参数 |
| | | this.$bus.$on('getToolLedgerListSelected', (data) => { |
| | | //getToolLedgerListSelected 事件 接收组件传递的参数 |
| | | this.nodeType = (data.type == undefined ? 0 : data.type); |
| | | this.paraTypeFlag = (data.entity == undefined ? 0 : data.entity.paraTypeFlag) |
| | | this.nodeSelected = data; |
| | | this.loadData() |
| | | this.loadData(1) |
| | | this.clearPara() |
| | | }) |
| | | }, |
| | |
| | | methods: { |
| | | |
| | | modalFormOk() { |
| | | this.loadData(); // 刷新表格数据 |
| | | this.loadData(1); // 刷新表格数据 |
| | | this.$bus.$emit('queryTreeData') //刷新左侧树 |
| | | }, |
| | | |
| | |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows |
| | | //通过id查询管理参数和参数数据 |
| | | getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.paraTypeFlag}).then((res) => { |
| | | getAction(this.url.queryParaByToolCode, { toolCode: this.selectionRows[0].toolCodeId,paraTypeFlag:this.selectionRows[0].paraTypeFlag}).then((res) => { |
| | | if (res.success) { |
| | | if(this.paraTypeFlag === "1"){ |
| | | if(this.selectionRows[0].paraTypeFlag === "1"){ |
| | | this.$refs.paraCommonToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "2"){ |
| | | //隐藏其他类型参数 |
| | | this.$refs.paraHoleToolsList.visable =false |
| | | this.$refs.paraThreadingToolList.visable = false |
| | | this.$refs.paraMillToolList.visable = false |
| | | this.$refs.paraTurningToolsList.visable = false |
| | | this.$refs.paraBladeList.visable = false |
| | | }else if(this.selectionRows[0].paraTypeFlag === "2"){ |
| | | this.$refs.paraHoleToolsList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "3"){ |
| | | this.$refs.paraCommonToolList.visable = false |
| | | this.$refs.paraThreadingToolList.visable = false |
| | | this.$refs.paraMillToolList.visable = false |
| | | this.$refs.paraTurningToolsList.visable = false |
| | | this.$refs.paraBladeList.visable = false |
| | | }else if(this.selectionRows[0].paraTypeFlag === "3"){ |
| | | this.$refs.paraThreadingToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "4"){ |
| | | this.$refs.paraCommonToolList.visable = false |
| | | this.$refs.paraHoleToolsList.visable =false |
| | | this.$refs.paraMillToolList.visable = false |
| | | this.$refs.paraTurningToolsList.visable = false |
| | | this.$refs.paraBladeList.visable = false |
| | | }else if(this.selectionRows[0].paraTypeFlag === "4"){ |
| | | this.$refs.paraMillToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "5"){ |
| | | this.$refs.paraCommonToolList.visable = false |
| | | this.$refs.paraHoleToolsList.visable =false |
| | | this.$refs.paraThreadingToolList.visable = false |
| | | this.$refs.paraTurningToolsList.visable = false |
| | | this.$refs.paraBladeList.visable = false |
| | | }else if(this.selectionRows[0].paraTypeFlag === "5"){ |
| | | this.$refs.paraTurningToolsList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "6"){ |
| | | this.$refs.paraCommonToolList.visable = false |
| | | this.$refs.paraHoleToolsList.visable =false |
| | | this.$refs.paraThreadingToolList.visable = false |
| | | this.$refs.paraMillToolList.visable = false |
| | | this.$refs.paraBladeList.visable = false |
| | | }else if(this.selectionRows[0].paraTypeFlag === "6"){ |
| | | this.$refs.paraBladeList.getPara(res.result); |
| | | this.$refs.paraCommonToolList.visable = false |
| | | this.$refs.paraHoleToolsList.visable =false |
| | | this.$refs.paraThreadingToolList.visable = false |
| | | this.$refs.paraMillToolList.visable = false |
| | | this.$refs.paraTurningToolsList.visable = false |
| | | this.$refs.paraBladeList.visable = false |
| | | } |
| | | } else { |
| | | this.$message.warning(res.message); |
| | | } |
| | | }) |
| | | getAction(this.url.queryByToolCode, { toolCode: this.selectedRowKeys[0]}).then((res) => { |
| | | getAction(this.url.queryByToolCode, { toolCode: this.selectionRows[0].toolCodeId}).then((res) => { |
| | | if (res.success) { |
| | | this.$refs.toolsConfigPropertyList.getPara(res.result); |
| | | } else { |
| | |
| | | } |
| | | return ""; |
| | | }, |
| | | loadData() { |
| | | loadData(arg) { |
| | | //加载数据 若传入参数1则加载第一页的内容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | let params = this.getQueryParams(); |
| | | if (this.nodeSelected && this.nodeSelected.key !== '-1') { |
| | | // 加载选中节点的子类 |
| | |
| | | if (res.success) { |
| | | this.dataSource = res.result.records; // 更新表格数据 |
| | | this.ipagination.total = res.result.total |
| | | //默认选中第一条数据 |
| | | this.selectedRowKeys[0] = res.result.records[0].id |
| | | this.selectionRows[0] = res.result.records[0] |
| | | this.onSelectChange(this.selectedRowKeys,this.selectionRows) |
| | | } else { |
| | | this.$message.warning("请选择叶子节点进行查询"); |
| | | //this.$message.warning("请选择叶子节点进行查询"); |
| | | this.ipagination.total = 0 |
| | | } |
| | | }) |
| | |
| | | this.loading = false; |
| | | }); |
| | | } else { |
| | | this.$message.warning("请选择叶子节点进行查询"); |
| | | // this.$message.warning("请选择叶子节点进行查询"); |
| | | } |
| | | }, |
| | | onClearSelected() { |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | searchHeightQuery() { |
| | | if (this.paraTypeFlag === '2') { |
| | | this.$refs.paraHoleToolsSearchModal.show() |
| | | } else if (this.paraTypeFlag === '3') { |
| | | this.$refs.paraThreadingToolSearchModal.show() |
| | | } else if (this.paraTypeFlag === '4') { |
| | | this.$refs.paraMillToolSearchModal.show() |
| | | } else if (this.paraTypeFlag === '5') { |
| | | this.$refs.paraTurningToolsSearchModal.show() |
| | | } else if (this.paraTypeFlag === '6') { |
| | | this.$refs.paraBladeSearchModal.show() |
| | | } |
| | | }, |
| | | paraHoleToolsOk(data) { |
| | | this.queryParam.chineseName = data.chineseName |
| | | this.queryParam.foreignLanguageName = data.foreignLanguageName |
| | | this.queryParam.standardLevel = data.standardLevel |
| | | this.queryParam.standardCode = data.standardCode |
| | | this.queryParam.diameter = data.diameter |
| | | this.queryParam.coneAngle = data.coneAngle |
| | | this.queryParam.edgeLength = data.edgeLength |
| | | this.queryParam.totalLength = data.totalLength |
| | | this.queryParam.toolMaterial = data.toolMaterial |
| | | this.queryParam.partMaterial = data.partMaterial |
| | | this.queryParam.paintcoatFlag = data.paintcoatFlag |
| | | this.queryParam.toolPattern = data.toolPattern |
| | | this.queryParam.handleSpecifications = data.handleSpecifications |
| | | this.queryParam.coolingMethod = data.coolingMethod |
| | | this.queryParam.bladeCount = data.bladeCount |
| | | this.queryParam.technicalConditions = data.technicalConditions |
| | | this.queryParam.conditionsInfo = data.conditionsInfo |
| | | this.queryParam.toolModel = data.toolModel |
| | | this.loadData(1) |
| | | }, |
| | | paraBladeOk(data) { |
| | | this.queryParam.chineseName = data.chineseName |
| | | this.queryParam.foreignLanguageName = data.foreignLanguageName |
| | | this.queryParam.standardLevel = data.standardLevel |
| | | this.queryParam.standardCode = data.standardCode |
| | | this.queryParam.bladeShape = data.bladeShape |
| | | this.queryParam.bladeLength = data.bladeLength |
| | | this.queryParam.cuttingEdgeCount = data.cuttingEdgeCount |
| | | this.queryParam.bladeThickness = data.bladeThickness |
| | | this.queryParam.toolMaterial = data.toolMaterial |
| | | this.queryParam.partMaterial = data.partMaterial |
| | | this.queryParam.paintcoatFlag = data.paintcoatFlag |
| | | this.queryParam.clampingType = data.clampingType |
| | | this.queryParam.noseAngleR = data.noseAngleR |
| | | this.queryParam.technicalConditions = data.technicalConditions |
| | | this.queryParam.conditionsInfo = data.conditionsInfo |
| | | this.queryParam.toolModel = data.toolModel |
| | | this.loadData(1) |
| | | }, |
| | | paraThreadingToolOk(data) { |
| | | this.queryParam.chineseName = data.chineseName |
| | | this.queryParam.foreignLanguageName = data.foreignLanguageName |
| | | this.queryParam.threadCode = data.threadCode |
| | | this.queryParam.pitch = data.pitch |
| | | this.queryParam.rotationDirection = data.rotationDirection |
| | | this.queryParam.tolerancezoneLevel = data.tolerancezoneLevel |
| | | this.queryParam.edgeLength = data.edgeLength |
| | | this.queryParam.totalLength = data.totalLength |
| | | this.queryParam.toolMaterial = data.toolMaterial |
| | | this.queryParam.partMaterial = data.partMaterial |
| | | this.queryParam.paintcoatFlag = data.paintcoatFlag |
| | | this.queryParam.externalDimensions = data.externalDimensions |
| | | this.queryParam.handleSpecifications = data.handleSpecifications |
| | | this.queryParam.technicalConditions = data.technicalConditions |
| | | this.queryParam.conditionsInfo = data.conditionsInfo |
| | | this.queryParam.toolModel = data.toolModel |
| | | this.loadData(1) |
| | | }, |
| | | paraMillToolOk(data) { |
| | | this.queryParam.chineseName = data.chineseName |
| | | this.queryParam.foreignLanguageName = data.foreignLanguageName |
| | | this.queryParam.standardLevel = data.standardLevel |
| | | this.queryParam.standardCode = data.standardCode |
| | | this.queryParam.diameter = data.diameter |
| | | this.queryParam.noseAngleR = data.noseAngleR |
| | | this.queryParam.edgeLength = data.edgeLength |
| | | this.queryParam.totalLength = data.totalLength |
| | | this.queryParam.toolMaterial = data.toolMaterial |
| | | this.queryParam.partMaterial = data.partMaterial |
| | | this.queryParam.paintcoatFlag = data.paintcoatFlag |
| | | this.queryParam.toolPattern = data.toolPattern |
| | | this.queryParam.clampingSpecifications = data.clampingSpecifications |
| | | this.queryParam.coolingMethod = data.coolingMethod |
| | | this.queryParam.numberOfTeeth = data.numberOfTeeth |
| | | this.queryParam.technicalConditions = data.technicalConditions |
| | | this.queryParam.conditionsInfo = data.conditionsInfo |
| | | this.queryParam.toolModel = data.toolModel |
| | | this.loadData(1) |
| | | }, |
| | | paraTurningToolsOk(data) { |
| | | this.queryParam.chineseName = data.chineseName |
| | | this.queryParam.foreignLanguageName = data.foreignLanguageName |
| | | this.queryParam.standardLevel = data.standardLevel |
| | | this.queryParam.standardCode = data.standardCode |
| | | this.queryParam.headSpecifications = data.headSpecifications |
| | | this.queryParam.matchingNumber = data.matchingNumber |
| | | this.queryParam.leadAngle = data.leadAngle |
| | | this.queryParam.totalLength = data.totalLength |
| | | this.queryParam.toolMaterial = data.toolMaterial |
| | | this.queryParam.partMaterial = data.partMaterial |
| | | this.queryParam.paintcoatFlag = data.paintcoatFlag |
| | | this.queryParam.toolPattern = data.toolPattern |
| | | this.queryParam.crossSectionalSize = data.crossSectionalSize |
| | | this.queryParam.coolingMethod = data.coolingMethod |
| | | this.queryParam.cuttingDirection = data.cuttingDirection |
| | | this.queryParam.technicalConditions = data.technicalConditions |
| | | this.queryParam.conditionsInfo = data.conditionsInfo |
| | | this.queryParam.toolModel = data.toolModel |
| | | this.loadData(1) |
| | | }, |
| | | }, |
| | | } |
| | | </script> |