From 9c65d511c0340561f7a72c0c1b381a6da44e00a5 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期五, 18 三月 2022 11:19:54 +0800
Subject: [PATCH] 叫料退料功能
---
WebTM/views/车间管理/叫料管理/叫料退料单/Jl_CallGoodsBillBackMain.html | 388 +++++++++++++++++++++++++++++++++++--------------------
1 files changed, 245 insertions(+), 143 deletions(-)
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/\345\217\253\346\226\231\351\200\200\346\226\231\345\215\225/Jl_CallGoodsBillBackMain.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/\345\217\253\346\226\231\351\200\200\346\226\231\345\215\225/Jl_CallGoodsBillBackMain.html"
index 5912146..457dfc0 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/\345\217\253\346\226\231\351\200\200\346\226\231\345\215\225/Jl_CallGoodsBillBackMain.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\217\253\346\226\231\347\256\241\347\220\206/\345\217\253\346\226\231\351\200\200\346\226\231\345\215\225/Jl_CallGoodsBillBackMain.html"
@@ -26,19 +26,19 @@
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label">寮�濮嬫棩鏈�</label>
+ <label class="layui-form-label">閫�鏂欐棩鏈�</label>
<div class="layui-input-block">
<input type="date" class="layui-input" id="HBeginDate" style="width:190px;">
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label">缁撴潫鏃ユ湡</label>
+ <label class="layui-form-label">-</label>
<div class="layui-input-block">
<input type="date" class="layui-input" id="HEndDate" style="width:190px;">
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label">鍗曟嵁鍙�</label>
+ <label class="layui-form-label">鎶ュ簾鍗曞彿</label>
<div class="layui-input-block">
<input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;">
</div>
@@ -47,49 +47,71 @@
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
</button>
<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
- <div class="layui-colla-content">
- <div class="layui-inline">
- <label class="layui-form-label">閮ㄩ棬</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="HDeptID" id="HDeptID" style="width:190px;">
+ <div class="layui-colla-content" style="margin-left: 4%;">
+ <div class="layui-row" style="margin-top:10px;">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐗╂枡浠g爜</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="MaterialNumber" name="MaterialNumber" id="MaterialNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnMaterial" id="btnMaterial" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鐗╂枡鍚嶇О</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="MaterialName" lay-verify="MaterialName" id="MaterialName" style="background-color:#efefef4d;" readonly>
+ <input type="hidden" name="MaterialID" id="MaterialID" lay-verify="MaterialID" value="0">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鐗╂枡瑙勬牸鍨嬪彿</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="MaterialModel" id="MaterialModel" onmouseover="this.title=this.value" readonly>
+ </div>
</div>
</div>
- <div class="layui-inline">
- <label class="layui-form-label">鐗╂枡浠g爜</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="MaterialCode" id="MaterialCode" style="width:190px;">
+ <div class="layui-row" style="margin-top:10px;">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐢熶骇杞﹂棿</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="HDeptName" lay-verify="HDeptName" id="HDeptName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHDept" id="btnHDept" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ユ</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="ProcMul" lay-verify="ProcMul" id="ProcMul" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnProcMul" id="btnProcMul" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">鍝佽川纭</label>
+ <div class="layui-input-block" style="margin-left: 120px;width: 184px;">
+ <select name="HPZStatus" lay-verify="HPZStatus" id="HPZStatus">
+ <option value="鍏ㄩ儴">鍏ㄩ儴</option>
+ <option value="宸茬‘璁�">宸茬‘璁�</option>
+ <option value="鏈‘璁�">鏈‘璁�</option>
+ </select>
+ </div>
</div>
</div>
- <!--<hr />-->
- <div class="layui-inline">
- <label class="layui-form-label">鐗╂枡鍚嶇О</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="MaterialName" id="MaterialName" style="width:190px;">
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">瑙勬牸鍨嬪彿</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="SpecificationModel" id="SpecificationModel" style="width:190px;">
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">鍙戞枡浠撳簱</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="Warehouse" id="Warehouse" style="width:190px;">
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">婧愬崟鍗曞彿</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="HSourceBillNo" id="HSourceBillNo" style="width:190px;">
- </div>
- </div>
-
- <div class="layui-inline">
- <label class="layui-form-label">鍒跺崟浜�</label>
- <div class="layui-input-block">
- <input type="text" class="layui-input" name="Hmaker" id="Hmaker" style="width:190px;">
+ <div class="layui-row" style="margin-top:10px;">
+ <div class="layui-inline">
+ <label class="layui-form-label">浠撳簱鎺ユ敹</label>
+ <div class="layui-input-block" style="margin-left: 120px;width: 184px;">
+ <select name="HCKStatus" lay-verify="HCKStatus" id="HCKStatus">
+ <option value="鍏ㄩ儴">鍏ㄩ儴</option>
+ <option value="宸叉帴鏀�">宸叉帴鏀�</option>
+ <option value="鏈帴鏀�">鏈帴鏀�</option>
+ </select>
+ </div>
</div>
</div>
</div>
@@ -98,16 +120,9 @@
<table class="" id="mainTable" lay-filter="mainTable"></table>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
- <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>鏂板</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>瀹℃牳</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>鍙嶅鏍�</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>鍒锋柊</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>閫�鍑�</button>-->
<button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
- <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button>
-
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="set_PZQRBill"><i class="layui-icon layui-icon-set"></i>鍝佽川纭</button>
+ <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CKJSBill"><i class="layui-icon layui-icon-set"></i>浠撳簱鎺ユ敹</button>
</div>
</script>
</form>
@@ -146,39 +161,41 @@
//#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛�
//#region 澶村伐鍏锋爮浜嬩欢
- table.on('toolbar(mainTable)', function (obj) {
+ table.on("toolbar(mainTable)", function (obj) {
switch (obj.event) {
- ////鏂板
- //case 'set_AddNew': set_AddNew();
- // break;
- ////缂栬緫
- //case 'set_ShowBill': set_ShowBill();
- // break;
//鍒犻櫎
case 'set_DeleteBill': set_DeleteBill();
break;
- ////鍒锋柊
- //case 'get_Refresh': get_Refresh();
- // break;
- ////閫�鍑烘寜閽�
- //case 'get_Exit': Pub_Close(2);
- // break;
};
});
//#endregion
//#region 鏌ヨ鎸夐挳
- form.on('submit(btnSearch)', function (data) {//閫夋嫨浠撲綅
+ form.on('submit(btnSearch)', function (data) {
get_FastQuery();
});
//#endregion
+
+ //閫夋嫨鐗╂枡
+ form.on('submit(btnMaterial)', function (data) {
+ btnMaterial();
+ })
+
+ //閫夋嫨鐢熶骇杞﹂棿
+ form.on('submit(btnHDept)', function (data) {
+ btnHDept();
+ })
+
+ //閫夋嫨宸ユ
+ form.on('submit(btnProcMul)', function (data) {
+ btnProcMul();
+ })
//閲嶇疆鎸夐挳
form.on('submit(btnReSearch)', function (data) {
set_ClearQuery();
});
-
//#endregion
//#region 姝ら〉闈㈡墍鏈夌殑鏂规硶
@@ -199,7 +216,7 @@
option = {
elem: '#mainTable'
, toolbar: '#toolbarDemo'
- , height: 'full-50'
+ , height: 570
, page: true
, cellMinWidth: 90
, limit: 50
@@ -225,53 +242,112 @@
, { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷', width: 170 }
, { field: '浣滃簾浜�', title: '浣滃簾浜�' }
, { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 200, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
- , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷', width: 170 }
- , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 170 }
- , { field: '婧愬崟鍙�', title: '婧愬崟鍙�', width: 170 }
- , { field: '鎵撳嵃娆℃暟', title: '鎵撳嵃娆℃暟', width: 170 }
- , { field: '閫�鏂欎汉浠g爜', title: '閫�鏂欎汉浠g爜', width: 170 }
- , { field: '閫�鏂欎汉', title: '閫�鏂欎汉', width: 170 }
- , { field: '閰嶉�佷汉浠g爜', title: '閰嶉�佷汉浠g爜', width: 170 }
- , { field: '閰嶉�佷汉', title: '閰嶉�佷汉', width: 170 }
- , { field: '淇濈浜轰唬鐮�', title: '淇濈浜轰唬鐮�', width: 170 }
- , { field: '淇濈浜�', title: '淇濈浜�', width: 170 }
- , { field: '閫�鏂欐ā寮�', title: '閫�鏂欐ā寮�', width: 170 }
- , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 170 }
- , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 170 }
- , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 170 }
- , { field: '閮ㄩ棬鍚嶇О', title: '閮ㄩ棬鍚嶇О', width: 170 }
- , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 170 }
- , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 170 }
- , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 215 }
- , { field: '鏁伴噺', title: '鏁伴噺', width: 170 }
- , { field: '宸ュ簭浠g爜', title: '宸ュ簭浠g爜', width: 170 }
- , { field: '宸ュ簭鍚嶇О', title: '宸ュ簭鍚嶇О', width: 170 }
- , { field: '璋冨叆浠撳簱浠g爜', title: '璋冨叆浠撳簱浠g爜', width: 170 }
- , { field: '璋冨叆浠撳簱鍚嶇О', title: '璋冨叆浠撳簱鍚嶇О', width: 170 }
- , { field: '璋冨嚭浠撳簱浠g爜', title: '璋冨嚭浠撳簱浠g爜', width: 170 }
- , { field: '璋冨嚭浠撳簱鍚嶇О', title: '璋冨嚭浠撳簱鍚嶇О', width: 170 }
- , { field: '璋冨叆浠撲綅鍚嶇О', title: '璋冨叆浠撲綅鍚嶇О', width: 170 }
- , { field: '璋冨嚭浠撲綅鍚嶇О', title: '璋冨嚭浠撲綅鍚嶇О', width: 170 }
- , { field: '鍝佽川鍒ゅ畾', title: '鍝佽川鍒ゅ畾', width: 170 }
- , { field: '閫�鏂欏師鍥�', title: '閫�鏂欏師鍥�', width: 170 }
- , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 170 }
- , { field: '渚涘簲鍟嗗悕绉�', title: '渚涘簲鍟嗗悕绉�', width: 170 }
+ , { field: '閫�鏂欎汉', title: '閫�鏂欎汉', width: 160 }
+ , { field: '鎼繍浜�', title: '鎼繍浜�', width: 160 }
+ , { field: '楠屾敹浜�', title: '楠屾敹浜�', width: 160 }
+ , { field: '璋冨嚭缁勭粐', title: '璋冨嚭缁勭粐', width: 160 }
+ , { field: '璋冨叆缁勭粐', title: '璋冨叆缁勭粐', width: 160 }
+ , { field: '閫�鏂欐ā寮�', title: '閫�鏂欐ā寮�', width: 160 }
+ , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 160 }
+ , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 160 }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 160 }
+ , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 160 }
+ , { field: '閫�鍥炴暟閲�', title: '閫�鍥炴暟閲�', width: 160 }
+ , { field: '浠撳簱浠g爜', title: '浠撳簱浠g爜', width: 160 }
+ , { field: '璋冨叆浠撳簱', title: '璋冨叆浠撳簱', width: 160 }
+ , { field: '璋冨叆浠撲綅', title: '璋冨叆浠撲綅', width: 160 }
+ , { field: '璋冨嚭浠撳簱', title: '璋冨嚭浠撳簱', width: 160 }
+ , { field: '璋冨嚭浠撲綅', title: '璋冨嚭浠撲綅', width: 160 }
+ , { field: '璐d换閮ㄩ棬浠g爜', title: '璐d换閮ㄩ棬浠g爜', width: 160 }
+ , { field: '璐d换閮ㄩ棬鍚嶇О', title: '璐d换閮ㄩ棬鍚嶇О', width: 160 }
]]
};
+ }
+
+ //閫夋嫨鐗╂枡
+ function btnMaterial() {
+ layer.open({
+ type: 2 //绫诲瀷
+ , skin: 'layui-layer-rim'//鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '鐗╂枡鍒楄〃'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_MaterialList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#MaterialName").val(checkStatus.data[0].HName);//鐗╂枡鍚嶇О
+ $("#MaterialModel").val(checkStatus.data[0].HModel);//鐗╂枡瑙勬牸鍨嬪彿
+ $("#MaterialNumber").val(checkStatus.data[0].HNumber);//鐗╂枡浠g爜
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+
+ //閫夋嫨鐢熶骇杞﹂棿
+ function btnHDept() {
+ layer.open({
+ type: 2 //绫诲瀷
+ , skin: 'layui-layer-rim'//鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '鐢熶骇杞﹂棿鍒楄〃'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HDeptName").val(checkStatus.data[0].HName);//閮ㄩ棬鍚嶇О
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+
+ //閫夋嫨宸ユ 鏆傛棤
+ function btnProcMul() {
+ layer.open({
+ type: 2 //绫诲瀷
+ , skin: 'layui-layer-rim'//鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '宸ユ鍒楄〃'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ //, content: ['../../Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#ProcMul").val(checkStatus.data[0].HName);//宸ユ鍚嶇О
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
}
//#region 閲嶇疆杩囨护鏉′欢鏂规硶
function set_ClearQuery() {
$("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//寮�濮嬫棩鏈�
$("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));//缁撴潫鏃ユ湡
- $("#HBillNo").val("");//鍗曟嵁鍙�
- $("#HDeptID").val("");//閮ㄩ棬
+ $("#HBillNo").val("");//鎶ュ簾鎹彿
$("#MaterialCode").val("");//鐗╂枡浠g爜
$("#MaterialName").val("");//鐗╂枡鍚嶇О
- $("#SpecificationModel").val("");//瑙勬牸鍨嬪彿
- $("#Warehouse").val("");//鍙戞枡浠撳簱
- $("#HSourceBillNo").val("");//婧愬崟鍗曞彿
- $("#Hmaker").val("");//鍒跺崟浜�
+ $("#MaterialModel").val("");//瑙勬牸鍨嬪彿
+ $("#HDeptName").val("");//鐢熶骇杞﹂棿
+ $("#ProcMul").val("");//宸ユ
$("#btnSearch").click();//鍒锋柊
sWhere = "";
@@ -305,52 +381,78 @@
//#region 蹇�熻繃婊�
function get_FastQuery() {
- var HBeginDate = $("#HBeginDate").val();//寮�濮嬫椂闂�
- var HEndDate = $("#HEndDate").val();//缁撴潫鏃堕棿
- var HBillNo = $("#HBillNo").val();//鍗曟嵁鍙�
- var HDeptID = $("#HDeptID").val();//閮ㄩ棬
- var MaterialCode = $("#MaterialCode").val();//鐗╂枡浠g爜
+ var HBeginDate = $("#HBeginDate").val();//閫�鏂欐棩鏈�
+ var HEndDate = $("#HEndDate").val();//閫�鏂欑粨鏉熸椂闂�
+ var HBillNo = $("#HBillNo").val();//鎶ュ簾鍗曞彿
+ var MaterialNumber = $("#MaterialNumber").val();//鐗╂枡浠g爜
var MaterialName = $("#MaterialName").val();//鐗╂枡鍚嶇О
- var SpecificationModel = $("#SpecificationModel").val();//瑙勬牸鍨嬪彿
- var Warehouse = $("#Warehouse").val();//鍙戞枡浠撳簱
- var HSourceBillNo = $("#HSourceBillNo").val();//婧愬崟鍗曞彿
- var Hmaker = $("#Hmaker").val();//鍒跺崟浜�
+ var MaterialModel = $("#MaterialModel").val();//瑙勬牸鍨嬪彿
+ var HDeptName = $("#HDeptName").val();//鐢熶骇杞﹂棿
+ var ProcMul = $("#ProcMul").val();//宸ユ
+ var Hmaker = sessionStorage["HUserName"];//褰撳墠鐢ㄦ埛
+ var HOrgID = sessionStorage["OrganizationID"];//缁勭粐
+ var HPZStatus = $("#HPZStatus").val();//鍝佽川纭
+ var HCKStatus = $("#HCKStatus").val();//浠撳簱鎺ユ敹
- if (HBeginDate) {
- sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
+ sWhere = {
+ HBeginDate: HBeginDate,
+ HEndDate: HEndDate,
+ HBillNo: HBillNo,
+ MaterialNumber: MaterialNumber,
+ MaterialName: MaterialName,
+ MaterialModel: MaterialModel,
+ HDeptName: HDeptName,
+ ProcMul: ProcMul,
+ Hmaker: Hmaker,
+ HOrgID: HOrgID,
+ HPZStatus: HPZStatus,
+ HCKStatus: HCKStatus
}
- if (HEndDate) {
- sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
- }
- if (HBillNo) {
- sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
- }
- if (HDeptID) {
- sWhere += " and 閮ㄩ棬鍚嶇О like '%" + HDeptID + "%'";
- }
- if (MaterialCode) {
- sWhere += " and 鐗╂枡浠g爜 like '%" + MaterialCode + "%'";
- }
- if (MaterialName) {
- sWhere += " and 鐗╂枡鍚嶇О like '%" + MaterialName + "%'";
- }
- if (SpecificationModel) {
- sWhere += " and 瑙勬牸鍨嬪彿 like '%" + SpecificationModel + "%'";
- }
- if (Warehouse) {
- sWhere += " and 璋冨叆浠撳簱鍚嶇О like '%" + Warehouse + "%'";
- }
- if (HSourceBillNo) {
- sWhere += " and 婧愬崟鍗曞彿 like '%" + HSourceBillNo + "%'";
- }
- if (Hmaker) {
- sWhere += " and 鍒跺崟浜� like '%" + Hmaker + "%'";
- }
- get_Display(sWhere);
+
+ get_Display(JSON.stringify(sWhere));
sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
}
//#endregion
+ //鍒犻櫎
+ function set_DeleteBill() {
+ var CheckStatus = table.checkStatus("mainTable");
+
+ if (CheckStatus.data.length != 1) {
+ return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�!")
+ } else {
+ layer.confirm('鎮ㄧ‘瀹氳鍒犻櫎鍚楋紵', {
+ btn: ['纭畾', '鍙栨秷'] //鎸夐挳
+ , btn1: function () {
+ var HInterID = CheckStatus.data[0].hmainid; //鑾峰彇缂栧彿
+ var HEntryID = CheckStatus.data[0].hsubid; //鑾峰彇绗嚑鏉″瓙鏁版嵁
+
+ $.ajax({
+ url: GetWEBURL() + '/Cj_CallGoodsBillBack/DelCallGoodsBill'
+ , type: "GET"
+ , data: { "HInterID": HInterID, "HEntryID": HEntryID, "User": sessionStorage["HUserName"] }
+ , success: function (result) {
+ if (result.count == 1) {
+ layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+ // 寰楀埌frame绱㈠紩
+ var index = layer.getFrameIndex(window.name);
+ //鍏抽棴褰撳墠frame
+ layer.close(index);
+ //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+ window.location.reload();
+ ////閲嶈浇tree
+ //tree.reload('treeDepartment', {});
+ });
+ } else {
+ layer.alert(result.code + result.Message, { icon: 5 });
+ }
+ }
+ })
+ }
+ })
+ }
+ }
+
//#endregion
//浠ヤ笂鏄痩ayui妯″潡
--
Gitblit v1.9.1