| | |
| | | dataIndex: 'maintenanceCycleName', |
| | | width: 100, |
| | | }, |
| | | { |
| | | title: '派工æ¹å¼', |
| | | align: "center", |
| | | dataIndex: 'assignModeName', |
| | | width: 100, |
| | | }, |
| | | // { |
| | | // title: '派工æ¹å¼', |
| | | // align: "center", |
| | | // dataIndex: 'assignModeName', |
| | | // width: 100, |
| | | // }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: "center", |
| | |
| | | dataIndex: 'checkStatusName', |
| | | }, |
| | | { |
| | | title: 'æªéè¿åå ', |
| | | title: 'éªæ¶æªéè¿åå ', |
| | | align: "center", |
| | | dataIndex: 'notPassReason', |
| | | scopedSlots: { customRender: 'notPassReason' } |
| | |
| | | { |
| | | title: 'ç¶æ', |
| | | align: "center", |
| | | width: 100, |
| | | dataIndex: 'statusName' |
| | | }, |
| | | { |
| | | title: 'ç¹æ£å¨æ', |
| | | align: "center", |
| | | width: 100, |
| | | dataIndex: 'inspectionCycleName' |
| | | }, |
| | | // { |
| | | // title: 'ç¹æ£æ¥æ', |
| | |
| | | // align: "center", |
| | | // dataIndex: 'inspectionStandardNum' |
| | | // }, |
| | | { |
| | | title: 'ç¹æ£å¨æ', |
| | | align: "center", |
| | | dataIndex: 'inspectionCycleName' |
| | | }, |
| | | |
| | | // { |
| | | // title: '派工æ¹å¼', |
| | | // align: "center", |
| | |
| | | v-has="'dailyMaintenanceOrder:add'" |
| | | >æ°å¢</a-button> |
| | | <a-button |
| | | v-if="selectedRowKeys.length == 1 && selectionRows[0].status == '8'" |
| | | v-show="selectedRowKeys.length == 1 && selectionRows[0].status == '8'" |
| | | @click="handlePrintInfo(selectionRows[0])" |
| | | type="primary" |
| | | style="margin-left: 8px" |
| | | >移交åæå° |
| | | </a-button> |
| | | <!-- <a-button |
| | | v-if="selectedRowKeys.length > 0" |
| | | v-show="selectedRowKeys.length > 0" |
| | | type="primary" |
| | | @click="batchAssign" |
| | | style="margin-left: 8px" |
| | |
| | | icon="import" |
| | | >导å
¥</a-button> |
| | | </a-upload> --> |
| | | <!-- <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <!-- <a-dropdown v-show="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item |
| | | key="1" |
| | |
| | | @confirm="() => handleOrderIssue(record)" |
| | | v-has="'dailyMaintenanceOrder:issue'" |
| | | > |
| | | <a v-if="record.status == '1'">æ¥æ¶</a> |
| | | <a v-show="record.status == '1'">æ¥æ¶</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '1'" |
| | | v-show="record.status == '1'" |
| | | type="vertical" |
| | | /> |
| | | <a-popconfirm |
| | |
| | | @confirm="() => handleOrderReset(record)" |
| | | v-has="'dailyMaintenanceOrder:issue'" |
| | | > |
| | | <a v-if="record.status == '2'">æ¤å</a> |
| | | <a v-show="record.status == '2'">æ¤å</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | | v-show="record.status == '2'" |
| | | type="vertical" |
| | | /> |
| | | <!-- <a-popconfirm |
| | | title="ç¡®å®æ¢å¤å·¥åå?" |
| | | @confirm="() => handleOrderRecover(record)" |
| | | v-has="'dailyMaintenanceOrder:recover'" |
| | | > |
| | | <a v-if="record.status == '7'">æ¢å¤</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '7'" |
| | | type="vertical" |
| | | /> --> |
| | | <!-- <a-popconfirm |
| | | title="ç¡®å®ä½åºå·¥åå?" |
| | | @confirm="() => handleOrderCancel(record)" |
| | | v-has="'dailyMaintenanceOrder:recover'" |
| | | > |
| | | <a v-if="record.status == '2'">ä½åº</a> |
| | | </a-popconfirm> --> |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | | v-show="record.status == '2'" |
| | | type="vertical" |
| | | /> |
| | | <a-popconfirm |
| | |
| | | @confirm="() => handleOrderGet(record)" |
| | | v-has="'dailyMaintenanceOrder:get'" |
| | | > |
| | | <a v-if="record.status == '2' && record.assignMode == '1'">é¢å</a> |
| | | <a v-show="record.status == '2' && record.assignMode == '1'">é¢å</a> |
| | | </a-popconfirm> |
| | | <a |
| | | v-if="record.status == '2' && record.assignMode == '2' " |
| | | <!-- <a |
| | | v-show="record.status == '2' && record.assignMode == '2' " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'dailyMaintenanceOrder:assign'" |
| | | >派工</a> |
| | | <!-- <a |
| | | v-if="record.status == '3'&& record.assignMode == '2' && record.maintenanceUserName != null " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'dailyMaintenanceOrder:assign'" |
| | | >æ¹æ´¾</a> --> |
| | | <!-- <a |
| | | v-if="record.status == '3'" |
| | | @click="handleAssignOrder(record)" |
| | | >æ¹æ´¾</a> --> |
| | | |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | | v-show="record.status == '2'" |
| | | type="vertical" |
| | | /> |
| | | /> --> |
| | | <a-divider |
| | | v-if="record.status === '3'&& record.assignMode == '2' && record.maintenanceUserName != null " |
| | | v-show="record.status === '3'&& record.assignMode == '2' && record.maintenanceUserName != null " |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-if="record.status === '3' || record.status === '4' " |
| | | v-show="record.status === '3' || record.status === '4' " |
| | | @click="handleOrderExe(record)" |
| | | v-has="'dailyMaintenanceOrder:exe'" |
| | | >æ§è¡</a> |
| | | <a-divider |
| | | v-if="record.status === '3' || record.status === '4' " |
| | | v-show="record.status === '3' || record.status === '4' " |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-if="record.status === '1'" |
| | | v-show="record.status === '1'" |
| | | @click="handleEdit(record)" |
| | | v-has="'dailyMaintenanceOrder:edit'" |
| | | >ç¼è¾</a> |
| | | <a-divider |
| | | v-if="record.status === '1'" |
| | | v-show="record.status === '1'" |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-if="record.status === '5' || record.status === '8'" |
| | | v-show="(record.status === '5' || record.status === '8') && (record.confirmStatus === '0' || record.confirmStatus === '2')" |
| | | @click="handleFinish(record)" |
| | | v-has="'dailyMaintenanceOrder:operateUser'" |
| | | >å®å·¥ç§»äº¤å</a> |
| | | <a |
| | | v-show="(record.status === '5' || record.status === '8') && (record.confirmStatus === '1' || record.confirmStatus === '4')" |
| | | @click="handleFinish(record)" |
| | | v-has="'dailyMaintenanceOrder:repairUser'" |
| | | >å®å·¥ç§»äº¤å</a> |
| | | <a |
| | | v-show="(record.status === '5' || record.status === '8') && (record.confirmStatus === '3' || record.confirmStatus === '6')" |
| | | @click="handleFinish(record)" |
| | | v-has="'dailyMaintenanceOrder:repairDirectorUser'" |
| | | >å®å·¥ç§»äº¤å</a> |
| | | <a |
| | | v-show="(record.status === '5' || record.status === '8') && (record.confirmStatus === '5')" |
| | | @click="handleFinish(record)" |
| | | v-has="'dailyMaintenanceOrder:equipmentInspectorUser'" |
| | | >å®å·¥ç§»äº¤å</a> |
| | | <a |
| | | v-show="(record.status === '5' || record.status === '8') && (record.confirmStatus === '7')" |
| | | @click="handleFinish(record)" |
| | | >å®å·¥ç§»äº¤å</a> |
| | | <a-divider |
| | | v-if="record.status === '5' || record.status === '8'" |
| | | v-show="record.status === '5' || record.status === '8'" |
| | | type="vertical" |
| | | /> |
| | | <a-dropdown> |
| | |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'dailyMaintenanceOrder:delete'" |
| | | > |
| | | <a v-if="record.status === '1'">å é¤</a> |
| | | <a v-show="record.status === '1'">å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | |
| | | slot-scope="text, record" |
| | | > |
| | | <a |
| | | v-if="record.status === '3' || record.status === '4' ||record.status === '5' ||record.status === '7' " |
| | | v-if="record.status === '3' || record.status === '4' ||record.status === '5' ||record.status === '7' ||record.status === '8'" |
| | | class="lot" |
| | | @click="handleOrderExe(record)" |
| | | >{{record.num}}</a> |
| | |
| | | // align: "center", |
| | | // dataIndex: 'maintenanceCycleName', |
| | | // }, |
| | | // { |
| | | // title: '派工æ¹å¼', |
| | | // align: "center", |
| | | // dataIndex: 'assignModeName', |
| | | // width: 100, |
| | | // }, |
| | | { |
| | | title: '派工æ¹å¼', |
| | | title: '移交åç¡®è®¤ç¶æ', |
| | | align: "center", |
| | | dataIndex: 'assignModeName', |
| | | width: 100, |
| | | dataIndex: 'confirmStatusName' |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | |
| | | @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 |
| | |
| | | align: 'center', |
| | | dataIndex: 'inspectionProjectResult', |
| | | scopedSlots: { customRender: 'inspectionProjectResult' }, |
| | | className: 'red', |
| | | }, |
| | | // className: 'red', |
| | | // { |
| | | // title: 'å¤å®', |
| | | // align: 'center', |
| | |
| | | align: 'center', |
| | | dataIndex: 'abnormalDesc', |
| | | scopedSlots: { customRender: 'abnormalDesc' }, |
| | | className: 'red', |
| | | }, |
| | | // className: 'red', |
| | | // { |
| | | // title: 'å¼å¸¸æç
§', |
| | | // align: 'center', |
| | |
| | | align: 'center', |
| | | dataIndex: 'treatmentMeasure', |
| | | scopedSlots: { customRender: 'treatmentMeasure' }, |
| | | className: 'red', |
| | | }, |
| | | // className: 'red', |
| | | ], |
| | | url: { |
| | | list: "/eam/inspectionOrderDetail/list", |
| | |
| | | å
³é |
| | | </a-button> |
| | | |
| | | <a-button |
| | | <!-- <a-button |
| | | @click="handleOk()" |
| | | type="primary" |
| | | :loading="confirmLoading" |
| | | :disabled="disableSubmit || confirmLoading" |
| | | >ç¡®å®</a-button> |
| | | >ç¡®å®</a-button> --> |
| | | <a-popconfirm |
| | | @confirm="() => handleReject()" |
| | | title="确认å°å½åäºä¿å®å·¥ç§»äº¤å驳åï¼" |
| | | :disabled="this.model.confirmStatus == '0' || this.model.confirmStatus == '2'|| this.model.confirmStatus == '7'" |
| | | > |
| | | <a-button |
| | | :loading='confirmLoading' |
| | | :style="{marginRight: '8px'}" |
| | | :disabled="this.model.confirmStatus == '0' || this.model.confirmStatus == '2'|| this.model.confirmStatus == '7'" |
| | | > |
| | | 驳å |
| | | </a-button> |
| | | </a-popconfirm> |
| | | <a-popconfirm |
| | | @confirm="() => handleOk()" |
| | | title="确认å°å½åäºä¿å®å·¥ç§»äº¤åå®¡æ ¸éè¿ï¼" |
| | | :disabled="this.model.confirmStatus == '7'" |
| | | > |
| | | <a-button |
| | | type='primary' |
| | | :loading='confirmLoading' |
| | | :style="{marginRight: '8px'}" |
| | | :disabled="this.model.confirmStatus == '7'" |
| | | > |
| | | éè¿ |
| | | </a-button> |
| | | </a-popconfirm> |
| | | </template> |
| | | |
| | | </a-modal> |
| | |
| | | this.close(); |
| | | }, |
| | | |
| | | handleOk() { |
| | | |
| | | handleReject() { |
| | | const that = this; |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | if (this.model.confirmStatus == '1') { |
| | | formData.confirmStatus = '2' |
| | | } else if (this.model.confirmStatus == '3') { |
| | | formData.confirmStatus = '4' |
| | | } else if (this.model.confirmStatus == '5') { |
| | | formData.confirmStatus = '6' |
| | | } else if (this.model.confirmStatus == '6') { |
| | | formData.confirmStatus = '4' |
| | | } else if (this.model.confirmStatus == '4') { |
| | | formData.confirmStatus = '2' |
| | | } |
| | | requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | that.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | this.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | if (this.model.confirmStatus == '0') { |
| | | formData.confirmStatus = '1' |
| | | } else if (this.model.confirmStatus == '2') { |
| | | formData.confirmStatus = '1' |
| | | } else if (this.model.confirmStatus == '1') { |
| | | formData.confirmStatus = '3' |
| | | } else if (this.model.confirmStatus == '4') { |
| | | formData.confirmStatus = '3' |
| | | } else if (this.model.confirmStatus == '3') { |
| | | formData.confirmStatus = '5' |
| | | } else if (this.model.confirmStatus == '6') { |
| | | formData.confirmStatus = '5' |
| | | } else if (this.model.confirmStatus == '5') { |
| | | formData.confirmStatus = '7' |
| | | } |
| | | requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | // handleOk() { |
| | | // const that = this; |
| | | // this.form.validateFields((err, values) => { |
| | | // if (!err) { |
| | | // that.confirmLoading = true; |
| | | // let formData = Object.assign(this.model, values); |
| | | // requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { |
| | | // if (res.success) { |
| | | // that.$message.success(res.message); |
| | | // that.$emit('ok'); |
| | | // } else { |
| | | // that.$message.warning(res.message); |
| | | // } |
| | | // }).finally(() => { |
| | | // that.confirmLoading = false; |
| | | // that.close(); |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, |
| | | |
| | | handleDelete(text, record, index) { |
| | | this.dataSource.splice(index, 1); |
| | | }, |
| | |
| | | <template> |
| | | <a-modal |
| | | :title='title' |
| | | :width='1250' |
| | | :width='650' |
| | | :visible='visible' |
| | | :maskClosable='false' |
| | | @ok='handleOk' |
| | |
| | | <a-spin :spinning='confirmLoading'> |
| | | <a-form :form='form'> |
| | | <a-row :gutter='24'> |
| | | <a-col :span='12'> |
| | | <a-col :span='24'> |
| | | <a-form-item |
| | | label='å·¥åå·' |
| | | :labelCol='labelCol' |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | | <a-form-item |
| | | label='æ£å®æ¹å¼' |
| | | :labelCol='labelCol' |
| | | :wrapperCol='wrapperCol' |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled='disableSubmit' |
| | | :placeholder="disableSubmit?'':'è¯·éæ©æ£å®æ¹å¼'" |
| | | :triggerChange='true' |
| | | dictCode='calibration_type' |
| | | v-decorator="['calibrationType', validatorRules.calibrationType]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter='24'> |
| | | <a-col :span='12'> |
| | | <a-col :span='24'> |
| | | <a-form-item |
| | | label='设å¤' |
| | | :labelCol='labelCol' |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span='24'> |
| | | <a-form-item |
| | | label='æ£å®æ¹å¼' |
| | | :labelCol='labelCol' |
| | | :wrapperCol='wrapperCol' |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled='disableSubmit' |
| | | :placeholder="disableSubmit?'':'è¯·éæ©æ£å®æ¹å¼'" |
| | | :triggerChange='true' |
| | | dictCode='calibration_type' |
| | | v-decorator="['calibrationType', validatorRules.calibrationType]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :span='12'> |
| | | <a-col :span='24'> |
| | | <a-form-item |
| | | label='夿便®' |
| | | :labelCol='labelCol' |
| | |
| | | hidden |
| | | :gutter='24' |
| | | > |
| | | <a-col :span='12'> |
| | | <a-col :span='24'> |
| | | <a-form-item |
| | | label='设å¤Id' |
| | | :labelCol='labelCol' |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter='24'> |
| | | <a-col :span='24'> |
| | | <!-- <a-col :span='24'> |
| | | <a-form-item |
| | | :labelCol='{span:3}' |
| | | :wrapperCol='{span:21}' |
| | |
| | | v-decorator="['remark', validatorRules.remark]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span='24'> |
| | | <a-form-item |
| | | :labelCol='{span:3}' |
| | |
| | | </a-row> |
| | | </a-form> |
| | | </a-spin> |
| | | <a-table v-show='false' |
| | | ref='table' |
| | | bordered |
| | | size='middle' |
| | | rowKey='id' |
| | | :columns='columns' |
| | | :pagination='ipagination' |
| | | :loading='loading' |
| | | :dataSource='dataSource' |
| | | @change='handleTableChange' |
| | | <a-table |
| | | v-show='false' |
| | | ref='table' |
| | | bordered |
| | | size='middle' |
| | | rowKey='id' |
| | | :columns='columns' |
| | | :pagination='ipagination' |
| | | :loading='loading' |
| | | :dataSource='dataSource' |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | </a-table> |
| | |
| | | disableSubmit: false, |
| | | codeDisable: true, |
| | | dataSource: [], |
| | | num:"", |
| | | num: "", |
| | | model: { 'management_mode': 'report', 'calibration_type': 'self' }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | |
| | | this.precisionParametersTemplateId = '-1' |
| | | getAction(this.url.getNum, { type: 'CalibrationOrder', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.num = res.message |
| | | // this.num = res.message |
| | | this.form.setFieldsValue({ "num": res.message }) |
| | | } |
| | | }) |
| | | // æ°å¢æ¶å设置é´å®ç±»åä¸ºèªæ£ã å¤å®ä¾æ®ä¸ºæ¥å |
| | | this.edit({ "num":this.num,'calibrationType': 'self', 'managementMode': 'report' }) |
| | | this.edit({ "num": this.num, 'calibrationType': 'self', 'managementMode': 'report' }) |
| | | }, |
| | | edit(record) { |
| | | let that = this |
| | |
| | | data() { |
| | | return { |
| | | description: 'æ£å®æ¥å', |
| | | disableMixinCreated:true, |
| | | disableMixinCreated: true, |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | |
| | | dataIndex: 'size', |
| | | scopedSlots: { customRender: 'size' }, |
| | | }, |
| | | { |
| | | title: 'å¤å®ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'judgmentResultName' |
| | | }, |
| | | // { |
| | | // title: 'å¤å®ç»æ', |
| | | // align: 'center', |
| | | // dataIndex: 'judgmentResultName' |
| | | // }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | |
| | | }, |
| | | } |
| | | }, |
| | | props:{ |
| | | calibrationOrderId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | props: { |
| | | calibrationOrderId: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | watch:{ |
| | | calibrationOrderId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.calibrationOrderId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['calibrationOrderId'] = val; |
| | | this.queryParam['delFlag'] = 0; |
| | | this.loadData(1); |
| | | } |
| | | watch: { |
| | | calibrationOrderId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.calibrationOrderId) { |
| | | // this.clearList() |
| | | } else { |
| | | this.queryParam['calibrationOrderId'] = val; |
| | | this.queryParam['delFlag'] = 0; |
| | | this.loadData(1); |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | // mounted() { |
| | | // this.$bus.$on('equipmentSelectionRows', (data) => { |
| | | // this.equipmentSelectionRows = data |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:4}" |
| | |
| | | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-row> --> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title='title' |
| | | :width="650" |
| | | :visible='visible' |
| | | :maskClosable='false' |
| | | cancelText='å
³é' |
| | | @cancel='handleCancel' |
| | | :confirmLoading='confirmLoading' |
| | | > |
| | | <!-- @ok='handleOk' --> |
| | | <a-spin :spinning='confirmLoading'> |
| | | <a-form :form="form"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | label="ç»ä¸ç¼å·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥ç»ä¸ç¼å·'" |
| | | v-decorator="['equipmentNum', validatorRules.equipmentNum ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | label="设å¤åç§°" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥è®¾å¤åç§°'" |
| | | v-decorator="['equipmentName', validatorRules.equipmentName ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥åå·'" |
| | | v-decorator="['equipmentModel', validatorRules.equipmentModel ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | label="è§æ ¼" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请è¾å
¥è§æ ¼'" |
| | | v-decorator="['equipmentSpecification', validatorRules.equipmentSpecification ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item |
| | | label="ææ¯ç¶æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <!-- prop="technologyStatus" --> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©ææ¯ç¶æ" |
| | | :triggerChange="true" |
| | | dictCode="technology_status" |
| | | v-decorator="['judgmentResult', validatorRules.judgmentResult ]" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='24'> |
| | | <a-form-item |
| | | label="å®¡æ ¸æè§" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-textarea |
| | | rows='3' |
| | | placeholder='请è¾å
¥å®¡æ ¸æè§' |
| | | v-decorator="['remark', validatorRules.remark ]" |
| | | ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </a-spin> |
| | | <template slot='footer'> |
| | | <a-popconfirm |
| | | @confirm="() => handleReject()" |
| | | title="确认å°å½åç»æé©³åï¼" |
| | | > |
| | | <a-button |
| | | :loading='confirmLoading' |
| | | :style="{marginRight: '8px'}" |
| | | > |
| | | 驳å |
| | | </a-button> |
| | | </a-popconfirm> |
| | | <a-popconfirm |
| | | @confirm="() => handleOk()" |
| | | title="确认å°å½åç»æå®¡æ ¸éè¿ï¼" |
| | | > |
| | | <a-button |
| | | type='primary' |
| | | :loading='confirmLoading' |
| | | :style="{marginRight: '8px'}" |
| | | > |
| | | éè¿ |
| | | </a-button> |
| | | </a-popconfirm> |
| | | </template> |
| | | </a-modal> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction, requestPut, postAction } from '@/api/manage' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import pick from 'lodash.pick' |
| | | |
| | | |
| | | export default { |
| | | name: 'EquipmentTechnologyStatusModal', |
| | | components: { |
| | | Tooltip |
| | | }, |
| | | data() { |
| | | return { |
| | | title: 'æä½', |
| | | visible: false, |
| | | disableSubmit: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | confirmLoading: false, |
| | | form: this.$form.createForm(this), |
| | | validatorRules: { |
| | | remark: { |
| | | rules: [ |
| | | { required: true, message: '请è¾å
¥å®¡æ ¸æè§!' }, |
| | | ] |
| | | }, |
| | | judgmentResult: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©ææ¯ç¶æ!' }, |
| | | ] |
| | | }, |
| | | }, |
| | | url: { |
| | | auditApproval: "/eam/calibrationOrderReport/editEquipmentTechnologyStatus", |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | this.disableSubmit = false; |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'equipmentNum', 'equipmentName', 'equipmentModel', 'equipmentSpecification', 'judgmentResult', 'remark')) |
| | | }); |
| | | if (record.id) { |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | } |
| | | }, |
| | | |
| | | |
| | | |
| | | handleReject() { |
| | | const that = this; |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | formData.status = '3' |
| | | requestPut(this.url.auditApproval, formData, { id: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | handleOk() { |
| | | const that = this; |
| | | that.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | this.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | formData.status = '4' |
| | | requestPut(this.url.auditApproval, formData, { id: this.model.id }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style lang='less' scoped> |
| | | /deep/ .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | | } |
| | | |
| | | .ant-form-item-control { |
| | | line-height: 0px; |
| | | } |
| | | |
| | | /** 主表åè¡é´è· */ |
| | | .ant-form .ant-form-item { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /** Tab页é¢è¡é´è· */ |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | |
| | | /deep/ .ant-modal-title { |
| | | text-align: center; |
| | | } |
| | | </style> |
| | |
| | | </a-table> |
| | | </div> |
| | | <!-- å³ä¾§çè§è²æéé
ç½® --> |
| | | <!-- <user-role-modal ref="modalUserRole"></user-role-modal> --> |
| | | <user-role-modal-new ref="modalUserRole"></user-role-modal-new> |
| | | <user-role-modal ref="modalUserRole"></user-role-modal> |
| | | <!-- <user-role-modal-new ref="modalUserRole"></user-role-modal-new> --> |
| | | <role-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |