| | |
| | | |
| | | var arrCarriageRule = []; |
| | | arrCarriageRule.push(goodsInfo.carriageRuleId) |
| | | if (carriageRule.setValue) { |
| | | carriageRule.setValue(arrCarriageRule); |
| | | } |
| | | |
| | | if (couponRule.setValue) { |
| | | couponRule.setValue(goodsInfo.couponIds); |
| | | } |
| | | |
| | | if (goodsInfo.isNormal == 2) { |
| | | $(".tc-set").show(); |
| | |
| | | } |
| | | |
| | | form.on('submit(goods-update-form-submit)', function (data) { |
| | | let couponRuleList = couponRule.getValue(); |
| | | if (couponRuleList.length > 0) { |
| | | let couponRuleList = couponRule.getValue ? couponRule.getValue() : []; |
| | | if (couponRuleList && couponRuleList.length > 0) { |
| | | var couponIds = []; |
| | | layui.each(couponRuleList, function (key, item) { |
| | | couponIds.push(item.id) |
| | |
| | | data.field.mailGoodsSkuDto = tableSkuData; |
| | | data.field.delSkuId=delSku; |
| | | data.field.categoryId = category.getValue('valueStr'); |
| | | data.field.carriageRuleId = carriageRule.getValue('valueStr'); |
| | | var carriageRuleId = carriageRule.getValue ? carriageRule.getValue('valueStr') : ''; |
| | | data.field.carriageRuleId = carriageRuleId; |
| | | // data.field.goodsDetails = editor.getHtml(); |
| | | data.field.goodsDetails = editor.txt.html(); |
| | | $.ajax({ |