| | |
| | | <a-input |
| | | v-model="model.num" |
| | | 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' |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.initNum() |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('selectionRows', (data) => { |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'EquipmentSeal', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | 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 |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |