注释和修改细节

product
bawei 1 year ago
parent f585b8e139
commit d218c77586

@ -344,7 +344,7 @@ public class AccountingController {
/** /**
* *
* *
* @param id * @param id
* @return * @return
@ -357,7 +357,7 @@ public class AccountingController {
QueryWrapper<AccountingEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<AccountingEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(AccountingEntity::getId,entity.getId()); queryWrapper.lambda().eq(AccountingEntity::getId,entity.getId());
if(entity!=null){ if(entity!=null){
entity.setStatus("1"); entity.setStatus("0");
accountingService.update(id, entity); accountingService.update(id, entity);
return ActionResult.success("更新成功"); return ActionResult.success("更新成功");
}else{ }else{
@ -366,7 +366,7 @@ public class AccountingController {
} }
/** /**
* *
* *
* @param id * @param id
* @return * @return
@ -379,7 +379,7 @@ public class AccountingController {
QueryWrapper<AccountingEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<AccountingEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(AccountingEntity::getId,entity.getId()); queryWrapper.lambda().eq(AccountingEntity::getId,entity.getId());
if(entity!=null){ if(entity!=null){
entity.setStatus("0"); entity.setStatus("1");
accountingService.update(id, entity); accountingService.update(id, entity);
return ActionResult.success("更新成功"); return ActionResult.success("更新成功");
}else{ }else{

@ -660,6 +660,7 @@ public class PaymentController {
paymentdocEntity.setIsSubmit("0"); paymentdocEntity.setIsSubmit("0");
} }
//删除修改付款申请单状态
paymentdocService.updateBatchById(paymentdocList); paymentdocService.updateBatchById(paymentdocList);
paymentService.delete(entity); paymentService.delete(entity);

@ -490,7 +490,7 @@ public class TradeuploadController {
customerQueryWrapper.lambda().eq(CustomerEntity::getSupplierNm, tradeuploadCrForm.getCustomerId()); customerQueryWrapper.lambda().eq(CustomerEntity::getSupplierNm, tradeuploadCrForm.getCustomerId());
CustomerEntity customerEntity = customerService.getOne(customerQueryWrapper); CustomerEntity customerEntity = customerService.getOne(customerQueryWrapper);
tradeuploadCrForm.setClientId(customerEntity.getId()); tradeuploadCrForm.setClientId(customerEntity.getId());
//查询合同
QueryWrapper<ContractFileEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<ContractFileEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ContractFileEntity::getCode, customerEntity.getId()); queryWrapper.lambda().eq(ContractFileEntity::getCode, customerEntity.getId());
queryWrapper.lambda().eq(ContractFileEntity::getContractType, "1"); queryWrapper.lambda().eq(ContractFileEntity::getContractType, "1");
@ -509,7 +509,7 @@ public class TradeuploadController {
detpartment = userProvider.getDepartmentId(userId); detpartment = userProvider.getDepartmentId(userId);
vehicleQueryWrapper.lambda().eq(VehicleEntity::getDepartmentId, detpartment); vehicleQueryWrapper.lambda().eq(VehicleEntity::getDepartmentId, detpartment);
} }
//查询车辆然后获取净重等
VehicleEntity vehicleEntity = vehicleService.getOne(vehicleQueryWrapper); VehicleEntity vehicleEntity = vehicleService.getOne(vehicleQueryWrapper);
if (vehicleEntity != null) { if (vehicleEntity != null) {
tradeuploadCrForm.setVehiclePictures(vehicleEntity.getVehiclephotos()); tradeuploadCrForm.setVehiclePictures(vehicleEntity.getVehiclephotos());
@ -978,6 +978,7 @@ public class TradeuploadController {
PurchaseorderqueryWrapper.lambda().eq(PurchaseorderEntity::getId, entity.getPurchaseorderId()); PurchaseorderqueryWrapper.lambda().eq(PurchaseorderEntity::getId, entity.getPurchaseorderId());
PurchaseorderqueryWrapper.lambda().eq(PurchaseorderEntity::getDeleteMark, 0); PurchaseorderqueryWrapper.lambda().eq(PurchaseorderEntity::getDeleteMark, 0);
List<PurchaseorderEntity> Pur = purchaseorderService.list(PurchaseorderqueryWrapper); List<PurchaseorderEntity> Pur = purchaseorderService.list(PurchaseorderqueryWrapper);
//查询有无付款申请,有不能修改
if (Pur.size() > 0) { if (Pur.size() > 0) {
int paymenttime = Integer.valueOf(Pur.get(0).getPaymentTime()); int paymenttime = Integer.valueOf(Pur.get(0).getPaymentTime());
if (list != null && list.get(0).getPurchaseorderId() != null && paymenttime > 0) { if (list != null && list.get(0).getPurchaseorderId() != null && paymenttime > 0) {
@ -993,7 +994,6 @@ public class TradeuploadController {
} }
} }
tradeuploadService.update(id, subentity); tradeuploadService.update(id, subentity);
return ActionResult.success("更新成功"); return ActionResult.success("更新成功");
} else { } else {

@ -145,6 +145,7 @@ public class VehicleController {
detpartment = userProvider.getDepartmentId(userId); detpartment = userProvider.getDepartmentId(userId);
vehicleQueryWrapper.lambda().eq(VehicleEntity::getDepartmentId,detpartment); vehicleQueryWrapper.lambda().eq(VehicleEntity::getDepartmentId,detpartment);
} }
//查询车辆和司机
List<VehicleEntity> vehicleEntityList = vehicleService.list(vehicleQueryWrapper); List<VehicleEntity> vehicleEntityList = vehicleService.list(vehicleQueryWrapper);
if (vehicleEntityList.size()>0){ if (vehicleEntityList.size()>0){
return ActionResult.fail("已经存在该车辆信息"); return ActionResult.fail("已经存在该车辆信息");

@ -347,15 +347,15 @@
statusOptions: [ statusOptions: [
{ {
fullName: "进行中", fullName: "进行中",
id: "0", id: "1",
}, },
{ {
fullName: "审批中", fullName: "审批中",
id: "1", id: "2",
}, },
{ {
fullName: "审批结束", fullName: "审批结束",
id: "2", id: "3",
}, },
], ],
classificationOptions: [ classificationOptions: [

@ -445,15 +445,15 @@ export default {
statusOptions: [ statusOptions: [
{ {
fullName: "进行中", fullName: "进行中",
id: "0", id: "1",
}, },
{ {
fullName: "审批中", fullName: "审批中",
id: "1", id: "2",
}, },
{ {
fullName: "审批结束", fullName: "审批结束",
id: "2", id: "3",
}, },
], ],

@ -108,7 +108,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="磅单时间" prop="poundDate"> <el-form-item label="磅单时间" prop="poundDate">
<el-date-picker disabled v-model="dataForm.poundDate" placeholder="请选择" clearable :style='{"width":"100%"}' <el-date-picker v-model="dataForm.poundDate" placeholder="请选择" clearable :style='{"width":"100%"}'
type="date" format="yyyy-MM-dd" value-format="timestamp"> type="date" format="yyyy-MM-dd" value-format="timestamp">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>

Loading…
Cancel
Save