From 0f32eca3735d66b25bdc91b8bbac8a66d1caccf2 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期一, 19 二月 2024 17:29:06 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
---
WebTM/WebTM.csproj.user | 4
WebTM/views/WMS扫码模块/委外入库/Kf_EntrustInBill_PDA.html | 89 +
WebTM/views/WMS扫码模块/生产入库/Kf_ProductInBill_PDA.html | 78
WebTM/views/WMS扫码模块/销售出库/Kf_SellOutBill_PDA.html | 1899 +++++++++++++++++++++++++++++++++++++++++++++++
WebTM/views/WMS扫码模块/销售出库/Kf_SellOutBillList_PDA.html | 4
WebTM/views/WMS扫码模块/其他入库/Kf_OtherInBill_PDA.html | 80 +
WebTM/views/WMS扫码模块/采购入库/Kf_POStockInBill_PDA.html | 89 +
WebTM/views/WMS扫码模块/其他出库/Kf_OtherOutBill_PDA.html | 113 +-
WebTM/views/index_Mobile.html | 10
WebTM/WebTM.csproj | 1
10 files changed, 2,149 insertions(+), 218 deletions(-)
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index a651ace..dda90c1 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -250,6 +250,7 @@
<Content Include="views\WMS鎵爜妯″潡\鐢熶骇绠$悊\鐢熶骇缁勬墭鍗昞Sc_PackUnionBill_PDA.html" />
<Content Include="views\WMS鎵爜妯″潡\鐢熶骇璋冩嫧\璋冩嫧鎹㈡墭\Kf_MoveStockBill_HuanTuo_PDA.html" />
<Content Include="views\WMS鎵爜妯″潡\鐢熶骇璋冩嫧\璋冩嫧鎹㈡墭\Kf_MoveStockBillList_HuanTuo_PDA.html" />
+ <Content Include="views\WMS鎵爜妯″潡\閿�鍞嚭搴揬Kf_SellOutBill_PDA.html" />
<Content Include="views\WMS鎵爜妯″潡\閿�鍞嚭搴揬Kf_SellOutBackBillList_PDA.html" />
<Content Include="views\WMS鎵爜妯″潡\閿�鍞嚭搴揬Kf_SellOutBillList_PDA.html" />
<Content Include="views\WMS鎵爜妯″潡\閿�鍞嚭搴揬Kf_SellOutBillList_QiaoYi_PDA.html" />
diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index 32afde8..6b35d37 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -1,7 +1,7 @@
锘�<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <NameOfLastUsedPublishProfile>D:\缃戠珯鍙戝竷\鍚庣浠g爜\MES-WEB-TM\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
+ <NameOfLastUsedPublishProfile>D:\GIT浠撳簱\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
<ProjectView>ProjectFiles</ProjectView>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
@@ -16,7 +16,7 @@
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
- <StartPageUrl>views/楠屾敹鍏ュ簱/澶栬喘鍏ュ簱/Add_Edit_Kf_POStockInBillList.html</StartPageUrl>
+ <StartPageUrl>views/user/login.html</StartPageUrl>
<StartAction>SpecificPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging>
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_PDA.html"
index 26524f0..a27f0e5 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_PDA.html"
@@ -105,7 +105,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍒跺崟浜�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -113,7 +113,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁鍙�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -121,7 +121,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -230,7 +230,7 @@
<label class="layui-form-label" style="width:30px;padding-left:0px;">缁勭粐</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
<input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input">
</div>
</div>
@@ -253,7 +253,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -263,7 +263,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鐗╂枡</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -273,7 +273,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瑙勬牸</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -283,7 +283,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鎵规</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -293,7 +293,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鍗曚綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -303,7 +303,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -313,7 +313,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瀹归噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -323,7 +323,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撳簱</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -333,7 +333,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撲綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -471,13 +471,13 @@
if (sessionStorage["HWhSPFlag"]) {
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HStockPlaceID").val(sessionStorage["HSPID"]);
$("#HStockPlaceName").val(sessionStorage["HSPName"]);
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
@@ -619,7 +619,10 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鍏ュ簱鐢宠鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HMainSourceBillType").empty();
@@ -627,19 +630,21 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
$("#HSourceBillNo").val(d.data[0].HSourceBillNo);
//闈炲婧愬崟妯″紡
if (d.data[0].HMulSourceBill == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
if (d.data[0].HDeptID != 0) {
$("#HDeptID").val(d.data[0].HDeptID);
$("#HDeptName").val(d.data[0].HDeptName);
}
+ $("#HSupID").val(d.data[0].HCusID);
+ $("#HSupName").val(d.data[0].HSupName);
$("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
}
})
@@ -660,7 +665,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg("浠撳簱鏉$爜涓虹┖锛�", {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -684,11 +689,11 @@
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
if (result.data[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_OtherInBill_PDA', '2');
@@ -702,7 +707,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg(result.Message, {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -1311,9 +1316,12 @@
$("#HMainSourceBillType").attr("disabled", "disabled");
form.render('select');
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_OtherInBill_PDA', '2');
$("#HBarCode").select();
$("#HBarCode").focus();
@@ -1459,11 +1467,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (result.data.hSPFlagField == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_OtherInBill_PDA', '2'); //璺宠浆椤电
@@ -1499,7 +1507,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鍏ュ簱鐢宠鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1507,12 +1515,15 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_OtherInBill_PDA', '3');
}
//鐗╂枡鏉$爜
@@ -1536,7 +1547,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鍏ュ簱鐢宠鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1544,12 +1555,15 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_OtherInBill_PDA', '3');
}
}
@@ -1706,11 +1720,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (obj[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
}
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html"
index 1554474..a9bbc32 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\205\266\344\273\226\345\207\272\345\272\223/Kf_OtherOutBill_PDA.html"
@@ -97,14 +97,12 @@
<div class="layui-col-xs3">
<label class="layui-form-label" style="width: 70px; padding-left: 0px;">鍏堣繘鍏堝嚭浠�</label>
</div>
- <div class="layui-col-xs9">
- <div class="layui-col-xs10">
- <input type="text" name="HFIFOWHName" id="HFIFOWHName" lay-verify="HFIFOWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
- <input type="hidden" name="HFIFOWHID" id="HFIFOWHID" lay-verify="HFIFOWHID" value="0" autocomplete="off" class="layui-input">
- </div>
- <div class="layui-col-xs2">
- <button type="button" lay-submit="" lay-filter="HFIFOWHID-BT" class="layui-btn" id="HFIFOWHID-BT">...</button>
- </div>
+ <div class="layui-col-xs7">
+ <input type="text" name="HFIFOWHName" id="HFIFOWHName" lay-verify="HFIFOWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HFIFOWHID" id="HFIFOWHID" lay-verify="HFIFOWHID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HFIFOWHID-BT" class="layui-btn" id="HFIFOWHID-BT" style="padding:0 26.5px">...</button>
</div>
</div>
<div class="layui-row">
@@ -120,7 +118,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍒跺崟浜�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -128,7 +126,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁鍙�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -136,7 +134,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -245,7 +243,7 @@
<label class="layui-form-label" style="width:30px;padding-left:0px;">缁勭粐</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
<input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input">
</div>
</div>
@@ -268,7 +266,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -278,7 +276,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鐗╂枡</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -288,7 +286,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瑙勬牸</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -298,7 +296,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鎵规</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -308,7 +306,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鍗曚綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -318,7 +316,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -328,7 +326,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瀹归噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -338,7 +336,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撳簱</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -348,7 +346,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撲綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -495,13 +493,13 @@
if (sessionStorage["HWhSPFlag"]) {
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HStockPlaceID").val(sessionStorage["HSPID"]);
$("#HStockPlaceName").val(sessionStorage["HSPName"]);
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
@@ -671,7 +669,10 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鍑哄簱鐢宠鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //瀹㈡埛涓嶅彲缂栬緫
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HMainSourceBillType").empty();
@@ -679,19 +680,21 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
$("#HSourceBillNo").val(d.data[0].HSourceBillNo);
//闈炲婧愬崟妯″紡
if (d.data[0].HMulSourceBill == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
if (d.data[0].HDeptID != 0) {
$("#HDeptID").val(d.data[0].HDeptID);
$("#HDeptName").val(d.data[0].HDeptName);
}
+ $("#HSupID").val(d.data[0].HCusID);
+ $("#HSupName").val(d.data[0].HCusName);
$("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
}
})
@@ -780,7 +783,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg("浠撳簱鏉$爜涓虹┖锛�", {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -804,11 +807,11 @@
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
if (result.data[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_OtherOutBill_PDA', '2');
@@ -822,7 +825,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg(result.Message, {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -1436,9 +1439,12 @@
$("#HMainSourceBillType").attr("disabled", "disabled");
form.render('select');
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //瀹㈡埛涓嶅彲缂栬緫
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_OtherOutBill_PDA', '2');
$("#HBarCode").select();
$("#HBarCode").focus();
@@ -1584,11 +1590,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (result.data.hSPFlagField == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_OtherOutBill_PDA', '2'); //璺宠浆椤电
@@ -1624,7 +1630,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鍑哄簱鐢宠鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1632,12 +1638,15 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //瀹㈡埛涓嶅彲缂栬緫
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_OtherOutBill_PDA', '3');
}
//鐗╂枡鏉$爜
@@ -1647,34 +1656,6 @@
}
else {
HSourceFlag = true;
- $("#HSupName").val(result.data.hSupNameField);
- $("#HSupID").val(result.data.hSupIDField);
- if (result.data.hDeptIDField != 0) {
- $("#HDeptID").val(result.data.hDeptIDField);
- $("#HDeptName").val(result.data.hDeptNameField);
- }
- $("#HSourceBillNo").val(result.data.hSourceBillNoField);
- //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
- if (result.data.hSourceBillTypeField == "1242") {
- $("#HMainSourceBillType").empty();
- var optionHtml = '';
- optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鍑哄簱鐢宠鍗�' + "</option>";
- $("#HMainSourceBillType").append(optionHtml);
- layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
- }
- else {
- $("#HMainSourceBillType").empty();
- var optionHtml = '';
- optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
- $("#HMainSourceBillType").append(optionHtml);
- layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
- }
- if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
- $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
- }
element.tabChange('tab-Kf_OtherOutBill_PDA', '3');
}
}
@@ -1845,11 +1826,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (obj[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
}
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_PDA.html"
index 2ddf4b0..a2f93d6 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_PDA.html"
@@ -96,7 +96,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍒跺崟浜�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -104,7 +104,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁鍙�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -112,7 +112,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -221,7 +221,7 @@
<label class="layui-form-label" style="width:30px;padding-left:0px;">缁勭粐</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
<input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input">
</div>
</div>
@@ -244,7 +244,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -254,7 +254,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鐗╂枡</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -264,7 +264,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瑙勬牸</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -274,7 +274,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鎵规</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -284,7 +284,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鍗曚綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -294,7 +294,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -304,7 +304,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瀹归噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -314,7 +314,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撳簱</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -324,7 +324,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撲綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -462,13 +462,13 @@
if (sessionStorage["HWhSPFlag"]) {
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HStockPlaceID").val(sessionStorage["HSPID"]);
$("#HStockPlaceName").val(sessionStorage["HSPName"]);
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
@@ -588,7 +588,10 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鏀舵枡閫氱煡鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else if (d.data[0].HSourceBillType == "1601") {
$("#HMainSourceBillType").empty();
@@ -596,7 +599,10 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '濮斿璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HMainSourceBillType").empty();
@@ -604,19 +610,21 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
$("#HSourceBillNo").val(d.data[0].HSourceBillNo);
//闈炲婧愬崟妯″紡
if (d.data[0].HMulSourceBill == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
if (d.data[0].HDeptID != 0) {
$("#HDeptID").val(d.data[0].HDeptID);
$("#HDeptName").val(d.data[0].HDeptName);
}
+ $("#HSupID").val(d.data[0].HCusID);
+ $("#HSupName").val(d.data[0].HSupName);
$("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
}
})
@@ -637,7 +645,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg("浠撳簱鏉$爜涓虹┖锛�", {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -661,11 +669,11 @@
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
if (result.data[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_EntrustInBill_PDA', '2');
@@ -679,7 +687,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg(result.Message, {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -1288,9 +1296,12 @@
$("#HMainSourceBillType").attr("disabled", "disabled");
form.render('select');
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_EntrustInBill_PDA', '2');
$("#HBarCode").select();
$("#HBarCode").focus();
@@ -1436,11 +1447,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (result.data.hSPFlagField == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_EntrustInBill_PDA', '2'); //璺宠浆椤电
@@ -1476,7 +1487,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鏀舵枡閫氱煡鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "1601") {
$("#HMainSourceBillType").empty();
@@ -1484,7 +1495,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '濮斿璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1492,12 +1503,15 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_EntrustInBill_PDA', '3');
}
//鐗╂枡鏉$爜
@@ -1521,7 +1535,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鏀舵枡閫氱煡鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "1601") {
$("#HMainSourceBillType").empty();
@@ -1529,7 +1543,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '濮斿璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1537,12 +1551,15 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_EntrustInBill_PDA', '3');
}
}
@@ -1699,11 +1716,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (obj[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
}
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html"
index 7557d7e..61ea353 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\345\205\245\345\272\223/Kf_ProductInBill_PDA.html"
@@ -98,7 +98,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍒跺崟浜�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -106,7 +106,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁鍙�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -114,7 +114,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -207,7 +207,7 @@
<label class="layui-form-label" style="width:30px;padding-left:0px;">缁勭粐</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
<input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input">
</div>
</div>
@@ -230,7 +230,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -240,7 +240,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鐗╂枡</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -250,7 +250,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瑙勬牸</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -260,7 +260,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鎵规</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -270,7 +270,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鍗曚綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -280,7 +280,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -290,7 +290,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瀹归噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -300,7 +300,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撳簱</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -310,7 +310,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撲綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -458,13 +458,13 @@
if (sessionStorage["HWhSPFlag"]) {
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HStockPlaceID").val(sessionStorage["HSPID"]);
$("#HStockPlaceName").val(sessionStorage["HSPName"]);
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
@@ -615,7 +615,7 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鐢熶骇璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (d.data[0].HSourceBillType == "3711") {
$("#HMainSourceBillType").empty();
@@ -623,7 +623,7 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鐢熶骇姹囨姤鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (d.data[0].HSourceBillType == "3714") {
$("#HMainSourceBillType").empty();
@@ -631,7 +631,7 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '宸ュ簭姹囨姤鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -639,13 +639,13 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
$("#HSourceBillNo").val(d.data[0].HSourceBillNo);
//闈炲婧愬崟妯″紡
if (d.data[0].HMulSourceBill == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
if (d.data[0].HDeptID != 0) {
@@ -672,7 +672,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg("浠撳簱鏉$爜涓虹┖锛�", {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -696,11 +696,11 @@
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
if (result.data[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_ProductInBill_PDA', '2');
@@ -714,7 +714,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg(result.Message, {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -1248,7 +1248,7 @@
$("#HMainSourceBillType").attr("disabled", "disabled");
form.render('select');
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
element.tabChange('tab-Kf_ProductInBill_PDA', '2');
@@ -1396,11 +1396,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (result.data.hSPFlagField == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_ProductInBill_PDA', '2'); //璺宠浆椤电
@@ -1434,7 +1434,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鐢熶骇璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "3711") {
$("#HMainSourceBillType").empty();
@@ -1442,7 +1442,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鐢熶骇姹囨姤鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "3714") {
$("#HMainSourceBillType").empty();
@@ -1450,7 +1450,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '宸ュ簭姹囨姤鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1458,10 +1458,10 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
element.tabChange('tab-Kf_ProductInBill_PDA', '3');
@@ -1485,7 +1485,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鐢熶骇璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "3711") {
$("#HMainSourceBillType").empty();
@@ -1493,7 +1493,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鐢熶骇姹囨姤鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "3714") {
$("#HMainSourceBillType").empty();
@@ -1501,7 +1501,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '宸ュ簭姹囨姤鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1509,10 +1509,10 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
element.tabChange('tab-Kf_ProductInBill_PDA', '3');
@@ -1675,11 +1675,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (obj[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
}
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_PDA.html"
index 610845d..d68fd9d 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\207\207\350\264\255\345\205\245\345\272\223/Kf_POStockInBill_PDA.html"
@@ -96,7 +96,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍒跺崟浜�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -104,7 +104,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁鍙�</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
<div class="layui-row">
@@ -112,7 +112,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
</div>
<div class="layui-col-xs9">
- <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -221,7 +221,7 @@
<label class="layui-form-label" style="width:30px;padding-left:0px;">缁勭粐</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
<input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input">
</div>
</div>
@@ -244,7 +244,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -254,7 +254,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鐗╂枡</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -264,7 +264,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瑙勬牸</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -274,7 +274,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鎵规</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -284,7 +284,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鍗曚綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -294,7 +294,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -304,7 +304,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">瀹归噺</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -314,7 +314,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撳簱</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -324,7 +324,7 @@
<label class="layui-form-label" style="width:40px;padding-left:0px;">浠撲綅</label>
</div>
<div class="layui-col-xs10">
- <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
+ <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
</div>
</div>
</div>
@@ -462,13 +462,13 @@
if (sessionStorage["HWhSPFlag"]) {
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HStockPlaceID").val(sessionStorage["HSPID"]);
$("#HStockPlaceName").val(sessionStorage["HSPName"]);
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
@@ -588,7 +588,10 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鏀舵枡閫氱煡鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else if (d.data[0].HSourceBillType == "1102") {
$("#HMainSourceBillType").empty();
@@ -596,7 +599,10 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '閲囪喘璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
$("#HMainSourceBillType").empty();
@@ -604,19 +610,21 @@
optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
$("#HSourceBillNo").val(d.data[0].HSourceBillNo);
//闈炲婧愬崟妯″紡
if (d.data[0].HMulSourceBill == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
if (d.data[0].HDeptID != 0) {
$("#HDeptID").val(d.data[0].HDeptID);
$("#HDeptName").val(d.data[0].HDeptName);
}
+ $("#HSupID").val(d.data[0].HCusID);
+ $("#HSupName").val(d.data[0].HSupName);
$("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
}
})
@@ -637,7 +645,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg("浠撳簱鏉$爜涓虹┖锛�", {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -661,11 +669,11 @@
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
if (result.data[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_POStockInBill_PDA', '2');
@@ -679,7 +687,7 @@
$("#HWHName").val("");
$("#HStockPlaceID").val("0");
$("#HStockPlaceName").val("");
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
layer.msg(result.Message, {
icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
@@ -1288,9 +1296,12 @@
$("#HMainSourceBillType").attr("disabled", "disabled");
form.render('select');
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_POStockInBill_PDA', '2');
$("#HBarCode").select();
$("#HBarCode").focus();
@@ -1436,11 +1447,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (result.data.hSPFlagField == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
element.tabChange('tab-Kf_POStockInBill_PDA', '2'); //璺宠浆椤电
@@ -1476,7 +1487,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鏀舵枡閫氱煡鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "1102") {
$("#HMainSourceBillType").empty();
@@ -1484,7 +1495,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '閲囪喘璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1492,12 +1503,15 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_POStockInBill_PDA', '3');
}
//鐗╂枡鏉$爜
@@ -1521,7 +1535,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鏀舵枡閫氱煡鍗�' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else if (result.data.hSourceBillTypeField == "1102") {
$("#HMainSourceBillType").empty();
@@ -1529,7 +1543,7 @@
optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '閲囪喘璁㈠崟' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
else {
$("#HMainSourceBillType").empty();
@@ -1537,12 +1551,15 @@
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
layui.form.render('select');
- $("#HMainSourceBillType").attr("readonly", "readonly");
+ $("#HMainSourceBillType").attr("disabled", "disabled");
}
if (result.data.hMulSourceFlagField == 0) {
- $("#HSourceBillNo").attr("readonly", "readonly");
+ $("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
+ //渚涘簲鍟嗕笉鍙紪杈�
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
element.tabChange('tab-Kf_POStockInBill_PDA', '3');
}
}
@@ -1699,11 +1716,11 @@
$("#HStockPlaceName").val("");
$("#HStockPlaceID").val("0");
if (obj[0].HSPFlag == 0) {
- $("#HStockPlaceName").attr("readonly", "readonly");
+ $("#HStockPlaceName").attr("disabled", "disabled");
$('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
}
else {
- $("#HStockPlaceName").removeAttr("readonly");
+ $("#HStockPlaceName").removeAttr("disabled");
$('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
}
}
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBillList_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBillList_PDA.html"
index 53888bc..3665ae8 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBillList_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBillList_PDA.html"
@@ -236,8 +236,8 @@
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
- //, content: ['../../WMS鎵爜妯″潡/閿�鍞嚭搴�/Kf_SellOutBill_PDA.html?OperationType=2&HInterID=' + data[0].HInterID, 'yes']
- , content: ['../../棰嗘枡鍙戣揣/閿�鍞嚭搴�/Kf_SellOutBill_Fast.html?OperationType=2&HInterID=' + data[0].HInterID, 'yes']
+ , content: ['../../WMS鎵爜妯″潡/閿�鍞嚭搴�/Kf_SellOutBill_PDA.html?OperationType=2&HInterID=' + data[0].HInterID, 'yes']
+ //, content: ['../../棰嗘枡鍙戣揣/閿�鍞嚭搴�/Kf_SellOutBill_Fast.html?OperationType=2&HInterID=' + data[0].HInterID, 'yes']
, resize: false
, cancel: function () {
$(".layui-btn").removeClass("layui-btn-disabled");
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_PDA.html"
new file mode 100644
index 0000000..78ec203
--- /dev/null
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\351\224\200\345\224\256\345\207\272\345\272\223/Kf_SellOutBill_PDA.html"
@@ -0,0 +1,1899 @@
+锘�<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>閿�鍞嚭搴撳崟</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <!--寮曠敤layui鏍峰紡鏂囦欢-->
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+ <!--寮曠敤layui js鏂囦欢-->
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/Scripts/json2.js"></script>
+ <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
+ <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+ <script src="../../../layuiadmin/PubCustom.js"></script>
+ <style>
+ .layui-col-xs8 {
+ width: 55.666667%;
+ }
+ </style>
+</head>
+<body>
+ <div class="layui-fluid" style="padding:0">
+ <div class="layui-card" style="padding: 1px">
+ <div class="layui-card-body" style="padding: 0px; height:800px;">
+ <form class="layui-form" action="" lay-filter="component-form-group">
+ <div style="background-color:#0085E8;">
+ <span style="color: white;"><i class="layui-icon layui-icon-form"></i>閿�鍞嚭搴撳崟</span>
+ </div>
+ <div class="layui-form-item" style="padding:15px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width: 30px;padding-left: 0px;">鏉$爜</label>
+ </div>
+ <div class="layui-col-xs7">
+ <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HBarCode-BT" class="layui-btn layui_btn_sm" id="HBarCode-BT">纭畾</button>
+ </div>
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">鏁伴噺</label>
+ </div>
+ <div class="layui-col-xs7">
+ <input type="number" name="HQty" id="HQty" lay-verify="HQty" onkeyup="if(!this.value.match(/^[\+\-]?\d*?\.?\d*?$/)){if(!this.t_value>0){this.value=''}else{this.value=this.t_value;}}else this.t_value=this.value;if(this.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?)?$/))this.o_value=this.value" autocomplete="off" class="layui-input" onfocus="this.select();">
+ </div>
+ </div>
+ </div>
+ <div class="layui-tab layui-col-xs12" style="margin-top:5px;" lay-filter="tab-Kf_SellOutBill_PDA">
+ <ul class="layui-tab-title" lay-filter="tab-all">
+ <li lay-id="1" style="padding:1px;">閫夋嫨婧愬崟</li>
+ <li lay-id="2" style="padding:1px;">琛ㄥご淇℃伅</li>
+ <li lay-id="3" style="padding:1px;">鐗╂枡淇℃伅</li>
+ <li lay-id="4" style="padding:1px;">鏉$爜淇℃伅</li>
+ <li lay-id="5" style="padding:1px;">涓嬫灦淇℃伅</li>
+ </ul>
+ <div class="layui-tab-content">
+ <!--閫夋嫨婧愬崟-->
+ <div class="layui-tab-item">
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:60px;padding-left:0px;">婧愬崟绫诲瀷</label>
+ </div>
+ <div class="layui-col-xs9">
+ <select name="HMainSourceBillType" id="HMainSourceBillType">
+ <option value="1402">鍙戣揣閫氱煡鍗�</option>
+ <option value="1401">閿�鍞鍗�</option>
+ <option value="-1">鎵嬪伐褰曞叆</option>
+ </select>
+ </div>
+ </div>
+ <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-xs7">
+ <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT">纭畾</button>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width: 70px; padding-left: 0px;">鍏堣繘鍏堝嚭浠�</label>
+ </div>
+ <div class="layui-col-xs7">
+ <input type="text" name="HFIFOWHName" id="HFIFOWHName" lay-verify="HFIFOWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HFIFOWHID" id="HFIFOWHID" lay-verify="HFIFOWHID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HFIFOWHID-BT" class="layui-btn" id="HFIFOWHID-BT" style="padding:0 26.5px">...</button>
+ </div>
+ </div>
+ <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-xs9">
+ <input name="HDate" id="HDate" autocomplete="off" class="layui-input">
+ </div>
+ </div>
+ <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-xs9">
+ <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ <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-xs9">
+ <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
+ </div>
+ <div class="layui-col-xs9">
+ <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!--琛ㄥご淇℃伅-->
+ <div class="layui-tab-item">
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">浠撳簱</label>
+ </div>
+ <div class="layui-col-xs10">
+ <div class="layui-col-xs10">
+ <input type="text" name="HWHName" id="HWHName" lay-verify="HWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HWHID-BT" class="layui-btn" id="HWHID-BT">...</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">浠撲綅</label>
+ </div>
+ <div class="layui-col-xs10">
+ <div class="layui-col-xs10">
+ <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HSpID-BT" class="layui-btn" id="HSpID-BT">...</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">淇濈</label>
+ </div>
+ <div class="layui-col-xs10">
+ <div class="layui-col-xs10">
+ <input type="text" name="HKeeperName" id="HKeeperName" lay-verify="HKeeperName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HKeeperID" id="HKeeperID" lay-verify="HKeeperID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HKeeperID-BT" class="layui-btn" id="HKeeperID-BT">...</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">楠屾敹</label>
+ </div>
+ <div class="layui-col-xs10">
+ <div class="layui-col-xs10">
+ <input type="text" name="HSecManagerName" id="HSecManagerName" lay-verify="HSecManagerName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HSecManagerID" id="HSecManagerID" lay-verify="HSecManagerID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HSecManagerID-BT" class="layui-btn" id="HSecManagerID-BT">...</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">閮ㄩ棬</label>
+ </div>
+ <div class="layui-col-xs10">
+ <div class="layui-col-xs10">
+ <input type="text" name="HDeptName" id="HDeptName" lay-verify="HDeptName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HDeptID" id="HDeptID" lay-verify="HDeptID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HDeptID-BT" class="layui-btn" id="HDeptID-BT">...</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">瀹㈡埛</label>
+ </div>
+ <div class="layui-col-xs10">
+ <div class="layui-col-xs10">
+ <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+ <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ <div class="layui-col-xs2">
+ <button type="button" lay-submit="" lay-filter="HSupID-BT" class="layui-btn" id="HSupID-BT">...</button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:30px;padding-left:0px;">缁勭粐</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ <input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input">
+ </div>
+ </div>
+ </div>
+ </div>
+ <!--鐗╂枡淇℃伅-->
+ <div class="layui-tab-item">
+ <div class="layui-row">
+ <div class="layui-col-xs12">
+ <div class="layui-form-item" style="padding:0px;margin:0px"></div>
+ <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
+ </div>
+ </div>
+ </div>
+ <!--鏉$爜淇℃伅-->
+ <div class="layui-tab-item">
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HBarCode_B" id="HBarCode_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">鐗╂枡</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HMaterName_B" id="HMaterName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">瑙勬牸</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HMaterModel_B" id="HMaterModel_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">鎵规</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HBatchNo_B" id="HBatchNo_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">鍗曚綅</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HUnitName_B" id="HUnitName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HQty_B" id="HQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">瀹归噺</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HTMQty_B" id="HTMQty_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding: 0px; margin: 0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">浠撳簱</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ <div class="layui-form-item" style="padding:0px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs2">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">浠撲綅</label>
+ </div>
+ <div class="layui-col-xs10">
+ <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!--涓嬫灦淇℃伅-->
+ <div class="layui-tab-item">
+ <div class="layui-row">
+ <div class="layui-col-xs12">
+ <div class="layui-form-item" style="padding:0px;margin:0px"></div>
+ <table class="layui-hide" id="FIFOList-table" lay-filter="FIFOList-table"></table>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
+ <button type="button" lay-submit="" lay-filter="cmdSaver" class="layui-btn" id="cmdSaver">鎻愪氦</button>
+ <button type="button" lay-submit="" lay-filter="cmdModify" class="layui-btn" id="cmdModify">缂栬緫</button>
+ <button type="button" lay-submit="" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">鍒犻櫎</button>
+ <button type="button" lay-submit="" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">閫�鍑�</button>
+ </div>
+ </div>
+
+ <!--闅愯棌瀛楁-->
+ <input type="hidden" name="HBillType" id="HBillType">
+ <input type="hidden" name="HBillerID" id="HBillerID">
+ <input type="hidden" name="HRedBlueFlag" id="HRedBlueFlag">
+ <!--澶辫触鎻愮ず闊�-->
+ <div id="" style="display:none;">
+ <audio id="cs" hidden controls>
+ <source src="../../video/jingbao.wav" type="audio/ogg">
+ </audio>
+ </div>
+ <!--鎴愬姛鎻愮ず闊�-->
+ <div id="" style="display:none;">
+ <audio id="cs2" hidden controls>
+ <source src="../../video/success.wav" type="audio/ogg">
+ </audio>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ <script>
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index' //涓诲叆鍙fā鍧�
+ }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
+
+ //#region 鍏叡鍙橀噺
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , laydate = layui.laydate
+ , element = layui.element;
+ var HInterID = $('#HInterID').val()
+ var HBillNo = $('#HBillNo').val()
+ var HBillType = '1205'
+ var HRedBlueFlag = false
+ var HMaker = sessionStorage["HUserName"]
+ var HBillerID = sessionStorage["HBillerID"]
+ var HStockOrgID = sessionStorage["OrganizationID"] //缁勭粐ID
+ var HSourceFlag = false //鏄惁宸叉壂鐮佹爣蹇�
+ var OperationType = 1 //鎿嶄綔绫诲瀷锛�1鏂板銆�2浠庣紦瀛樺垪琛ㄤ腑杩斿洖锛�
+ var listOption = [];
+ var FIFOListOption = [];
+ var columns = "";
+ var HModName = "Kf_SellOutBill_PDA";
+ var ModRightName = "CE_SellOut"; //妯″潡鏉冮檺鍙傛暟
+ var titleData = []; //涓嶉渶瑕佹樉绀虹殑瀛楁
+
+ //#endregion
+
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage.login != "login") {
+ layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+ icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+ }, function () { window.location.href = "../../user/login_pda.html"; });
+ }
+
+ //#region 鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
+
+ //鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
+ CheckModRight();
+
+ function CheckModRight() {
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/CheckModRight_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "ModRightName": ModRightName, "HUserName": HMaker },
+ success: function (d) {
+ if (d.count == 1) {
+ }
+ else {
+ layer.msg(d.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () { parent.location.href = "../../../views/index_Mobile.html"; });
+ }
+ }
+ });
+ layer.closeAll("loading");
+ }
+ //#endregion
+
+ //澶辫触鎻愮ず闊�
+ function playSound() {
+ console.log("playSound");
+ var audio = document.getElementById("cs");
+ audio.play();
+ }
+ //鎴愬姛鎻愮ず闊�
+ function playSound_OK() {
+ console.log("playSound_OK");
+ var audio = document.getElementById("cs2");
+ audio.play();
+ }
+
+ //#region 鍒濆鍖栫晫闈�
+
+ set_ClearBill();
+
+ function set_ClearBill() {
+ //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇 榛樿浠撳簱銆侀儴闂ㄣ�侀獙鏀躲�佷繚绠°�佺粍缁囩瓑锛� new
+ $("#HWHID").val(sessionStorage["HWHID"]);
+ $("#HWHName").val(sessionStorage["HWHName"]);
+ $("#HDeptID").val(sessionStorage["HDeptID"]);
+ $("#HDeptName").val(sessionStorage["HDept"]);
+ $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
+ $("#HSecManagerName").val(sessionStorage["HSecManager"]);
+ $("#HKeeperID").val(sessionStorage["HKeeperID"]);
+ $("#HKeeperName").val(sessionStorage["HKeeper"]);
+ $("#HMaker").val(sessionStorage["HUserName"]);
+ $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
+ $("#HBillerID").val(sessionStorage["HBillerID"]);
+ $("#HStockOrgID").val(sessionStorage["OrganizationID"]);
+ $("#HStockOrgName").val(sessionStorage["Organization"]);
+ $("#HBillType").val("1205");
+ $("#HRedBlueFlag").val("false");
+ if (sessionStorage["HWhSPFlag"]) {
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceName").attr("disabled", "disabled");
+ $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ else {
+ $("#HStockPlaceID").val(sessionStorage["HSPID"]);
+ $("#HStockPlaceName").val(sessionStorage["HSPName"]);
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ }
+
+ //榛樿鏄剧ず椤甸潰
+ element.tabChange('tab-Kf_SellOutBill_PDA', '1');
+ set_InitDate(); //鍒濆鍖栬〃鍗曟椂闂�
+ set_InitGrid(); //鍒濆鍖栬〃鏍�
+
+ var data = [];
+ listOption.cols = [[
+ { field: '鏁伴噺', title: '鏁伴噺', width: 100 }
+ , { field: '婧愬崟鏁伴噺', title: '婧愬崟鏁伴噺', width: 100 }
+ , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 100 }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 100 }
+ , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
+ , { field: '杈呭姪灞炴��', title: '杈呭姪灞炴��', width: 100 }
+ , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 100 }
+ , { field: '鏉$爜涓暟', title: '鏉$爜涓暟', width: 100 }
+ ]];
+ listOption.data = data;
+ table.render(listOption);
+ FIFOListOption.data = data;
+ table.render(FIFOListOption);
+
+ //鍏夋爣榛樿鍦ㄦ潯鐮佷綅缃笂
+ var pFocus = $("#HBarCode");
+ pFocus.select();
+ pFocus.focus(); //鑾峰彇鍏夋爣
+ }
+
+ //鍒濆鍖栬〃鍗曟椂闂存彃浠�
+ function set_InitDate() {
+ //甯歌鐢ㄦ硶
+ laydate.render({
+ elem: '#HDate'
+ });
+ }
+ //鍒濆鍖栬〃鏍�
+ function set_InitGrid() {
+ listOption = {
+ elem: '#wl-table'
+ //, toolbar: '#toolbarDemo'
+ , totalRow: true
+ , height: 'full-60'
+ , cellMinWidth: 90
+ , limit: 50
+ };
+
+ //涓嬫灦淇℃伅
+ FIFOListOption = {
+ elem: '#FIFOList-table'
+ //, toolbar: '#toolbarDemo'
+ , cellMinWidth: 90
+ , limit: 3000
+ , totalRow: true
+ , cols: [[
+ { field: 'HQty', title: '鏁伴噺', width: 80, totalRow: true }
+ , { field: 'HQtyMust', title: '涓嬫灦鏁伴噺', width: 90 }
+ , { field: 'HWhName', title: '浠撳簱', width: 150 }
+ , { field: 'HSPName', title: '浠撲綅', width: 150 }
+ , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+ , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+ , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+ , { field: 'HMaterID', title: 'HMaterID', width: 150, hide: true }
+ , { field: 'HBatchNo', title: '鎵瑰彿', width: 150 }
+ , { field: 'HAuxPropName', title: '杈呭姪灞炴��', width: 150 }
+ , { field: 'HAuxPropID', title: 'HAuxPropID', width: 150, hide: true }
+ ]]
+ , height: 500
+ , done: function () {
+ layer.closeAll("loading");
+ }
+ }
+ }
+
+ //#region 浠庣紦瀛樺垪琛ㄤ腑杩斿洖淇℃伅
+ function getUrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
+ var params = getUrlVars();
+ var OperationType = params[params[0]]; //浠庣紦瀛樺垪琛ㄤ腑杩斿洖鏁版嵁绫诲瀷 1鏂板 2浠庣紦瀛樺垪琛ㄤ腑杩斿洖
+ var HInterID_Temp = params[params[1]]; //浠庣紦瀛樺垪琛ㄤ腑杩斿洖鍗曟嵁ID
+
+ //#endregion
+
+ //鍒ゆ柇鏄惁鏂板锛岃幏鍙栨渶澶у崟鎹彿
+ if (HInterID != 0) {
+ HSourceFlag = true;
+ }
+ //浠庣紦瀛樺垪琛ㄧ紪杈戝姛鑳借烦杞嚦鍗曟嵁妯″潡
+ else if (OperationType == 2) {
+ RoadBillMain(HInterID_Temp);
+ $("#HBarCode").select();
+ $("#HBarCode").focus(); //鑾峰彇鍏夋爣
+ //鏄剧ず琛ㄤ綋鏄庣粏
+ DisBillEntryList();
+ HSourceFlag = true;
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ }
+ else {
+ //鑾峰彇鏈�澶у崟鎹甀D銆佸崟鎹彿
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetMaxBillNoAndID_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBillType": HBillType },
+ success: function (d) {
+ if (d.count == 1) {
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ HInterID = $('#HInterID').val()
+ HBillNo = $('#HBillNo').val()
+ }
+ else {
+ layer.msg(d.Message, { icon: 0, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ }
+ });
+ $("#HSourceBillNo").select();
+ $("#HSourceBillNo").focus(); //鑾峰彇鍏夋爣
+ HSourceFlag = false;
+ }
+
+ function RoadBillMain(HInterID_Temp)//鍔犺浇琛ㄥご
+ {
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + '/WEBSController/GetSourceBill_Temp_Json',
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HInterID": HInterID_Temp, "HBillType": HBillType },
+ success: function (d) {
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ HInterID = $('#HInterID').val()
+ HBillNo = $('#HBillNo').val()
+ //鑾峰彇婧愬崟绫诲瀷
+ if (d.data[0].HSourceBillType == "1402") {
+ $("#HMainSourceBillType").empty();
+ var optionHtml = '';
+ optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鍙戣揣閫氱煡鍗�' + "</option>";
+ $("#HMainSourceBillType").append(optionHtml);
+ layui.form.render('select');
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //瀹㈡埛涓嶅彲缂栬緫
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ else if (d.data[0].HSourceBillType == "1401") {
+ $("#HMainSourceBillType").empty();
+ var optionHtml = '';
+ optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '閿�鍞鍗�' + "</option>";
+ $("#HMainSourceBillType").append(optionHtml);
+ layui.form.render('select');
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ //瀹㈡埛涓嶅彲缂栬緫
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ else {
+ $("#HMainSourceBillType").empty();
+ var optionHtml = '';
+ optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '鎵嬪伐褰曞叆' + "</option>";
+ $("#HMainSourceBillType").append(optionHtml);
+ layui.form.render('select');
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ }
+
+ $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
+ //闈炲婧愬崟妯″紡
+ if (d.data[0].HMulSourceBill == 0) {
+ $("#HSourceBillNo").attr("disabled", "disabled");
+ $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ if (d.data[0].HDeptID != 0) {
+ $("#HDeptID").val(d.data[0].HDeptID);
+ $("#HDeptName").val(d.data[0].HDeptName);
+ }
+ $("#HSupID").val(d.data[0].HCusID);
+ $("#HSupName").val(d.data[0].HCusName);
+ $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
+ }
+ })
+ }
+
+ //#endregion
+
+ //#region 鍩虹璧勬枡閫夋嫨
+
+ //#region 鍏堣繘鍏堝嚭浠撳簱
+ //鎵弿鍏堣繘鍏堝嚭浠撳簱鏉$爜
+ $('#HFIFOWHName').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ var HFIFOWHName = $('#HFIFOWHName').val()
+ if (HFIFOWHName == '') {
+ playSound();
+ $("#HFIFOWHID").val("0");
+ $("#HFIFOWHName").val("");
+ layer.msg("鍏堣繘鍏堝嚭浠撳簱鏉$爜涓虹┖锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HFIFOWHName").select();
+ $("#HFIFOWHName").focus();
+ });
+ return;
+ }
+
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetWarehouse_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBarCode": HFIFOWHName, "HStockOrgID": HStockOrgID },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HFIFOWHID").val(result.data[0].HItemID);
+ $("#HFIFOWHName").val(result.data[0].HName);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '1');
+ //鍏夋爣鏄剧ず鍒版潯鐮佷笂
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ }
+ else {
+ playSound();
+ $("#HFIFOWHID").val("0");
+ $("#HFIFOWHName").val("");
+ layer.msg(result.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HFIFOWHName").select();
+ $("#HFIFOWHName").focus();
+ });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //鍏堣繘鍏堝嚭浠撳簱鎸夐挳
+ form.on('submit(HFIFOWHID-BT)', function () {
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '浠撳簱鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_WarehouseListNew.html?Type=HFIFOWHID&HOrgID=' + HStockOrgID + '', 'yes']
+ , resize: false
+ , cancel: function () {
+ }
+ })
+ });
+
+ //#endregion
+
+ //#region 浠撳簱
+ //鎵弿浠撳簱鏉$爜
+ $('#HWHName').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ var HWHName = $('#HWHName').val()
+ if (HWHName == '') {
+ playSound();
+ $("#HWHID").val("0");
+ $("#HWHName").val("");
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ layer.msg("浠撳簱鏉$爜涓虹┖锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HWHName").select();
+ $("#HWHName").focus();
+ });
+ return;
+ }
+
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetWarehouse_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBarCode": HWHName, "HStockOrgID": HStockOrgID },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HWHID").val(result.data[0].HItemID);
+ $("#HWHName").val(result.data[0].HName);
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ if (result.data[0].HSPFlag == 0) {
+ $("#HStockPlaceName").attr("disabled", "disabled");
+ $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ else {
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ }
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ //鍏夋爣鏄剧ず鍒版潯鐮佷笂
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ }
+ else {
+ playSound();
+ $("#HWHID").val("0");
+ $("#HWHName").val("");
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ layer.msg(result.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HWHName").select();
+ $("#HWHName").focus();
+ });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //浠撳簱鎸夐挳
+ form.on('submit(HWHID-BT)', function () {
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '浠撳簱鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_WarehouseListNew.html?Type=HWHID&HOrgID=' + HStockOrgID + '', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //#endregion
+
+ //#region 浠撲綅
+ //鎵弿浠撲綅鏉$爜
+ $('#HStockPlaceName').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ //浠撳簱鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
+ if ($("#HWHName").val() == '') {
+ $("#HWHID").val("0");
+ }
+ var sHWHID = $("#HWHID").val()
+ var HStockPlaceName = $('#HStockPlaceName').val()
+ if (HStockPlaceName == '') {
+ playSound();
+ $("#HWHID").val("0");
+ $("#HWHName").val("");
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ layer.msg("浠撲綅鏉$爜涓虹┖锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HStockPlaceName").select();
+ $("#HStockPlaceName").focus();
+ });
+ return;
+ }
+
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetStockPlace_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBarCode": HStockPlaceName, "HWhID": sHWHID, "HStockOrgID": HStockOrgID },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HStockPlaceName").val(result.data[0].HName);
+ $("#HStockPlaceID").val(result.data[0].HItemID);
+ $("#HWHName").val(result.data[0].HWhName);
+ $("#HWHID").val(result.data[0].HWHID);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ //鍏夋爣鏄剧ず鍒版潯鐮佷笂
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ }
+ else {
+ playSound();
+ $("#HWHID").val("0");
+ $("#HWHName").val("");
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ layer.msg(result.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HStockPlaceName").select();
+ $("#HStockPlaceName").focus();
+ });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //浠撲綅鎸夐挳
+ form.on('submit(HSpID-BT)', function () {
+ //浠撳簱鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
+ if ($("#HWHName").val() == '') {
+ $("#HWHID").val("0");
+ }
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '浠撲綅鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_StockPlaceListNew.html?HWhID=' + $("#HWHID").val() + '&Type=HSpID&HOrgID=' + HStockOrgID + '', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //#endregion
+
+ //#region 淇濈鍛�
+ //鎵弿淇濈鍛樻潯鐮�
+ $('#HKeeperName').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ var HKeeperName = $('#HKeeperName').val()
+ if (HKeeperName == '') {
+ playSound();
+ $("#HKeeperID").val("0");
+ $("#HKeeperName").val("");
+ layer.msg("淇濈鍛樻潯鐮佷负绌猴紒", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HKeeperName").select();
+ $("#HKeeperName").focus();
+ });
+ return;
+ }
+
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetEmployee_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBarCode": HKeeperName },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HKeeperID").val(result.data[0].HItemID);
+ $("#HKeeperName").val(result.data[0].HName);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ //鍏夋爣鏄剧ず鍒版潯鐮佷笂
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ }
+ else {
+ playSound();
+ $("#HKeeperID").val("0");
+ $("#HKeeperName").val("");
+ layer.msg(result.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HKeeperName").select();
+ $("#HKeeperName").focus();
+ });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //淇濈鍛樻寜閽�
+ form.on('submit(HKeeperID-BT)', function () {
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //#endregion
+
+ //#region 楠屾敹鍛�
+ //鎵弿楠屾敹鍛樻潯鐮�
+ $('#HSecManagerName').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ var HSecManagerName = $('#HSecManagerName').val()
+ if (HSecManagerName == '') {
+ playSound();
+ $("#HSecManagerID").val("0");
+ $("#HSecManagerName").val("");
+ layer.msg("楠屾敹鍛樻潯鐮佷负绌猴紒", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HSecManagerName").select();
+ $("#HSecManagerName").focus();
+ });
+ return;
+ }
+
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetEmployee_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBarCode": HSecManagerName },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HSecManagerID").val(result.data[0].HItemID);
+ $("#HSecManagerName").val(result.data[0].HName);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ //鍏夋爣鏄剧ず鍒版潯鐮佷笂
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ }
+ else {
+ playSound();
+ $("#HSecManagerID").val("0");
+ $("#HSecManagerName").val("");
+ layer.msg(result.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HSecManagerName").select();
+ $("#HSecManagerName").focus();
+ });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //楠屾敹鍛樻寜閽�
+ form.on('submit(HSecManagerID-BT)', function () {
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //#endregion
+
+ //#region 閮ㄩ棬
+ //鎵弿閮ㄩ棬鏉$爜
+ $('#HDeptName').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ var HDeptName = $('#HDeptName').val()
+ if (HDeptName == '') {
+ playSound();
+ $("#HDeptID").val("0");
+ $("#HDeptName").val("");
+ layer.msg("閮ㄩ棬鏉$爜涓虹┖锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HDeptName").select();
+ $("#HDeptName").focus();
+ });
+ return;
+ }
+
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetDepartment_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBarCode": HDeptName },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HDeptID").val(result.data[0].HItemID);
+ $("#HDeptName").val(result.data[0].HName);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ //鍏夋爣鏄剧ず鍒版潯鐮佷笂
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ }
+ else {
+ playSound();
+ $("#HDeptID").val("0");
+ $("#HDeptName").val("");
+ layer.msg(result.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HDeptName").select();
+ $("#HDeptName").focus();
+ });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //閮ㄩ棬鎸夐挳
+ form.on('submit(HDeptID-BT)', function () {
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '閮ㄩ棬鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //#endregion
+
+ //#region 瀹㈡埛
+ //鎵弿瀹㈡埛鏉$爜
+ $('#HSupName').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ var HSupName = $('#HSupName').val()
+ if (HSupName == '') {
+ playSound();
+ $("#HSupID").val("0");
+ $("#HSupName").val("");
+ layer.msg("瀹㈡埛鏉$爜涓虹┖锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HSupName").select();
+ $("#HSupName").focus();
+ });
+ return;
+ }
+
+ layer.load(3);
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/GetCustomer_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HBarCode": HSupName, "HStockOrgID": HStockOrgID },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HSupID").val(result.data[0].HItemID);
+ $("#HSupName").val(result.data[0].HName);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ //鍏夋爣鏄剧ず鍒版潯鐮佷笂
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ }
+ else {
+ playSound();
+ $("#HSupID").val("0");
+ $("#HSupName").val("");
+ layer.msg(result.Message, {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HSupName").select();
+ $("#HSupName").focus();
+ });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //瀹㈡埛鎸夐挳
+ form.on('submit(HSupID-BT)', function () {
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '瀹㈡埛鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_CustomerListNew.html?HStockOrgID=' + HStockOrgID + '', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //#endregion
+
+ //#endregion
+
+
+ //#region 鍔熻兘鎺т欢
+
+ //#region 鎻愪氦
+ form.on('submit(cmdSaver)', function (data) {
+ //浠撳簱銆佷粨浣嶃�佷繚绠°�侀獙鏀躲�侀儴闂ㄣ�佸鎴锋枃鏈涓虹┖鏃讹紝娓呯┖瀵瑰簲ID
+ if ($("#HWHName").val() == '') {
+ $("#HWHID").val("0");
+ data.field.HWHID = $('#HWHID').val()
+ }
+ if ($("#HStockPlaceName").val() == '') {
+ $("#HStockPlaceID").val("0");
+ data.field.HStockPlaceID = $('#HStockPlaceID').val()
+ }
+ if ($("#HKeeperName").val() == '') {
+ $("#HKeeperID").val("0");
+ data.field.HKeeperID = $('#HKeeperID').val()
+ }
+ if ($("#HSecManagerName").val() == '') {
+ $("#HSecManagerID").val("0");
+ data.field.HSecManagerID = $('#HSecManagerID').val()
+ }
+ if ($("#HDeptName").val() == '') {
+ $("#HDeptID").val("0");
+ data.field.HDeptID = $('#HDeptID').val()
+ }
+ if ($("#HSupName").val() == '') {
+ $("#HSupID").val("0");
+ data.field.HSupID = $('#HSupID').val()
+ }
+
+ var sMainStr = JSON.stringify(data.field);
+ var sSubStr = table.cache['wl-table'];
+ if (AllowLoadData(sSubStr) != false)//闈炵┖楠岃瘉
+ {
+ layer.load(3);
+ $.ajax(
+ {
+ type: "POST",
+ url: GetWEBURL() + "/WEBSController/set_SaveSellOutBill_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "oMain": sMainStr },
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+ layer.confirm(data.Message, {
+ icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板','鍏抽棴'],
+ btn2: function () {
+ if (OperationType == 2) {
+ parent.location.href = "../../WMS鎵爜妯″潡/閿�鍞嚭搴�/Kf_SellOutBillList_PDA.html";
+ }
+ else {
+ parent.location.href = "../../../views/index_Mobile.html";
+ }
+ }//鍏抽棴
+ }
+ , function () {
+ location.replace('Kf_SellOutBill_PDA.html?OperationType=1&HInterID=0');
+ });//鏂板
+ }
+ else {
+ layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ },
+ error: function (err) {
+ layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ });
+ layer.closeAll("loading");
+ return;
+ }
+ });
+
+ //#endregion
+
+ //#region 缂栬緫
+
+ form.on('submit(cmdModify)', function () {//缂栬緫
+ var checkStatus = table.checkStatus('wl-table')
+ , data = checkStatus.data;
+ if (checkStatus.data.length == 1) {
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '鏄庣粏鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ , end: function () {
+ //鏄剧ず琛ㄤ綋鏄庣粏
+ DisBillEntryList();
+ }
+ })
+ }
+ else {
+ layer.msg('璇峰厛閫夋嫨涓�琛岃褰曪紝杩涜缂栬緫锛�');
+ }
+ });
+
+
+ //#endregion
+
+ //#region 鍒犻櫎
+
+ form.on('submit(cmdDelete)', function () {
+ var checkStatus = table.checkStatus('wl-table')
+ , data = checkStatus.data;
+ if (checkStatus.data.length == 1) {
+ layer.confirm("纭瑕佸垹闄ら�変腑琛屾墍鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�", { title: "鍒犻櫎纭" }, function (index) {
+ var sMaterID = data[0].HMaterID
+ var sAuxPropID = data[0].HAuxPropID
+ var sMTONo = data[0].HMTONo
+ var sSourceInterID = data[0].HSourceInterID
+ var sSourceEntryID = data[0].HSourceEntryID
+
+ layer.load(3)
+ $.ajax(
+ {
+ type: "Get",
+ url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HInterID": HInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "HBillType": HBillType },
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) {
+ layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
+ //鏄剧ず琛ㄤ綋鏄庣粏
+ DisBillEntryList();
+ });
+ }
+ else {
+ playSound();
+ layer.msg(data.Message, { icon: 2, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ },
+ error: function (err) {
+ layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ });
+ layer.closeAll("loading");
+ })
+ }
+ else {
+ layer.msg('璇烽�夋嫨涓�琛岃褰曪紝杩涜鍒犻櫎锛�');
+ }
+ });
+
+ //#endregion
+
+ //#region 閫�鍑�
+
+ form.on('submit(cmdCancel)', function () {
+ layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
+ if (OperationType == 2) {
+ var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩
+ parent.location.reload(); //鍒锋柊鐖堕〉闈紝娉ㄦ剰涓�瀹氳鍦ㄥ叧闂綋鍓峣frame灞備箣鍓嶆墽琛屽埛鏂�
+ parent.layer.close(index); //鍐嶆墽琛屽叧闂�
+ }
+ else {
+ parent.location.href = "../../../views/index_Mobile.html";
+ }
+ });
+ })
+
+ //#endregion
+
+ //#endregion
+
+
+ //#region 鎵弿婧愬崟鏉$爜
+
+ //鎵弿婧愬崟鏉$爜
+ $('#HSourceBillNo').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ GetMeesageBySourceBillNo();
+ }
+ });
+
+ //婧愬崟鎸夐挳
+ form.on('submit(HSourceBillNo-BT)', function (data) {
+ GetMeesageBySourceBillNo();
+ });
+
+ //鎵弿婧愬崟鏉$爜
+ function GetMeesageBySourceBillNo(obj) {
+ var HSourceBillNo = $('#HSourceBillNo').val()
+ var HSourceBillType = $("#HMainSourceBillType").val()
+ //鍏堣繘鍏堝嚭浠撳簱鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
+ if ($("#HFIFOWHName").val() == '') {
+ $("#HFIFOWHID").val("0");
+ }
+ var sHFIFOWHID = $("#HFIFOWHID").val()
+ layer.load(3)
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/get_SourceBarCode_SellOut_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HSourceBillNo": HSourceBillNo, "HSourceBillType": HSourceBillType, "HMaker": HMaker, "HFIFOWhID": sHFIFOWHID, "HOWNERID": HStockOrgID },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ playSound_OK();
+ HSourceFlag = true;
+ $("#HSupName").val(result.data.hSupNameField);
+ $("#HSupID").val(result.data.hSupIDField);
+ if (result.data.hDeptIDField != 0) {
+ $("#HDeptID").val(result.data.hDeptIDField);
+ $("#HDeptName").val(result.data.hDeptNameField);
+ }
+
+ $("#HSourceBillNo").val(result.data.hSourceBillNoField);
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ form.render('select');
+ if (result.data.hMulSourceFlagField == 0) {
+ $("#HSourceBillNo").attr("disabled", "disabled");
+ $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ //瀹㈡埛涓嶅彲缂栬緫
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ //鏄剧ず琛ㄤ綋鏄庣粏
+ DisBillEntryList();
+ }
+ else {
+ playSound();
+ layer.msg(result.Message, {
+ icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ element.tabChange('tab-Kf_SellOutBill_PDA', '1');
+ $("#HSourceBillNo").select();
+ $("#HSourceBillNo").focus();
+ });
+ }
+ }
+ });
+ layer.closeAll("loading");
+ }
+
+ //#endregion
+
+
+ //#region 鎵弿鐗╂枡鏉$爜
+
+ //鎵弿鏉$爜
+ $('#HBarCode').on('keydown', function (event) {
+ if (event.keyCode == 13) {
+ GetMeesageByBarCode();
+ $("#HBarCode").select();
+ $("#HBarCode").focus(); //鑾峰彇鍏夋爣
+ }
+ });
+
+ //鏉$爜鎸夐挳
+ form.on('submit(HBarCode-BT)', function (data) {
+ GetMeesageByBarCode();
+ $("#HBarCode").select();
+ $("#HBarCode").focus(); //鑾峰彇鍏夋爣
+ });
+
+ //鎵潯鐮�
+ function GetMeesageByBarCode(obj) {
+ //浠撳簱銆佷粨浣嶆枃鏈涓虹┖鏃讹紝娓呯┖瀵瑰簲ID
+ if ($("#HWHName").val() == '') {
+ $("#HWHID").val("0");
+ }
+ if ($("#HStockPlaceName").val() == '') {
+ $("#HStockPlaceID").val("0");
+ }
+ var sOldBarCode = $('#HBarCode').val()
+ var HDeleteFlag = sOldBarCode.substring(0, 1);
+ var sBarCode = sOldBarCode.slice(1);
+ var sHWHID = $("#HWHID").val()
+ var sHSPID = $("#HStockPlaceID").val()
+ var sHQty = $("#HQty").val()
+ var sSourceBillNo = $("#HSourceBillNo").val()
+ var sSourceBillType = $("#HMainSourceBillType").val()
+
+ if (HDeleteFlag == "*") {
+ if (sBarCode == "") {
+ playSound();
+ layer.msg("璇锋壂鎻忚鍒犻櫎鐨勬潯鐮�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ });
+ return;
+ }
+ else {
+ $('#HBarCode').val("");
+ }
+ layer.load(3)
+ $.ajax(
+ {
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_BarCode_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HInterID": HInterID, "HBillType": HBillType, "HBarCode": sBarCode },
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+ playSound_OK();
+ //娓呯┖鏁伴噺
+ $("#HQty").val("");
+ //鏄剧ず琛ㄤ綋鏄庣粏
+ DisBillEntryList();
+ }
+ else {
+ playSound();
+ layer.msg(data.Message, {
+ icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ });
+ }
+ },
+ error: function (err) {
+ playSound();
+ layer.msg('閿欒' + err, {
+ icon: 2, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ });
+ }
+ });
+ layer.closeAll("loading");
+ }
+ else {
+ var sBarCode = $('#HBarCode').val()
+ if (sBarCode == '') {
+ playSound();
+ layer.msg("鏉$爜涓虹┖锛岃鎵弿鏉$爜锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ });
+ return;
+ }
+ if (sBarCode != "") {
+ $('#HBarCode').val("");
+ }
+ if (sHQty == "") {
+ sHQty = 0;
+ }
+ layer.load(3)
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + "/WEBSController/Get_BarCode_Json",
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "sBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HMaker": HMaker, "HWhID": sHWHID, "HSPID": sHSPID, "HQty": sHQty, "HRedBlueFlag": HRedBlueFlag, "SourceFlag": HSourceFlag, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sSourceBillType, "HStockOrgID": HStockOrgID, "HScanStyle": "", "HCustom1": "", "HCustom2": "" },
+ success: function (result) {
+ if (result.count == 1) {
+ playSound_OK();
+ if (result.data.hBarTypeField == '浠撳簱鏉$爜') {
+ $("#HWHName").val(result.data.hWhNameField);
+ $("#HWHID").val(result.data.hWhIDField);
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceID").val("0");
+ if (result.data.hSPFlagField == 0) {
+ $("#HStockPlaceName").attr("disabled", "disabled");
+ $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ else {
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ }
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2'); //璺宠浆椤电
+ return;//缁撴潫
+ }
+ else if (result.data.hBarTypeField == '浠撲綅鏉$爜') {
+ $("#HStockPlaceName").val(result.data.hSPNameField);
+ $("#HStockPlaceID").val(result.data.hSPIDField);
+ $("#HWHName").val(result.data.hWhNameField);
+ $("#HWHID").val(result.data.hWhIDField);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');//璺宠浆椤电
+ return;//缁撴潫
+ }
+ else if (result.data.hBarTypeField == '閮ㄩ棬鏉$爜') {
+ $("#HDeptName").val(result.data.hDeptNameField);
+ $("#HDeptID").val(result.data.hDeptIDField);
+ element.tabChange('tab-Kf_SellOutBill_PDA', '2');//璺宠浆椤电
+ return;//缁撴潫
+ }
+ else if (result.data.hBarTypeField == '婧愬崟鏉$爜') {
+ HSourceFlag = true;
+ $("#HSupName").val(result.data.hSupNameField);
+ $("#HSupID").val(result.data.hSupIDField);
+ if (result.data.hDeptIDField != 0) {
+ $("#HDeptID").val(result.data.hDeptIDField);
+ $("#HDeptName").val(result.data.hDeptNameField);
+ }
+ $("#HSourceBillNo").val(result.data.hSourceBillNoField);
+ //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+ if (result.data.hSourceBillTypeField == "1402") {
+ $("#HMainSourceBillType").empty();
+ var optionHtml = '';
+ optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '鍙戣揣閫氱煡鍗�' + "</option>";
+ $("#HMainSourceBillType").append(optionHtml);
+ layui.form.render('select');
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ }
+ else if (result.data.hSourceBillTypeField == "1401") {
+ $("#HMainSourceBillType").empty();
+ var optionHtml = '';
+ optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '閿�鍞鍗�' + "</option>";
+ $("#HBillType").append(optionHtml);
+ layui.form.render('select');
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ }
+ else {
+ $("#HMainSourceBillType").empty();
+ var optionHtml = '';
+ optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
+ $("#HMainSourceBillType").append(optionHtml);
+ layui.form.render('select');
+ $("#HMainSourceBillType").attr("disabled", "disabled");
+ }
+ if (result.data.hMulSourceFlagField == 0) {
+ $("#HSourceBillNo").attr("disabled", "disabled");
+ $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ //瀹㈡埛涓嶅彲缂栬緫
+ $("#HSupName").attr("disabled", "disabled");
+ $('#HSupID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ element.tabChange('tab-Kf_SellOutBill_PDA', '3');
+ }
+ //鐗╂枡鏉$爜
+ else {
+ if (HSourceFlag == true) {
+ element.tabChange('tab-Kf_SellOutBill_PDA', '3');
+ }
+ else {
+ HSourceFlag = true;
+ element.tabChange('tab-Kf_SellOutBill_PDA', '3');
+ }
+ }
+ //娓呯┖鏁伴噺
+ $("#HQty").val("");
+ //鏄剧ず琛ㄤ綋鏄庣粏
+ DisBillEntryList();
+ }
+ else {
+ playSound();
+ layer.msg(result.Message, {
+ icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ });
+ }
+ },
+ error: function (err) {
+ playSound();
+ layer.msg("閿欒锛�" + err, {
+ icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ $("#HBarCode").select();
+ $("#HBarCode").focus();
+ });
+ }
+ });
+ layer.closeAll("loading");
+ }
+ }
+
+ //#endregion
+
+
+ //#region 鏄剧ず鐗╂枡鍒楄〃淇℃伅
+
+ function DisBillEntryList() {
+ $.ajax({
+ type: "GET",
+ url: GetWEBURL() + '/WEBSController/GetBillEntryTmpList_Json',
+ async: false, //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+ data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HStockOrgID": HStockOrgID },
+ success: function (result) {
+ var data = [];
+ var col = [];
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ //缁欑┖鐨勬暟缁勮祴鍊�
+ for (var key in result.list) {
+ //鍔ㄦ�佽幏鍙栧垪琛ㄦ墍鏈夊垪鍚�
+ data.push({ "id": result.list[key].ColmCols, "name": result.list[key].ColmCols, "Type": result.list[key].ColmType });
+ //鑾峰彇涓嶉渶瑕佹樉绀虹殑鍒楋紙H寮�澶寸殑鍒椾笉鏄剧ず锛�
+ var patrn = new RegExp(/^h/i);
+ if (patrn.test(result.list[key].ColmCols)) {
+ titleData[key] = result.list[key].ColmCols;
+ }
+ }
+
+ //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
+ col.push({ type: 'radio', fixed: 'left', totalRowText: '鍚堣' });
+ for (var i = 0; i < data.length; i++) {
+ if ($.inArray(data[i].name, titleData) > -1) {
+ col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
+ }
+ else {
+ switch (data[i].Type) {
+ //int
+ case 'DateTime':
+ col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
+ break;
+ default:
+
+ if (data[i].name == '鏁伴噺' || data[i].name == '婧愬崟鏁伴噺' || data[i].name == '鏉$爜涓暟') {
+ col.push({ field: data[i].id, title: data[i].name, align: 'center', totalRow: true });
+ } else {
+ col.push({ field: data[i].id, title: data[i].name, align: 'center' });
+ }
+ }
+ }
+ }
+ columns = col;
+ listOption.cols = [columns];
+ listOption.data = result.data.Materlist;
+ listOption.totalRow = true;
+ table.render(listOption);
+ if (result.data.FIFOlist.length != 0) {
+ if (result.data.FIFOlist[0].HMaterID != 0) {
+ FIFOListOption.data = result.data.FIFOlist;
+ table.render(FIFOListOption);
+ }
+ }
+
+ //鏉$爜淇℃伅
+ $("#HBarCode_B").val(result.data.BarCodeDetailslist[0].HBarCode);
+ if ($("#HBarCode_B").val() == '') {
+ $("#HMaterName_B").val("");
+ $("#HMaterModel_B").val("");
+ $("#HBatchNo_B").val("");
+ $("#HUnitName_B").val("");
+ $("#HQty_B").val("");
+ $("#HTMQty_B").val("");
+ $("#HWHName_B").val("");
+ $("#HSPName_B").val("");
+ }
+ else {
+ $("#HMaterName_B").val(result.data.BarCodeDetailslist[0].HMaterName);
+ $("#HMaterModel_B").val(result.data.BarCodeDetailslist[0].HMaterModel);
+ $("#HBatchNo_B").val(result.data.BarCodeDetailslist[0].HBatchNo);
+ $("#HUnitName_B").val(result.data.BarCodeDetailslist[0].HUnitName);
+ $("#HQty_B").val(result.data.BarCodeDetailslist[0].HQty);
+ $("#HTMQty_B").val(result.data.BarCodeDetailslist[0].HTMQty);
+ $("#HWHName_B").val(result.data.BarCodeDetailslist[0].HWHName);
+ $("#HSPName_B").val(result.data.BarCodeDetailslist[0].HSPName);
+ }
+ }
+ else {
+ listOption.cols = [[
+ { field: '鏁伴噺', title: '鏁伴噺', width: 100 }
+ , { field: '婧愬崟鏁伴噺', title: '婧愬崟鏁伴噺', width: 100 }
+ , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 100 }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 100 }
+ , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
+ , { field: '杈呭姪灞炴��', title: '杈呭姪灞炴��', width: 100 }
+ , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 100 }
+ , { field: '鏉$爜涓暟', title: '鏉$爜涓暟', width: 100 }
+ ]];
+ listOption.data = data;
+ table.render(listOption);
+
+ //鏉$爜淇℃伅
+ $("#HBarCode_B").val("");
+ $("#HMaterName_B").val("");
+ $("#HMaterModel_B").val("");
+ $("#HBatchNo_B").val("");
+ $("#HUnitName_B").val("");
+ $("#HQty_B").val("");
+ $("#HTMQty_B").val("");
+ $("#HWHName_B").val("");
+ $("#HSPName_B").val("");
+ }
+ }
+ });
+ }
+
+ //#endregion
+
+
+
+ });
+
+ //浠ヤ笂涓簂ayui妯″潡
+ //姝ゅ鏂规硶娑夊強鍒拌澶栭儴椤甸潰parent.鏂规硶鍚嶈皟鐢ㄧ殑蹇呴』鏀惧湪Layui鏂规硶澶栭儴
+
+ //鐐瑰嚮鎸夐挳閫夋嫨鍚� 杩斿洖鍏堣繘鍏堝嚭浠撳簱淇℃伅
+ function GetHFIFOWHNAMEValue(obj)
+ {
+ if (obj.length > 0) {
+ $("#HFIFOWHName").val(obj[0].HName);
+ $("#HFIFOWHID").val(obj[0].HItemID);
+ }
+ }
+ //鐐瑰嚮鎸夐挳閫夋嫨鍚� 杩斿洖浠撳簱淇℃伅
+ function GetHWHValue(obj)
+ {
+ if (obj.length > 0) {
+ $("#HWHName").val(obj[0].HName);
+ $("#HWHID").val(obj[0].HItemID);
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceID").val("0");
+ if (obj[0].HSPFlag == 0) {
+ $("#HStockPlaceName").attr("disabled", "disabled");
+ $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+ }
+ else {
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ }
+ }
+ }
+ //鐐瑰嚮鎸夐挳閫夋嫨鍚� 杩斿洖浠撲綅淇℃伅
+ function GetHSpValue(obj) {
+ if (obj.length > 0) {
+ $("#HStockPlaceName").val(obj[0].HName);
+ $("#HStockPlaceID").val(obj[0].HItemID);
+ $("#HWHName").val(obj[0].HWhName);
+ $("#HWHID").val(obj[0].HWHID);
+ }
+ }
+ //鐐瑰嚮鎸夐挳閫夋嫨鍚� 杩斿洖淇濈淇℃伅
+ function GetHKeeperValue(obj) {
+ if (obj.length > 0) {
+ $("#HKeeperName").val(obj[0].HName);
+ $("#HKeeperID").val(obj[0].HItemID);
+ }
+ }
+ //鐐瑰嚮鎸夐挳閫夋嫨鍚� 杩斿洖楠屾敹淇℃伅
+ function GetHSecManagerValue(obj) {
+ if (obj.length > 0) {
+ $("#HSecManagerName").val(obj[0].HName);
+ $("#HSecManagerID").val(obj[0].HItemID);
+ }
+ }
+ //鐐瑰嚮鎸夐挳閫夋嫨鍚� 杩斿洖閮ㄩ棬淇℃伅
+ function GetHDeptNameValue(obj) {
+ if (obj.length > 0) {
+ $("#HDeptName").val(obj[0].HName);
+ $("#HDeptID").val(obj[0].HItemID);
+ }
+ }
+ //鐐瑰嚮鎸夐挳閫夋嫨鍚� 杩斿洖瀹㈡埛淇℃伅
+ function GetHSupValue(obj) {
+ if (obj.length > 0) {
+ $("#HSupName").val(obj[0].HName);
+ $("#HSupID").val(obj[0].HItemID);
+ }
+ }
+
+ //鍗曟嵁涓婁紶鍓嶅垽鏂�
+ function AllowLoadData(sSubStr) {
+ if (HInterID == 0) {
+ layer.msg("鍗曟嵁鍐呯爜鑾峰彇澶辫触锛岄敊璇殑鍗曟嵁鍐呯爜锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (HBillNo == '') {
+ layer.msg("鍗曟嵁鍙疯幏鍙栧け璐ワ紝閿欒鐨勫崟鎹彿锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (typeof (sSubStr) == "undefined") {
+ layer.msg("娌℃湁鎵爜淇℃伅锛岃鍏堟壂鎻忔潯鐮侊紝纭鏃犺鍚庡啀鎻愪氦锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ //鍒ゆ柇鏄惁宸叉壂鎻忕墿鏂欐潯鐮�
+ if (!typeof (sSubStr) == "undefined") {
+ for (var i = 0; i <= sSubStr.length - 1; i++) {
+ if (parseFloat(sSubStr[i].HQty) > 0) {
+ s = 1;
+ }
+ }
+ if (s == 0) {
+ layer.msg("娌℃湁鎵弿鐗╂枡鏉$爜锛岃鍏堟壂鎻忕墿鏂欐潯鐮侊紝纭鏃犺鍚庡啀鎻愪氦锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ }
+ else {
+ return true;
+ }
+ }
+ </script>
+
+</body>
+</html>
diff --git a/WebTM/views/index_Mobile.html b/WebTM/views/index_Mobile.html
index ae1823c..fb02197 100644
--- a/WebTM/views/index_Mobile.html
+++ b/WebTM/views/index_Mobile.html
@@ -393,6 +393,12 @@
</a>
</dd>
<dd>
+ <a href="WMS鎵爜妯″潡/閿�鍞嚭搴�/Kf_SellOutBill_PDA.html" target="main_self_frame" style="color: aqua;">
+ <img src="../layuiadmin/myicon/鍗曟嵁褰曞埗.svg" alt="鍗曟嵁褰曞埗" style="width:25px;height:25px;margin-right: 5px;" />
+ 閿�鍞嚭搴撳崟
+ </a>
+ </dd>
+ <dd>
<a href="WMS鎵爜妯″潡/鍏朵粬鍑哄簱/Kf_OtherOutBill_PDA.html" target="main_self_frame" style="color: aqua;">
<img src="../layuiadmin/myicon/鍗曟嵁褰曞埗.svg" alt="鍗曟嵁褰曞埗" style="width:25px;height:25px;margin-right: 5px;" />
鍏朵粬鍑哄簱鍗�
@@ -417,10 +423,6 @@
</a>
</dd>
<dd>
- <a href="棰嗘枡鍙戣揣/閿�鍞嚭搴�/Kf_SellOutBill_Fast.html" target="main_self_frame" style="color: aqua;">
- <img src="../layuiadmin/myicon/鍗曟嵁褰曞埗.svg" alt="鍗曟嵁褰曞埗" style="width:25px;height:25px;margin-right: 5px;" />
- 閿�鍞嚭搴�
- </a>
<a href="棰嗘枡鍙戣揣/閿�鍞嚭搴�/Kf_SellOutBill_Check_New.html" target="main_self_frame" style="color: aqua;">
<img src="../layuiadmin/myicon/鍗曟嵁褰曞埗.svg" alt="鍗曟嵁褰曞埗" style="width:25px;height:25px;margin-right: 5px;" />
閿�鍞嚭搴撴牎楠�
--
Gitblit v1.9.1