| | |
| | | @click='handleAdd' |
| | | type='primary' |
| | | icon='plus' |
| | | v-has="'calibrationOrder:add'" |
| | | >新增 |
| | | </a-button> |
| | | </div> |
| | |
| | | class='ant-alert ant-alert-info' |
| | | style='margin-bottom: 16px;' |
| | | > |
| | | <i class='anticon anticon-info-circle ant-alert-icon'></i> 已选择 <a |
| | | style='font-weight: 600'>{{ selectedRowKeys.length }}</a>项 |
| | | <i class='anticon anticon-info-circle ant-alert-icon'></i> 已选择 <a style='font-weight: 600'>{{ selectedRowKeys.length }}</a>项 |
| | | <a |
| | | style='margin-left: 24px' |
| | | @click='onClearSelected' |
| | |
| | | <a-table |
| | | ref='table' |
| | | size='middle' |
| | | :scroll="{ x: 'calc(700px + 50%)', y: 900 }" |
| | | :scroll="{ x: 'calc(1000px + 50%)', y: 900 }" |
| | | bordered |
| | | rowKey='id' |
| | | :columns='columns' |
| | |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a |
| | | v-if="record.status === '1'" |
| | | @click='handleAddOrderReport(record)' |
| | | >结果录入</a> |
| | | <a-divider |
| | | v-if="record.status === '1'" |
| | | type='vertical' |
| | | /> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | <a |
| | | v-show="record.status === '1' || record.status === '3'" |
| | | @click='handleAddOrderReport(record)' |
| | | v-has="'calibrationOrder:write'" |
| | | >结果录入</a> |
| | | |
| | | <a-divider |
| | | v-show="record.status === '1' || record.status === '3'" |
| | | type='vertical' |
| | | /> |
| | | <a |
| | | v-show="record.status === '2'" |
| | | @click='handleTechnologyStatus(record)' |
| | | v-has="'calibrationOrder:audit'" |
| | | >结果审核</a> |
| | | |
| | | <a-divider |
| | | v-show="record.status === '2'" |
| | | type='vertical' |
| | | /> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | <!-- <a-popconfirm--> |
| | | <!-- title='确定下发工单吗?'--> |
| | | <!-- @confirm='() => handleOrderIssue(record)'--> |
| | |
| | | <!-- </a-dropdown>--> |
| | | </span> |
| | | |
| | | <span |
| | | <!-- <span |
| | | slot='num' |
| | | slot-scope='text, record' |
| | | > |
| | |
| | | >{{ record.num }}</a> |
| | | |
| | | <span v-else>{{ record.num }}</span> |
| | | </span> |
| | | </span> --> |
| | | </a-table> |
| | | <a-tabs |
| | | defaultActiveKey='2' |
| | | > |
| | | <a-tabs defaultActiveKey='2'> |
| | | <!-- <a-tab-pane --> |
| | | <!-- key="1"--> |
| | | <!-- tab="检验项"--> |
| | |
| | | key='2' |
| | | tab='检定报告' |
| | | > |
| | | <equipment-calibration-order-report-list ref='EquipmentCalibrationOrderReportList' |
| | | :calibrationOrderId='mainId'></equipment-calibration-order-report-list> |
| | | <equipment-calibration-order-report-list |
| | | ref='EquipmentCalibrationOrderReportList' |
| | | :calibrationOrderId='mainId' |
| | | ></equipment-calibration-order-report-list> |
| | | </a-tab-pane> |
| | | |
| | | </a-tabs> |
| | |
| | | ref='EquipmentCalibrationOrderExeDrawer' |
| | | @ok='modalFormOk' |
| | | ></equipment-calibration-order-exe-drawer> |
| | | <final-modal ref='finalModal' @ok='modalFormOk'></final-modal> |
| | | <final-modal |
| | | ref='finalModal' |
| | | @ok='modalFormOk' |
| | | ></final-modal> |
| | | |
| | | <equipment-calibration-order-report-modal |
| | | ref='equipmentCalibrationOrderReportModal' |
| | | @ok='modalFormOk' |
| | | ></equipment-calibration-order-report-modal> |
| | | |
| | | <equipment-technology-status-modal |
| | | ref="EquipmentTechnologyStatusModal" |
| | | @ok="modalFormOk" |
| | | ></equipment-technology-status-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import FinalModal from './modules/equipmentCalibrationOrder/FinalModal.vue' |
| | | import EquipmentCalibrationOrderReportModal |
| | | from './modules/equipmentCalibrationOrder/EquipmentCalibrationOrderReportModal' |
| | | import EquipmentTechnologyStatusModal from './modules/equipmentCalibrationOrder/EquipmentTechnologyStatusModal' |
| | | |
| | | export default { |
| | | name: 'EquipmentCalibrationOrder', |
| | |
| | | EquipmentPrecisionParametersList, |
| | | EquipmentCalibrationOrderReportList, |
| | | EquipmentCalibrationOrderReportModal, |
| | | FinalModal |
| | | FinalModal, |
| | | EquipmentTechnologyStatusModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | |
| | | // scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title: '检定方式', |
| | | title: '状态', |
| | | align: 'center', |
| | | dataIndex: 'calibrationType_dictText' |
| | | dataIndex: 'status_dictText' |
| | | }, |
| | | { |
| | | title: '判定结果', |
| | | align: 'center', |
| | | dataIndex: 'calibrationResult_dictText' |
| | | }, |
| | | // { |
| | | // title: '检定方式', |
| | | // align: 'center', |
| | | // dataIndex: 'calibrationType_dictText' |
| | | // }, |
| | | { |
| | | title: '统一编码', |
| | | align: 'center', |
| | |
| | | align: 'center', |
| | | dataIndex: 'equipmentSpecification' |
| | | }, |
| | | { |
| | | title: '判定依据', |
| | | align: 'center', |
| | | dataIndex: 'managementMode_dictText' |
| | | }, |
| | | { |
| | | title: '状态', |
| | | align: 'center', |
| | | dataIndex: 'status_dictText' |
| | | }, |
| | | { |
| | | title: '判定结果', |
| | | align: 'center', |
| | | dataIndex: 'calibrationResult_dictText' |
| | | }, |
| | | // { |
| | | // title: '判定依据', |
| | | // align: 'center', |
| | | // dataIndex: 'managementMode_dictText' |
| | | // }, |
| | | |
| | | // { |
| | | // title: '创建人', |
| | | // align: 'center', |
| | |
| | | align: 'center', |
| | | dataIndex: 'calibrationTime' |
| | | }, |
| | | { |
| | | title: '审核意见', |
| | | align: 'center', |
| | | dataIndex: 'remark' |
| | | }, |
| | | // { |
| | | // title: '下发时间', |
| | | // align: 'center', |
| | |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right', |
| | | width: 120, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | |
| | | }, |
| | | |
| | | computed: { |
| | | importExcelUrl: function() { |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.selectionRows = selectionRows |
| | | }, |
| | | |
| | | handleTechnologyStatus(record) { |
| | | this.$refs.EquipmentTechnologyStatusModal.edit(record); |
| | | this.$refs.EquipmentTechnologyStatusModal.title = "审核"; |
| | | this.$refs.EquipmentTechnologyStatusModal.disableSubmit = false; |
| | | }, |
| | | |
| | | handleOrderExe(record) { |
| | |
| | | } |
| | | }, |
| | | // 直接上传鉴定报告 |
| | | handleAddOrderReport: function(record) { |
| | | handleAddOrderReport: function (record) { |
| | | this.$refs.equipmentCalibrationOrderReportModal.add(record.id) |
| | | this.$refs.equipmentCalibrationOrderReportModal.title = '上传检定报告' |
| | | this.$refs.equipmentCalibrationOrderReportModal.disableSubmit = false |