|
@@ -901,6 +901,15 @@
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
} else {
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.reviewBy)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('下一节点审核人未选择,请选择')
|
|
|
+ throw new Error('下一节点审核人未选择,请选择')
|
|
|
+ }else if (this.commonJS.isEmpty(this.inputForm.takeNumberType)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('取号类型未选择,请选择')
|
|
|
+ throw new Error('取号类型未选择,请选择')
|
|
|
+ }
|
|
|
//判断项目是否是预开票
|
|
|
if (this.preInvoice && this.completed ) {
|
|
|
if (this.commonJS.isEmpty(this.inputForm.invoiceNumber)){
|
|
@@ -1427,8 +1436,14 @@
|
|
|
this.$refs.financeInvoiceRadioForm.init(this.inputForm.projectId,this.inputForm.id)
|
|
|
},
|
|
|
getInvoice(row,total){
|
|
|
- this.inputForm.invoiceNumber = row.no
|
|
|
- this.invoiceTotal = total
|
|
|
+ //当有一条开票编号在这之前已经被选择时,此时属于修改,则开票的数量加一
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.invoiceNumber)){
|
|
|
+ this.inputForm.invoiceNumber = row.no
|
|
|
+ this.invoiceTotal = total+1
|
|
|
+ }else {
|
|
|
+ this.inputForm.invoiceNumber = row.no
|
|
|
+ this.invoiceTotal = total
|
|
|
+ }
|
|
|
console.log('total',this.invoiceTotal)
|
|
|
},
|
|
|
noComplete(){
|