| | |
| | | // 是否为编辑模式(可保存) |
| | | ['create', 'update'].includes(formType.value), |
| | | ); |
| | | const isFinish = computed(() => formType.value === 'finish'); // 是否为执行出库模式 |
| | | const canSubmit = computed( |
| | | () => |
| | | // 是否可提交 |
| | |
| | | const getTitle = computed(() => { |
| | | if (formType.value === 'detail') { |
| | | return $t('ui.actionTitle.view', ['发货通知单']); |
| | | } |
| | | if (formType.value === 'finish') { |
| | | return '执行出库'; |
| | | } |
| | | return formType.value === 'update' |
| | | ? $t('ui.actionTitle.edit', ['发货通知单']) |
| | |
| | | } finally { |
| | | modalApi.unlock(); |
| | | } |
| | | } |
| | | |
| | | /** 执行出库(后端暂未实现,提示用户) */ |
| | | function handleFinish() { |
| | | message.info('执行出库功能暂时不支持,敬请期待!'); |
| | | } |
| | | |
| | | const [Modal, modalApi] = useVbenModal({ |
| | |
| | | > |
| | | <Button type="primary">提交</Button> |
| | | </Popconfirm> |
| | | <Button v-if="isFinish" type="primary" @click="handleFinish"> |
| | | 执行出库 |
| | | </Button> |
| | | </div> |
| | | </template> |
| | | </Modal> |