| | |
| | | <a-row> |
| | | <a-col :span='24'> |
| | | <a-form-item label='文档类型编码' :labelCol='labelCol' :wrapperCol='wrapperCol'> |
| | | <a-input placeholder='请输入文档类型编码' v-decorator="['num', validatorRules.num]"></a-input> |
| | | <a-input placeholder='将由系统自动生成' v-decorator="['num', validatorRules.num]" disabled></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span='24'> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | url: { |
| | | add: '/momEamDocumentType/add', |
| | | edit: '/momEamDocumentType/edit', |
| | | queryById: '/momEamDocumentType/queryById' |
| | | queryById: '/momEamDocumentType/queryById', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: '' |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'num', 'name', 'remark')) |
| | | }) |
| | | if (record.id) { |
| | | if (this.model.id) { |
| | | this.codeDisable = true |
| | | } else { |
| | | this.codeDisable = false |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'DocumentType', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请输入设备分类编号'" |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | |
| | | url: { |
| | | add: "/eam/equipmentCategory/add", |
| | | edit: "/eam/equipmentCategory/edit", |
| | | list: "/eam/equipmentCategory/getAllChildren" |
| | | list: "/eam/equipmentCategory/getAllChildren", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | columns: [ |
| | | { |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'EquipmentCategory', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | <a-input |
| | | v-model="model.num" |
| | | placeholder="将由系统自动生成" |
| | | disabled |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | }) |
| | | }, |
| | | created() { |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'EquipmentScrap', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //选择设备 |
| | | selectEquipmentList() { |
| | |
| | | if (this.model.id) { |
| | | let params = { equipmentChangeId: this.model.id } |
| | | this.requestSubTableData(this.url.equipmentScrapDetail.list, params, this.equipmentScrapDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'EquipmentScrap', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |
| | |
| | | target.removeRows(rowId) |
| | | }, |
| | | // 重写add 方法 默认不增加一行 |
| | | add(num = 0, forceScrollToBottom = false) { |
| | | if (num < 1) return |
| | | // let timestamp = new Date().getTime() |
| | | let rows = this.rows |
| | | let row |
| | | for (let i = 0; i < num; i++) { |
| | | rows = this.push({}, false, rows) |
| | | row = rows[rows.length - 1] |
| | | } |
| | | this.rows = rows |
| | | // add(num = 0, forceScrollToBottom = false) { |
| | | // if (num < 1) return |
| | | // // let timestamp = new Date().getTime() |
| | | // let rows = this.rows |
| | | // let row |
| | | // for (let i = 0; i < num; i++) { |
| | | // rows = this.push({}, false, rows) |
| | | // row = rows[rows.length - 1] |
| | | // } |
| | | // this.rows = rows |
| | | |
| | | this.$nextTick(() => { |
| | | this.updateFormValues() |
| | | }) |
| | | // 触发add事件 |
| | | this.$emit('added', { |
| | | row: (() => { |
| | | let r = Object.assign({}, row) |
| | | r.id = this.getCleanId(r.id) |
| | | return r |
| | | })(), |
| | | target: this |
| | | }) |
| | | // 设置滚动条位置 |
| | | let tbody = this.getElement('tbody') |
| | | let offsetHeight = tbody.offsetHeight |
| | | let realScrollTop = tbody.scrollTop + offsetHeight |
| | | if (forceScrollToBottom) { |
| | | this.$nextTick(() => { |
| | | this.resetScrollTop(this.$refs.scrollView.scrollHeight) |
| | | }) |
| | | } |
| | | } |
| | | // this.$nextTick(() => { |
| | | // this.updateFormValues() |
| | | // }) |
| | | // // 触发add事件 |
| | | // this.$emit('added', { |
| | | // row: (() => { |
| | | // let r = Object.assign({}, row) |
| | | // r.id = this.getCleanId(r.id) |
| | | // return r |
| | | // })(), |
| | | // target: this |
| | | // }) |
| | | // // 设置滚动条位置 |
| | | // let tbody = this.getElement('tbody') |
| | | // let offsetHeight = tbody.offsetHeight |
| | | // let realScrollTop = tbody.scrollTop + offsetHeight |
| | | // if (forceScrollToBottom) { |
| | | // this.$nextTick(() => { |
| | | // this.resetScrollTop(this.$refs.scrollView.scrollHeight) |
| | | // }) |
| | | // } |
| | | // } |
| | | |
| | | } |
| | | } |
| | |
| | | <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 |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |
| | |
| | | <a-input |
| | | v-model="model.num" |
| | | placeholder="将由系统自动生成" |
| | | disabled |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | }) |
| | | }, |
| | | created() { |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'EquipmentUnseal', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | //选择设备 |
| | | selectEquipmentList() { |
| | | let ids = [] |
| | |
| | | if (this.model.id) { |
| | | let params = { equipmentChangeId: this.model.id } |
| | | this.requestSubTableData(this.url.equipmentUnsealDetail.list, params, this.equipmentUnsealDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'EquipmentUnseal', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |
| | |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | :disabled="disableSubmit" |
| | | :disabled="true" |
| | | allow-clear |
| | | :placeholder="disableSubmit?'':'请输入故障原因编号'" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/eam/faultCause/add", |
| | | edit: "/eam/faultCause/edit" |
| | | edit: "/eam/faultCause/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "" |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'FaultCause', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="codeDisable" |
| | | :placeholder="disableSubmit?'':'请输入故障类型编号'" |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/eam/faultType/add", |
| | | edit: "/eam/faultType/edit" |
| | | edit: "/eam/faultType/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "" |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'FaultType', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :placeholder="'请输入维保专业编码'" |
| | | :placeholder="'将由系统自动生成'" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | disabled |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | url: { |
| | | add: '/maintenanceSpecialty/maintenanceSpecialty/add', |
| | | edit: '/maintenanceSpecialty/maintenanceSpecialty/edit', |
| | | queryById: '/maintenanceSpecialty/maintenanceSpecialty/queryById' |
| | | queryById: '/maintenanceSpecialty/maintenanceSpecialty/queryById', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: '' |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'num', 'name', 'remark')) |
| | | }) |
| | | if (record.id) { |
| | | if (this.model.id) { |
| | | this.codeDisable = true |
| | | } else { |
| | | this.codeDisable = false |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'MaintenanceSpecialty', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | <a-row> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='操作证编号' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'> |
| | | <a-input v-model='model.num' placeholder='请输入操作证编号'></a-input> |
| | | <a-input v-model='model.num' placeholder='请输入操作证编号' disabled></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | |
| | | <a-row> |
| | | <a-col :span='12'> |
| | | <a-form-model-item label='申请单编号' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'> |
| | | <a-input v-model='model.num' placeholder="将由系统生成"></a-input> |
| | | <a-input v-model='model.num' placeholder="将由系统生成" disabled></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='12'> |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | |
| | | initNum(){ |
| | | getAction(this.url.getNum, { type: 'OperationCertificateApply', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | addBefore() { |
| | | this.operationCertificateApplyDetailTable.dataSource = [] |
| | | }, |
| | |
| | | if (this.model.id) { |
| | | let params = { id: this.model.id } |
| | | this.requestSubTableData(this.url.operationCertificateApplyDetail.list, params, this.operationCertificateApplyDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'OperationCertificateApply', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | placeholder="请输入参数分类编号" |
| | | placeholder="将由系统自动生成" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | disabled |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | add: "/eam/precisionParametersCategory/add", |
| | | edit: "/eam/precisionParametersCategory/edit", |
| | | loadPrecisionParametersCategoryTree: '/eam/precisionParametersCategory/loadTree', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | precisionParametersCategoryTree: [], |
| | | } |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'parentId', 'num', 'name', 'remark')); |
| | | }); |
| | | if (!record.id) { |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'PrecisionParametersCategory', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | handleOk() { |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="codeDisable" |
| | | :placeholder="disableSubmit?'':'请输入精度参数编号'" |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/eam/precisionParameters/add", |
| | | edit: "/eam/precisionParameters/edit" |
| | | edit: "/eam/precisionParameters/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "" |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'PrecisionParameters', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | > |
| | | <a-input |
| | | allowClear |
| | | :disabled="codeDisable" |
| | | :placeholder="disableSubmit?'':'请输入精度参数模板编码'" |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="[ 'num', validatorRules.num]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | add: "/eam/precisionParametersTemplate/add", |
| | | edit: "/eam/precisionParametersTemplate/edit", |
| | | loadTree: "/eam/precisionParameters/loadTree", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | treeData: [], |
| | | TemplateDetailDataSource: [], |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'PrecisionParametersTemplate', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | placeholder="请输入参数分类编号" |
| | | placeholder="将由系统自动生成" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | disabled |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | add: "/eam/processParametersCategory/add", |
| | | edit: "/eam/processParametersCategory/edit", |
| | | loadProcessParametersCategoryTree: '/eam/processParametersCategory/loadTree', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | processParametersCategoryTree: [], |
| | | } |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'parentId', 'num', 'name', 'remark')); |
| | | }); |
| | | if (!record.id) { |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'ProcessParametersCategory', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | handleOk() { |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="codeDisable" |
| | | :placeholder="disableSubmit?'':'请输入工艺参数编号'" |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/eam/processParameters/add", |
| | | edit: "/eam/processParameters/edit" |
| | | edit: "/eam/processParameters/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "" |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'ProcessParameters', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | > |
| | | <a-input |
| | | allowClear |
| | | :disabled="codeDisable" |
| | | :placeholder="disableSubmit?'':'请输入工艺参数模板编码'" |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="[ 'num', validatorRules.num]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | add: "/eam/processParametersTemplate/add", |
| | | edit: "/eam/processParametersTemplate/edit", |
| | | loadTree: "/eam/processParameters/loadTree", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | treeData: [], |
| | | TemplateDetailDataSource: [], |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'ProcessParametersTemplate', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="危险源编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="num"> |
| | | <a-input v-model="model.num" placeholder="请输入危险源编码" ></a-input> |
| | | <a-input v-model="model.num" placeholder="将由系统自动生成" disabled ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | |
| | | url: { |
| | | add: '/eam/riskPrevention/add', |
| | | edit: '/eam/riskPrevention/edit', |
| | | queryById: '/eam/riskPrevention/queryById' |
| | | queryById: '/eam/riskPrevention/queryById', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | } |
| | | } |
| | | }, |
| | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.visible = true |
| | | if (!record.id) { |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'RiskPrevention', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | submitForm() { |
| | | const that = this |
| | |
| | | <a-row> |
| | | <a-col :span='24'> |
| | | <a-form-item label='危险源编码' :labelCol='labelCol' :wrapperCol='wrapperCol'> |
| | | <a-input placeholder='请输入危险源编码' v-decorator="['num', validatorRules.num]"></a-input> |
| | | <a-input placeholder='将由系统自动生成' v-decorator="['num', validatorRules.num]" disabled></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span='24'> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | url: { |
| | | add: '/eam/riskPrevention/add', |
| | | edit: '/eam/riskPrevention/edit', |
| | | queryById: '/eam/riskPrevention/queryById' |
| | | queryById: '/eam/riskPrevention/queryById', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: '' |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'num', 'name', 'remark','description','measure')) |
| | | }) |
| | | if (record.id) { |
| | | if (this.model.id) { |
| | | this.codeDisable = true |
| | | } else { |
| | | this.codeDisable = false |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'RiskPrevention', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | :wrapperCol="{span:18}" |
| | | > |
| | | <a-input |
| | | :readOnly="disableSubmit" |
| | | :readOnly="true" |
| | | allow-clear |
| | | placeholder="请输入工区编号" |
| | | placeholder="将由系统自动生成" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/base/area/add", |
| | | edit: "/base/area/edit" |
| | | edit: "/base/area/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | disableSubmit: false, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'num', 'name', 'teamId', 'deptId', 'remark')) |
| | | }); |
| | | if (!record.id) { |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'Area', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | |
| | | :wrapperCol="{span:18}" |
| | | > |
| | | <a-input |
| | | :readOnly="disableSubmit" |
| | | :readOnly="true" |
| | | allow-clear |
| | | placeholder="请输入工段编号" |
| | | placeholder="将由系统自动生成" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/base/productionLine/add", |
| | | edit: "/base/productionLine/edit" |
| | | edit: "/base/productionLine/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | disableSubmit: false, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'num', 'name', 'shiftCategoryId', 'remark')) |
| | | }); |
| | | if (!record.id) { |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'ProductionLine', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | |
| | | :wrapperCol="{span:18}" |
| | | > |
| | | <a-input |
| | | :readOnly="disableSubmit" |
| | | :readOnly="true" |
| | | allow-clear |
| | | placeholder="请输入工厂编号" |
| | | placeholder="将由系统自动生成" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/base/site/add", |
| | | edit: "/base/site/edit" |
| | | edit: "/base/site/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | disableSubmit: false, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'num', 'name', 'remark')) |
| | | }); |
| | | if (!record.id) { |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'Site', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="codeDisable" |
| | | :placeholder="disableSubmit?'':'请输入增减方式编号'" |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'将由系统自动生成'" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | |
| | | <script> |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut } from '@/api/manage' |
| | | import { getAction,postAction, requestPut } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | |
| | | export default { |
| | |
| | | }, |
| | | url: { |
| | | add: "/eam/transferMethod/add", |
| | | edit: "/eam/transferMethod/edit" |
| | | edit: "/eam/transferMethod/edit", |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "" |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'TransferMethod', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | <a-input |
| | | placeholder="将由系统生成" |
| | | v-decorator="['num', validatorRules.num]" |
| | | disabled |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | this.codeDisable = true; |
| | | } else { |
| | | this.codeDisable = false; |
| | | // this.$nextTick(() => { |
| | | // getAction(this.url.getNum, { type: 'SparePart', length: '4' }).then((res) => { |
| | | // if (res.success) { |
| | | // this.form.setFieldsValue({ num: res.message }); |
| | | // } |
| | | // }) |
| | | // }); |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'SparePart', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | handleOk() { |
| | | const that = this; |
| | | // 触发表单验证 |
| | | this.form.validateFields(async (err, values) => { |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model, values); |
| | | let obj; |
| | | if (!this.model.id) { |
| | | if(!formData.num){ |
| | | await getAction(this.url.getNum, { type: 'SparePart', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | formData.num = res.message; |
| | | } |
| | | }); |
| | | } |
| | | // if(!formData.num){ |
| | | // await getAction(this.url.getNum, { type: 'SparePart', length: '4' }).then((res) => { |
| | | // if (res.success) { |
| | | // formData.num = res.message; |
| | | // } |
| | | // }); |
| | | // } |
| | | formData.sparePartCategoryId = this.sparePartCategoryId |
| | | obj = postAction(this.url.add, formData); |
| | | } else { |
| | |
| | | }, |
| | | created() { |
| | | this.initOptions(); |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'SparePartReceive', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | |
| | | /* this.model.setFieldsValue({ num: res.message }); */ |
| | | } |
| | | }) |
| | | }, |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |
| | | if (res.success) { |
| | |
| | | if (this.model.id) { |
| | | let params = { id: this.model.id } |
| | | this.requestSubTableData(this.url.sparesReceiveDetail.list, params, this.sparesReceiveDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'SparePartReceive', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |
| | |
| | | }, |
| | | created() { |
| | | this.initOptions() |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'SparePartScrap', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | }, |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | |
| | | if (this.model.id) { |
| | | let params = { id: this.model.id } |
| | | this.requestSubTableData(this.url.sparesScrapDetail.list, params, this.sparesScrapDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'SparePartScrap', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |
| | |
| | | }, |
| | | created() { |
| | | this.initOptions() |
| | | this.initNum() |
| | | }, |
| | | methods: { |
| | | |
| | |
| | | }); |
| | | } |
| | | }, */ |
| | | |
| | | initNum() { |
| | | getAction(this.url.getNum, { type: 'SparePartRequirement', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | |
| | | /* this.model.setFieldsValue({ num: res.message }); */ |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | |
| | | if (this.model.id) { |
| | | let params = { id: this.model.id } |
| | | this.requestSubTableData(this.url.sparesScrapRequirementDetail.list, params, this.sparesScrapRequirementDetailTable) |
| | | }else{ |
| | | getAction(this.url.getNum, { type: 'SparePartRequirement', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.model.num = res.message |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //校验所有一对一子表表单 |