Browse Source

[feat]物料信息:修改物料信息中加工方式字段名改为半成品类型,将物料中技术团队相关的字段隐藏。

dev
zhangsiqi 6 months ago
parent
commit
1aca117149
  1. 2
      ruoyi-admin/src/main/resources/templates/erp/bom/taskGcjlVerify.html
  2. 2
      ruoyi-admin/src/main/resources/templates/erp/bom/taskGczgVerify.html
  3. 2
      ruoyi-admin/src/main/resources/templates/erp/bom/taskModifyApply.html
  4. 247
      ruoyi-admin/src/main/resources/templates/erp/material/material.html
  5. 2
      ruoyi-admin/src/main/resources/templates/erp/material/select.html
  6. 2
      ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html
  7. 2
      ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html
  8. 2
      ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html

2
ruoyi-admin/src/main/resources/templates/erp/bom/taskGcjlVerify.html

@ -62,7 +62,7 @@
<input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden /> <input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden />
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">加工方式</label> <label class="col-sm-3 control-label">半成品类型</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled> <select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>

2
ruoyi-admin/src/main/resources/templates/erp/bom/taskGczgVerify.html

@ -62,7 +62,7 @@
<input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden /> <input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden />
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">加工方式</label> <label class="col-sm-3 control-label">半成品类型</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled> <select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>

2
ruoyi-admin/src/main/resources/templates/erp/bom/taskModifyApply.html

@ -63,7 +63,7 @@
<input type="text" id="materialType" name="materialType" th:field="*{materialType}" hidden /> <input type="text" id="materialType" name="materialType" th:field="*{materialType}" hidden />
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">加工方式</label> <label class="col-sm-3 control-label">半成品类型</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" > <select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" >
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>

247
ruoyi-admin/src/main/resources/templates/erp/material/material.html

@ -72,7 +72,7 @@
</li> </li>
<!-- <li> <!-- <li>
<label>加工方式</label> <label>半成品类型</label>
<select name="processMethod" th:with="type=${@dict.getType('processMethod')}"> <select name="processMethod" th:with="type=${@dict.getType('processMethod')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
@ -170,190 +170,63 @@
modalName: "物料信息", modalName: "物料信息",
fixedColumns: true, // 启用冻结列 fixedColumns: true, // 启用冻结列
fixedRightNumber: 1, // 冻结右列个数 fixedRightNumber: 1, // 冻结右列个数
columns: [{ columns: [
checkbox: true {checkbox: true},
}, {title: '主键ID',field: 'id',visible: false},
{ {title: '流程实例ID',field: 'instanceId',visible: false},
field: 'id', {title: '流程提交实例ID',field: 'submitInstanceId',visible: false},
title: '主键ID', {title: '流程作废实例ID',field: 'cancelInstanceId',visible: false},
visible: false {title: '流程恢复实例ID',field: 'restoreInstanceId',visible: false},
}, {title: '流程实例类型',field: 'instanceTypeName',visible: false},
{ {title: '申请人ID',field: 'applyUser',visible: false},
field: 'instanceId', {title: '<span style="color: red;">申请人</span>',field: 'applyUserName',
title: '流程实例ID', formatter: function(value, row, index) {return '<span style="color: red;">' + (value ? value : "-") + '</span>';}
visible: false },
}, {title: '申请时间',field: 'applyTime',},
{ {title: '当前任务ID',field: 'taskId',visible: false},
field: 'submitInstanceId', {title: '待办用户ID',field: 'todoUserId', visible: false},
title: '流程提交实例ID', {title: '当前任务名称',field: 'taskName',align: 'center',
visible: false formatter: function(value, row, index) {return '<span class="badge badge-primary">' + value + '</span>';}
}, },
{ {title: '审核状态',field: 'auditStatus',
field: 'cancelInstanceId', formatter: function(value, row, index) {return $.table.selectDictLabel(auditStatusDatas, value);}
title: '流程作废实例ID', },
visible: false {title: '使用状态',field: 'useStatus',
}, formatter: function(value, row, index) {return $.table.selectDictLabel(useStatusDatas, value);}
{ },
field: 'restoreInstanceId', {title: '工程员',field: 'businessMembers',visible: false},
title: '流程恢复实例ID', {title: '工程员',field: 'createUserName',visible: false},
visible: false {title: '料号',field: 'materialNo',},
}, {title: '关联bom号',field: 'bomNo',},
{ {title: '图片',field: 'photoUrl',
field: 'instanceTypeName', formatter: function(value, row, index) {return $.table.imageView(value);}
title: '流程实例类型', },
visible: false {title: '物料名称',field: 'materialName',},
}, {title: '物料类型',field: 'materialType',
{ formatter: function(value, row, index) {return $.table.selectCategoryLabel(materialTypeDatas, value);}
field: 'applyUser', },
title: '申请人ID', {title: '单位',field: 'unit',
visible: false formatter: function(value, row, index) {return $.table.selectDictLabel(sysUnitClassDatas, value);}
}, },
{ {title: '品牌',field: 'brand',},
field: 'applyUserName', {title: '描述',field: 'describe',},
title: '<span style="color: red;">申请人</span>', {title: '是否有技术团队',field: 'havaProductTem',visible: false,
formatter: function(value, row, index) { formatter:function (value, row, index){return $.table.selectDictLabel(haveProductTem,value);}
return '<span style="color: red;">' + (value ? value : "-") + '</span>'; },
} {title: '技术团队id',field: 'productItem',visible: false,},
}, {title: '技术团队名称',field: 'itemName',visible: false},
{ {title: '供应商',field: 'supplierName',},
field: 'applyTime', {title: '录入时间',field: 'createTime',},
title: '申请时间' {title: '更新人',field: 'updateBy',},
}, {title: '上次更新时间',field: 'updateTime',},
{ {title: '删除标志', field: 'delFlag',visible: false},
field: 'taskId', {title: '半成品类型',field: 'processMethod',
title: '当前任务ID', formatter: function(value, row, index) {return $.table.selectDictLabel(processMethodDatas, value);}
visible: false },
}, {title: '入库部门', field: 'warehouseDept',
{ formatter: function(value, row, index) {return $.table.selectDictLabel(warehouseDeptDatas, value);}
field: 'todoUserId', },
title: '待办用户ID', {title: '操作',align: 'center',
visible: false
},
{
field: 'taskName',
title: '当前任务名称',
align: 'center',
formatter: function(value, row, index) {
return '<span class="badge badge-primary">' + value + '</span>';
}
},
{
field: 'auditStatus',
title: '审核状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(auditStatusDatas, value);
}
},
{
field: 'useStatus',
title: '使用状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(useStatusDatas, value);
}
},
{
field: 'businessMembers',
title: '工程员',
visible: false
},
{
field: 'createUserName',
title: '工程员'
},
{
field: 'materialNo',
title: '料号'
},
{
field: 'bomNo',
title: '关联bom号'
},
{
field: 'photoUrl',
title: '图片',
formatter: function(value, row, index) {
return $.table.imageView(value);
}
},
{
field: 'materialName',
title: '物料名称'
},
{
field: 'materialType',
title: '物料类型',
formatter: function(value, row, index) {
return $.table.selectCategoryLabel(materialTypeDatas, value);
}
},
{
field: 'unit',
title: '单位',
formatter: function(value, row, index) {
return $.table.selectDictLabel(sysUnitClassDatas, value);
}
},
{
field: 'brand',
title: '品牌'
},
{
field: 'describe',
title: '描述'
},
{
field: 'havaProductTem',
title: '是否有技术团队',
formatter:function (value, row, index){
return $.table.selectDictLabel(haveProductTem,value);
}
},
{
field: 'productItem',
title: '技术团队id'
},
{
field: 'itemName',
title: '技术团队名称',
},
{
field: 'supplierName',
title: '供应商'
},
{
field: 'createTime',
title: '录入时间'
},
{
field: 'updateBy',
title: '更新人'
},
{
field: 'updateTime',
title: '上次更新时间'
},
{
field: 'delFlag',
title: '删除标志',
visible: false
},
{
field: 'processMethod',
title: '加工方式',
formatter: function(value, row, index) {
return $.table.selectDictLabel(processMethodDatas, value);
}
},
{
field: 'warehouseDept',
title: '入库部门',
formatter: function(value, row, index) {
return $.table.selectDictLabel(warehouseDeptDatas, value);
}
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
// 审核状态-审核通过 使用状态-是 未发起作废流程 // 审核状态-审核通过 使用状态-是 未发起作废流程
@ -385,10 +258,10 @@
} }
// 详情 // 详情
actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-eye"></i> 详情</a> '); actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-eye"></i> 详情</a> ');
return actions.join(''); return actions.join('');
} }
}] }
]
}; };
$.table.init(options); $.table.init(options);
}); });

2
ruoyi-admin/src/main/resources/templates/erp/material/select.html

@ -101,7 +101,7 @@
}, },
{ {
field: 'processMethod', field: 'processMethod',
title: '加工方式', title: '半成品类型',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.selectDictLabel(processMethodDatas, value); return $.table.selectDictLabel(processMethodDatas, value);
} }

2
ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html

@ -88,7 +88,7 @@
<input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden /> <input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden />
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">加工方式</label> <label class="col-sm-3 control-label">半成品类型</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled> <select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>

2
ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html

@ -88,7 +88,7 @@
<input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden /> <input type="text" id="materialType" name="materialType" th:field="*{materialType}" readonly hidden />
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">加工方式</label> <label class="col-sm-3 control-label">半成品类型</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled> <select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>

2
ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html

@ -89,7 +89,7 @@
<input type="text" id="materialType" name="materialType" th:field="*{materialType}" hidden /> <input type="text" id="materialType" name="materialType" th:field="*{materialType}" hidden />
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">加工方式</label> <label class="col-sm-3 control-label">半成品类型</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" > <select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" >
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>

Loading…
Cancel
Save