| | |
| | | <div class="properties-content"> |
| | | <Form class="properties-body" label-align="left" layout="vertical"> |
| | | <FormItem label="工艺路线编码" name="工艺路线编码"> |
| | | <Input :style="{ width: '100%' }" v-model:value="mesRoute.ROT_CODE" :min="0" :step="1" :readonly="true" /> |
| | | <Input |
| | | :style="{ width: '100%' }" |
| | | v-model:value="mesRoute.ROT_CODE" |
| | | :min="0" |
| | | :step="1" |
| | | :readonly="true" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="节点ID" name="节点ID"> |
| | | <Input :style="{ width: '100%' }" v-model:value="routeConfig.currentAct.NODE_ID" :min="0" :step="1" |
| | | :readonly="true" /> |
| | | <Input |
| | | :style="{ width: '100%' }" |
| | | v-model:value="routeConfig.currentAct.NODE_ID" |
| | | :min="0" |
| | | :step="1" |
| | | :readonly="true" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="行为名称" name="行为名称"> |
| | | <Input :style="{ width: '100%' }" v-model:value="routeConfig.currentAct.ACT_NAME" :min="0" :step="1" /> |
| | | <Input |
| | | :style="{ width: '100%' }" |
| | | v-model:value="routeConfig.currentAct.ACT_NAME" |
| | | :min="0" |
| | | :step="1" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="行为类型" name="行为类型"> |
| | | <ApiSelect :api="GetEnum" :params="{ name: 'MES_ROUTE_NODE_ACT+ACT_TYPEs' }" |
| | | v-model:value="routeConfig.currentAct.ACT_TYPE" resultField="Data" :label-field="actTypeLable" |
| | | valueField="Value" placeholder="请选择行为类型" /> |
| | | <ApiSelect |
| | | :api="GetEnum" |
| | | :params="{ name: 'MES_ROUTE_NODE_ACT+ACT_TYPEs' }" |
| | | v-model:value="routeConfig.currentAct.ACT_TYPE" |
| | | resultField="Data" |
| | | :label-field="actTypeLable" |
| | | valueField="Value" |
| | | placeholder="请选择行为类型" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="自定义方法(调用方法的全名)" name="自定义方法"> |
| | | <Input :style="{ width: '85%' }" v-model:value="routeConfig.currentAct.ACT_CODE" :min="0" :step="1" /> |
| | | <a-button class="mt-1 ml-1" size="small" @click="handleSelectItem(item)" preIcon="search|svg" /> |
| | | <FormItem label="行为定义" name="行为定义"> |
| | | <Input |
| | | :style="{ width: '85%' }" |
| | | v-model:value="routeConfig.currentAct.ACT_CODE" |
| | | :min="0" |
| | | :step="1" |
| | | /> |
| | | <a-button |
| | | class="mt-1 ml-1" |
| | | size="small" |
| | | @click="handleSelectItem(item)" |
| | | preIcon="search|svg" |
| | | /> |
| | | <GeneralModal @register="registerItemAdd" @success="handleItemSuccess" /> |
| | | </FormItem> |
| | | <FormItem label="是否设置才能下发生产(Y/N)" name="是否设置才能下发生产(Y/N)"> |
| | | <Select ref="select" v-model:value="routeConfig.currentAct.NEED_SETUP" style="width: 150px" |
| | | :options="needSetupOptions" /> |
| | | <Select |
| | | ref="select" |
| | | v-model:value="routeConfig.currentAct.NEED_SETUP" |
| | | style="width: 150px" |
| | | :options="needSetupOptions" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="是否启用" name="是否启用"> |
| | | <Select ref="select" v-model:value="routeConfig.currentAct.IS_ACTIVE" style="width: 150px" |
| | | :options="options1" /> |
| | | <Select |
| | | ref="select" |
| | | v-model:value="routeConfig.currentAct.IS_ACTIVE" |
| | | style="width: 150px" |
| | | :options="options1" |
| | | /> |
| | | </FormItem> |
| | | </Form> |
| | | </div> |
| | |
| | | ], |
| | | tableName: 'MES_CUSTOM_ACT', |
| | | rowKey: 'ACT_CODE', |
| | | searchInfo: {TABLE_NAME: 'MES_CUSTOM_ACT', ACT_TYPE: routeConfig.currentAct.ACT_TYPE} |
| | | searchInfo: { TABLE_NAME: 'MES_CUSTOM_ACT', ACT_TYPE: routeConfig.currentAct.ACT_TYPE }, |
| | | }); |
| | | } |
| | | |
| | | function handleItemSuccess(d, u) { |
| | | routeConfig.currentAct.ACT_CODE = d.values['val'] |
| | | routeConfig.currentAct.ACT_CODE = d.values['val']; |
| | | } |
| | | </script> |