From 04a4d0d1690b6b0ae9433bee186bba167591d787 Mon Sep 17 00:00:00 2001
From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com>
Date: Wed, 8 May 2024 17:21:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E8=8B=B1=E6=96=87=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/Breadcrumb/src/Breadcrumb.vue | 4 +-
.../src/components/useRenderMenuTitle.tsx | 4 +-
.../components/TagsView/src/TagsView.vue | 2 +-
src/locales/en-US.ts | 71 ++++++++++++++++++-
src/locales/zh-CN.ts | 70 +++++++++++++++++-
.../supplierManage/purchaseprice/index.vue | 2 +-
.../supplierManage/supplier/index.vue | 2 +-
.../supplierManage/supplieritem/index.vue | 4 +-
.../inspect/inspectRecordMain/index.vue | 4 +-
.../purchasereceiptRecordMain/index.vue | 12 ++--
.../purchasereceiptRequestMain/index.vue | 2 +-
.../purchasereturnRecordMain/index.vue | 2 +-
.../sparereceiptRequestMain/index.vue | 2 +-
.../demandforecastingMain/index.vue | 6 +-
.../supplierdeliver/purchaseMain/index.vue | 2 +-
.../purchasePlanMain/index.vue | 8 +--
.../supplierdeliverRecordMain/index.vue | 8 +--
.../supplierdeliverRequestMain/index.vue | 46 ++++++------
.../supplierdeliverBasicForm.vue | 4 +-
.../purchaseclaimRequestMain/index.vue | 16 ++---
.../supplierinvoiceRecordMain/index.vue | 12 ++--
.../supplierinvoiceRequestMain/index.vue | 52 +++++++-------
.../supplierinvoiceInvoiced/index.vue | 20 +++---
23 files changed, 244 insertions(+), 111 deletions(-)
diff --git a/src/layout/components/Breadcrumb/src/Breadcrumb.vue b/src/layout/components/Breadcrumb/src/Breadcrumb.vue
index de0366543..f1a2f65d6 100644
--- a/src/layout/components/Breadcrumb/src/Breadcrumb.vue
+++ b/src/layout/components/Breadcrumb/src/Breadcrumb.vue
@@ -54,10 +54,10 @@ export default defineComponent({
{meta?.icon && breadcrumbIcon.value ? (
<>
- {t(v?.meta?.title)}
+ {t(`ts.${v?.meta?.title}`).replace('ts.','')}
>
) : (
- t(v?.meta?.title)
+ t(`ts.${v?.meta?.title}`).replace('ts.','')
)}
)
diff --git a/src/layout/components/Menu/src/components/useRenderMenuTitle.tsx b/src/layout/components/Menu/src/components/useRenderMenuTitle.tsx
index fc30b9006..1887789f6 100644
--- a/src/layout/components/Menu/src/components/useRenderMenuTitle.tsx
+++ b/src/layout/components/Menu/src/components/useRenderMenuTitle.tsx
@@ -9,10 +9,10 @@ export const useRenderMenuTitle = () => {
return icon ? (
<>
-
+
>
) : (
-
+
)
}
diff --git a/src/layout/components/TagsView/src/TagsView.vue b/src/layout/components/TagsView/src/TagsView.vue
index 7db0cf6f3..ae4d1c47f 100644
--- a/src/layout/components/TagsView/src/TagsView.vue
+++ b/src/layout/components/TagsView/src/TagsView.vue
@@ -367,7 +367,7 @@ watch(
:size="12"
class="mr-5px"
/>
- {{ t(item?.meta?.title as string) }}
+ {{ t(`ts.${item?.meta?.title}` as string).replace('ts.','') }}
{
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
- message.error('失效时间要大于生效时间')
+ message.error(t('ts.失效时间要大于生效时间'))
return;
}
}
diff --git a/src/views/wms/basicDataManage/supplierManage/supplier/index.vue b/src/views/wms/basicDataManage/supplierManage/supplier/index.vue
index fc18a5f62..896737aac 100644
--- a/src/views/wms/basicDataManage/supplierManage/supplier/index.vue
+++ b/src/views/wms/basicDataManage/supplierManage/supplier/index.vue
@@ -174,7 +174,7 @@ const formsSuccess = async (formType, data) => {
})
if (isHave) {
if (data.activeTime && data.expireTime && data.activeTime >= data.expireTime) {
- message.error('失效时间要大于生效时间')
+ message.error(t('ts.失效时间要大于生效时间'))
return
}
}
diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue b/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
index 21a8c4451..b3c637e76 100644
--- a/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
+++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
@@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
-
+
{{ row.supplierCode }}
@@ -182,7 +182,7 @@ const formsSuccess = async (formType,data) => {
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
- message.error('失效时间要大于生效时间')
+ message.error(t('ts.失效时间要大于生效时间'))
return;
}
}
diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
index 2a56e32c3..5c294f156 100644
--- a/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
@@ -151,10 +151,10 @@ const buttonTableClick = async (val, row) => {
/** 生成采购上架申请按钮操作 */
const handlePutawayRequest = async (number:string) => {
try{
- await message.confirm(t('确认生成上架申请吗?'))
+ await message.confirm(t('ts.确认生成上架申请吗?'))
tableObject.loading = true
await InspectRecordMainApi.createPutAwayRequest(number)
- message.success(t('上架申请生成成功'))
+ message.success(t('ts.上架申请生成成功'))
await getList()
}catch{}finally{
tableObject.loading = false
diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
index 7f2d548d9..1e642d36c 100644
--- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
@@ -177,10 +177,10 @@ const buttonTableClick = async (val, row) => {
/** 生成采购上架申请按钮操作 */
const handleCreatePutawayRequest = async (number:string) => {
try{
- await message.confirm(t('确认生成上架申请吗?'))
+ await message.confirm(t('ts.确认生成上架申请吗?'))
tableObject.loading = true
await PurchasereceiptRecordMainApi.createPutawayRequest(number)
- message.success(t('上架申请生成成功'))
+ message.success(t('ts.上架申请生成成功'))
await getList()
}catch{}finally{
tableObject.loading = false
@@ -190,10 +190,10 @@ const handleCreatePutawayRequest = async (number:string) => {
/** 生成到货检验申请按钮操作 */
const handleCreateInspectRequest = async (number:string) => {
try{
- await message.confirm(t('确认生成到货检验申请吗?'))
+ await message.confirm(t('ts.确认生成到货检验申请吗?'))
tableObject.loading = true
await PurchasereceiptRecordMainApi.createInspectRequest(number)
- message.success(t('到货检验申请生成成功'))
+ message.success(t('ts.到货检验申请生成成功'))
await getList()
}catch{}finally{
tableObject.loading = false
@@ -227,7 +227,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
// 详情 table 操作扩展 按钮
const buttondataTable = ref([{
- label: '查看其他包装规格',
+ label: t('ts.查看其他包装规格'),
name: 'viewParentPickingNumber',
hide: false,
type: 'primary',
@@ -268,7 +268,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await PurchasereceiptRecordMainApi.exportPurchasereceiptRecordMain(tableObject.params)
- download.excel(data, '采购收货记录主.xlsx')
+ download.excel(data, `${t('ts.采购收货记录主')}.xlsx`)
} catch {
} finally {
exportLoading.value = false
diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
index 6db8c5f17..4d02d9832 100644
--- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
@@ -402,7 +402,7 @@ const submitFormLabel = async (formType, data) => {
console.log("data==",data)
data.subList = detatableData.tableList
console.log("detatableData",detatableData)
- await message.confirm('是否为此数据生成标签?')
+ await message.confirm(t('ts.是否为此数据生成标签?'))
await PurchasereceiptRequestMainApi.genLabel(data) //genLabelId.value
isCreateLabel.value = true
message.success('创建标签成功')
diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
index cbdf89c3e..fc338441d 100644
--- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
@@ -168,7 +168,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params)
- download.excel(data, '采购退货记录主.xlsx')
+ download.excel(data, `${t('ts.采购退货记录主')}.xlsx`)
} catch {
} finally {
exportLoading.value = false
diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
index 3cc878b4f..bd6cfee45 100644
--- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
@@ -407,7 +407,7 @@ const { getList:getDetailList } = detatableMethods
// 生成标签按钮操作
const submitFormLabel = async (formType, data) => {
try {
- await message.confirm('是否为此数据生成标签?')
+ await message.confirm(t('ts.是否为此数据生成标签?'))
await PurchasereceiptRequestMainApi.genLabel(genLabelId.value)
isCreateLabel.value = true
message.success('创建标签成功')
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
index b28319c50..ae3c06032 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
@@ -268,7 +268,7 @@ const handleClose = async (id : number) => {
const handlePublish = async (id : number) => {
try {
// 发布的二次确认
- await message.confirm('是否发布所选中数据?')
+ await message.confirm(t('ts.是否发布所选中数据?'))
tableObject.loading = true
// 发起发布
await DemandforecastingMainApi.publishPurchaseMain(id)
@@ -330,7 +330,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await DemandforecastingMainApi.exportDemandforecastingMain(tableObject.params)
- download.excel(data, '要货预测主.xlsx')
+ download.excel(data, `${t('ts.要货预测主')}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -383,7 +383,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '要货预测主导入模版.xlsx'
+ templateTitle: `${t('ts.要货预测主导入模版')}.xlsx`
})
// 导入成功之后
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
index 6a3e8286f..8e43e847f 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
@@ -141,7 +141,7 @@ console.log('PurchaseMain.allSchemas.searchSchema',PurchaseMain.allSchemas.searc
})
}
if(repeatCode.length>0){
- message.warning(`物料代码${repeatCode.join(',')}已经存在`);
+ message.warning(`${t('ts.物料代码')}${repeatCode.join(',')}${t('ts.已经存在')}`);
}
if(val.length>0){
//frm表单回显
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
index 3131050bc..44ad7b932 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
@@ -410,7 +410,7 @@ const { wsCache } = useCache()
const handleReOpen = async (id : number) => {
try {
// 打开的二次确认
- await message.confirm('是否重新打开所选中数据?')
+ await message.confirm(t('ts.是否重新打开所选中数据?'))
tableObject.loading = true
// 发起打开
await PurchasePlanMainApi.openPurchasePlanMain(id)
@@ -538,7 +538,7 @@ const { wsCache } = useCache()
if(res.list[0].type == 'DISCRETE'){//只有离散单需要这个校验
if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
flag = true;
- message.error('要货计划数量不得大于订单数量-已计划数量')
+ message.error(t('ts.要货计划数量不得大于订单数量-已计划数量'))
return
}else{
data.subList.push(item) // 拼接子表数据参数
@@ -556,7 +556,7 @@ const { wsCache } = useCache()
try {
if (formType === 'create') {
if(data.subList.length == 0){
- message.error('子列表数量不能空')
+ message.error(t('ts.子列表数量不能空'))
return
}
await PurchasePlanMainApi.createPurchasePlanMain(data)
@@ -584,7 +584,7 @@ const { wsCache } = useCache()
}).then(res => {
if(res.list[0].type == 'DISCRETE'){//只有离散单需要这个校验
if (data.planQty > res.list[0].orderQty - res.list[0].plannedQty) {
- message.error('要货计划数量不得大于订单数量-已计划数量')
+ message.error(t('ts.要货计划数量不得大于订单数量-已计划数量'))
tag = false
} else {
tag = true
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
index 660f8b0e2..41cc2505d 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
@@ -196,10 +196,10 @@ const buttonTableClick = async (val, row) => {
/** 生成采购收货申请按钮操作 */
const handlerCreatePurchasereceiptRequest = async (number:string) => {
try{
- await message.confirm(t('确认生成采购申请吗?'))
+ await message.confirm(t('ts.确认生成采购申请吗?'))
tableObject.loading = true
await SupplierdeliverRecordMainApi.createPurchasereceiptRequest(number)
- message.success(t('采购申请生成成功'))
+ message.success(t('ts.采购申请生成成功'))
await getList()
}catch{}finally{
tableObject.loading = false
@@ -241,7 +241,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any) => {
// 详情 table 操作扩展 按钮
const buttondataTable = ref([{
- label: '查看其他包装规格',
+ label: t('ts.查看其他包装规格'),
name: 'viewParentPickingNumber',
hide: false,
type: 'primary',
@@ -273,7 +273,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await SupplierdeliverRecordMainApi.exportSupplierdeliverRecordMain(tableObject.params)
- download.excel(data, '供应商发货记录主.xlsx')
+ download.excel(data, `${t('ts.供应商发货记录主')}.xlsx`)
} catch {
} finally {
exportLoading.value = false
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
index 8f167e845..91dbdbc82 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
@@ -438,7 +438,7 @@ const butttondata = (row,$index) => {
}), // 编辑
// defaultButtons.mainListDeleteBtn({ hasPermi: 'wms:supplierdeliver-request-main:delete' }), // 删除
{
- label: '生成标签',
+ label: t('ts.生成标签'),
name: 'ssbq',
hide: isShowMainButtonLabel(row, ['3']),
type: 'primary',
@@ -451,7 +451,7 @@ const butttondata = (row,$index) => {
//defaultButtons.mainListDocumentPrintBtn({ hide: isShowMainButton(row, ['3','8']) }), // 单据打印
// 生成记录
{
- label: '发货',
+ label: t('ts.发货'),
name: 'genRecords',
hide: isShowMainButton(row, ['3']),
type: 'primary',
@@ -496,7 +496,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'ssbq') {
await SupplierdeliverRequestMainApi.selfCheckReport(row.masterId).then(async (res) => {
if(!res){
- message.warning("请先上传自检报告!")
+ message.warning(t('ts.请先上传自检报告!'))
return
}else{
// 生成标签
@@ -642,7 +642,7 @@ const handleUploadQualityReport = async (row) => {
if(uploadFile){
uploadFile['componentProps']['upData']['tableId'] = row.masterId
}
- ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},'上传质检报告','上传质检报告')//创建标签页面 createLabel 标题
+ ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},t('ts.上传质检报告'),t('ts.上传质检报告'))//创建标签页面 createLabel 标题
const tableFormKeys = {}
SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => {
@@ -675,11 +675,11 @@ const submitFormUploadQualityReport = async (formType, data) => {
const handleSub = async (id: number) => {
try {
// 提交审批的二次确认
- await message.confirm('是否提交审批所选中数据?')
+ await message.confirm(t('ts.是否提交审批所选中数据?'))
tableObject.loading = true
// 发起提交审批
await SupplierdeliverRequestMainApi.subSupplierdeliverRequestMain(id)
- message.success(t('提交审批成功!'))
+ message.success(t('ts.提交审批成功!'))
// 刷新列表
await getList()
} catch {}finally{
@@ -691,11 +691,11 @@ const handleSub = async (id: number) => {
const handleApp = async (id: number) => {
try {
// 审批通过的二次确认
- await message.confirm('是否审批通过所选中数据?')
+ await message.confirm(t('ts.是否审批通过所选中数据?'))
tableObject.loading = true
// 发起审批通过
await SupplierdeliverRequestMainApi.appSupplierdeliverRequestMain(id)
- message.success(t('审批通过成功!'))
+ message.success(t('ts.审批通过成功!'))
// 刷新列表
await getList()
} catch {}finally{
@@ -707,11 +707,11 @@ const handleApp = async (id: number) => {
const handleTur = async (id: number) => {
try {
// 驳回的二次确认
- await message.confirm('是否驳回所选中数据?')
+ await message.confirm(t('ts.是否驳回所选中数据?'))
tableObject.loading = true
// 发起驳回
await SupplierdeliverRequestMainApi.rejSupplierdeliverRequestMain(id)
- message.success(t('驳回成功!'))
+ message.success(t('ts.驳回成功!'))
// 刷新列表
await getList()
} catch {}finally{
@@ -725,11 +725,11 @@ const genRecords = async (id: number) => {
try {
await SupplierdeliverRequestMainApi.selfCheckReport(id).then(async res => {
if(!res){
- message.warning("请先上传自检报告!")
+ message.warning(t('ts.请先上传自检报告!'))
return
}else{
// 处理的二次确认
- await message.confirm('是否处理所选中数据?')
+ await message.confirm(t('ts.是否处理所选中数据?'))
getLoading = ElLoading.service({
lock: true,
text: 'loading...',
@@ -737,7 +737,7 @@ const genRecords = async (id: number) => {
})
// 发起处理
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => {
- message.success(t('处理成功!'))
+ message.success(t('ts.处理成功!'))
// 刷新列表
getList()
// 单据打印
@@ -763,7 +763,7 @@ const handleExport = async () => {
const data = await SupplierdeliverRequestMainApi.exportSupplierdeliverRequestMain(
tableObject.params
)
- download.excel(data, '供应商发货申请主.xlsx')
+ download.excel(data, `${'ts.供应商发货申请主'}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -786,10 +786,10 @@ const submitFormLabel = async (formType, data) => {
console.log("data==",data)
data.subList = detatableData.tableList
console.log("detatableData",detatableData)
- await message.confirm('是否为此数据生成标签?')
+ await message.confirm(t('ts.是否为此数据生成标签?'))
await SupplierdeliverRequestMainApi.genLabel(data)
isCreateLabel.value = true
- message.success('创建标签成功')
+ message.success(t('ts.创建标签成功'))
getList()
} finally {
formLabelRef.value.formLoading = false
@@ -820,7 +820,7 @@ const labelPrint = async (row) => {
tableColumns.forEach((item) => {
item.width = item.table?.width || 150
})
- searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
+ searchTableRef.value.openData(t('ts.标签信息'),tableObjectPrint,{tableColumns},true)
}
// 批量打印--供应商发货申请
@@ -831,7 +831,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
// rows = [...rows,...item.selectionRows.map(item1=>item1.number)]
// })
if(val.length == 0){
- message.warning("请先选择要打印的数据!")
+ message.warning(t('ts.请先选择要打印的数据'))
return
}
// window.open(src.value + '&asn_number=' + val.map(item1=>item1.number).join(','))
@@ -841,7 +841,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
window.open(src.value + '&asn_number=' + res)
}).catch(err => {
console.log(err)
- message.error('创建标签失败')
+ message.error(t('ts.创建标签失败'))
})
}
@@ -884,7 +884,7 @@ const submitForm = async (formType, data) => {
}
})
if (isHave) {
- message.error('生产日期不可以大于过期日期')
+ message.error(t('ts.生产日期不可以大于过期日期'))
formRef.value.formLoading = false
return
}
@@ -893,7 +893,7 @@ const submitForm = async (formType, data) => {
let planArriveStr = formatDate(data.planArriveTime);
if(planArriveStr > planArriveTimeStr.value){
let confirmFlag = false;
- await message.confirm("计划到货时间大于要货计划送达日期是否继续?").then(() => {
+ await message.confirm(t('ts.计划到货时间大于要货计划送达日期是否继续?')).then(() => {
console.log("选择了OK")
//选择OK
}).catch(() => {
@@ -908,7 +908,7 @@ const submitForm = async (formType, data) => {
}
}
if(tableData.value.length <= 0){
- message.warning(`子表明细不能为空!`)
+ message.warning(t('ts.子表明细不能为空!'))
formRef.value.formLoading = false
return;
}
@@ -935,7 +935,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '供应商发货申请主导入模版.xlsx'
+ templateTitle: `${t('ts.供应商发货申请主导入模版')}.xlsx`
})
// 导入成功之后
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue
index 23fec491f..c18d01ef5 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue
@@ -267,7 +267,7 @@ const submitForm = async (formType, data) => {
}
})
if (isHave) {
- message.error('生产日期不可以大于过期日期')
+ message.error(t('ts.生产日期不可以大于过期日期'))
formRef.value.formLoading = false
return
}
@@ -276,7 +276,7 @@ const submitForm = async (formType, data) => {
let planArriveStr = formatDate(data.planArriveTime);
if(planArriveStr > planArriveTimeStr.value){
let confirmFlag = false;
- await message.confirm("计划到货时间大于要货计划送达日期是否继续?").then(() => {
+ await message.confirm(t('ts.计划到货时间大于要货计划送达日期是否继续?')).then(() => {
console.log("选择了OK")
//选择OK
}).catch(() => {
diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
index 855f7ed3a..59795e6a7 100644
--- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
+++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
@@ -339,11 +339,11 @@
const handleSub = async (id : number) => {
try {
// 提交审批的二次确认
- await message.confirm('是否提交审批所选中数据?')
+ await message.confirm(t('ts.是否提交审批所选中数据?'))
tableObject.loading = true
// 发起提交审批
await PurchaseclaimRequestMainApi.subPurchaseclaimRequestMain(id)
- message.success(t('提交审批成功!'))
+ message.success(t('ts.提交审批成功!'))
tableObject.loading = false
// 刷新列表
await getList()
@@ -356,11 +356,11 @@
const handleApp = async (id : number) => {
try {
// 审批通过的二次确认
- await message.confirm('是否审批通过所选中数据?')
+ await message.confirm(t('ts.是否审批通过所选中数据?'))
tableObject.loading = true
// 发起审批通过
await PurchaseclaimRequestMainApi.appPurchaseclaimRequestMain(id)
- message.success(t('审批通过成功!'))
+ message.success(t('ts.审批通过成功!'))
tableObject.loading = false
// 刷新列表
await getList()
@@ -373,11 +373,11 @@
const handleTur = async (id : number) => {
try {
// 驳回的二次确认
- await message.confirm('是否驳回所选中数据?')
+ await message.confirm(t('ts.是否驳回所选中数据?'))
tableObject.loading = true
// 发起驳回
await PurchaseclaimRequestMainApi.rejPurchaseclaimRequestMain(id)
- message.success(t('驳回成功!'))
+ message.success(t('ts.驳回成功!'))
tableObject.loading = false
// 刷新列表
await getList()
@@ -390,11 +390,11 @@
const genRecords = async (id : number) => {
try {
// 处理的二次确认
- await message.confirm('是否处理所选中数据?')
+ await message.confirm(t('ts.是否处理所选中数据?'))
tableObject.loading = true
// 发起处理
await PurchaseclaimRequestMainApi.genRecordsPurchaseclaimRequestMain(id)
- message.success(t('处理成功!'))
+ message.success(t('ts.处理成功!'))
tableObject.loading = false
// 刷新列表
await getList()
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
index 1333f4297..7489d6331 100644
--- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
@@ -29,7 +29,7 @@
v-model:sort="tableObject.sort"
>
-
+
{{ row.number }}
@@ -54,26 +54,26 @@
{
// 发起导出
exportLoading.value = true
const data = await SupplierinvoiceRecordMainApi.exportSupplierinvoiceRecordMain(tableObject.params)
- download.excel(data, '供应商发票记录主.xlsx')
+ download.excel(data, `${t('ts.供应商发票记录主')}.xlsx`)
} catch {
} finally {
exportLoading.value = false
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
index 64e72c704..297095d5d 100644
--- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
@@ -75,23 +75,23 @@
-
+
{{ row.code }}
@@ -146,7 +146,7 @@ const butttondata = (row) =>{
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-invoiced:delete'}), // 删除
// defaultButtons.mainListEditBtn({hasPermi:'wms:supplierinvoice-invoiced:update'}),
{
- label: '审核通过',
+ label: t('ts.审核通过'),
name: 'agree',
hide: isShowMainButton(row, ['1']),
type: 'primary',
@@ -155,7 +155,7 @@ const butttondata = (row) =>{
hasPermi: 'wms:supplierinvoice-invoiced:agree'
},
{
- label: '作废',
+ label: t('ts.作废'),
name: 'refuse',
hide: isShowMainButton(row, ['1']),
type: 'danger',
@@ -192,7 +192,7 @@ const formsSuccess = async (formType,data) => {
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
- message.error('失效时间要大于生效时间')
+ message.error(t('ts.失效时间要大于生效时间'))
return;
}
}
@@ -232,11 +232,11 @@ const handleDelete = async (id: number) => {
const handleAgree = async (id : number) => {
try {
// 审批通过的二次确认
- await message.confirm('是否审批通过所选中数据?')
+ await message.confirm(t('ts.是否审批通过所选中数据?'))
tableObject.loading = true
// 发起审批通过
await SupplierinvoiceInvoicedApi.agreeSupplierinvoiceInvoiced(id)
- message.success(t('审批通过成功!'))
+ message.success(t('ts.审批通过成功!'))
tableObject.loading = false
// 刷新列表
await getList()
@@ -250,11 +250,11 @@ const handleAgree = async (id : number) => {
const handleRefuse = async (id : number) => {
try {
// 审批通过的二次确认
- await message.confirm('是否审批拒绝所选中数据?')
+ await message.confirm(t('ts.是否审批拒绝所选中数据?'))
tableObject.loading = true
// 发起审批通过
await SupplierinvoiceInvoicedApi.refuseSupplierinvoiceInvoiced(id)
- message.success(t('审批成功!'))
+ message.success(t('ts.审批成功!'))
tableObject.loading = false
// 刷新列表
await getList()
@@ -272,7 +272,7 @@ const handleExport = async () => {
// 发起导出
exportLoading.value = true
const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoiced(tableObject.params)
- download.excel(data, '待开票.xlsx')
+ download.excel(data, `${t('ts.待开票')}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -287,7 +287,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '待开票导入模版.xlsx'
+ templateTitle: `${t('ts.待开票导入模版')}.xlsx`''
})
// 导入成功之后
const importSuccess = () => {