From f3ce4485cd37eb7c3bcf16fde86a7f149974c4b6 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期五, 20 三月 2026 09:51:50 +0800
Subject: [PATCH] #检查导出功能: 1.商品档案无异常 2.库存明细管理(异常)已修复 3.库存明细统计无异常 4.工作档查询维护无异常 5.工作档明细查询无异常 6.工作历史档查询无异常 7.工作明细历史档查询无异常 8.入库通知历史档无异常 9.库存移动流水记录(异常)已修复 10.机台工位绑定无异常 11.库存调整记录无异常 12.工作档维护日志(异常)已修复 13.操作日志无异常
---
src/main/webapp/static/js/docType/docType.js | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/docType/docType.js b/src/main/webapp/static/js/docType/docType.js
index 1506fbb..55a7e40 100644
--- a/src/main/webapp/static/js/docType/docType.js
+++ b/src/main/webapp/static/js/docType/docType.js
@@ -1,4 +1,5 @@
var pageCurr;
+var tableData;
layui.config({
base: baseUrl + "/static/layui/lay/modules/"
}).use(['table','laydate', 'form', 'admin'], function(){
@@ -24,6 +25,8 @@
{type: 'checkbox'}
,{field: 'docId', align: 'center',title: '绫诲瀷缂栧彿'}
,{field: 'docName', align: 'center',title: '绫诲瀷鍚嶇О'}
+ ,{field: 'pakin', align: 'center',title: '鍏ュ簱', templet: '#pakinTpl', width: 120, unresize: true}
+ ,{field: 'pakout', align: 'center',title: '鍑哄簱', templet: '#pakoutTpl', width: 120, unresize: true}
,{field: 'status$', align: 'center',title: '鐘舵��'}
// ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳'}
// ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
@@ -52,6 +55,7 @@
if (res.code === 403) {
top.location.href = baseUrl+"/";
}
+ tableData = table.cache.docType;
pageCurr=curr;
limit();
}
@@ -71,6 +75,24 @@
});
});
+ form.on('switch(pakinSwitch)', function (obj) {
+ let index = obj.othis.parents('tr').attr("data-index");
+ let data = tableData[index];
+ data[this.name] = obj.elem.checked?1:0;
+ http.post(baseUrl+"/docType/update/auth", {docId: data.docId, pakin: data[this.name]}, function (res) {
+ layer.msg(res.msg, {icon: 1});
+ })
+ })
+
+ form.on('switch(pakoutSwitch)', function (obj) {
+ let index = obj.othis.parents('tr').attr("data-index");
+ let data = tableData[index];
+ data[this.name] = obj.elem.checked?1:0;
+ http.post(baseUrl+"/docType/update/auth", {docId: data.docId, pakout: data[this.name]}, function (res) {
+ layer.msg(res.msg, {icon: 1});
+ })
+ })
+
// 鐩戝惉澶村伐鍏锋爮浜嬩欢
table.on('toolbar(docType)', function (obj) {
var checkStatus = table.checkStatus(obj.config.id).data;
--
Gitblit v1.9.1