|
@ -2,6 +2,9 @@ |
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|
|
<head> |
|
|
<head> |
|
|
<th:block th:include="include :: header('新增报销单')" /> |
|
|
<th:block th:include="include :: header('新增报销单')" /> |
|
|
|
|
|
<th:block th:include="include :: datetimepicker-css" /> |
|
|
|
|
|
<th:block th:include="include :: select2-css" /> |
|
|
|
|
|
<th:block th:include="include :: bootstrap-editable-css" /> |
|
|
</head> |
|
|
</head> |
|
|
<body class="white-bg"> |
|
|
<body class="white-bg"> |
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|
@ -44,13 +47,17 @@ |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-6 control-label">是否是委外/采购采销:</label> |
|
|
<label class="col-sm-6 control-label">是否是委外/采购采销:</label> |
|
|
<div class="col-sm-6"> |
|
|
<div class="col-sm-6"> |
|
|
<input name="isPurchaseOutsource" class="form-control" type="text"> |
|
|
<select name="isPurchaseOutsource" class="form-control" th:with="dictOptions=${@dict.getType('sys_whether')}"> |
|
|
|
|
|
<option th:each="dict : ${dictOptions}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|
|
|
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-6 control-label">供应商ID:</label> |
|
|
<label class="col-sm-6 control-label">供应商ID:</label> |
|
|
<div class="col-sm-6"> |
|
|
<div class="col-sm-6"> |
|
|
<input name="supplierCode" class="form-control" type="text"> |
|
|
<select name="supplierCode" class="form-control" th:with="supplierList=${@supplier.selectSysSupplierListAll()}"> |
|
|
|
|
|
<option th:each="supplier : ${supplierList}" th:text="${supplier.supplierName}" th:value="${supplier.supplierCode}"></option> |
|
|
|
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
@ -109,6 +116,12 @@ |
|
|
// 假设此函数返回供应商列表 |
|
|
// 假设此函数返回供应商列表 |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
$('#supplierCode').on('select2:select', function (e) { |
|
|
|
|
|
var data = e.params.data; |
|
|
|
|
|
$("input[name='corporatePayee']").val(data.supplierName); |
|
|
|
|
|
$("input[name='corporateReceivingAccount']").val(data.bankAccount); |
|
|
|
|
|
$("input[name='publicAccountBanks']").val(data.depositBank); |
|
|
|
|
|
}); |
|
|
//获取子表信息 |
|
|
//获取子表信息 |
|
|
$(function() { |
|
|
$(function() { |
|
|
var options = { |
|
|
var options = { |
|
@ -135,12 +148,38 @@ |
|
|
return getCostSmallType(value,row,index) |
|
|
return getCostSmallType(value,row,index) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{title: '用途',field: 'purpose',editable:{type:'text',options:{maxlength:100}}}, |
|
|
{title: '用途',field: 'purpose', |
|
|
{title: '金额',field: 'amounts',editable: {type:'text',options:{maxlength:100}}}, |
|
|
editable:{ |
|
|
{title: '报销时间',field: 'expenseTime',editable:{type:'date'}}, |
|
|
type:'text', |
|
|
{title: '出差单号',field: 'evectionCode',}, |
|
|
mode:'inline', |
|
|
{title: '采购单号',field: 'purcahseCode',}, |
|
|
} |
|
|
{title: '委外单号',field: 'outsourceCode',}, |
|
|
}, |
|
|
|
|
|
{title: '金额',field: 'amounts', |
|
|
|
|
|
editable:{ |
|
|
|
|
|
type:'text', |
|
|
|
|
|
mode:'inline', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{title: '报销时间',field: 'expenseTime',editable:{ |
|
|
|
|
|
type:'text', |
|
|
|
|
|
mode:'inline', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{title: '出差单号',field: 'evectionCode',editable:{ |
|
|
|
|
|
type:'text', |
|
|
|
|
|
mode:'inline', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{title: '采购单号',field: 'purcahseCode',editable:{ |
|
|
|
|
|
type:'text', |
|
|
|
|
|
mode:'inline', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{title: '委外单号',field: 'outsourceCode',editable:{ |
|
|
|
|
|
type:'text', |
|
|
|
|
|
mode:'inline', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{title: '操作', align: 'center', |
|
|
{title: '操作', align: 'center', |
|
|
formatter: function (value, row, index) { |
|
|
formatter: function (value, row, index) { |
|
|
var actions = []; |
|
|
var actions = []; |
|
|