Browse Source

ST24PRJ-137 [결함] 촬영SCM> 상품정보>상품상세기술서 저장버튼 노출

card007 4 năm trước cách đây
mục cha
commit
6229e64e14
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      src/main/webapp/WEB-INF/views/goods/GoodsDetailForm.html

+ 7 - 1
src/main/webapp/WEB-INF/views/goods/GoodsDetailForm.html

@@ -743,7 +743,7 @@
 							<button type="button" class="btn btnLeft btn-base btn-lg" id="btnGoodsDetailPreview">미리보기</button>
 						</li> -->
 						<li class="right">
-							<th:block th:if="${sessionInfo.roleCd == 'G001_B000'}">
+							<th:block th:if="${sessionInfo.roleCd == 'G001_B000' or sessionInfo.roleCd == 'G001_E000'}">
 							<button type="button" class="btn btnRight btn-success btn-lg" id="btnGoodsDetailSave">저장</button>
 							</th:block>
 						</li>
@@ -1018,6 +1018,7 @@
 			fnDataLengthCheck('goodsSnm1',200);
 			$("#goodsDetailForm textarea[name=goodsSnmTxt]").val(result.goodsSnm);
 			$("#goodsDetailForm input[name=goodsSnm]").val(result.goodsSnm);
+			// kjc
 			$('#goodsDetailForm').find('#listPriceTxt').html(result.listPrice.addComma());
 			$('#goodsDetailForm input[name=listPrice]').val(result.listPrice);
 			$('#goodsDetailForm input[name=currPrice]').val(result.currPrice.addComma());
@@ -1650,6 +1651,11 @@
 
 	//상품저장 버튼 클릭 시
 	$('#btnGoodsDetailSave').click(function() {
+		// 2021.11.25 card007 촬영업체는 가격 및 상품상태 수정불가 처리
+		if (sessRoleCd == "G001_E000") {
+			$("#goodsDetailForm input[name=currPrice]").val($("#goodsDetailForm input[name=currPriceOrg]").val());
+			$('#goodsDetailForm select[name=goodsStat]').val($("#goodsDetailForm input[name=goodsStatOrg]").val());
+		}
 
 		var optCheck = false;
 		var idx = 0;