diff --git a/src/pages/form/base/constants.ts b/src/pages/form/base/constants.ts index 0eccc6e..e8503a0 100644 --- a/src/pages/form/base/constants.ts +++ b/src/pages/form/base/constants.ts @@ -27,19 +27,19 @@ export const INITIAL_DATA = { }; export const TYPE_OPTIONS = [ - { label: 'Type A', value: '1' }, - { label: 'Type B', value: '2' }, - { label: 'Type C', value: '3' }, + { label: '类型A', value: '1' }, + { label: '类型B', value: '2' }, + { label: '类型C', value: '3' }, ]; export const PARTY_A_OPTIONS = [ - { label: 'Company A', value: '1' }, - { label: 'Company B', value: '2' }, - { label: 'Company C', value: '3' }, + { label: '公司A', value: '1' }, + { label: '公司B', value: '2' }, + { label: '公司C', value: '3' }, ]; export const PARTY_B_OPTIONS = [ - { label: 'Company A', value: '1' }, - { label: 'Company B', value: '2' }, - { label: 'Company C', value: '3' }, + { label: '公司A', value: '1' }, + { label: '公司B', value: '2' }, + { label: '公司C', value: '3' }, ]; diff --git a/src/pages/form/base/index.vue b/src/pages/form/base/index.vue index 8398b73..575bc64 100644 --- a/src/pages/form/base/index.vue +++ b/src/pages/form/base/index.vue @@ -11,19 +11,25 @@ >
-
{{ $t('pages.formBase.title') }}
+
合同信息
- + - - + + {{ item.label }} @@ -33,25 +39,25 @@ - + - {{ $t('pages.formBase.receive') }} - {{ $t('pages.formBase.pay') }} + 收款 + 付款
- +
- + @@ -61,11 +67,11 @@ - + @@ -76,7 +82,7 @@ - + - + - + - + - - {{ $t('pages.formBase.uploadFile') }} - + 上传合同文件
-
{{ $t('pages.formBase.otherInfo') }}
+
其它信息
- - + + - + D S @@ -145,12 +149,8 @@
- - {{ $t('pages.formBase.confirm') }} - - - {{ $t('pages.formBase.cancel') }} - + 确认提交 + 取消
diff --git a/src/pages/form/step/constants.ts b/src/pages/form/step/constants.ts index 6de203c..c4e0b8a 100644 --- a/src/pages/form/step/constants.ts +++ b/src/pages/form/step/constants.ts @@ -1,26 +1,26 @@ import { FormRule } from 'tdesign-vue-next'; export const FORM_RULES: Record = { - name: [{ required: true, type: 'error' }], - type: [{ required: true, type: 'error' }], - title: [{ required: true, type: 'error' }], - taxNum: [{ required: true, type: 'error' }], - consignee: [{ required: true, type: 'error' }], - mobileNum: [{ required: true, type: 'error' }], - deliveryAddress: [{ required: true, type: 'error' }], - fullAddress: [{ required: true, type: 'error' }], + name: [{ required: true, message: '请选择合同名称', type: 'error' }], + type: [{ required: true, message: '请选择发票类型', type: 'error' }], + title: [{ required: true, message: '请输入发票抬头', type: 'error' }], + taxNum: [{ required: true, message: '请输入纳税人识别号', type: 'error' }], + consignee: [{ required: true, message: '请输入收货人', type: 'error' }], + mobileNum: [{ required: true, message: '请输入手机号码', type: 'error' }], + deliveryAddress: [{ required: true, message: '请选择收货地址', type: 'error' }], + fullAddress: [{ required: true, message: '请输入详细地址', type: 'error' }], }; export const NAME_OPTIONS = [ - { label: 'A', value: '1' }, - { label: 'B', value: '2' }, - { label: 'C', value: '3' }, + { label: '合同A', value: '1' }, + { label: '合同B', value: '2' }, + { label: '合同C', value: '3' }, ]; export const TYPE_OPTIONS = [ - { label: 'Type A', value: '1' }, - { label: 'Type B', value: '2' }, - { label: 'Type C', value: '3' }, + { label: '类型A', value: '1' }, + { label: '类型B', value: '2' }, + { label: '类型C', value: '3' }, ]; export const ADDRESS_OPTIONS = [ diff --git a/src/pages/form/step/index.vue b/src/pages/form/step/index.vue index 8309737..e2db393 100644 --- a/src/pages/form/step/index.vue +++ b/src/pages/form/step/index.vue @@ -4,22 +4,22 @@ - - - - + + + +
- +
@@ -31,23 +31,23 @@ label-align="right" @submit="(result: SubmitContext) => onSubmit(result, 1)" > - + {{ item.label }} - + {{ item.label }} - ¥ {{ amount }} + {{ amount }} 元 - {{ $t('pages.formStep.step1.submit') }} + 提交申请 @@ -61,58 +61,30 @@ @reset="onReset(0)" @submit="(result: SubmitContext) => onSubmit(result, 2)" > - - + + - - + + - - + + - - + + - - + + - - + + - - + + - {{ $t('pages.formStep.preStep') }} - {{ $t('pages.formStep.nextStep') }} + 上一步 + 下一步 @@ -126,41 +98,43 @@ @reset="onReset(1)" @submit="(result: SubmitContext) => onSubmit(result, 6)" > - - + + - - + + - - + + {{ item.label }} - - + + - {{ $t('pages.formStep.preStep') }} - {{ $t('pages.formStep.nextStep') }} + 上一步 + 下一步
- - -

{{ $t('pages.formStep.step4.finishTitle') }}

-

{{ $t('pages.formStep.step4.finishTips') }}

-
- {{ $t('pages.formStep.step4.reapply') }} - - {{ $t('pages.formStep.step4.check') }} - -
-
+ +

完成开票申请

+

预计1~3个工作日会将电子发票发至邮箱,发票邮寄请耐心等待

+
+ 再次申请 + 查看进度 +