| | |
| | | //重量 |
| | | private BigDecimal goodsWeight; |
| | | |
| | | private String sample; |
| | | |
| | | } |
| | |
| | | //重量 |
| | | private BigDecimal goodsWeight; |
| | | |
| | | private String sample; |
| | | |
| | | } |
| | |
| | | private String styleName; |
| | | //重量 |
| | | private BigDecimal goodsWeight; |
| | | |
| | | private String sample; |
| | | } |
| | |
| | | mallGoodsSku.setCostPrice(addMallGoodsSkuDto.getCostPrice()); |
| | | mallGoodsSku.setGoodsId(mallGoods.getId()); |
| | | mallGoodsSku.setGoodsWeight(addMallGoodsSkuDto.getGoodsWeight()); |
| | | mallGoodsSku.setSample(addMallGoodsSkuDto.getSample()); |
| | | mallGoodsSkuMapper.insert(mallGoodsSku); |
| | | } |
| | | } |
| | |
| | | mallGoodsSku.setGoodsId(mallGoods.getId()); |
| | | mallGoodsSku.setCostPrice(addMallGoodsSkuDto.getCostPrice()); |
| | | mallGoodsSku.setGoodsWeight(addMallGoodsSkuDto.getGoodsWeight()); |
| | | mallGoodsSku.setSample(addMallGoodsSkuDto.getSample()); |
| | | mallGoodsSkuMapper.updateById(mallGoodsSku); |
| | | } else { |
| | | //新增商品规格 |
| | |
| | | mallGoodsSku.setCostPrice(addMallGoodsSkuDto.getCostPrice()); |
| | | mallGoodsSku.setGoodsId(mallGoods.getId()); |
| | | mallGoodsSku.setGoodsWeight(addMallGoodsSkuDto.getGoodsWeight()); |
| | | mallGoodsSku.setSample(addMallGoodsSkuDto.getSample()); |
| | | mallGoodsSkuMapper.insert(mallGoodsSku); |
| | | } |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "现价") |
| | | private BigDecimal presentPrice; |
| | | |
| | | private String sample; |
| | | } |
| | |
| | | <input type="text" name="addMallGoodsSkuDtos" autocomplete="off" class="layui-input" id="attrName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-lg6"> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn" id="test3" >添加</button> |
| | | <div class="layui-col-lg1"> |
| | | <button type="button" |
| | | class="layui-btn layui-btn-normal layui-btn" id="test3"> |
| | | 添加 |
| | | </button> |
| | | </div> |
| | | <div class="layui-col-lg1"> |
| | | <button type="button" |
| | | class="layui-btn layui-btn-normal layui-btn" id="test4"> |
| | | 新增样品 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | ,cols: [[ //表头 |
| | | {type: 'checkbox'} |
| | | ,{field: 'index', title: '序号', width:70} |
| | | ,{field: 'styleName', title: '样式', edit:'text'} |
| | | ,{field: 'skuName', title: '规格', edit:'text'} |
| | | ,{field: 'goodsWeight', title: '重量', edit:'text'} |
| | | ,{field: 'presentPrice', title: '现价', edit:'text'} |
| | | ,{field: 'originalPrice', title: '原价', edit:'text'} |
| | | ,{field: 'costPrice', title: '成本价', edit:'text'} |
| | | ,{field: 'styleName', title: '样式', edit:'text', width:200} |
| | | ,{field: 'skuName', title: '规格', edit:'text', width:200} |
| | | ,{field: 'sample', title:'样品', width:100} |
| | | ,{field: 'goodsWeight', title: '重量', edit:'text', width:100} |
| | | ,{field: 'presentPrice', title: '现价', edit:'text', width:100} |
| | | ,{field: 'originalPrice', title: '原价', edit:'text', width:100} |
| | | ,{field: 'costPrice', title: '成本价', edit:'text', width:100} |
| | | ,{templet: '#tableImgUpload', title: '缩略图', width:150} |
| | | ,{field: 'stock', title: '库存', edit:'text'} |
| | | ,{field: 'skuVolume', title: '销量', edit:'text'} |
| | | ,{field: 'stock', title: '库存', edit:'text', width:100} |
| | | ,{field: 'skuVolume', title: '销量', edit:'text', width:100} |
| | | ,{field: 'skuImage', title: '缩略图地址', hide:true} |
| | | ]] |
| | | ,data: [] |
| | |
| | | addTableDate(data); |
| | | }); |
| | | |
| | | $('#test4').on('click', function () { |
| | | var data = {}; |
| | | data.sample = "样品"; |
| | | addTableDate(data); |
| | | }); |
| | | |
| | | function bindUpload(index) { |
| | | // 普通图片上传 |
| | | upload.render({ |
| | |
| | | class="layui-input" id="attrName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-lg6"> |
| | | <div class="layui-col-lg3"> |
| | | <button type="button" |
| | | class="layui-btn layui-btn-normal layui-btn" id="test3"> |
| | | 添加 |
| | | </button> |
| | | </div> |
| | | <div class="layui-col-lg3"> |
| | | <button type="button" |
| | | class="layui-btn layui-btn-normal layui-btn" id="test4"> |
| | | 新增样品 |
| | | </button> |
| | | </div> |
| | | </div> |
| | |
| | | , defaultToolbar: [] |
| | | , cols: [[ //表头 |
| | | {type: 'checkbox'} |
| | | , {field: 'index', title: '序号', width: 70} |
| | | , {field: 'styleName', title: '样式', edit: 'text'} |
| | | , {field: 'skuName', title: '规格', edit: 'text'} |
| | | , {field: 'goodsWeight', title: '重量', edit:'text'} |
| | | , {field: 'presentPrice', title: '现价', edit: 'text'} |
| | | , {field: 'originalPrice', title: '原价', edit: 'text'} |
| | | , {field: 'costPrice', title: '成本价', edit: 'text'} |
| | | , {templet: '#tableImgUpload', title: '缩略图', width: 150} |
| | | , {field: 'stock', title: '库存', edit: 'text'} |
| | | , {field: 'skuVolume', title: '销量', edit: 'text'} |
| | | , {field: 'skuImage', title: '缩略图地址', hide: true} |
| | | , {field: 'id', title: 'skuId', hide: true} |
| | | , {field: 'styleId', title: 'styleId', hide: true} |
| | | ,{field: 'index', title: '序号', width: 70} |
| | | ,{field: 'styleName', title: '样式', edit:'text', width:200} |
| | | ,{field: 'skuName', title: '规格', edit:'text', width:200} |
| | | ,{field: 'sample', title:'样品', width:100} |
| | | ,{field: 'goodsWeight', title: '重量', edit:'text', width:100} |
| | | ,{field: 'presentPrice', title: '现价', edit:'text', width:100} |
| | | ,{field: 'originalPrice', title: '原价', edit:'text', width:100} |
| | | ,{field: 'costPrice', title: '成本价', edit:'text', width:100} |
| | | ,{templet: '#tableImgUpload', title: '缩略图', width:150} |
| | | ,{field: 'stock', title: '库存', edit:'text', width:100} |
| | | ,{field: 'skuVolume', title: '销量', edit:'text', width:100} |
| | | ,{field: 'skuImage', title: '缩略图地址', hide: true} |
| | | ,{field: 'id', title: 'skuId', hide: true} |
| | | ,{field: 'styleId', title: 'styleId', hide: true} |
| | | ]] |
| | | , data: [] |
| | | }); |
| | |
| | | addTableDate(data); |
| | | }); |
| | | |
| | | $('#test4').on('click', function () { |
| | | var data = {}; |
| | | data.sample = "样品"; |
| | | addTableDate(data); |
| | | }); |
| | | |
| | | function bindUpload(index) { |
| | | // 普通图片上传 |
| | | upload.render({ |