diff --git a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue index 6194881f..05115058 100644 --- a/jshERP-web/src/views/bill/modules/AllocationOutModal.vue +++ b/jshERP-web/src/views/bill/modules/AllocationOutModal.vue @@ -219,7 +219,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/AssembleModal.vue b/jshERP-web/src/views/bill/modules/AssembleModal.vue index d58336f2..7d168fb4 100644 --- a/jshERP-web/src/views/bill/modules/AssembleModal.vue +++ b/jshERP-web/src/views/bill/modules/AssembleModal.vue @@ -220,7 +220,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/DisassembleModal.vue b/jshERP-web/src/views/bill/modules/DisassembleModal.vue index a7164956..f59d8e42 100644 --- a/jshERP-web/src/views/bill/modules/DisassembleModal.vue +++ b/jshERP-web/src/views/bill/modules/DisassembleModal.vue @@ -219,7 +219,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/OtherInModal.vue b/jshERP-web/src/views/bill/modules/OtherInModal.vue index 491b8efb..0bb1fa37 100644 --- a/jshERP-web/src/views/bill/modules/OtherInModal.vue +++ b/jshERP-web/src/views/bill/modules/OtherInModal.vue @@ -249,7 +249,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/OtherOutModal.vue b/jshERP-web/src/views/bill/modules/OtherOutModal.vue index f0295ddb..07c6cbdb 100644 --- a/jshERP-web/src/views/bill/modules/OtherOutModal.vue +++ b/jshERP-web/src/views/bill/modules/OtherOutModal.vue @@ -247,7 +247,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue index 62b459d9..888a50f1 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue @@ -339,7 +339,11 @@ } billMain.accountIdList = this.accountIdList.length>0 ? JSON.stringify(this.accountIdList) : "" billMain.accountMoneyList = this.accountMoneyList.length>0 ? JSON.stringify(this.accountMoneyList) : "" - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue index 619dcb64..0bef0360 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseInModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseInModal.vue @@ -365,7 +365,11 @@ this.accountMoneyList = changeListFmtMinus(this.accountMoneyList) billMain.accountIdList = this.accountIdList.length>0 ? JSON.stringify(this.accountIdList) : "" billMain.accountMoneyList = this.accountMoneyList.length>0 ? JSON.stringify(this.accountMoneyList) : "" - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue index 88ed0e16..4edd72b8 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue @@ -257,7 +257,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = 0-totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/RetailBackModal.vue b/jshERP-web/src/views/bill/modules/RetailBackModal.vue index 44878e3e..d08bd999 100644 --- a/jshERP-web/src/views/bill/modules/RetailBackModal.vue +++ b/jshERP-web/src/views/bill/modules/RetailBackModal.vue @@ -317,7 +317,11 @@ } billMain.totalPrice = 0-totalPrice billMain.changeAmount = 0-billMain.changeAmount - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/RetailOutModal.vue b/jshERP-web/src/views/bill/modules/RetailOutModal.vue index 97c1d9ec..1a7c24f8 100644 --- a/jshERP-web/src/views/bill/modules/RetailOutModal.vue +++ b/jshERP-web/src/views/bill/modules/RetailOutModal.vue @@ -336,7 +336,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/SaleBackModal.vue b/jshERP-web/src/views/bill/modules/SaleBackModal.vue index e9b3a26b..c3500a05 100644 --- a/jshERP-web/src/views/bill/modules/SaleBackModal.vue +++ b/jshERP-web/src/views/bill/modules/SaleBackModal.vue @@ -351,7 +351,11 @@ this.accountMoneyList = changeListFmtMinus(this.accountMoneyList) billMain.accountIdList = this.accountIdList.length>0 ? JSON.stringify(this.accountIdList) : "" billMain.accountMoneyList = this.accountMoneyList.length>0 ? JSON.stringify(this.accountMoneyList) : "" - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/SaleOrderModal.vue b/jshERP-web/src/views/bill/modules/SaleOrderModal.vue index eaba9b09..a8943ec6 100644 --- a/jshERP-web/src/views/bill/modules/SaleOrderModal.vue +++ b/jshERP-web/src/views/bill/modules/SaleOrderModal.vue @@ -265,7 +265,11 @@ totalPrice += item.allPrice-0 } billMain.totalPrice = totalPrice - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/bill/modules/SaleOutModal.vue b/jshERP-web/src/views/bill/modules/SaleOutModal.vue index 4dc26785..0850a1ce 100644 --- a/jshERP-web/src/views/bill/modules/SaleOutModal.vue +++ b/jshERP-web/src/views/bill/modules/SaleOutModal.vue @@ -370,7 +370,11 @@ } billMain.accountIdList = this.accountIdList.length>0 ? JSON.stringify(this.accountIdList) : "" billMain.accountMoneyList = this.accountMoneyList.length>0 ? JSON.stringify(this.accountMoneyList) : "" - billMain.fileName = this.fileList + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } else { + billMain.fileName = '' + } if(this.model.id){ billMain.id = this.model.id }