Browse Source

中英文翻译

master_hella_20240701
yufei0306 5 months ago
parent
commit
04a4d0d169
  1. 4
      src/layout/components/Breadcrumb/src/Breadcrumb.vue
  2. 4
      src/layout/components/Menu/src/components/useRenderMenuTitle.tsx
  3. 2
      src/layout/components/TagsView/src/TagsView.vue
  4. 71
      src/locales/en-US.ts
  5. 70
      src/locales/zh-CN.ts
  6. 2
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  7. 2
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  8. 4
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
  9. 4
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue
  10. 12
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
  11. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  12. 2
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue
  13. 2
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
  14. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  15. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  16. 8
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  17. 8
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
  18. 46
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  19. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue
  20. 16
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  21. 12
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
  22. 52
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  23. 20
      src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

4
src/layout/components/Breadcrumb/src/Breadcrumb.vue

@ -54,10 +54,10 @@ export default defineComponent({
{meta?.icon && breadcrumbIcon.value ? (
<>
<Icon icon={meta.icon} class="mr-[2px]" svgClass="inline-block"></Icon>
{t(v?.meta?.title)}
{t(`ts.${v?.meta?.title}`).replace('ts.','')}
</>
) : (
t(v?.meta?.title)
t(`ts.${v?.meta?.title}`).replace('ts.','')
)}
</ElBreadcrumbItem>
)

4
src/layout/components/Menu/src/components/useRenderMenuTitle.tsx

@ -9,10 +9,10 @@ export const useRenderMenuTitle = () => {
return icon ? (
<>
<Icon icon={meta.icon}></Icon>
<span class="v-menu__title">{t(title as string)}</span>
<span class="v-menu__title">{t(`ts.${title}` as string).replace('ts.','')}</span>
</>
) : (
<span class="v-menu__title">{t(title as string)}</span>
<span class="v-menu__title">{t(`ts.${title}` as string).replace('ts.','')}</span>
)
}

2
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.','') }}
<Icon
:class="`${prefixCls}__item--close`"
color="#333"

71
src/locales/en-US.ts

@ -987,9 +987,76 @@ export default {
'要货计划数量不得大于订单数量-已计划数量':'The planned quantity of the requested goods shall not be greater than the order quantity - the planned quantity',
'子列表数量不能空':'The number of sublists cannot be empty',
'要货计划主导入模版':'The request plan leads into the template',
:'The material code already exists',
:'already exists',
:'Refusal',
:'Approve',
:'Demand forecast master data',
:'Create a supplier shipping request',
'是否重新打开所选中数据?':'Do you want to reopen the selected data?',
'请先上传自检报告!':'Please upload the self-test report first!',
'提交审批成功!':'Submitted for approval!',
'是否提交审批所选中数据?':'Do you want to submit the selected data for approval?',
'是否审批通过所选中数据?':'Is the selected data approved?',
'审批通过成功!':'Approval is successful!',
'是否处理所选中数据?':'Do you process the selected data?',
'处理成功!':'Processing success!',
:'Supplier delivery request master data',
'是否为此数据生成标签?':'Are labels generated for this data?',
:'Label created successfully',
:'Please first select the data you want to print',
:'Failed to create label',
:'The production date cannot be longer than the expiration date',
'计划到货时间大于要货计划送达日期是否继续?':'The planned arrival time is greater than the planned delivery date. Do you want to continue?',
'子表明细不能为空!':'Subindicates that the detail cannot be empty!',
:'The purchase request was successfully generated',
'确认生成采购申请吗?':'Confirm to generate purchase application?',
:'Supplier shipment record master data',
'确认生成上架申请吗?':'Are you sure to generate a listing application?',
:'The listing application was successfully generated',
'确认生成到货检验申请吗?':'Is the arrival inspection application confirmed to be generated?',
:'The arrival inspection application was successfully generated',
:'Purchase receipt record master data',
退:'Purchase return record master data',
:'Appendix to the contract',
:'Invoice Attachment',
:'Attachment to the waybill',
:'Other Attachment',
:'Print Detail',
:'Print all invoices',
:'Export Details',
:'Print',
:'Purchase Approval',
:'Purchase Rejection',
:'Supplier Confirmation',
:'Financial Approval',
:'Financial Rejection',
'是否确认发票寄出选中数据?':'Do you confirm that the invoice is sent out with selected data?',
'发票寄出成功!':'Invoice sent successfully!',
:'Supplier invoice request master data',
:'Please provide detailed data',
'明细数据条数已超过最大数量限制【999条】':'The number of detailed data items has exceeded the maximum limit [999 items]',
:'Supplier delivery request is led into the template',
:'Supplier invoice request details',
:'Supplier invoice record master data',
:'Pass the audit',
:'Cancellation',
'是否审批拒绝所选中数据?':'Do you want to approve and reject selected data?',
'审批成功!':'Approval is successful!',
:'To be invoiced',
:'Import template to be invoiced',
:'purchase order',
:'Demand forecast',
:'Supplier shipment record',
:'Supplier invoice',
:'basic data',
router: {
login: 'Login',
home: 'Home',
analysis: 'Analysis',
workplace: 'Workplace'
},
},
}
}

70
src/locales/zh-CN.ts

@ -987,11 +987,77 @@ export default {
'要货计划数量不得大于订单数量-已计划数量':'要货计划数量不得大于订单数量-已计划数量',
'子列表数量不能空':'子列表数量不能空',
'要货计划主导入模版':'要货计划主导入模版',
:'物料代码已经存在',
:'已经存在',
:'驳回',
:'审批通过',
:'要货预测主',
:'创建供应商发货申请',
'是否重新打开所选中数据?':'是否重新打开所选中数据?',
'请先上传自检报告!':'请先上传自检报告!',
'提交审批成功!':'提交审批成功!',
'是否提交审批所选中数据?':'是否提交审批所选中数据?',
'是否审批通过所选中数据?':'是否审批通过所选中数据?',
'审批通过成功!':'审批通过成功!',
'是否处理所选中数据?':'是否处理所选中数据?',
'处理成功!':'处理成功!',
:'供应商发货申请主',
'是否为此数据生成标签?':'是否为此数据生成标签?',
:'创建标签成功',
:'请先选择要打印的数据',
:'创建标签失败',
:'生产日期不可以大于过期日期',
'计划到货时间大于要货计划送达日期是否继续?':'计划到货时间大于要货计划送达日期是否继续?',
'子表明细不能为空!':'子表明细不能为空!',
:'采购申请生成成功',
'确认生成采购申请吗?':'确认生成采购申请吗?',
:'供应商发货记录主',
'确认生成上架申请吗?':'确认生成上架申请吗?',
:'上架申请生成成功',
'确认生成到货检验申请吗?':'确认生成到货检验申请吗?',
:'到货检验申请生成成功',
:'采购收货记录主',
退:'采购退货记录主',
:'合同附件t',
:'发票附件',
:'货运单附件',
:'其他附件',
:'打印明细',
:'打印全部发货单',
:'导出明细',
:'打印',
:'采购通过',
:'采购驳回',
:'供应商确认',
:'财务通过',
:'财务驳回',
'是否确认发票寄出选中数据?':'是否确认发票寄出选中数据?',
'发票寄出成功!':'发票寄出成功!',
:'供应商发票申请主',
:'请添明细数据',
'明细数据条数已超过最大数量限制【999条】':'明细数据条数已超过最大数量限制【999条】',
:'供应商发货申请主导入模版',
:'供应商发票申请明细',
:'供应商发票记录主',
:'审核通过',
:'作废',
'是否审批拒绝所选中数据?':'是否审批拒绝所选中数据?',
'审批成功!':'审批成功!',
:'待开票',
:'待开票导入模版',
:'采购订单',
:'要货预测',
:'供应商发货记录',
:'供应商发票',
:'基础数据',
router: {
login: '登录',
home: '首页',
analysis: '分析页',
workplace: '工作台'
},
},
}
}

2
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -183,7 +183,7 @@ const formsSuccess = async (formType,data) => {
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
message.error(t('ts.失效时间要大于生效时间'))
return;
}
}

2
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
}
}

4
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #supplierCode="{row}">
<el-button type="primary" link @click="openDetail(row, '供应商代码', row.supplierCode)">
<el-button type="primary" link @click="openDetail(row, t('ts.供应商代码'), row.supplierCode)">
<span>{{ row.supplierCode }}</span>
</el-button>
</template>
@ -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;
}
}

4
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

12
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

2
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('创建标签成功')

2
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

2
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('创建标签成功')

6
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`
})
//

2
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

8
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

8
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

46
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`
})
//

4
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(() => {

16
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()

12
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

@ -29,7 +29,7 @@
v-model:sort="tableObject.sort"
>
<template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<el-button type="primary" link @click="openDetail(row, t('ts.单据号'), row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
@ -54,26 +54,26 @@
<Detail
ref="detailRef"
:annexTable="[{
label: '合同附件',
label: t('ts.合同附件'),
prop: 'Annex',
tableName:'contract',
showDownload:true,
hiddenDelete:true,
},{
label: '发票附件',
label: t('ts.发票附件'),
prop: 'Annex',
tableName:'invoice',
showDownload:true,
hiddenDelete:true,
},{
label: '货运单附件',
label: t('ts.货运单附件'),
prop: 'Annex',
tableName:'waybill',
showDownload:true,
hiddenDelete:true,
}]"
:annexAlias="{
label:'其他附件',
label:t('ts.其他附件')
showDownload:true,
hiddenDelete:true
}"
@ -179,7 +179,7 @@ const handleExport = async () => {
//
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

52
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -75,23 +75,23 @@
<Detail
ref="detailRef"
:annexTable="[{
label: '合同附件',
label: t('ts.合同附件'),
prop: 'Annex',
tableName:'contract'
},{
label: '发票附件',
label: t('ts.发票附件'),
prop: 'Annex',
tableName:'invoice'
},{
label: '货运单附件',
label: t('ts.货运单附件'),
prop: 'Annex',
tableName:'waybill'
}]"
:annexAlias="{
label:'其他附件'
label:t('ts.其他附件')
}"
:otherHeadButttonData="[{
label: '打印明细',
label: t('ts.打印明细'),
name: 'printing',
hide: false,
type: 'primary',
@ -100,7 +100,7 @@
float:'left',
hasPermi: ''
},{
label: '打印全部发货单',
label: t('ts.打印全部发货单'),
name: 'printing-all',
hide: false,
type: 'primary',
@ -109,7 +109,7 @@
float:'left',
hasPermi: ''
},{
label: '导出明细',
label: t('ts.导出明细'),
name: 'export-detail',
hide: false,
type: 'primary',
@ -119,7 +119,7 @@
hasPermi: ''
}]"
:buttondataTable = "[{
label: '打印',
label: t('ts.打印'),
name: 'print',
hide: false,
type: 'primary',
@ -192,7 +192,7 @@
const searchTableParams = ref([
{
formField: 'supplierCode',
searchTableTitle: '供应商信息',
searchTableTitle: t('ts.供应商信息'),
searchTableAllSchemas: Supplier.allSchemas,
searchTablePage: SupplierApi.getSupplierPage
}
@ -473,11 +473,11 @@ const handleImport = () => {
const handleSub = async (id : number) => {
try {
//
await message.confirm('是否提交审批所选中数据?')
await message.confirm(t('ts.是否提交审批所选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.subSupplierinvoiceRequestMain(id)
message.success(t('提交审批成功!'))
message.success(t('ts.提交审批成功!'))
tableObject.loading = false
//
await getList()
@ -490,11 +490,11 @@ const handleImport = () => {
const handleApp = async (id : number) => {
try {
//
await message.confirm('是否审批通过所选中数据?')
await message.confirm(t('ts.是否审批通过所选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.appSupplierinvoiceRequestMain(id)
message.success(t('审批通过成功!'))
message.success(t('ts.审批通过成功!'))
tableObject.loading = false
//
await getList()
@ -508,11 +508,11 @@ const handleImport = () => {
const handleFinanceApp = async (id : number) => {
try {
//
await message.confirm('是否审批通过所选中数据?')
await message.confirm(t('ts.是否审批通过所选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.financeappSupplierinvoiceRequestMain(id)
message.success(t('审批通过成功!'))
message.success(t('ts.审批通过成功!'))
tableObject.loading = false
//
await getList()
@ -525,11 +525,11 @@ const handleImport = () => {
const handleTur = async (id : number) => {
try {
//
await message.confirm('是否驳回所选中数据?')
await message.confirm(t('ts.是否驳回所选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.rejSupplierinvoiceRequestMain(id)
message.success(t('驳回成功!'))
message.success(t('ts.驳回成功!'))
tableObject.loading = false
//
await getList()
@ -542,11 +542,11 @@ const handleImport = () => {
const handleInvoiceSentOut = async (id : number) => {
try {
//
await message.confirm('是否确认发票寄出选中数据?')
await message.confirm(t('ts.是否确认发票寄出选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.invoiceSentOutSupplierinvoiceRequestMain(id)
message.success(t('发票寄出成功!'))
message.success(t('ts.发票寄出成功!'))
tableObject.loading = false
//
await getList()
@ -559,11 +559,11 @@ const handleImport = () => {
const handleFinaceTur = async (id : number) => {
try {
//
await message.confirm('是否驳回所选中数据?')
await message.confirm(t('ts.是否驳回所选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.financerejSupplierinvoiceRequestMain(id)
message.success(t('驳回成功!'))
message.success(t('ts.驳回成功!'))
tableObject.loading = false
//
await getList()
@ -576,11 +576,11 @@ const handleImport = () => {
const genRecords = async (id : number) => {
try {
//
await message.confirm('是否处理所选中数据?')
await message.confirm(t('ts.是否处理所选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.genRecordsSupplierinvoiceRequestMain(id)
message.success(t('处理成功!'))
message.success(t('ts.处理成功!'))
tableObject.loading = false
//
await getList()
@ -598,7 +598,7 @@ const handleImport = () => {
//
exportLoading.value = true
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestMain(tableObject.params)
download.excel(data, '供应商发票申请主.xlsx')
download.excel(data, `${t('ts.供应商发票申请主')}.xlsx`)
} catch {
} finally {
exportLoading.value = false
@ -658,7 +658,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '供应商发货申请主导入模版.xlsx'
templateTitle: `${t('ts.供应商发货申请主导入模版')}.xlsx`
})
//
@ -714,7 +714,7 @@ const importSuccess = () => {
masterId: masterId
}
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestDetail(params)
download.excel(data, '供应商发票申请明细.xlsx')
download.excel(data, `${t('ts.供应商发票申请明细')}.xlsx`)
} catch {
} finally {
exportLoadingDetail.value = false

20
src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

@ -28,7 +28,7 @@
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<el-button type="primary" link @click="openDetail(row, t('ts.代码'), row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
@ -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 = () => {

Loading…
Cancel
Save