From cb2fc709d4e2aec6bbea3e6f4e8ccc24f3d27756 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期日, 06 十月 2024 17:27:08 +0800
Subject: [PATCH] 工艺路线工价

---
 WebTM/views/领料发货/领料出库/Kf_MateOutBackBill_Fast.html |   70 +++++++++++++++++++++-------------
 1 files changed, 43 insertions(+), 27 deletions(-)

diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_Fast.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_Fast.html"
index 80ef6da..9882b5d 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_Fast.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBill_Fast.html"
@@ -17,7 +17,7 @@
 <body>
     <div class="layui-fluid" style="padding:0">
         <div class="layui-card">
-            <div class="layui-card-body" style="padding: 5px; height:800px;">
+            <div class="layui-card-body" style="padding: 0px; height:800px;">
                 <form class="layui-form" action="" lay-filter="component-form-group">
                     <div style="background-color:#0085E8;">
                         <span style="color: white;"><i class="layui-icon layui-icon-form"></i>鐢熶骇閫�鏂欏崟</span>
@@ -39,7 +39,7 @@
                                 <label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
                             </div>
                             <div class="layui-col-xs8">
-                                <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
+                                <input type="text" name="HQty" id="HQty" lay-verify="HQty" onkeyup="if(!this.value.match(/^[\+\-]?\d*?\.?\d*?$/)){if(!this.t_value>0){this.value=''}else{this.value=this.t_value;}}else this.t_value=this.value;if(this.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?)?$/))this.o_value=this.value" autocomplete="off" class="layui-input" onfocus="this.select();">
                             </div>
                         </div>
                     </div>
@@ -63,6 +63,7 @@
                                         <div class="layui-col-xs8">
                                             <select name=" HBillType" id="HBillType">
                                                 <option value="3720">鐢熶骇浠诲姟鍗�-鎶曟枡</option>
+                                                <option value="1204">鐢熶骇棰嗘枡鍗�</option>
                                                 <option value="-1">鎵嬪伐褰曞叆</option>
                                             </select>
                                         </div>
@@ -85,7 +86,7 @@
                                 <div class="layui-form-item" style="padding:0px;margin:0px">
                                     <div class="layui-row">
                                         <div class="layui-col-xs3">
-                                            <label class="layui-form-label" style="width:40px;padding-left:0px;">閰嶅鏁伴噺</label>
+                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">閰嶅鏁伴噺</label>
                                         </div>
                                         <div class="layui-col-xs8">
                                             <input type="text" name="HPPQty" id="HPPQty" lay-verify="HPPQty" autocomplete="off" class="layui-input">
@@ -95,13 +96,13 @@
                                 <div class="layui-form-item" style="padding:0px;margin:0px">
                                     <div class="layui-row">
                                         <div class="layui-col-xs3">
-                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">鍏堣繘鍏堝嚭浠撳簱</label>
+                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">FIFOWH</label><!--鍏堣繘鍏堝嚭浠撳簱-->
                                         </div>
-                                        <div class="layui-col-xs6">
+                                        <div class="layui-col-xs8">
                                             <input type="text" name="HFIFOWHNAME" id="HFIFOWHNAME" lay-verify="HFIFOWHNAME" autocomplete="off" class="layui-input">
                                             <input type="hidden" name="HFIFOWHID" id="HFIFOWHID" lay-verify="HFIFOWHID" value="0" autocomplete="off" class="layui-input">
                                         </div>
-                                        <div class="layui-col-xs3">
+                                        <div class="layui-col-xs2">
                                             <button type="button" lay-submit="" class="layui-btn" lay-filter="HFIFOWHID-BT">...</button>
                                         </div>
                                     </div>
@@ -565,6 +566,8 @@
                     }
                 })
             });
+
+
             //閫夋嫨渚涘簲鍟�
             form.on('submit(HSupID-BT)', function () {
                 layer.open({
@@ -645,12 +648,18 @@
             });
 
             //閫�鍑�
+            //form.on('submit(Cancel)', function () {
+            //    sessionStorage["SourceFlag"] = false;
+            //    //parent.location.href = "../../../views/index.html"
+            //    //window.close();//鍏抽棴褰撳墠椤�
+            //    layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
+            //        window.close();
+            //    });
+            //})
+
             form.on('submit(Cancel)', function () {
-                sessionStorage["SourceFlag"] = false;
-                //parent.location.href = "../../../views/index.html"
-                //window.close();//鍏抽棴褰撳墠椤�
                 layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
-                    window.close();
+                    parent.location.href = "../../../views/index_Mobile.html";
                 });
             })
             //缂栬緫
@@ -774,7 +783,8 @@
                             dataType: "json",
                             success: function (data) {
                                 if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
-                                    layer.confirm("鐢熸垚閫�鏂欏嚭搴撳崟" + data.Message + $("#HBillNo").val(), {
+                                    layer.confirm(data.Message, {
+                                    //layer.confirm("鐢熸垚閫�鏂欏嚭搴撳崟" + data.Message + $("#HBillNo").val(), {
                                         icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板'],
                                         btn2: function () {
                                             //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
@@ -950,10 +960,11 @@
                     }
                 }
                 $.ajax({
-                    url: GetWEBURL() + "/MateOutBill/get_CheckTypeByBarCode_Json",
+                    //url: GetWEBURL() + "/MateOutBill/get_CheckTypeByBarCode_Json",
+                    url: GetWEBURL() + "/WEBSController/Get_BarCode_Json",
                     type: "GET",
                     //data: { "sCode": '1001456360', "sInterID": 122554, "HBillType": '1204', "sBillNo": 'MATO00000055', "sMaker": sessionStorage["HUserName"], "WhID": 484080, "SPID": 0, "sQty": 0, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": 'PPBOM202112226', "sSourceType": '3720', "HOWNERID": sessionStorage["OrganizationID"] },
-                    data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] },
+                    data: { "sBarCode": sBarCode, "HInterID": sInterID, "HBillType": sBillType, "HBillNo": sBillNo, "HMaker": sessionStorage["HUserName"], "HWhID": sHWHID, "HSPID": sHSPID, "HQty": sQty, "HRedBlueFlag": true, "SourceFlag": HSourceFlag, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sHBillType, "HStockOrgID": sessionStorage["OrganizationID"], "HScanStyle": "", "HCustom1": "", "HCustom2": "" },
                     success: function (result) {
                         if (result.count == 1) {
 
@@ -1041,22 +1052,22 @@
                             layer.load(3)
 
                             $.ajax({
-                                url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1',
+                                url: GetWEBURL() + '/MateOutBackBill/DisBillEntryList',
                                 type: "GET",
-                                data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1244', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
+                                data: { HBillID: sInterID, HBillType: '1244', sWhere: '' },
                                 success: function (result) {
                                     if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
                                         listOption.data = result.data.list;
                                         table.render(listOption);
-                                        $("#HBarCode_B").val(result.data.list2[0].HBarCode);
-                                        $("#HMaterName_B").val(result.data.list2[0].HMaterName);
-                                        $("#HMaterModel_B").val(result.data.list2[0].HMaterModel);
-                                        $("#HBatchNo_B").val(result.data.list2[0].HBatchNo);
-                                        $("#HUnitName_B").val(result.data.list2[0].HUnitName);
-                                        $("#HQty_B").val(result.data.list2[0].HQty);
-                                        $("#HTMQty_B").val(result.data.list2[0].HTMQty);
-                                        $("#HWHName_B").val(result.data.list2[0].HWHName);
-                                        $("#HSPName_B").val(result.data.list2[0].HSPName);
+                                        //$("#HBarCode_B").val(result.data.list2[0].HBarCode);
+                                        //$("#HMaterName_B").val(result.data.list2[0].HMaterName);
+                                        //$("#HMaterModel_B").val(result.data.list2[0].HMaterModel);
+                                        //$("#HBatchNo_B").val(result.data.list2[0].HBatchNo);
+                                        //$("#HUnitName_B").val(result.data.list2[0].HUnitName);
+                                        //$("#HQty_B").val(result.data.list2[0].HQty);
+                                        //$("#HTMQty_B").val(result.data.list2[0].HTMQty);
+                                        //$("#HWHName_B").val(result.data.list2[0].HWHName);
+                                        //$("#HSPName_B").val(result.data.list2[0].HSPName);
                                     }
                                     else {
                                         layer.msg(result.Message);
@@ -1083,7 +1094,8 @@
                 , page: true
                 , cols: [[
                     { type: 'radio' }
-                    , { field: 'HSNO', title: '搴忓彿', width: 60 }
+                    , { type: 'numbers', title: '搴忓彿', totalRow: true }
+                    , { field: 'HSNO', title: '搴忓彿', width: 60, totalRow: true  }
                     , { field: 'HQty', title: '鏁伴噺', width: 80, totalRow: true}
                     , { field: 'HQtyMust', title: '搴斿彂鏁伴噺', width: 80, totalRow: true }
                     , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
@@ -1120,14 +1132,18 @@
                 if (HPPQty == "") {
                     HPPQty = 0;
                 }
+                var sRedBlue = "绾㈠瓧";
                 var sMouldManagerCtl = "N";  //鏄惁鍚敤鍣ㄥ叿绠$悊
                 var sFIFOCtl = "N";          //鏄惁鍚敤鍏堣繘鍏堝嚭绠$悊
                 $.ajax({
-                    url: GetWEBURL() + "/MateOut/set_SavePonderationBillMain_Temp_Mate_Source_Fast_Json",
+                    url: GetWEBURL() + "/MateOut/set_SavePonderationBillMain_Temp_Mate_Source_Fast_Json_Back",
                     type: "GET",
-                    data: { "sInterID": sInterID, "sBillNo": sBillNo, "HBillType": '1244', "HSourceBillNo": HSourceBillNo, "HSourceBillType": HSourceBillType, "sMaker": sessionStorage["HUserName"], "sPPQty": HPPQty, "sPlanMode": HPlanMode, "sFIFOWHID": HFIFOWHID, "HOWNERID": sessionStorage["OrganizationID"] },
+                    data: {
+                        "sInterID": sInterID, "sBillNo": sBillNo, "HBillType": '1244', "sSourceBillNo": HSourceBillNo, "sSourceType": HSourceBillType, "sRedBlue": sRedBlue
+                    },
                     success: function (result) {
                         HSourceFlag = true;
+                        sessionStorage["SourceFlag"] = true;
                         $("#HPlanMode").attr("disabled", "true");
                         $("#HBillType").attr("disabled", "true");
                         element.tabChange('tab-MateOutBill', '2');

--
Gitblit v1.9.1