Handy_Cao 1 vuosi sitten
vanhempi
commit
37e49bdba2

+ 24 - 3
public/locales/en-US.json

@@ -1,9 +1,11 @@
 {
     "app": {
-        "name": "Muchinfo"
+        "name": "Muchinfo",
+        "title": "Digital Trading Platform\r\nModern Integrated Services"
     },
     "common": {
         "nodatas": "No Datas",
+        "baseinfo": "Base Info",
         "more": "More",
         "details": "Details",
         "placeholder": "Please enter",
@@ -939,16 +941,21 @@
         "title2": "History Buy Performance",
         "title3": "History Sell Performance",
         "subtitle": "Execut Information",
+        "stepslist": "Steps List",
         "buy": "Buy",
         "sell": "Sell",
         "deliverygoodsname": "DeliveryGoodsName",
         "performancetype": "Type",
         "wrstandardname": "WrstandardName",
+        "wrstandardname1": "WrstandardName",
         "warehousename": "Warehouse",
+        "accountname": "AccountName",
         "qty": "Qty",
         "amount": "Amount",
         "buyusername": "BuyUserName",
         "sellusername": "SellUserName",
+        "sellerInfo": "SellerInfo",
+        "buyerInfo": "BuyerInfo",
         "paymenttype": "PaymentType",
         "buypaidamount": "BuyPaidAmount",
         "sellreceivedamount": "SellReceivedAmount",
@@ -974,7 +981,7 @@
         "breach": "Breach",
         "modify": "Modify",
         "detail": "Detail",
-        "breachapply": "BreachApply",
+        "breachapply": "Breach Apply",
         "remark": "Remark",
         "pleaseinputremark": "Please input remark",
         "applybreach": "ApplyBreach",
@@ -1019,7 +1026,21 @@
         "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"
+        "tips11": "Immediately execute the application successfully",
+        "steps": {
+            "steptypename": "StepTypeName",
+            "stepdays": "StepDays",
+            "remaindays": "RemainDays",
+            "stepvalue": "StepValue(%)",
+            "stepamount": "StepAmount",
+            "realamount": "RealAmount",
+            "isauto": "IsAuto",
+            "steplanchtype": "StepLanchType",
+            "starttime": "StartTime",
+            "endtime": "EndTime",
+            "stepstatus": "SetpStatus",
+            "remark": "Remark"
+        }
     },
     "settlement":{
         "title": "Settlement Order"

+ 27 - 6
public/locales/zh-CN.json

@@ -1,9 +1,11 @@
 {
     "app": {
-        "name": "多元世纪"
+        "name": "多元世纪",
+        "title": "数字化交易平台\r\n现代化综合服务"
     },
     "common": {
         "nodatas": "暂无数据",
+        "baseinfo": "基本信息",
         "more": "更多",
         "details": "明细",
         "placeholder": "请输入",
@@ -943,12 +945,17 @@
         "title2": "买历史履约信息",
         "title3": "卖历史履约信息",
         "subtitle": "执行信息",
+        "stepslist": "步骤列表",
         "buy": "买履约",
         "sell": "卖履约",
         "deliverygoodsname": "品种",
         "performancetype": "类型",
         "wrstandardname": "商品",
+        "wrstandardname1": "履约商品",
         "warehousename": "仓库",
+        "accountname": "对手方",
+        "sellerInfo": "卖方联络信息",
+        "buyerInfo": "买方联络信息",
         "qty": "数量",
         "amount": "履约金额",
         "buyusername": "买方",
@@ -956,10 +963,10 @@
         "paymenttype": "付款方式",
         "buypaidamount": "买方已付",
         "sellreceivedamount": "卖方已收",
-        "sellerfreezeamount": "履约冻结",
-        "sellerfreezeamountremain": "履约冻结剩余",
-        "buyerfreezeamount": "履约冻结",
-        "buyerfreezeamountremain": "履约冻结剩余",
+        "sellerfreezeamount": "卖方冻结",
+        "sellerfreezeamountremain": "卖方冻结剩余",
+        "buyerfreezeamount": "买方冻结",
+        "buyerfreezeamountremain": "买方冻结剩余",
         "performancestatus": "履约状态",
         "overshortamount": "溢短金额",
         "curstepname": "当前步骤",
@@ -1023,7 +1030,21 @@
         "tips8": "请输入备注信息",
         "tips9": "确定要延期申请吗?",
         "tips10": "延期申请成功",
-        "tips11": "立即执行申请成功"
+        "tips11": "立即执行申请成功",
+        "steps": {
+            "steptypename": "名称",
+            "stepdays": "天数",
+            "remaindays": "剩余天数",
+            "stepvalue": "步骤值(%)",
+            "stepamount": "金额",
+            "realamount": "完成金额",
+            "isauto": "是否自动",
+            "steplanchtype": "启动类型",
+            "starttime": "开始日期",
+            "endtime": "结束日期",
+            "stepstatus": "步骤状态",
+            "remark": "步骤备注"
+        }
     },
     "settlement":{
         "title": "结算单"

+ 8 - 8
src/packages/pc/views/footer/performance/components/contracted/index.vue

@@ -1,18 +1,18 @@
 <!-- 订单管理-我的履约-违约申请 -->
 <template>
-    <app-drawer title="违约申请" :width="480" v-model:show="show" :loading="loading" :refresh="refresh">
-        <el-form class="el-form--vertical" ref="formRef" label-width="80px" :model="formData" :rules="formRules">
-            <el-form-item label="关联单号">
+    <app-drawer :title="t('performance.breachapply')" :width="520" v-model:show="show" :loading="loading" :refresh="refresh">
+        <el-form class="el-form--vertical" ref="formRef" label-width="120px" :model="formData" :rules="formRules">
+            <el-form-item :label="t('performance.relatedorderid')">
                 <span>{{ handleNoneValue(selectedRow.relatedorderid) }}</span>
             </el-form-item>
-            <el-form-item label="当前步骤">
+            <el-form-item :label="t('performance.curstepname')">
                 <span>{{ handleNumberValue(selectedRow.curstepname) }}</span>
             </el-form-item>
-            <el-form-item label="备注" prop="ApplyRemark">
+            <el-form-item :label="t('performance.remark')" prop="ApplyRemark">
                 <el-input type="textarea" :rows="4" v-model="formData.ApplyRemark" />
             </el-form-item>
-            <el-form-item label="附件" prop="Attachment">
-                <app-upload :file-types="['image']" type-message="请选择正确的图片类型" @change="onUploadChange" />
+            <el-form-item :label="t('performance.attachment')" prop="Attachment">
+                <app-upload :file-types="['image']" :type-message="t('user.avater.tips')" @change="onUploadChange" />
             </el-form-item>
         </el-form>
         <template #footer>
@@ -51,7 +51,7 @@ const formRules: FormRules = {
             if (value) {
                 callback()
             } else {
-                callback(new Error('请上传附件'))
+                callback(new Error(t('performance.pleaseuploadtheattachment')))
             }
         }
     }],

+ 29 - 29
src/packages/pc/views/footer/performance/components/details/index.vue

@@ -1,7 +1,7 @@
 <!-- 履约信息-详情 -->
 <template>
-    <app-drawer class="g-details" width="80%" title="详情" v-model:show="show" :loading="loading" :refresh="refresh">
-        <app-table-details title="基本信息" :label-width="180" :data="selectedRow" :cell-props="detailProps" :column="2">
+    <app-drawer class="g-details" width="80%" :title="t('performance.detail')" v-model:show="show" :loading="loading" :refresh="refresh">
+        <app-table-details :title="t('common.baseinfo')" :label-width="220" :data="selectedRow" :cell-props="detailProps" :column="2">
             <!-- 付款方式 -->
             <template #paymenttype="{ value }">
                 {{ value === 1 ? '冻结' : '扣款' }}
@@ -53,14 +53,14 @@
         </app-table-details>
         <app-table :data="dataList" :columns="tableColumns" :show-toolbar="false" :row-style="rowStyle" border>
             <template #headerLeft>
-                <h3 class="g-details__title">步骤列表</h3>
+                <h3 class="g-details__title">{{ t('performance.stepslist') }}</h3>
             </template>
             <!-- 步骤值 -->
             <template #stepvalue="{ value }">
                 {{ (value * 100).toFixed(1) }}
             </template>
             <template #isauto="{ value }">
-                {{ value ? '是' : '否' }}
+                {{ value ? t('common.yes') : t('common.no')  }}
             </template>
             <!-- 启动类型 -->
             <template #steplanchtype="{ value }">
@@ -113,36 +113,36 @@ const { loading, dataList } = useRequest(queryWrPerformancePlanStep, {
 })
 
 const detailProps = [
-    { prop: 'relatedorderid', label: '关联单号:' },
-    { prop: 'wrstandardname', label: '履约商品:' },
-    { prop: 'amount', label: '履约金额:' },
-    { prop: 'paymenttype', label: '付款方式:' },
-    { prop: 'accountname', label: '对手方:' },
-    { prop: 'buyerfreezeamount', label: '买方冻结:' },
+    { prop: 'relatedorderid', label: t('performance.relatedorderid')+':' },
+    { prop: 'wrstandardname', label: t('performance.wrstandardname1')+':' },
+    { prop: 'amount', label: t('performance.amount')+':' },
+    { prop: 'paymenttype', label: t('performance.paymenttype')+':' },
+    { prop: 'accountname', label: t('performance.accountname')+':' },
+    { prop: 'buyerfreezeamount', label: t('performance.buyerfreezeamount')+':' },
     // { prop: 'buytodayamount', label: '买方今日付款:' },
-    { prop: 'sellerfreezeamount', label: '卖方冻结:' },
+    { prop: 'sellerfreezeamount', label: t('performance.sellerfreezeamount')+':' },
     // { prop: 'selltodayamount', label: '卖方今日收款:' },
-    { prop: 'buyerfreezeamountremain', label: '买方冻结剩余:' },
-    { prop: 'buypaidamount', label: '已付金额:' },
-    { prop: 'sellerfreezeamountremain', label: '卖方冻结剩余:' },
-    { prop: 'sellreceivedamount', label: '已收金额:' },
-    { prop: 'sellerInfo', label: '卖方联络信息:' },
-    { prop: 'buyerInfo', label: '买方联络信息:' },
+    { prop: 'buyerfreezeamountremain', label: t('performance.buyerfreezeamountremain')+':' },
+    { prop: 'buypaidamount', label: t('performance.buypaidamount')+':' },
+    { prop: 'sellerfreezeamountremain', label: t('performance.sellerfreezeamountremain')+':' },
+    { prop: 'sellreceivedamount', label: t('performance.sellreceivedamount')+':' },
+    { prop: 'sellerInfo', label: t('performance.sellerInfo')+':' },
+    { prop: 'buyerInfo', label: t('performance.buyerInfo')+':' },
 ]
 
 const tableColumns = shallowRef<Model.TableColumn[]>([
-    { field: 'steptypename', label: '名称' },
-    { field: 'stepdays', label: '天数' },
-    { field: 'remaindays', label: '剩余天数' },
-    { field: 'stepvalue', label: '步骤值(%)' },
-    { field: 'stepamount', label: '金额' },
-    { field: 'realamount', label: '完成金额' },
-    { field: 'isauto', label: '是否自动' },
-    { field: 'steplanchtype', label: '启动类型' },
-    { field: 'starttime', label: '开始日期' },
-    { field: 'endtime', label: '结束日期' },
-    { field: 'stepstatus', label: '步骤状态' },
-    { field: 'remark', label: '步骤备注' },
+    { field: 'steptypename', label: t('performance.steps.steptypename') },
+    { field: 'stepdays', label: t('performance.steps.stepdays') },
+    { field: 'remaindays', label: t('performance.steps.remaindays') },
+    { field: 'stepvalue', label: t('performance.steps.stepvalue') },
+    { field: 'stepamount', label: t('performance.steps.stepamount') },
+    { field: 'realamount', label: t('performance.steps.realamount') },
+    { field: 'isauto', label: t('performance.steps.isauto') },
+    { field: 'steplanchtype', label: t('performance.steps.steplanchtype') },
+    { field: 'starttime', label: t('performance.steps.starttime') },
+    { field: 'endtime', label: t('performance.steps.endtime') },
+    { field: 'stepstatus', label: t('performance.steps.stepstatus') },
+    { field: 'remark', label: t('performance.steps.remark') },
 ])
 
 // 当前步骤索引位置

+ 3 - 3
src/packages/pc/views/footer/performance/components/edit/index.vue

@@ -5,11 +5,11 @@
             <el-form-item label="履约计划">
                 <span>{{ handleNoneValue(selectedRow.curstepid) }}</span>
             </el-form-item>
-            <el-form-item label="联络信息">
+            <el-form-item :label="t('performance.contract')">
                 <el-input type="textarea" :rows="3" v-model="Contract" />
             </el-form-item>
             <template v-if="selectedRow.buyorsell === 0">
-                <el-form-item label="收货地址">
+                <el-form-item :label="t('performance.receive')">
                     <div class="el-form-item--col">
                         <el-input type="textarea" :rows="2" v-model="Receive" />
                         <el-dropdown trigger="click" v-if="addressList.length">
@@ -27,7 +27,7 @@
                         </el-dropdown>
                     </div>
                 </el-form-item>
-                <el-form-item label="发票信息">
+                <el-form-item :label="t('performance.receipt')">
                     <div class="el-form-item--col">
                         <el-input type="textarea" :rows="2" v-model="Receipt" />
                         <el-dropdown trigger="click" v-if="invoiceList.length">