From 630b593ef3d2261e6040407a1aa6b957864f4d29 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 07 九月 2023 11:19:07 +0800
Subject: [PATCH] 工作任务维护列表:增加 项目名称
---
WebTM/views/Baseset/基础资料/WMSBarCodeDetailsList.html | 58 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 29 insertions(+), 29 deletions(-)
diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/WMSBarCodeDetailsList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/WMSBarCodeDetailsList.html"
index c289781..78018c8 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/WMSBarCodeDetailsList.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/WMSBarCodeDetailsList.html"
@@ -24,7 +24,7 @@
<form class="layui-form" action="" lay-filter="component-form-group">
<div class="layui-form-item">
<div class="layui-inline">
- <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">杩斿洖</button>
+ <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="FH">杩斿洖</button>-->
<button type="button" lay-submit="" class="layui-btn" lay-filter="Exit">閫�鍑�</button>
</div>
</div>
@@ -34,7 +34,7 @@
</div>
</div>
</div>
- <table class="layui-hide" id="mainTable"></table>
+ <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
<script type="text/html" id="barDemo">
<!--<a class="layui-btn layui-btn-xs" lay-event="edit">缂栬緫</a>-->
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
@@ -70,12 +70,10 @@
return vars;
}
var params = getUrlVars();
- //var HInterID = params[params[0]];
- //var HBillType = params[params[2]];
- var HInterID = 367;
- var HBillType = "3789";
+ var HInterID = params[params[0]];
+ var HBillType = params[params[1]];
form.on('submit(FH)', function () {
- var checkStatus = table.checkStatus('ck-table')
+ var checkStatus = table.checkStatus('mainTable')
, data = checkStatus.data;
parent.GetHKeeperValue(data);
var index = parent.layer.getFrameIndex(window.name);
@@ -90,6 +88,7 @@
elem: '#mainTable'
// , url: '/demo/table/user/'
, toolbar: '#toolbarDemo'
+ , height: 'full-1000'
, data: []
, cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
, cols: [[
@@ -104,9 +103,11 @@
, { field: 'HQtyMust', width: 150, title: '搴旀敹鏁伴噺' }
, { field: 'HBatchNo', width: 150, title: '鎵规' }
, { field: 'HPieceQty', width: 150, title: '浠舵暟' }
- , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo' }
+ , { fixed: 'right', width: 70, title: '鎿嶄綔', toolbar: '#barDemo' }
]]
, page: true
+ , limits: [50, 500, 5000, 50000]
+ , limit: 50
});
///鍔犺浇鏄剧ず鏁版嵁
function RoadQuery(HInterID, HBillType) {
@@ -119,7 +120,7 @@
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
table.reload('mainTable', {
data: ajaxReturnData
- , height: 'full-10'
+ , height: 'full-1000'
, loading: false
, done: function (index, res) {
@@ -137,27 +138,26 @@
table.on('tool(mainTable)', function (obj) {
var data = obj.data;
if (obj.event === 'del') {
- var _obj = obj;
- $.ajax({
- type: "get",
- url: GetWEBURL() + "/Web/GetWMSBarCodeDetailsList",
- async: true,
- data: { "HInterID": HInterID, "HBillType": HBillType },
- success: function (result) {
- ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
- table.reload('mainTable', {
- data: ajaxReturnData
- , height: 'full-10'
- , loading: false
- , done: function (index, res) {
-
+ layer.confirm('鐪熺殑鍒犻櫎琛屼箞', function (index) {
+ $.ajax({
+ url: GetWEBURL() + '/Web/DelCacheList',
+ type: "GET",
+ data: { "sHitemID": data.HitemID },
+ success: function (data) {
+ if (data.count == 1) {
+ layer.close(index);
+ obj.del(); //鍒犻櫎瀵瑰簲琛岋紙tr锛夌殑DOM缁撴瀯
+ layer.msg('鍒犻櫎鎴愬姛');
+ } else {
+ layer.alert(data.code + data.msg, { icon: 5 });
}
- });
- },
- error: function (result) {
- console.log(result);
- //layer.msg('鑾峰彇閲囪喘璁㈠崟鍑虹幇寮傚父', { icon: 2, time: 2000 });
- }
+ }, error: function () {
+ layer.msg("鎺ュ彛璇锋眰澶辫触!", {
+ icon: 5, btn: ['纭'], time: 100000, offset: 't',
+ skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず"
+ });
+ }
+ });
});
}
});
--
Gitblit v1.9.1