diff --git a/WebContent/WEB-INF/view/purchaseOrder/purchaseOrderFormPopup_outsourcing.jsp b/WebContent/WEB-INF/view/purchaseOrder/purchaseOrderFormPopup_outsourcing.jsp
index 39b8a06..1b5e71d 100644
--- a/WebContent/WEB-INF/view/purchaseOrder/purchaseOrderFormPopup_outsourcing.jsp
+++ b/WebContent/WEB-INF/view/purchaseOrder/purchaseOrderFormPopup_outsourcing.jsp
@@ -65,23 +65,6 @@
font-size: 28px;
font-weight: bold;
}
-.approval-box {
- border: 1px solid #333;
- width: 200px;
-}
-.approval-box table {
- width: 100%;
- border-collapse: collapse;
-}
-.approval-box th, .approval-box td {
- border: 1px solid #333;
- text-align: center;
- padding: 5px;
- font-size: 12px;
-}
-.approval-box th {
- background-color: #f0f0f0;
-}
.po-info-table {
width: 100%;
border-collapse: collapse;
@@ -95,7 +78,8 @@
.po-info-table .label {
/* background-color: #f5f5f5; */
font-weight: bold;
- width: 20%;
+ width: 35%;
+ white-space: nowrap;
}
.po-manager-box {
border: 1px solid #333;
@@ -215,9 +199,6 @@ $(document).ready(function(){
$("#display_email2").text(email);
});
- // 결재라인 가져오기
- fn_getApprLine();
-
var unit_cd = $.parseJSON($("#unit_cd").val());
// 그리드 초기화 - 외주가공 발주서용 컬럼
@@ -225,15 +206,15 @@ $(document).ready(function(){
url: ""
,datatype: "local"
,data: $.parseJSON($("#gridDetailList").val())
- ,colNames: ["OBJID","PART_OBJID","No","발주번호","업체명","제품명","부품명","수량","단위","단가","합계","작업지시번호","부품품번","납기요청"]
+ ,colNames: ["OBJID","PART_OBJID","No","업체명","제품명","부품명","수량","단위","단가","합계","작업지시번호","부품품번","입고요청일"]
,colModel: [
{name:"OBJID" , hidden: true, sortable:false, editable:false}
,{name:"PART_OBJID" , hidden: true, sortable:false, editable:false}
,{name:"ROW_NUM" , width:35, align:"center", sortable:false, editable:false}
- ,{name:"PURCHASE_ORDER_NO" , width:110, align:"center", sortable:false, editable:false}
- ,{name:"PARTNER_NAME" , width:80, align:"center", sortable:false, editable:false}
+ //,{name:"PURCHASE_ORDER_NO" , width:110, align:"center", sortable:false, editable:false}
+ ,{name:"PARTNER_NAME" , width:130, align:"left", sortable:false, editable:false}
,{name:"PRODUCT_NAME" , width:160, align:"left", sortable:false, editable:<%= isModify %>}
- ,{name:"PART_NAME" , width:80, align:"center", sortable:false, editable:false}
+ ,{name:"PART_NAME" , width:140, align:"left", sortable:false, editable:false}
,{name:"ORDER_QTY" , width:50, align:"right", sortable:false, editable:<%= isModify %>
,formatter:"integer", formatoptions:{thousandsSeparator:","}
,editoptions:{
@@ -246,14 +227,14 @@ $(document).ready(function(){
,editoptions:{ value: unit_cd }
}
,{name:"PARTNER_PRICE" , width:80, align:"right", sortable:false, editable:<%= isModify %>
- ,formatter:"integer", formatoptions:{thousandsSeparator:","}
+ ,formatter:"number", formatoptions:{thousandsSeparator:",", decimalPlaces:2}
,editoptions:{
dataInit: function(e){ e.style.textAlign = "right"; }
,dataEvents: [{type:"change", fn:function(e){ gridFn.calcRowAll(e); }}]
}
}
,{name:"SUPPLY_UNIT_PRICE" , width:90, align:"right", sortable:false, editable:false
- ,formatter:"integer", formatoptions:{thousandsSeparator:","}
+ ,formatter:"number", formatoptions:{thousandsSeparator:",", decimalPlaces:2}
}
,{name:"WORK_ORDER_NO" , width:100, align:"center", sortable:false, editable:<%= isModify %>}
,{name:"PART_NO" , width:90, align:"center", sortable:false, editable:false}
@@ -306,17 +287,6 @@ $(document).ready(function(){
$("#btnAdd").click(function(){ fn_openPartMngListPopUp(); });
$("#btnDel").click(function(){ gridFn.delRow(); });
$("#btnSave").click(function(){ fn_save(); });
- $("#btnAppr").click(function(){
- if(fnc_valitate("form1")){
- var objId = "${objId}";
- if(""==grid.getRowData()){
- Swal.fire('저장할 품목이 존재 하지 않습니다');
- return;
- }
- var title = encodeURIComponent("외주가공 발주서");
- window.open("/approval/registApproval.do?targetType=PURCHASE_ORDER_OUTSOURCING&targetObjId="+objId+"&approvalTitle="+title,"registApproval","width=700,height=700");
- }
- });
<% }else{ %>
$("#btnDown").click(function(){
document.form1.action = "/purchaseOrder/purchaseOrderFormPopup_outsourcing.do?actType=DOWN&PURCHASE_ORDER_MASTER_OBJID=${objId}";
@@ -331,29 +301,6 @@ $(document).ready(function(){
gridFn.footerSummary();
});
-// 결재라인 가져오기
-function fn_getApprLine(){
- if('${objId}'!=''){
- $.ajax({
- url:"/common/getApprovalLine.do",
- type:"POST",
- data:{"objId":"${objId}"},
- dataType:"json",
- async:false,
- success:function(data){
- $.each(data.RESULT, function(i,o){
- if(i==0){
- $("#appr_writer").html(o.WRITER);
- }
- if(i < 3){
- $("#appr"+(i+1)).html(o.TARGET_USER_NAME +"
"+ (o.PROC_DATE!=undefined?o.PROC_DATE:""));
- }
- });
- }
- });
- }
-}
-
// 행추가 팝업
function fn_openPartMngListPopUp(){
var url = "/partMng/partMngListPopUp.do?callbackFnc=fn_addRow&callType=purchaseOrder";
@@ -499,9 +446,15 @@ var gridFn = {
});
$("#TOTAL_SUPPLY_PRICE").val(numberWithCommas(totalSupplyPrice));
+ $("#TOTAL_AMOUNT_DISPLAY").text(numberWithCommasDecimal(totalSupplyPrice) + " 원");
}
}
+function numberWithCommasDecimal(num) {
+ var n = Number(num);
+ return n.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
+}
+
// 라이브러리 로드 완료 후 dataLoaded 플래그 설정
$(window).on('load', function() {
setTimeout(function() {
@@ -718,20 +671,6 @@ function fn_generateAndUploadPdf(callback) {
| 담당자 | -부사장 | -대표이사 | -
|---|---|---|
| ${info.MANAGER_NAME} | -- | 전 결 | -