Handy_Cao 1 year ago
parent
commit
3cf213aae6

+ 77 - 1
public/locales/en-US.json

@@ -649,6 +649,59 @@
             "applyid": "ApplyId"
         }
     },
+    "inout": {
+        "title": "Transfer Positions",
+        "title1": "In",
+        "title2": "Out",
+        "in": {
+            "outusername": "OutUserName",
+            "qty": "TransferQty",
+            "transferprice": "TransferPrice",
+            "freezedays": "FreezeDays",
+            "goodscurprice": "GoodsCurPrice",
+            "incharge": "InCharge",
+            "verificationpwd": "Password Verification",
+            "sure": "Sure",
+            "tips1": "Please enter your login password",
+            "tips2": "I have read and agree",
+            "tips3": "《Position transfer agreement》",
+            "tips4": "Confirm success",
+            "tips5": "Password verification failed",
+            "tips6": "Please agree to the Position Transfer Agreement",
+            "tips7": "Please enter the password"
+        },
+        "out": {
+            "inusername": "InUserName",
+            "qty": "TransferQty",
+            "transferprice": "TransferPrice",
+            "freezedays": "FreezeDays",
+            "goodscurprice": "GoodsCurPrice",
+            "outcharge": "OutCharge"
+        },
+        "agreement": {
+            "title": "Transfer Agreement"
+        },
+        "add": {
+            "title": "Add",
+            "subtitle": "ChoiceUserName",
+            "inusername": "InUserName",
+            "choice": "Please choice",
+            "goodsid": "TransferGoods",
+            "enableqty": "EnableQty",
+            "orderqty": "TransferQty",
+            "orderprice": "TransferPrice",
+            "freezedays": "FreezeDays",
+            "tips1": "I have read and agree",
+            "tips2": "《Position transfer agreement》",
+            "tips3": "'Please enter customer number or mobile phone number'",
+            "tips4": "Please select goods to transfer",
+            "tips5": "Please enter the transfer price",
+            "tips6": "Please enter the transfer quantity",
+            "tips7": "Please enter the number of freezing days",
+            "tips8": "The submission was successful, please check the result later",
+            "tips9": "Please agree to the Position Transfer Agreement"
+        }
+    },
     "transfer": {
         "title": "Transfer Positions",
         "in": {
@@ -723,7 +776,30 @@
         "selluserinfo": "SellUserInfo",
         "modifyinfo": "ModifyInfo",
         "buyhisperformanceinfo": "Buy History Performance",
-        "sellhisperformanceinfo": "Sell History Performance"
+        "sellhisperformanceinfo": "Sell History Performance",
+        "receipttype": "InvoiceType:",
+        "username": "InvoicePayable:",
+        "taxpayerid": "TaxNumber:",
+        "receiptbank": "BankName:",
+        "receiptaccount": "BankAccount:",
+        "address1": "BbusinessAddress:",
+        "contactinfo": "BbusinessMobile:",
+        "email": "Email:",
+        "address2": "Address:",
+        "phonenum": "PhoneNum:",
+        "receivername": "ReceiverName:",
+        "remain": "remain",
+        "tips1": "Do you want to apply for information modification?",
+        "tips2": "The application for information modification is successful",
+        "tips3": "Please enter the shipping address information",
+        "tips4": "Please enter the invoice information",
+        "tips5": "Please enter your contact information",
+        "tips6": "Do you want to perform the steps manually?",
+        "tips7": "Please enter the extension days",
+        "tips8": "Please enter remark information",
+        "tips9": "Are you sure you want to extend your application?",
+        "tips10": "Application for extension is successful",
+        "tips11": "Immediately execute the application successfully"
     },
     "settlement":{
         "title": "Settlement Order"

+ 77 - 1
public/locales/zh-CN.json

@@ -650,6 +650,59 @@
             "applyid": "提货单号"
         }
     },
+    "inout": {
+        "title": "持仓过户",
+        "title1": "我的转入",
+        "title2": "我的转出",
+        "in": {
+            "outusername": "转出方",
+            "qty": "转让量",
+            "transferprice": "转让价格",
+            "freezedays": "冻结天数",
+            "goodscurprice": "商品价格",
+            "incharge": "手续费",
+            "verificationpwd": "密码验证",
+            "sure": "确定",
+            "tips1": "请输入登录密码",
+            "tips2": "我已阅读并同意",
+            "tips3": "《持仓转让协议》",
+            "tips4": "确认成功",
+            "tips5": "密码验证失败",
+            "tips6": "请同意持仓转让协议",
+            "tips7": "请输入密码"
+        },
+        "out": {
+            "inusername": "转入方",
+            "qty": "转让量",
+            "transferprice": "转让价格",
+            "freezedays": "冻结天数",
+            "goodscurprice": "商品价格",
+            "outcharge": "手续费"
+        },
+        "agreement": {
+            "title": "转让协议"
+        },
+        "add": {
+            "title": "新增",
+            "subtitle": "选择客户",
+            "inusername": "转入客户",
+            "choice": "请选择",
+            "goodsid": "转让商品",
+            "enableqty": "可用量",
+            "orderqty": "转让量",
+            "orderprice": "转让价格",
+            "freezedays": "冻结天数",
+            "tips1": "我已阅读并同意",
+            "tips2": "《持仓转让协议》",
+            "tips3": "'请输入客户编号或手机号'",
+            "tips4": "请选择转让商品",
+            "tips5": "请输入转让价格",
+            "tips6": "请输入转让量",
+            "tips7": "请输入冻结天数",
+            "tips8": "提交成功,请稍后查询结果",
+            "tips9": "请同意持仓转让协议"
+        }
+    },
     "transfer": {
         "title": "持仓过户",
         "in": {
@@ -724,7 +777,30 @@
         "selluserinfo": "卖方信息",
         "modifyinfo": "修改信息",
         "buyhisperformanceinfo": "买历史履约信息",
-        "sellhisperformanceinfo": "卖历史履约信息"
+        "sellhisperformanceinfo": "卖历史履约信息",
+        "receipttype": "发票类型:",
+        "username": "发票抬头:",
+        "taxpayerid": "税号:",
+        "receiptbank": "开户银行:",
+        "receiptaccount": "银行账号:",
+        "address1": "企业地址:",
+        "contactinfo": "企业电话:",
+        "email": "邮箱:",
+        "address2": "地址:",
+        "phonenum": "电话:",
+        "receivername": "姓名:",
+        "remain": "剩余",
+        "tips1": "确认要信息修改申请吗?",
+        "tips2": "信息修改申请成功",
+        "tips3": "请输入收货地址信息",
+        "tips4": "请输入发票信息",
+        "tips5": "请输入联络信息",
+        "tips6": "是否要手动执行步骤?",
+        "tips7": "请输入延期天数",
+        "tips8": "请输入备注信息",
+        "tips9": "确定要延期申请吗?",
+        "tips10": "延期申请成功",
+        "tips11": "立即执行申请成功"
     },
     "settlement":{
         "title": "结算单"

+ 20 - 20
src/packages/mobile/views/order/inout/components/add/index.vue

@@ -2,41 +2,41 @@
     <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal" :refresh="refresh">
         <app-view class="g-form">
             <template #header>
-                <app-navbar title="新增" @back="closed" />
+                <app-navbar :title="$t('inout.add.title')" @back="closed" />
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field v-model="formData.InUserID" :rules="formRules.InUserID" name="InUserID" label="转入客户"
+                    <Field v-model="formData.InUserID" :rules="formRules.InUserID" name="InUserID" :label="$t('inout.add.inusername')"
                         right-icon="arrow" clickable @click="showSearch = true">
                         <template #input>
-                            <input placeholder="请选择" :value="selectedUser?.customername" readonly />
+                            <input :placeholder="$t('inout.add.choice')" :value="selectedUser?.customername" readonly />
                         </template>
                     </Field>
-                    <Field name="GoodsID" label="转让商品" :rules="formRules.GoodsID" is-link>
+                    <Field name="GoodsID" :label="$t('inout.add.goodsid')" :rules="formRules.GoodsID" is-link>
                         <template #input>
                             <app-select v-model="formData.GoodsID" :options="goodsList"
                                 :optionProps="{ value: 'goodsid' }" @confirm="onGoodsChange" />
                         </template>
                     </Field>
-                    <Field label="可用量">
+                    <Field :label="$t('inout.add.enableqty')">
                         <template #input>
                             <span>{{ enableqty }}</span>
                         </template>
                     </Field>
-                    <Field name="Qty" :rules="formRules.Qty" label="转让量">
+                    <Field name="Qty" :rules="formRules.Qty" :label="$t('inout.add.orderqty')">
                         <template #input>
                             <Stepper v-model="formData.Qty" theme="round" :min="0" :max="enableqty" :default-value="0"
                                 :auto-fixed="false" button-size="22" />
                         </template>
                     </Field>
-                    <Field name="TransferPrice" :rules="formRules.TransferPrice" label="转让价格">
+                    <Field name="TransferPrice" :rules="formRules.TransferPrice" :label="$t('inout.add.orderprice')">
                         <template #input>
                             <Stepper v-model="formData.TransferPrice" theme="round" :min="0"
                                 :decimal-length="selectedGoods?.decimalplace" :default-value="0" :auto-fixed="false"
                                 button-size="22" />
                         </template>
                     </Field>
-                    <Field name="FreezeDays" label="冻结天数">
+                    <Field name="FreezeDays" :label="$t('inout.add.freezedays')">
                         <template #input>
                             <span>{{ formData.FreezeDays }}</span>
                         </template>
@@ -46,8 +46,8 @@
                     <Cell>
                         <template #title>
                             <div style="display: flex;align-items: center;">
-                                <Checkbox shape="square" icon-size="16px" v-model="isAgree">我已阅读并同意</Checkbox>
-                                <span @click="showAgreement = true" style="color:#E92020">《持仓转让协议》</span>
+                                <Checkbox shape="square" icon-size="16px" v-model="isAgree">{{ $t('inout.add.tips1') }}</Checkbox>
+                                <span @click="showAgreement = true" style="color:#E92020">{{ $t('inout.add.tips2') }}</span>
                             </div>
                         </template>
                     </Cell>
@@ -55,7 +55,7 @@
             </Form>
             <template #footer>
                 <div class="g-form__footer inset">
-                    <Button type="danger" @click="formRef?.submit" round block>提交</Button>
+                    <Button type="danger" @click="formRef?.submit" round block>{{ $t('operation.submit')}}</Button>
                 </div>
             </template>
         </app-view>
@@ -70,7 +70,7 @@ import { CellGroup, Cell, Button, Checkbox, Field, Form, Stepper, FieldRule, sho
 import { fullloading } from '@/utils/vant'
 import { BuyOrSell } from '@/constants/order'
 import { holderTransferApply } from '@/services/api/trade'
-import { useLoginStore, usePositionStore } from '@/stores'
+import { useLoginStore, usePositionStore, i18n } from '@/stores'
 import AppModal from '@/components/base/modal/index.vue'
 import AppSelect from '@mobile/components/base/select/index.vue'
 
@@ -78,7 +78,7 @@ import AppSelect from '@mobile/components/base/select/index.vue'
 const Search = defineAsyncComponent(() => import('./search/index.vue'))
 // 持仓转让协议
 const Agreement = defineAsyncComponent(() => import('../agreement/index.vue'))
-
+const { global: { t } } = i18n
 const showModal = shallowRef(true)
 const showSearch = shallowRef(false) // 弹出客户搜索界面
 const showAgreement = shallowRef(false) // 弹出转让协议界面
@@ -114,23 +114,23 @@ const formData = reactive<Partial<Proto.HolderTransferDetail>>({
 // 表单验证规则
 const formRules: { [key: string]: FieldRule[] } = {
     InUserID: [{
-        message: '请输入客户编号或手机号',
+        message: t('inout.add.tips3'),
         validator: () => !!formData.InUserID
     }],
     GoodsID: [{
-        message: '请选择转让商品',
+        message: t('inout.add.tips4'),
         validator: () => !!selectedGoods.value
     }],
     TransferPrice: [{
-        message: '请输入转让价格',
+        message: t('inout.add.tips5'),
         validator: () => formData.TransferPrice ? !!Number(formData.TransferPrice) : false
     }],
     Qty: [{
-        message: '请输入转让量',
+        message: t('inout.add.tips6'),
         validator: () => !!formData.Qty
     }],
     FreezeDays: [{
-        message: '请输入冻结天数',
+        message: t('inout.add.tips7'),
         required: true
     }]
 }
@@ -161,7 +161,7 @@ const formSubmit = () => {
                     HolderTransferDetails: [formData]
                 }
             }).then(() => {
-                hideLoading('提交成功,请稍后查询结果', 'success')
+                hideLoading(t('inout.add.tips8'), 'success')
                 closed(true)
             }).catch((err) => {
                 hideLoading(err, 'fail')
@@ -169,7 +169,7 @@ const formSubmit = () => {
         })
     } else {
         showToast({
-            message: '请同意持仓转让协议',
+            message: t('inout.add.tips9'),
             position: 'top',
         })
     }

+ 4 - 4
src/packages/mobile/views/order/inout/components/add/search/index.vue

@@ -2,16 +2,16 @@
     <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal">
         <app-view class="g-form">
             <template #header>
-                <app-navbar title="选择客户">
+                <app-navbar :title="$t('inout.add.subtitle')">
                     <template #footer>
                         <Form action="/">
-                            <Search placeholder="请输入客户编号或手机号" v-model="keyword" @search="onSearch" />
+                            <Search :placeholder="$t('inout.add.tips3')" v-model="keyword" @search="onSearch" />
                         </Form>
                     </template>
                 </app-navbar>
             </template>
             <RadioGroup v-model="checked" style="padding-bottom: 50px;" v-if="dataList.length">
-                <CellGroup title="选择客户">
+                <CellGroup title="$t('inout.add.subtitle')">
                     <template v-for="(item, index) in dataList" :key="index">
                         <Cell :title="item.customername" clickable @click="onChange(item)">
                             <template #icon>
@@ -21,7 +21,7 @@
                     </template>
                 </CellGroup>
             </RadioGroup>
-            <Empty description="暂无数据" v-else />
+            <Empty description="$t('common.nodatas')" v-else />
         </app-view>
     </app-modal>
 </template>

+ 1 - 1
src/packages/mobile/views/order/inout/components/agreement/index.vue

@@ -2,7 +2,7 @@
     <app-modal direction="right-top" height="100%" width="100%" v-model:show="showModal">
         <app-view>
             <template #header>
-                <app-navbar title="转让协议" />
+                <app-navbar :title="$t('inout.agreement.title')" />
             </template>
             <component :is="asyncComponent" :url="'./html/cczrxy.htm'" />
         </app-view>

+ 17 - 16
src/packages/mobile/views/order/inout/components/in/list/index.vue

@@ -16,46 +16,46 @@
                 <div class="g-order-list__content">
                     <ul>
                         <li>
-                            <span>转出方</span>
+                            <span>{{ $t('inout.in.outusername') }}</span>
                             <span>{{ item.outusername }}</span>
                         </li>
                         <li>
-                            <span>转让量</span>
+                            <span>{{ $t('inout.in.qty') }}</span>
                             <span>{{ item.qty }}</span>
                         </li>
                         <li>
-                            <span>转让价格</span>
+                            <span>{{ $t('inout.in.transferprice') }}</span>
                             <span>{{ item.transferprice }}</span>
                         </li>
                         <li>
-                            <span>冻结天数</span>
+                            <span>{{ $t('inout.in.freezedays') }}</span>
                             <span>{{ item.freezedays }}</span>
                         </li>
                         <li>
-                            <span>商品价格</span>
+                            <span>{{ $t('inout.in.goodscurprice') }}</span>
                             <span>{{ item.goodscurprice }}</span>
                         </li>
                         <li>
-                            <span>手续费</span>
+                            <span>{{ $t('inout.in.incharge') }}</span>
                             <span>{{ item.incharge }}</span>
                         </li>
                     </ul>
                 </div>
                 <div class="g-order-list__btnbar">
                     <Button size="small" v-if="item.transferapplystatus === 2" @click="showComponent(item)"
-                        round>确认</Button>
+                        round>{{ $t('operation.confirm') }}</Button>
                 </div>
             </div>
         </div>
-        <Dialog v-model:show="showDialog" title="密码验证" confirm-button-text="确定" :close-on-popstate="false"
+        <Dialog v-model:show="showDialog" :title="$t('inout.in.verificationpwd')" :confirm-button-text="$t('inout.in.sure')" :close-on-popstate="false"
             show-cancel-button :before-close="() => false" @confirm="onSubmit" @cancel="onCancel">
             <Form ref="formRef" class="inout-form">
                 <div class="inout-form__field">
-                    <Field name="password" placeholder="请输入登录密码" type="password" v-model="formData.password" />
+                    <Field name="password" :placeholder="$t('inout.in.tips1')" type="password" v-model="formData.password" />
                 </div>
                 <div class="inout-form__checkbox">
-                    <Checkbox name="agree" shape="square" icon-size="16px" v-model="formData.agree">我已阅读并同意</Checkbox>
-                    <span @click="showAgreement = true" style="color:#E92020">《持仓转让协议》</span>
+                    <Checkbox name="agree" shape="square" icon-size="16px" v-model="formData.agree">{{ $t('inout.in.tips2') }}</Checkbox>
+                    <span @click="showAgreement = true" style="color:#E92020">{{ $t('inout.in.tips3') }}</span>
                 </div>
             </Form>
         </Dialog>
@@ -73,12 +73,13 @@ import { getTransferApplyStatusName } from '@/constants/order'
 import { handleRequestBigNumber } from '@/filters'
 import { holderTransferConfirm } from '@/services/api/trade'
 import { fullloading } from '@/utils/vant'
-import { useLoginStore } from '@/stores'
+import { useLoginStore, i18n } from '@/stores'
 import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
 
 // 持仓转让协议
 const Agreement = defineAsyncComponent(() => import('../../agreement/index.vue'))
 
+const { global: { t } } = i18n
 const loginStore = useLoginStore()
 const formRef = shallowRef<FormInstance>()
 const dataList = shallowRef<Model.InTradePositionTransferRsp[]>([])
@@ -133,7 +134,7 @@ const onSubmit = () => {
                         ApplyID: handleRequestBigNumber(applyid)
                     }
                 }).then(() => {
-                    hideLoading('确认成功', 'success')
+                    hideLoading(t('inout.in.tips4'), 'success')
                     pullRefreshRef.value?.refresh()
                 }).catch((err) => {
                     hideLoading(err, 'fail')
@@ -142,19 +143,19 @@ const onSubmit = () => {
         } else {
             fullloading((hideLoading) => {
                 setTimeout(() => {
-                    hideLoading('密码验证失败', 'fail')
+                    hideLoading(t('inout.in.tips5'), 'fail')
                 }, 1000)
             })
         }
         onCancel()
     } else if (formData.password) {
         showToast({
-            message: '请同意持仓转让协议',
+            message: t('inout.in.tips6'),
             position: 'top',
         })
     } else {
         showToast({
-            message: '请输入密码',
+            message: t('inout.in.tips7'),
             position: 'top',
         })
     }

+ 6 - 6
src/packages/mobile/views/order/inout/components/out/list/index.vue

@@ -16,27 +16,27 @@
                 <div class="g-order-list__content">
                     <ul>
                         <li>
-                            <span>转入方</span>
+                            <span>{{ $t('inout.out.inusername') }}</span>
                             <span>{{ item.inusername }}</span>
                         </li>
                         <li>
-                            <span>转让量</span>
+                            <span>{{ $t('inout.out.qty') }}</span>
                             <span>{{ item.qty }}</span>
                         </li>
                         <li>
-                            <span>转让价格</span>
+                            <span>{{ $t('inout.out.transferprice') }}</span>
                             <span>{{ item.transferprice }}</span>
                         </li>
                         <li>
-                            <span>冻结天数</span>
+                            <span>{{ $t('inout.out.freezedays') }}</span>
                             <span>{{ item.freezedays }}</span>
                         </li>
                         <li>
-                            <span>商品价格</span>
+                            <span>{{ $t('inout.out.goodscurprice') }}</span>
                             <span>{{ item.goodscurprice }}</span>
                         </li>
                         <li>
-                            <span>手续费</span>
+                            <span>{{ $t('inout.out.outcharge') }}</span>
                             <span>{{ item.outcharge }}</span>
                         </li>
                     </ul>

+ 3 - 3
src/packages/mobile/views/order/inout/index.vue

@@ -1,17 +1,17 @@
 <template>
     <app-view>
         <template #header>
-            <app-navbar title="持仓过户">
+            <app-navbar :title="$t('inout.title')">
                 <template #right>
                     <Icon name="add" size="20px" @click="openComponent('add')" />
                 </template>
             </app-navbar>
         </template>
         <Tabs class="van-tabs--list" v-model:active="active">
-            <Tab title="我的转入">
+            <Tab :title="$t('inout.title1')">
                 <component :is="componentMap.get('in')" />
             </Tab>
-            <Tab title="我的转出">
+            <Tab :title="$t('inout.title2')">
                 <component ref="outRef" :is="componentMap.get('out')" />
             </Tab>
         </Tabs>

+ 10 - 9
src/packages/mobile/views/order/performance/components/detail/Index.vue

@@ -67,15 +67,16 @@ import { formatDate, formatDecimal, handleNoneValue, handleRequestBigNumber } fr
 import { usePerformanceDelayApply, usePerformanceManualConfirm } from '@/business/performance'
 import { queryWrPerformancePlanStep } from '@/services/api/performance'
 import { getPerformanceStepStatusName, getPerformanceTypeName } from '@/constants/order'
-
-import AppModal from '@/components/base/modal/index.vue'
 import { useRequest } from '@/hooks/request'
+import { i18n } from '@/stores'
+import AppModal from '@/components/base/modal/index.vue'
 
 const showModal = shallowRef(true)
 // 是否刷新父组件数据
 const refresh = shallowRef(false)
 const { formData, formSubmit } = usePerformanceDelayApply()
 const formRef = shallowRef<FormInstance>()
+const { global: { t } } = i18n
 
 const props = defineProps({
     selectedRow: {
@@ -88,7 +89,7 @@ const { confirmFormData, confirmSubmit } = usePerformanceManualConfirm(props.sel
 const show = shallowRef(false)
 const showDays = shallowRef(false)
 const remark = shallowRef('')
-const dialogTitle = shallowRef('是否要手动执行步骤?')
+const dialogTitle = shallowRef(t('performance.tips6'))
 
 const styles = (status: number) => {
     let backgroundColor = '#2794ff'
@@ -108,7 +109,7 @@ const styles = (status: number) => {
 const remaindays = (item: Model.WrPerformancePlanStep) => {
     let days = ''
     if ([2, 4].includes(item.stepstatus)) {
-        days = `剩余${item.remaindays}`
+        days = `${t('performance.remain')+item.remaindays+t('performance.days')}`
     }
     else if ([3, 6].includes(item.stepstatus)) {
         days = `${item.stepdays}`
@@ -122,11 +123,11 @@ const remaindays = (item: Model.WrPerformancePlanStep) => {
 const formRules: { [key: string]: FieldRule[] } = {
     delaydays: [{
         required: true,
-        message: '请输入延期天数'
+        message: t('performance.tips7')
     }],
     remark: [{
         required: true,
-        message: '请输入备注信息'
+        message: t('performance.tips8')
     }],
 }
 
@@ -137,7 +138,7 @@ const { dataList } = useRequest(queryWrPerformancePlanStep, {
 })
 
 const showConfirm = (showDelay: boolean) => {
-    dialogTitle.value = showDelay ? '确定要延期申请吗?' : '是否要手动执行步骤?'
+    dialogTitle.value = showDelay ? t('performance.tips9') : t('performance.tips6')
     showDays.value = showDelay
     show.value = true
 }
@@ -151,7 +152,7 @@ const toConfirm = () => {
         /// loding....
         fullloading((hideLoading) => {
             formSubmit().then(() => {
-                hideLoading('延期申请成功')
+                hideLoading(t('performance.tips10'))
                 closed(true)
             }).catch((err) => {
                 hideLoading(err, 'fail')
@@ -164,7 +165,7 @@ const toConfirm = () => {
         /// loding....
         fullloading((hideLoading) => {
             confirmSubmit().then(() => {
-                hideLoading('立即执行申请成功')
+                hideLoading(t('performance.tips11'))
                 closed(true)
             }).catch((err) => {
                 hideLoading(err, 'fail')

+ 20 - 20
src/packages/mobile/views/order/performance/components/modify/Index.vue

@@ -34,12 +34,12 @@ import { CellGroup, Button, Field, Form, FormInstance, FieldRule } from 'vant'
 import { dialog, fullloading } from '@/utils/vant'
 import { handleRequestBigNumber } from '@/filters'
 import { usePerformanceModifyContact } from '@/business/performance'
-
+import { getReceiptTypeName } from '@/constants/receipt'
+import { BuyOrSell } from '@/constants/order'
+import { i18n } from '@/stores'
 import AppModal from '@/components/base/modal/index.vue'
 import AppContact from '@mobile/components/modules/contact/index.vue'
 import AppReceipt from '@mobile/components/modules/receipt/index.vue'
-import { getReceiptTypeName } from '@/constants/receipt'
-import { BuyOrSell } from '@/constants/order'
 
 const showModal = shallowRef(true)
 // 是否刷新父组件数据
@@ -56,7 +56,7 @@ const { formData, formSubmit } = usePerformanceModifyContact()
 const formRef = shallowRef<FormInstance>()
 const showContact = shallowRef(false) // 显示联系人选择列表
 const showReceipt = shallowRef(false) // 显示发票选择列表
-
+const { global: { t } } = i18n
 const Contract = shallowRef('') // 联系人嘻嘻
 const Receive = shallowRef('') // 收货地址信息
 const Receipt = shallowRef('') // 发票信息
@@ -65,25 +65,25 @@ const Receipt = shallowRef('') // 发票信息
 const formRules: { [key in keyof Proto.PerformanceModifyContactReq | 'Contract' | 'Receive' | 'Receipt']?: FieldRule[] } = {
     Receive: [{
         required: true,
-        message: '请输入收货地址信息',
+        message: t('performance.tips3'),
     }],
     Receipt: [{
         required: true,
-        message: '请输入发票信息',
+        message: t('performance.tips4'),
     }],
     Contract: [{
         required: true,
-        message: '请输入联络信息',
+        message: t('performance.tips5'),
     }],
 }
 
 // 选择联系信息
 const contactChange = (item: Model.UserReceiveInfoRsp) => {
     Receive.value = ''
-    Receive.value += '姓名:' + item.receivername + '\n'
-    Receive.value += '电话:' + item.phonenum + '\n'
+    Receive.value += t('performance.receivername') + item.receivername + '\n'
+    Receive.value += t('performance.phonenum') + item.phonenum + '\n'
     const { provincename, cityname, districtname, address } = item
-    Receive.value += '地址:' + provincename + cityname + districtname + address
+    Receive.value += t('performance.address2') + provincename + cityname + districtname + address
 }
 
 // 选择发票信息
@@ -94,35 +94,35 @@ const receiptChange = (item: Model.WrUserReceiptInfoRsp) => {
         if (value !== '') {
             switch (key) {
                 case 'receipttype': {
-                    Receipt.value += '发票类型:' + getReceiptTypeName(Number(value)) + '\n'
+                    Receipt.value += t('performance.receipttype') + getReceiptTypeName(Number(value)) + '\n'
                     break
                 }
                 case 'username': {
-                    Receipt.value += '发票抬头:' + value + '\n'
+                    Receipt.value += t('performance.username') + value + '\n'
                     break
                 }
                 case 'taxpayerid': {
-                    Receipt.value += '税号:' + value + '\n'
+                    Receipt.value += t('performance.taxpayerid') + value + '\n'
                     break
                 }
                 case 'receiptbank': {
-                    Receipt.value += '开户银行:' + value + '\n'
+                    Receipt.value += t('performance.receiptbank') + value + '\n'
                     break
                 }
                 case 'receiptaccount': {
-                    Receipt.value += '银行账号:' + value + '\n'
+                    Receipt.value += t('performance.receiptaccount') + value + '\n'
                     break
                 }
                 case 'address': {
-                    Receipt.value += '企业地址:' + value + '\n'
+                    Receipt.value += t('performance.address') + value + '\n'
                     break
                 }
                 case 'contactinfo': {
-                    Receipt.value += '企业电话:' + value + '\n'
+                    Receipt.value += t('performance.contactinfo') + value + '\n'
                     break
                 }
                 case 'email': {
-                    Receipt.value += '邮箱:' + value + '\n'
+                    Receipt.value += t('performance.email') + value + '\n'
                     break
                 }
             }
@@ -132,7 +132,7 @@ const receiptChange = (item: Model.WrUserReceiptInfoRsp) => {
 
 const contracted = () => {
     dialog({
-        message: '确认要信息修改申请吗?',
+        message: t('performance.tips1'),
         showCancelButton: true,
     }).then(() => {
         /// PerformancePlanID
@@ -147,7 +147,7 @@ const contracted = () => {
         /// loding....
         fullloading((hideLoading) => {
             formSubmit().then(() => {
-                hideLoading('信息修改申请成功')
+                hideLoading(t('performance.tips2'))
                 closed(true)
             }).catch((err) => {
                 hideLoading(err, 'fail')