From 181d13a37047b7ff18282ed8adc7e29e1ccac001 Mon Sep 17 00:00:00 2001 From: linfso Date: Wed, 22 May 2024 07:46:37 +0800 Subject: [PATCH] md --- .../emis/emisTmsPack/emisTmsPackForm.vue | 157 +++++-- src/views/emis/emisTmsPack/index.vue | 435 ++++++++---------- .../emisTmsPackDtl/emisTmsPackDtlForm.vue | 125 +++-- src/views/emis/emisTmsPackDtl/index.vue | 375 +++++++-------- .../emis/emisWaybill/emisWaybillRecord.vue | 29 +- 5 files changed, 568 insertions(+), 553 deletions(-) diff --git a/src/views/emis/emisTmsPack/emisTmsPackForm.vue b/src/views/emis/emisTmsPack/emisTmsPackForm.vue index 88db2ae0..c3acaa94 100644 --- a/src/views/emis/emisTmsPack/emisTmsPackForm.vue +++ b/src/views/emis/emisTmsPack/emisTmsPackForm.vue @@ -1,10 +1,10 @@ @@ -62,7 +107,9 @@ import { listEmisTmsPack, getEmisTmsPack, delEmisTmsPack, addEmisTmsPack, update export default { name: "emisTmsPackForm", props:{ - id:undefined + id:{ + type:Number + } }, components: { }, dicts: [ @@ -97,15 +144,17 @@ export default { methods: { initData() { - this.reset(); - if(this.id !=undefined) { + + if(this.id !=null) { this.loading = true; getEmisTmsPack(this.id).then(response => { this.form = response.data; this.loading = false; }); + }else{ + this.reset(); } - this.getTreeselect(); + // this.getTreeselect(); }, // 取消按钮 cancel() { @@ -116,17 +165,35 @@ export default { reset() { this.form = { id: null, - packCode: null, + packNo: null, packName: null, packDate: null, - createSiteCode: null, - modifySiteCode: null, + destCountry: null, + destCountryName: null, + blUnpack: null, + sendStiteCode: null, + nextStiteCode: null, + nextStation: null, + totalParcelQty: null, + totalWaybillQty: null, + totalVolume: null, + totalWeight: null, + packStatus: null, + extData: null, + opMan: null, + ext1: null, + ext2: null, + ext3: null, + ext4: null, + remark: null, + tenantId: null, delFlag: null, createBy: null, createTime: null, updateBy: null, updateTime: null, - remark: null + createSite: null, + updateSite: null }; this.resetForm("form"); }, @@ -148,32 +215,32 @@ export default { } }); }, - /** 转换菜单数据结构 */ - normalizer(node) { - if (node.children && !node.children.length) { - delete node.children; - } - return { - id: node.id, - label: node.idName, - children: node.children - }; - }, - /** 查询菜单下拉树结构 */ - getTreeselect() { - const queryParams = {} - listEmisTmsPack(queryParams).then(response => { - this.emisTmsPackOptions = []; - const rootItem = { idId: 0, emisTmsPackName: '-', children: [] }; - rootItem.children = this.handleTree(response.data, "id"); - this.emisTmsPackOptions.push(rootItem); + // /** 转换菜单数据结构 */ + // normalizer(node) { + // if (node.children && !node.children.length) { + // delete node.children; + // } + // return { + // id: node.id, + // label: node.idName, + // children: node.children + // }; + // }, + // /** 查询菜单下拉树结构 */ + // getTreeselect() { + // const queryParams = {} + // listEmisTmsPack(queryParams).then(response => { + // this.emisTmsPackOptions = []; + // const rootItem = { idId: 0, emisTmsPackName: '-', children: [] }; + // rootItem.children = this.handleTree(response.data, "id"); + // this.emisTmsPackOptions.push(rootItem); - if(this.parentId != undefined) { - this.form.parentId = this.parentId; - } + // if(this.parentId != undefined) { + // this.form.parentId = this.parentId; + // } - }); - }, + // }); + // }, } }; diff --git a/src/views/emis/emisTmsPack/index.vue b/src/views/emis/emisTmsPack/index.vue index b0d2f9e5..f0ea009c 100644 --- a/src/views/emis/emisTmsPack/index.vue +++ b/src/views/emis/emisTmsPack/index.vue @@ -1,11 +1,11 @@ @@ -244,12 +276,12 @@ diff --git a/src/views/emis/emisTmsPackDtl/index.vue b/src/views/emis/emisTmsPackDtl/index.vue index 8aadd37c..8ef122ff 100644 --- a/src/views/emis/emisTmsPackDtl/index.vue +++ b/src/views/emis/emisTmsPackDtl/index.vue @@ -1,19 +1,11 @@ @@ -216,12 +213,12 @@