diff --git a/anrui-riskcenter-ui/src/views/warrantinformation/warrantinformationByHandOver.vue b/anrui-riskcenter-ui/src/views/warrantinformation/warrantinformationByHandOver.vue index ab3be05775..39c6f84ea8 100644 --- a/anrui-riskcenter-ui/src/views/warrantinformation/warrantinformationByHandOver.vue +++ b/anrui-riskcenter-ui/src/views/warrantinformation/warrantinformationByHandOver.vue @@ -182,6 +182,7 @@ export default { recipient: '', transferRemarks: '' } + this.submitdisabled = false this.$emit('doback') } } diff --git a/doc/databases/yxt-as.sql b/doc/databases/yxt-as.sql index 9656385e0a..0ff7a425b8 100644 --- a/doc/databases/yxt-as.sql +++ b/doc/databases/yxt-as.sql @@ -69,37 +69,44 @@ CREATE TABLE `as_busrepair_inventorybill` DROP TABLE IF EXISTS `as_busrepair_inventorybill_detail`; CREATE TABLE `as_busrepair_inventorybill_detail` ( - `id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', - `sid` varchar(64) NOT NULL COMMENT 'sid', - `lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', - `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', - `isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', - `state` int(32) DEFAULT '1' COMMENT '状态', - `isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', - `remarks` varchar(255) DEFAULT NULL COMMENT '备注', - `createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', - `updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', - `billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', - `inventorySid` varchar(64) DEFAULT NULL COMMENT '商品库存sid', - `goodsSid` varchar(64) DEFAULT NULL COMMENT '商品sid', - `goodsName` varchar(64) DEFAULT NULL COMMENT '商品名称', - `goodsCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', - `specification` varchar(64) DEFAULT NULL COMMENT '规格', - `goodsModel` varchar(64) DEFAULT NULL COMMENT '型号', - `currentCount` decimal(10,0) DEFAULT NULL COMMENT '出库前的库存量', - `unit` varchar(64) DEFAULT NULL COMMENT '计量单位', - `warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', - `warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', - `warehouseArea` varchar(64) DEFAULT NULL COMMENT '货位', - `needCount` decimal(10,0) DEFAULT NULL COMMENT '需求数量(维修工单中)', - `outboundCount` decimal(10,0) DEFAULT NULL COMMENT '已出库数量(维修工单中,计算)', - `count` decimal(10,0) DEFAULT NULL COMMENT '出/退库数量', - `price` decimal(10, 2) DEFAULT NULL COMMENT '销售价(元)', - `subjectSid` varchar(64) DEFAULT NULL COMMENT '科目sid', - `subject` varchar(64) DEFAULT NULL COMMENT '科目', - `operUserSid` varchar(64) DEFAULT NULL COMMENT '领料人sid', - `operName` varchar(64) DEFAULT NULL COMMENT '领料人姓名', + `id` int(32) NOT NULL AUTO_INCREMENT COMMENT 'id', + `sid` varchar(64) NOT NULL COMMENT 'sid', + `lockVersion` int(32) DEFAULT '0' COMMENT '版本锁', + `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', + `isEnable` int(32) DEFAULT '1' COMMENT '是否可用:1可用,0不可用', + `state` int(32) DEFAULT '1' COMMENT '状态', + `isDelete` int(32) DEFAULT '0' COMMENT '是否删除:0未删除,1已删除', + `remarks` varchar(255) DEFAULT NULL COMMENT '备注', + `createBySid` varchar(64) DEFAULT NULL COMMENT '创建人sid', + `updateBySid` varchar(64) DEFAULT NULL COMMENT '修改人sid', + `billSid` varchar(64) DEFAULT NULL COMMENT '单据sid', + `sitemSid` varchar(64) DEFAULT NULL COMMENT '工单服务项目记录sid', + `inventorySid` varchar(64) DEFAULT NULL COMMENT '商品库存sid', + `goodsID` varchar(64) DEFAULT NULL COMMENT '商品ID', + `goodSpuSid` varchar(64) DEFAULT NULL COMMENT '商品基础信息Sid', + `goodsSpuName` varchar(64) DEFAULT NULL COMMENT '商品名称', + `goodsSkuSid` varchar(64) DEFAULT NULL COMMENT '商品Skusid', + `goodsSkuTitle` varchar(64) DEFAULT NULL COMMENT '商品Sku名称', + `goodsSkuCode` varchar(64) DEFAULT NULL COMMENT '商品编码(图号)', + `goodsSkuOwnSpec` varchar(64) DEFAULT NULL COMMENT '规格型号', + `currentCount` decimal(10, 0) DEFAULT NULL COMMENT '出库前的库存量', + `unit` varchar(64) DEFAULT NULL COMMENT '计量单位', + `warehouseSid` varchar(64) DEFAULT NULL COMMENT '仓库sid', + `warehouseName` varchar(64) DEFAULT NULL COMMENT '仓库名称', + `warehouseRackSid` varchar(64) DEFAULT NULL COMMENT '库位Sid', + `warehouseRackCode` varchar(64) DEFAULT NULL COMMENT '库位编号', + `needCount` decimal(10, 0) DEFAULT NULL COMMENT '需求数量(维修工单中)', + `count` decimal(10, 0) DEFAULT NULL COMMENT '出/退库数量', + `price` decimal(10, 2) DEFAULT NULL COMMENT '销售价(元)', + `discountAmount` decimal(10, 2) DEFAULT NULL COMMENT '优惠金额(=销售价*(1-折扣*0.1))', + `amount` decimal(10, 2) DEFAULT NULL COMMENT '金额(销售价-优惠金额)', + `discount` int(32) DEFAULT NULL COMMENT '折扣(0-10,0免费,10不打折)', + `subjectSid` varchar(64) DEFAULT NULL COMMENT '科目sid', + `subject` varchar(64) DEFAULT NULL COMMENT '科目', + `operUserSid` varchar(64) DEFAULT NULL COMMENT '领料人sid', + `operName` varchar(64) DEFAULT NULL COMMENT '领料人姓名', + `oldIsReclaim` int(32) DEFAULT NULL COMMENT '旧件是否收回登记(0未收回登记,1已收回登记)', PRIMARY KEY (`id`), KEY `id` (`id`) ) ENGINE = INNODB diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetail.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetail.java index 770479f79c..745f41e794 100644 --- a/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetail.java +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetail.java @@ -16,18 +16,34 @@ public class AsBusrepairInventorybillDetail extends BaseEntity { private static final long serialVersionUID = 7134535185685249599L; @ApiModelProperty("单据sid") private String billSid; + //工单服务项目记录sid + private String sitemSid; @ApiModelProperty("商品库存sid") private String inventorySid; - @ApiModelProperty("商品sid") - private String goodsSid; - @ApiModelProperty("商品名称") - private String goodsName; - @ApiModelProperty("商品编码") + //商品ID + private String goodsID; + //商品基础信息sid + private String goodSpuSid; + //商品名称 + private String goodsSpuName; + //商品Skusid + private String goodsSkuSid; + //商品Sku名称 + private String goodsSkuTitle; + //商品编码(图号) + private String goodsSkuCode; + //规格型号 + private String goodsSkuOwnSpec; + /* @ApiModelProperty("商品sid") + private String goodsSid; + @ApiModelProperty("商品名称") + private String goodsName;*/ + /* @ApiModelProperty("商品编码") private String goodsCode; @ApiModelProperty("规格") private String specification; @ApiModelProperty("型号") - private String goodsModel; + private String goodsModel;*/ @ApiModelProperty("出库前的库存量") private BigDecimal currentCount; @ApiModelProperty("计量单位") @@ -36,16 +52,30 @@ public class AsBusrepairInventorybillDetail extends BaseEntity { private String warehouseSid; @ApiModelProperty("仓库名称") private String warehouseName; - @ApiModelProperty("货位") - private String warehouseArea; - @ApiModelProperty("需求数量") + //库位Sid + private String warehouseRackSid; + //库位编号 + private String warehouseRackCode; + + + /* @ApiModelProperty("货位") + private String warehouseArea;*/ + @ApiModelProperty("需求数量(维修工单中)") private BigDecimal needCount; - @ApiModelProperty("已出库数量") - private BigDecimal outboundCount; + /* @ApiModelProperty("已出库数量") + private BigDecimal outboundCount;*/ @ApiModelProperty("出/退库数量") private BigDecimal count; @ApiModelProperty("销售价(元)") private BigDecimal price; + //折扣(0-10,0免费,10不打折) + private Integer discount; + //优惠金额(=销售价*(1-折扣*0.1)) + private BigDecimal discountAmount; + //金额(销售价-优惠金额) + private BigDecimal amount; + + @ApiModelProperty("科目sid") private String subjectSid; @ApiModelProperty("科目") @@ -54,4 +84,7 @@ public class AsBusrepairInventorybillDetail extends BaseEntity { private String operUserSid; @ApiModelProperty("领料人姓名") private String operName; + + //旧件是否收回登记(0未收回登记,1已收回登记) + private Integer oldIsReclaim; } diff --git a/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetailDto.java b/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetailDto.java index 49de112354..ea56d9edb0 100644 --- a/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetailDto.java +++ b/yxt-as/src/main/java/com/yxt/anrui/as/api/asbusrepairinventorybilldetail/AsBusrepairInventorybillDetailDto.java @@ -1,5 +1,6 @@ package com.yxt.anrui.as.api.asbusrepairinventorybilldetail; +import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -15,16 +16,31 @@ public class AsBusrepairInventorybillDetailDto { @ApiModelProperty("商品库存sid") private String inventorySid; - @ApiModelProperty("商品sid") - private String goodsSid; - @ApiModelProperty("商品名称") - private String goodsName; - @ApiModelProperty("商品编码") - private String goodsCode; - @ApiModelProperty("规格") - private String specification; - @ApiModelProperty("型号") - private String goodsModel; + //商品ID + @JsonProperty("goodsID") + private String goodsID; + //商品基础信息sid + private String goodSpuSid; + //商品名称 + private String goodsSpuName; + //商品Skusid + private String goodsSkuSid; + //商品Sku名称 + private String goodsSkuTitle; + //商品编码(图号) + private String goodsSkuCode; + //规格型号 + private String goodsSkuOwnSpec; + /* @ApiModelProperty("商品sid") + private String goodsSid; + @ApiModelProperty("商品名称") + private String goodsName; + @ApiModelProperty("商品编码") + private String goodsCode; + @ApiModelProperty("规格") + private String specification; + @ApiModelProperty("型号") + private String goodsModel;*/ @ApiModelProperty("出库前的库存量") private BigDecimal currentCount; @ApiModelProperty("计量单位") @@ -33,16 +49,26 @@ public class AsBusrepairInventorybillDetailDto { private String warehouseSid; @ApiModelProperty("仓库名称") private String warehouseName; - @ApiModelProperty("货位") - private String warehouseArea; + //库位Sid + private String warehouseRackSid; + //库位编号 + private String warehouseRackCode; + /*@ApiModelProperty("货位") + private String warehouseArea;*/ @ApiModelProperty("需求数量") - private BigDecimal needCount; - @ApiModelProperty("已出库数量") - private BigDecimal outboundCount; + private String needCount; + /* @ApiModelProperty("已出库数量") + private BigDecimal outboundCount;*/ @ApiModelProperty("出/退库数量") - private BigDecimal count; + private String count; @ApiModelProperty("销售价(元)") - private BigDecimal price; + private String price; + //折扣(0-10,0免费,10不打折) + private Integer discount; + //优惠金额(=销售价*(1-折扣*0.1)) + private BigDecimal discountAmount; + //金额(销售价-优惠金额) + private BigDecimal amount; @ApiModelProperty("科目sid") private String subjectSid; @ApiModelProperty("科目")