Merge remote-tracking branch 'origin/main'

product
chuang 2 years ago
commit b13e843a03

@ -1,9 +1,7 @@
package jnpf.arinvoices.entity; package jnpf.arinvoices.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -31,40 +29,41 @@ public class ArinvoicesEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")

@ -2,9 +2,7 @@ package jnpf.arinvoices.entity;
import cn.afterturn.easypoi.excel.annotation.Excel; import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -30,40 +28,41 @@ public class Arinvoices_item0Entity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@Excel(name = "发票代码") @Excel(name = "发票代码")

@ -1,9 +1,7 @@
package jnpf.arinvoices.entity; package jnpf.arinvoices.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -30,40 +28,41 @@ public class Arinvoices_item1Entity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("ARINVOICES_ID") @TableField("ARINVOICES_ID")

@ -223,7 +223,7 @@ public class CollectionController {
return ActionResult.fail("请输入收款金额"); return ActionResult.fail("请输入收款金额");
} }
if (collectionItem0Entity.getSalesorderId() != null){ if (collectionItem0Entity.getSalesorderId() != null){
SaleorderitemEntity saleorderitemEntity = saleorderitemService.getInfo(collectionCrForm.getCollection_item0List().get(0).getSalesorderId()); SaleorderitemEntity saleorderitemEntity = saleorderitemService.getInfo(collectionItem0Entity.getSalesorderId());
if (saleorderitemEntity.getAmountCollected() == null){ if (saleorderitemEntity.getAmountCollected() == null){
saleorderitemEntity.setAmountCollected(new BigDecimal("0")); saleorderitemEntity.setAmountCollected(new BigDecimal("0"));
} }
@ -515,13 +515,35 @@ public class CollectionController {
List<Collection_item0Entity> Collection_item0List = JsonUtil.getJsonToList(collectionUpForm.getCollection_item0List(),Collection_item0Entity.class); List<Collection_item0Entity> Collection_item0List = JsonUtil.getJsonToList(collectionUpForm.getCollection_item0List(),Collection_item0Entity.class);
for(Collection_item0Entity entitys : Collection_item0List){ for(Collection_item0Entity entitys : Collection_item0List){
if (entitys.getAmount() == null ){
return ActionResult.fail("请输入收款金额");
}
if (entitys.getSalesorderId() != null){
SaleorderitemEntity saleorderitemEntity = saleorderitemService.getInfo(entitys.getSalesorderId());
if (saleorderitemEntity.getAmountCollected() == null){
saleorderitemEntity.setAmountCollected(new BigDecimal("0"));
}
if (saleorderitemEntity.getPrice() == null){
saleorderitemEntity.setPrice(new BigDecimal("0"));
}
BigDecimal notAmount = new BigDecimal("0");
notAmount = saleorderitemEntity.getPrice().subtract(saleorderitemEntity.getAmountCollected());
if (entitys.getAmount().compareTo(notAmount) == 1){
return ActionResult.fail("收款金额不能大于订单金额-已收款金额");
}
if (saleorderitemEntity.getAmountCollected().equals(saleorderitemEntity.getPrice()) ||
saleorderitemEntity.getAmountCollected().compareTo(saleorderitemEntity.getPrice()) == 1){
return ActionResult.fail("已回完款,无需回款");
}
}else {
return ActionResult.fail("销售订单不存在");
}
entitys.setId(RandomUtil.uuId()); entitys.setId(RandomUtil.uuId());
entitys.setCollectionId(entity.getId()); entitys.setCollectionId(entity.getId());
collection_item0Service.save(entitys); collection_item0Service.save(entitys);
}
return ActionResult.success("更新成功"); return ActionResult.success("更新成功");
}
return ActionResult.fail("请填写收款明细");
}else{ }else{
return ActionResult.fail("更新失败,数据不存在"); return ActionResult.fail("更新失败,数据不存在");
} }

@ -1,10 +1,7 @@
package jnpf.collection.entity; package jnpf.collection.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -27,10 +24,41 @@ public class CollectionEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("ORGNIZE_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId;
@TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName;
@TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime;
@TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId;
@TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName;
@TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime;
@TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId;
@TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName;
@TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime;
@TableField("DELETE_MARK")
@TableLogic
private String deleteMark;
@TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")
@ -81,37 +109,6 @@ public class CollectionEntity {
@TableField("COLLECTION_BANK") @TableField("COLLECTION_BANK")
private String collectionBank; private String collectionBank;
@TableField("CREATOR_USER_ID")
private String creatorUserId;
@TableField("CREATOR_USER_NAME")
private String creatorUserName;
@TableField("CREATOR_TIME")
private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID")
private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME")
private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME")
private Date lastModifyTime;
@TableField("DELETE_USER_ID")
private String deleteUserId;
@TableField("DELETE_USER_NAME")
private String deleteUserName;
@TableField("DELETE_TIME")
private Date deleteTime;
@TableField("DELETE_MARK")
@TableLogic
private String deleteMark;
@TableField("CUSTOMER_ID") @TableField("CUSTOMER_ID")
private String customerId; private String customerId;

@ -1,10 +1,7 @@
package jnpf.collection.entity; package jnpf.collection.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -27,41 +24,41 @@ public class Collection_item0Entity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic @TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("COLLECTION_ID") @TableField("COLLECTION_ID")

@ -1,10 +1,7 @@
package jnpf.receiptout.entity; package jnpf.receiptout.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -28,41 +25,41 @@ public class ReceiptoutEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic @TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")

@ -1,10 +1,7 @@
package jnpf.receiptout.entity; package jnpf.receiptout.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -30,41 +27,41 @@ public class Receiptout_item0Entity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic @TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("RECEIPTIN_ID") @TableField("RECEIPTIN_ID")

@ -1,9 +1,7 @@
package jnpf.saleback.entity; package jnpf.saleback.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -27,40 +25,41 @@ public class SalebackEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")

@ -1,10 +1,7 @@
package jnpf.saleback.entity; package jnpf.saleback.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
@ -31,41 +28,41 @@ public class Saleback_item0Entity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic @TableLogic
private String deletemark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("POUNDLIST_ID") @TableField("POUNDLIST_ID")

@ -1,9 +1,7 @@
package jnpf.saleorder.entity; package jnpf.saleorder.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -29,40 +27,41 @@ public class Arinvoices_item0soitemEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("INVOICE_CODE") @TableField("INVOICE_CODE")

@ -1,9 +1,7 @@
package jnpf.saleorder.entity; package jnpf.saleorder.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -26,10 +24,10 @@ public class CollectionsoitemEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")
@ -80,34 +78,35 @@ public class CollectionsoitemEntity {
@TableField("COLLECTION_BANK") @TableField("COLLECTION_BANK")
private String collectionBank; private String collectionBank;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("CUSTOMER_ID") @TableField("CUSTOMER_ID")

@ -1,9 +1,7 @@
package jnpf.saleorder.entity; package jnpf.saleorder.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -27,40 +25,41 @@ public class PaymentsoitemEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENTNO") @TableField("DOCUMENTNO")

@ -1,9 +1,7 @@
package jnpf.saleorder.entity; package jnpf.saleorder.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -27,40 +25,41 @@ public class ReceiptoutsoitemEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")

@ -1,9 +1,7 @@
package jnpf.saleorder.entity; package jnpf.saleorder.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.poundlist.entity.PoundlistEntity; import jnpf.poundlist.entity.PoundlistEntity;
import lombok.Data; import lombok.Data;
@ -39,40 +37,41 @@ public class SaleorderitemEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")

@ -1,9 +1,7 @@
package jnpf.saleorder.entity; package jnpf.saleorder.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
@ -27,40 +25,41 @@ public class SalesbacksoitemEntity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("DOCUMENT_NO") @TableField("DOCUMENT_NO")

@ -1,9 +1,7 @@
package jnpf.saleorder.entity; package jnpf.saleorder.entity;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.poundlist.entity.PoundlistEntity; import jnpf.poundlist.entity.PoundlistEntity;
import lombok.Data; import lombok.Data;
@ -33,40 +31,41 @@ public class Salesorder_item0Entity {
@TableId("ID") @TableId("ID")
private String id; private String id;
@TableField("CREATOR_USER_ID") @TableField(value = "CREATOR_USER_ID",fill = FieldFill.INSERT)
private String creatorUserId; private String creatorUserId;
@TableField("CREATOR_USER_NAME") @TableField(value = "CREATOR_USER_NAME",fill = FieldFill.INSERT)
private String creatorUserName; private String creatorUserName;
@TableField("CREATOR_TIME") @TableField(value = "CREATOR_TIME",fill = FieldFill.INSERT)
private Date creatorTime; private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID") @TableField(value = "LAST_MODIFY_USER_ID",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserId; private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME") @TableField(value = "LAST_MODIFY_USER_NAME",fill = FieldFill.INSERT_UPDATE)
private String lastModifyUserName; private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME") @TableField(value = "LAST_MODIFY_TIME",fill = FieldFill.INSERT_UPDATE)
private Date lastModifyTime; private Date lastModifyTime;
@TableField("DELETE_USER_ID") @TableField(value = "DELETE_USER_ID",fill = FieldFill.UPDATE)
private String deleteUserId; private String deleteUserId;
@TableField("DELETE_USER_NAME") @TableField(value = "DELETE_USER_NAME",fill = FieldFill.UPDATE)
private String deleteUserName; private String deleteUserName;
@TableField("DELETE_TIME") @TableField(value = "DELETE_TIME",fill = FieldFill.UPDATE)
private Date deleteTime; private Date deleteTime;
@TableField("DELETE_MARK") @TableField("DELETE_MARK")
@TableLogic
private String deleteMark; private String deleteMark;
@TableField("ORGNIZE_ID") @TableField(value = "ORGNIZE_ID",fill = FieldFill.INSERT)
private String orgnizeId; private String orgnizeId;
@TableField("DEPARTMENT_ID") @TableField(value = "DEPARTMENT_ID",fill = FieldFill.INSERT)
private String departmentId; private String departmentId;
@TableField("SALES_ORDER_ID") @TableField("SALES_ORDER_ID")

@ -14,6 +14,7 @@
LEFT JOIN jg_contract c ON a.contract_id = c.id LEFT JOIN jg_contract c ON a.contract_id = c.id
LEFT JOIN jg_salesorder d ON a.sales_order_id = d.id LEFT JOIN jg_salesorder d ON a.sales_order_id = d.id
WHERE 1=1 WHERE 1=1
and a.delete_mark = '0'
<if test="arinvoicesPagination.documentNo != null and arinvoicesPagination.documentNo != ''"> <if test="arinvoicesPagination.documentNo != null and arinvoicesPagination.documentNo != ''">
and a.document_no LIKE CONCAT('%',#{arinvoicesPagination.documentNo},'%') and a.document_no LIKE CONCAT('%',#{arinvoicesPagination.documentNo},'%')
</if> </if>

@ -5,6 +5,7 @@
<select id="queryPound" resultType="jnpf.poundlist.entity.PoundlistEntity"> <select id="queryPound" resultType="jnpf.poundlist.entity.PoundlistEntity">
select * from jg_poundlist select * from jg_poundlist
where id = #{poundlistId} where id = #{poundlistId}
and delete_mark = '0'
</select> </select>
<select id="queryCollection" resultType="jnpf.collection.entity.CollectionEntity"> <select id="queryCollection" resultType="jnpf.collection.entity.CollectionEntity">
@ -17,6 +18,7 @@
LEFT JOIN jg_customer b ON a.customer_id = b.id LEFT JOIN jg_customer b ON a.customer_id = b.id
LEFT JOIN jg_contract c ON a.contract_id = c.id LEFT JOIN jg_contract c ON a.contract_id = c.id
where 1=1 where 1=1
and a.delete_mark = '0'
<if test="collectionPagination.documentNo != null and collectionPagination.documentNo != ''"> <if test="collectionPagination.documentNo != null and collectionPagination.documentNo != ''">
and a.document_no LIKE CONCAT('%',#{collectionPagination.documentNo},'%') and a.document_no LIKE CONCAT('%',#{collectionPagination.documentNo},'%')
</if> </if>

@ -12,6 +12,7 @@
LEFT JOIN jg_customer b on a.customer_id = b.id LEFT JOIN jg_customer b on a.customer_id = b.id
LEFT JOIN jg_salesorder c on a.source_no = c.id LEFT JOIN jg_salesorder c on a.source_no = c.id
where 1=1 where 1=1
and a.delete_mark = '0'
<if test="receiptoutPagination.documentNo != null and receiptoutPagination.documentNo != ''"> <if test="receiptoutPagination.documentNo != null and receiptoutPagination.documentNo != ''">
and a.document_no LIKE CONCAT('%',#{receiptoutPagination.documentNo},'%') and a.document_no LIKE CONCAT('%',#{receiptoutPagination.documentNo},'%')
</if> </if>

@ -13,6 +13,7 @@
LEFT JOIN jg_contract c on b.contract_id = c.id LEFT JOIN jg_contract c on b.contract_id = c.id
LEFT JOIN jg_customer d on b.customer_id = d.id LEFT JOIN jg_customer d on b.customer_id = d.id
where 1 = 1 where 1 = 1
and a.delete_mark = '0'
<if test="salebackPagination.documentNo != null and salebackPagination.documentNo != ''"> <if test="salebackPagination.documentNo != null and salebackPagination.documentNo != ''">
and a.document_no LIKE CONCAT('%',#{salebackPagination.documentNo},'%') and a.document_no LIKE CONCAT('%',#{salebackPagination.documentNo},'%')
</if> </if>
@ -55,5 +56,6 @@ FROM
LEFT JOIN jg_customer g ON c.customer_id = g.id LEFT JOIN jg_customer g ON c.customer_id = g.id
WHERE WHERE
a.sales_back_id = #{id} a.sales_back_id = #{id}
and a.delete_mark = '0'
</select> </select>
</mapper> </mapper>

@ -447,7 +447,7 @@ const jnpf = {
try { try {
f = b.toString().split(".")[1].length; f = b.toString().split(".")[1].length;
} catch (g) {} } catch (g) {}
return c = Number(a.toString().replace(".", "")), d = Number(b.toString().replace(".", "")), floatMul(c / d, Math.pow(10, f - e)); return c = Number(a.toString().replace(".", "")), d = Number(b.toString().replace(".", "")), this.floatMul(c / d, Math.pow(10, f - e));
}, },
} }
export default jnpf export default jnpf

@ -1,5 +1,12 @@
<template> <template>
<el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
<div class="dateSelect">
<el-date-picker v-model="nowTime" type="date" placeholder="近7日" size="small" @change="fnDateChg">
</el-date-picker>
</div>
<div id="charta" style="width:100%;height:400px;margin-top:30px;"></div> <div id="charta" style="width:100%;height:400px;margin-top:30px;"></div>
</el-row>
<!-- <div id="charta" style="width:100%;height:400px;margin-top:30px;"></div> -->
</template> </template>
<script> <script>
@ -10,6 +17,7 @@ export default {
mixins: [resize], mixins: [resize],
data() { data() {
return { return {
nowTime: '',
chart: null, chart: null,
option: { option: {
title: { title: {
@ -44,8 +52,8 @@ export default {
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
data: ['2AM', '4AM', '6AM', '8AM', '10AM', data: ['2023-3-17', '2023-3-18', '2023-3-19', '2023-3-20', '2023-3-21',
'12AM', '2PM', '4PM', '6PM', '8PM', '10PM', '12PM'], '2023-3-22', '2023-3-23'],
axisLine: { axisLine: {
show: false, //x show: false, //x
lineStyle: { lineStyle: {
@ -89,7 +97,7 @@ export default {
}, },
}, },
series: [{ series: [{
data: [0, 2820, 8932, 5700, 7901, 4934, 5000, 3000, 4090, 2330, 3820, 0], data: [100, 200, 300, 400, 500, 600, 700],
type: 'line', type: 'line',
radius: '100%', radius: '100%',
center: ['100%', '50%'], center: ['100%', '50%'],
@ -126,7 +134,23 @@ export default {
this.chart = echarts.init(document.getElementById('charta')) this.chart = echarts.init(document.getElementById('charta'))
this.chart.setOption(this.option); this.chart.setOption(this.option);
window.onresize = this.chart.resize() window.onresize = this.chart.resize()
},
fnDateChg(val) {
console.log(val.getTime())
} }
} }
} }
</script> </script>
<style lang="scss" scoped>
.dateSelect {
position: absolute;
right: 67px;
top: 38px;
z-index: 100;
.el-date-editor {
width: 160px;
}
}
</style>

@ -1,5 +1,11 @@
<template> <template>
<el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
<div class="dateSelect">
<el-date-picker v-model="nowTime" type="date" placeholder="近7日" size="small" @change="fnDateChg">
</el-date-picker>
</div>
<div id="chartb" style="width:100%;height:400px;margin-top:30px;"></div> <div id="chartb" style="width:100%;height:400px;margin-top:30px;"></div>
</el-row>
</template> </template>
<script> <script>
@ -10,6 +16,7 @@ export default {
mixins: [resize], mixins: [resize],
data() { data() {
return { return {
nowTime: '',
chart: null, chart: null,
option: { option: {
title: { title: {
@ -44,8 +51,8 @@ export default {
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
data: ['2AM', '4AM', '6AM', '8AM', '10AM', data: ['2023-3-17', '2023-3-18', '2023-3-19', '2023-3-20', '2023-3-21',
'12AM', '2PM', '4PM', '6PM', '8PM', '10PM', '12PM'], '2023-3-22', '2023-3-23'],
axisLine: { axisLine: {
show: false, //x show: false, //x
lineStyle: { lineStyle: {
@ -89,7 +96,7 @@ export default {
}, },
}, },
series: [{ series: [{
data: [0, 2820, 8932, 5700, 7901, 4934, 5000, 3000, 4090, 2330, 3820, 0], data: [100, 200, 300, 400, 500, 600, 700],
type: 'line', type: 'line',
radius: '100%', radius: '100%',
center: ['100%', '50%'], center: ['100%', '50%'],
@ -126,7 +133,23 @@ export default {
this.chart = echarts.init(document.getElementById('chartb')) this.chart = echarts.init(document.getElementById('chartb'))
this.chart.setOption(this.option); this.chart.setOption(this.option);
window.onresize = this.chart.resize() window.onresize = this.chart.resize()
},
fnDateChg(val) {
console.log(val.getTime())
} }
} }
} }
</script> </script>
<style lang="scss" scoped>
.dateSelect {
position: absolute;
right: 67px;
top: 38px;
z-index: 100;
.el-date-editor {
width: 160px;
}
}
</style>

@ -42,48 +42,14 @@
</ul> </ul>
</div> </div>
<panel-group /> <panel-group />
<!-- <el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
<div class="dateSelect">
<el-date-picker v-model="value1" type="date" placeholder="进7日" size="small">
</el-date-picker>
</div>
<line-chart-a />
</el-row>
<el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
<div class="dateSelect">
<el-date-picker v-model="value1" type="date" placeholder="进7日" size="small">
</el-date-picker>
</div>
<line-chart-b />
</el-row> -->
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :span="12"> <el-col :span="12">
<el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
<div class="dateSelect">
<el-date-picker v-model="value1" type="date" placeholder="进7日" size="small">
</el-date-picker>
</div>
<line-chart-a /> <line-chart-a />
</el-row>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
<div class="dateSelect">
<el-date-picker v-model="value1" type="date" placeholder="进7日" size="small">
</el-date-picker>
</div>
<line-chart-b /> <line-chart-b />
</el-row>
</el-col> </el-col>
</el-row> </el-row>
<!-- <el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
<div class="dateSelect">
<el-date-picker v-model="value1" type="date" placeholder="选择日期" size="small">
</el-date-picker>
</div>
<line-chart />
</el-row> -->
<!-- <PortalLayoutC :layout="layout" v-if="type === 0" /> -->
<el-row :gutter="10" class="notice"> <el-row :gutter="10" class="notice">
<el-col :span="12"> <el-col :span="12">
<div class="notice_left"> <div class="notice_left">

@ -366,18 +366,16 @@
mounted() {}, mounted() {},
methods: { methods: {
invoiceQuantitySum(){ invoiceQuantitySum(){
debugger
let sum = 0; let sum = 0;
for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){ for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){
sum = sum + parseFloat(this.dataForm.arinvoices_item0List[i].invoiceQuantity) sum = this.jnpf.floatAdd(sum,this.dataForm.arinvoices_item0List[i].invoiceQuantity)
} }
this.dataForm.invoiceQuantity = sum this.dataForm.invoiceQuantity = sum
debugger
}, },
involceAmountSum(){ involceAmountSum(){
let sum = 0; let sum = 0;
for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){ for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){
sum = sum + parseFloat(this.dataForm.arinvoices_item0List[i].involceAmount) sum = this.jnpf.floatAdd(sum,this.dataForm.arinvoices_item0List[i].involceAmount)
} }
this.dataForm.invoiceAmount = sum this.dataForm.invoiceAmount = sum
}, },
@ -418,7 +416,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -442,7 +440,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }

@ -435,7 +435,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -449,7 +449,7 @@
amountSum(){ amountSum(){
let sum = 0; let sum = 0;
for (let i = 0; i<this.dataForm.collection_item0List.length;i++){ for (let i = 0; i<this.dataForm.collection_item0List.length;i++){
sum = sum + parseFloat(this.dataForm.collection_item0List[i].amount); sum = this.jnpf.floatAdd(sum,this.dataForm.collection_item0List[i].amount);
} }
this.dataForm.amountCollected = sum; this.dataForm.amountCollected = sum;
}, },
@ -475,9 +475,9 @@
this.dataForm.collection_item0List[i].rate = b.rate; this.dataForm.collection_item0List[i].rate = b.rate;
this.dataForm.collection_item0List[i].notPrice = b.not_price; this.dataForm.collection_item0List[i].notPrice = b.not_price;
this.dataForm.collection_item0List[i].creatorTime = b.creator_time; this.dataForm.collection_item0List[i].creatorTime = b.creator_time;
this.dataForm.collection_item0List[i].amount = parseFloat(b.price) - parseFloat(b.amount_collected); this.dataForm.collection_item0List[i].amount = this.jnpf.floatSub(b.price,b.amount_collected);
this.dataForm.collection_item0List[i].creatorTime = new Date().getTime(); this.dataForm.collection_item0List[i].creatorTime = new Date().getTime();
amountCollectedSum = amountCollectedSum + parseFloat(this.dataForm.collection_item0List[i].amount); amountCollectedSum = this.jnpf.floatAdd(amountCollectedSum,this.dataForm.collection_item0List[i].amount);
} }
} }
this.dataForm.amountCollected = amountCollectedSum; this.dataForm.amountCollected = amountCollectedSum;

@ -4,14 +4,14 @@
<el-row :gutter="15" class=""> <el-row :gutter="15" class="">
<el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" label-position="left"> <el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" label-position="left">
<template v-if="!loading"> <template v-if="!loading">
<el-col :span="24"> <!-- <el-col :span="24">
<el-form-item label-width="0"> <el-form-item label-width="0">
<JNPF-Text :style='{ "width": "100%" }' <JNPF-Text :style='{ "width": "100%" }'
:textStyle='{ "color": "#000000", "font-weight": "normal", "text-decoration": "none", "font-size": 18, "line-height": 32, "font-style": "normal", "text-align": "left" }' :textStyle='{ "color": "#000000", "font-weight": "normal", "text-decoration": "none", "font-size": 18, "line-height": 32, "font-style": "normal", "text-align": "left" }'
value="自然人档案"> value="自然人档案">
</JNPF-Text> </JNPF-Text>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="24"> <el-col :span="24">
<el-form-item label="姓名" prop="name"> <el-form-item label="姓名" prop="name">
<el-input v-model="dataForm.name" placeholder="请输入姓名" clearable :style='{ "width": "100%" }'> <el-input v-model="dataForm.name" placeholder="请输入姓名" clearable :style='{ "width": "100%" }'>

@ -773,8 +773,8 @@
// } // }
this.dataForm.salesorder_item0List.forEach((item, index)=>{ this.dataForm.salesorder_item0List.forEach((item, index)=>{
if(row.vehicleId == item.vehicleId){ if(row.vehicleId == item.vehicleId){
item.price = parseFloat(item.settlement) * parseFloat(item.unitPrice);// item.price = this.jnpf.floatMul(item.settlement,item.unitPrice);//
item.notPrice = item.price * (100 - rate) / 100;// item.notPrice = this.jnpf.floatDiv(this.jnpf.floatMul(item.price,(this.jnpf.floatSub(100, rate))),100);//
// request({ // request({
// url: '/api/saleorder/Saleorderitem/updatePrice'+row.poundlistId, // url: '/api/saleorder/Saleorderitem/updatePrice'+row.poundlistId,
// method: 'post', // method: 'post',
@ -788,10 +788,10 @@
// }) // })
} }
if(item.advance == '1'){// if(item.advance == '1'){//
advanceAmount = advanceAmount + item.price;// advanceAmount = this.jnpf.floatAdd(advanceAmount, item.price);//
} }
price = price + item.price;// price = this.jnpf.floatAdd(price, item.price);//
notPrice = notPrice + parseFloat(item.notPrice);// notPrice = this.jnpf.floatAdd(notPrice,item.notPrice);//
}); });
this.dataForm.advanceAmount = advanceAmount; this.dataForm.advanceAmount = advanceAmount;
this.dataForm.price = price; this.dataForm.price = price;
@ -826,8 +826,8 @@
for (let i = 0;i<this.dataForm.salesorder_item0List.length;i++) { for (let i = 0;i<this.dataForm.salesorder_item0List.length;i++) {
this.rateOptions.find((item) => { this.rateOptions.find((item) => {
if (this.dataForm.salesorder_item0List[i].rate == item.id) { if (this.dataForm.salesorder_item0List[i].rate == item.id) {
this.dataForm.salesorder_item0List[i].noPrice = this.dataForm.salesorder_item0List[i].price*(100-item.fullName)/100 this.dataForm.salesorder_item0List[i].noPrice = this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.salesorder_item0List[i].price,(this.jnpf.floatSub(100,item.fullName))),100)
notPrice = notPrice + parseFloat(this.dataForm.salesorder_item0List[i].noPrice) notPrice = this.jnpf.floatAdd(notPrice,this.dataForm.salesorder_item0List[i].noPrice)
} }
}) })
this.dataForm.notPrice = notPrice; this.dataForm.notPrice = notPrice;
@ -851,9 +851,9 @@
this.dataForm.salesorder_item0List[i].vehiclePictures = b.vehicle_pictures this.dataForm.salesorder_item0List[i].vehiclePictures = b.vehicle_pictures
this.dataForm.salesorder_item0List[i].poundType = b.pound_type this.dataForm.salesorder_item0List[i].poundType = b.pound_type
this.dataForm.salesorder_item0List[i].unitPrice = b.sales_price this.dataForm.salesorder_item0List[i].unitPrice = b.sales_price
this.dataForm.salesorder_item0List[i].price = b.salesPrice*b.settlement; this.dataForm.salesorder_item0List[i].price = this.jnpf.floatMul(b.salesPrice,b.settlement);
num = this.dataForm.num + parseFloat(b.settlement) num = this.jnpf.floatAdd(this.dataForm.num,b.settlement)
amount = this.dataForm.price + parseFloat(this.dataForm.salesorder_item0List[i].price) amount = this.jnpf.floatAdd(this.dataForm.price,this.dataForm.salesorder_item0List[i].price)
} }
} }
this.dataForm.num = num this.dataForm.num = num
@ -930,18 +930,18 @@
for (let i = 0;i<list.length; i++){ for (let i = 0;i<list.length; i++){
// this.dataForm.salesorder_item0List[i].unitPrice = list[i].salesPrice; // this.dataForm.salesorder_item0List[i].unitPrice = list[i].salesPrice;
this.dataForm.salesorder_item0List[i].poundlistId = list[i].id; this.dataForm.salesorder_item0List[i].poundlistId = list[i].id;
this.dataForm.salesorder_item0List[i].price = list[i].salesPrice*list[i].settlement; this.dataForm.salesorder_item0List[i].price = this.jnpf.floatMul(list[i].salesPrice,list[i].settlement);
this.rateOptions.find((item) => { this.rateOptions.find((item) => {
if (this.dataForm.salesorder_item0List[i].rate == item.id) { if (this.dataForm.salesorder_item0List[i].rate == item.id) {
this.dataForm.salesorder_item0List[i].noPrice = this.dataForm.salesorder_item0List[i].price*(100-item.fullName)/100 this.dataForm.salesorder_item0List[i].noPrice = this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.salesorder_item0List[i].price,(100-item.fullName)),100)
notPrice = notPrice + parseFloat(this.dataForm.salesorder_item0List[i].noPrice) notPrice = this.jnpf.floatAdd(notPrice,this.dataForm.salesorder_item0List[i].noPrice)
} }
}) })
if (list[i].advance == 1){ if (list[i].advance == 1){
advance = advance + list[i].salesPrice*list[i].settlement; advance = this.jnpf.floatAdd(advance,this.jnpf.floatMul(list[i].salesPrice,list[i].settlement));
} }
num = num + list[i].settlement; num = this.jnpf.floatAdd(num, list[i].settlement);
amount = amount + list[i].price; amount = this.jnpf.floatAdd(amount, list[i].price);
} }
this.dataForm.notPrice = notPrice; this.dataForm.notPrice = notPrice;
this.dataForm.advanceAmount = advance; this.dataForm.advanceAmount = advance;

@ -316,7 +316,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }

@ -68,7 +68,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<popupSelect v-model="scope.row.vehicleId" <popupSelect v-model="scope.row.vehicleId"
placeholder="请选择" clearable :field="'vehicleId'+scope.$index" interfaceId="400554150653457925" placeholder="请选择" clearable :field="'vehicleId'+scope.$index" interfaceId="400554150653457925"
:bissId="dataForm.salesOrderId" :columnOptions="salesback_item0vehicleIdcolumnOptions" propsValue="id" :bissId="dataForm.salesOrderId" :columnOptions="salesback_item0vehicleIdcolumnOptions" propsValue="vehicleId"
relationField="ticketno" popupType="dialog" @change="popupSelectChange2" relationField="ticketno" popupType="dialog" @change="popupSelectChange2"
popupWidth="800px"> popupWidth="800px">
</popupSelect> </popupSelect>
@ -297,6 +297,7 @@
jg_salesback_item0businessIdcolumnOptions:[ {"label":"人员名称","value":"F_RealName"}, {"label":"人员职位","value":"F_FullName"},], jg_salesback_item0businessIdcolumnOptions:[ {"label":"人员名称","value":"F_RealName"}, {"label":"人员职位","value":"F_FullName"},],
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
created() {}, created() {},
@ -315,7 +316,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -330,6 +331,7 @@
var sumPrice = 0; var sumPrice = 0;
var sumNum = 0; var sumNum = 0;
var excludeFields = []; var excludeFields = [];
var floatMul2 = 0;
for (let i = 0; i < this.dataForm.saleback_item0List.length; i++) { for (let i = 0; i < this.dataForm.saleback_item0List.length; i++) {
debugger debugger
excludeFields.push(this.dataForm.saleback_item0List[i].vehicleId); excludeFields.push(this.dataForm.saleback_item0List[i].vehicleId);
@ -341,18 +343,19 @@
this.dataForm.saleback_item0List[i].unit = b.unit; this.dataForm.saleback_item0List[i].unit = b.unit;
this.dataForm.saleback_item0List[i].price = b.sales_price; this.dataForm.saleback_item0List[i].price = b.sales_price;
this.dataForm.saleback_item0List[i].rate = b.rate; this.dataForm.saleback_item0List[i].rate = b.rate;
this.dataForm.saleback_item0List[i].amount = b.sales_price * b.settlement; this.dataForm.saleback_item0List[i].amount = this.jnpf.floatMul(b.sales_price, b.settlement);
debugger
this.dataForm.saleback_item0List[i].pountType = b.pound_type; this.dataForm.saleback_item0List[i].pountType = b.pound_type;
this.dataForm.saleback_item0List[i].businessId = b.business_id; this.dataForm.saleback_item0List[i].businessId = b.business_id;
this.dataForm.saleback_item0List[i].salesorderItem0Id = b.saleitemId; this.dataForm.saleback_item0List[i].salesorderItem0Id = b.saleitemId;
this.dataForm.saleback_item0List[i].poundlistId = b.poundlistId; this.dataForm.saleback_item0List[i].poundlistId = b.poundlistId;
this.rateOptions.find((item) => { this.rateOptions.find((item) => {
if (this.dataForm.saleback_item0List[i].rate == item.id) { if (this.dataForm.saleback_item0List[i].rate == item.id) {
this.dataForm.saleback_item0List[i].notAmount = this.dataForm.saleback_item0List[i].amount*item.fullName/100 this.dataForm.saleback_item0List[i].notAmount =this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.saleback_item0List[i].amount,item.fullName),100)
} }
}) })
sumNum = sumNum + parseFloat(b.settlement); sumNum = this.jnpf.floatAdd(sumNum,b.settlement);
sumPrice = sumPrice + parseFloat(this.dataForm.saleback_item0List[i].amount); sumPrice = this.jnpf.floatAdd(sumPrice,this.dataForm.saleback_item0List[i].amount);
} }
} }
this.dataForm.refundNum = sumNum; this.dataForm.refundNum = sumNum;
@ -409,7 +412,7 @@
for (let i = 0;i<res.data.saleback_item0List.length;i++){ for (let i = 0;i<res.data.saleback_item0List.length;i++){
this.dataForm.saleback_item0List[i].amount = res.data.saleback_item0List[i].price this.dataForm.saleback_item0List[i].amount = res.data.saleback_item0List[i].price
this.dataForm.saleback_item0List[i].price = res.data.saleback_item0List[i].salesPrice this.dataForm.saleback_item0List[i].price = res.data.saleback_item0List[i].salesPrice
this.dataForm.saleback_item0List[i].notAmount = this.dataForm.saleback_item0List[i].amount - res.data.saleback_item0List[i].noPrice this.dataForm.saleback_item0List[i].notAmount = this.jnpf.floatSub(this.dataForm.saleback_item0List[i].amount, res.data.saleback_item0List[i].noPrice)
} }
this.loading = false this.loading = false
}); });

@ -137,11 +137,20 @@
<el-table-column type="index" width="50" label="序号" align="center"/> <el-table-column type="index" width="50" label="序号" align="center"/>
<el-table-column prop="vehicleId" label="车号" align="center" width="130"> <el-table-column prop="vehicleId" label="车号" align="center" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <popupSelect v-model="scope.row.vehicleId"-->
<!-- placeholder="请选择" clearable :field="'vehicleId'+scope.$index"-->
<!-- interfaceId="391151974030035653" 398732963950472005-->
<!-- :bissId="dataForm.contractId"-->
<!-- :columnOptions="salesorder_item0vehicleIdcolumnOptions" propsValue="vehicle_id"-->
<!-- relationField="ticketno"-->
<!-- popupType="dialog" :excludeFields="excludeFields"-->
<!-- popupWidth="800px" @change="poundInfoSelect" disabled>-->
<!-- </popupSelect>-->
<popupSelect v-model="scope.row.vehicleId" <popupSelect v-model="scope.row.vehicleId"
placeholder="请选择" clearable :field="'vehicleId'+scope.$index" placeholder="请选择" clearable :field="'vehicleId'+scope.$index"
interfaceId="391151974030035653" interfaceId="398732963950472005"
:bissId="dataForm.contractId" :bissId="dataForm.contractId"
:columnOptions="salesorder_item0vehicleIdcolumnOptions" propsValue="vehicle_id" :columnOptions="salesorder_item0vehicleIdcolumnOptions" propsValue="id"
relationField="ticketno" relationField="ticketno"
popupType="dialog" :excludeFields="excludeFields" popupType="dialog" :excludeFields="excludeFields"
popupWidth="800px" @change="poundInfoSelect" disabled> popupWidth="800px" @change="poundInfoSelect" disabled>
@ -655,6 +664,7 @@
import request from '@/utils/request' import request from '@/utils/request'
import {getDataInterfaceRes} from '@/api/systemData/dataInterface' import {getDataInterfaceRes} from '@/api/systemData/dataInterface'
import {getDictionaryDataSelector} from '@/api/systemData/dictionary' import {getDictionaryDataSelector} from '@/api/systemData/dictionary'
import jnpf from '@/utils/jnpf'
export default { export default {
components: {}, components: {},
@ -785,15 +795,12 @@
}, },
methods: { methods: {
editUnitPrice(row) { editUnitPrice(row) {
debugger
var advanceAmount = 0; var advanceAmount = 0;
var price = 0; var price = 0;
var notPrice = 0; var notPrice = 0;
this.dataForm.salesorder_item0List.forEach((item, index) => { this.dataForm.salesorder_item0List.forEach((item, index) => {
if (row.vehicleId == item.vehicleId) { if (row.vehicleId == item.vehicleId) {
debugger
if (item.remark == null || item.remark === "") { if (item.remark == null || item.remark === "") {
debugger
this.$message({ this.$message({
type: 'warning', type: 'warning',
message: '请在备注说明修改单价原因', message: '请在备注说明修改单价原因',
@ -801,10 +808,11 @@
}) })
return return
} }
item.price = parseFloat(item.settlement) * parseFloat(item.unitPrice);// item.price = this.jnpf.floatMul(item.unitPrice,item.settlement);//
debugger
this.taxRateOptions.forEach((item2) => { this.taxRateOptions.forEach((item2) => {
if (item2.id == row.rate) { if (item2.id == row.rate) {
item.noPrice = item.price * (100 - item2.fullName) / 100;// item.noPrice = this.jnpf.floatDiv(this.jnpf.floatMul(item.price,(this.jnpf.floatSub(100,item2.fullName))), 100);//
} }
}); });
// let params = {} // let params = {}
@ -823,24 +831,23 @@
// }) // })
} }
if (item.advance == '1') {// if (item.advance == '1') {//
advanceAmount = advanceAmount + parseFloat(item.price);// advanceAmount = this.jnpf.floatAdd(advanceAmount,item.price);//
} }
price = price + parseFloat(item.price);// price = this.jnpf.floatAdd(price,item.price);//
notPrice = notPrice + parseFloat(item.noPrice);// notPrice = this.jnpf.floatAdd(notPrice,item.noPrice);//
}); });
this.dataForm.advanceAmount = advanceAmount; this.dataForm.advanceAmount = advanceAmount;
this.dataForm.price = price; this.dataForm.price = price;
this.dataForm.notPrice = notPrice; this.dataForm.notPrice = notPrice;
this.dataForm.rate = price - notPrice; this.dataForm.rate = this.jnpf.floatSub(price,notPrice);
debugger
}, },
computeNoPrice() { computeNoPrice() {
let notPrice = 0; let notPrice = 0;
for (let i = 0; i < this.dataForm.salesorder_item0List.length; i++) { for (let i = 0; i < this.dataForm.salesorder_item0List.length; i++) {
this.rateOptions.find((item) => { this.rateOptions.find((item) => {
if (this.dataForm.salesorder_item0List[i].rate == item.id) { if (this.dataForm.salesorder_item0List[i].rate == item.id) {
this.dataForm.salesorder_item0List[i].noPrice = this.dataForm.salesorder_item0List[i].price * (100 - item.fullName) / 100 this.dataForm.salesorder_item0List[i].noPrice = this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.salesorder_item0List[i].price,(this.jnpf.floatSub(100, item.fullName))),100)
notPrice = notPrice + this.dataForm.salesorder_item0List[i].noPrice notPrice =this.jnpf.floatAdd(notPrice, this.dataForm.salesorder_item0List[i].noPrice)
} }
}) })
this.dataForm.notPrice = notPrice; this.dataForm.notPrice = notPrice;
@ -859,7 +866,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -879,6 +886,7 @@
excludeFields.push(this.dataForm.salesorder_item0List[i].vehicleId) excludeFields.push(this.dataForm.salesorder_item0List[i].vehicleId)
debugger debugger
if (a == this.dataForm.salesorder_item0List[i].vehicleId) { if (a == this.dataForm.salesorder_item0List[i].vehicleId) {
debugger
this.dataForm.salesorder_item0List[i].poundlistId = b.id this.dataForm.salesorder_item0List[i].poundlistId = b.id
this.dataForm.salesorder_item0List[i].materialId = b.material_id this.dataForm.salesorder_item0List[i].materialId = b.material_id
this.dataForm.salesorder_item0List[i].settlement = b.settlement this.dataForm.salesorder_item0List[i].settlement = b.settlement
@ -890,10 +898,10 @@
this.dataForm.salesorder_item0List[i].vehiclePictures = b.vehicle_pictures this.dataForm.salesorder_item0List[i].vehiclePictures = b.vehicle_pictures
this.dataForm.salesorder_item0List[i].poundType = b.pound_type this.dataForm.salesorder_item0List[i].poundType = b.pound_type
this.dataForm.salesorder_item0List[i].unitPrice = b.sales_price this.dataForm.salesorder_item0List[i].unitPrice = b.sales_price
this.dataForm.salesorder_item0List[i].price = b.sales_price * b.settlement this.dataForm.salesorder_item0List[i].price = this.jnpf.floatMul(b.sales_price, b.settlement)
} }
if (this.dataForm.salesorder_item0List[i].advance == 1) { if (this.dataForm.salesorder_item0List[i].advance == 1) {
advanceAmountSum = advanceAmountSum + this.dataForm.salesorder_item0List[i].price advanceAmountSum = this.jnpf.floatAdd(advanceAmountSum, this.dataForm.salesorder_item0List[i].price)
} }
} }
this.dataForm.advanceAmount = advanceAmountSum this.dataForm.advanceAmount = advanceAmountSum
@ -1056,6 +1064,7 @@
}, },
delsalesorder_item0List(index) { delsalesorder_item0List(index) {
this.dataForm.salesorder_item0List.splice(index, 1); this.dataForm.salesorder_item0List.splice(index, 1);
this.computeNoPrice();
}, },
addreceiptoutsoitemList() { addreceiptoutsoitemList() {
let item = { let item = {

@ -419,7 +419,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -443,7 +443,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -458,7 +458,7 @@
debugger debugger
let sum = 0; let sum = 0;
for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){ for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){
sum = sum + parseFloat(this.dataForm.arinvoices_item0List[i].invoiceQuantity) sum = this.jnpf.floatAdd(sum,this.dataForm.arinvoices_item0List[i].invoiceQuantity)
} }
this.dataForm.invoiceQuantity = sum this.dataForm.invoiceQuantity = sum
debugger debugger
@ -466,7 +466,7 @@
involceAmountSum(){ involceAmountSum(){
let sum = 0; let sum = 0;
for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){ for (let i =0;i<this.dataForm.arinvoices_item0List.length;i++){
sum = sum + parseFloat(this.dataForm.arinvoices_item0List[i].involceAmount) sum = this.jnpf.floatAdd(sum,this.dataForm.arinvoices_item0List[i].involceAmount)
} }
this.dataForm.invoiceAmount = sum this.dataForm.invoiceAmount = sum
}, },
@ -474,8 +474,8 @@
for (let i = 0;i<this.dataForm.arinvoices_item0List.length;i++) { for (let i = 0;i<this.dataForm.arinvoices_item0List.length;i++) {
this.taxRateOptions.find((item) => { this.taxRateOptions.find((item) => {
if (this.dataForm.arinvoices_item0List[i].taxRate == item.id) { if (this.dataForm.arinvoices_item0List[i].taxRate == item.id) {
this.dataForm.arinvoices_item0List[i].taxAmount = this.dataForm.arinvoices_item0List[i].involceAmount*item.fullName/100 this.dataForm.arinvoices_item0List[i].taxAmount = this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.arinvoices_item0List[i].involceAmount,item.fullName),100)
this.dataForm.arinvoices_item0List[i].amountNotTax = this.dataForm.arinvoices_item0List[i].involceAmount - this.dataForm.arinvoices_item0List[i].taxAmount this.dataForm.arinvoices_item0List[i].amountNotTax = this.jnpf.floatSub(this.dataForm.arinvoices_item0List[i].involceAmount, this.dataForm.arinvoices_item0List[i].taxAmount)
} }
}) })
} }
@ -484,7 +484,7 @@
for (let i = 0;i<this.dataForm.arinvoices_item1List.length;i++) { for (let i = 0;i<this.dataForm.arinvoices_item1List.length;i++) {
this.taxRateOptions.find((item) => { this.taxRateOptions.find((item) => {
if (this.dataForm.arinvoices_item1List[i].taxRate == item.id) { if (this.dataForm.arinvoices_item1List[i].taxRate == item.id) {
this.dataForm.arinvoices_item1List[i].taxAmount = this.dataForm.arinvoices_item1List[i].amount*item.fullName/100 this.dataForm.arinvoices_item1List[i].taxAmount = this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.arinvoices_item1List[i].amount,item.fullName),100)
} }
}) })
} }
@ -532,12 +532,12 @@
this.dataForm.arinvoices_item1List[i].taxRate = list[0].list[i].rate; this.dataForm.arinvoices_item1List[i].taxRate = list[0].list[i].rate;
this.dataForm.arinvoices_item1List[i].amountNotTax = list[0].list[i].noPrice; this.dataForm.arinvoices_item1List[i].amountNotTax = list[0].list[i].noPrice;
this.dataForm.arinvoices_item1List[i].unit = list[0].list[i].poundEntity.unit; this.dataForm.arinvoices_item1List[i].unit = list[0].list[i].poundEntity.unit;
amount = amount + list[0].list[i].price; amount = this.jnpf.floatAdd(amount, list[0].list[i].price);
num = num + list[0].list[i].quantity; num = this.jnpf.floatAdd(num, list[0].list[i].quantity);
// this.dataForm.arinvoices_item1List[i].taxAmount = list[0].list[i].price*list[0].list[i].rate // this.dataForm.arinvoices_item1List[i].taxAmount = list[0].list[i].price*list[0].list[i].rate
this.taxRateOptions.find((item) => { this.taxRateOptions.find((item) => {
if (this.dataForm.arinvoices_item1List[i].taxRate == item.id) { if (this.dataForm.arinvoices_item1List[i].taxRate == item.id) {
this.dataForm.arinvoices_item1List[i].taxAmount = this.dataForm.arinvoices_item1List[i].amount*item.fullName/100 this.dataForm.arinvoices_item1List[i].taxAmount = this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.arinvoices_item1List[i].amount,item.fullName),100)
} }
}) })
} }

@ -295,7 +295,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -309,7 +309,7 @@
amountSum(){ amountSum(){
let sum = 0; let sum = 0;
for (let i = 0;i<this.dataForm.collection_item0List.length;i++){ for (let i = 0;i<this.dataForm.collection_item0List.length;i++){
sum = sum + parseFloat(this.dataForm.collection_item0List[i].amount); sum = this.jnpf.floatAdd(sum,this.dataForm.collection_item0List[i].amount);
} }
this.dataForm.amountCollected = sum; this.dataForm.amountCollected = sum;
}, },
@ -342,9 +342,9 @@
debugger debugger
for (let i = 0;i<list.length;i++){ for (let i = 0;i<list.length;i++){
this.dataForm.collection_item0List[i].salesorderId = list[i].id; this.dataForm.collection_item0List[i].salesorderId = list[i].id;
this.dataForm.collection_item0List[i].rate = list[i].price - list[i].notPrice; this.dataForm.collection_item0List[i].rate = this.jnpf.floatSub(list[i].price,list[i].notPrice);
// this.dataForm.collection_item0List[i].amount = list[i].price - list[i].amountCollected; // this.dataForm.collection_item0List[i].amount = list[i].price - list[i].amountCollected;
amountCollected = amountCollected + this.dataForm.collection_item0List[i].amount; amountCollected = this.jnpf.floatAdd(amountCollected, this.dataForm.collection_item0List[i].amount);
debugger debugger
} }
this.dataForm.amountCollected = amountCollected; this.dataForm.amountCollected = amountCollected;

@ -358,7 +358,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -412,7 +412,7 @@
debugger debugger
this.rateOptions.find((item) => { this.rateOptions.find((item) => {
if (this.dataForm.receiptout_item0List[i].rate == item.id) { if (this.dataForm.receiptout_item0List[i].rate == item.id) {
this.dataForm.receiptout_item0List[i].rateAmount = this.dataForm.receiptout_item0List[i].amount * item.fullName / 100 this.dataForm.receiptout_item0List[i].rateAmount =this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.receiptout_item0List[i].amount, item.fullName),100)
debugger debugger
} }
}) })

@ -319,7 +319,7 @@
sums[index] = values.reduce((prev, curr) => { sums[index] = values.reduce((prev, curr) => {
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)) { if (!isNaN(value)) {
return prev + curr; return this.jnpf.floatAdd(prev, curr);
} else { } else {
return prev; return prev;
} }
@ -335,7 +335,6 @@
var sumNum = 0; var sumNum = 0;
var excludeFields = []; var excludeFields = [];
for (let i = 0; i < this.dataForm.saleback_item0List.length; i++) { for (let i = 0; i < this.dataForm.saleback_item0List.length; i++) {
debugger
// excludeFields.push(this.dataForm.saleback_item0List[i].vehicleId); // excludeFields.push(this.dataForm.saleback_item0List[i].vehicleId);
if(a == this.dataForm.saleback_item0List[i].vehicleId){ if(a == this.dataForm.saleback_item0List[i].vehicleId){
debugger debugger
@ -345,18 +344,18 @@
this.dataForm.saleback_item0List[i].unit = b.unit; this.dataForm.saleback_item0List[i].unit = b.unit;
this.dataForm.saleback_item0List[i].price = b.sales_price; this.dataForm.saleback_item0List[i].price = b.sales_price;
this.dataForm.saleback_item0List[i].rate = b.rate; this.dataForm.saleback_item0List[i].rate = b.rate;
this.dataForm.saleback_item0List[i].amount = b.sales_price * b.settlement; this.dataForm.saleback_item0List[i].amount = this.jnpf.floatMul(b.sales_price, b.settlement);
this.dataForm.saleback_item0List[i].pountType = b.pound_type; this.dataForm.saleback_item0List[i].pountType = b.pound_type;
this.dataForm.saleback_item0List[i].businessId = b.business_id; this.dataForm.saleback_item0List[i].businessId = b.business_id;
this.dataForm.saleback_item0List[i].salesorderItem0Id = b.saleitemId; this.dataForm.saleback_item0List[i].salesorderItem0Id = b.saleitemId;
this.dataForm.saleback_item0List[i].poundlistId = b.poundlistId; this.dataForm.saleback_item0List[i].poundlistId = b.poundlistId;
this.rateOptions.find((item) => { this.rateOptions.find((item) => {
if (this.dataForm.saleback_item0List[i].rate == item.id) { if (this.dataForm.saleback_item0List[i].rate == item.id) {
this.dataForm.saleback_item0List[i].notAmount = this.dataForm.saleback_item0List[i].amount*item.fullName/100 this.dataForm.saleback_item0List[i].notAmount = this.jnpf.floatDiv(this.jnpf.floatMul(this.dataForm.saleback_item0List[i].amount,item.fullName),100)
} }
}) })
sumNum = sumNum + parseFloat(b.settlement); sumNum = this.jnpf.floatAdd(sumNum,b.settlement);
sumPrice = sumPrice + parseFloat(this.dataForm.saleback_item0List[i].amount); sumPrice = this.jnpf.floatAdd(sumPrice,this.dataForm.saleback_item0List[i].amount);
} }
} }
this.dataForm.refundNum = sumNum; this.dataForm.refundNum = sumNum;

Loading…
Cancel
Save