| | |
| | | @ApiModelProperty(value = "合同状态") |
| | | private String contractStatus; |
| | | |
| | | @Column(name = "`project_id`") |
| | | @ApiModelProperty(value = "项目ID") |
| | | private Long projectId; |
| | | |
| | | @Column(name = "`remarks`") |
| | | @ApiModelProperty(value = "备注信息") |
| | | private String remarks; |
| | |
| | | /** 合同状态 */ |
| | | private String contractStatus; |
| | | |
| | | /** 项目ID */ |
| | | private Long projectId; |
| | | |
| | | /** 备注信息 */ |
| | | private String remarks; |
| | | |
| | |
| | | |
| | | /** 乙方姓名 */ |
| | | private String secondName; |
| | | |
| | | /** 项目名称 */ |
| | | private String projectName; |
| | | } |
| | |
| | | /** 模糊 */ |
| | | @Query(type = Query.Type.INNER_LIKE) |
| | | private String contractAreaCode; |
| | | |
| | | /** 精确 */ |
| | | @Query |
| | | private Long projectId; |
| | | } |
| | |
| | | contractDto.setFirstName(contractFirstName(t)); |
| | | // 乙方姓名 |
| | | contractDto.setSecondName(contractSecondName(t)); |
| | | // 项目名称 |
| | | contractDto.setProjectName(projectName(t)); |
| | | // 返回处理好的DTO |
| | | return contractDto; |
| | | } |
| | |
| | | contractDto.setFirstName(contractFirstName(contractList.get(i))); |
| | | // 乙方姓名 |
| | | contractDto.setSecondName(contractSecondName(contractList.get(i))); |
| | | // 项目名称 |
| | | contractDto.setProjectName(projectName(contractList.get(i))); |
| | | // DTO新增 |
| | | contractDtoList.add(contractDto); |
| | | } |
| | |
| | | for (ContractDto contract : all) { |
| | | String firstName = contractFirstName(contractMapper.toEntity(contract)); |
| | | String secondName = contractSecondName(contractMapper.toEntity(contract)); |
| | | String projectName = projectName(contractMapper.toEntity(contract)); |
| | | String contractType = contract.getContractType() != null ? dictDetailRepository.findByDictNameAndValue(Constant.CONTRACT_TYPE, contract.getContractType()).getLabel() : ""; |
| | | String contractPaymentState = contract.getContractPaymentState() != null ? dictDetailRepository.findByDictNameAndValue(Constant.PAYMENT_STATE, contract.getContractPaymentState()).getLabel() : ""; |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | |
| | | map.put("合同初版文件", contract.getRelatedDocumentsFirst()); |
| | | map.put("合同终版文件", contract.getRelatedDocumentsFinal()); |
| | | map.put("合同状态", contractStatus); |
| | | map.put("项目名称", projectName); |
| | | map.put("备注信息", contract.getRemarks()); |
| | | map.put("创建者", contract.getCreateBy()); |
| | | map.put("创建日期", contract.getCreateTime()); |
| | |
| | | // 查询合同乙方数据 |
| | | ContractSecondDto contractSecondDto = contractSecondServiceImpl.findById(resources.getSecondId()); |
| | | return contractSecondDto.getSecondName(); |
| | | } |
| | | |
| | | /** |
| | | * 项目名称 |
| | | * @param resources |
| | | * @return |
| | | */ |
| | | public String projectName(Contract resources) { |
| | | // 判断项目ID是否为空 |
| | | if (resources.getProjectId() != null) { |
| | | // 查询项目数据 |
| | | ProjectDto projectDto = projectServiceImpl.findById(resources.getProjectId()); |
| | | return projectDto.getName(); |
| | | } else { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | <el-select v-model="query.projectId" filterable clearable placeholder="所属项目" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery"> |
| | | <el-option |
| | | v-for="item in projects" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | <date-range-picker v-model="query.signDate" clearable placeholder="签订日期" style="width: 185px;" class="date-item" @keyup.enter.native="crud.toQuery" /> |
| | | <rrOperation :crud="crud" /> |
| | | </div> |
| | |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="所属项目" prop="projectId"> |
| | | <el-select v-model="form.projectId" filterable clearable placeholder="请选择" style="width: 535px;"> |
| | | <el-option |
| | | v-for="item in projects" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="contractContent" label="合同内容" width="100" /> |
| | | <el-table-column :show-overflow-tooltip="true" prop="projectName" label="所属项目" width="100" /> |
| | | <el-table-column :show-overflow-tooltip="true" prop="remarks" label="备注信息" width="100" /> |
| | | <el-table-column fixed="right" :show-overflow-tooltip="true" prop="contractStatus" label="合同状态" width="100"> |
| | | <template slot-scope="scope"> |
| | |
| | | import { contractTotalMoney, contractDelayTotalAmount, contractDelayTotalMoney, advancePaymentTotalMoney } from '@/api/contract/contract' |
| | | import { serviceTotalMoney, serviceDelayTotalAmount, serviceDelayTotalMoney, receivePaymentTotalMoney } from '@/api/contract/contract' |
| | | |
| | | const defaultForm = { contractId: null, contractNumber: null, contractName: null, firstId: null, secondId: null, signDate: null, startDate: null, endDate: null, contractAreaCode: null, contractArea: null, contractType: null, contractContent: null, contractAmount: null, contractPaymentDate: null, contractPaymentState: null, serviceStartsDate: null, serviceAmount: null, servicePaymentDate: null, servicePaymentState: null, relatedDocumentsFirst: null, relatedDocumentsFinal: null, contractStatus: null, projectId: null, remarks: null, createBy: null, updateBy: null, createTime: null, updateTime: null } |
| | | const defaultForm = { contractId: null, contractNumber: null, contractName: null, firstId: null, secondId: null, signDate: null, startDate: null, endDate: null, contractAreaCode: null, contractArea: null, contractType: null, contractContent: null, contractAmount: null, contractPaymentDate: null, contractPaymentState: null, serviceStartsDate: null, serviceAmount: null, servicePaymentDate: null, servicePaymentState: null, relatedDocumentsFirst: null, relatedDocumentsFinal: null, contractStatus: null, remarks: null, createBy: null, updateBy: null, createTime: null, updateTime: null } |
| | | export default { |
| | | name: 'InServiceContract', |
| | | components: { pagination, crudOperation, rrOperation, udOperation, moneyInput, fileUpload, DateRangePicker }, |