|
@ -57,13 +57,6 @@ |
|
|
</optgroup> |
|
|
</optgroup> |
|
|
</select> |
|
|
</select> |
|
|
</li> |
|
|
</li> |
|
|
<li> |
|
|
|
|
|
<label>供应商:</label> |
|
|
|
|
|
<select name="supplierId" class="form-control m-b" th:with="supplierList=${@supplierItems.selectSysSupperWithMaterial()}"> |
|
|
|
|
|
<option value="">所有</option> |
|
|
|
|
|
<option th:each="supplier:${supplierList}" th:value="${supplier.supplierId}" th:text="${supplier.supplierName}"></option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li class="select-time"> |
|
|
<li class="select-time"> |
|
|
<label>录入时间:</label> |
|
|
<label>录入时间:</label> |
|
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
|
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
|
@ -83,7 +76,7 @@ |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="erp:material:add"> |
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="erp:material:add"> |
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
<i class="fa fa-plus"></i> 添加 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-success" onclick="technologyTeam()" shiro:hasPermission="erp:material:item"> |
|
|
<a class="btn btn-success" onclick="technologyTeam()" shiro:hasRole="zjlRole"> |
|
|
<i class="fa fa-plus"></i> 技术团队配置 |
|
|
<i class="fa fa-plus"></i> 技术团队配置 |
|
|
</a> |
|
|
</a> |
|
|
<a class="btn btn-warning" onclick="exportSelect()" shiro:hasPermission="erp:material:export"> |
|
|
<a class="btn btn-warning" onclick="exportSelect()" shiro:hasPermission="erp:material:export"> |
|
@ -105,8 +98,8 @@ |
|
|
var removeFlag = [[${@permission.hasPermi('erp:material:remove')}]]; |
|
|
var removeFlag = [[${@permission.hasPermi('erp:material:remove')}]]; |
|
|
var cancelFlag = [[${@permission.hasPermi('erp:material:cancel')}]]; |
|
|
var cancelFlag = [[${@permission.hasPermi('erp:material:cancel')}]]; |
|
|
var restoreFlag = [[${@permission.hasPermi('erp:material:restore')}]]; |
|
|
var restoreFlag = [[${@permission.hasPermi('erp:material:restore')}]]; |
|
|
|
|
|
var roes = [[${@permission.hasRole('zjlRole')}]]; |
|
|
var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; |
|
|
var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; |
|
|
// var processTypeDatas = [[${@dict.getType('processType')}]]; |
|
|
|
|
|
var useStatusDatas = [[${@dict.getType('useStatus')}]]; |
|
|
var useStatusDatas = [[${@dict.getType('useStatus')}]]; |
|
|
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|
|
var processMethodDatas = [[${@dict.getType('processMethod')}]]; |
|
|
var sysUnitClassDatas = [[${@dict.getType('sysUnitClassDatas')}]]; |
|
|
var sysUnitClassDatas = [[${@dict.getType('sysUnitClassDatas')}]]; |
|
@ -132,6 +125,7 @@ |
|
|
detailUrl: prefix + "/detail/{id}", |
|
|
detailUrl: prefix + "/detail/{id}", |
|
|
pageList: [10, 25, 50], |
|
|
pageList: [10, 25, 50], |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
|
|
|
|
showColumns: false, |
|
|
modalName: "物料信息", |
|
|
modalName: "物料信息", |
|
|
fixedColumns: true, // 启用冻结列 |
|
|
fixedColumns: true, // 启用冻结列 |
|
|
fixedRightNumber: 1, // 冻结右列个数 |
|
|
fixedRightNumber: 1, // 冻结右列个数 |
|
@ -175,13 +169,12 @@ |
|
|
}, |
|
|
}, |
|
|
{title: '品牌',field: 'brand',}, |
|
|
{title: '品牌',field: 'brand',}, |
|
|
{title: '描述',field: 'describe',}, |
|
|
{title: '描述',field: 'describe',}, |
|
|
{title: '利润率',field: '',visible: false,}, |
|
|
{title: '利润率',field: '',hidden: roes}, |
|
|
{title: '是否有技术团队',field: 'havaProductTem',visible: false, |
|
|
{title: '是否有技术团队',field: 'havaProductTem',visible: false, |
|
|
formatter:function (value, row, index){return $.table.selectDictLabel(haveProductTem,value);} |
|
|
formatter:function (value, row, index){return $.table.selectDictLabel(haveProductTem,value);} |
|
|
}, |
|
|
}, |
|
|
{title: '技术团队id',field: 'productItem',visible: false,}, |
|
|
{title: '技术团队id',field: 'productItem',visible: false,}, |
|
|
{title: '技术团队名称',field: 'itemName',visible: false}, |
|
|
{title: '技术团队名称',field: 'itemName',visible: false}, |
|
|
{title: '供应商',field: 'supplierName',}, |
|
|
|
|
|
{title: '录入时间',field: 'createTime',}, |
|
|
{title: '录入时间',field: 'createTime',}, |
|
|
{title: '更新人',field: 'updateBy',}, |
|
|
{title: '更新人',field: 'updateBy',}, |
|
|
{title: '上次更新时间',field: 'updateTime',}, |
|
|
{title: '上次更新时间',field: 'updateTime',}, |
|
@ -209,18 +202,18 @@ |
|
|
} |
|
|
} |
|
|
// 有流程实例id |
|
|
// 有流程实例id |
|
|
if (row.instanceId) { |
|
|
if (row.instanceId) { |
|
|
|
|
|
// 审批历史 |
|
|
|
|
|
actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="showHistoryDialog(\'' + row.instanceId + '\')"><i class="fa fa-list"></i> 审批历史</a> '); |
|
|
|
|
|
// 进度查看 |
|
|
|
|
|
actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="showProcessImgDialog(\'' + row.instanceId + '\')"><i class="fa fa-image"></i> 进度查看</a> '); |
|
|
// 有待办人展示审批按钮, |
|
|
// 有待办人展示审批按钮, |
|
|
if (row.todoUserId) { |
|
|
if (row.todoUserId) { |
|
|
var todoUserIdList = row.todoUserId.split(","); |
|
|
var todoUserIdList = row.todoUserId.split(","); |
|
|
if(todoUserIdList.includes(loginName)){ |
|
|
if(todoUserIdList.includes(loginName) || todoUserIdList.includes("admin")){ |
|
|
var nodeName = row.taskName=='驳回调整'?' 调整申请':' 审批'; |
|
|
var nodeName = row.taskName=='驳回调整'?' 调整申请':' 审批'; |
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="showVerifyDialog(\'' + prefix + '\',\'' + row.taskId + '\', \'' + row.taskName+"-"+row.instanceTypeName+"申请" + '\')"><i class="fa fa-edit"></i> '+nodeName+'</a> '); |
|
|
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="showVerifyDialog(\'' + prefix + '\',\'' + row.taskId + '\', \'' + row.taskName+"-"+row.instanceTypeName+"申请" + '\')"><i class="fa fa-edit"></i> '+nodeName+'</a> '); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 审批历史 |
|
|
|
|
|
actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="showHistoryDialog(\'' + row.instanceId + '\')"><i class="fa fa-list"></i> 审批历史</a> '); |
|
|
|
|
|
// 进度查看 |
|
|
|
|
|
actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="showProcessImgDialog(\'' + row.instanceId + '\')"><i class="fa fa-image"></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> '); |
|
|
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> '); |
|
@ -256,7 +249,7 @@ |
|
|
var usertData = res.rows; |
|
|
var usertData = res.rows; |
|
|
for (let i in usertData) { |
|
|
for (let i in usertData) { |
|
|
$("select[name='businessMembers']").append( |
|
|
$("select[name='businessMembers']").append( |
|
|
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>"); |
|
|
"<option value='" + usertData[i].loginName + "'>" + usertData[i].userName + "</option>"); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
$.modal.msgError(res.msg); |
|
|
$.modal.msgError(res.msg); |
|
|