|
|
@@ -690,7 +690,48 @@ export default {
|
|
|
this.documentForm.attachedGoodsdesc = 0;
|
|
|
this.documentForm.attached = 0;
|
|
|
this.documentForm.attachedCntr = 0;
|
|
|
+ //收发通换行
|
|
|
+ if (this.documentForm.hshipperDetails) {
|
|
|
+ let arrDeteil = [];
|
|
|
+ arrDeteil = this.documentForm.hshipperDetails.split("\n");
|
|
|
+ if (arrDeteil.length > this.textareaNumber) {
|
|
|
+ this.documentForm.hshipperDetails = arrDeteil.slice(0, this.textareaNumber).join("\n") + "*";
|
|
|
+ this.documentForm.commodityDescr += "\n*" + arrDeteil.slice(this.textareaNumber, arrDeteil.length).join("\n");
|
|
|
+ } else {
|
|
|
+ this.documentForm.hshipperDetails = this.documentForm.hshipperDetails;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.documentForm.hconsigneeDetails) {
|
|
|
+ let arrDeteil = []
|
|
|
+ arrDeteil = this.documentForm.hconsigneeDetails.split('\n')
|
|
|
+ if (arrDeteil.length > this.textareaNumber) {
|
|
|
+ this.documentForm.hconsigneeDetails = arrDeteil.slice(0, this.textareaNumber).join('\n') + '**'
|
|
|
+ this.documentForm.commodityDescr += "\n**" + arrDeteil.slice(this.textareaNumber, arrDeteil.length).join('\n')
|
|
|
+ } else {
|
|
|
+ this.documentForm.hconsigneeDetails = this.documentForm.hconsigneeDetails
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
+ if (this.documentForm.hnotifyDetails) {
|
|
|
+ let arrDeteil = []
|
|
|
+ arrDeteil = this.documentForm.hnotifyDetails.split('\n')
|
|
|
+ if (arrDeteil.length > this.textareaNumber) {
|
|
|
+ this.documentForm.hnotifyDetails = arrDeteil.slice(0, this.textareaNumber).join('\n') + '***'
|
|
|
+ this.documentForm.commodityDescr += "\n***" + arrDeteil.slice(this.textareaNumber, arrDeteil.length).join('\n')
|
|
|
+ } else {
|
|
|
+ this.documentForm.hnotifyDetails = this.documentForm.hnotifyDetails
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.documentForm.forwarding) {
|
|
|
+ let arrDeteil = []
|
|
|
+ arrDeteil = this.documentForm.forwarding.split('\n')
|
|
|
+ if (arrDeteil.length > this.textareaNumber) {
|
|
|
+ this.documentForm.forwarding = arrDeteil.slice(0, this.textareaNumber).join('\n') + '****'
|
|
|
+ this.documentForm.commodityDescr += "\n****" + arrDeteil.slice(this.textareaNumber, arrDeteil.length).join('\n')
|
|
|
+ } else {
|
|
|
+ this.documentForm.forwarding = this.documentForm.forwarding
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this.documentForm.cntryString) {
|
|
|
if (this.documentForm.cntryString.split("\n").length > this.mttachedCntry) {
|
|
|
this.documentForm.attachedCntr = 1;
|
|
|
@@ -722,6 +763,7 @@ export default {
|
|
|
obj.groupCode = this.businesstypeData.groupCode;
|
|
|
obj.reportsType = this.businesstypeData.reportsType;
|
|
|
}
|
|
|
+ console.log(this.documentForm);
|
|
|
obj.printContent = JSON.stringify({
|
|
|
data: {
|
|
|
...this.documentForm,
|