Browse Source

供应商管理翻译完成

Lijy 2 years ago
parent
commit
fa44fabfb7

+ 22 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -723,5 +723,26 @@
   "peaseselectmonth": "Please select a month",
   "throughwithoneclick": "Pass all by one key",
   "monany": "month",
-  "confirmapprovalofpendingdataforalldepartmentsanddates": "Are you confirmed to pass pending data for all departments and dates?"
+  "confirmapprovalofpendingdataforalldepartmentsanddates": "Are you confirmed to pass pending data for all departments and dates?",
+  "classificationmanagement": "Classification management",
+  "exportSupplier": "export supplier",
+  "importsuppliersinbatches": "Import suppliers in bulk",
+  "listofSuppliers": "Supplier list",
+  "newsuppliers": "Add supplier",
+  "pleaseenterthevendornamekeyword": "Please enter supplier name keyword",
+  "classificationSuppliers": "Supplier classification",
+  "namsupplier": "Supplier name",
+  "supplierNo": "supplier code",
+  "importsupplierdata": "Import supplier data",
+  "supplierimporttemplate": "Supplier Import Template",
+  "supplierclassificationentrymanagement": "Supplier Category Item Management",
+  "newCategoryItem": "Add category item",
+  "addmodifycategoryentry": "Add/Modify Category Items",
+  "gong-ying-shang-dao-chu": "Supplier export",
+  "determinethatyouwanttodeletevendorsinbulk": "Are you sure you want to delete suppliers in bulk",
+  "selectthevendordatyouwanttodelete": "Please select the supplier data to delete",
+  "deletesupplier": "delete supplier",
+  "barsupplierdata": "pieces of supplier data",
+  "makesuretoremovethevendor": "Are you sure you want to delete the supplier",
+  "modifysupplier": "Modify supplier"
 }

+ 22 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -723,5 +723,26 @@
   "peaseselectmonth": "请选择月份",
   "throughwithoneclick": "一键全部通过",
   "monany": "月份",
-  "confirmapprovalofpendingdataforalldepartmentsanddates": "是否确认通过全部部门和日期的待审核数据?"
+  "confirmapprovalofpendingdataforalldepartmentsanddates": "是否确认通过全部部门和日期的待审核数据?",
+  "listofSuppliers": "供应商列表",
+  "pleaseenterthevendornamekeyword": "请输入供应商名称关键字",
+  "newsuppliers": "新增供应商",
+  "importsuppliersinbatches": "批量导入供应商",
+  "exportSupplier": "导出供应商",
+  "classificationmanagement": "分类管理",
+  "supplierNo": "供应商编号",
+  "namsupplier": "供应商名称",
+  "classificationSuppliers": "供应商分类",
+  "importsupplierdata": "导入供应商数据",
+  "supplierimporttemplate": "供应商导入模板",
+  "supplierclassificationentrymanagement": "供应商分类条目管理",
+  "newCategoryItem": "新增分类项",
+  "addmodifycategoryentry": "新增/修改分类条目",
+  "gong-ying-shang-dao-chu": "供应商导出",
+  "selectthevendordatyouwanttodelete": "请选择要删除的供应商数据",
+  "determinethatyouwanttodeletevendorsinbulk": "确定要批量删除供应商",
+  "deletesupplier": "删除供应商",
+  "barsupplierdata": "条供应商数据",
+  "modifysupplier": "修改供应商",
+  "makesuretoremovethevendor": "确定要删除供应商"
 }

+ 86 - 85
fhKeeper/formulahousekeeper/timesheet/src/views/provider/provider.vue

@@ -3,21 +3,21 @@
         <!--工具条-->
         <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
             <el-form :inline="true">
-                <el-form-item label="供应商列表">
+                <el-form-item :label="$t('listofSuppliers')">
                     
                 </el-form-item>
                 <el-form-item >
                     <div>
-                    <el-input style="float:left;" v-model="keyword" class="input-with-select" placeholder="请输入供应商名称关键字" clearable="true" @clear="getList()">
+                    <el-input style="float:left;" v-model="keyword" class="input-with-select" :placeholder="$t('pleaseenterthevendornamekeyword')" clearable="true" @clear="getList()">
                         <el-button slot="append" @click="searchList" icon="el-icon-search"></el-button>
                     </el-input>
                     </div>
                 </el-form-item>
                 <el-form-item style="float:right;">
-                    <el-link type="primary" :underline="false" @click="handleAdd(-1,null)" style="margin-right: 10px">新增供应商</el-link>
-                    <el-link type="primary" :underline="false" @click="intocustomerRatio" style="margin-right: 10px">批量导入供应商</el-link>
-                    <el-link type="primary" :underline="false" @click="exportProjectData" style="margin-right: 10px">导出供应商</el-link>
-                    <el-link type="primary" :underline="false" @click="showClfDialog = true">分类管理</el-link>
+                    <el-link type="primary" :underline="false" @click="handleAdd(-1,null)" style="margin-right: 10px">{{ $t('newsuppliers') }}</el-link>
+                    <el-link type="primary" :underline="false" @click="intocustomerRatio" style="margin-right: 10px">{{ $t('importsuppliersinbatches') }}</el-link>
+                    <el-link type="primary" :underline="false" @click="exportProjectData" style="margin-right: 10px">{{ $t('exportSupplier') }}</el-link>
+                    <el-link type="primary" :underline="false" @click="showClfDialog = true">{{ $t('classificationmanagement') }}</el-link>
                 </el-form-item>
             </el-form>
         </el-col>
@@ -29,26 +29,26 @@
                         {{scope.$index+1+(page-1)*size}}
                     </template> -->
             </el-table-column>
-            <el-table-column prop="providerCode" label="供应商编号"  width="200" sortable="custom"></el-table-column>
-            <el-table-column prop="providerName" label="供应商名称" width="200" sortable="custom"></el-table-column>
-            <el-table-column prop="providerCategoryName" label="供应商分类" width="200" sortable="custom"></el-table-column>
-            <el-table-column prop="contactName" label="联系人"  width="120"></el-table-column>
-            <el-table-column prop="contactPhone" label="联系电话"  width="150"></el-table-column>
-            <el-table-column prop="email" label="邮箱"  width="180"></el-table-column>
-            <el-table-column prop="address" label="地址" width="200"></el-table-column>
-            <!-- <el-table-column prop="remark" label="备注" width="300"></el-table-column> -->
+            <el-table-column prop="providerCode" :label="$t('supplierNo')"  width="200" sortable="custom"></el-table-column>
+            <el-table-column prop="providerName" :label="$t('namsupplier')" width="200" sortable="custom"></el-table-column>
+            <el-table-column prop="providerCategoryName" :label="$t('classificationSuppliers')" width="200" sortable="custom"></el-table-column>
+            <el-table-column prop="contactName" :label="$t('contact')"  width="120"></el-table-column>
+            <el-table-column prop="contactPhone" :label="$t('contactphonenumber')"  width="150"></el-table-column>
+            <el-table-column prop="email" :label="$t('email')"  width="180"></el-table-column>
+            <el-table-column prop="address" :label="$t('address')" width="200"></el-table-column>
+            <!-- <el-table-column prop="remark" :label="备注" width="300"></el-table-column> -->
             
-            <el-table-column label="操作" width="150" fixed="right">
+            <el-table-column :label="$t('operation')" width="150" fixed="right">
                 <template slot-scope="scope">
-                    <el-button size="mini" type="primary" @click="handleAdd(scope.$index, scope.row)">编辑</el-button>
-                    <el-button size="mini"  @click="deletePro(scope.$index, scope.row)">删除</el-button>
+                    <el-button size="mini" type="primary" @click="handleAdd(scope.$index, scope.row)">{{ $t('bian-ji') }}</el-button>
+                    <el-button size="mini"  @click="deletePro(scope.$index, scope.row)">{{ $t('btn.delete') }}</el-button>
                 </template>
             </el-table-column>
         </el-table>
 
         <!--工具条-->
         <el-col :span="24" class="toolbar">
-            <el-button type="primary" size="small" @click="batchDelete" :loading="delLoading">批量删除</el-button>
+            <el-button type="primary" size="small" @click="batchDelete" :loading="delLoading">{{ $t('Batchdelete') }}</el-button>
             <el-pagination
                 @size-change="handleSizeChange"
                 @current-change="handleCurrentChange"
@@ -63,93 +63,93 @@
         <!--新增界面-->
         <el-dialog :title="title" v-if="addFormVisible" :visible.sync="addFormVisible" :close-on-click-modal="false" customClass="customWidth" width="800px">
             <el-form ref="form1" :model="addForm" :rules="rules" label-width="120px">
-                <el-form-item label="供应商编号" >
-                    <el-input v-model="addForm.providerCode" :max="20" placeholder="请输入供应商编号" clearable></el-input>
+                <el-form-item :label="$t('supplierNo')" >
+                    <el-input v-model="addForm.providerCode" :max="20" :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
-                <el-form-item label="供应商名称" prop="providerName">
-                    <el-input v-model="addForm.providerName" :max="20" placeholder="请输入供应商名称" clearable></el-input>
+                <el-form-item :label="$t('namsupplier')" prop="providerName">
+                    <el-input v-model="addForm.providerName" :max="20" :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
-                <el-form-item label="供应商分类" prop="providerCategoryId">
-                    <el-select v-model="addForm.providerCategoryId" filterable placeholder="请选择供应商分类" clearable @change="supplierChange">
-                        <el-option v-for="item in baseClfList" :key="item.id" :label="item.providerCategoryName" :value="item.id"></el-option>
+                <el-form-item :label="$t('classificationSuppliers')" prop="providerCategoryId">
+                    <el-select v-model="addForm.providerCategoryId" filterable :placeholder="$t('defaultText.pleaseChoose')" clearable @change="supplierChange">
+                        <el-option v-for="item in baseClfList" :key="item.id" ::label="item.providerCategoryName" :value="item.id"></el-option>
                     </el-select>
                 </el-form-item>
-                <el-form-item label="联系人" prop="contactName">
-                    <el-input v-model="addForm.contactName" :max="20" placeholder="请输入供应商联系人" clearable></el-input>
+                <el-form-item :label="$t('contact')" prop="contactName">
+                    <el-input v-model="addForm.contactName" :max="20" :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
-                <el-form-item label="联系电话" prop="contactPhone">
-                    <el-input v-model="addForm.contactPhone" :max="20" placeholder="请输入供应商联系电话" clearable></el-input>
+                <el-form-item :label="$t('contactphonenumber')" prop="contactPhone">
+                    <el-input v-model="addForm.contactPhone" :max="20" :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
-                <el-form-item label="邮箱" prop="email">
-                    <el-input v-model="addForm.email" :max="25" placeholder="请输入供应商邮箱" clearable></el-input>
+                <el-form-item :label="$t('email')" prop="email">
+                    <el-input v-model="addForm.email" :max="25" :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
-                <el-form-item label="地址" prop="address">
-                    <el-input v-model="addForm.address" :max="50"  placeholder="请输入供应商联系地址" clearable></el-input>
+                <el-form-item :label="$t('address')" prop="address">
+                    <el-input v-model="addForm.address" :max="50"  :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
-                <el-form-item label="备注" prop="remark ">
-                    <el-input type="textarea" :rows="4" v-model="addForm.remark " maxlength="1000" show-word-limit placeholder="请输入备注" clearable></el-input>
+                <el-form-item :label="$t('bei-zhu')" prop="remark ">
+                    <el-input type="textarea" :rows="4" v-model="addForm.remark " maxlength="1000" show-word-limit :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
 
             </el-form>
             <div slot="footer" class="dialog-footer;">
-                <el-button @click.native="addFormVisible = false">取消</el-button>
-                <el-button type="primary" @click="submitInsert" :loading="addLoading">提交</el-button>
+                <el-button @click.native="addFormVisible = false">{{ $t('btn.cancel') }}</el-button>
+                <el-button type="primary" @click="submitInsert" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
             </div>
         </el-dialog>
          <!-- 导入结果说明 -->
-        <el-dialog title="分摊比例导入结果" v-if="showImportResult" :visible.sync="showImportResult" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('importingtheallocationratio')" v-if="showImportResult" :visible.sync="showImportResult" customClass="customWidth" width="500px">
             <div>
                 <span>{{importResultMsg}}</span>
                 
             </div>
             <span slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="showImportResult=false">确定</el-button>
+                <el-button type="primary" @click="showImportResult=false">{{ $t('btn.determine') }}</el-button>
             </span>
         </el-dialog>
-         <el-dialog title="导入供应商数据" v-if="intocustomerDialog" :visible.sync="intocustomerDialog" customClass="customWidth" width="500px">
-            <p>1. 下载
-            <el-link type="primary" style="margin-left:5px;" :underline="false" href="./upload/供应商导入模板.xlsx" download="供应商导入模板.xlsx">供应商导入模板.xlsx</el-link>
+         <el-dialog :title="$t('importsupplierdata')" v-if="intocustomerDialog" :visible.sync="intocustomerDialog" customClass="customWidth" width="500px">
+            <p>1. {{ $t('other.download') }}
+            <el-link type="primary" style="margin-left:5px;" :underline="false" :href="'./upload/'+$t('supplierimporttemplate')+'.xlsx'" :download="$t('supplierimporttemplate')+'.xlsx'">{{$t('supplierimporttemplate')}}.xlsx</el-link>
             </p>
             <!-- <p>2. 填写excel模板,请确保模板中的项目和人员已添加到系统中。</p> -->
             <p style="display: flex;justify-content: center;padding:1em 0">
                 <el-upload ref="upload"  action="#" :limit="1" :http-request="batchImportData" :show-file-list="false">
-                <el-button type="primary" :underline="false" :loading="importingData">开始导入</el-button>
+                <el-button type="primary" :underline="false" :loading="importingData">{{ $t('other.startImporting') }}</el-button>
             </el-upload>
             </p>
         </el-dialog>
 
         <!-- 分类管理 -->
-        <el-dialog title="供应商分类条目管理" show-header="false" v-if="showClfDialog" :visible.sync="showClfDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('supplierclassificationentrymanagement')" show-header="false" v-if="showClfDialog" :visible.sync="showClfDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <el-table :data="baseClfList" highlight-current-row  height="400" style="width: 100%;">
-            <el-table-column type="index" width="60" label="序号">
+            <el-table-column type="index" width="60" :label="$t('headerTop.serialNumber')">
                 <template slot-scope="scope" >
                         {{scope.$index+1+(page-1)*size}}
                     </template>
             </el-table-column>
-            <el-table-column prop="providerCategoryName" label="名称" ></el-table-column>
-            <el-table-column label="操作" width="150">
+            <el-table-column prop="providerCategoryName" :label="$t('names')" ></el-table-column>
+            <el-table-column :label="$t('operation')" width="150">
                 <template slot-scope="scope" >
-                    <el-button size="small" type="primary" @click="addNewClf(scope.row)">编辑</el-button>
-                    <el-button size="small" type="danger" @click="deleteClf(scope.row)">删除</el-button>
+                    <el-button size="small" type="primary" @click="addNewClf(scope.row)">{{ $t('bian-ji') }}</el-button>
+                    <el-button size="small" type="danger" @click="deleteClf(scope.row)">{{ $t('btn.delete') }}</el-button>
                 </template>
             </el-table-column>
 
             </el-table>
             <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="showClfDialog = false" >关闭</el-button>
-                <el-button type="primary" @click="addNewClf()" >新增分类项</el-button>
+                <el-button type="primary" @click="showClfDialog = false" >{{ $t('Shutdown') }}</el-button>
+                <el-button type="primary" @click="addNewClf()" >{{ $t('newCategoryItem') }}</el-button>
             </div>
         </el-dialog>
         <!-- 新增/编辑 分类条目 -->
-        <el-dialog title="新增/修改分类条目" v-if="addClfDialog" :visible.sync="addClfDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
+        <el-dialog :title="$t('addmodifycategoryentry')" v-if="addClfDialog" :visible.sync="addClfDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
             <el-form ref="form2" :model="addClf" :rules="rules" label-width="100px">
-                <el-form-item label="供应商名称" prop="name">
-                    <el-input v-model="addClf.providerCategoryName" placeholder="请输入主项目名称" clearable></el-input>
+                <el-form-item :label="$t('namsupplier')" prop="name">
+                    <el-input v-model="addClf.providerCategoryName" :placeholder="$t('peaseenterthe')" clearable></el-input>
                 </el-form-item>
             </el-form>
             <div slot="footer" class="dialog-footer">
-                <el-button @click.native="addClfDialog = false">取消</el-button>
-                <el-button type="primary" @click="submitClf" :loading="addLoading">提交</el-button>
+                <el-button @click.native="addClfDialog = false">{{ $t('btn.cancel') }}</el-button>
+                <el-button type="primary" @click="submitClf" :loading="addLoading">{{ $t('btn.submit') }}</el-button>
             </div>
         </el-dialog>
     </section>
@@ -173,10 +173,10 @@
     export default {
         data() {
             return {
-                roleArray:["普通员工","超级管理员", "系统管理员", "公司高层","财务管理员", "项目管理员"],
+                roleArray:[this.$t('role.ordinaryEmployees'),this.$t('role.superAdministrator'), this.$t('role.systemAdministrator'), this.$t('role.companyTop'),this.$t('role.financialAdministrator'), this.$t('role.projectManager')],
                 status:null,
-                statusTxt:["-","进行中","已完成","已撤销"],
-                importanceList:[{id:1,label:'正常'},{id:2,label:'紧急'},{id:3,label:'重要'},{id:4,label:'重要且紧急'}],
+                statusTxt:["-",this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone')],
+                importanceList:[{id:1,label:this.$t('zheng-chang')},{id:2,label:this.$t('jin-ji')},{id:3,label:this.$t('zhong-yao')},{id:4,label:this.$t('zhong-yao-qie-jin-ji')}],
                 searchField:null,
                 keyword:null,
                 user: JSON.parse(sessionStorage.getItem("user")),
@@ -205,7 +205,7 @@
                     level:1,
                 },
                 rules: {
-                    providerName: [{ required: true, message: "请输入供应商名称", trigger: "blur" }],
+                    providerName: [{ required: true, message: this.$t('peaseenterthe'), trigger: "blur" }],
                 },
                 intocustomerDialog:false,
                 importingData: false,
@@ -250,8 +250,9 @@
                 res => {
                     if (res.code == "ok") {
                         var filePath = res.data;
+                        let arr = this.$t('gong-ying-shang-dao-chu')
                         const a = document.createElement('a'); // 创建a标签
-                        a.setAttribute('download', '供应商导出.xls');// download属性
+                        a.setAttribute('download', this.$t('gong-ying-shang-dao-chu') + '.xls');// download属性
                         a.setAttribute('href', filePath);// href链接
                         a.click(); //自执行点击事件
                         a.remove();
@@ -284,9 +285,9 @@
             },
             // 删除分类条目
             deleteClf(row) {
-                this.$confirm("该操作可能造成已有数据丢失,确定要删除吗?","删除分类条目", {
-                    confirmButtonText: "确定",
-                    cancelButtonText: "取消",
+                this.$confirm(this.$t('operationmaycausedatalossAreyousuredeletethedata'),this.$t('btn.delete'), {
+                    confirmButtonText: this.$t('btn.determine'),
+                    cancelButtonText: this.$t('btn.cancel'),
                     type: "warning"
                 })
                 .then(() => {
@@ -298,7 +299,7 @@
                         this.listLoading = false;
                         if (res.code == "ok") {
                             this.$message({
-                                message: "删除成功",
+                                message: this.$t('message.successfullyDeleted'),
                                 type: "success"
                             });
                             this.getClfConfigList();
@@ -383,7 +384,7 @@
             },
             batchDelete(){
                 if(this.selectArr.length == 0){
-                    this.$message('请选择要删除的供应商数据')
+                    this.$message(this.$t('selectthevendordatyouwanttodelete'))
                     return
                 }else{
                     let nametext = ''
@@ -391,9 +392,9 @@
                         nametext += this.selectArr[i].providerName + '、'
                     }
                     nametext = nametext.substring(0,nametext.length - 1)
-                    this.$confirm("确定要批量删除供应商:" + nametext + "\u3000吗?","删除供应商", {
-                        confirmButtonText: "确定",
-                        cancelButtonText: "取消",
+                    this.$confirm(this.$t('determinethatyouwanttodeletevendorsinbulk')+":" + nametext + "\u3000"+ this.$t('ma'),this.$t('deletesupplier'), {
+                        confirmButtonText: this.$t('btn.determine'),
+                        cancelButtonText: this.$t('btn.cancel'),
                         type: "warning"
                     }).then(()=>{
                         this.delLoading = true
@@ -408,7 +409,7 @@
                             this.delLoading = false
                             if(res.code == 'ok'){
                                 this.$message({
-                                    message: '删除成功',
+                                    message: this.$t('message.successfullyDeleted'),
                                     type: 'success'
                                 })
                                 this.getList()
@@ -438,7 +439,7 @@
                 let format = str[str.length - 1];
                 if (format != "xls" && format != "xlsx") {
                     this.$message({
-                        message: "请选择.xls或.xlsx文件",
+                        message: this.$t('other.PleaseselecttheXLSorXLSXfile'),
                         type: "error"
                     });
                 } else {
@@ -452,10 +453,10 @@
                         this.showImportResult = true;
                         if (res.code == "ok") {
                             //换成弹出框,以免有人等了半天回来啥也没看到
-                            this.importResultMsg = "成功导入/更新"+res.data+"条供应商数据。"+(res.msg?res.msg:"");
+                            this.importResultMsg = this.$t('importedupdatedsuccessfully')+res.data+this.$t('barsupplierdata')+"。"+(res.msg?res.msg:"");
                             this.getList();
                         } else {
-                            this.importResultMsg = "导入失败:"+res.msg;
+                            this.importResultMsg = this.$t('export.Importfailure')+":"+res.msg;
                         }
                     },
                     error => {
@@ -474,7 +475,7 @@
                 let format = str[str.length - 1];
                 if (format != "xls" && format != "xlsx") {
                     this.$message({
-                        message: "请选择.xls或.xlsx文件",
+                        message: this.$t('other.PleaseselecttheXLSorXLSXfile'),
                         type: "error"
                     });
                 } else {
@@ -488,7 +489,7 @@
                         this.listLoading = false;
                         if (res.code == "ok") {
                             this.$message({
-                                message: "导入成功",
+                                message: this.$t('other.importSuccess'),
                                 type: "success"
                             });
                             this.getList();
@@ -514,9 +515,9 @@
         //         this.addForm.budget = this.addForm.budget.replace('.','');
           },
             deleteSubPro(subProject) {
-                this.$confirm("确定要删除子项目" + subProject.name + "吗?","删除子项目", {
-                    confirmButtonText: "确定",
-                    cancelButtonText: "取消",
+                this.$confirm(this.$t('makesuretodeletethesubproject') + subProject.name + this.$t('ma'),this.$t('deletesubproject'), {
+                    confirmButtonText: this.$t('btn.determine'),
+                    cancelButtonText: this.$t('btn.cancel'),
                     type: "warning"
                 })
                 .then(() => {
@@ -528,7 +529,7 @@
                         this.listLoading = false;
                         if (res.code == "ok") {
                             this.$message({
-                                message: "删除成功",
+                                message: this.$t('message.successfullyDeleted'),
                                 type: "success"
                             });
                             this.subProject(this.currentProject);
@@ -672,11 +673,11 @@
             //显示新增界面
             handleAdd(i, item) {
                 if(i == -1) {
-                    this.title = "新增供应商";
+                    this.title = this.$t('newsuppliers');
                     this.addForm = {
                     }
                 } else {
-                    this.title = "修改供应商";
+                    this.title = this.$t('modifysupplier');
                     this.addForm = JSON.parse(JSON.stringify(item));
                 }
                 this.addFormVisible = true;
@@ -712,9 +713,9 @@
 
             // 删除
             deletePro(i, item) {
-                this.$confirm("确定要删除供应商" + item.providerName + "吗?","删除供应商", {
-                    confirmButtonText: "确定",
-                    cancelButtonText: "取消",
+                this.$confirm(this.$t('makesuretoremovethevendor') + item.providerName + this.$t('ma'),this.$t('deletesupplier'), {
+                    confirmButtonText: this.$t('btn.determine'),
+                    cancelButtonText: this.$t('btn.cancel'),
                     type: "warning"
                 })
                 .then(() => {
@@ -726,7 +727,7 @@
                         this.listLoading = false;
                         if (res.code == "ok") {
                             this.$message({
-                                message: "删除成功",
+                                message: this.$t('message.successfullyDeleted'),
                                 type: "success"
                             });
                             this.getList();