From 62d811c7755970d13ee29345b77353bc6a1b569f Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期三, 13 三月 2024 10:15:41 +0800
Subject: [PATCH] 语言替换

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue |   74 +++++++++++++++++++------------------
 1 files changed, 38 insertions(+), 36 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
index 1c01b80..899f725 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
@@ -14,7 +14,9 @@
 import useUserInfoStore from "@/stores/userInfo";
 import {changeFilterEvent, filterChanged} from "@/hook"
 import {addListener,toolbarButtonClickEvent} from "@/hook/mouseMove";
-
+import { useI18n } from 'vue-i18n'
+//璇█鑾峰彇
+const { t } = useI18n()
 
 let router = useRouter()
 const userStore = useUserInfoStore()
@@ -36,7 +38,7 @@
 
 
 //宸ュ簭
-const value = ref('鍒囧壊')
+const value = ref('cutting')
 
 
 //鎺掍骇鐘舵��
@@ -44,11 +46,11 @@
 const stateOptions = [
   {
     value: '2',
-    label: '宸叉帓浜�',
+    label: t('processCard.ProductionSchedulingOk'),
   },
   {
     value: '1',
-    label: '鏈帓浜�',
+    label: t('processCard.ProductionSchedulingNo'),
   },
 ]
 
@@ -281,9 +283,9 @@
     body: {
       options: [
         [
-          { code: 'copyChecked', name: '閫変腑鐩稿悓', prefixIcon: 'vxe-icon-copy', visible: true, disabled: false },
-          { code: 'copyAll', name: '涔嬪悗鐩稿悓', prefixIcon: 'vxe-icon-feedback', visible: true, disabled: false },
-          { code: 'clearChecked', name: '娓呴櫎閫変腑', prefixIcon: 'vxe-icon-indicator', visible: true, disabled: false },
+          { code: 'copyChecked', name: t('basicData.selectSame'), prefixIcon: 'vxe-icon-copy', visible: true, disabled: false },
+          { code: 'copyAll', name: t('basicData.sameAfterwards'), prefixIcon: 'vxe-icon-feedback', visible: true, disabled: false },
+          { code: 'clearChecked', name: t('basicData.clearSelection'), prefixIcon: 'vxe-icon-indicator', visible: true, disabled: false },
         ]
       ]
     }
@@ -291,24 +293,24 @@
   //琛ㄥご鍙傛暟
   columns: [
     {type: 'expand', fixed: "left", slots: {content: 'content'}, width: 50},
-    {type: 'checkbox', fixed: "left", title: '閫夋嫨', width: 80},
-    {type: 'seq', fixed: "left", title: '鑷簭', width: 50},
+    {type: 'checkbox', fixed: "left", title: t('basicData.check'), width: 80},
+    {type: 'seq', fixed: "left", title: t('basicData.Number'), width: 50},
     {
       field: 'scheduled_start_time',
       width: 120,
       editRender: {name: 'input', attrs: {placeholder: '', type: 'date'}},
-      title: '璁″垝寮�濮嬫椂闂�'
+      title: t('processCard.scheduledStartTime')
     },
     {
       field: 'plan_end_time',
       width: 120,
       editRender: {name: 'input', attrs: {placeholder: '', type: 'date'}},
-      title: '璁″垝缁撴潫鏃堕棿'
+      title: t('processCard.planEndTime')
     },
     // {field: '鎺掍骇缂栧彿', title: '鎺掍骇缂栧彿',  width: 120 },
     {
       field: 'order_id',
-      title: '閿�鍞崟鍙�',
+      title: t('order.orderId'),
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       width: 100,
@@ -316,7 +318,7 @@
     },
     {
       field: 'customer_name',
-      title: '瀹㈡埛鍚嶇О',
+      title: t('processCard.customerName'),
       width: 110,
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
@@ -324,7 +326,7 @@
     },
     {
       field: 'project',
-      title: '椤圭洰鍚嶇О',
+      title: t('order.project'),
       width: 100,
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
@@ -332,7 +334,7 @@
     },
     {
       field: 'order_number',
-      title: '搴忓彿',
+      title: t('order.OrderNum'),
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       width: 70,
@@ -340,7 +342,7 @@
     },
     {
       field: 'technology_number',
-      title: '灏忕墖椤哄簭',
+      title: t('processCard.technologyNumber'),
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       width: 70,
@@ -348,7 +350,7 @@
     },
     {
       field: 'child_width',
-      title: '瀹�',
+      title: t('order.width'),
       width: 60,
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
@@ -356,38 +358,38 @@
     },
     {
       field: 'child_height',
-      title: '楂�',
+      title: t('order.height'),
       width: 60,
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       filterMethod: filterChanged
     },
-    {field: 'quantity', title: '璁㈠崟鏁伴噺', width: 70},
-    {field: 'area', title: '璁㈠崟闈㈢Н', width: 90},
+    {field: 'quantity', title: t('processCard.orderQuantity'), width: 70},
+    {field: 'area', title: t('processCard.orderArea'), width: 90},
     {
       field: 'scheduling_quantity',
       width: 120,
       editRender: {name: 'input', attrs: {placeholder: ''}},
-      title: '鎺掍骇鏁伴噺',
+      title: t('processCard.productionSchedulingQuantity'),
       sortable: true
     },
-    {field: 'pendingProductionQuantity', title: '寰呮帓浜ф暟閲�', width: 120},
-    {field: 'pendingProductionArea', title: '寰呮帓浜ч潰绉�', width: 120},
-    {field: 'productionScheduledQuantity', title: '宸叉帓浜ф暟閲�', width: 120},
-    {field: 'productionScheduledArea', title: '宸叉帓浜ч潰绉�', width: 120},
-    {field: 'review_status', title: '瀹℃牳鐘舵��', width: 140},
-    {field: 'reviewer', title: '瀹℃牳浜�', width: 140},
-    {field: 'glass_child', title: '浜у搧鍚嶇О', width: 140},
-    {field: 'shape', title: '褰㈢姸', width: 80},
-    {field: 'notes', title: '澶囨敞', editRender: {name: 'input', attrs: {placeholder: ''}}, width: 120},
-    {field: 'scheduling_id', title: '鎺掍骇缂栧彿', width: 120},
+    {field: 'pendingProductionQuantity', title: t('processCard.quantityToScheduled'), width: 120},
+    {field: 'pendingProductionArea', title: t('processCard.areaToScheduled'), width: 120},
+    {field: 'productionScheduledQuantity', title: t('processCard.plannedProductionQuantity'), width: 120},
+    {field: 'productionScheduledArea', title: t('processCard.plannedProductionArea'), width: 120},
+    {field: 'review_status', title: t('processCard.reviewedState'), width: 140},
+    {field: 'reviewer', title: t('processCard.reviewed'), width: 140},
+    {field: 'glass_child', title: t('order.product'), width: 140},
+    {field: 'shape', title: t('order.shape'), width: 80},
+    {field: 'notes', title: t('processCard.notes'), editRender: {name: 'input', attrs: {placeholder: ''}}, width: 120},
+    {field: 'scheduling_id', title: t('processCard.schedulingId'), width: 120},
   ],//琛ㄥご鎸夐挳
 
   toolbarConfig: {
     buttons: [
-      {code: 'delete', name: '鍒犻櫎', status: 'primary'},
-      {code: 'review', name: '瀹℃牳', status: 'primary'},
-      {code: 'save', name: '鎺掍骇', status: 'primary', icon: 'vxe-icon-save'},
+      {code: 'delete', name: t('basicData.delete'), status: 'primary'},
+      {code: 'review', name: t('basicData.review'), status: 'primary'},
+      {code: 'save', name: t('processCard.scheduling'), status: 'primary', icon: 'vxe-icon-save'},
     ],
     import: false,
     // export: true,
@@ -613,7 +615,7 @@
 
         />
         &nbsp;&nbsp;
-        <el-input v-model="form.orderId" clearable placeholder="閿�鍞崟鍙�" style="width: 110px"></el-input>
+        <el-input v-model="form.orderId" clearable :placeholder="$t('order.orderId')" style="width: 110px"></el-input>
         &nbsp;
         <el-select v-model="value" clearable default-value="default_city" style="width: 120px">
           <el-option
@@ -636,7 +638,7 @@
         <el-button
             id="select"
             :icon="Search"
-            type="primary" @click="getWorkOrder">鏌ヨ
+            type="primary" @click="getWorkOrder">{{$t('basicData.search')}}
         </el-button>
       </el-row>
 

--
Gitblit v1.8.0