diff --git a/admin-assistant/src/main/resources/template/js/gw/gwDocumentSeeList.js b/admin-assistant/src/main/resources/template/js/gw/gwDocumentSeeList.js
new file mode 100644
index 0000000000000000000000000000000000000000..65819a5803b55d0bc2e3da6eb0b094b6a617f446
--- /dev/null
+++ b/admin-assistant/src/main/resources/template/js/gw/gwDocumentSeeList.js
@@ -0,0 +1,70 @@
+
+layui.config({
+ base: basePath,
+ version: skyeyeVersion
+}).extend({
+ window: 'js/winui.window'
+}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
+ winui.renderColor();
+ var $ = layui.$,
+ form = layui.form,
+ table = layui.table;
+
+ // 加载列表数据权限
+ loadAuthBtnGroup('messageTable', '1714464811697');
+
+ table.render({
+ id: 'messageTable',
+ elem: '#messageTable',
+ method: 'post',
+ url: sysMainMation.admBasePath + 'queryGwSendDocumentList',
+ where: getTableParams(),
+ even: true,
+ page: true,
+ limits: getLimits(),
+ limit: getLimit(),
+ cols: [[
+ { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
+ { field: 'title', title: '标题', width: 300 },
+ { field: 'sendDepartmentMation', title: '发文部门', width: 150, templet: function (d) {
+ return d.sendDepartmentMation?.name;
+ }},
+ { field: 'year', title: '年份', align: 'center', width: 100 },
+ { field: 'number', title: '第几号文', align: 'center', width: 100 },
+ { field: 'enterprise', title: '企字', align: 'center', width: 100 },
+ { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
+ { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 150, toolbar: '#messageTableBar' }
+ ]],
+ done: function(json) {
+ matchingLanguage();
+ initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入标题", function () {
+ table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
+ });
+ }
+ });
+
+ // 操作事件
+ table.on('tool(messageTable)', function (obj) {
+ var data = obj.data;
+ var layEvent = obj.event;
+ if (layEvent === 'preview') {//预览
+ systemCommonUtil.showPicImg(systemCommonUtil.getFilePath(data.picPath));
+ } else if (layEvent === 'download') {//下载
+ download(fileBasePath + data.path, data.title);
+ }
+ });
+
+ form.render();
+ $("body").on("click", "#reloadTable", function() {
+ loadTable();
+ });
+ function loadTable() {
+ table.reloadData("messageTable", {where: getTableParams()});
+ }
+
+ function getTableParams() {
+ return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
+ }
+
+ exports('gwDocumentSeeList', {});
+});
diff --git a/admin-assistant/src/main/resources/template/js/gw/gwSendDocumentList.js b/admin-assistant/src/main/resources/template/js/gw/gwSendDocumentList.js
index d9bc91b34ebcdb8865ad8e7d7345211c738f93ab..43bac0c0813241dbfd96c38439c9ecfb25e97723 100644
--- a/admin-assistant/src/main/resources/template/js/gw/gwSendDocumentList.js
+++ b/admin-assistant/src/main/resources/template/js/gw/gwSendDocumentList.js
@@ -12,6 +12,9 @@ layui.config({
var serviceClassName = sysServiceMation["gwSendDocumentService"]["key"];
authBtn('1714130289379');
+
+ // 加载列表数据权限
+ loadAuthBtnGroup('messageTable', '1714130296761');
table.render({
id: 'messageTable',
@@ -54,7 +57,7 @@ layui.config({
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
- { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#messageTableBar' }
+ { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 280, toolbar: '#messageTableBar' }
]],
done: function(json) {
matchingLanguage();
@@ -80,7 +83,11 @@ layui.config({
cancellation(data);
} else if (layEvent === 'revoke') {//撤销
revoke(data);
- }
+ } else if (layEvent === 'preview') {//预览
+ systemCommonUtil.showPicImg(systemCommonUtil.getFilePath(data.picPath));
+ } else if (layEvent === 'download') {//下载
+ download(fileBasePath + data.path, data.title);
+ }
});
// 撤销
@@ -149,7 +156,7 @@ layui.config({
}
});
}
-
+
// 添加
$("body").on("click", "#addBean", function() {
_openNewWindows({
diff --git a/admin-assistant/src/main/resources/template/tpl/gw/gwDocumentSeeList.html b/admin-assistant/src/main/resources/template/tpl/gw/gwDocumentSeeList.html
new file mode 100644
index 0000000000000000000000000000000000000000..dcc627ed9eaf6fbfd949f27c2f1ba12974097554
--- /dev/null
+++ b/admin-assistant/src/main/resources/template/tpl/gw/gwDocumentSeeList.html
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin-assistant/src/main/resources/template/tpl/gw/gwSendDocumentList.html b/admin-assistant/src/main/resources/template/tpl/gw/gwSendDocumentList.html
index 551c986bdd62b5271c4a8cfe8ecd878b17516bd8..53192d478b4f64f2223119e7ebe50f5fdefa158f 100644
--- a/admin-assistant/src/main/resources/template/tpl/gw/gwSendDocumentList.html
+++ b/admin-assistant/src/main/resources/template/tpl/gw/gwSendDocumentList.html
@@ -32,6 +32,8 @@
撤销
{{# } }}
{{# } }}
+ 预览
+ 下载
diff --git a/erp/src/main/resources/template/js/otherOutlets/otherOutletsList.js b/erp/src/main/resources/template/js/otherOutlets/otherOutletsList.js
index 80bf6a6981e84904d4786e82765d917e9f4689a8..47706bb0fcea990155a84066d2a6bf176d38b234 100644
--- a/erp/src/main/resources/template/js/otherOutlets/otherOutletsList.js
+++ b/erp/src/main/resources/template/js/otherOutlets/otherOutletsList.js
@@ -28,7 +28,7 @@ layui.config({
return '' + d.oddNumber + '';
}},
{ field: 'holderMation', title: '客户', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },
diff --git a/erp/src/main/resources/template/js/otherWarehous/otherWarehousList.js b/erp/src/main/resources/template/js/otherWarehous/otherWarehousList.js
index ae6573c0cd4f27290dfe33675bae74cdbd0345e7..1949383ac14af8a6d296b4b97156119402fca564 100644
--- a/erp/src/main/resources/template/js/otherWarehous/otherWarehousList.js
+++ b/erp/src/main/resources/template/js/otherWarehous/otherWarehousList.js
@@ -28,7 +28,7 @@ layui.config({
return '' + d.oddNumber + '';
}},
{ field: 'holderMation', title: '供应商', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },
diff --git a/erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js b/erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js
index 0c7cad049d2099aa36718d4844d0a5bb4fa596d9..7087cbcf2c3393c07e0a5a6fdffa0c2fc9a113c3 100644
--- a/erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js
+++ b/erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js
@@ -28,7 +28,7 @@ layui.config({
return '' + d.oddNumber + '';
}},
{ field: 'holderMation', title: '供应商', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },
diff --git a/erp/src/main/resources/template/js/purchasePut/purchasePutList.js b/erp/src/main/resources/template/js/purchasePut/purchasePutList.js
index e3e48310ea6435219c8f94a70c054e21dac69e2c..35e8740f97461bb197ed8807ae54c6a4b810fadb 100644
--- a/erp/src/main/resources/template/js/purchasePut/purchasePutList.js
+++ b/erp/src/main/resources/template/js/purchasePut/purchasePutList.js
@@ -32,7 +32,7 @@ layui.config({
return str;
}},
{ field: 'holderMation', title: '供应商', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },
diff --git a/erp/src/main/resources/template/js/purchaseReturns/purchaseReturnsList.js b/erp/src/main/resources/template/js/purchaseReturns/purchaseReturnsList.js
index 67aaed8c7695a5b4fe1bee7205c105efdca1539f..8980679c1f556e383ed305394b1716c3ab13af57 100644
--- a/erp/src/main/resources/template/js/purchaseReturns/purchaseReturnsList.js
+++ b/erp/src/main/resources/template/js/purchaseReturns/purchaseReturnsList.js
@@ -28,7 +28,7 @@ layui.config({
return '' + d.oddNumber + '';
}},
{ field: 'holderMation', title: '供应商', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },
diff --git a/erp/src/main/resources/template/js/salesOrder/salesOrderChoose.js b/erp/src/main/resources/template/js/salesOrder/salesOrderChoose.js
index a13a116d93601383ccea4399aaa59932320cd083..f1c532c479e2bde396af66316965d628730ae965 100644
--- a/erp/src/main/resources/template/js/salesOrder/salesOrderChoose.js
+++ b/erp/src/main/resources/template/js/salesOrder/salesOrderChoose.js
@@ -74,9 +74,9 @@ layui.config({
cols: [[
{ type: 'radio'},
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
- { field: 'name', title: '产品名称', align: 'left',width: 150, templet: function (d) {return d.materialMation.name}},
- { field: 'model', title: '产品型号', align: 'left',width: 150, templet: function (d) {return d.materialMation.model}},
- { field: 'norms', title: '产品规格', align: 'left',width: 150, templet: function (d) {return d.normsMation.name}},
+ { field: 'name', title: '产品名称', align: 'left',width: 150, templet: function (d) {return d.materialMation?.name}},
+ { field: 'model', title: '产品型号', align: 'left',width: 150, templet: function (d) {return d.materialMation?.model}},
+ { field: 'norms', title: '产品规格', align: 'left',width: 150, templet: function (d) {return d.normsMation?.name}},
{ field: 'operNumber', title: '数量', align: 'left', width: 80 },
{ field: 'unitPrice', title: '单价', align: 'left', width: 120 },
{ field: 'allPrice', title: '金额', align: 'left', width: 80 },
diff --git a/erp/src/main/resources/template/js/salesOrder/salesOrderList.js b/erp/src/main/resources/template/js/salesOrder/salesOrderList.js
index 9e58e699793fab031d421bb6a2cd10632e272db2..22dfa30c1aea067eeffa707f57251370d9ec4f6f 100644
--- a/erp/src/main/resources/template/js/salesOrder/salesOrderList.js
+++ b/erp/src/main/resources/template/js/salesOrder/salesOrderList.js
@@ -28,7 +28,7 @@ layui.config({
return '' + d.oddNumber + '';
}},
{ field: 'holderMation', title: '客户', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },
diff --git a/erp/src/main/resources/template/js/salesOutlet/salesOutletList.js b/erp/src/main/resources/template/js/salesOutlet/salesOutletList.js
index 377213b7550299352996416268c197f1c8394c65..081d61a1c7b2ca4393854e3395d8478c783c45c2 100644
--- a/erp/src/main/resources/template/js/salesOutlet/salesOutletList.js
+++ b/erp/src/main/resources/template/js/salesOutlet/salesOutletList.js
@@ -32,7 +32,7 @@ layui.config({
return str;
}},
{ field: 'holderMation', title: '客户', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },
diff --git a/erp/src/main/resources/template/js/salesReturns/salesReturnsList.js b/erp/src/main/resources/template/js/salesReturns/salesReturnsList.js
index 2f1b6ddd7f65bbd66738fe4959ed36f24a24bb1d..073ed1c0d4116ae9baee8399a5e4c6f0c4ad16b4 100644
--- a/erp/src/main/resources/template/js/salesReturns/salesReturnsList.js
+++ b/erp/src/main/resources/template/js/salesReturns/salesReturnsList.js
@@ -32,7 +32,7 @@ layui.config({
return str;
}},
{ field: 'holderMation', title: '客户', align: 'left', width: 150, templet: function (d) {
- return d.holderMation.name;
+ return d.holderMation?.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 140 },