|
|
@@ -52,7 +52,7 @@
|
|
|
|
|
|
<!--添加编辑弹窗-->
|
|
|
<el-dialog
|
|
|
- :title="businesstypeData.label"
|
|
|
+ :title="businesstypeData.label +' - '+ businesstypeData.reportsType"
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="documentVisible"
|
|
|
append-to-body
|
|
|
@@ -97,6 +97,12 @@
|
|
|
:documentForm="documentForm"
|
|
|
></Receipt-Notice_ONE>
|
|
|
|
|
|
+ <Receipt-Notice_HISENSE
|
|
|
+ v-else-if="businesstypeData.reportsType == 'RHTZ-HISENSE'"
|
|
|
+ :businesstypeData="businesstypeData"
|
|
|
+ :documentForm="documentForm"
|
|
|
+ ></Receipt-Notice_HISENSE>
|
|
|
+
|
|
|
<BillofLadingDetails
|
|
|
v-else-if="businesstypeData.reportsType == 'TDXQ' || businesstypeData.reportsType == 'DCWTS'"
|
|
|
:businesstypeData="businesstypeData"
|
|
|
@@ -212,6 +218,8 @@ import ReceiptNotice_HMM from "@/views/iosBasicData/SeafreightExportF/bills/asse
|
|
|
import ReceiptNotice_MELL from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsFrame/receiptNotice_MELL.vue";
|
|
|
import ReceiptNotice_OOCL from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsFrame/receiptNotice_OOCL.vue";
|
|
|
import ReceiptNotice_ONE from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsFrame/receiptNotice_ONE.vue";
|
|
|
+import ReceiptNotice_HISENSE from "@/views/iosBasicData/SeafreightExportF/bills/assembly/reportformsFrame/receiptNotice_HISENSE.vue";
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
ReceiptNotice_ONE,
|
|
|
@@ -219,6 +227,7 @@ export default {
|
|
|
ReceiptNotice_MELL,
|
|
|
ReceiptNotice_HMM,
|
|
|
ReceiptNotice_CMA,
|
|
|
+ ReceiptNotice_HISENSE,
|
|
|
businessReports,
|
|
|
DispatchNotice,
|
|
|
ReceiptNotice,
|
|
|
@@ -318,7 +327,10 @@ export default {
|
|
|
|
|
|
documentVisible: false, // 单证添加编辑弹窗
|
|
|
editData: {}, // 编辑弹窗的数据
|
|
|
- documentForm: {}, // 添加编辑弹窗的数据
|
|
|
+ documentForm: {
|
|
|
+ dept:{},
|
|
|
+ user: {},
|
|
|
+ }, // 添加编辑弹窗的数据
|
|
|
documenturl: "", // 报表的url 暂存
|
|
|
// 左侧配置项
|
|
|
treeOption: {
|
|
|
@@ -334,7 +346,8 @@ export default {
|
|
|
children: "children"
|
|
|
}
|
|
|
},
|
|
|
- reportTypeData: [
|
|
|
+ reportTypeData: [],
|
|
|
+ reportTypeData_backs: [
|
|
|
{
|
|
|
label: "标准入货通知",
|
|
|
// cnName: '入货通知',
|
|
|
@@ -604,7 +617,10 @@ export default {
|
|
|
if (type) {
|
|
|
this.reportslogListfun(this.documentPage, { ...this.query, reportsCode: row.reportsCode });
|
|
|
this.editData = {};
|
|
|
- this.documentForm = {};
|
|
|
+ this.documentForm = {
|
|
|
+ dept:{},
|
|
|
+ user: {},
|
|
|
+ };
|
|
|
this.documenturl = {};
|
|
|
this.documentVisible = false;
|
|
|
}
|
|
|
@@ -766,6 +782,110 @@ export default {
|
|
|
this.$set(this.documentForm, "reserve3", "请于周 中午12:00之前发推/退舱通知,\n过时收取退舱费 200/TEU");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ this.$set(this.documentForm, "cmaENS", "");
|
|
|
+ this.$set(this.documentForm, "hlagICS2", "");
|
|
|
+
|
|
|
+ if(this.documentForm.hmmEdi){
|
|
|
+ for(const key in this.documentForm.hmmEdi){
|
|
|
+ if(this.documentForm.hmmEdi[key]==null){
|
|
|
+ this.documentForm.hmmEdi[key]=''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let hmmEdi = this.documentForm.hmmEdi;
|
|
|
+ let cmaENS = [], hlagICS2 = []
|
|
|
+ if(hmmEdi.ensFillingFlag==='A'){
|
|
|
+ // F12/F13
|
|
|
+ cmaENS.push("ENS申报方式:" + hmmEdi.ensFillingFlag + " - F12/F13")
|
|
|
+ if(hmmEdi.applicant) cmaENS.push("EORI NO:" + hmmEdi.applicant)
|
|
|
+ if(hmmEdi.ensHblNo) cmaENS.push("HB/L NO:" + hmmEdi.ensHblNo)
|
|
|
+ }
|
|
|
+ if(hmmEdi.ensFillingFlag==='B'){
|
|
|
+ // F10
|
|
|
+ cmaENS.push("ENS申报方式:" + hmmEdi.ensFillingFlag + " - F10")
|
|
|
+ if(hmmEdi.ucrNo) cmaENS.push("UCR NO:" + hmmEdi.ucrNo)
|
|
|
+ if(hmmEdi.cusCode) cmaENS.push("CUS CODE:" + hmmEdi.cusCode)
|
|
|
+ let lines1 = hmmEdi.sellerDetails.split("\n")
|
|
|
+ if(lines1.length>0) {
|
|
|
+ cmaENS.push("Seller:" + lines1[0])
|
|
|
+ for (var i=1; i<lines1.length;i++) {
|
|
|
+ cmaENS.push(" " + lines1[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(hmmEdi.buyerCode){
|
|
|
+ cmaENS.push("Buyer EORI NO:" + hmmEdi.buyerCode)
|
|
|
+ }
|
|
|
+ let lines2 = hmmEdi.buyerDetails.split("\n")
|
|
|
+ if(lines2.length>0) {
|
|
|
+ cmaENS.push("Buyer:" + lines2[0])
|
|
|
+ for (var i=1; i<lines2.length;i++) {
|
|
|
+ cmaENS.push(" " + lines2[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(hmmEdi.ensFillingFlag==='C'){
|
|
|
+ // F11
|
|
|
+ cmaENS.push("ENS申报方式:" + hmmEdi.ensFillingFlag + " - F11")
|
|
|
+ if(hmmEdi.ucrNo) cmaENS.push("UCR NO:" + hmmEdi.ucrNo)
|
|
|
+
|
|
|
+ let lines1 = hmmEdi.hblShipperDetails.split("\n")
|
|
|
+ if(lines1.length>0) {
|
|
|
+ cmaENS.push("HBL发货人:" + lines1[0])
|
|
|
+ for (var i=1; i<lines1.length;i++) {
|
|
|
+ cmaENS.push(" " + lines1[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(hmmEdi.hblConsigneeCode){
|
|
|
+ cmaENS.push("HBL收货人 EORI NO:" + hmmEdi.hblConsigneeCode)
|
|
|
+ }
|
|
|
+ let lines2 = hmmEdi.hblConsigneeDetails.split("\n")
|
|
|
+ if(lines2.length>0) {
|
|
|
+ cmaENS.push("HBL收货人:" + lines2[0])
|
|
|
+ for (var i=1; i<lines2.length;i++) {
|
|
|
+ cmaENS.push(" " + lines2[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(hmmEdi.hblNotifyCode){
|
|
|
+ cmaENS.push("HBL通知人 EORI NO:" + hmmEdi.hblNotifyCode)
|
|
|
+ }
|
|
|
+ let lines3 = hmmEdi.hblNotifyDetails.split("\n")
|
|
|
+ if(lines3.length>0) {
|
|
|
+ cmaENS.push("HBL通知人:" + lines3[0])
|
|
|
+ for (var i=1; i<lines3.length;i++) {
|
|
|
+ cmaENS.push(" " + lines3[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ let lines8 = hmmEdi.sellerDetails.split("\n")
|
|
|
+ if(lines8.length>0) {
|
|
|
+ cmaENS.push("Seller:" + lines8[0])
|
|
|
+ for (var i=1; i<lines8.length;i++) {
|
|
|
+ cmaENS.push(" " + lines8[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(hmmEdi.buyerCode){
|
|
|
+ cmaENS.push("Buyer EORI NO:" + hmmEdi.buyerCode)
|
|
|
+ }
|
|
|
+ let lines9 = hmmEdi.buyerDetails.split("\n")
|
|
|
+ if(lines9.length>0) {
|
|
|
+ cmaENS.push("Buyer:" + lines9[0])
|
|
|
+ for (var i=1; i<lines9.length;i++) {
|
|
|
+ cmaENS.push(" " + lines9[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$set(this.documentForm, "cmaENS", cmaENS.join("\n"));
|
|
|
+ this.$set(this.documentForm, "hlagICS2", hlagICS2.join("\n"));
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.documentForm.user){
|
|
|
+ this.$set(this.documentForm.user, "password", "82668660-272");
|
|
|
+ }else{
|
|
|
+ this.$set(this.documentForm, user, {password: "82668660-272"});
|
|
|
+ }
|
|
|
console.log(this.documentForm);
|
|
|
this.documentVisible = true;
|
|
|
});
|
|
|
@@ -922,7 +1042,10 @@ export default {
|
|
|
this.$message.success("操作成功");
|
|
|
this.reportslogListfun(this.documentPage, { ...this.query, reportsCode: res.data.data.reportsCode });
|
|
|
this.editData = {};
|
|
|
- this.documentForm = {};
|
|
|
+ this.documentForm = {
|
|
|
+ dept:{},
|
|
|
+ user: {},
|
|
|
+ };
|
|
|
this.documenturl = {};
|
|
|
this.documentVisible = false;
|
|
|
}
|
|
|
@@ -932,7 +1055,10 @@ export default {
|
|
|
this.dialogPreviewfun(obj);
|
|
|
}else{
|
|
|
this.editData = {};
|
|
|
- this.documentForm = {};
|
|
|
+ this.documentForm = {
|
|
|
+ dept:{},
|
|
|
+ user: {},
|
|
|
+ };
|
|
|
this.documenturl = {};
|
|
|
this.documentVisible = false;
|
|
|
}
|
|
|
@@ -941,14 +1067,20 @@ export default {
|
|
|
// 打印取消
|
|
|
printingCanceling() {
|
|
|
this.editData = {};
|
|
|
- this.documentForm = {};
|
|
|
+ this.documentForm = {
|
|
|
+ dept:{},
|
|
|
+ user: {},
|
|
|
+ };
|
|
|
this.documenturl = {};
|
|
|
this.documentVisible = false;
|
|
|
},
|
|
|
// 左侧筛选
|
|
|
nodeClick(data) {
|
|
|
this.editData = {};
|
|
|
- this.documentForm = {};
|
|
|
+ this.documentForm = {
|
|
|
+ dept:{},
|
|
|
+ user: {},
|
|
|
+ };
|
|
|
this.businesstypeData = {};
|
|
|
this.businesstypeData = data;
|
|
|
this.reportslogListfun(this.documentPage, { reportsType: data.reportsType });
|
|
|
@@ -992,7 +1124,10 @@ export default {
|
|
|
// 类别弹窗关闭
|
|
|
corpTypeClose(done) {
|
|
|
this.editData = {};
|
|
|
- this.documentForm = {};
|
|
|
+ this.documentForm = {
|
|
|
+ dept:{},
|
|
|
+ user: {},
|
|
|
+ };
|
|
|
// this.businesstypeData = {}
|
|
|
done();
|
|
|
},
|