|
@@ -179,7 +179,7 @@
|
|
|
<el-form-item label="开票编号" prop="invoiceNumber"
|
|
|
:rules="[{required: true, message:'开票编号不能为空', trigger:'change'}
|
|
|
]">
|
|
|
- <el-input @focus="openInoviceForm()" :disabled="status === 'audit' || status === 'taskFormDetail'|| inputForm.applyStatus ==='3' || inputForm.applyStatus === '4'" v-model="inputForm.invoiceNumber" placeholder="请填写开票编号" clearable></el-input>
|
|
|
+ <el-input @focus="openInoviceForm()" :disabled="status === 'audit' || status === 'taskFormDetail'" v-model="inputForm.invoiceNumber" placeholder="请填写开票编号" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
@@ -622,6 +622,8 @@
|
|
|
invoiceTotal:'', //这个为选择发票时已有的发票总数
|
|
|
total:'',//页面初始化时查询出的发票总数
|
|
|
searchForm: {
|
|
|
+ status:'',
|
|
|
+ id:'',
|
|
|
programId:''
|
|
|
},
|
|
|
completed:true
|
|
@@ -815,6 +817,8 @@
|
|
|
this.$refs.enclosure.newUpload(this.method, data.cwFileInfoList3, 'cwWorkContract', null, null, null, null, false)
|
|
|
this.checkIsPreInvoice()
|
|
|
if (this.preInvoice = true){
|
|
|
+ this.searchForm.status = '5'
|
|
|
+ this.searchForm.id = data.id
|
|
|
financeInvoiceService.listByProgramId({
|
|
|
...this.searchForm,
|
|
|
}).then((data) => {
|
|
@@ -898,7 +902,7 @@
|
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
} else {
|
|
|
//判断项目是否是预开票
|
|
|
- if (this.preInvoice && this.completed){
|
|
|
+ if (this.preInvoice && this.completed && (this.invoiceTotal <=1 || this.total <=1)){
|
|
|
this.$confirm('该项目是否已完成预开票关联','提示',{
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: '是',
|
|
@@ -919,7 +923,7 @@
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- if (this.preInvoice && this.completed){
|
|
|
+ if (this.preInvoice && this.completed && (this.invoiceTotal <=1 || this.total <=1)){
|
|
|
this.$confirm('该项目是否已完成预开票关联','提示',{
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: '是',
|