|
@@ -901,48 +901,70 @@
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
} else {
|
|
|
- //判断项目是否是预开票
|
|
|
- if (this.preInvoice && this.completed && (this.invoiceTotal <=1 || this.total <=1)){
|
|
|
- this.$confirm('该项目是否已完成预开票关联','提示',{
|
|
|
- distinguishCancelAndClose: true,
|
|
|
- confirmButtonText: '是',
|
|
|
- cancelButtonText: '否',
|
|
|
- }).then(async ()=>{
|
|
|
- this.inputForm.isCompleteInvoice = '1'
|
|
|
- this.doSubmit('start', callback)
|
|
|
- }).catch((action)=>{
|
|
|
- if (action === 'cancel'){
|
|
|
- this.inputForm.isCompleteInvoice = '0'
|
|
|
- this.doSubmit('start', callback)
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.invoiceNumber)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('发票编号未关联,请关联发票')
|
|
|
+ throw new Error('发票编号未关联,请关联发票')
|
|
|
}else {
|
|
|
- this.doSubmit('start', callback)
|
|
|
+ //判断项目是否是预开票
|
|
|
+ if (this.preInvoice && this.completed && (this.invoiceTotal <=1 || this.total <=1)){
|
|
|
+ this.$confirm('该项目是否已完成预开票关联','提示',{
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ confirmButtonText: '是',
|
|
|
+ cancelButtonText: '否',
|
|
|
+ }).then(async ()=>{
|
|
|
+ this.inputForm.isCompleteInvoice = '1'
|
|
|
+ this.doSubmit('start', callback)
|
|
|
+ }).catch((action)=>{
|
|
|
+ if (action === 'cancel'){
|
|
|
+ this.inputForm.isCompleteInvoice = '0'
|
|
|
+ this.doSubmit('start', callback)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.doSubmit('start', callback)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- if (this.preInvoice && this.completed && (this.invoiceTotal <=1 || this.total <=1)){
|
|
|
- this.$confirm('该项目是否已完成预开票关联','提示',{
|
|
|
- distinguishCancelAndClose: true,
|
|
|
- confirmButtonText: '是',
|
|
|
- cancelButtonText: '否',
|
|
|
- }).then(async ()=>{
|
|
|
- this.inputForm.isCompleteInvoice = '1'
|
|
|
- this.doSubmit('start', callback)
|
|
|
- }).catch(async (action)=>{
|
|
|
- if (action === 'cancel'){
|
|
|
- this.inputForm.isCompleteInvoice = '0'
|
|
|
- this.doSubmit('start', callback)
|
|
|
- }
|
|
|
- })
|
|
|
+ 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('取号类型未选择,请选择')
|
|
|
+ }else if (this.commonJS.isEmpty(this.inputForm.invoiceNumber)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('发票编号未关联,请关联发票')
|
|
|
+ throw new Error('发票编号未关联,请关联发票')
|
|
|
}else {
|
|
|
- this.doSubmit('start', callback)
|
|
|
+ if (this.preInvoice && this.completed && (this.invoiceTotal <=1 || this.total <=1)){
|
|
|
+ this.$confirm('该项目是否已完成预开票关联','提示',{
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ confirmButtonText: '是',
|
|
|
+ cancelButtonText: '否',
|
|
|
+ }).then(async ()=>{
|
|
|
+ this.inputForm.isCompleteInvoice = '1'
|
|
|
+ this.doSubmit('start', callback)
|
|
|
+ }).catch(async (action)=>{
|
|
|
+ if (action === 'cancel'){
|
|
|
+ this.inputForm.isCompleteInvoice = '0'
|
|
|
+ this.doSubmit('start', callback)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.doSubmit('start', callback)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
async agreeForm (callback) {
|