From 7b2679eb05c83d90c652c260797c0850fe644af4 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期二, 27 八月 2024 10:28:57 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
---
WebTM/views/WMS扫码模块/生产调拨/Kf_MoveStockBill_PDA.html | 91 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 87 insertions(+), 4 deletions(-)
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html"
index 00d3fad..ce56c64 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockBill_PDA.html"
@@ -116,7 +116,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">璋冩嫧绫诲瀷</label>
</div>
<div class="layui-col-xs9">
- <select name=" HStockStyle" id="HStockStyle"disabled>
+ <select lay-filter="HStockStyle" name=" HStockStyle" id="HStockStyle" >
<option value="缁勭粐鍐呰皟鎷�">缁勭粐鍐呰皟鎷�</option>
<option value="璺ㄧ粍缁囪皟鎷�">璺ㄧ粍缁囪皟鎷�</option>
</select>
@@ -312,7 +312,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">璋冨嚭缁勭粐</label>
</div>
<div class="layui-col-xs10">
- <select name=" HStockOutOrgID" id="HStockOutOrgID"disabled>
+ <select lay-filter="HStockOutOrgID" name=" HStockOutOrgID" id="HStockOutOrgID"disabled>
<!--鍔ㄦ�佹覆鏌撶粍缁�-->
</select>
</div>
@@ -324,7 +324,7 @@
<label class="layui-form-label" style="width:60px;padding-left:0px;">璋冨叆缁勭粐</label>
</div>
<div class="layui-col-xs10">
- <select name=" HStockInOrgID" id="HStockInOrgID"disabled>
+ <select lay-filter="HStockInOrgID" name=" HStockInOrgID" id="HStockInOrgID"disabled>
<!--鍔ㄦ�佹覆鏌撶粍缁�-->
</select>
</div>
@@ -1258,6 +1258,13 @@
//鎵弿璋冨叆浠撳簱鏉$爜
$('#HWHName').on('keydown', function (event) {
if (event.keyCode == 13) {
+ if ($("#HStockStyle").val() == '璺ㄧ粍缁囪皟鎷�' && HStockOutOrgID == HStockInOrgID) {
+ layer.msg("璺ㄧ粍缁囪皟鎷紝璋冨嚭缁勭粐涓庤皟鍏ョ粍缁囦笉鍏佽鐩稿悓锛岃鍏堥�夋嫨姝g‘璋冨叆缁勭粐锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ });
+ return;
+ }
var HWHName = $('#HWHName').val()
if (HWHName == '') {
playSound();
@@ -1325,6 +1332,13 @@
//璋冨叆浠撳簱鎸夐挳
form.on('submit(HWHID-BT)', function () {
+ if ($("#HStockStyle").val() == '璺ㄧ粍缁囪皟鎷�' && HStockOutOrgID == HStockInOrgID) {
+ layer.msg("璺ㄧ粍缁囪皟鎷紝璋冨嚭缁勭粐涓庤皟鍏ョ粍缁囦笉鍏佽鐩稿悓锛岃鍏堥�夋嫨姝g‘璋冨叆缁勭粐锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ });
+ return;
+ }
layer.open({
type: 2
, area: ['100%', '100%']
@@ -1346,6 +1360,13 @@
//鎵弿璋冨叆浠撲綅鏉$爜
$('#HStockPlaceName').on('keydown', function (event) {
if (event.keyCode == 13) {
+ if ($("#HStockStyle").val() == '璺ㄧ粍缁囪皟鎷�' && HStockOutOrgID == HStockInOrgID) {
+ layer.msg("璺ㄧ粍缁囪皟鎷紝璋冨嚭缁勭粐涓庤皟鍏ョ粍缁囦笉鍏佽鐩稿悓锛岃鍏堥�夋嫨姝g‘璋冨叆缁勭粐锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ });
+ return;
+ }
//璋冨叆浠撳簱鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
if ($("#HWHName").val() == '') {
$("#HWHID").val("0");
@@ -1406,6 +1427,13 @@
//璋冨叆浠撲綅鎸夐挳
form.on('submit(HSpID-BT)', function () {
+ if ($("#HStockStyle").val() == '璺ㄧ粍缁囪皟鎷�' && HStockOutOrgID == HStockInOrgID) {
+ layer.msg("璺ㄧ粍缁囪皟鎷紝璋冨嚭缁勭粐涓庤皟鍏ョ粍缁囦笉鍏佽鐩稿悓锛岃鍏堥�夋嫨姝g‘璋冨叆缁勭粐锛�", {
+ icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+ }, function () {
+ });
+ return;
+ }
//璋冨叆浠撳簱鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
if ($("#HWHName").val() == '') {
$("#HWHID").val("0");
@@ -2299,13 +2327,14 @@
var optionHtml = '';
optionHtml += "<option value = '-1' >" + '鎵嬪伐褰曞叆' + "</option>";
$("#HMainSourceBillType").append(optionHtml);
- layui.form.render('select');
$("#HMainSourceBillType").attr("disabled", "disabled");
//婧愬崟鍗曞彿鏀逛负涓嶅彲缂栬緫妯″紡
$("#HSourceBillNo").val("");
$("#HSourceBillNo").attr("disabled", "disabled");
$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
$("#HStockStyle").attr("disabled", "disabled");
+ $("#HStockInOrgID").attr("disabled", true);
+ layui.form.render('select');
element.tabChange('tab-Kf_MoveStockBill_PDA', '3');
}
}
@@ -2463,6 +2492,60 @@
//#endregion
+ //#region 閫夋嫨璋冩嫧绫诲瀷
+ form.on('select(HStockStyle)', function (data) {
+ if ($("#HStockStyle").val() == '璺ㄧ粍缁囪皟鎷�') {
+ $("#HStockInOrgID").attr("disabled", false);
+ form.render('select');
+ //娓呯┖璋冨叆浠撳簱浠撲綅鏁版嵁
+ $("#HWHID").val("0");
+ $("#HWHName").val("");
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ $("#HWHName").select();
+ $("#HWHName").focus();
+ }
+ else {
+ $("#HStockInOrgID").val(sessionStorage["OrganizationID"]);
+ $("#HStockInOrgID").attr("disabled", true);
+ form.render('select');
+ if (HStockInOrgID != $('#HStockInOrgID').val()) {
+ HStockInOrgID = $('#HStockInOrgID').val()
+ //娓呯┖璋冨叆浠撳簱浠撲綅鏁版嵁
+ $("#HWHID").val("0");
+ $("#HWHName").val("");
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ $("#HWHName").select();
+ $("#HWHName").focus();
+ }
+ }
+ });
+
+ //#endregion
+
+
+ //#region 閫夋嫨璋冨叆缁勭粐
+ form.on('select(HStockInOrgID)', function (data) {
+ HStockInOrgID = $('#HStockInOrgID').val()
+ //娓呯┖璋冨叆浠撳簱浠撲綅鏁版嵁
+ $("#HWHID").val("0");
+ $("#HWHName").val("");
+ $("#HStockPlaceID").val("0");
+ $("#HStockPlaceName").val("");
+ $("#HStockPlaceName").removeAttr("disabled");
+ $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
+ $("#HWHName").select();
+ $("#HWHName").focus();
+ });
+
+ //#endregion
+
+
});
--
Gitblit v1.9.1