| | |
| | | > |
| | | <a-input |
| | | v-model="model.num" |
| | | placeholder="请输入单据号" |
| | | placeholder="将由系统自动生成" |
| | | disabled |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | // import EquipmentSelection from '@/components/tools/EquipmentSelection.vue' |
| | | import EquipmentSelectModal from './EquipmentSelectModal.vue' |
| | | import { getAction, postAction, requestPut } from '@api/manage' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@comp/jeecg/JVxeTable' |
| | | import { getRefPromise, VALIDATE_FAILED } from '@/components/jeecg/JVxeTable/utils/vxeUtils.js' |
| | |
| | | defaultValue: '' |
| | | }, |
| | | { |
| | | title: '设备编码', |
| | | title: '统一编码', |
| | | key: 'equipmentNum', |
| | | type: JVXETypes.normal, |
| | | width: '150px', |
| | |
| | | add: '/eam/equipmentSeal/add', |
| | | edit: '/eam/equipmentSeal/edit', |
| | | queryById: '/eam/equipmentSeal/queryById', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | equipmentSealDetail: { |
| | | list: '/eam/equipmentSeal/listEquipmentSealDetailByMainId' |
| | | } |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | |
| | | handleChange(value, data) { |
| | | this.$nextTick(() => { |
| | | this.$set(data, 'maintenanceAfterUnseal', data.maintenanceAfterUnseal) |
| | |
| | | if (this.model.id) { |
| | | let params = { equipmentChangeId: this.model.id } |
| | | this.requestSubTableData(this.url.equipmentSealDetail.list, params, this.equipmentSealDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'EquipmentSeal', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |