From cab42d53cddeef85037d229aabeb93dbfac81c53 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 3 Dec 2025 16:51:54 +0800 Subject: [PATCH] =?UTF-8?q?hscode=E5=B1=9E=E6=80=A7=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecss/ecss.js | 3 + src/views/modules/ecss/partHsCode.vue | 19 +- src/views/modules/ecss/partHsCodeImport.vue | 259 ++++++++++++++++++++ 3 files changed, 280 insertions(+), 1 deletion(-) create mode 100644 src/views/modules/ecss/partHsCodeImport.vue diff --git a/src/api/ecss/ecss.js b/src/api/ecss/ecss.js index 8977c7d..bf35c30 100644 --- a/src/api/ecss/ecss.js +++ b/src/api/ecss/ecss.js @@ -144,5 +144,8 @@ export const downloadAllPdf = data => createAPI(`/ecss/coDel/downloadAllPdf`,'po // 获取物料包装属性(每卷数量、每箱卷数、箱重量) export const getPartPackageProperties = data => createAPI(`/ecss/coDel/getPartPackageProperties`,'post',data) +// 导入物料包装属性(每卷数量、每箱卷数、每卷重量、箱重量、箱类型) +export const importPartPackageProperties = data => createAPI(`/ecss/coDel/importPartPackageProperties`,'post',data) + diff --git a/src/views/modules/ecss/partHsCode.vue b/src/views/modules/ecss/partHsCode.vue index 28e329a..77ff6db 100644 --- a/src/views/modules/ecss/partHsCode.vue +++ b/src/views/modules/ecss/partHsCode.vue @@ -44,6 +44,7 @@ 查询 + 导入 + + + @@ -315,10 +319,12 @@ import {} from "@/api/sysLanguage.js" import {getBuList}from '@/api/factory/site.js' import orderAttribute from "./orderProperties" + import partHsCodeImport from "./partHsCodeImport" export default { name: "null", components:{ orderAttribute, + partHsCodeImport, }, data() { return { @@ -852,7 +858,12 @@ if(this.currentRow===''||this.currentRow===null){ this.currentRow={site:'',partNo:'',buNo:'',recordType:''} } - + // 刷新基本信息组件 + if (this.activeName === 'attribute' && this.$refs.dialogAttribute) { + this.$nextTick(() => { + this.$refs.dialogAttribute.getProperties() + }) + } }, async createExportData () { this.searchData.limit = -1 @@ -890,6 +901,12 @@ } }) }, + /** + * 打开导入弹窗 + */ + openImportDialog() { + this.$refs.partHsCodeImport.init() + }, hsCodeModel(row){ this.hsCodeModelData=JSON.parse(JSON.stringify(row)) this.hsCodeModelFlag=true diff --git a/src/views/modules/ecss/partHsCodeImport.vue b/src/views/modules/ecss/partHsCodeImport.vue new file mode 100644 index 0000000..b0ce602 --- /dev/null +++ b/src/views/modules/ecss/partHsCodeImport.vue @@ -0,0 +1,259 @@ + + + + + +