|
|
@@ -64,12 +64,12 @@
|
|
|
<option th:if="${roleList}" th:each="oneData, status : ${roleList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
</td>
|
|
|
- <th><span id="registerRoleRefVal">업체</span></th>
|
|
|
+ <th><span id="registerRoleRefVal">입점벤더</span></th>
|
|
|
<td>
|
|
|
<input type="hidden" name="roleRefVal"/>
|
|
|
- <select name="supplyCompCd">
|
|
|
- <option th:if="${sessionInfo.supplyCompCd == null}" value="">[선택]</option>
|
|
|
- <option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
+ <select name="supplyVendorCd">
|
|
|
+ <option th:if="${sessionInfo.supplyVendorCd == null}" value="">[선택]</option>
|
|
|
+ <option th:if="${supplyVendorList}" th:each="oneData, status : ${supplyVendorList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
<select name="vendorId" style="display: none">
|
|
|
<option th:if="${sessionInfo.vendorId == null}" value="">[선택]</option>
|
|
|
@@ -177,16 +177,16 @@
|
|
|
</select>
|
|
|
</td>
|
|
|
<th>
|
|
|
- <span id="detailRoleRefVal" th:if="${userInfo.roleCd == 'G001_B000'}">업체</span>
|
|
|
+ <span id="detailRoleRefVal" th:if="${userInfo.roleCd == 'G001_B000'}">입점벤더</span>
|
|
|
<span id="detailRoleRefVal" th:if="${userInfo.roleCd == 'G001_C000'}">외부몰벤더</span>
|
|
|
<span id="detailRoleRefVal" th:if="${userInfo.roleCd == 'G001_D000'}">제휴채널</span>
|
|
|
<span id="detailRoleRefVal" th:if="${userInfo.roleCd != 'G001_B000' and userInfo.roleCd != 'G001_C000' and userInfo.roleCd != 'G001_D000'}"></span>
|
|
|
</th>
|
|
|
<td>
|
|
|
<input type="hidden" name="roleRefVal" th:value="${userInfo.roleRefVal}"/>
|
|
|
- <select name="supplyCompCd" th:style="${userInfo.roleCd == 'G001_B000' ? '' : 'display: none'}">
|
|
|
- <option th:if="${sessionInfo.supplyCompCd == null}" value="">[선택]</option>
|
|
|
- <option th:if="${supplyCompList}" th:each="oneData, status : ${supplyCompList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}" th:selected="${userInfo.roleRefVal == oneData.cd}"></option>
|
|
|
+ <select name="supplyVendorCd" th:style="${userInfo.roleCd == 'G001_B000' ? '' : 'display: none'}">
|
|
|
+ <option th:if="${sessionInfo.supplyVendorCd == null}" value="">[선택]</option>
|
|
|
+ <option th:if="${supplyVendorList}" th:each="oneData, status : ${supplyVendorList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}" th:selected="${userInfo.roleRefVal == oneData.cd}"></option>
|
|
|
</select>
|
|
|
<select name="vendorId" th:style="${userInfo.roleCd == 'G001_C000' ? '' : 'display: none'}">
|
|
|
<option th:if="${sessionInfo.vendorId == null}" value="">[선택]</option>
|
|
|
@@ -298,23 +298,23 @@
|
|
|
// 등록화면 권한 변경 시
|
|
|
$('#userRegisterForm select[name=roleCd]').on('change', function() {
|
|
|
var abRoleCd = $(this).val().substring(0,6);
|
|
|
- if (abRoleCd == 'G001_A' || abRoleCd == 'G001_B') { // 입점업체
|
|
|
- $('#userRegisterForm select[name=supplyCompCd]').show();
|
|
|
+ if (abRoleCd == 'G001_A' || abRoleCd == 'G001_B') { // 입점벤더
|
|
|
+ $('#userRegisterForm select[name=supplyVendorCd]').show();
|
|
|
$('#userRegisterForm select[name=vendorId]').hide();
|
|
|
$('#userRegisterForm select[name=afLinkCd]').hide();
|
|
|
- $('#registerRoleRefVal').text('업체');
|
|
|
+ $('#registerRoleRefVal').text('입점벤더');
|
|
|
} else if (abRoleCd == 'G001_C') { // 외부몰벤더
|
|
|
- $('#userRegisterForm select[name=supplyCompCd]').hide();
|
|
|
+ $('#userRegisterForm select[name=supplyVendorCd]').hide();
|
|
|
$('#userRegisterForm select[name=vendorId]').show();
|
|
|
$('#userRegisterForm select[name=afLinkCd]').hide();
|
|
|
$('#registerRoleRefVal').text('외부몰벤더');
|
|
|
} else if (abRoleCd == 'G001_D') { // 제휴채널
|
|
|
- $('#userRegisterForm select[name=supplyCompCd]').hide();
|
|
|
+ $('#userRegisterForm select[name=supplyVendorCd]').hide();
|
|
|
$('#userRegisterForm select[name=vendorId]').hide();
|
|
|
$('#userRegisterForm select[name=afLinkCd]').show();
|
|
|
$('#registerRoleRefVal').text('제휴채널');
|
|
|
} else { // 외부몰벤더
|
|
|
- $('#userRegisterForm select[name=supplyCompCd]').hide();
|
|
|
+ $('#userRegisterForm select[name=supplyVendorCd]').hide();
|
|
|
$('#userRegisterForm select[name=vendorId]').hide();
|
|
|
$('#userRegisterForm select[name=afLinkCd]').hide();
|
|
|
$('#registerRoleRefVal').text('');
|
|
|
@@ -413,23 +413,23 @@
|
|
|
}
|
|
|
|
|
|
var abRoleCd = $(this).val().substring(0,6);
|
|
|
- if (abRoleCd == 'G001_A' || abRoleCd == 'G001_B') { // 입점업체
|
|
|
- $('#userDetailForm select[name=supplyCompCd]').show();
|
|
|
+ if (abRoleCd == 'G001_A' || abRoleCd == 'G001_B') { // 입점벤더
|
|
|
+ $('#userDetailForm select[name=supplyVendorCd]').show();
|
|
|
$('#userDetailForm select[name=vendorId]').hide();
|
|
|
$('#userDetailForm select[name=afLinkCd]').hide();
|
|
|
- $('#detailRoleRefVal').text('업체');
|
|
|
+ $('#detailRoleRefVal').text('입점벤더');
|
|
|
} else if (abRoleCd == 'G001_C') { // 외부몰벤더
|
|
|
- $('#userDetailForm select[name=supplyCompCd]').hide();
|
|
|
+ $('#userDetailForm select[name=supplyVendorCd]').hide();
|
|
|
$('#userDetailForm select[name=vendorId]').show();
|
|
|
$('#userDetailForm select[name=afLinkCd]').hide();
|
|
|
$('#detailRoleRefVal').text('외부몰벤더');
|
|
|
} else if (abRoleCd == 'G001_D') { // 제휴채널
|
|
|
- $('#userDetailForm select[name=supplyCompCd]').hide();
|
|
|
+ $('#userDetailForm select[name=supplyVendorCd]').hide();
|
|
|
$('#userDetailForm select[name=vendorId]').hide();
|
|
|
$('#userDetailForm select[name=afLinkCd]').show();
|
|
|
$('#detailRoleRefVal').text('제휴채널');
|
|
|
} else {
|
|
|
- $('#userDetailForm select[name=supplyCompCd]').hide();
|
|
|
+ $('#userDetailForm select[name=supplyVendorCd]').hide();
|
|
|
$('#userDetailForm select[name=vendorId]').hide();
|
|
|
$('#userDetailForm select[name=afLinkCd]').hide();
|
|
|
$('#detailRoleRefVal').text('');
|
|
|
@@ -471,12 +471,12 @@
|
|
|
}
|
|
|
|
|
|
var abRoleCd = $(formId + ' select[name=roleCd]').val().substring(0,6);
|
|
|
- if (abRoleCd == 'G001_B') { // 입점업체
|
|
|
- if (gagajf.isNull($(formId + ' select[name=supplyCompCd]').val())) {
|
|
|
- mcxDialog.alertC('업체를 선택해 주세요.', {
|
|
|
+ if (abRoleCd == 'G001_B') { // 입점벤더
|
|
|
+ if (gagajf.isNull($(formId + ' select[name=supplyVendorCd]').val())) {
|
|
|
+ mcxDialog.alertC('입점벤더를 선택해 주세요.', {
|
|
|
sureBtnText: "확인",
|
|
|
sureBtnClick: function() {
|
|
|
- $(formId + ' select[name=supplyCompCd]').focus();
|
|
|
+ $(formId + ' select[name=supplyVendorCd]').focus();
|
|
|
}
|
|
|
});
|
|
|
return;
|
|
|
@@ -523,8 +523,8 @@
|
|
|
$(formId + ' input[name=maskingYn]').val($(formId + ' input:checkbox[name=chkMaskingYn]').is(":checked") ? 'Y' : 'N');
|
|
|
$(formId + ' input[name=useYn]').val($(formId + ' input:checkbox[name=chkUseYn]').is(":checked") ? 'Y' : 'N');
|
|
|
|
|
|
- if (abRoleCd == 'G001_A' || abRoleCd == 'G001_B' || abRoleCd == 'G001_E') { // 자사,입점,촬영업체
|
|
|
- $(formId + ' input[name=roleRefVal]').val($(formId + ' select[name=supplyCompCd]').val());
|
|
|
+ if (abRoleCd == 'G001_A' || abRoleCd == 'G001_B' || abRoleCd == 'G001_E') { // 자사,입점벤더,촬영업체
|
|
|
+ $(formId + ' input[name=roleRefVal]').val($(formId + ' select[name=supplyVendorCd]').val());
|
|
|
} else if (abRoleCd == 'G001_C') { // 외부몰벤더
|
|
|
$(formId + ' input[name=roleRefVal]').val($(formId + ' select[name=vendorId]').val());
|
|
|
} else if (abRoleCd == 'G001_D') { // 제휴채널
|