<template>
|
<ContentScrollView :paddingH="false">
|
<nut-form :model-value="form" ref="formRef" :rules="rules">
|
<nut-form-item class="bole-form-item" prop="reason">
|
<nut-textarea v-model="form.reason" rows="4" placeholder="请输入"> </nut-textarea>
|
</nut-form-item>
|
</nut-form>
|
</ContentScrollView>
|
<PageFooter>
|
<PageFooterBtn type="primary" @click="handleConfirm">提交</PageFooterBtn>
|
</PageFooter>
|
</template>
|
|
<script setup lang="ts">
|
import Taro from '@tarojs/taro';
|
import * as standardServiceServices from '@12333/services/apiV2/standardService';
|
import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types';
|
|
defineOptions({
|
name: 'InnerPage',
|
});
|
|
const route = Taro.useRouter();
|
const id = route.params?.id as string;
|
|
const form = reactive({
|
reason: '',
|
});
|
|
const rules = reactive<FormRules>({
|
reason: [{ required: true, message: '请输入取消原因' }],
|
});
|
|
const formRef = ref<any>(null);
|
function handleConfirm() {
|
if (!formRef.value) return;
|
formRef.value.validate().then(({ valid, errors }: any) => {
|
if (valid) {
|
confirm();
|
}
|
});
|
}
|
|
async function confirm() {
|
try {
|
} catch (error) {}
|
}
|
</script>
|
|
<style lang="scss">
|
@import '@/styles/common.scss';
|
</style>
|