From 8d5da890498fc38f7d0ff610056763f7cf45c6b2 Mon Sep 17 00:00:00 2001 From: yusijie <ysj@hz-kingdee.com> Date: 星期二, 27 八月 2024 10:28:55 +0800 Subject: [PATCH] PDA盘点单添加单据类型下拉框;console文件报错修复 --- WebTM/views/home/console.html | 2 WebTM/views/仓存管理/仓库调拨/Kf_ARPD.html | 60 +++++++++++++++++++++++++++++ WebTM/Properties/PublishProfiles/JFTM.pubxml | 2 3 files changed, 61 insertions(+), 3 deletions(-) diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml b/WebTM/Properties/PublishProfiles/JFTM.pubxml index 79d8489..70a8712 100644 --- a/WebTM/Properties/PublishProfiles/JFTM.pubxml +++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml @@ -10,7 +10,7 @@ <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform> <PublishProvider>FileSystem</PublishProvider> - <PublishUrl>G:\issWeb\缃戠珯鍙戝竷\LAYUI</PublishUrl> + <PublishUrl>D:\缃戠珯鍙戝竷\鏅轰簯MESWMS\LAYUI</PublishUrl> <WebPublishMethod>FileSystem</WebPublishMethod> <SiteUrlToLaunchAfterPublish /> </PropertyGroup> diff --git a/WebTM/views/home/console.html b/WebTM/views/home/console.html index 21861e1..ffb10e7 100644 --- a/WebTM/views/home/console.html +++ b/WebTM/views/home/console.html @@ -414,7 +414,7 @@ case 'String': if (data[i].id == '绱ф�ョ▼搴�') { col.push({ - field: data[i].id, title: data[i].name, alert: 'center', sort: true, templet: "<div>{{d." + data[i].name + " == '0' ? '绱ф��': '鏅��'}}</div>", width: 70`` + field: data[i].id, title: data[i].name, alert: 'center', sort: true, templet: "<div>{{d." + data[i].name + " == '0' ? '绱ф��': '鏅��'}}</div>", width: 70 }); break; } diff --git "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_ARPD.html" "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_ARPD.html" index 218d0b3..54c2962 100644 --- "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_ARPD.html" +++ "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_ARPD.html" @@ -107,6 +107,18 @@ </div> </div> </div> + <div class="layui-form-item"> + <div class="layui-row"> + <div class="layui-col-xs3"> + <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁绫诲瀷</label> + </div> + <div class="layui-col-xs8"> + <select name="HBillSubType" id="HBillSubType"> + <!--鍔ㄦ�佹覆鏌撶粍缁�--> + </select> + </div> + </div> + </div> <div class="layui-form-item" style="padding:0px;margin:0px"> <div class="layui-row"> <div class="layui-col-xs3"> @@ -424,7 +436,7 @@ $("#HStockOutOrgID").val(sessionStorage["OrganizationID"]); $("#HStockOutOrgName").val(sessionStorage["Organization"]); $("#HStockInOrgID").val(sessionStorage["OrganizationID"]); - $("#HStockInOrgName").val(sessionStorage["Organization"]); + $("#HStockInOrgName").val(sessionStorage["Organization"]); var HSourceFlag = sessionStorage["SourceFlag"]; @@ -472,6 +484,28 @@ //$("#HDeptID").val(d.data[0].HDeptID); //$("#HBarCode").val(d.data[0].HBarCode); //$("#HQty").val(d.data[0].HQty); + } + }) + + //鑾峰彇鍗曟嵁瀛愮被鍨� + var HBillSubType = ''; + var HStockOutOrgID = $("#HStockOutOrgID").val()//璋冨嚭缁勭粐 + $.ajax({ + type: "GET", + url: GetWEBURL() + "/WEBSController/GetBillSubType_Json", + async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰 + data: { "HBillType": '1207', "HStockOrgID": HStockOutOrgID }, + success: function (result) { + if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 + var data = result.data; + for (var i = 0; i < data.length; i++) { + HBillSubType += '<option value="' + data[i].HNumber + '">' + data[i].HName + '</option>'; + } + $("#HBillSubType").append(HBillSubType); + + form.render('select'); + } + layer.closeAll("loading"); } }) } @@ -523,6 +557,30 @@ $("#HBillNo").val(d.data[0].HBillNo); } }); + + //鑾峰彇鍗曟嵁瀛愮被鍨� + var HBillSubType = ''; + var HStockOutOrgID = $("#HStockOutOrgID").val()//璋冨嚭缁勭粐 + $.ajax({ + type: "GET", + url: GetWEBURL() + "/WEBSController/GetBillSubType_Json", + async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰 + data: { "HBillType": '1207', "HStockOrgID": HStockOutOrgID }, + success: function (result) { + if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝 + var data = result.data; + for (var i = 0; i < data.length; i++) { + HBillSubType += '<option value="' + data[i].HNumber + '">' + data[i].HName + '</option>'; + } + $("#HBillSubType").append(HBillSubType); + + $("#HBillSubType").val("KCTZ"); + + form.render('select'); + } + layer.closeAll("loading"); + } + }) } else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new RoadBillMain(linterid); -- Gitblit v1.9.1