From 76f00b77750036dedfcf3d2d1240c685054c5989 Mon Sep 17 00:00:00 2001
From: liuxiaoxu <1793812695@qq.com>
Date: Tue, 22 Oct 2024 14:12:23 +0800
Subject: [PATCH] =?UTF-8?q?[fix]=20=E6=8C=89=E7=85=A7=E4=B8=87=E6=9D=90?=
=?UTF-8?q?=E8=A6=81=E6=B1=82=EF=BC=9A=E8=B0=83=E6=95=B4=E7=89=A9=E6=96=99?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E8=A1=A8=E5=A4=B4=E7=9A=84?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E5=B8=83=E5=B1=80=20=E7=89=A9=E6=96=99?=
=?UTF-8?q?=E6=8F=8F=E8=BF=B0=E5=AD=97=E6=AE=B5=E6=96=B0=E5=A2=9E=E8=B6=85?=
=?UTF-8?q?=E8=BF=875=E4=B8=AA=E6=B1=89=E5=AD=97=E7=9C=81=E7=95=A5?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E6=A0=B7=E5=BC=8F=20=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E7=89=A9=E6=96=99=E7=9A=84=E6=93=8D=E4=BD=9C=E6=A0=8F?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E5=BC=95=E7=94=A8$.table.dropdownTo?=
=?UTF-8?q?ggle=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../templates/erp/material/material.html | 99 ++++++++++---------
1 file changed, 53 insertions(+), 46 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/material.html b/ruoyi-admin/src/main/resources/templates/erp/material/material.html
index b3d99e35..c5773025 100644
--- a/ruoyi-admin/src/main/resources/templates/erp/material/material.html
+++ b/ruoyi-admin/src/main/resources/templates/erp/material/material.html
@@ -80,15 +80,15 @@
@@ -140,39 +140,6 @@
columns: [
{checkbox: true},
{title: '主键ID',field: 'id',visible: false},
- {title: '当前状态',field: 'taskStatus',align: 'center',
- formatter: function(value, row, index) {
- if(row.auditStatus!="1"&&value != "未启动"){
- return '
' + value + '';
- }
- if(value === "未启动"){
- return '
' + value + '';
- }
- return '
' + value + '';}
- },
- {title: '料号',field: 'materialNo',},
- {title: '物料名称',field: 'materialName',},
- {title: '描述',field: 'describe',},
- {title: '品牌',field: 'brand',},
- {title: '加工方式',field: 'processMethod',
- formatter: function(value, row, index) {
- return $.table.selectDictLabel(processMethodDatas, value);
- }
- },
- {title: '单位',field: 'unit',},
- {title: '图片',field: 'photoUrl',
- formatter: function(value, row, index) {
- return $.table.imageView(value);
- }
- },
- {title: '使用状态',field: 'useStatus',
- formatter: function(value, row, index) {return $.table.selectDictLabel(useStatusDatas, value);}
- },
- {title: '
申请人',field: 'applyUserName',
- formatter: function(value, row, index) {return '
' + (value ? value : "-") + '';}
- },
- {title: '申请时间',field: 'applyTime',sortable: true,},
- {title: '上次更新时间',field: 'updateTime',},
{title: '当前任务名称',field: 'taskName',visible: false},
{title: '流程实例ID',field: 'instanceId',visible: false},
{title: '流程提交实例ID',field: 'submitInstanceId',visible: false},
@@ -196,45 +163,85 @@
},
{title: '技术团队id',field: 'productItem',visible: false,},
{title: '技术团队名称',field: 'itemName',visible: false},
- {title: '录入时间',field: 'createTime',sortable: true},
{title: '更新人',field: 'updateBy',visible: false},
{title: '删除标志', field: 'delFlag',visible: false},
{title: '入库部门', field: 'warehouseDept',visible: false,
formatter: function(value, row, index) {return $.table.selectDictLabel(warehouseDeptDatas, value);}
},
+
+
+ {title: '当前状态',field: 'taskStatus',align: 'center',
+ formatter: function(value, row, index) {
+ if(row.auditStatus!="1"&&value != "未启动"){
+ return '
' + value + '';
+ }
+ if(value === "未启动"){
+ return '
' + value + '';
+ }
+ return '
' + value + '';}
+ },
+ {title: '料号',field: 'materialNo',align: 'center'},
+ {title: '物料名称',field: 'materialName',align: 'center'},
+ {title: '描述',field: 'describe',align: 'center',
+ formatter: function(value, row, index) {
+ return $.table.tooltip(value, 10, "open");
+ }
+ },
+ {title: '品牌',field: 'brand',align: 'center'},
+ {title: '加工方式',field: 'processMethod',align: 'center',
+ formatter: function(value, row, index) {
+ return $.table.selectDictLabel(processMethodDatas, value);
+ }
+ },
+ {title: '单位',field: 'unit',align: 'center'},
+ {title: '图片',field: 'photoUrl',align: 'center',
+ formatter: function(value, row, index) {
+ return $.table.imageView(value);
+ }
+ },
+ {title: '使用状态',field: 'useStatus',align: 'center',
+ formatter: function(value, row, index) {return $.table.selectDictLabel(useStatusDatas, value);}
+ },
+ {title: '
申请人',field: 'applyUserName',align: 'center',
+ formatter: function(value, row, index) {return '
' + (value ? value : "-") + '';}
+ },
+ {title: '申请时间',field: 'applyTime',align: 'center',sortable: true,},
+ {title: '录入时间',field: 'createTime',align: 'center',sortable: true},
+ {title: '上次更新时间',field: 'updateTime',align: 'center'},
{title: '操作',align: 'center',
formatter: function(value, row, index) {
var actions = [];
// 审核状态-审核通过 使用状态-是 未发起作废流程
if(row.auditStatus=="1" && row.useStatus=="1" && !row.cancelInstanceId){
// 作废
- actions.push('
作废');
+ actions.push('
作废');
// 编辑
- actions.push('
编辑 ');
+ actions.push('
编辑 ');
}
// 已作废
if(row.useStatus=="2" && !row.restoreInstanceId){
// 恢复
- actions.push('
恢复 ');
+ actions.push('
恢复 ');
}
// 有流程实例id
if (row.instanceId) {
// 审批历史
- actions.push('
审批历史 ');
+ actions.push('
审批历史 ');
// 进度查看
- actions.push('
进度查看 ');
+ actions.push('
进度查看 ');
// 有待办人展示审批按钮,
if (row.todoUserId) {
var todoUserIdList = row.todoUserId.split(",");
if(todoUserIdList.includes(loginName) || todoUserIdList.includes("admin")){
var nodeName = row.taskName=='驳回调整'?' 调整申请':' 审批';
- actions.push('
'+nodeName+' ');
+ actions.push('
'+nodeName+' ');
}
}
}
// 详情
- actions.push('
详情 ');
- return actions.join('');
+ actions.push('
详情 ');
+ var actionLinks = actions.join('');
+ return $.table.dropdownToggle(actionLinks);
}
}
],