| | |
| | | <a-tab-pane tab="设备精度" key="2" forceRender> |
| | | <EquipmentPrecisionParametersList |
| | | :isOpen="isOpenPrecision" |
| | | :mainId="selectedMainId" /> |
| | | :mainId="precisionParametersTemplateId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设备文档" key="3" forceRender> |
| | | <EquipmentDocumentList :mainId="selectedMainId" /> |
| | |
| | | equipmentProcessParametersMainId: '', |
| | | equipmentDocumentMainId: '', |
| | | equipmentPrecisionParametersMainId: '', |
| | | precisionParametersTemplateId:'', |
| | | isOpenPrecision:true, |
| | | isOpenProcess:true, |
| | | treeData: [], |
| | |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if(selectedRowKeys.length==1){ |
| | | this.selectedMainId=selectedRowKeys[0] |
| | | this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId; |
| | | this.isOpenProcess = selectionRows[0].processParameters==1; |
| | | this.isOpenPrecision = selectionRows[0].precisionParameters==1; |
| | | }else{ |
| | | this.selectedMainId='' |
| | | this.precisionParametersTemplateId = '' |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | |
| | | <a-tab-pane tab="设备精度" key="2" forceRender> |
| | | <EquipmentPrecisionParametersList |
| | | :isOpen="isOpenPrecision" |
| | | :mainId="selectedMainId" /> |
| | | :mainId="precisionParametersTemplateId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设备文档" key="3" forceRender> |
| | | <EquipmentDocumentList :mainId="selectedMainId" /> |
| | |
| | | equipmentProcessParametersMainId: '', |
| | | equipmentDocumentMainId: '', |
| | | equipmentPrecisionParametersMainId: '', |
| | | precisionParametersTemplateId:'', |
| | | isOpenPrecision:true, |
| | | isOpenProcess:true, |
| | | treeData: [], |
| | |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if(selectedRowKeys.length==1){ |
| | | this.selectedMainId=selectedRowKeys[0] |
| | | this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId; |
| | | this.isOpenProcess = selectionRows[0].processParameters==1; |
| | | this.isOpenPrecision = selectionRows[0].precisionParameters==1; |
| | | }else{ |
| | | this.selectedMainId='' |
| | | this.precisionParametersTemplateId = '' |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | |
| | | <a-tab-pane tab="设备精度" key="2" forceRender> |
| | | <EquipmentPrecisionParametersList |
| | | :isOpen="isOpenPrecision" |
| | | :mainId="selectedMainId" /> |
| | | :mainId="precisionParametersTemplateId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设备文档" key="3" forceRender> |
| | | <EquipmentDocumentList :mainId="selectedMainId" /> |
| | |
| | | equipmentProcessParametersMainId: '', |
| | | equipmentDocumentMainId: '', |
| | | equipmentPrecisionParametersMainId: '', |
| | | precisionParametersTemplateId:'', |
| | | isOpenPrecision:true, |
| | | isOpenProcess:true, |
| | | treeData: [], |
| | |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if(selectedRowKeys.length==1){ |
| | | this.selectedMainId=selectedRowKeys[0] |
| | | this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId; |
| | | this.isOpenProcess = selectionRows[0].processParameters==1; |
| | | this.isOpenPrecision = selectionRows[0].precisionParameters==1; |
| | | }else{ |
| | | this.selectedMainId='' |
| | | this.precisionParametersTemplateId = '' |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <a-button @click="handleCopy" type="primary" icon="copy" :disabled="selectedRowKeys.length!=1">复制</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | list: "/eam/precisionParametersTemplate/list", |
| | | delete: "/eam/precisionParametersTemplate/delete", |
| | | deleteBatch: "/eam/precisionParametersTemplate/deleteBatch", |
| | | importExcelUrl: "/eam/precisionParametersTemplate/importExcel", |
| | | }, |
| | | dictOptions:{ |
| | | }, |
| | |
| | | record.num = ''; |
| | | this.handleEdit(record); |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | <style scoped> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="车间" |
| | | label="工区" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="factoryModelId" |
| | |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="请选择车间" |
| | | placeholder="请选择工区" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag!='1'" |
| | | v-model="model.factoryModelId" |
| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="operatingSystem" |
| | | > |
| | | <a-input |
| | | v-model="model.operatingSystem" |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="是否有操作系统" |
| | | :disabled="formDisabled" |
| | | placeholder="请输入操作系统" |
| | | ></a-input> |
| | | :triggerChange="true" |
| | | dictCode="operation_flag" |
| | | v-model="model.operatingSystem" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-col :span="6" v-if="model.operatingSystem=='yes'"> |
| | | <a-form-model-item |
| | | label="系统" |
| | | :labelCol="labelCol" |
| | |
| | | propertyStatus: [ |
| | | { required: true, message: '请选择资产状态!' }, |
| | | ], |
| | | system:[ |
| | | { required: true, message: '请输入系统!' }, |
| | | ] |
| | | }, |
| | | url: { |
| | | add: "/eam/equipment/add", |
| | |
| | | if(!this.mainId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['equipmentId'] = val |
| | | this.queryParam['precisionParametersTemplateId'] = val |
| | | this.loadData(1); |
| | | } |
| | | } |
| | |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | width:100, |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '精度参数编码', |
| | | dataIndex: 'precisionParametersNum', |
| | | title:'检验项目名称', |
| | | align: "center", |
| | | // width:250, |
| | | }, |
| | | { |
| | | title: '精度参数名称', |
| | | dataIndex: 'precisionParametersName', |
| | | align: "center", |
| | | // width:250, |
| | | width:400 |
| | | }, |
| | | { |
| | | title: '计量单位', |
| | | dataIndex: 'precisionParametersUnitName', |
| | | title:'位置', |
| | | align: "center", |
| | | // width:250, |
| | | dataIndex: 'precisionParametersUda1', |
| | | width:400 |
| | | }, |
| | | { |
| | | title: '上限值', |
| | | dataIndex: 'upperLimit', |
| | | title:'允差(mm)', |
| | | align: "center", |
| | | // scopedSlots: { |
| | | // customRender: 'upperLimit' |
| | | // }, |
| | | // width:250, |
| | | dataIndex: 'tolerance', |
| | | width:400 |
| | | }, |
| | | { |
| | | title: '下限值', |
| | | dataIndex: 'lowerLimit', |
| | | title:'实测值', |
| | | align: "center", |
| | | // scopedSlots: { |
| | | // customRender: 'lowerLimit' |
| | | // }, |
| | | // width:250, |
| | | }, |
| | | { |
| | | title: '实际精度值', |
| | | dataIndex: 'actualValue', |
| | | align: "center", |
| | | // scopedSlots: { |
| | | // customRender: 'actualValue' |
| | | // }, |
| | | // width:250, |
| | | width:400 |
| | | }, |
| | | { |
| | | title: '备注', |
| | | dataIndex: 'remark', |
| | | align: "center", |
| | | }, |
| | | // { |
| | | // title: '操作', |
| | | // dataIndex: 'action', |
| | | // width: 160, |
| | | // align: "center", |
| | | // // scopedSlots: { |
| | | // // customRender: 'action' |
| | | // // }, |
| | | // fixed: 'right', |
| | | // }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipmentPrecisionParameters/list", |
| | | list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId', |
| | | edit: "/eam/equipmentPrecisionParameters/edit", |
| | | submitBatch:"/eam/equipmentPrecisionParameters/submitBatch", |
| | | // delete: "/new/equipment/deleteEquipmentPrecisionParameters", |
| | |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width:100, |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | }, |
| | | width: 50, |
| | | } |
| | | }, |
| | | { |
| | | title: '设备精度编码', |
| | | align: 'center', |
| | | dataIndex: 'precisionParametersNum', |
| | | }, |
| | | { |
| | | title: '设备精度名称', |
| | | align: 'center', |
| | | title:'检验项目名称', |
| | | align:"center", |
| | | dataIndex: 'precisionParametersName', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '计量单位', |
| | | align: 'center', |
| | | dataIndex: 'unit', |
| | | title:'位置', |
| | | align:"center", |
| | | dataIndex: 'precisionParametersUda1', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '备注', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | title:'允差(mm)', |
| | | align:"center", |
| | | dataIndex: 'tolerance', |
| | | width:200 |
| | | }, |
| | | ], |
| | | |
| | |
| | | overflow-y: hidden; |
| | | } |
| | | |
| | | /deep/ .notshow { |
| | | .notshow { |
| | | display: none; |
| | | } |
| | | |
| | |
| | | color: #1890ff; |
| | | } |
| | | |
| | | /deep/ .frozenRowClass { |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | </style> |