From cae008d8286b7ee846eb91e79350a9c57166882d Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期三, 12 六月 2024 15:41:28 +0800 Subject: [PATCH] 打印 --- HTML_09/views/SystemSettings/PrintSetting.html | 59 +++++++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 39 insertions(+), 20 deletions(-) diff --git a/HTML_09/views/SystemSettings/PrintSetting.html b/HTML_09/views/SystemSettings/PrintSetting.html index 34857ec..8b93275 100644 --- a/HTML_09/views/SystemSettings/PrintSetting.html +++ b/HTML_09/views/SystemSettings/PrintSetting.html @@ -33,6 +33,14 @@ </div> </div> <div class="layui-inline"> + <label class="layui-form-label">绫诲瀷</label> + <div class="layui-input-block" style="width: 184.44px;"> + <select id="Type" name="Type" id="Type" lay-verify="" lay-search> + <option value=""></option> + </select> + </div> + </div> + <div class="layui-inline"> <button class="layui-btn layui-btn-sm layuiadmin-btn-list" lay-submit lay-filter="LAY-app-contlist-search"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>鎼滅储 @@ -135,6 +143,17 @@ } } } + var TypeList = []; + synData(IP + "/Sys/GetDictionaryByParentNo?parentNo=" + "PrintType", {}, 'get', function (res) { + if (res.code == 0) { //鎴愬姛 + for (var i = 0; i < res.data.length; i++) { + $("#Type").append('<option value =' + res.data[i].DictNo + '>' + + res.data[i].DictName + '</option>'); + } + form.render('select'); + TypeList = res.data; + } + }); sendData(IP + "/basis/GetRoleRightList", {}, 'get', function (res) { $(function () { $("#approvalBtn").hide(); @@ -208,11 +227,12 @@ }, { field: 'Type', title: '妯℃澘绫诲瀷', align: 'center', fixed: 'left', width: 100, templet: function (d) { - switch (d.Type) { - case "1": - return "鍏ュ簱璐у搧"; - default: - return ""; + var mod = TypeList.filter(s => s.DictNo == d.Type)[0]; + if (mod) { + return mod.DictName; + } + else { + return ''; } } }, @@ -343,21 +363,20 @@ } }); - //娴嬭瘯鎵撳嵃 - printData = [{ - SkuNo: '000001', - SkuName: '娴嬭瘯鐗╂枡1', - Standard: 'xxxxxx', - LotNo: '20230801', - Qty: 100 - }, { - SkuNo: '000002', - SkuName: '娴嬭瘯鐗╂枡2', - Standard: 'xxxxxx', - LotNo: '20230801', - Qty: 100 - }]; - openPrintDialog(printData) + // //娴嬭瘯鎵撳嵃 + // printData = { + // Id: 4052, + // ASNNo: "ASN2024052800005", + // ArrivalNoticeDetail: [ + // { SkuNo: '000001' } + // ], + // // workExperience: [ + // // { position: '鏁版嵁鍒嗘瀽甯�', company: '鏌愬疂', address: '鍖椾含', date: '鍥涙湀-2010-鍏湀-2011', work: '涓撻鍒嗘瀽/妯″瀷锛屾牴鎹笟鍔″垎鏋愬垎鏋愬悇绫讳笓棰橈紝渚嬪锛氬晢鍝佺瓑绾э紝浼氬憳娑堣垂琛屼负钀ラ攢娲诲姩锛岄噸瑕佷骇鍝佹暟鎹瓑銆�' }, + // // { position: '鏁版嵁鍒嗘瀽甯�', company: '鏌愪笢', address: '鍖椾含', date: '涔濇湀-2011-涓夋湀-2016', work: '鏁版嵁鎸囨爣鐩戞帶锛屾牴鎹骇鍝侊紝杩愯惀浠ュ強绠$悊鐨勯渶姹傦紝閽堝浜у搧鏁版嵁锛岃繍钀ワ紝涓氬姟杩涘睍鍙奒PI鎸囨爣鐨勭洃鎺э紝缁忚惀鍒嗘瀽锛屽鍙U鐨勭粡钀ユ姤鍛婏紝鍒嗘瀽KPI杩涘害锛屼氦鏄撲骇鍝佸紓鍔ㄥ師鍥狅紝鍒嗘瀽甯傚満鍔ㄦ�侊紝姹囨姤瀵硅薄涓築U缁忕悊銆�' }, + // // { position: '鏁版嵁浜у搧缁忕悊', company: '澶х背', address: '鍖椾含', date: '鍥涙湀-2016-鑷充粖', work: '璐熻矗鍏蜂綋鍒嗘瀽椤圭洰锛屼緥濡傚疄鏃剁洃鎺э紝鏁版嵁鍚庡彴绠$悊锛屽崗璋冨紑鍙戣祫婧愶紝鎺у埗椤圭洰杩涘害銆�' } + // // ], + // }; + // openPrintDialog(printData, 'ArrivalNotice'); }); </script> </body> -- Gitblit v1.8.0