From 791641e9b3e08f4f7955d0875a7c7ce38ceaa842 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Tue, 3 Dec 2024 19:32:21 +0800 Subject: [PATCH] =?UTF-8?q?YT-1440=EF=BC=9ASCP01.SPARC=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ImportForm/src/ImportFormPlanCSV.vue | 381 ++++++++++++++++++ .../purchasePlanMain/index.vue | 6 +- .../purchasePlanMain/purchasePlanMain.data.ts | 11 + 3 files changed, 395 insertions(+), 3 deletions(-) create mode 100644 src/components/ImportForm/src/ImportFormPlanCSV.vue diff --git a/src/components/ImportForm/src/ImportFormPlanCSV.vue b/src/components/ImportForm/src/ImportFormPlanCSV.vue new file mode 100644 index 000000000..b38c14e3a --- /dev/null +++ b/src/components/ImportForm/src/ImportFormPlanCSV.vue @@ -0,0 +1,381 @@ + + + + + + {{t('ts.将文件拖到此处,或')}}{{t('ts.点击上传')}} + + + + {{t('ts.注意事项')}} + + + {{ item }} + + + + + {{t('ts.导入模式')}} + + + + {{ t('ts.更新')}} + {{ t('ts.追加') }} + {{ t('ts.覆盖') }} + + + + + {{t('ts.更新:新增并修改')}} + {{ t('ts.追加:只新增,不修改') }} + {{ t('ts.覆盖:只修改不新增') }} + + + + + {{ t('ts.部分保存') }} + + + + + + {{ t('ts.部分保存:如存在错误数据,正确数据正常导入') }} + {{ t('ts.全部保存:全部数据正确,才能导入') }} + + + + + 是否外部资源 + + + + + + + + + + + + + + + {{ t('ts.确 定') }} + {{ t('ts.取 消') }} + + + + + + + diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 326cb52b1..0034bd503 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -102,7 +102,7 @@ /> - @@ -132,7 +132,7 @@ const { loadStart, loadDone } = usePageLoading() 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格式,不需填写时分秒"] + //announcements.value = ["1. 模板中要货数量数据项总数不超过1000个数据(行×列)","2. 模板中全部数据内容格式为文本格式,不能使用公式内容作为导入数据","3. 要货日期为YYYY-MM-DD格式,不需填写时分秒"] } // 要货计划 defineOptions({ name: 'PurchasePlanMain' }) @@ -375,7 +375,7 @@ const getSearchTableData = async (number,formField,searchField)=>{ // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultAddBtn({ hasPermi: 'wms:purchase-plan-main:create' }), // 新增 - // defaultButtons.defaultImportBtn({ hasPermi: 'wms:purchase-plan-main:import' }), // 导入 + defaultButtons.defaultImportBtn({ hasPermi: 'wms:purchase-plan-main:import' }), // 导入 // defaultButtons.defaultExportBtn({ hasPermi: 'wms:purchase-plan-main:export' }), // 导出 defaultButtons.defaultExportDetailsBtn({ hasPermi: 'wms:purchase-plan-main:export' }), // 导出明细 //defaultButtons.defaultExportTableBtn({ hasPermi: 'wms:purchase-plan-main:export' }), // 导出二维表 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index 4aac3316e..ca0c6b8bd 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -268,6 +268,17 @@ export const PurchasePlanMain = useCrudSchemas( width: 150 }, }, + { + label: '便次', + field: 'deliNo', + sort: 'custom', + isTable: true, + isForm: false, + sortTableDefault: 13, + table: { + width: 150 + }, + }, { label: '收货人', field: 'contacts',