瀏覽代碼

预开票 还原

sangwenwei 1 年之前
父節點
當前提交
4b6d34b50c

+ 5 - 5
src/views/cw/invoice/InvoiceFormTask.vue

@@ -64,11 +64,11 @@
 						</el-input>
 					</template>
 				</vxe-table-column>
-				<vxe-table-column field="isPreInvoice" align="center" title="是否预开票" :edit-render="{}">
-					<template #default="scope">
-						{{$dictUtils.getDictLabel('is_pre_invoice', scope.row.isPreInvoice, '')}}
-					</template>
-				</vxe-table-column>
+<!--				<vxe-table-column field="isPreInvoice" align="center" title="是否预开票" :edit-render="{}">-->
+<!--					<template #default="scope">-->
+<!--						{{$dictUtils.getDictLabel('is_pre_invoice', scope.row.isPreInvoice, '')}}-->
+<!--					</template>-->
+<!--				</vxe-table-column>-->
 				<!--          <vxe-table-column field="clientName" title="委托方" :edit-render="{}">-->
 				<!--            <template v-slot:edit="scope">-->
 				<!--              <el-input :readonly="true" placeholder="请填写委托方" v-model="scope.row.clientName"/>-->

+ 44 - 44
src/views/cw/invoice/InvoiceList.vue

@@ -543,12 +543,12 @@
             this.procDefInvalidKey = data.key
           }
         })
-		  processService.getByName('会计-预开票申请').then((data) => {
-			  if (!this.commonJS.isEmpty(data.id)) {
-				  this.processDefinitionIdPreInvoice = data.id
-				  this.procDefKeyPreInvoice = data.key
-			  }
-		  })
+		  // processService.getByName('会计-预开票申请').then((data) => {
+			//   if (!this.commonJS.isEmpty(data.id)) {
+			// 	  this.processDefinitionIdPreInvoice = data.id
+			// 	  this.procDefKeyPreInvoice = data.key
+			//   }
+		  // })
       },
       // 当前页
       currentChangeHandle ({ currentPage, pageSize }) {
@@ -639,27 +639,27 @@
 			  status = 'reapplyFlag'
 		  }
       	if (this.commonJS.isNotEmpty(row.isPreInvoice) && row.isPreInvoice === '1'){
-			taskService.getTaskDef({ procDefId: this.processDefinitionIdPreInvoice,
-				businessId: row.id,
-				businessTable: 'cw_finance_invoice'}).then((data) => {
-				this.$router.push({
-					path: '/flowable/task/TaskForm',
-					query: {
-						...pick(data,  'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
-						procDefId: this.processDefinitionIdPreInvoice,
-						procDefKey: this.procDefKeyPreInvoice,
-						title: title,
-						formType: data.formType,
-						formUrl: data.formUrl,
-						formTitle: processTitle,
-						businessTable: 'finance_invoice',
-						businessId: row.id,
-						isShow: 'false',
-						status: status,
-						routePath: '/cw/invoice/InvoiceList'
-					}
-				})
-			})
+			// taskService.getTaskDef({ procDefId: this.processDefinitionIdPreInvoice,
+			// 	businessId: row.id,
+			// 	businessTable: 'cw_finance_invoice'}).then((data) => {
+			// 	this.$router.push({
+			// 		path: '/flowable/task/TaskForm',
+			// 		query: {
+			// 			...pick(data,  'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
+			// 			procDefId: this.processDefinitionIdPreInvoice,
+			// 			procDefKey: this.procDefKeyPreInvoice,
+			// 			title: title,
+			// 			formType: data.formType,
+			// 			formUrl: data.formUrl,
+			// 			formTitle: processTitle,
+			// 			businessTable: 'finance_invoice',
+			// 			businessId: row.id,
+			// 			isShow: 'false',
+			// 			status: status,
+			// 			routePath: '/cw/invoice/InvoiceList'
+			// 		}
+			// 	})
+			// })
 		}else {
 			taskService.getTaskDef({ procDefId: this.processDefinitionId,
 				businessId: row.id,
@@ -726,23 +726,23 @@
             this.invoiceInvalidDetail(row)
           } else {
           	if (this.commonJS.isNotEmpty(row.isPreInvoice) && row.isPreInvoice === '1'){
-				taskService.getTaskDef({
-					procInsId: row.procInsId,
-					procDefId: this.processDefinitionIdPreInvoice
-				}).then((data) => {
-					this.$router.push({
-						path: '/flowable/task/TaskFormDetail',
-						query: {
-							...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
-							isShow: 'false',
-							readOnly: true,
-							title: '会计-发票申请' + '流程详情',
-							formTitle: '会计-发票申请' + '流程详情',
-							businessId: row.id,
-							status: 'reback'
-						}
-					})
-				})
+				// taskService.getTaskDef({
+				// 	procInsId: row.procInsId,
+				// 	procDefId: this.processDefinitionIdPreInvoice
+				// }).then((data) => {
+				// 	this.$router.push({
+				// 		path: '/flowable/task/TaskFormDetail',
+				// 		query: {
+				// 			...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
+				// 			isShow: 'false',
+				// 			readOnly: true,
+				// 			title: '会计-发票申请' + '流程详情',
+				// 			formTitle: '会计-发票申请' + '流程详情',
+				// 			businessId: row.id,
+				// 			status: 'reback'
+				// 		}
+				// 	})
+				// })
 			}else {
 				taskService.getTaskDef({
 					procInsId: row.procInsId,

+ 1 - 1
src/views/cw/invoice/ProgramPageForm.vue

@@ -12,7 +12,7 @@
       <div v-if="isShow">
 	  	<el-radio v-model="checkType" label="2" style="margin-right: 20px">报告</el-radio>
         <el-radio v-model="checkType" label="1" style="margin-right: 20px">项目</el-radio>
-        <el-radio v-model="checkType" label="4" style="margin-right: 20px">预开票项目</el-radio>
+<!--        <el-radio v-model="checkType" label="4" style="margin-right: 20px">预开票项目</el-radio>-->
 	    <el-radio v-model="checkType" v-if="hasPermission('cw_finance:invoice:add:report')" label="3" style="margin-right: 20px">其他</el-radio>
       </div>
 		<!--报告        -->

+ 10 - 10
src/views/cw/projectRecords/ProjectRecordsAddForm.vue

@@ -191,15 +191,15 @@
                     </el-select>
                   </el-form-item>
                 </el-col>
-				  <el-col :span="12">
-					  <el-form-item label="是否预开票" prop="isPreInvoice"
-									:rules="[
+<!--				  <el-col :span="12">-->
+<!--					  <el-form-item label="是否预开票" prop="isPreInvoice"-->
+<!--									:rules="[-->
 
-                  ]">
-						  <el-radio :disabled="ifCheck" v-model="inputForm.isPreInvoice" v-for="item in $dictUtils.getDictList('is_pre_invoice')" :label="item.value" style="margin-right: 20px">
-							  {{item.label}}</el-radio>
-					  </el-form-item>
-				  </el-col>
+<!--                  ]">-->
+<!--						  <el-radio :disabled="ifCheck" v-model="inputForm.isPreInvoice" v-for="item in $dictUtils.getDictList('is_pre_invoice')" :label="item.value" style="margin-right: 20px">-->
+<!--							  {{item.label}}</el-radio>-->
+<!--					  </el-form-item>-->
+<!--				  </el-col>-->
                 <el-col :span="12">
                   <el-form-item label="审计期间" prop="auditYear"
                                 :rules="[
@@ -696,7 +696,7 @@
               this.inputForm.projectMoney = ''
             }
             this.checkProject()
-			  this.preInvoice()
+			  // this.preInvoice()
             this.loading = false
           })
         })
@@ -707,7 +707,7 @@
 			}else{
 				this.reportTypeFlag = false;
 			}
-			this.preInvoice()
+			// this.preInvoice()
 		}
 		,
       // 表单提交

+ 8 - 8
src/views/cw/projectRecords/ProjectRecordsForm.vue

@@ -194,15 +194,15 @@
 						  </el-select>
 					  </el-form-item>
 				  </el-col>
-				  <el-col :span="12">
-					  <el-form-item label="是否预开票" prop="isPreInvoice"
-									:rules="[
+<!--				  <el-col :span="12">-->
+<!--					  <el-form-item label="是否预开票" prop="isPreInvoice"-->
+<!--									:rules="[-->
 
-                  ]">
-						  <el-radio v-model="inputForm.isPreInvoice" v-for="item in $dictUtils.getDictList('is_pre_invoice')" :label="item.value" style="margin-right: 20px">
-							  {{item.label}}</el-radio>
-					  </el-form-item>
-				  </el-col>
+<!--                  ]">-->
+<!--						  <el-radio v-model="inputForm.isPreInvoice" v-for="item in $dictUtils.getDictList('is_pre_invoice')" :label="item.value" style="margin-right: 20px">-->
+<!--							  {{item.label}}</el-radio>-->
+<!--					  </el-form-item>-->
+<!--				  </el-col>-->
                 <el-col :span="12">
                   <el-form-item label="审计期间" prop="auditYear"
                                 :rules="[

+ 30 - 30
src/views/cw/reportManagement/ReportReviewTakeNumberForm.vue

@@ -157,13 +157,13 @@
 								<el-input :disabled="true" v-model="inputForm.createDate" placeholder="请填写创建时间" clearable></el-input>
 							</el-form-item>
 						</el-col>
-						<el-col :span="12">
-							<el-form-item label="开票编号" prop="invoiceNumber"
-										  :rules="[{required: true, message:'开票编号不能为空', trigger:'change'}
-                   ]">
-								<el-input v-if="preInvoice" @focus="openInoviceForm()" :disabled="status === 'audit' || status === 'taskFormDetail'"  v-model="inputForm.invoiceNumber" placeholder="请填写开票编号" clearable></el-input>
-							</el-form-item>
-						</el-col>
+<!--						<el-col :span="12">-->
+<!--							<el-form-item label="开票编号" prop="invoiceNumber"-->
+<!--										  :rules="[{required: true, message:'开票编号不能为空', trigger:'change'}-->
+<!--                   ]">-->
+<!--								<el-input v-if="preInvoice" @focus="openInoviceForm()" :disabled="status === 'audit' || status === 'taskFormDetail'"  v-model="inputForm.invoiceNumber" placeholder="请填写开票编号" clearable></el-input>-->
+<!--							</el-form-item>-->
+<!--						</el-col>-->
 
 					</el-row>
 					<el-divider content-position="left"><i class="el-icon-document"></i> 报告信息</el-divider>
@@ -454,19 +454,19 @@
 		<ReportServiceUnitForm ref="reportServiceUnitForm" @getWorkClientChoose="getWorkClientChoose"></ReportServiceUnitForm>
 		<FinanceInvoiceRadioForm ref="financeInvoiceRadioForm" @getInvoice="getInvoice"></FinanceInvoiceRadioForm>
 		<!--    <ReportCancellApplyChooseCom  ref="reportCancellApplyChooseCom" @getProject="getContract"></ReportCancellApplyChooseCom>-->
-		<el-dialog v-model="visible" title="Warning" width="300" center>
-    <span>
-      该项目是否已完成预开票关联
-    </span>
-			<template #footer>
-				<div class="dialog-footer">
-					<el-button @click="noComplete">否</el-button>
-					<el-button type="primary" @click="complete">
-						是
-					</el-button>
-				</div>
-			</template>
-		</el-dialog>
+<!--		<el-dialog v-model="visible" title="Warning" width="300" center>-->
+<!--    <span>-->
+<!--      该项目是否已完成预开票关联-->
+<!--    </span>-->
+<!--			<template #footer>-->
+<!--				<div class="dialog-footer">-->
+<!--					<el-button @click="noComplete">否</el-button>-->
+<!--					<el-button type="primary" @click="complete">-->
+<!---->
+<!--					</el-button>-->
+<!--				</div>-->
+<!--			</template>-->
+<!--		</el-dialog>-->
 	</div>
 </template>
 
@@ -778,15 +778,15 @@
 							this.inputForm.signatureType = '1'
 						}
 						this.$refs.enclosure.newUpload(this.method, data.cwFileInfoList3, 'cwWorkContract', null, null, null, null, false)
-						this.checkIsPreInvoice()
-						if (this.preInvoice = true){
-							financeInvoiceService.listByProgramId({
-								...this.searchForm,
-							}).then((data) => {
-								this.total = data.total
-								console.log('total',this.total)
-							})
-						}
+						// this.checkIsPreInvoice()
+						// if (this.preInvoice = true){
+						// 	financeInvoiceService.listByProgramId({
+						// 		...this.searchForm,
+						// 	}).then((data) => {
+						// 		this.total = data.total
+						// 		console.log('total',this.total)
+						// 	})
+						// }
 
 						this.loading = false
 					})
@@ -1136,7 +1136,7 @@
 				this.$forceUpdate()
 				this.inputForm.cwProjectInfoList = []
 				//校验当前项目是否预开票及项目下是否存在已开票信息
-				this.checkIsPreInvoice()
+				// this.checkIsPreInvoice()
 			},
 			openWorkClient () {
 				this.$refs.reportServiceUnitForm.init(this.inputForm.projectId)

+ 1 - 1
src/views/flowable/task/TaskForm.vue

@@ -861,7 +861,7 @@ export default {
 				this.procDefId.includes('Process_1709716869089') ||
 				this.procDefId.includes('Process_1710204867282') ||
 				this.procDefId.includes('Process_1711414021644') ||
-				this.procDefId.includes('Process_1711418224962')
+				this.procDefId.includes('Process_1711418224962') ||
 				this.procDefId.includes('Process_1702534302878')
 			) {
 				console.log('进入新版驳回')