提交 819dd0ff 编写于 作者: doc_wei's avatar doc_wei

资产归还托管到表单布局

上级 cf098d76
// 资产归还
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'fileUpload', 'form'], function(exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
var serviceClassName = sysServiceMation["assetManageReturn"]["key"];
var allChooseAssetReport = {};
// 获取当前登录员工信息
systemCommonUtil.getSysCurrentLoginUserMation(function (data) {
$("#useTitle").html("资产归还申请单-" + getYMDFormatDate() + '-' + data.bean.userName);
$("#useName").html(data.bean.userName);
});
skyeyeEnclosure.init('enclosureUpload');
// 资产
initTableChooseUtil.initTable({
id: "assetReportList",
cols: [
{id: 'assetReportId', title: '资产', formType: 'chooseInput', width: '150', iconClassName: 'chooseMyUseAssetReportBtn', verify: 'required'},
{id: 'specifications', title: '规格', formType: 'detail', width: '150'},
{id: 'assetNum', title: '编号', formType: 'detail', width: '150'},
{id: 'assetImg', title: '图片', formType: 'detail', width: '80'},
{id: 'storageArea', title: '存放区域', formType: 'detail', width: '150'},
{id: 'remark', title: '备注', formType: 'input', width: '100'}
],
deleteRowCallback: function (trcusid) {
delete allChooseAssetReport[trcusid];
},
addRowCallback: function (trcusid) {
},
form: form,
minData: 1
});
matchingLanguage();
form.render();
// 保存为草稿
form.on('submit(formAddBean)', function(data) {
if(winui.verifyForm(data.elem)) {
saveData("1", "");
}
return false;
});
// 提交审批
form.on('submit(formSubBean)', function(data) {
if(winui.verifyForm(data.elem)) {
activitiUtil.startProcess(serviceClassName, null, function (approvalId) {
saveData("2", approvalId);
});
}
return false;
});
function saveData(subType, approvalId) {
var result = initTableChooseUtil.getDataList('assetReportList');
if (!result.checkResult) {
return false;
}
var tableData = new Array();
var noError = false;
$.each(result.dataList, function(i, item) {
// 获取行编号
var thisRowKey = item["trcusid"].replace("tr", "");
var assetReport = allChooseAssetReport["tr" + thisRowKey];
if (judgeInPoingArr(tableData, "assetReportId", assetReport.id)) {
winui.window.msg('领用单存在相同的资产', {icon: 2, time: 2000});
noError = true;
return false;
}
item["assetReportId"] = assetReport.id;
tableData.push(item);
});
if (noError) {
return false;
}
var params = {
title: $("#useTitle").html(),
remark: $("#remark").val(),
assetListStr: JSON.stringify(tableData),
enclosureInfo: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload'),
subType: subType, // 表单类型 1.保存草稿 2.提交审批
approvalId: approvalId
};
AjaxPostUtil.request({url: flowableBasePath + "asset027", params: params, type: 'json', callback: function(json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
$("body").on("click", ".chooseMyUseAssetReportBtn", function() {
var trId = $(this).parent().parent().attr("trcusid");
adminAssistantUtil.myUseAssetReportCheckType = false; // 选择类型,默认单选,true:多选,false:单选
adminAssistantUtil.openMyUseAssetReportChoosePage(function (checkMyUseAssetReportMation) {
// 获取表格行号
var thisRowKey = trId.replace("tr", "");
$("#assetReportId" + thisRowKey.toString()).val(checkMyUseAssetReportMation.assetName);
$("#specifications" + thisRowKey.toString()).html(checkMyUseAssetReportMation.specifications);
$("#assetNum" + thisRowKey.toString()).html(checkMyUseAssetReportMation.assetNum);
$("#assetImg" + thisRowKey.toString()).html('<img src="' + systemCommonUtil.getFilePath(checkMyUseAssetReportMation.assetImg) + '" class="photo-img">');
$("#storageArea" + thisRowKey.toString()).html(checkMyUseAssetReportMation.storageArea);
allChooseAssetReport[trId] = checkMyUseAssetReportMation;
});
});
// 图片查看
$("body").on("click", ".photo-img", function() {
systemCommonUtil.showPicImg($(this).attr("src"));
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$;
AjaxPostUtil.request({url: flowableBasePath + "asset029", params: {rowId: parent.rowId}, type: 'json', callback: function (json) {
json.bean.stateName = activitiUtil.showStateName2(json.bean.state, 1);
$("#showForm").html(getDataUseHandlebars($("#useTemplate").html(), json));
// 附件回显
skyeyeEnclosure.showDetails({"enclosureUploadBtn": json.bean.enclosureInfo});
matchingLanguage();
}});
// 图片查看
$("body").on("click", ".photo-img", function() {
systemCommonUtil.showPicImg($(this).attr("src"));
});
});
});
\ No newline at end of file
// 资产归还
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'fileUpload', 'form'], function(exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
var serviceClassName = sysServiceMation["assetManageReturn"]["key"];
var allChooseAssetReport = {};
AjaxPostUtil.request({url: flowableBasePath + "asset031", params: {rowId: parent.rowId}, type: 'json', callback: function(json) {
$("#useTitle").html(json.bean.title);
$("#useName").html(json.bean.userName);
$("#remark").val(json.bean.remark);
// 附件回显
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
if(json.bean.state == '1'){
$(".typeTwo").removeClass("layui-hide");
} else {
$(".typeOne").removeClass("layui-hide");
}
// 资产
initTableChooseUtil.initTable({
id: "assetReportList",
cols: [
{id: 'assetReportId', title: '资产', formType: 'chooseInput', width: '150', iconClassName: 'chooseMyUseAssetReportBtn', verify: 'required'},
{id: 'specifications', title: '规格', formType: 'detail', width: '150'},
{id: 'assetNum', title: '编号', formType: 'detail', width: '150'},
{id: 'assetImg', title: '图片', formType: 'detail', width: '80'},
{id: 'storageArea', title: '存放区域', formType: 'detail', width: '150'},
{id: 'remark', title: '备注', formType: 'input', width: '100'}
],
deleteRowCallback: function (trcusid) {
delete allChooseAssetReport[trcusid];
},
addRowCallback: function (trcusid) {
},
form: form,
minData: 1
});
initTableChooseUtil.deleteAllRow('assetReportList');
$.each(json.bean.goods, function(i, item) {
var params = {
"assetReportId": item.assetName,
"specifications": item.specifications,
"assetNum": item.assetNum,
"assetImg": '<img src="' + systemCommonUtil.getFilePath(item.assetImg) + '" class="photo-img">',
"storageArea": item.storageArea,
"remark": item.remark
};
var trcusid = initTableChooseUtil.resetData('assetReportList', params);
item["id"] = item.assetReportId;
allChooseAssetReport[trcusid] = item;
});
matchingLanguage();
}});
//加载表格数据
function initTableAssetList() {
$.each(sTableData, function(i, item) {
addDataRow(item);
});
}
// 保存为草稿
form.on('submit(formEditBean)', function(data) {
if(winui.verifyForm(data.elem)) {
saveData('1', "");
}
return false;
});
// 提交审批
form.on('submit(formSubBean)', function(data) {
if(winui.verifyForm(data.elem)) {
activitiUtil.startProcess(serviceClassName, null, function (approvalId) {
saveData("2", approvalId);
});
}
return false;
});
// 工作流中保存
form.on('submit(subBean)', function(data) {
if(winui.verifyForm(data.elem)) {
saveData('3', "");
}
return false;
});
function saveData(subType, approvalId) {
var result = initTableChooseUtil.getDataList('assetReportList');
if (!result.checkResult) {
return false;
}
var tableData = new Array();
var noError = false;
$.each(result.dataList, function(i, item) {
// 获取行编号
var thisRowKey = item["trcusid"].replace("tr", "");
var assetReport = allChooseAssetReport["tr" + thisRowKey];
if (judgeInPoingArr(tableData, "assetReportId", assetReport.id)) {
winui.window.msg('领用单存在相同的资产', {icon: 2, time: 2000});
noError = true;
return false;
}
item["assetReportId"] = assetReport.id;
tableData.push(item);
});
if (noError) {
return false;
}
var params = {
remark: $("#remark").val(),
assetListStr: JSON.stringify(tableData),
rowId: parent.rowId,
enclosureInfo: skyeyeEnclosure.getEnclosureIdsByBoxId('enclosureUpload'),
subType: subType, // 1:保存为草稿 2.提交到工作流 3.在工作流中编辑
approvalId: approvalId,
};
AjaxPostUtil.request({url: flowableBasePath + "asset032", params: params, type: 'json', method: "PUT", callback: function(json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
$("body").on("click", ".chooseMyUseAssetReportBtn", function() {
var trId = $(this).parent().parent().attr("trcusid");
adminAssistantUtil.myUseAssetReportCheckType = false; // 选择类型,默认单选,true:多选,false:单选
adminAssistantUtil.openMyUseAssetReportChoosePage(function (checkMyUseAssetReportMation) {
// 获取表格行号
var thisRowKey = trId.replace("tr", "");
$("#assetReportId" + thisRowKey.toString()).val(checkMyUseAssetReportMation.assetName);
$("#specifications" + thisRowKey.toString()).html(checkMyUseAssetReportMation.specifications);
$("#assetNum" + thisRowKey.toString()).html(checkMyUseAssetReportMation.assetNum);
$("#assetImg" + thisRowKey.toString()).html('<img src="' + systemCommonUtil.getFilePath(checkMyUseAssetReportMation.assetImg) + '" class="photo-img">');
$("#storageArea" + thisRowKey.toString()).html(checkMyUseAssetReportMation.storageArea);
allChooseAssetReport[trId] = checkMyUseAssetReportMation;
});
});
// 图片查看
$("body").on("click", ".photo-img", function() {
systemCommonUtil.showPicImg($(this).attr("src"));
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
\ No newline at end of file
var rowId = "";
var taskType = "";//流程详情的主标题
var processInstanceId = "";//流程id
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form', 'laydate'], function (exports) {
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
laydate = layui.laydate,
table = layui.table;
var serviceClassName = sysServiceMation["assetManageReturn"]["key"];
// 新增资产归还申请
authBtn('1597243733271');
// '资产归还'页面的选取时间段表格
laydate.render({elem: '#returnCreateTime', range: '~'});
// 资产归还管理开始
table.render({
id: 'returnTable',
elem: '#returnTable',
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'asset025',
url: sysMainMation.admBasePath + 'asset025',
where: getTableParams(),
even: true,
page: true,
......@@ -35,48 +27,53 @@ layui.config({
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'title', title: '标题', width: 300, templet: function (d) {
return '<a lay-event="returnDedails" class="notice-title-click">' + d.title + '</a>';
}},
{ field: 'oddNum', title: '单号', width: 200, align: 'center' },
{ field: 'oddNumber', title: '单号', width: 200, align: 'center', templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.oddNumber + '</a>';
}},
{ field: 'title', title: '标题', width: 300 },
{ field: 'processInstanceId', title: '流程ID', width: 80, align: 'center', templet: function (d) {
return '<a lay-event="returnProcessDetails" class="notice-title-click">' + d.processInstanceId + '</a>';
return '<a lay-event="processDetails" class="notice-title-click">' + d.processInstanceId + '</a>';
}},
{ field: 'state', title: '状态', width: 90, align: 'center', templet: function (d) {
return activitiUtil.showStateName2(d.state, 1);
{ field: 'state', title: '状态', width: 90, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("flowableStateEnum", 'id', d.state, 'name');
}},
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], width: 150, align: 'center'},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#returnTableBar'}
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ 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'}
]],
done: function(json) {
matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入单号,标题", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
}
});
// 资产归还的操作事件
table.on('tool(returnTable)', function (obj) {
table.on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'returnDedails') { //归还详情
returnDedails(data);
} else if (layEvent === 'returnEdit') { //编辑归还申请
returnEdit(data);
} else if (layEvent === 'returnSubApproval') { //归还提交审批
returnSubApproval(data);
} else if (layEvent === 'returnCancellation') {//归还作废
returnCancellation(data);
} else if (layEvent === 'returnProcessDetails') {//归还流程详情
if (layEvent === 'details') { //归还详情
details(data);
} else if (layEvent === 'edit') { //编辑归还申请
edit(data);
} else if (layEvent === 'subApproval') { //归还提交审批
subApproval(data);
} else if (layEvent === 'cancellation') {//归还作废
cancellation(data);
} else if (layEvent === 'processDetails') {//归还流程详情
activitiUtil.activitiDetails(data);
} else if (layEvent === 'returnRevoke') {//撤销归还申请
returnRevoke(data);
} else if (layEvent === 'revoke') {//撤销归还申请
revoke(data);
}
});
// 资产归还详情
function returnDedails(data) {
rowId = data.id;
function details(data) {
_openNewWindows({
url: "../../tpl/assetManageReturn/assetManageReturnDetails.html",
url: systemCommonUtil.getUrl('FP2023062000007&id=' + data.id, null),
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
pageId: "assetManageReturnDetails",
area: ['90vw', '90vh'],
......@@ -86,105 +83,84 @@ layui.config({
}
// 撤销资产归还
function returnRevoke(data) {
function revoke(data) {
var msg = '确认撤销该资产归还申请吗?';
layer.confirm(msg, { icon: 3, title: '撤销操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "asset038", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.admBasePath + "asset038", params: {processInstanceId: data.processInstanceId}, type: 'json', method: "PUT", callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadReturnTable();
loadTable();
}});
});
}
// 新增资产归还
$("body").on("click", "#addReturnBean", function() {
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: "../../tpl/assetManageReturn/assetManageReturnAdd.html",
url: systemCommonUtil.getUrl('FP2023062000005', null),
title: "资产归还申请",
pageId: "assetManageReturnAdd",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadReturnTable();
loadTable();
}});
});
// 编辑资产归还申请
function returnEdit(data) {
rowId = data.id;
function edit(data) {
_openNewWindows({
url: "../../tpl/assetManageReturn/assetManageReturnEdit.html",
url: systemCommonUtil.getUrl('FP2023062000006&id=' + data.id, null),
title: "编辑资产归还申请",
pageId: "assetManageReturnEdit",
area: ['90vw', '90vh'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadReturnTable();
loadTable();
}
});
}
// 资产归还作废
function returnCancellation(data) {
function cancellation(data) {
var msg = '确认作废该条归还申请吗?';
layer.confirm(msg, { icon: 3, title: '作废操作' }, function (index) {
layer.close(index);
AjaxPostUtil.request({url: flowableBasePath + "asset030", params: {rowId: data.id}, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.admBasePath + "asset030", params: {id: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadReturnTable();
loadTable();
}});
});
}
// 资产归还提交审批
function returnSubApproval(data) {
function subApproval(data) {
layer.confirm(systemLanguage["com.skyeye.approvalOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.approvalOperation"][languageType]}, function (index) {
layer.close(index);
activitiUtil.startProcess(serviceClassName, null, function (approvalId) {
var params = {
rowId: data.id,
id: data.id,
approvalId: approvalId
};
AjaxPostUtil.request({url: flowableBasePath + "asset028", params: params, type: 'json', callback: function (json) {
AjaxPostUtil.request({url: sysMainMation.admBasePath + "asset028", params: params, type: 'json', callback: function (json) {
winui.window.msg("提交成功", {icon: 1, time: 2000});
loadReturnTable();
loadTable();
}});
});
});
}
// 搜索表单
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reloadData("returnTable", {page: {curr: 1}, where: getTableParams()});
}
return false;
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
}
// 刷新归还数据
$("body").on("click", "#reloadReturnTable", function() {
loadReturnTable();
});
// 刷新归还列表数据
function loadReturnTable(){
table.reloadData("returnTable", {where: getTableParams()});
}
function getTableParams() {
var startTime = "", endTime = "";
if (!isNull($("#returnCreateTime").val())) {
startTime = $("#returnCreateTime").val().split('~')[0].trim() + ' 00:00:00';
endTime = $("#returnCreateTime").val().split('~')[1].trim() + ' 23:59:59';
}
return {
state: $("#returnState").val(),
startTime: startTime,
endTime: endTime
};
}
function getTableParams() {
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('assetManageReturnList', {});
});
var rowId = "";
var taskType = "";//流程详情的主标题
var processInstanceId = "";//流程id
layui.config({
base: basePath,
......@@ -12,7 +8,6 @@ layui.config({
winui.renderColor();
var $ = layui.$,
form = layui.form,
laydate = layui.laydate,
table = layui.table;
var serviceClassName = sysServiceMation["assetManageUse"]["key"];
......@@ -100,7 +95,7 @@ layui.config({
}
// 新增资产领用
$("body").on("click", "#addUseBean", function() {
$("body").on("click", "#addBean", function() {
_openNewWindows({
url: systemCommonUtil.getUrl('FP2023062000001', null),
title: "资产领用申请",
......
......@@ -19,22 +19,15 @@ layui.config({
var s = '我已申领资产选择规则:1.已审批通过的资产';
if(myUseAssetReportCheckType){
s += '2.多选;';
// 多选保存的资产对象信息
var checkMyUseAssetReportMation = [].concat(parent.adminAssistantUtil.checkMyUseAssetReportMation);
// 初始化值
var ids = [];
$.each(checkMyUseAssetReportMation, function(i, item) {
$.each(parent.adminAssistantUtil.checkMyUseAssetReportMation, function(i, item) {
ids.push(item.id);
});
tableCheckBoxUtil.setIds({
gridId: 'messageTable',
fieldName: 'id',
ids: ids
});
tableCheckBoxUtil.init({
gridId: 'messageTable',
filterId: 'messageTable',
fieldName: 'id'
fieldName: 'id',
ids: ids
});
} else {
s += '如没有查到要选择的资产信息,请检查资产信息是否满足当前规则。双击要选择的数据即可选中';
......@@ -46,7 +39,7 @@ layui.config({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: flowableBasePath + 'myhasmation001',
url: sysMainMation.admBasePath + 'myhasmation001',
where: getTableParams(),
even: true,
page: true,
......@@ -55,14 +48,19 @@ layui.config({
cols: [[
{ type: myUseAssetReportCheckType ? 'checkbox' : 'radio', rowspan: '3', fixed: 'left' },
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], rowspan: '3', fixed: 'left', type: 'numbers' },
{ field: 'assetName', title: '资产名称', align: 'left', width: 120 },
{ field: 'name', title: '资产名称', width: 120 },
{ field: 'specifications', title: '资产规格', width: 140 },
{ field: 'assetImg', title: '图片', align: 'center', width: 60, templet: function (d) {
return '<img src="' + systemCommonUtil.getFilePath(d.assetImg) + '" class="photo-img" lay-event="assetImg">';
}},
{ field: 'typeName', title: '类型', align: 'left', width: 100 },
{ field: 'typeId', title: '资产类型', width: 120, templet: function(d) {
return sysDictDataUtil.getDictDataNameByCodeAndKey("ADM_ASSET_TYPE", d.typeId);
}},
{ field: 'assetNum', title: '资产编号', align: 'left', width: 150 },
{ field: 'specifications', title: '资产规格', align: 'left', width: 120 },
{ field: 'assetAdmin', title: '管理员', align: 'left', width: 120 },
{ field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) {
return isNull(d.assetAdminMation) ? '' : d.assetAdminMation.name;
}},
{ field: 'createTime', title: '申领时间', align: 'center', width: 150 },
]],
done: function(res) {
......@@ -116,11 +114,9 @@ layui.config({
winui.window.msg("请选择资产", {icon: 2, time: 2000});
return false;
}
AjaxPostUtil.request({url: flowableBasePath + "queryAssetReportListByIds", params: {ids: selectedData.toString()}, type: 'json', method: "POST", callback: function (json) {
parent.adminAssistantUtil.checkMyUseAssetReportMation = [].concat(json.rows);
parent.layer.close(index);
parent.refreshCode = '0';
}});
parent.adminAssistantUtil.checkMyUseAssetReportMation = [].concat(selectedData);
parent.layer.close(index);
parent.refreshCode = '0';
});
form.render();
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm">
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">标题<i class="red">*</i></label>
<div class="layui-input-block ver-center" id="useTitle">
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">步骤</label>
<div class="layui-input-block ver-center">
填单
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">责任人<i class="red">*</i></label>
<div class="layui-input-block ver-center" id="useName">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">资产<i class="red">*</i></label>
<div class="layui-input-block" id="assetReportList">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">相关描述</label>
<div class="layui-input-block">
<textarea id="remark" name="remark" placeholder="请输入相关描述" class="layui-textarea" style="height: 100px;" maxlength="200"></textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">相关附件</label>
<div class="layui-input-block" id="enclosureUpload">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean">保存为草稿</button>
<button class="winui-btn" lay-submit lay-filter="formSubBean">提交审批</button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/assetManageReturn/'}).use('assetManageReturnAdd');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm">
</form>
</div>
<!-- useTemplate -->
<script type="text/x-handlebars-template" id="useTemplate">
{{#bean}}
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">标题</label>
<div class="layui-input-block ver-center">
{{title}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">单号</label>
<div class="layui-input-block ver-center">
{{oddNumber}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">状态</label>
<div class="layui-input-block ver-center">
{{{stateName}}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">步骤</label>
<div class="layui-input-block ver-center">
填单
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">责任人</label>
<div class="layui-input-block ver-center">
{{userName}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">资产</label>
<div class="layui-input-block">
<table class="layui-table">
<thead>
<tr>
<th>资产</th>
<th style="width: 150px;">规格</th>
<th style="width: 150px;">编号</th>
<th style="width: 80px;">图片</th>
<th style="width: 150px;">存放区域</th>
<th>状态</th>
<th>备注</th>
</tr>
</thead>
<tbody id="useTable" class="insurance-table">
{{#each goods}}
<tr>
<td>{{assetName}}</td>
<td>{{specifications}}</td>
<td>{{assetNum}}</td>
<td><img src="{{assetImg}}" class="photo-img"></td>
<td>{{storageArea}}</td>
<td>{{stateName}}</td>
<td>{{remark}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">相关描述</label>
<div class="layui-input-block ver-center">
{{remark}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">相关附件</label>
<div class="layui-input-block ver-center" id="enclosureUploadBtn">
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/assetManageReturn/'}).use('assetManageReturnDetails');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto;padding:20px;">
<form class="layui-form" action="" id="showForm">
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">标题<i class="red">*</i></label>
<div class="layui-input-block ver-center" id="useTitle">
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">步骤</label>
<div class="layui-input-block ver-center">
填单
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">责任人<i class="red">*</i></label>
<div class="layui-input-block ver-center" id="useName">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">资产<i class="red">*</i></label>
<div class="layui-input-block" id="assetReportList">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">相关描述</label>
<div class="layui-input-block">
<textarea id="remark" name="remark" placeholder="请输入相关描述" class="layui-textarea" style="height: 100px;" maxlength="200"></textarea>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">相关附件</label>
<div class="layui-input-block" id="enclosureUpload">
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn typeOne layui-hide" lay-submit lay-filter="formEditBean">保存为草稿</button>
<button class="winui-btn typeOne layui-hide" lay-submit lay-filter="formSubBean">提交审批</button>
<button class="winui-btn typeTwo layui-hide" lay-submit lay-filter="subBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/assetManageReturn/'}).use('assetManageReturnEdit');
</script>
</body>
</html>
\ No newline at end of file
......@@ -7,62 +7,32 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto; height: 100%;">
<div class="txtcenter" style="margin: 0 auto; padding-top: 10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">状态</label>
<div class="layui-input-inline">
<select id="returnState">
<option value="">全部</option>
<option value="0">草稿</option>
<option value="1">审核中</option>
<option value="2">审核通过</option>
<option value="3">审核不通过</option>
<option value="4">作废</option>
<option value="5">撤销</option>
</select>
</div>
<label class="layui-form-label">申请时间</label>
<div class="layui-input-inline">
<input type="text" id="returnCreateTime" name="returnCreateTime" placeholder="请选择申请时间" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1597243733271"><i class="fa fa-plus" aria-hidden="true"></i>资产归还申请</button>
</div>
<div class="winui-toolbar">
<div class="winui-tool" style="text-align: left;">
<button id="reloadReturnTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addReturnBean" class="winui-toolbtn" auth="1597243733271"><i class="fa fa-plus" aria-hidden="true"></i>资产归还申请</button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="returnTable" lay-filter="returnTable"></table>
<script type="text/html" id="returnTableBar">
{{# if(d.editRow == '1'){ }}
{{# if(auth('1597243716486')){ }}
<a class="layui-btn layui-btn-xs" lay-event="returnSubApproval">提交审批</a>
{{# } }}
{{# if(auth('1597243706398')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="returnCancellation">作废</a>
{{# } }}
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="messageTableBar">
{{# if(d.editRow == '1'){ }}
{{# if(auth('1597243716486')){ }}
<a class="layui-btn layui-btn-xs" lay-event="subApproval">提交审批</a>
{{# } }}
{{# if(d.editRow == '1' || d.editRow == '2'){ }}
{{# if(auth('1597243755949')){ }}
<a class="layui-btn layui-btn-xs" lay-event="returnEdit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1597243706398')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="cancellation">作废</a>
{{# } }}
{{# if(d.editRow == '2'){ }}
{{# if(auth('1597243696856')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="returnRevoke">撤销</a>
{{# } }}
{{# if(auth('1597243733271')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
</script>
</div>
{{# } }}
{{# if(d.editRow == '2'){ }}
{{# if(auth('1597243696856')){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="revoke">撤销</a>
{{# } }}
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
......
......@@ -10,7 +10,7 @@
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addUseBean" class="winui-toolbtn search-table-btn-right" auth="1597242249453"><i class="fa fa-plus" aria-hidden="true"></i>资产领用申请</button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1597242249453"><i class="fa fa-plus" aria-hidden="true"></i>资产领用申请</button>
</div>
</div>
<div style="margin:auto 10px;">
......
......@@ -58,7 +58,7 @@ var adminAssistantUtil = {
},
/**
* 我申领中的资产明细选择页面
* 我申领中的资产明细选择页面---组件管理使用
*
* @param callback 回调函数
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册