From da4a4de671a5a55f6409b1607cfd0ae2c51560a6 Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期五, 04 三月 2022 17:41:39 +0800
Subject: [PATCH] 采购订单下推送货单更新关联数量判断放到后台
---
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POOrderBillList.html | 115 +++++++++++++++++++++++++++++++++------------------------
1 files changed, 66 insertions(+), 49 deletions(-)
diff --git a/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POOrderBillList.html b/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POOrderBillList.html
index 9e4114d..3851664 100644
--- a/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POOrderBillList.html
+++ b/WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/SRM_POOrderBillList.html
@@ -8,6 +8,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
+ <style type="text/css">
+ .layui-input-block {
+ width: 200px;
+ }
+ </style>
</head>
<body>
@@ -46,12 +51,12 @@
<input type="text" class="layui-input" name="HBillNo" id="HBillNo">
</div>
</div>
- <div class="layui-inline">
+ <!--<div class="layui-inline">
<label class="layui-form-label">鐗╂枡缂栫爜</label>
<div class="layui-input-block">
<input type="text" class="layui-input" name="HShortNumber" id="HShortNumber">
</div>
- </div>
+ </div>-->
<div class="layui-inline">
<label class="layui-form-label">鐗╂枡浠g爜</label>
<div class="layui-input-block">
@@ -80,18 +85,18 @@
</select>
</div>
</div>
- <div class="layui-inline">
+ <!--<div class="layui-inline">
<label class="layui-form-label">寮�濮嬫棩鏈�</label>
<div class="layui-input-block">
<input type="text" class="layui-input" name="HDate1" id="HDate1">
</div>
- </div>
- <div class="layui-inline">
+ </div>-->
+ <!--<div class="layui-inline">
<label class="layui-form-label">缁撴潫鏃ユ湡</label>
<div class="layui-input-block">
<input type="text" class="layui-input" name="HDate2" id="HDate2">
</div>
- </div>
+ </div>-->
<div class="layui-inline">
<label class="layui-form-label">浜よ揣鏃堕棿</label>
<div class="layui-input-block">
@@ -108,15 +113,14 @@
</select>
</div>
</div>
- <div class="layui-inline">
+ <!--<div class="layui-inline">
<label class="layui-form-label">閲囪喘缁勭粐</label>
<div class="layui-input-block">
<select id="HPURCHASEORGID" name="HPURCHASEORGID" lay-filter="">
-
</select>
</div>
- </div>
- <div class="layui-inline">
+ </div>-->
+ <!--<div class="layui-inline">
<label class="layui-form-label">鏄惁宸蹭笅鎺ㄩ�佽揣鍗�</label>
<div class="layui-input-block">
<select id="HISGenerate" name="HISGenerate" lay-filter="">
@@ -125,7 +129,7 @@
<option value="鍚�">鍚�</option>
</select>
</div>
- </div>
+ </div>-->
<div class="layui-inline">
<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="f_Query">
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
@@ -243,32 +247,34 @@
//{ checkbox: true, fixed: true }
{ type: 'checkbox', fixed: 'left' }
//{ type: 'radio', fixed: true }
- , { field: 'sorderid', title: '搴忓彿', width: 80/*, fixed: true */}
+ , { field: 'sorderid', title: '搴忓彿', width: 80/*, fixed: true */ }
, { field: 'hmainid', title: 'hmainid', sort: true, /*fixed: true,*/ hide: true }
, { field: 'hsubid', title: 'hsubid', sort: true, /*fixed: true,*/ hide: true }
- , { field: '鐘舵��', title: '鐘舵��', sort: true/*, fixed: true */}
- , { field: '鍙嶉鐘舵��', title: '鍙嶉鐘舵��', width: 100/*, fixed: true */}
- , { field: '浼樺厛绾�', title: '浼樺厛绾�', width: 100/*, fixed: true */}
- , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 180, sort: true/*, fixed: 'left' */}
- , { field: '鏃ユ湡', title: '鏃ユ湡', width: 180, sort: true/*, fixed: 'left' */}
+ , { field: '鐘舵��', title: '鐘舵��', sort: true/*, fixed: true */ }
+ //, { field: '鍙嶉鐘舵��', title: '鍙嶉鐘舵��', width: 100/*, fixed: true */}
+ //, { field: '浼樺厛绾�', title: '浼樺厛绾�', width: 100/*, fixed: true */}
+ , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 150, sort: true/*, fixed: 'left' */ }
+ , { field: '鏃ユ湡', title: '鏃ユ湡', width: 120, sort: true/*, fixed: 'left' */ }
, { field: 'HSupID', title: 'HSupID', width: 180, hide: true }
- , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 180, sort: true/*, fixed: 'left' */}
+ , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 180, sort: true/*, fixed: 'left' */, hide: true }
, { field: '璁″垝璺熻釜鍗曞彿', title: '璁″垝璺熻釜鍗曞彿', sort: true, hide: true }
- , { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 120, sort: true }
+ , { field: 'F_xbkf_Combo', title: '鑷畾涔夋爣璇�', width: 120 }
+ //, { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 120, sort: true }
, { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 120, sort: true }
, { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 120, sort: true }
, { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 120, sort: true }
, { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 80, sort: true }
- , { field: '鏁伴噺', title: '璁㈣揣鏁伴噺', sort: true }
- , { field: '浜よ揣鍦扮偣', title: '浜よ揣鍦扮偣', sort: true }
+ , { field: '鏁伴噺', title: '璁㈠崟鏁伴噺', sort: true }
, { field: '浜よ揣鏃ユ湡', title: '浜よ揣鏃ユ湡', width: 180, sort: true }
- , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺', sort: true }
- , { field: '鏈叧鑱旀暟閲�', title: '鏈叧鑱旀暟閲�', sort: true }
- , { field: '鍓╀綑鍏ュ簱鏁伴噺', title: '鍓╀綑鍏ュ簱鏁伴噺', sort: true }
- , { field: '鍓╀綑鏀舵枡鏁伴噺', title: '鍓╀綑鏀舵枡鏁伴噺', sort: true }
+ , { field: '鍏宠仈鏁伴噺', title: '宸查�佽揣鏁伴噺', sort: true }
+ , { field: '鏈叧鑱旀暟閲�', title: '鏈�佽揣鏁伴噺', sort: true }
+ , { field: '鍓╀綑鍏ュ簱鏁伴噺', title: '鍓╀綑鍏ュ簱鏁伴噺', sort: true, hide: true}
+ , { field: '鍓╀綑鏀舵枡鏁伴噺', title: '鍓╀綑鏀舵枡鏁伴噺', sort: true, hide: true}
, { field: '鍏抽棴鐘舵��', title: '鍏抽棴鐘舵��', sort: true }
, { field: '鍙樻洿鐘舵��', title: '鍙樻洿鐘舵��', sort: true }
- , { field: '閲囪喘缁勭粐', title: '閲囪喘缁勭粐', sort: true }
+ , { field: 'FSHDD', title: '閫佽揣鍦扮偣', width: 120 }
+ , { field: '浜よ揣鍦扮偣', title: '浜よ揣鍦扮偣', sort: true }
+ , { field: '閲囪喘缁勭粐', title: '閲囪喘缁勭粐', sort: true, hide: true}
, { field: '纭浜�', title: '纭浜�', sort: true, hide: true }
, { field: '纭鏃ユ湡', title: '纭鏃ユ湡', sort: true, hide: true }
, { field: '椹冲洖浜�', title: '椹冲洖浜�', sort: true, hide: true }
@@ -420,6 +426,17 @@
if (data.code == "0") {
layer.alert(data.Message, { icon: 5 });
hasPrivileage = false;
+ table.reload('mainTable', {
+ data: ajaxReturnData
+ , height: 'full-10'
+ , page: {
+ curr: _cur_page //蹇呴』浠庣 1 椤靛紑濮�
+ }
+ , loading: false
+ , done: function (index, res) {
+
+ }
+ });
return hasPrivileage;
}
},
@@ -433,10 +450,10 @@
var rows = '';
var HEntry = '';
for (var i = 0; i < data.length; i++) {
- if (data[i]["鏈叧鑱旀暟閲�"] == 0) {
- layer.msg("鍗曟嵁鍙�:" + data[i]["鍗曟嵁鍙�"] + "宸插叏閮ㄧ敓鎴愰�佽揣鍗曪紒", { icon: 5 });
- return;
- }
+ //if (data[i]["鏈叧鑱旀暟閲�"] == 0) {
+ // layer.msg("鍗曟嵁鍙�:" + data[i]["鍗曟嵁鍙�"] + "宸插叏閮ㄧ敓鎴愰�佽揣鍗曪紒", { icon: 5 });
+ // return;
+ //}
if (data[i]["鐘舵��"] == "宸茬‘璁�") {
rows += data[i].hmainid.toString() + ',' + data[i].hsubid.toString() + ';';
}
@@ -464,7 +481,7 @@
})
}
break;
-
+
case 'btn-barcode':
var checkStatus = table.checkStatus('mainTable')
, data = checkStatus.data;
@@ -624,8 +641,8 @@
sqlWhere += " and 鐘舵�� like ^^%" + $("#HStatus").val() + "%^^";
if ($("#HBillNo").val() != "")
sqlWhere += " and 鍗曟嵁鍙� like ^^%" + $("#HBillNo").val() + "%^^";
- if ($("#HShortNumber").val() != "")
- sqlWhere += " and 鐗╂枡缂栫爜 like ^^%" + $("#HShortNumber").val() + "%^^";
+ //if ($("#HShortNumber").val() != "")
+ // sqlWhere += " and 鐗╂枡缂栫爜 like ^^%" + $("#HShortNumber").val() + "%^^";
if ($("#HNumber").val() != "")
sqlWhere += " and 鐗╂枡浠g爜 like ^^%" + $("#HNumber").val() + "%^^";
if ($("#HName").val() != "")
@@ -634,22 +651,22 @@
sqlWhere += " and 瑙勬牸鍨嬪彿 like ^^%" + $("#HModel").val() + "%^^";
if ($("#HClStatus").val() != "")
sqlWhere += " and 鍏抽棴鐘舵�� like ^^%" + $("#HClStatus").val() + "%^^";
- if ($("#HPURCHASEORGID").val() != "")
- sqlWhere += " and 閲囪喘缁勭粐 like ^^%" + $("#HPURCHASEORGID").val() + "%^^";
- if ($("#HDate1").val() != "") {
- sqlWhere += " and 鏃ユ湡 >= ^^" + $("#HDate1").val() + "^^";
- }
- if ($("#HDate2").val() != "") {
- sqlWhere += " and 鏃ユ湡 <= ^^" + $("#HDate2").val() + "^^";
- }
- if ($("#HISGenerate").val() != "") {
- if ($("#HISGenerate").val() == "鏄�") {
- sqlWhere += " and 鏈叧鑱旀暟閲� <= 0";
- }
- else if ($("#HISGenerate").val() == "鍚�") {
- sqlWhere += " and 鏈叧鑱旀暟閲� > 0";
- }
- }
+ //if ($("#HPURCHASEORGID").val() != "")
+ // sqlWhere += " and 閲囪喘缁勭粐 like ^^%" + $("#HPURCHASEORGID").val() + "%^^";
+ //if ($("#HDate1").val() != "") {
+ // sqlWhere += " and 鏃ユ湡 >= ^^" + $("#HDate1").val() + "^^";
+ //}
+ //if ($("#HDate2").val() != "") {
+ // sqlWhere += " and 鏃ユ湡 <= ^^" + $("#HDate2").val() + "^^";
+ //}
+ //if ($("#HISGenerate").val() != "") {
+ // if ($("#HISGenerate").val() == "鏄�") {
+ // sqlWhere += " and 鏈叧鑱旀暟閲� <= 0";
+ // }
+ // else if ($("#HISGenerate").val() == "鍚�") {
+ // sqlWhere += " and 鏈叧鑱旀暟閲� > 0";
+ // }
+ //}
var Time = $("#Time").val();
--
Gitblit v1.9.1