Browse Source

导入注意事项

hella_online_20240829
wangyufei 2 months ago
parent
commit
988da79857
  1. 20
      src/components/ImportForm/src/ImportForm.vue
  2. 1
      src/locales/en-US.ts
  3. 1
      src/locales/zh-CN.ts
  4. 12
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

20
src/components/ImportForm/src/ImportForm.vue

@ -34,6 +34,18 @@
<div class="el-upload__text">{{t('ts.将文件拖到此处,或')}}<em>{{t('ts.点击上传')}}</em></div>
<template #tip>
<div class="el-upload__tip ml--126px mr--80px">
<div class="flex" v-if="announcements&&announcements.length>0">
<div
class="label h-32px ml-22px mr-26px color-#acaeb3 font-size-14px w-100px text-right mt-2px"
style="line-height: 32px;"
>{{t('ts.注意事项')}}</div
>
<div class="">
<div class="notice color-#acaeb3 font-size-14px text-red">
<div class="mt-2" v-for="item in announcements">{{ item }}</div>
</div>
</div>
</div>
<div class="flex">
<div
class="label h-32px mr-26px color-#acaeb3 font-size-14px w-100px text-right"
@ -209,6 +221,11 @@ const props = defineProps({
type: String,
required: false,
default: ''
},
announcements:{
type: Array,
required: false,
default: []
}
})
const importTemplateData = ref(props.importTemplateData)
@ -337,6 +354,9 @@ const importTemplate = () => {
</script>
<style scoped lang="scss">
.text-red{
color: var(--el-color-danger);
}
.tips {
div {
position: relative;

1
src/locales/en-US.ts

@ -924,6 +924,7 @@ export default {
:'Place',
'影响明细中物料代码,需在供应商物料中维护':'The material code in the details is affected , must be maintained in the supplier\'s material',
:'External resource or not',
:'Announcements',
:'Import Mode',
:'Please select content',
:'Please select condition',

1
src/locales/zh-CN.ts

@ -924,6 +924,7 @@ export default {
:'地点',
'影响明细中物料代码,需在供应商物料中维护':'影响明细中物料代码,需在供应商物料中维护',
:'是否外部资源',
:'注意事项',
:'导入模式',
:'请选择内容',
:'请选择条件',

12
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -97,7 +97,7 @@
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/purchase-plan-main/import" :importTemplateData="importTemplateData"
<ImportForm ref="importFormRef" url="/wms/purchase-plan-main/import" :importTemplateData="importTemplateData" :announcements = "announcements"
@success="importSuccess" :updateIsDisable="false" :appendIsDisable="true" :coverIsDisable="true" :mode="1" :coverIsShow="false" :appendIsShow="false"/>
<!-- 创建供应商发货申请 -->
<supplierdeliverBasicForm ref="supplierdeliverFormRef" @getList="getList" ></supplierdeliverBasicForm>
@ -117,6 +117,15 @@
import * as PurchaseMainApi from '@/api/wms/purchaseMain'
import { PurchaseMain } from '../purchaseMain/purchaseMain.data'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const { wsCache } = useCache()
const language = wsCache.get('lang')
const announcements = ref<any>([])
if('en-US'==language){
announcements.value = ["1. The total number of data items of the quantity of goods in the template does not exceed 1000 data (row × column).","2. All data content in the template is in text format, and formula content cannot be used as import data","3. The delivery date is in YYYY-MM-DD format, no hours, minutes and seconds are required"]
}else{
announcements.value = ["1. 模板中要货数量数据项总数不超过1000个数据(行×列)","2. 模板中全部数据内容格式为文本格式,不能使用公式内容作为导入数据","3. 要货日期为YYYY-MM-DD格式,不需填写时分秒"]
}
//
defineOptions({ name: 'PurchasePlanMain' })
@ -479,7 +488,6 @@ const getSearchTableData = async (number,formField,searchField)=>{
}
}
//
const { wsCache } = useCache()
/** 详情操作 */
const detailRef = ref()
const openDetail = (row : any, titleName : any, titleValue : any) => {

Loading…
Cancel
Save