From c5d31b89210479468708e0eda65c4cb5074c026e Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期二, 23 二月 2021 21:17:10 +0800
Subject: [PATCH] 新增找货单列表
---
WebTM/views/仓存管理/仓库调拨/Cc_LookingForBill.html | 74 +++++++++++++++++++++++-------------
1 files changed, 47 insertions(+), 27 deletions(-)
diff --git "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForBill.html" "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForBill.html"
index 9ebeeaf..5c90e38 100644
--- "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForBill.html"
+++ "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Cc_LookingForBill.html"
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>鎵捐揣鍗�</title>
+<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">
@@ -16,18 +16,18 @@
<div class="layui-card-body" style="padding: 5px; 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>
+ <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:90px;padding-left:0px;">婧愬崟鍙�</label>
+ <label class="layui-form-label" style="width:60px;padding-left:0px;">婧愬崟鍙�</label>
</div>
<div class="layui-col-xs8">
<input type="text" name="HSourceBillNo" id="HSourceBillNo" autocomplete="off" class="layui-input">
</div>
<div class="layui-col-xs3">
- <label class="layui-form-label" style="width:90px;padding-left:0px;">瀹炵墿鏉$爜</label>
+ <label class="layui-form-label" style="width:60px;padding-left:0px;">瀹炵墿鏉$爜</label>
</div>
<div class="layui-col-xs8">
<input type="text" name="HBarCode" id="HBarCode" autocomplete="off" class="layui-input">
@@ -155,6 +155,13 @@
, form = layui.form
, element = layui.element;
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage.login != "login") {
+ layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+ icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+ }, function () { window.location.href = "../../user/login.html"; });
+ }
+
//鍒濆鍩烘湰淇℃伅璧嬪��
$("#HWHID").val(sessionStorage["HWHID"]);
$("#HWHName").val(sessionStorage["HWHName"]);
@@ -167,13 +174,21 @@
$("#HMakerID").val(sessionStorage["Czybm"]);
$("#HMaker").val(sessionStorage["HUserName"]);
+
+ //鍒ゆ柇鐢ㄦ埛鏄惁缁戝畾鐝粍鍜岀敓浜ц祫婧�
+ if ($("#HGroupID").val() == 0 || $("#HSourceID").val() == 0) {
+ layer.confirm("璇ョ敤鎴锋湭缁戝畾鐝粍鎴栫敓浜ц祫婧愶紒涓嶅厑璁告壘璐э紒", {
+ icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['纭閫�鍑�']
+ }, function () { window.location.href = "../../index.html"; });
+ }
+
//鑾峰彇鏈�澶у崟鎹彿 new
$("#HInterID").val("");
$("#HBillNo").val("");
$.ajax({
url: GetWEBURL() + "/Web/GetMAXNum",
type: "GET",
- data: { "HBillType": '1252' },
+ data: { "HBillType": '1253' },
success: function (d) {
//console.log(d.data);
$("#HInterID").val(d.data[0].HInterID);
@@ -188,17 +203,18 @@
, page: true
//, height: 256
, cellMinWidth: 90
+ , limit: 500
, cols: [[
{ type: 'numbers', title: '搴忓彿' }
, { field: 'HIsStatus', title: '鏄惁鎵爜' }
- , { field: 'HSourceInterID', title: '婧愬崟ID', hide: true }
- , { field: 'HSourceBillNo', title: '婧愬崟鍙�', width: 110 }
, { field: 'HMTONo', title: '鎵瑰彿', width: 180 }
- , { field: 'HStatus', title: '鍦ㄥ簱鐘舵��' }
- , { field: 'HWhID', title: '浠撳簱ID', hide: true }
- , { field: 'HWhName', title: '浠撳簱' }
, { field: 'HSPID', title: '浠撲綅ID', hide: true }
, { field: 'HSPName', title: '浠撲綅' }
+ , { field: 'HStatus', title: '鍦ㄥ簱鐘舵��', width: 165 }
+ , { field: 'HWhID', title: '浠撳簱ID', hide: true }
+ , { field: 'HWhName', title: '浠撳簱', width: 130 }
+ , { field: 'HSourceInterID', title: '婧愬崟ID', hide: true }
+ , { field: 'HSourceBillNo', title: '婧愬崟鍙�', width: 110 }
, { field: 'HGroupID', title: '鐝粍ID', hide: true }
, { field: 'HGroup', title: '鐝粍' }
, { field: 'HSourceID', title: '鐢熶骇璧勬簮ID', hide: true }
@@ -210,11 +226,11 @@
, { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿' }
, { field: '鍗虫椂搴撳瓨', title: '鍗虫椂搴撳瓨' }
, { field: 'HBarCode', title: '鏉$爜缂栧彿', hide: true }
- , { field: 'HInterID', title: '鍗曟嵁ID' }
+ , { field: 'HInterID', title: '鍗曟嵁ID', hide: true }
, { field: 'HBillNo', title: '鍗曟嵁鍙�' }
- , { field: 'HMakerID', title: '鍒跺崟浜篒D' }
+ , { field: 'HMakerID', title: '鍒跺崟浜篒D', hide: true }
, { field: 'HMaker', title: '鍒跺崟浜�' }
- , { field: 'HBillType', title: 'HBillType' }
+ , { field: 'HBillType', title: 'HBillType', hide: true }
]]
, text: {
none: '鏆傛棤鐩稿叧鏁版嵁锛岃鍏堟壂鎻忔簮鍗曞彿锛�' //榛樿锛氭棤鏁版嵁銆傛敞锛氳灞炴�т负 layui 2.2.5 寮�濮嬫柊澧�
@@ -312,10 +328,14 @@
layer.close(index);
$('#HBarCode').val("");
layer.msg("璇ュ疄鐗╁凡鎵爜锛岃鍕块噸澶嶆壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- } else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus != "" && sSubStr[i].HStatus != "鍦ㄥ簱") {
- layer.close(index);
- layer.msg("璇ュ疄鐗╁湪瑁佸垏涓紝涓嶅厑璁告壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
- } else {
+ }
+ //else if (sSubStr[i].HStatus != null && sSubStr[i].HStatus != "" && sSubStr[i].HStatus != "鍦ㄥ簱")
+ //{
+ // layer.close(index);
+ // layer.msg("璇ュ疄鐗╁湪" + sSubStr[i].HSource+"瑁佸垏涓紝涓嶅厑璁告壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ //}
+ else
+ {
sSubStr[i].HIsStatus = "鏄�";
sSubStr[i].HSourceID = $("#HSourceID").val();
sSubStr[i].HSource = $("#HSource").val();
@@ -335,7 +355,7 @@
}
if (rowCount == 0) {
layer.close(index);
- layer.msg("鏃犳晥鏉$爜锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ layer.msg("鎮ㄦ壂鐨勬潯鐮佷笉鍦ㄦ壘璐ф竻鍗曚腑锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
}
@@ -445,15 +465,15 @@
async: true,
data: { "oMain": sSubStr },
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 () {
- //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
- //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
- parent.location.href = "../../../views/index.html"
- }//鍏抽棴
+ success: function (result) {
+ if (result.count == 1) {
+ layer.confirm(result.Message, {
+ icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板'],
+ btn2: function () {
+ //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
+ //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
+ parent.location.href = "../../../views/index.html"
+ }//鍏抽棴
}, function () { window.location.reload(); });//鏂板
}
else {
--
Gitblit v1.9.1