From 26356a0e6472be4620651adceddda0e38c78fffa Mon Sep 17 00:00:00 2001 From: chengsc <Demo@DESKTOP-CPA90BF> Date: 星期四, 17 十月 2024 18:09:50 +0800 Subject: [PATCH] 修改问题 --- HTML/views/ASNSetting/BoxInfo.html | 167 ---- HTML/views/HouseWithinSetting/WarehouseOutsidePallets.html | 8 HTML/views/SOSetting/ExportAllot.html | 203 ----- HTML/views/HouseWithinSetting/StockCheck.html | 12 Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs | 10 HTML/views/ASNSetting/PalletBind.html | 365 ---------- HTML/views/HouseWithinSetting/StockCheckFrom.html | 2 Wms/Wms/Controllers/PdaAsnController.cs | 24 Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | 122 +++ HTML/views/ASNSetting/LabelBox.html | 14 HTML/views/StatisticalReport/AdventSlot.html | 12 HTML/views/ASNSetting/PalletBindFrom.html | 5 HTML/views/StatisticalReport/InOutBoundReports.html | 18 Pda/View/AsnSetting/productEnterQuantity.html | 498 +++++++++----- Wms/WMS.IBLL/IPdaServer/IPdaAsnServer.cs | 3 HTML/views/HouseWithinSetting/StockCheckLog.html | 12 HTML/views/QualityControl/QualityInformation.html | 8 HTML/views/SOSetting/PalletNoOut.html | 78 -- HTML/views/StatisticalReport/InventoryStatistics.html | 6 HTML/views/ASNSetting/ArrivalNotice.html | 4 HTML/views/ASNSetting/LabelPrint.html | 4 HTML/views/SOSetting/ExportNotice.html | 425 ----------- HTML/views/StatisticalReport/LowStockSlotList.html | 8 23 files changed, 552 insertions(+), 1,456 deletions(-) diff --git a/HTML/views/ASNSetting/ArrivalNotice.html b/HTML/views/ASNSetting/ArrivalNotice.html index 417ecbe..6190fca 100644 --- a/HTML/views/ASNSetting/ArrivalNotice.html +++ b/HTML/views/ASNSetting/ArrivalNotice.html @@ -67,9 +67,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label">鎵规鍙�</label> + <label class="layui-form-label">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> diff --git a/HTML/views/ASNSetting/BoxInfo.html b/HTML/views/ASNSetting/BoxInfo.html index b930e6b..49f6ef2 100644 --- a/HTML/views/ASNSetting/BoxInfo.html +++ b/HTML/views/ASNSetting/BoxInfo.html @@ -82,10 +82,10 @@ </div> </div> <div class="layui-inline" style="margin-right: 0;"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="margin-right: 0;"> <div class="layui-input-inline" style="margin-right: 0;"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -354,12 +354,12 @@ { field: 'BoxNo3', title: '鏀彿', align: 'center', fixed: 'left', width: 220, "disabled": true }, { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', fixed: 'left', width: 140, "disabled": true }, { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', fixed: 'left', width: 240, "disabled": true }, - { field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 155, }, + { field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 155, }, { field: 'Qty', title: '鏁伴噺', align: 'center', width: 100, }, { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 165 }, { field: 'ProductionTime', title: '鐢熶骇鏃ユ湡', align: 'center', width: 160, templet: '#templetProductionTime' }, { field: 'ExpirationTime', title: '杩囨湡鏃ユ湡', align: 'center', width: 160, templet: '#templetExpirationTime' }, - { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 155 }, + { field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 155 }, { field: 'InspectMark', title: '鎶芥鏍囪', align: 'center', templet: '#templetInspectMark', width: 90 }, { field: 'BitBoxMark', title: '闆剁鏍囪', align: 'center', templet: '#templetBitBoxMark', width: 90 }, { field: 'Origin', title: '鏉ユ簮', align: 'center', }, @@ -370,160 +370,7 @@ var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function bindTable() { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // BoxNo: $("#BoxNo").val(), - // // BoxNo2: $("#BoxNo2").val(), - // BoxNo3: $("#BoxNo3").val(), - // SkuNo: $("#SkuNo").val(), - // LotNo: $("#LotNo").val(), - // LotText: $("#LotText").val(), - // ProductionTime: $("#ProductionTime").val(), - // InspectMark: $("#InspectMark").val(), - // BitBoxMark: $("#BitBoxMark").val(), - // // Origin: "褰曞叆", - // }; - - // table.render({ - // elem: '#Box-list', - // url: IP + "/BllAsn/GetBllBoxInfoList", - // method: 'POST', - // height: 'full-136', - // id: 'Box-list', - // where: param, - // contentType: 'application/json', - // toolbar: '#toolbarDemo', - // defaultToolbar: [], //'filter','print', 'exports' - // headers: { ToKen: $.cookie('token') }, - // page: true, - // even: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function (res) { - // setRight(); - // }, - // cols: [ - // [{ - // field: 'BoxNo', - // title: '绠卞彿', - // align: 'center', - // fixed: 'left', - // width: 220 - // }, { - // field: 'BoxNo2', - // title: '鐩掑彿', - // align: 'center', - // fixed: 'left', - // hide:true - // }, { - // field: 'BoxNo3', - // title: '鏀彿', - // align: 'center', - // fixed: 'left', - // width: 220 - // }, { - // field: 'SkuNo', - // title: '鐗╂枡缂栫爜', - // align: 'center', - // fixed: 'left', - // width: 140 - // }, { - // field: 'SkuName', - // title: '鐗╂枡鍚嶇О', - // align: 'center', - // fixed: 'left', - // width: 240 - // }, { - // field: 'LotNo', - // title: '鎵规鍙�', - // align: 'center', - // width: 155, - // }, { - // field: 'Qty', - // title: '鏁伴噺', - // align: 'center', - // width: 100, - // }, { - // field: 'LotText', - // title: '鎵规鎻忚堪', - // align: 'center', - // width: 165 - - // }, { - // field: 'ProductionTime', - // title: '鐢熶骇鏃ユ湡', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate2(d.ProductionTime); - // } - // }, { - // field: 'ExpirationTime', - // title: '杩囨湡鏃ユ湡', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate2(d.ExpirationTime); - // } - // }, { - // field: 'SupplierLot', - // title: '渚涜揣鎵规', - // align: 'center', - // width: 155 - // }, { - // field: 'InspectMark', - // title: '鎶芥鏍囪', - // align: 'center', - // templet: function (d) { - // switch (d.InspectMark) { - // case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>'; - // case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">鏄�</button>'; - // default: return ""; - // } - // }, - // width: 90 - // }, { - // field: 'BitBoxMark', - // title: '闆剁鏍囪', - // align: 'center', - // templet: function (d) { - // switch (d.BitBoxMark) { - // case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>'; - // case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger">鏄�</button>'; - // default: return ""; - // } - // }, - // width: 90 - // }, { - // field: 'Origin', - // title: '鏉ユ簮', - // align: 'center', - // }, { - // field: 'CreateUserName', - // title: '鍒涘缓浜�', - // align: 'center', - // width: 100 - // }, { - // field: 'CreateTime', - // title: '鍒涘缓鏃堕棿', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate(d.CreateTime); - // } - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 100, - // align: 'center', - // toolbar: '#toolbarDemoList' - // }] - // ], - - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson var param1 = { @@ -678,7 +525,7 @@ return msg; } if ($("#LotNo").val() == "") { - layer.msg("璇疯緭鍏ユ壒娆″彿锛�", { + layer.msg("璇疯緭鍏ヨ繘鍘傜紪鍙凤紒", { icon: 2, time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 }); @@ -723,7 +570,7 @@ 'BoxNo3': 'C', //鏀彿 'Qty': 'D', //鏁伴噺 'SkuNo': 'E', //鐗╂枡鍙� - 'LotNo': 'F', //鎵规 + 'LotNo': 'F', //杩涘巶缂栧彿 'LotText': 'G', //鎵规鎻忚堪 'ProductionTime': 'H', //鐢熶骇鏃ユ湡 'InspectMark': 'I', //妫�楠屾爣璁� diff --git a/HTML/views/ASNSetting/LabelBox.html b/HTML/views/ASNSetting/LabelBox.html index 90e09ef..c7f560b 100644 --- a/HTML/views/ASNSetting/LabelBox.html +++ b/HTML/views/ASNSetting/LabelBox.html @@ -75,19 +75,19 @@ </div> </div> <div class="layui-inline" style="margin-right: 0;"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="margin-right: 0;"> <div class="layui-input-inline" style="margin-right: 0;"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> </div> <div class="layui-inline" style="margin-right: 0;"> - <label class="layui-form-label" style="width: 60px;">渚涜揣鎵规</label> + <label class="layui-form-label" style="width: 60px;">鍘熷巶鎵瑰彿</label> <div class="layui-input-inline" style="margin-right: 0;"> <div class="layui-input-inline" style="margin-right: 0;"> - <input type="text" id="SupplierLot" name="SupplierLot" placeholder="渚涜揣鎵规" + <input type="text" id="SupplierLot" name="SupplierLot" placeholder="鍘熷巶鎵瑰彿" autocomplete="off" class="layui-input"> </div> </div> @@ -138,7 +138,7 @@ </div> </div> <div class="layui-inline DivLoadingArea" style="margin-top: 10px;"> - <label class="layui-form-label">鎵规鍙�</label> + <label class="layui-form-label">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="width: 220px;"> <select name="LotNoSelect" id="LotNoSelect" lay-search> <option value=""></option> @@ -461,9 +461,9 @@ { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', width: 240, }, { field: 'Qty', title: '鏁伴噺', align: 'center', width: 100, }, { field: 'FullQty', title: '鏁寸鏁伴噺', align: 'center', width: 100, }, - { field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 155, }, + { field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 155, }, { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 165 }, - { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 155 }, + { field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 155 }, { field: 'Status', title: '鐘舵��', align: 'center', templet: '#templetStatus', width: 90 }, { field: 'Standard', title: '瑙勬牸/鍨嬪彿', align: 'center', width: 165 }, diff --git a/HTML/views/ASNSetting/LabelPrint.html b/HTML/views/ASNSetting/LabelPrint.html index 9bd7c63..e6fe72b 100644 --- a/HTML/views/ASNSetting/LabelPrint.html +++ b/HTML/views/ASNSetting/LabelPrint.html @@ -119,7 +119,7 @@ var expirationTime = getQueryString('ExpirationTime'); var storeTime = getQueryString('StoreTime'); - var supplierLot=getQueryString('SupplierLot'); //渚涜揣鎵规 + var supplierLot=getQueryString('SupplierLot'); //鍘熷巶鎵瑰彿 $("#SupplierLot").html(supplierLot); console.log(supplierLot); var doing = true; @@ -140,7 +140,7 @@ ProductionTime:productionTime, ExpirationTime:expirationTime, StoreTime:storeTime, - SupplierLot:supplierLot//渚涜揣鎵规 + SupplierLot:supplierLot//鍘熷巶鎵瑰彿 }; // console.log(param); synData(IP + "/BllAsn/AddLabelBox", param , 'post', function (res) { diff --git a/HTML/views/ASNSetting/PalletBind.html b/HTML/views/ASNSetting/PalletBind.html index f59ebdd..c819d22 100644 --- a/HTML/views/ASNSetting/PalletBind.html +++ b/HTML/views/ASNSetting/PalletBind.html @@ -103,9 +103,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -474,189 +474,7 @@ var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function bindPalletBind() { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // ASNNo: $("#ASNNo").val(), - // PalletNo: $("#PalletNo").val(), - // LocatNo: $("#LocatNo").val(), - // Status: $("#Status").val(), - // SkuNo: $("#SkuNo").val(), - // SkuName: $("#SkuName").val(), - // LotNo: $("#LotNo").val(), - // StartTime: $("#StartTime").val(), - // EndTime: $("#EndTime").val() - // }; - - // table.render({ - // id: 'PalletBind', - // elem: '#PalletBind', - // height: 'full-210', - // url: IP + "/BllAsn/GetPalletBindList", - // method: 'post', - // contentType: 'application/json', - // headers: { ToKen: $.cookie('token') }, - // where: param, - // page: true, - // even: true, - // limit: pageCnt, // 榛樿澶氬皯椤� - // limits: pageLimits, // 榛樿鏁扮粍[10,20,30,40,50] - // cellMinWidth: 60, // 鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function () { - // setRight() - // //bindBoxInfo(res.data[0].BindNo); - // }, - // cols: [ - // [{ - // title: '搴忓彿', - // type: 'numbers', - // width: 60, - // align: 'center', - // fixed: 'left', - // }, - // { - // field: 'ASNNo', - // title: '鍏ュ簱鍗曞彿', - // align: 'center', - // width: 180, - // }, - // { - // field: 'ASNDetailNo', - // title: '鍏ュ簱鏄庣粏鍙�', - // align: 'center', - // hide: true, - // }, - // { - // field: 'PalletNo', - // title: '鎵樼洏鍙�', - // align: 'center', - // width: 100, - // }, - // { - // field: 'PalletNo2', - // title: '鎵樼洏鍙稬V2', - // align: 'center', - // hide: true, - // }, - // { - // field: 'PalletNo3', - // title: '鎵樼洏鍙稬V3', - // align: 'center', - // hide: true, - // }, { - // field: 'LocatNo', - // title: '鍌ㄤ綅鍦板潃', - // align: 'center', - // width: 90, - // }, { - // field: 'SkuNo', - // title: '鐗╂枡缂栫爜', - // align: 'center', - // width: 110, - // }, { - // field: 'SkuName', - // title: '鐗╂枡鍚嶇О', - // align: 'center', - // }, { - // field: 'Qty', - // title: '鏁伴噺', - // align: 'center', - // width: 90, - // }, { - // field: 'FullQty', - // title: '鏁存墭鏁伴噺', - // align: 'center', - // width: 90, - // }, - // { - // field: 'Status', - // title: '鎵ц鐘舵��',//绛夊緟鍏ュ簱/姝e湪鍏ュ簱/鍏ュ簱瀹屾垚 --0/1/2 - // align: 'center', - // width: 90, - // templet: function (d) { - // switch (d.Status) { - // case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">绛夊緟鍏ュ簱</button>'; - // case "1": return '<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">鍏ュ簱涓�</button>'; - // case "2": return '<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">鍏ュ簱瀹屾垚</button>'; - // default: return ""; - // } - // } - // }, - // // { - // // field: 'InspectMark', - // // title: '鎶芥鏍囪',//绛夊緟鍏ュ簱/姝e湪鍏ュ簱/鍏ュ簱瀹屾垚 --0/1/2 - // // align: 'center', - // // templet: function (d) { - // // switch (d.InspectMark) { - // // case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鏈楠�</button>'; - // // case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鎶芥鎵�</button>'; - // // default: return ""; - // // } - // // } - // // }, - // { - // field: 'BitPalletMark', - // title: '闆舵墭鏍囪',//绛夊緟鍏ュ簱/姝e湪鍏ュ簱/鍏ュ簱瀹屾垚 --0/1/2 - // align: 'center', - // width: 90, - // templet: function (d) { - // switch (d.BitPalletMark) { - // case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>'; - // case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">鏄�</button>'; - // default: return ""; - // } - // } - // }, - // // { - // // field: 'IsBale', - // // title: '鏄惁瑁瑰寘', - // // align: 'center', - // // templet: function (d) { - // // switch (d.IsBale) { - // // case "0": return "鍚�"; - // // case "1": return "鏄�"; - // // default: return ""; - // // } - // // } - // // }, - // // { - // // field: 'IsBelt', - // // title: '鏄惁鎵撳甫', - // // align: 'center', - // // templet: function (d) { - // // switch (d.IsBelt) { - // // case "0": return "鍚�"; - // // case "1": return "鏄�"; - // // default: return ""; - // // } - // // } - // // }, - // { - // field: 'CompleteTime', - // title: '瀹屾垚鏃堕棿', - // align: 'center', - // width: 165, - // templet: function (d) { - // return formatDate(d.CompleteTime); - // }, - // }, { - // field: 'CreateTime', - // title: '鍒涘缓鏃堕棿', - // align: 'center', - // width: 165, - // templet: function (d) { - // return formatDate(d.CreateTime); - // }, - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 180, - // align: 'center', - // toolbar: '#PalletBindDemoList' - // }] - // ] - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson var param1 = { @@ -726,13 +544,13 @@ { field: 'BoxNo3', title: '鏀彿', align: 'center', width: 220 }, { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', width: 150 }, { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', align: 'center', width: 226 }, - { field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 150, }, + { field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 150, }, { field: 'Qty', title: '鏁伴噺', align: 'center', width: 105, }, { field: 'FullQty', title: '鏁寸鏁伴噺', align: 'center', width: 105, }, { field: 'ProductionTime', title: '鐢熶骇鏃ユ湡', align: 'center', width: 160, templet: '#templetProductionTime' }, { field: 'ExpirationTime', title: '杩囨湡鏃ユ湡', align: 'center', width: 180, templet: '#templetExpirationTime' }, { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 150, }, - { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 150, }, + { field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 150, }, { field: 'InspectMark', title: '鎶芥鏍囪', align: 'center', width: 95, templet: '#templetInspectMark' }, { field: 'BitBoxMark', title: '闆剁鏍囪', align: 'center', width: 95, templet: '#templetBitBoxMark' }, { field: 'InspectStatus', title: '璐ㄩ噺鐘舵��', align: 'center', width: 95, templet: '#templetInspectStatus' }, @@ -741,178 +559,7 @@ var DetailColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function bindBoxInfo(BindNo) { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // BindNo: parseInt(BindNo) - // }; - // table.render({ - // id: 'BoxInfo', - // elem: '#BoxInfo', - // height: 'full-210', - // url: IP + "/BllAsn/GetBoxInfoList", - // method: 'post', - // contentType: 'application/json', - // headers: { ToKen: $.cookie('token') }, - // where: param, - // // toolbar: '#BoxInfoDemo', - // // defaultToolbar: ['filter'], //'print', 'exports' - // page: true, - // limit: pageCnt, // 榛樿澶氬皯椤� - // limits: pageLimits, // 榛樿鏁扮粍[10,20,30,40,50] - // cellMinWidth: 60, // 鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // even: true, - // done: function () { - // setRight() - // }, - // cols: [ - // [{ - - // title: '搴忓彿', - // type: 'numbers', - // width: 60, - // align: 'center', - // fixed: 'left', - // } - // , { - // field: 'PalletNo', - // title: '鎵樼洏鍙�', - // align: 'center', - // width: 95 - // }, { - // field: 'PalletNo2', - // title: '鎵樼洏缂栧彿LV2', - // align: 'center', - // hide: true, - // }, - // { - // field: 'PalletNo3', - // title: '鎵樼洏缂栧彿LV3', - // align: 'center', - // hide: true, - // }, - // { - // field: 'BoxNo', - // title: '绠卞彿', - // align: 'center', - // width: 220 - // }, { - // field: 'BoxNo2', - // title: '鐩掑彿', - // align: 'center', - // hide: true, - // }, - // { - // field: 'BoxNo3', - // title: '鏀彿', - // align: 'center', - // width: 220, - // hide: true, - // }, - // { - // field: 'SkuNo', - // title: '鐗╂枡缂栫爜', - // align: 'center', - // width: 150, - // }, { - // field: 'SkuName', - // title: '鐗╂枡鍚嶇О', - // align: 'center', - // align: 'center', - // width: 226, - // }, { - // field: 'LotNo', - // title: '鎵规鍙�', - // align: 'center', - // width: 150, - // }, { - // field: 'Qty', - // title: '鏁伴噺', - // align: 'center', - // width: 105, - // }, { - // field: 'FullQty', - // title: '鏁寸鏁伴噺', - // align: 'center', - // width: 105, - // }, { - // field: 'ProductionTime', - // title: '鐢熶骇鏃ユ湡', - // align: 'center', - // width: 160, - // templet: function (d) { - // return formatDate2(d.ProductionTime); - // }, - // }, { - // field: 'ExpirationTime', - // title: '杩囨湡鏃ユ湡', - // align: 'center', - // width: 180, - // templet: function (d) { - // return formatDate2(d.ExpirationTime); - // }, - // }, { - // field: 'LotText', - // title: '鎵规鎻忚堪', - // align: 'center', - // width: 150, - // }, { - // field: 'SupplierLot', - // title: '渚涜揣鎵规', - // align: 'center', - // width: 150, - // }, { - // field: 'InspectMark', - // title: '鎶芥鏍囪',//绛夊緟鍏ュ簱/姝e湪鍏ュ簱/鍏ュ簱瀹屾垚 --0/1/2 - // align: 'center', - // width:95, - // templet: function (d) { - // switch (d.InspectMark) { - // case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>'; - // case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">鏄�</button>'; - // default: return ""; - // } - // } - // }, - // { - // field: 'BitBoxMark', - // title: '闆剁鏍囪',//绛夊緟鍏ュ簱/姝e湪鍏ュ簱/鍏ュ簱瀹屾垚 --0/1/2 - // align: 'center', - // width:95, - // templet: function (d) { - // switch (d.BitBoxMark) { - // case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>'; - // case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">鏄�</button>'; - // default: return ""; - // } - // } - // }, - // { - // field: 'InspectStatus', - // title: '璐ㄩ噺鐘舵��',//绛夊緟鍏ュ簱/姝e湪鍏ュ簱/鍏ュ簱瀹屾垚 --0/1/2 - // align: 'center', - // width:95, - // templet: function (d) { - // switch (d.InspectStatus) { - // case "0": return '寰呮楠�'; - // case "1": return '妫�楠屽悎鏍�'; - // case "2": return '涓嶅悎鏍�'; - // case "3": return '鏀剧疆鏈�'; - // default: return ""; - // } - // } - // }, - // { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 155, - // align: 'center', - // toolbar: '#BoxInfoDemoList' - // }] - // ], - - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson2 var param1 = { diff --git a/HTML/views/ASNSetting/PalletBindFrom.html b/HTML/views/ASNSetting/PalletBindFrom.html index 9020df2..8a92eeb 100644 --- a/HTML/views/ASNSetting/PalletBindFrom.html +++ b/HTML/views/ASNSetting/PalletBindFrom.html @@ -135,8 +135,9 @@ if (res.code == 0) { //鎴愬姛 $("#BillCode").empty(); $("#BillCode").append("<option value =''></option>"); + console.log(res); for (var i = 0; i < res.data.length; i++) { - $("#BillCode").append('<option value =' + res.data[i].ASNNo + '>' + res.data[i].ASNNo + + $("#BillCode").append('<option value =' + res.data[i] + '>' + res.data[i] + '</option>'); } form.render('select'); @@ -222,7 +223,7 @@ {field: 'BoxNo',title: '绠辩爜',align: 'center',fixed: 'left',width:220}, {field: 'SkuNo',title: '鐗╂枡缂栧彿',align: 'center',width:150}, {field: 'SkuName',title: '鐗╂枡鍚嶇О',align: 'center'}, - {field: 'LotNo',templet: '#buttonTpl',title: '鎵规鍙�',align: 'center',width:150}, + {field: 'LotNo',templet: '#buttonTpl',title: '杩涘巶缂栧彿',align: 'center',width:150}, {field: 'Qty',title: '瀹為檯鏁伴噺',align: 'center',width:150}, // {field: 'Standard',title: '鐗╁搧瑙勬牸',align: 'center'}, //{title: '鎿嶄綔',width: 100,align: 'center',toolbar: '#table-content-list'} diff --git a/HTML/views/HouseWithinSetting/StockCheck.html b/HTML/views/HouseWithinSetting/StockCheck.html index b1219ad..5e09d6b 100644 --- a/HTML/views/HouseWithinSetting/StockCheck.html +++ b/HTML/views/HouseWithinSetting/StockCheck.html @@ -79,9 +79,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label" style="width: 60px;">鎵规</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -385,9 +385,9 @@ {field:'SkuNo', title:'鐗╂枡缂栫爜', align:'center', width:105, }, {field:'SkuName', title:'鐗╂枡鍚嶇О', align:'center', width:125, }, {field:'Standard', title:'瑙勬牸', align:'center', width:225, }, - {field:'LotNo', title:'鎵规鍙�', align:'center', width:105, }, + {field:'LotNo', title:'杩涘巶缂栧彿', align:'center', width:105, }, {field:'LotText', title:'鎵规鎻忚堪', align:'center', width:105, }, - {field:'SupplierLot', title:'渚涜揣鎵规', align:'center', width:105, }, + {field:'SupplierLot', title:'鍘熷巶鎵瑰彿', align:'center', width:105, }, {field: 'CreateUserName', title:'鍒涘缓浜�', align:'center', width:100, }, {field: 'CreateTime',title: '鍒涘缓鏃堕棿',align: 'center',width: 160, templet: '#CreateTimeButton',}, {field: 'UpdateUserName',title: '淇敼浜�',align: 'center',width: 120,hide:true}, @@ -576,9 +576,9 @@ // {field:'SkuNo', title:'鐗╂枡缂栫爜', align:'center', width:105, }, // {field:'SkuName', title:'鐗╂枡鍚嶇О', align:'center', width:125, }, // {field:'Standard', title:'瑙勬牸', align:'center', width:225, }, - // {field:'LotNo', title:'鎵规鍙�', align:'center', width:105, }, + // {field:'LotNo', title:'杩涘巶缂栧彿', align:'center', width:105, }, // {field:'LotText', title:'鎵规鎻忚堪', align:'center', width:105, }, - // {field:'SupplierLot', title:'渚涜揣鎵规', align:'center', width:105, }, + // {field:'SupplierLot', title:'鍘熷巶鎵瑰彿', align:'center', width:105, }, // {field: 'CreateUserName', title:'鍒涘缓浜�', align:'center', width:100, }, // {field: 'CreateTime',title: '鍒涘缓鏃堕棿',align: 'center',width: 160, templet: '#CreateTimeButton',}, // {field: 'UpdateUserName',title: '淇敼浜�',align: 'center',width: 120,hide:true}, diff --git a/HTML/views/HouseWithinSetting/StockCheckFrom.html b/HTML/views/HouseWithinSetting/StockCheckFrom.html index 692c5ff..c045fa9 100644 --- a/HTML/views/HouseWithinSetting/StockCheckFrom.html +++ b/HTML/views/HouseWithinSetting/StockCheckFrom.html @@ -181,7 +181,7 @@ {field: 'Standard',title: '鐗╁搧瑙勬牸',align: 'center'}, {field: 'LocatNo',title: '鍌ㄤ綅缂栫爜',align: 'center',width: 120,hide:true,}, {field: 'PalletNo',title: '鎵樼洏鏉$爜',align: 'center',width: 100,}, - {field: 'LotNo',align: 'center',title: '鎵规',width: 150,}, + {field: 'LotNo',align: 'center',title: '杩涘巶缂栧彿',width: 150,}, {field: 'LotText',align: 'center',title: '鎵规鎻忚堪',width: 120,}, {field: 'Qty',title: '搴撳瓨鏁伴噺',width: 100,align: 'center',fixed: 'right'}, {title: '鎿嶄綔',fixed: 'right',align: 'center',templet: '#table-content-list',width: 85,} diff --git a/HTML/views/HouseWithinSetting/StockCheckLog.html b/HTML/views/HouseWithinSetting/StockCheckLog.html index 29674f7..0304263 100644 --- a/HTML/views/HouseWithinSetting/StockCheckLog.html +++ b/HTML/views/HouseWithinSetting/StockCheckLog.html @@ -62,9 +62,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label">鎵规鍙�</label> + <label class="layui-form-label">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -199,9 +199,9 @@ { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', width: 105, }, { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', width: 105, }, { field: 'Standard', title: '瑙勬牸', align: 'center', width: 105, }, - { field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 105, }, + { field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 105, }, { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 105, }, - { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 105, }, + { field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 105, }, { field: 'CreateUserName', title: '鍒涘缓浜�', align: 'center', width: 100, }, { field: 'CreateTime', title: '鍒涘缓鏃堕棿', align: 'center', width: 160, templet: '#CreateTimeButton', }, { field: 'UpdateUserName', title: '淇敼浜�', align: 'center', width: 120, hide: true }, @@ -312,9 +312,9 @@ // { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', width: 105, }, // { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', width: 105, }, // { field: 'Standard', title: '瑙勬牸', align: 'center', width: 105, }, - // { field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 105, }, + // { field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 105, }, // { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 105, }, - // { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 105, }, + // { field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 105, }, // { field: 'CreateUserName', title: '鍒涘缓浜�', align: 'center', width: 100, }, // { diff --git a/HTML/views/HouseWithinSetting/WarehouseOutsidePallets.html b/HTML/views/HouseWithinSetting/WarehouseOutsidePallets.html index ccc4cb4..8e6234b 100644 --- a/HTML/views/HouseWithinSetting/WarehouseOutsidePallets.html +++ b/HTML/views/HouseWithinSetting/WarehouseOutsidePallets.html @@ -46,9 +46,9 @@ </div> </div> <div class="layui-inline mingxi"> - <label class="layui-form-label" style="width: 60px;">鎵规</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="width: 170px; margin-right: 0px;"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规" autocomplete="off" class="layui-input"> + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -151,13 +151,13 @@ field: 'Standard', title: '瑙勬牸', align: 'center' }, { - title: '鎵规', field: 'LotNo', align: 'center' + title: '杩涘巶缂栧彿', field: 'LotNo', align: 'center' }, { field: 'LotText', title: '鎵规鎻忚堪',align: 'center' }, { - field: 'SupplierLot',title: '渚涜揣鎵规', align: 'center' + field: 'SupplierLot',title: '鍘熷巶鎵瑰彿', align: 'center' }, { field: 'PalletNo', title: '鎵樼洏鍙�', align: 'center' diff --git a/HTML/views/QualityControl/QualityInformation.html b/HTML/views/QualityControl/QualityInformation.html index 7ba4310..512e8d0 100644 --- a/HTML/views/QualityControl/QualityInformation.html +++ b/HTML/views/QualityControl/QualityInformation.html @@ -32,11 +32,11 @@ <input type="text" id="ASNNo" name="ASNNo" placeholder="璇疯緭鍏ュ叆搴撳崟鎹�" autocomplete="off" class="layui-input"> </div> </div> --> - <!-- 鎵规 --> + <!-- 杩涘巶缂栧彿 --> <div class="layui-inline"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="璇疯緭鍏ョ墿鏂欏悕绉�" autocomplete="off" class="layui-input"> + <input type="text" id="LotNo" name="LotNo" placeholder="璇疯緭鍏ヨ繘鍘傜紪鍙�" autocomplete="off" class="layui-input"> </div> </div> <!-- 鐗╂枡鍙� --> @@ -147,7 +147,7 @@ field: 'Standard',title: '鐗╂枡瑙勬牸',align: 'center' }, { - field: 'LotNo',title: '鎵规鍙�',align: 'center' + field: 'LotNo',title: '杩涘巶缂栧彿',align: 'center' }, { field: 'IsQualified',title: '妫�楠岀粨鏋�',align: 'center',templet: '#IsQualifiedButton', diff --git a/HTML/views/SOSetting/ExportAllot.html b/HTML/views/SOSetting/ExportAllot.html index 60ef0e8..5c4fe6a 100644 --- a/HTML/views/SOSetting/ExportAllot.html +++ b/HTML/views/SOSetting/ExportAllot.html @@ -66,9 +66,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -339,7 +339,7 @@ { field: 'PalletNo', title: '鎵樼洏鍙�', align: 'center', width: 95, }, { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', minWidth: 120 }, { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', width: 150 }, - { field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 125 }, + { field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 125 }, { field: 'Status', align: 'center', title: '鐘舵��', width: 90, templet: '#templetStatus' }, { field: 'Qty', title: '鍑哄簱鏁伴噺', align: 'center', width: 90, }, { field: 'CompleteQty', title: '鎷h揣鏁伴噺', align: 'center', width: 90 }, @@ -347,7 +347,7 @@ { field: 'OutMode', title: '鍑哄簱鍙�', align: 'center', width: 90, templet: '#outType', }, { field: 'LoadingAddre', title: '瑁呰溅鍙�', align: 'center', width: 90, templet: '#outType', }, { field: 'IsAdvance', title: '鎷h揣绫诲瀷', align: 'center', width: 90, templet: '#templetIsAdvance' }, - { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 110 }, + { field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 110 }, { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 150 }, { field: 'Standard', title: '鐗╂枡瑙勬牸', align: 'center', minWidth: 120, }, { field: 'IsBale', title: '鏄惁瑁瑰寘', align: 'center', templet: '#templetIsBale', width: 90 }, @@ -359,196 +359,7 @@ var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTable() { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // SoNo: $("#SoNo").val(), - // // WaveNo:$("#WaveNo").val(), - // PalletNo: $("#PalletNo").val(), - // SkuNo: $("#SkuNo").val(), - // SkuName: $("#SkuName").val(), - // LotNo: $("#LotNo").val(), - // Status: $("#Status").val(), - // BoxNo: $("#BoxNo").val(), - // }; - - // table.render({ - // elem: '#LAY-app-content-list', - // url: IP + "/BllSo/GetExportAllotList", - // method: 'POST', - // height: 'full-206', - // id: 'LAY-app-content-list', - // where: param, - // contentType: 'application/json', - // headers: { ToKen: $.cookie('token') }, - // page: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function(){ - // initMenu(); - // }, - // cols: [ - // [{ - // title: '搴忓彿', - // type: 'numbers', - // width: 60, - // fixed: 'left' - // }, { - // field: 'SONo', - // title: '鍑哄簱鍗曞彿', - // align: 'center', - // fixed: 'left', - // width: 180, - // }, { - // field: 'WaveNo', - // title: '娉㈡鍗曞彿', - // align: 'center', - // width: 180, - // hide: true - // }, { - // field: 'PalletNo', - // title: '鎵樼洏鍙�', - // align: 'center', - // width: 95, - // }, { - // field: 'SkuNo', - // title: '鐗╂枡缂栫爜', - // align: 'center', - // minWidth: 120, - // }, { - // field: 'SkuName', - // title: '鐗╂枡鍚嶇О', - // align: 'center', - // width: 150, - // }, { - // field: 'LotNo', - // title: '鎵规鍙�', - // align: 'center', - // width: 125, - // }, { - // field: 'Status', - // align: 'center', - // title: '鐘舵��', - // width: 90, - // templet: function (d) { - // switch (d.Status) { - // case "0": - // return `<button class="layui-btn layui-btn-radius layui-btn-xs">寰呬笅鍙�</button>`; - // case "1": - // return `<button class="layui-btn layui-btn-radius layui-btn-warm layui-btn-xs">浠诲姟涓嬪彂</button>`; - // case "2": - // return `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">寰呮嫞璐�</button>`; - // case "3": - // return `<button class="layui-btn layui-btn-radius layui-btn-warm layui-btn-xs">閮ㄥ垎鎷h揣</button>`; - // case "4": - // // return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">寰呭洖搴�</button>`; - // case "5": - // return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">宸插畬鎴�</button>`; - // case "6": - // return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">寮傚父鍙栨秷</button>`; - // default: - // return ""; - // } - // }, - // }, { - // field: 'Qty', - // title: '鍑哄簱鏁伴噺', - // align: 'center', - // width: 90, - // }, { - // field: 'CompleteQty', - // title: '鎷h揣鏁伴噺', - // align: 'center', - // width: 90, - // }, { - // field: 'OutMode', - // title: '鍑哄簱鍙�', - // align: 'center', - // width: 90, - // templet: '#outType', - // }, { - // field: 'IsAdvance', - // title: '鎷h揣绫诲瀷', - // align: 'center', - // width: 90, - // templet: function (d) { - // switch (d.IsAdvance) { - // case "0": - // return "鍑哄簱"; - // case "1": - // return "棰勬嫞"; - // default: - // return ""; - // } - // }, - // }, { - // field: 'SupplierLot', - // title: '渚涜揣鎵规', - // align: 'center', - // width: 110, - // }, { - // field: 'LotText', - // title: '鎵规鎻忚堪', - // align: 'center', - // width: 150, - // }, { - // field: 'Standard', - // title: '鐗╂枡瑙勬牸', - // align: 'center', - // minWidth: 120, - // }, { - // field: 'IsBale', - // title: '鏄惁瑁瑰寘', - // align: 'center', - // templet: function (d) { - // switch (d.IsBale) { - // case "0": - // return "涓嶈9鍖�"; - // case "1": - // return "瑁瑰寘"; - // default: - // return ""; - // } - - // }, - // width: 90, - // hide: true, - // }, { - // field: 'IsBelt', - // title: '鏄惁鎵撳甫', - // align: 'center', - // templet: function (d) { - // switch (d.IsBelt) { - // case "0": - // return "涓嶆墦甯�"; - // case "1": - // return "鎵撳甫"; - // default: - // return ""; - // } - - // }, - // width: 90, - // hide: true, - // }, { - // field: 'CreateTime', - // align: 'center', - // title: '鍒涘缓鏃堕棿', - // width: 160, - // templet: function (d) { - // return formatDate(d.CreateTime); - // }, - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 100, - // align: 'center', - // toolbar: '#table-content-list' - // }] - // ] - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson var param1 = { @@ -609,11 +420,11 @@ //{field: 'BoxNo3',title: '鏀彿',align: 'center',width: 115}, { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', width: 120, }, { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center' }, - { field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 125, }, + { field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 125, }, { field: 'CompleteQty', title: '鎷h揣鏁伴噺', align: 'center', width: 90, }, { field: 'NowPalletNo', title: '鏂版墭鐩�', align: 'center', width: 95, }, { field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 150, }, - { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 110, }, + { field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 110, }, { field: 'Standard', title: '鐗╂枡瑙勬牸', align: 'center', width: 120, }, //{field: 'CreateTime',align: 'center',title: '鎷h揣鏃堕棿',width: 165,templet: '#templetCreateTime2'}, { field: 'caozuo', title: '鎿嶄綔', fixed: 'right', width: 100, align: 'left', toolbar: '#table-content-list2', "disabled": true } diff --git a/HTML/views/SOSetting/ExportNotice.html b/HTML/views/SOSetting/ExportNotice.html index 846a008..7934f3e 100644 --- a/HTML/views/SOSetting/ExportNotice.html +++ b/HTML/views/SOSetting/ExportNotice.html @@ -96,9 +96,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label">鎵规鍙�</label> + <label class="layui-form-label">杩涘巶缂栧彿</label> <div class="layui-input-inline"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -480,14 +480,14 @@ var TotalColsArr = [[ {field: '',title: '搴忓彿',type:'numbers',width: 50,align: 'center',fixed: 'left', "disabled": true}, {field: 'SONo',title: '鍑哄簱鍗曞彿',align: 'center',fixed: 'left',width: 165, "disabled": true}, - {field: 'Type',title: '鍗曟嵁绫诲瀷',align: 'center',templet:'#templetType'}, + {field: 'Type',title: '鍗曟嵁绫诲瀷',align: 'center',width: 124,templet:'#templetType'}, {field: 'Status',title: '鎵ц鐘舵��', align: 'center',templet: '#templetStatus'}, {field: 'LogisticsName',title: '鎵胯繍鍟�',align: 'center'}, {field: 'CustomerName',title: '瀹㈡埛鍚嶇О',align: 'center'}, - {field: 'LotNo',title: '鎵规鍙�',align: 'center'}, + {field: 'LotNo',title: '杩涘巶缂栧彿',align: 'center'}, {field: 'LotNoText',title: '鎵规鎻忚堪',align: 'center'}, {field: 'IsDespatch',title: '鏄惁鍙戣繍',align: 'center',templet: '#templetIsDespatch'}, - {field: 'SupplierLot',title: '渚涜揣鎵规',align: 'center'}, + {field: 'SupplierLot',title: '鍘熷巶鎵瑰彿',align: 'center'}, {field: 'Origin',title: '鏉ユ簮',align: 'center'}, {field: 'Demo',title: '澶囨敞',align: 'center',width: 180}, {field: 'CreateUserName',title: '鍒涘缓浜�',align: 'center'}, @@ -501,208 +501,7 @@ var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTable() { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // No: $("#No").val(), - // Type: $("#Type").val(), - // Status: $("#Status").val(), - // LotNo: $("#LotNo").val(), - // LogisticsId: parseInt($("#LogisticsId").val()), - // IsWave: $("#IsWave").val(), - // IsDespatch: $("#IsDespatch").val(), - // // WaveNo: $("#WaveNo").val(), - // }; - - // table.render({ - // elem: '#LAY-app-content-list', - // url: IP+"/BllSo/GetExportNoticeList", - // method: 'POST', - // height: h1 ,//'full-'+hei1 - // id: 'LAY-app-content-list', - // where: param, - // contentType: 'application/json', - // headers:{ToKen:$.cookie('token')}, - // page: true, - // defaultToolbar: ['filter'], //'print', 'exports' - // even: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // even:true, - // done: function(res){ - // initMenu(); - // var soCode = "res.data[0].SONo"; - // if (res.data.length != 0) { - // soCode = res.data[0].SONo; - // } - // refreshTablemx(soCode) - // }, - // cols: [ - // [ { - // title: '搴忓彿', - // type: 'numbers', - // width: 65, - // fixed: 'left', - // },{ - // field: 'SONo', - // title: '鍑哄簱鍗曞彿', - // align: 'center', - // fixed: 'left', - // width: 165, - // },{ - // field: 'Type', - // title: '鍗曟嵁绫诲瀷', - // align: 'center', - // // width: 150, - // templet:function(d){ - // switch (d.Type) { - // case "0": - // return "鏍囧噯閿�鍞嚭搴�"; - // case "1": - // return "闈炴爣鍑嗛攢鍞嚭搴�"; - // case "2": - // return "鏍囧噯璋冩嫧鍑哄簱"; - // case "3": - // return "闈炴爣鍑嗚皟鎷ㄥ嚭搴�"; - // default: - // return ""; - // } - // } - // },{ - // field: 'Status', - // title: '鎵ц鐘舵��', - // align: 'center', - // // width: 130, - // templet: function(d){ - // switch (d.Status) { - // case "0": - // return `<button class="layui-btn layui-btn-radius layui-btn-xs">绛夊緟鎵ц</button>`; - // case "1": - // return `<button class="layui-btn layui-btn-radius layui-btn-warm layui-btn-xs">閮ㄥ垎鍒嗛厤</button>`; - // case "2": - // return `<button class="layui-btn layui-btn-radius layui-btn-warm layui-btn-xs">宸插垎閰�</button>`; - // case "3": - // return `<button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">姝e湪鎵ц</button>`; - // case "4": - // return `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">鎵ц瀹屾瘯</button>`; - // case "5": - // return `<button class="layui-btn layui-btn-radius layui-btn-normal layui-btn-xs">涓婁紶瀹屾瘯</button>`; - // default: - // return ""; - // } - // } - // },{ - // field: 'LogisticsName', - // title: '鎵胯繍鍟�', - // align: 'center', - // // minWidth: 150 - // },{ - // field: 'CustomerName', - // title: '瀹㈡埛鍚嶇О', - // align: 'center', - // // minwidth: 130 - // },{ - // field: 'LotNo', - // title: '鎵规鍙�', - // align: 'center', - // // width: 180, - // hide:true - // },{ - // field: 'LotNoText', - // title: '鎵规鎻忚堪', - // align: 'center', - // // width: 180, - // hide:true - // }, - // // { - // // field: 'IsWave', - // // title: '鐢熸垚娉㈡', - // // align: 'center', - // // width: 95, - // // templet: function (d) { - // // switch (d.IsWave) { - // // case "0": - // // return "鍚�"; - // // case "1": - // // return "鏄�"; - // // default: - // // return ""; - // // } - - // // }, - // // }, - // // { - // // field: 'WaveNo', - // // title: '娉㈡鍗曞彿', - // // align: 'center', - // // width: 170 - // // }, - // { - // field: 'IsDespatch', - // title: '鏄惁鍙戣繍', - // align: 'center', - // // width: 95, - // templet: function (d) { - // switch (d.IsDespatch) { - // case "0": - // return "鍚�"; - // case "1": - // return "鏄�"; - // default: - // return ""; - // } - - // }, - // },{ - // field: 'SupplierLot', - // title: '渚涜揣鎵规', - // align: 'center', - // // width: 100, - // hide:true - // },{ - // field: 'Origin', - // title: '鏉ユ簮', - // align: 'center', - // // width: 100 - // },{ - // field: 'CreateUserName', - // title: '鍒涘缓浜�', - // align: 'center', - // // width: 120, - // },{ - // field: 'CreateTime', - // title: '鍒涘缓鏃堕棿', - // align: 'center', - // // width: 160, - // templet: function(d) { - // return formatDate(d.CreateTime); - // }, - // },{ - // field: 'UpdateUserName', - // title: '淇敼浜�', - // align: 'center', - // // width: 120, - // hide:true - // },{ - // field: 'UpdateTime', - // title: '淇敼鏃堕棿', - // align: 'center', - // // width: 160, - // templet: function(d) { - // return formatDate(d.UpdateTime); - // }, - // hide:true - // },{ - // title: '鎿嶄綔', - // fixed: 'right', - // align: 'center', - // toolbar: '#table-content-list', - // // width: 240 - // }] - // ] - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson var param1={ @@ -762,201 +561,29 @@ //娓叉煋鍑哄簱鍗曟槑缁� //#region 鑷畾涔夎〃澶� var DetailColsArr = [[ - {field: '',title: '搴忓彿',type:'numbers',width: 50,align: 'center',fixed: 'left', "disabled": true}, - {field: 'SONo',title: '鍑哄簱鍗曞彿',align: 'center',fixed: 'left',width:165 }, - {field: 'SkuNo',title: '鐗╂枡缂栫爜',align: 'center', width: 130}, - {field: 'SkuName',title: '鐗╂枡鍚嶇О',align: 'center', width: 152}, - {field: 'Standard',title: '鐗╂枡瑙勬牸',align: 'center', width: 270}, - {field: 'LotNo',title: '鎵规鍙�',align: 'center',width: 150}, - {field: 'Qty',title: '璁″垝鏁伴噺',align: 'center',width: 100}, - {field: 'AllotQty',title: '鍒嗛厤鏁伴噺',align: 'center',width: 100}, - {field: 'FactQty',title: '涓嬫灦鏁伴噺',align: 'center', width: 100}, - {field: 'CompleteQty',title: '鎷h揣鏁伴噺',align: 'center', width: 100}, - {field: 'IsBale',title: '鏄惁瑁瑰寘',align: 'center',templet: '#templetIsBale',width: 90}, - {field: 'IsBelt',title: '鏄惁鎵撳甫',align: 'center',templet: '#templetIsBelt',width: 90}, - {field: 'LotText',title: '鎵规鎻忚堪',align: 'center', width: 100}, - {field: 'PackagName',title: '鍖呰鍚嶇О',align: 'center', width: 120}, - {field: 'SupplierLot',title: '渚涜揣鎵规',align: 'center', width: 120}, - {field: 'Price',title: '鍗曚环', align: 'center', width: 80}, - {field: 'Money',title: '鎬婚噾棰�', align: 'center', width: 90}, - {field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 100,align: 'left',toolbar: '#table-content-list2', "disabled": true} - ]]; + {field: '',title: '搴忓彿',type:'numbers',width: 50,align: 'center',fixed: 'left', "disabled": true}, + {field: 'SONo',title: '鍑哄簱鍗曞彿',align: 'center',fixed: 'left',width:165 }, + {field: 'SkuNo',title: '鐗╂枡缂栫爜',align: 'center', width: 130}, + {field: 'SkuName',title: '鐗╂枡鍚嶇О',align: 'center', width: 152}, + {field: 'Standard',title: '鐗╂枡瑙勬牸',align: 'center', width: 270}, + {field: 'LotNo',title: '杩涘巶缂栧彿',align: 'center',width: 150}, + {field: 'Qty',title: '璁″垝鏁伴噺',align: 'center',width: 100}, + {field: 'AllotQty',title: '鍒嗛厤鏁伴噺',align: 'center',width: 100}, + {field: 'FactQty',title: '涓嬫灦鏁伴噺',align: 'center', width: 100}, + {field: 'CompleteQty',title: '鎷h揣鏁伴噺',align: 'center', width: 100}, + {field: 'IsBale',title: '鏄惁瑁瑰寘',align: 'center',templet: '#templetIsBale',width: 90}, + {field: 'IsBelt',title: '鏄惁鎵撳甫',align: 'center',templet: '#templetIsBelt',width: 90}, + {field: 'LotText',title: '鎵规鎻忚堪',align: 'center', width: 100}, + {field: 'PackagName',title: '鍖呰鍚嶇О',align: 'center', width: 120}, + {field: 'SupplierLot',title: '鍘熷巶鎵瑰彿',align: 'center', width: 120}, + {field: 'Price',title: '鍗曚环', align: 'center', width: 80}, + {field: 'Money',title: '鎬婚噾棰�', align: 'center', width: 90}, + {field: 'caozuo',title: '鎿嶄綔',fixed: 'right',width: 100,align: 'left',toolbar: '#table-content-list2', "disabled": true} + ]]; var DetailColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTablemx(soNo) { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // SoNo: soNo, - // }; - // table.render({ - // elem: '#LAY-app-content-list2', - // url: IP + "/BllSo/GetExportNoticeDetailList", - // method: 'POST', - // height: h2, - // id: 'LAY-app-content-list2', - // where: param, - // contentType: 'application/json', - // headers:{ToKen:$.cookie('token')}, - // toolbar:'#toolbarDemo', - // defaultToolbar: ['print'], //'print', 'exports' - // page: true, - // limit: pageCnt, - // limits: pageLimits, - // cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function(){ - // initMenu(); - // }, - // cols: [ - // [{ - // title: '搴忓彿', - // type: 'numbers', - // width: 65, - // fixed: 'left', - // }, { - // field: 'SONo', - // title: '鍑哄簱鍗曞彿', - // align: 'center', - // fixed: 'left', - // width: 165 - // }, { - // field: 'SkuNo', - // title: '鐗╂枡缂栫爜', - // align: 'center', - // width: 130 - // }, { - // field: 'SkuName', - // title: '鐗╂枡鍚嶇О', - // align: 'center', - // width: 152 - // }, { - // field: 'Standard', - // title: '鐗╂枡瑙勬牸', - // align: 'center', - // width: 270 - // }, { - // field: 'LotNo', - // title: '鎵规鍙�', - // align: 'center', - // width: 150 - // }, { - // field: 'Qty', - // title: '璁″垝鏁伴噺', - // align: 'center', - // width: 100 - // }, { - // field: 'AllotQty', - // title: '鍒嗛厤鏁伴噺', - // align: 'center', - // width: 100 - // }, { - // field: 'FactQty', - // title: '涓嬫灦鏁伴噺', - // align: 'center', - // width: 100 - // }, { - // field: 'CompleteQty', - // title: '鎷h揣鏁伴噺', - // align: 'center', - // width: 100 - // }, { - // field: 'IsBale', - // title: '鏄惁瑁瑰寘', - // align: 'center', - // templet: function (d) { - // console.log(d); - // switch (d.IsBale) { - // case "0": - // return "涓嶈9鍖�"; - // case "1": - // return "瑁瑰寘"; - // default: - // return ""; - // } - - // }, - // width: 90, - // hide:true, - // }, { - // field: 'IsBelt', - // title: '鏄惁鎵撳甫', - // align: 'center', - // templet: function (d) { - // switch (d.IsBelt) { - // case "0": - // return "涓嶆墦甯�"; - // case "1": - // return "鎵撳甫"; - // default: - // return ""; - // } - - // }, - // width: 90, - // hide:true, - // }, { - // field: 'LotText', - // title: '鎵规鎻忚堪', - // align: 'center', - // width: 100 - // }, { - // field: 'PackagName', - // title: '鍖呰鍚嶇О', - // align: 'center', - // width: 120 - // }, { - // field: 'SupplierLot', - // title: '渚涜揣鎵规', - // align: 'center', - // width: 120 - // }, - // // { - // // field: 'IsWave', - // // title: '鐢熸垚娉㈡', - // // align: 'center', - // // width: 90, - // // templet: function (d) { - // // switch (d.IsWave) { - // // case "0": - // // return "鍚�"; - // // case "1": - // // return "鏄�"; - // // default: - // // return ""; - // // } - - // // }, - // // hide:true, - // // }, - // // { - // // field: 'WaveNo', - // // title: '娉㈡鍗曞彿', - // // align: 'center', - // // width: 170, - // // hide:true - // // }, - // { - // field: 'Price', - // title: '鍗曚环', - // align: 'center', - // width: 80, - // hide:true - // }, { - // field: 'Money', - // title: '鎬婚噾棰�', - // align: 'center', - // width: 90, - // hide:true - // }, { - // title: '鎿嶄綔', - // fixed: 'right', - // width: 180, - // align: 'center', - // toolbar: '#table-content-list2' - // }] - // ] - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson2 var param1={ diff --git a/HTML/views/SOSetting/PalletNoOut.html b/HTML/views/SOSetting/PalletNoOut.html index c24ce63..0dd124d 100644 --- a/HTML/views/SOSetting/PalletNoOut.html +++ b/HTML/views/SOSetting/PalletNoOut.html @@ -53,9 +53,9 @@ </div> </div> <div class="layui-inline"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="width: 170px; margin-right: 0px;"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" class="layui-input"> + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> @@ -228,7 +228,7 @@ {field: 'PalletNo', title: '鎵樼洏鍙�', align: 'center'}, {field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center'}, {field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center'}, - {field: 'LotNo', title: '鎵规鍙�', align: 'center'}, + {field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center'}, {field: 'Qty', title: '鏁伴噺', align: 'center'}, {field: 'LockQty', title: '閿佸畾鏁伴噺', align: 'center'}, {field: 'FrozenQty', title: '鍐荤粨鏁伴噺', align: 'center'}, @@ -239,77 +239,7 @@ var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜 //#endregion function refreshTable() { - //#region 鍘熷闈炶嚜瀹氫箟鍒� - // var param = { - // SkuNo:$("#SkuNo").val(), //鐗╂枡鍙� - // SkuName:$("#SkuName").val(), //鐗╂枡鍚嶇О - // PalletNo:$("#PalletNo").val(), //鎵樼洏鍙� - // LotNo:$("#LotNo").val(), //鎵规鍙� - - // InspectMark:$("#InspectMark").val(), //妫�楠屾爣璁� - // BitPalletMark:$("#BitPalletMark").val(), //闆舵墭鏍囪 - // }; - // table.render({ - // elem: '#LAY-app-content-list', - // height: 'full-106', - // id: 'LAY-app-content-list', - // url: IP+"/BllSo/GetPalletNoOutList", - // method: 'post', - // where: param, - // contentType: 'application/json', - // headers:{ToKen:$.cookie('token')}, - // page: true, - // limit: pageCnt, - // limits: pageLimits, - // even: true, - // cellMinWidth: 80, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板 - // done: function(){ - // initMenu(); - // }, - // cols: - // [[ - // { - // title: '搴忓彿', type: 'numbers', fixed: 'left' - // }, - // { field: 'WareHouseNo', title: '鎵�灞炰粨搴�', align: 'center', }, - // { field: 'AreaNo', title: '鎵�灞炲尯鍩�', align: 'center', }, - // { field: 'LocatNo', title: '鍌ㄤ綅鍦板潃', align: 'center' }, - // { field: 'PalletNo', title: '鎵樼洏鍙�', align: 'center', }, - // { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center' }, - // { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', }, - // { field: 'LotNo', title: '鎵规鍙�', align: 'center', }, - // { field: 'Qty', title: '鏁伴噺', align: 'center' }, - // { field: 'LockQty', title: '閿佸畾鏁伴噺', align: 'center', }, - // { field: 'FrozenQty', title: '鍐荤粨鏁伴噺', align: 'center' }, - // { field: 'InspectMark', title: '鎶芥鏍囪', align: 'center', - // templet: function (d) { - // switch (d.InspectMark) { - // case "0": - // return "鍚�"; - // case "1": - // return "鏄�"; - // default: - // return ""; - // } - // }, - // }, - // { field: 'BitPalletMark', title: '闆舵墭鏍囪', align: 'center', - // templet: function (d) { - // switch (d.BitPalletMark) { - // case "0": - // return "鍚�"; - // case "1": - // return "鏄�"; - // default: - // return ""; - // } - // }, - // }, - // { title: '鎿嶄綔', fixed: 'right', width: 100, align: 'center', toolbar: '#table-content-list'} - // ]] - // }); - //#endregion - + //#region 鑷畾涔夎〃澶� var colsJson var param1={ diff --git a/HTML/views/StatisticalReport/AdventSlot.html b/HTML/views/StatisticalReport/AdventSlot.html index 7acc34f..9ac2358 100644 --- a/HTML/views/StatisticalReport/AdventSlot.html +++ b/HTML/views/StatisticalReport/AdventSlot.html @@ -44,9 +44,9 @@ </div> </div> <div class="layui-inline mingxi"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="width: 170px; margin-right: 0px;"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" class="layui-input"> + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> <div class="layui-inline "> @@ -229,13 +229,13 @@ // field: 'Standard', title: '鐗╂枡瑙勬牸', align: 'center',width:130 // }, // { - // title: '鎵规鍙�', field: 'LotNo', align: 'center', width:140 + // title: '杩涘巶缂栧彿', field: 'LotNo', align: 'center', width:140 // }, // { // title: '鎵规鎻忚堪', field: 'LotText', align: 'center', width:100 // }, // { - // title: '渚涜揣鎵规', field: 'SupplierLot', align: 'center', width:100 + // title: '鍘熷巶鎵瑰彿', field: 'SupplierLot', align: 'center', width:100 // }, // { // field: 'LocatNo', title: '鍌ㄤ綅鍦板潃', align: 'center',width:100 @@ -274,9 +274,9 @@ {field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center',width:100}, {field: 'Qty', title: '搴撳瓨鏁伴噺', align: 'center',width:100}, {field: 'Standard', title: '鐗╂枡瑙勬牸', align: 'center',width:130}, - {field: 'LotNo',title: '鎵规鍙�', align: 'center', width:140}, + {field: 'LotNo',title: '杩涘巶缂栧彿', align: 'center', width:140}, {field: 'LotText',title: '鎵规鎻忚堪', align: 'center', width:100}, - {field: 'SupplierLot',title: '渚涜揣鎵规', align: 'center', width:100}, + {field: 'SupplierLot',title: '鍘熷巶鎵瑰彿', align: 'center', width:100}, {field: 'ProductionTime', title: '鐢熶骇鏃堕棿', align: 'center',width:150,templet: '#templetProductionTime'}, {field: 'Status', title: '鐗╂枡鐘舵��', align: 'center',width:100, templet: '#buttonTpl'}, {field: 'InspectMark', title: '鎶芥鏍囪', align: 'center',width:100, templet: '#InspectMarkStatus'}, diff --git a/HTML/views/StatisticalReport/InOutBoundReports.html b/HTML/views/StatisticalReport/InOutBoundReports.html index c1450ef..3ff44c4 100644 --- a/HTML/views/StatisticalReport/InOutBoundReports.html +++ b/HTML/views/StatisticalReport/InOutBoundReports.html @@ -46,9 +46,9 @@ </div> </div> <div class="layui-inline mingxi"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="width: 170px; margin-right: 0px;"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" class="layui-input"> + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> <div class="layui-inline mingxi"> @@ -230,7 +230,7 @@ // title: '搴忓彿', type: 'numbers', fixed: 'left' // }, // { - // field: 'LotNo', title: '鎵规鍙�', align: 'center', + // field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', // }, // { // field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center' @@ -267,7 +267,7 @@ //#region 鑷畾涔夎〃澶� var TotalColsArr = [[ {field: '',title: '搴忓彿',type:'numbers',fixed: 'left', "disabled": true}, - {field: 'LotNo', title: '鎵规鍙�', align: 'center'}, + {field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center'}, {field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center'}, {field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center'}, {field: 'RQty', title: '鍏ュ簱鏁伴噺', align: 'center'}, @@ -316,7 +316,7 @@ var param = { SkuNo:SkuNo, //鐗╂枡鍙� SkuName:SkuName, //鐗╂枡鍚嶇О - LotNo:LotNo, //鎵规鍙� + LotNo:LotNo, //杩涘巶缂栧彿 StartTime:StartTime, //寮�濮嬫椂闂� EndTime:EndTime, //缁撴潫鏃堕棿 //StartTime:StartTime?""=chudate:StartTime, //寮�濮嬫椂闂� @@ -379,10 +379,10 @@ // field: 'SONo', title: '鍑哄簱鍗曞彿', align: 'center', width: 100 // }, // { - // field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 100 + // field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 100 // }, // { - // field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 100 + // field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 100 // }, // { // field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', width: 100 @@ -439,8 +439,8 @@ {field: '',title: '搴忓彿',type:'numbers',width: 70,fixed: 'left', "disabled": true}, {field: 'ASNNo', title: '鍏ュ簱鍗曞彿', align: 'center', width: 100}, {field: 'SONo', title: '鍑哄簱鍗曞彿', align: 'center', width: 100}, - {field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 100}, - {field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 100}, + {field: 'LotNo', title: '杩涘巶缂栧彿', align: 'center', width: 100}, + {field: 'SupplierLot', title: '鍘熷巶鎵瑰彿', align: 'center', width: 100}, {field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', width: 100}, {field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', width: 100}, {field: 'PalletNo', title: '鎵樼洏鍙�', align: 'center', width: 100}, diff --git a/HTML/views/StatisticalReport/InventoryStatistics.html b/HTML/views/StatisticalReport/InventoryStatistics.html index d3ec89e..8ba163b 100644 --- a/HTML/views/StatisticalReport/InventoryStatistics.html +++ b/HTML/views/StatisticalReport/InventoryStatistics.html @@ -405,7 +405,7 @@ SkuName:SkuName, //鐗╂枡鍚嶇О OwnerNo:OwnerNo, //璐т富缂栫爜 OwnerName:OwnerName, //璐т富鍚嶇О - LotNo:LotNo, //鎵规鍙� + LotNo:LotNo, //杩涘巶缂栧彿 }; sendData(IP + "/Statistical/GetInventoryList", param, 'get', function (res) { console.log(res) @@ -480,7 +480,7 @@ // align: 'center', // }, { // field: 'LotNo', - // title: '鎵规鍙�', + // title: '杩涘巶缂栧彿', // align: 'center', // }, { // field: 'Qty', @@ -579,7 +579,7 @@ SkuName:SkuName, //鐗╂枡鍚嶇О OwnerNo:OwnerNo, //璐т富缂栫爜 OwnerName:OwnerName, //璐т富鍚嶇О - LotNo:LotNo, //鎵规鍙� + LotNo:LotNo, //杩涘巶缂栧彿 LocatNo:LocatNo,//鍌ㄤ綅鍦板潃 PalletNo:PalletNo, //鎵樼洏鍙� Status:Status,//搴撳瓨鐘舵�� diff --git a/HTML/views/StatisticalReport/LowStockSlotList.html b/HTML/views/StatisticalReport/LowStockSlotList.html index c1ace3f..e9973f5 100644 --- a/HTML/views/StatisticalReport/LowStockSlotList.html +++ b/HTML/views/StatisticalReport/LowStockSlotList.html @@ -37,9 +37,9 @@ </div> </div> <div class="layui-inline mingxi"> - <label class="layui-form-label" style="width: 60px;">鎵规鍙�</label> + <label class="layui-form-label" style="width: 60px;">杩涘巶缂栧彿</label> <div class="layui-input-inline" style="width: 170px; margin-right: 0px;"> - <input type="text" id="LotNo" name="LotNo" placeholder="鎵规鍙�" autocomplete="off" class="layui-input"> + <input type="text" id="LotNo" name="LotNo" placeholder="杩涘巶缂栧彿" autocomplete="off" class="layui-input"> </div> </div> <div class="layui-inline zhijian"> @@ -144,7 +144,7 @@ // field: 'Standard', title: '鐗╂枡瑙勬牸', align: 'center', // }, // { - // title: '鎵规', field: 'LotNo', align: 'center' + // title: '杩涘巶缂栧彿', field: 'LotNo', align: 'center' // }, // { // field: 'ResidueQty', title: '鍓╀綑鏁伴噺', align: 'center', @@ -171,7 +171,7 @@ {field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center'}, {field: 'Type', title: '鐗╂枡绫诲瀷', align: 'center', templet: '#SkuType'}, {field: 'Standard', title: '鐗╂枡瑙勬牸', align: 'center'}, - {title: '鎵规', field: 'LotNo', align: 'center'}, + {title: '杩涘巶缂栧彿', field: 'LotNo', align: 'center'}, {field: 'ResidueQty', title: '鍓╀綑鏁伴噺', align: 'center'}, {field: 'Qty', title: '搴撳瓨鏁伴噺', align: 'center'}, {field: 'LockQty', title: '閿佸畾鏁伴噺', align: 'center'}, diff --git a/Pda/View/AsnSetting/productEnterQuantity.html b/Pda/View/AsnSetting/productEnterQuantity.html index 6550d26..fb2dc0b 100644 --- a/Pda/View/AsnSetting/productEnterQuantity.html +++ b/Pda/View/AsnSetting/productEnterQuantity.html @@ -101,11 +101,6 @@ </ul> </div> - <!-- <ul> - <li id="option1">鏍囩</li> - <li id="option2">鏁伴噺</li> - </ul> --> - <button id="option1" class="layout-btn" type="button">鏍囩</button> <button id="option2" class="layout-btn" type="button">鏁伴噺</button> <br /><br /> @@ -114,7 +109,7 @@ <div id="content1"> <div id="zongDiv" class="layout-bill-info" style="height: 285px;"> <form class="layui-form" action=""> - <div id="" class="layui-form-item layout-dropdownlist"> + <!-- <div id="" class="layui-form-item layout-dropdownlist"> <label class="layui-form-label" lang>鍏ュ簱鍗曪細</label> <div class="layui-input-block" id="selectDiv"> <select id="bar" lay-filter="getbar" lay-search> @@ -122,7 +117,7 @@ </select> <img src="/assets/down_arraw.png"> </div> - </div> + </div> --> <div class="layui-form-item layout-dropdownlist" style="margin-top: 10px;"> <label class="layui-form-label">鐗╂枡-鎵规锛�</label> <div class="layui-input-block" id="goodDiv"> @@ -267,7 +262,7 @@ <div id="content2"> <div id="zongDiv" class="layout-bill-info" style="height: 255px;"> <form class="layui-form" id="form2" action=""> - <div id="" class="layui-form-item layout-dropdownlist"> + <!-- <div id="" class="layui-form-item layout-dropdownlist"> <label class="layui-form-label" lang>鍏ュ簱鍗曪細</label> <div class="layui-input-block" id="selectDiv1"> <select id="bar1" lay-filter="getbar1" lay-search> @@ -275,7 +270,7 @@ </select> <img src="/assets/down_arraw.png"> </div> - </div> + </div> --> <div class="layui-form-item layout-dropdownlist" style="margin-top: 10px;"> <label class="layui-form-label">鐗╂枡-鎵规锛�</label> <div class="layui-input-block" id="goodDiv1"> @@ -548,125 +543,129 @@ /* 鍏ュ簱鍗曟嵁涓嬫媺妗� */ //鐐瑰嚮鍏ュ簱鍗曟嵁涓嬫媺妗嗕簨浠� - $("#selectDiv").click(function () { - if (xianshiyemian == 0) { - var input = $('select[id="bar"]').next().find('.layui-select-title input') - var val = input.val() - //鍏堟洿鏂颁竴涓嬪叆搴撳崟 - updateBillList(function (data) { - $('select[id="bar"]').next().addClass('layui-form-selected') - $('select[id="bar"]').next().find('.layui-select-title input').val(val) - }) - } - }) - //鐐瑰嚮鍏ュ簱鍗曟嵁涓嬫媺妗嗕簨浠� - $("#selectDiv1").click(function () { - if (xianshiyemian == 1) { - var input = $('select[id="bar1"]').next().find('.layui-select-title input') - var val = input.val() - //鍏堟洿鏂颁竴涓嬪叆搴撳崟 - updateBillList(function (data) { - $('select[id="bar1"]').next().addClass('layui-form-selected') - $('select[id="bar1"]').next().find('.layui-select-title input').val(val) - }) - } - }) + // $("#selectDiv").click(function () { + // if (xianshiyemian == 0) { + // var input = $('select[id="bar"]').next().find('.layui-select-title input') + // var val = input.val() + // //鍏堟洿鏂颁竴涓嬪叆搴撳崟 + // updateBillList(function (data) { + // $('select[id="bar"]').next().addClass('layui-form-selected') + // $('select[id="bar"]').next().find('.layui-select-title input').val(val) + // }) + // } + // }) + // //鐐瑰嚮鍏ュ簱鍗曟嵁涓嬫媺妗嗕簨浠� + // $("#selectDiv1").click(function () { + // if (xianshiyemian == 1) { + // var input = $('select[id="bar1"]').next().find('.layui-select-title input') + // var val = input.val() + // //鍏堟洿鏂颁竴涓嬪叆搴撳崟 + // updateBillList(function (data) { + // $('select[id="bar1"]').next().addClass('layui-form-selected') + // $('select[id="bar1"]').next().find('.layui-select-title input').val(val) + // }) + // } + // }) /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/ /* 缁戝畾鍏ュ簱鍗曚俊鎭� */ - function updateBillList(callback) { - if (xianshiyemian == 0) { - var input = $('select[id="bar"]').next().find('.layui-select-title input') - var val = input.val() - $("#bar").empty() - $("#bar").append('<option value =>' + '</option>'); - form.render('select'); + // function updateBillList(callback) { + // if (xianshiyemian == 0) { + // var input = $('select[id="bar"]').next().find('.layui-select-title input') + // var val = input.val() + // $("#bar").empty() + // $("#bar").append('<option value =>' + '</option>'); + // form.render('select'); - var param = { - Type: "0" - }; - sendData(IP + "/PdaAsn/GetArrivalNotices", param, 'post', function (res) { - if (res.code == 0) { //鎴愬姛 - for (var i = 0; i < res.data.length; i++) { - $("#bar").append('<option value =' + res.data[i] + '>' + res.data[i] + '</option>'); - } - form.render('select'); + // var param = { + // Type: "0" + // }; + // sendData(IP + "/PdaAsn/GetArrivalNotices", param, 'post', function (res) { + // if (res.code == 0) { //鎴愬姛 + // for (var i = 0; i < res.data.length; i++) { + // $("#bar").append('<option value =' + res.data[i] + '>' + res.data[i] + '</option>'); + // } + // form.render('select'); - if (!val) { - $('#bar').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') - } else { - var sel = 'dd[lay-value=' + val + ']'; - $('#bar').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') - } + // if (!val) { + // $('#bar').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') + // } else { + // var sel = 'dd[lay-value=' + val + ']'; + // $('#bar').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') + // } - callback(res.data) - } else { //涓嶆垚鍔� - // layer.msg(res.msg, { - // icon: 2, - // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - // }, function() {}); - } - }); - } - else if (xianshiyemian == 1) { - var input = $('select[id="bar1"]').next().find('.layui-select-title input') - var val = input.val() - $("#bar1").empty() - $("#bar1").append('<option value =>' + '</option>'); - form.render('select'); + // callback(res.data) + // } else { //涓嶆垚鍔� + // // layer.msg(res.msg, { + // // icon: 2, + // // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + // // }, function() {}); + // } + // }); + // } + // else if (xianshiyemian == 1) { + // var input = $('select[id="bar1"]').next().find('.layui-select-title input') + // var val = input.val() + // $("#bar1").empty() + // $("#bar1").append('<option value =>' + '</option>'); + // form.render('select'); - var param = { - Type: "1" - }; - sendData(IP + "/PdaAsn/GetArrivalNotices", param, 'post', function (res) { - if (res.code == 0) { //鎴愬姛 - console.log(res.data); - for (var i = 0; i < res.data.length; i++) { - $("#bar1").append('<option value =' + res.data[i] + '>' + res.data[i] +'</option>'); - } - form.render('select'); + // var param = { + // Type: "1" + // }; + // sendData(IP + "/PdaAsn/GetArrivalNotices", param, 'post', function (res) { + // if (res.code == 0) { //鎴愬姛 + // console.log(res.data); + // for (var i = 0; i < res.data.length; i++) { + // $("#bar1").append('<option value =' + res.data[i] + '>' + res.data[i] +'</option>'); + // } + // form.render('select'); - if (!val) { - $('#bar1').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') - } else { - var sel = 'dd[lay-value=' + val + ']'; - $('#bar1').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') - } + // if (!val) { + // $('#bar1').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') + // } else { + // var sel = 'dd[lay-value=' + val + ']'; + // $('#bar1').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') + // } - callback(res.data) - } else { //涓嶆垚鍔� - // layer.msg(res.msg, { - // icon: 2, - // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - // }, function() {}); - } - }); - } + // callback(res.data) + // } else { //涓嶆垚鍔� + // // layer.msg(res.msg, { + // // icon: 2, + // // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + // // }, function() {}); + // } + // }); + // } - } + // } /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/ //鐐瑰嚮鐗╂枡涓嬫媺妗嗕簨浠� $("#goodDiv").click(function () { - if ($("#bar").val() == null || $("#bar").val() == "" || $("#bar").val() == undefined) { - layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗�", { - icon: 2, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }, function () { }); - } + var input = $('select[id="goodSelect"]').next().find('.layui-select-title input') + var val = input.val() + //鍏堟洿鏂颁竴涓嬪叆搴撳崟 + updateGoodListNew(function (data) { + $('select[id="goodSelect"]').next().addClass('layui-form-selected') + $('select[id="goodSelect"]').next().find('.layui-select-title input').val(val) + }) + }) //鐐瑰嚮鐗╂枡涓嬫媺妗嗕簨浠�-鏁伴噺 $("#goodDiv1").click(function () { - if ($("#bar1").val() == null || $("#bar1").val() == "" || $("#bar1").val() == undefined) { - layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗�", { - icon: 2, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }, function () { }); - } + var input = $('select[id="goodSelect1"]').next().find('.layui-select-title input') + var val = input.val() + //鍏堟洿鏂颁竴涓嬪叆搴撳崟 + updateGoodListNew(function (data) { + $('select[id="goodSelect1"]').next().addClass('layui-form-selected') + $('select[id="goodSelect1"]').next().find('.layui-select-title input').val(val) + }) + }) //閫変腑鍏ュ簱鍗曚簨浠� form.on('select(getbar)', function (data) { @@ -693,13 +692,13 @@ form.on('submit(formBind)', function (data) { if (xianshiyemian == 0) { console.log($("#goodSelect").val()); - if ($("#bar").val() == "") { - layer.msg('璇烽�夋嫨鍏ュ簱鍗�', { - icon: 2, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }); - return; - } + // if ($("#bar").val() == "") { + // layer.msg('璇烽�夋嫨鍏ュ簱鍗�', { + // icon: 2, + // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + // }); + // return; + // } if ($("#goodSelect").val() == "") { layer.msg('璇烽�夋嫨鐗╂枡鍙婃槑缁�', { icon: 2, @@ -722,9 +721,9 @@ return; } var param = { - AsnNo: $("#bar").val(), + AsnNo: $("#goodSelect").val(), PalletNo: $("#STOCKCODE").val(), - AsnDetailId: parseInt($("#goodSelect").val()), + //AsnDetailId: parseInt($("#goodSelect").val()), LotNo: $("#goodSelect").find("option:selected").text(), BoxNo: $("#BOXCODE").val(), IsContinue: isContinue, @@ -757,13 +756,13 @@ }); } else if (xianshiyemian == 1) { - if ($("#bar1").val() == "") { - layer.msg('璇烽�夋嫨鍏ュ簱鍗�', { - icon: 2, - time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 - }); - return; - } + // if ($("#bar1").val() == "") { + // layer.msg('璇烽�夋嫨鍏ュ簱鍗�', { + // icon: 2, + // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + // }); + // return; + // } if ($("#goodSelect1").val() == "") { layer.msg('璇烽�夋嫨鐗╂枡鍙婃槑缁�', { icon: 2, @@ -779,9 +778,9 @@ return; } var param = { - AsnNo: $("#bar1").val(), //鍑哄簱鍗曟嵁 + AsnNo: $("#goodSelect1").val(), //鍑哄簱鍗曟嵁 PalletNo: $("#STOCKCODE1").val(), //鎵樼洏鏉$爜 - AsnDetailId: parseInt($("#goodSelect1").val()), //鍏ュ簱鍗曟槑缁咺D + //AsnDetailId: parseInt($("#goodSelect1").val()), //鍏ュ簱鍗曟槑缁咺D LotNo: $("#goodSelect1").find("option:selected").text(), //鐗╂枡鎵规 SkuQty: parseInt($("#SkuQty").val()), //鐗╂枡鏁伴噺 Demo: $("#NoticeDemo").val(), //鐗╂枡鏁伴噺 @@ -889,9 +888,8 @@ var asnDetails = ""; /* 缁戝畾鍏ュ簱鍗曠墿鏂欏強鎵规 */ - function updateGoodList(skuNo) { + function updateGoodListNew(callback) { if (xianshiyemian == 0) { - console.log("aaaa"); var input = $('select[id="goodSelect"]').next().find('.layui-select-title input') var val = input.val() @@ -899,64 +897,51 @@ $("#goodSelect").append('<option value =>' + '</option>'); var param = { - AsnNo: $("#bar").val(), + Type: "0", }; - synData(IP + "/PdaAsn/GetBindArrivalNoticeDetails", param, 'post', function (res) { - console.log("鍑哄簱鍙o細" + JSON.stringify(res)) + synData(IP + "/PdaAsn/GetArrivalNoticesInfo", param, 'post', function (res) { + if (res.code == 0) { //鎴愬姛 asnDetails = res.data; if (asnDetails.length <= 0) { - layer.msg('褰撳墠鍗曟嵁涓嬩笉瀛樺湪璐存爣鐗╂枡', { + layer.msg('褰撳墠鏈煡璇㈠埌璐存爣鐗╂枡淇℃伅', { icon: 2, time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 }); return; } for (var i = 0; i < res.data.length; i++) { - if (skuNo != '' && skuNo == res.data[i].SkuNo) { - if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { - $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] - .SkuName + - '</option>'); - } else { - $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] - .SkuName + "-" + res.data[i].LotNo + - '</option>'); - } + + if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { + $("#goodSelect").append('<option value =' + res.data[i].Id+'-'+res.data[i] + .SkuName + '>' + res.data[i].Id+'-'+res.data[i].SkuName + + '</option>'); } else { - if (i == 0) { - if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { - $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] - .SkuName + - '</option>'); - } else { - $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] - .SkuName + "-" + res.data[i].LotNo + - '</option>'); - } - - } else { - if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { - $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + '>' + res.data[i] - .SkuName + - '</option>'); - } else { - $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + '>' + res.data[i] - .SkuName + "-" + res.data[i].LotNo + - '</option>'); - } - } + $("#goodSelect").append('<option value =' + res.data[i].Id +'-'+ res.data[i] + .SkuName + "-" + res.data[i].LotNo + '>' +res.data[i].Id+'-'+ res.data[i] + .SkuName + "-" + res.data[i].LotNo + + '</option>'); } + } form.render('select'); if (!val) { + + console.log(val +"+1"); $('#goodSelect').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') } else { + + console.log(val +"+1"); var sel = 'dd[lay-value=' + val + ']'; $('#goodSelect').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') } + callback(res.data); } else { + layer.msg(res.msg, { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function() {}); } }); } @@ -969,10 +954,10 @@ $("#goodSelect1").append('<option value =>' + '</option>'); var param = { - AsnNo: $("#bar1").val(), + Type: "1", }; - synData(IP + "/PdaAsn/GetArrivalNoticeDetails", param, 'post', function (res) { - console.log("鍑哄簱鍙o細" + JSON.stringify(res)) + synData(IP + "/PdaAsn/GetArrivalNoticesInfo", param, 'post', function (res) { + if (res.code == 0) { //鎴愬姛 asnDetails = res.data; // console.log(asnDetails.length) @@ -984,47 +969,176 @@ return; } for (var i = 0; i < res.data.length; i++) { - if (skuNo != '' && skuNo == res.data[i].SkuNo) { - - if (i == 0) { - $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] - .SkuName); - } else { - $("#goodSelect1").append('<option value =' + res.data[i].Id + '>' + res.data[i] - .SkuName); - } - if (res.data[i].LotNo != null) { - $("#goodSelect1").append("-" + res.data[i].LotNo + - '</option>'); - } + + if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { + $("#goodSelect1").append('<option value =' + res.data[i].Id+'-'+res.data[i] + .SkuName + '>' + res.data[i].Id+'-'+res.data[i].SkuName + + '</option>'); } else { - if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { - $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] - .SkuName + - '</option>'); - } else { - $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] - .SkuName + "-" + res.data[i].LotNo + - '</option>'); - } + $("#goodSelect1").append('<option value =' + res.data[i].Id +'-'+ res.data[i] + .SkuName + "-" + res.data[i].LotNo + '>' +res.data[i].Id+'-'+ res.data[i] + .SkuName + "-" + res.data[i].LotNo + + '</option>'); } - + } form.render('select'); - if (!val) { $('#goodSelect1').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') } else { var sel = 'dd[lay-value=' + val + ']'; $('#goodSelect1').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') } + callback(res.data); } else { - + layer.msg(res.msg, { + icon: 2, + time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + }, function() {}); } }); } } + + + // /* 缁戝畾鍏ュ簱鍗曠墿鏂欏強鎵规 */ + // function updateGoodList(skuNo) { + // if (xianshiyemian == 0) { + // console.log("aaaa"); + // var input = $('select[id="goodSelect"]').next().find('.layui-select-title input') + // var val = input.val() + + // $("#goodSelect").empty() + // $("#goodSelect").append('<option value =>' + '</option>'); + + // var param = { + // AsnNo: $("#bar").val(), + // }; + // synData(IP + "/PdaAsn/GetBindArrivalNoticeDetails", param, 'post', function (res) { + // console.log("鍑哄簱鍙o細" + JSON.stringify(res)) + // if (res.code == 0) { //鎴愬姛 + // asnDetails = res.data; + // if (asnDetails.length <= 0) { + // layer.msg('褰撳墠鍗曟嵁涓嬩笉瀛樺湪璐存爣鐗╂枡', { + // icon: 2, + // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + // }); + // return; + // } + // for (var i = 0; i < res.data.length; i++) { + // if (skuNo != '' && skuNo == res.data[i].SkuNo) { + // if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { + // $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] + // .SkuName + + // '</option>'); + // } else { + // $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] + // .SkuName + "-" + res.data[i].LotNo + + // '</option>'); + // } + // } else { + // if (i == 0) { + // if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { + // $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] + // .SkuName + + // '</option>'); + // } else { + // $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + ' selected>' + res.data[i] + // .SkuName + "-" + res.data[i].LotNo + + // '</option>'); + // } + + // } else { + // if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { + // $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + '>' + res.data[i] + // .SkuName + + // '</option>'); + // } else { + // $("#goodSelect").append('<option value =' + res.data[i].Id + '-' + i + '>' + res.data[i] + // .SkuName + "-" + res.data[i].LotNo + + // '</option>'); + // } + // } + // } + // } + // form.render('select'); + + // if (!val) { + // $('#goodSelect').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') + // } else { + // var sel = 'dd[lay-value=' + val + ']'; + // $('#goodSelect').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') + // } + // } else { + // } + // }); + // } + // else if (xianshiyemian == 1) { + // console.log("bbbb"); + // var input = $('select[id="goodSelect1"]').next().find('.layui-select-title input') + // var val = input.val() + + // $("#goodSelect1").empty() + // $("#goodSelect1").append('<option value =>' + '</option>'); + + // var param = { + // AsnNo: $("#bar1").val(), + // }; + // synData(IP + "/PdaAsn/GetArrivalNoticeDetails", param, 'post', function (res) { + // console.log("鍑哄簱鍙o細" + JSON.stringify(res)) + // if (res.code == 0) { //鎴愬姛 + // asnDetails = res.data; + // // console.log(asnDetails.length) + // if (asnDetails.length <= 0) { + // layer.msg('褰撳墠鍗曟嵁涓嬩笉瀛樺湪涓嶈创鏍囩墿鏂�', { + // icon: 2, + // time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級 + // }); + // return; + // } + // for (var i = 0; i < res.data.length; i++) { + // if (skuNo != '' && skuNo == res.data[i].SkuNo) { + + // if (i == 0) { + // $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] + // .SkuName); + // } else { + // $("#goodSelect1").append('<option value =' + res.data[i].Id + '>' + res.data[i] + // .SkuName); + // } + // if (res.data[i].LotNo != null) { + // $("#goodSelect1").append("-" + res.data[i].LotNo + + // '</option>'); + // } + // } else { + // if (res.data[i].LotNo == '' || res.data[i].LotNo == null) { + // $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] + // .SkuName + + // '</option>'); + // } else { + // $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i] + // .SkuName + "-" + res.data[i].LotNo + + // '</option>'); + // } + // } + + // } + // form.render('select'); + + // if (!val) { + // $('#goodSelect1').siblings("div.layui-form-select").find('dl').find('.layui-select-tips').addClass('layui-this') + // } else { + // var sel = 'dd[lay-value=' + val + ']'; + // $('#goodSelect1').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this') + // } + // } else { + + // } + // }); + // } + + // } // 娓叉煋绠辩爜淇℃伅 function refreshTable() { @@ -1266,7 +1380,7 @@ $("#bar").append('<option value =' + res.data[0].ASNNo + ' selected>' + res.data[0].ASNNo + '</option>'); - updateGoodList(res.data[0].SkuNo) + // updateGoodList(res.data[0].SkuNo) setOrderGoods(); } else { if (asnDetails == '') { diff --git a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs index 28d189c..355b71a 100644 --- a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs +++ b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs @@ -328,11 +328,15 @@ } if (model.Type != "7") { - if (detailModel.LotNo.Length != 10) + if (!TypeLot.Contains(model.Type)) { - strMessage = "-1:杩涘巶缂栧彿浣嶆暟闀垮害鏈夎;"; - continue; + if (detailModel.LotNo.Length != 10) + { + strMessage = "-1:杩涘巶缂栧彿浣嶆暟闀垮害鏈夎;"; + continue; + } } + } if (model.Type == "1" && string.IsNullOrWhiteSpace(detailModel.SupplierLot)) //閲囪喘鍒拌揣鍗曞師鍘傛壒鍙凤紙渚涜揣鎵规锛変笉鑳戒负绌� diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs index a64eb06..bb09e1f 100644 --- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs +++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs @@ -29,6 +29,89 @@ { private static readonly SqlSugarScope Db = DataContext.Db; + #region 淇敼鎵樼洏缁戝畾鏃跺叆搴撳崟鍘婚櫎鍙樹负鐗╂枡+鏁伴噺 + + /// <summary> + /// 鑾峰彇鍗曟嵁鏄庣粏鏄剧ず鐨勭墿鏂� + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + public List<ArrivalNoticeDetailDto> GetArrivalNoticesInfo(ArrivalNoticeVm model) + { + try + { + //model.Type锛氬崟鎹被鍨� 鍦ㄨ繖閲屼唬琛ㄥ墠绔〉绛剧被鍨嬶細鍗虫爣绛鹃〉绛撅細璐存爣鐗╂枡锛� 鏁伴噺椤电锛氫笉璐磋〃鐗╂枡锛屽師鍥狅細鎳掑緱鍔犲弬鏁� + var data = Db.Queryable<BllArrivalNotice>().Where(m => m.IsDel == "0" && m.Status != "3" && m.Status != "4").Select(m => m.ASNNo).ToList(); + var list = new List<ArrivalNoticeDetailDto>(); + if (model.Type.Contains("0"))//0璐存爣 + { + list = Db.Queryable<BllArrivalNoticeDetail>().Where(m => m.IsDel == "0" && data.Contains(m.ASNNo) && !string.IsNullOrWhiteSpace(m.PackagNo)).Select(m => new ArrivalNoticeDetailDto()).ToList(); + } + else if (model.Type.Contains("1"))//1涓嶈创鏍� + { + list = Db.Queryable<BllArrivalNoticeDetail>().Where(m => m.IsDel == "0" && data.Contains(m.ASNNo) && string.IsNullOrWhiteSpace(m.PackagNo)).Select(m=>new ArrivalNoticeDetailDto()).ToList(); + } + else + { + throw new Exception("椤电绫诲瀷鍙傛暟閿欒"); + } + + List<ArrivalNoticeDetailDto> noticeList = new List<ArrivalNoticeDetailDto>(); + foreach (var item in list) + { + if (string.IsNullOrEmpty(item.LotNo)) + { + noticeList.Add(item); + } + else + { + string[] LotNoList = item.LotNo.Split(';'); + foreach (var item2 in LotNoList) + { + ArrivalNoticeDetailDto entry = new ArrivalNoticeDetailDto() + { + Id = item.Id, + ASNNo = item.ASNNo, + CompleteQty = item.CompleteQty, + CompleteTime = item.CompleteTime, + CreateTime = item.CreateTime, + Qty = item.Qty, + FactQty = item.FactQty, + LotNo = item2, + Money = item.Money, + PackagNo = item.PackagNo, + PackagName = item.PackagName, + Status = item.Status, + SkuNo = item.SkuNo, + SkuName = item.SkuName, + }; + + + noticeList.Add(entry); + } + } + } + //List<ArrivalNoticeDetailDto> list = new List<ArrivalNoticeDetailDto>(); + //foreach (var item in noticeList) + //{ + // string str = BySkuNoGetPackInfo(item.SkuNo); + // if (str == "瀛樺湪") + // { + // list.Add(item); + // } + //} + + return noticeList; + } + catch (Exception ex) + { + throw ex; + } + } + + + #endregion + // 鑾峰彇鍗曟嵁鍒楄〃 public List<string> GetArrivalNotices(ArrivalNoticeVm model) { @@ -42,11 +125,11 @@ //model.Type锛氬崟鎹被鍨� 鍦ㄨ繖閲屼唬琛ㄥ墠绔〉绛剧被鍨嬶細鍗虫爣绛鹃〉绛撅細璐存爣鐗╂枡锛� 鏁伴噺椤电锛氫笉璐磋〃鐗╂枡锛屽師鍥狅細鎳掑緱鍔犲弬鏁� var data = Db.Queryable<BllArrivalNotice>().Where(m => m.IsDel == "0" && m.Status != "3" && m.Status != "4").Select(m=>m.ASNNo).ToList(); var list = new List<string>(); - if (model.Type == "0")//0璐存爣 + if (model.Type.Contains("0"))//0璐存爣 { list = Db.Queryable<BllArrivalNoticeDetail>().Where(m =>m.IsDel == "0" && data.Contains(m.ASNNo) && !string.IsNullOrWhiteSpace(m.PackagNo)).Select(m => m.ASNNo).Distinct().ToList(); } - else if(model.Type == "1")//1涓嶈创鏍� + else if(model.Type.Contains("1"))//1涓嶈创鏍� { list = Db.Queryable<BllArrivalNoticeDetail>().Where(m => m.IsDel == "0" && data.Contains(m.ASNNo) && string.IsNullOrWhiteSpace(m.PackagNo)).Select(m=>m.ASNNo).Distinct().ToList(); } @@ -1955,18 +2038,27 @@ if (string.IsNullOrEmpty(model.AsnNo)) { - throw new Exception("-1:鍗曟嵁鍙蜂笉鍙负绌�!"); + throw new Exception("-1:鐗╂枡鏄庣粏涓嶅彲涓虹┖!"); } - if (model.AsnDetailId == null || model.AsnDetailId == 0) - { - throw new Exception("-1:鐗╂枡涓嶅彲涓虹┖!"); - } + //if (model.AsnDetailId == null || model.AsnDetailId == 0) + //{ + // throw new Exception("-1:鐗╂枡鏄庣粏涓嶅彲涓虹┖!"); + //} if (string.IsNullOrEmpty(model.PalletNo)) { throw new Exception("-1:鎵樼洏鍙蜂笉鍙负绌�!"); } + var detailId = model.AsnNo.Split("-"); + model.AsnDetailId = int.Parse(detailId[0]); + // 楠岃瘉鍏ュ簱鍗曟槑缁嗘槸鍚﹀瓨鍦� + var detail = Db.Queryable<BllArrivalNoticeDetail>().First(m => m.IsDel == "0" && m.Id == model.AsnDetailId); + if (detail == null) + { + throw new Exception("-1:褰撳墠鐗╂枡鏈煡璇㈠埌鍗曟嵁锛岃鏍稿疄!"); + } + model.AsnNo = detail.ASNNo; //鏍规嵁鍗曟嵁鍙疯幏鍙栧叆搴撳崟鎬诲崟 - var notice = Db.Queryable<BllArrivalNotice>().First(a => a.IsDel == "0" && a.ASNNo == model.AsnNo); + var notice = Db.Queryable<BllArrivalNotice>().First(a => a.IsDel == "0" && a.ASNNo == detail.ASNNo); if (notice.Status != "0" && notice.Status != "1" && notice.Status != "2") { throw new Exception("-1:璇ュ崟鎹凡鍏冲崟!"); @@ -1983,10 +2075,11 @@ else { //浠庣墿鏂欏悕绉�-鎵规涓彇鍑烘壒娆� - int indexOfDash = model.LotNo.IndexOf("-"); - if (indexOfDash != -1) + var indexOfDash = model.LotNo.Split("-"); + var len = indexOfDash.Length; + if (len >= 1) { - model.LotNo = model.LotNo.Substring(indexOfDash + 1); + model.LotNo =indexOfDash[len-1]; } else { @@ -2073,12 +2166,7 @@ { throw new Exception("璇ユ墭鐩樺湪搴撳瓨宸叉湁淇℃伅锛岃鏍稿疄锛�"); } - // 楠岃瘉鍏ュ簱鍗曟槑缁嗘槸鍚﹀瓨鍦� - var detail = Db.Queryable<BllArrivalNoticeDetail>().First(m => m.IsDel == "0" && m.Id == model.AsnDetailId && m.ASNNo == model.AsnNo && m.LotNo.Contains(model.LotNo)); - if (detail == null) - { - throw new Exception("-1:褰撳墠鐗╂枡鍙婃壒娆′笌鍗曟嵁鏃犲叧鑱旓紝璇锋牳瀹�!"); - } + #region 鍖呰 var package = Db.Queryable<SysPackag>().Where(m => m.IsDel == "0"); var sku = Db.Queryable<SysMaterials>().First(m => m.IsDel == "0" && m.SkuNo == detail.SkuNo); diff --git a/Wms/WMS.IBLL/IPdaServer/IPdaAsnServer.cs b/Wms/WMS.IBLL/IPdaServer/IPdaAsnServer.cs index c3b18fd..ab1606d 100644 --- a/Wms/WMS.IBLL/IPdaServer/IPdaAsnServer.cs +++ b/Wms/WMS.IBLL/IPdaServer/IPdaAsnServer.cs @@ -11,6 +11,9 @@ { public interface IPdaAsnServer { + //鑾峰彇鍗曟嵁鏄庣粏鏄剧ず鐨勭墿鏂� + List<ArrivalNoticeDetailDto> GetArrivalNoticesInfo(ArrivalNoticeVm model); + // 鑾峰彇鍗曟嵁鍒楄〃 List<string> GetArrivalNotices(ArrivalNoticeVm model); diff --git a/Wms/Wms/Controllers/PdaAsnController.cs b/Wms/Wms/Controllers/PdaAsnController.cs index 9fdbda8..80c67b6 100644 --- a/Wms/Wms/Controllers/PdaAsnController.cs +++ b/Wms/Wms/Controllers/PdaAsnController.cs @@ -24,6 +24,30 @@ } #endregion + #region MyRegion + + /// <summary> + /// 鑾峰彇鍗曟嵁鏄庣粏鏄剧ず鐨勭墿鏂� + /// </summary> + /// <param name="model">Type:鍗曟嵁绫诲瀷</param> + /// <returns></returns> + [HttpPost] + public IActionResult GetArrivalNoticesInfo(ArrivalNoticeVm model) + { + try + { + var models = _PdaAsnSvc.GetArrivalNoticesInfo(model); + + return Ok(new { code = 0, msg = "鍏ュ簱鍗曚俊鎭�", data = models }); + } + catch (Exception e) + { + return Ok(new { code = 1, msg = e.Message }); + } + } + + #endregion + #region 鍏敤鏂规硶 /// <summary> /// 鑾峰彇鍗曟嵁鍒楄〃 -- Gitblit v1.8.0