| | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <!-- 主表单区域 --> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-form-model |
| | | ref="form" |
| | | :model="model" |
| | | :rules="validatorRules" |
| | | slot="detail" |
| | | > |
| | | <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-form-model-item |
| | | label="计划单号" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="num" |
| | | > |
| | | <a-input |
| | | v-model="model.num" |
| | | placeholder="请输入计划单号" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12" > |
| | | <a-form-model-item label="计划单类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type"> |
| | | <a-form-model-item |
| | | label="计划单类型" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="type" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择计划单类型" |
| | |
| | | </a-form-model> |
| | | </j-form-container> |
| | | <!-- 子表单区域 --> |
| | | <a-tabs v-model="activeKey" @change="handleChangeTabs"> |
| | | <a-tab-pane tab="保养计划明细" :key="refKeys[0]" :forceRender="true"> |
| | | <a-tabs |
| | | v-model="activeKey" |
| | | @change="handleChangeTabs" |
| | | > |
| | | <a-tab-pane |
| | | tab="保养计划明细" |
| | | :key="refKeys[0]" |
| | | :forceRender="true" |
| | | > |
| | | <j-vxe-table |
| | | keep-source |
| | | :ref="refKeys[0]" |
| | |
| | | :toolbarConfig='toolbarConfig' |
| | | > |
| | | <template slot='toolbarPrefix'> |
| | | <a-button type='primary' @click='standardSelect' :disabled="formDisabled" icon="plus">设备-保养标准 |
| | | <a-button |
| | | type='primary' |
| | | @click='standardSelect' |
| | | :disabled="formDisabled" |
| | | icon="plus" |
| | | >设备-保养标准 |
| | | </a-button> |
| | | </template> |
| | | </j-vxe-table> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <standard-select @selectionRows='selectionRows' ref='standardSelectModel' ></standard-select> |
| | | <standard-select |
| | | @selectionRows='selectionRows' |
| | | ref='standardSelectModel' |
| | | ></standard-select> |
| | | </a-spin> |
| | | </template> |
| | | |
| | |
| | | equipmentMaintenancePlanDetail: { |
| | | list: '/eam/equipmentMaintenancePlan/listEquipmentMaintenancePlanDetailByMainId' |
| | | }, |
| | | getNum: '/eam/sysIdentity/getNumNew' |
| | | } |
| | | } |
| | | }, |
| | |
| | | methods: { |
| | | addBefore(){ |
| | | this.equipmentMaintenancePlanDetailTable.dataSource=[] |
| | | this.getSeq() |
| | | }, |
| | | getAllTable() { |
| | | let values = this.tableKeys.map(key => getRefPromise(this, key)) |
| | |
| | | }) |
| | | }, |
| | | |
| | | |
| | | getSeq() { |
| | | getAction(this.url.getNum, { type: 'MaintenancePlan', length: 4 }).then(res => { |
| | | if (res.success) { |
| | | this.model.num = res.result |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |