| | |
| | | <!-- <a-tabs v-model="activeKey" @change="handleChangeTabs">--> |
| | | <!--主表区域 --> |
| | | <!-- <a-tab-pane tab="设备变动" :key="refKeys[0]" :forceRender="true" :class="'jeecg-tabs-top'" :animated="false">--> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | <a-row> |
| | | <a-col :xs="24" :sm="24"> |
| | |
| | | |
| | | </a-row> |
| | | </a-form-model> |
| | | |
| | | </j-form-container> |
| | | <!-- </a-tab-pane>--> |
| | | |
| | | <!-- <a-button--> |
| | |
| | | :maskClosable="false" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | :title="title" |
| | | @cancel="handleCancel"> |
| | | <equipment-scrap-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"/> |
| | |
| | | :dataSource="equipmentSealDetailTable.dataSource" |
| | | :maxHeight="300" |
| | | :disabled="formDisabled" |
| | | :alwaysEdit='true' |
| | | :bordered='true' |
| | | :alwaysEdit="true" |
| | | :bordered="true" |
| | | :rowNumber="true" |
| | | :rowSelection="true" |
| | | :toolbar="true" |
| | |
| | | </a-button> |
| | | </template> |
| | | |
| | | <!-- 设备图片插槽 --> |
| | | <!-- <template v-slot:equipmentPhoto='props'> |
| | | <Tooltip |
| | | placement="top" |
| | | title="预览图片" |
| | | > |
| | | <span |
| | | v-if="!text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >无图片</span> |
| | | <img |
| | | v-else |
| | | :preview="props.equipmentId" |
| | | :src="getImgView(text)" |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | </Tooltip> |
| | | </template> --> |
| | | <!-- :preview="props.rowId"equipmentId --> |
| | | <template v-slot:action="props"> |
| | | <a-popconfirm |
| | | title="确定删除吗?" |
| | |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-select-modal ref="EquipmentSelectModal"></equipment-select-modal> |
| | | <!-- <equipment-selection @selectionRows="selectionRows" :equipmentStatus="['2', '3']" |
| | | ref="EquipmentSelection"></equipment-selection> --> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | |
| | | import { JEditableTableModelMixin } from '@/mixins/JEditableTableModelMixin' |
| | | import { randomUUID, randomNumber } from '@/utils/util' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import pick from 'lodash.pick' |
| | | import { getAction, postAction, requestPut } from '@api/manage' |
| | | // import EquipmentSelection from '@/components/tools/EquipmentSelection.vue' |
| | | import EquipmentSelectModal from './EquipmentSelectModal.vue' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | // manageList: [ |
| | | // { label: '空', value: '' }, |
| | | // { label: '保养标准一', value: '1001' }, |
| | | // { label: '保养标准二', value: '1002' } |
| | | // ], |
| | | // 新增时子表默认添加几行空数据 |
| | | addDefaultRowNum: 0, |
| | | model: {}, |
| | | validatorRules: { |
| | | |
| | | num: [ |
| | | { required: true, message: '请输入单据号!' }, |
| | | { validator: (rule, value, callback) => validateDuplicateValue('mom_eam_equipment_change', 'num', value, this.model.id, callback) } |
| | | ], |
| | | |
| | | remark: [ |
| | | { required: false, message: '请输入备注!' } |
| | | ] |
| | |
| | | title: '设备封存明细id', |
| | | key: 'id', |
| | | type: JVXETypes.hidden, |
| | | width: '100px', |
| | | width: '100px' |
| | | }, |
| | | // fixed: 'left' |
| | | { |
| | |
| | | key: 'equipmentNum', |
| | | type: JVXETypes.normal, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center' |
| | | // placeholder: '请输入${title}', |
| | | }, |
| | | // fixed: 'left' |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '' |
| | | }, |
| | |
| | | key: 'assetNumber', |
| | | type: JVXETypes.normal, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | |
| | | key: 'sealReason', |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | | align: "center", |
| | | align: 'center', |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '', |
| | | validateRules: [{ |
| | |
| | | key: 'sealDate', |
| | | type: JVXETypes.datetime, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | placeholder: '请选择${title}', |
| | | defaultValue: '', |
| | | validateRules: [{ |
| | |
| | | key: 'planUnsealDate', |
| | | type: JVXETypes.date, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '' |
| | | }, |
| | |
| | | disabled: true, |
| | | placeholder: '请输入${title}', |
| | | defaultValue: '', |
| | | width: '150px', |
| | | width: '150px' |
| | | }, |
| | | { |
| | | title: '特种设备', |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | defaultValue: '' |
| | | }, |
| | | |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '200px', |
| | | align: "center", |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '重要度', |
| | |
| | | type: JVXETypes.normal, |
| | | disabled: true, |
| | | width: '150px', |
| | | align: "center", |
| | | align: 'center', |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | title: '重要度', |
| | | key: 'equipmentImportanceId', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | } |
| | | // { |
| | | // title: '设备图片', |
| | | // key: 'equipmentPhoto', |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /** tab panel 中有下拉框/日期 这类带下拉效果的,需要加此样式 */ |
| | | |
| | | ::v-deep .jeecg-tabs-top { |
| | | /deep/ .jeecg-tabs-top { |
| | | overflow: visible; |
| | | } |
| | | |
| | | ::v-deep .ant-form-explain { |
| | | position: absolute; |
| | | right: -50px; |
| | | top: 12px; |
| | | } |
| | | </style> |
| | |
| | | <a-button |
| | | type="primary" |
| | | icon="download" |
| | | @click="handleExportXls('???')" |
| | | @click="handleExportXls('备件信息')" |
| | | >导出</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> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-button style="margin-left: 8px"> |
| | | 批量操作 |
| | |
| | | delete: "/spare/sparePart/delete", |
| | | deleteBatch: "/spare/sparePart/deleteBatch", |
| | | exportXlsUrl: '/spare/sparePart/exportXls', |
| | | // importExcelUrl: 'base/site/importExcel', |
| | | importExcelUrl: '/spare/sparePart/importExcel', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "", |
| | |
| | | selectedRowKeys: this.selectedRowKeys, |
| | | }; |
| | | }, |
| | | importExcelUrl(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | |
| | | :labelCol='labelCol' |
| | | :wrapperCol='wrapperCol' |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled='disableSubmit' |
| | | :placeholder="disableSubmit?'':'请选择领用部门'" |
| | | :triggerChange='true' |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | | />--> |
| | | <!-- <a-select |
| | | :placeholder="'请选择领用部门'" |
| | | :options="this.departs" |
| | | :disabled="disableSubmit" |
| | | style="width: 100%" |
| | | v-model='model.departId' |
| | | />--> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | |
| | | model: data[i].model, |
| | | mainUnitId: data[i].mainUnitId, |
| | | mainUnitName: data[i].mainUnitName, |
| | | /* auxiliaryUnitId: data[i].auxiliaryUnitId, |
| | | auxiliaryUnitName: data[i].auxiliaryUnitName, */ |
| | | /* conversionRatio: data[i].conversionRatio, */ |
| | | constructorId: data[i].constructorId, |
| | | constructorName: data[i].constructorName, |
| | | supplierId: data[i].supplierId, |
| | |
| | | @click="searchReset" |
| | | icon="reload" |
| | | >重置</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> |
| | | |
| | | <a-table |
| | |
| | | ], |
| | | url: { |
| | | list: "/spare/sparePart/sparePartInventoryList", |
| | | importExcelUrl:'/spare/SparesPartInventory/importExcel' |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "", |
| | |
| | | }else if(record.totalMainQuantity > record.inventoryUpperLimit){ |
| | | return 'yellow' |
| | | } |
| | | |
| | | |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = {}; |