| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <!DOCTYPE html>
- <html lang="ko"
- xmlns:th="http://www.thymeleaf.org">
- <!--
- *******************************************************************************
- * @source : SaveInvoiceForm.html
- * @desc : 송장등록/수정 화면
- *============================================================================
- * ISTYLE24
- * Copyright(C) 2021 TSIT, All rights reserved.
- *============================================================================
- * VER DATE AUTHOR DESCRIPTION
- * === =========== ========== =============================================
- * 1.0 2021.03.06 moon 최초 작성
- *******************************************************************************
- -->
- <div class="modalPopup" data-width="900" >
- <div class="panelStyle">
- <div class="panelTitle">
- <h2>배송정보</h2>
- <button type="button" class="close" onclick="uifnPopupClose('popupChangeInvoice')"><i class="fa fa-times"></i></button>
- </div>
- <div class="panelContent" style="overflow-y:auto;">
- <form id="saveInvoiceForm">
- <table class="frmStyle">
- <colgroup>
- <col style="width:160px;" />
- <col />
- <col />
- <col />
- <col />
- <col />
- <col />
- </colgroup>
- <tbody>
- <tr>
- <th>배송업체</th>
- <th:block th:if="${shipCompanyList}">
- <td>
- <select name="shipCompany">
- <option value="">[선택하세요]</option>
- <option th:if="${shipCompanyList}" th:each="oneData, status : ${shipCompanyList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}" th:selected="${oneData.cd == ordDelivery.shipCompCd}"></option>
- </select>
- </td>
- <th>송장번호</th>
- <td><input type="text" name="invoiceNo" th:value="${#strings.defaultString(ordDelivery.invoiceNo,'')}" data-valid-type="numeric" ></td>
- </th:block>
- <td>
- <button type="button" class="btn btn-success" id="saveAccountBtn" onclick="fnSaveAccount();">저장</button>
- </td>
- </tbody>
- </table>
- </form>
- </div>
- </div>
- </div>
- <script th:inline="javascript">
- /*<![CDATA[*/
- /* 이벤트 바인딩 관련 */
- var ordDtlNo = [[${ordDelivery.ordDtlNo}]];
- var ordDtlStat = [[${ordDelivery.ordDtlStat}]];
- var orgInvoiceNo = [[${ordDelivery.invoiceNo}]];
- var orgShipCompCd = [[${ordDelivery.shipCompCd}]];
- /* 환불계좌번호 저장 */
- var fnSaveAccount = function(){
- var shipCompCd = $("#saveInvoiceForm select[name=shipCompany]").val();
- var invoiceNo = $("#saveInvoiceForm input[name=invoiceNo]").val();
-
- if(orgInvoiceNo == invoiceNo && orgShipCompCd == shipCompCd){
- mcxDialog.alert('변경된 내역이 없습니다.');
- return;
- }
- if(gagajf.isNull(shipCompCd)) {
- mcxDialog.alert('택배사 선택을 해주세요.');
- return;
- }
- if(gagajf.isNull(invoiceNo)) {
- mcxDialog.alert('송장번호를 입력해 주세요.');
- return;
- }
- mcxDialog.confirm('송장등록/수정된 내용은 물류시스템에 전송되지 않습니다. <br> 저장 하시겠습니까?', {
- cancelBtnText: "취소",
- sureBtnText: "확인",
- sureBtnClick: function () {
- var param = {};
- param.shipCompCd = shipCompCd;
- param.invoiceNo = invoiceNo;
- param.ordDtlNo = ordDtlNo;
- param.orgInvoiceNo = orgInvoiceNo;
- var jsonData = JSON.stringify([param]);
- gagajf.ajaxJsonSubmit('/delivery/orderDetail/save', jsonData, function (result) {
- $('#btnSearch').trigger('click');
- uifnPopupClose('popupChangeInvoice');
- });
- }
- });
- };
- $(document).ready(function() {
- });
- /*]]>*/
- </script>
- </html>
|