|
@@ -239,7 +239,7 @@
|
|
</div>
|
|
</div>
|
|
<div id="moresees" class="lw9" style="clear:both;display:none;">
|
|
<div id="moresees" class="lw9" style="clear:both;display:none;">
|
|
<div class="layui-item query athird">
|
|
<div class="layui-item query athird">
|
|
- <label class="layui-form-label">创建日期:</label>
|
|
|
|
|
|
+ <label class="layui-form-label">开票日期:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<input id="beginContractDate" name="beginContractDate" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group"
|
|
<input id="beginContractDate" name="beginContractDate" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group"
|
|
value="<fmt:formatDate value="${workInvoice.beginContractDate}" pattern="yyyy-MM-dd"/>"/>
|
|
value="<fmt:formatDate value="${workInvoice.beginContractDate}" pattern="yyyy-MM-dd"/>"/>
|
|
@@ -257,18 +257,45 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item query athird">
|
|
<div class="layui-item query athird">
|
|
- <label class="layui-form-label">所属部门:</label>
|
|
|
|
- <div class="layui-input-block">
|
|
|
|
- <form:input path="office.name" htmlEscape="false" maxlength="64" class=" form-control layui-input"/>
|
|
|
|
|
|
+ <label class="layui-form-label">经办人部门:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:treeselect id="officeId" name="officeId" value="${workInvoice.officeId}" labelName="officeName" labelValue="${workInvoice.officeName}"
|
|
|
|
+ title="部门" url="/sys/office/treeDataAll?type=2" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">报销人:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:treeselect id="submitterId" name="submitterId" value="${workInvoice.submitterId}" labelName="submitterName" labelValue="${workInvoice.submitterName}"
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item query athird">
|
|
<div class="layui-item query athird">
|
|
- <label class="layui-form-label">实际开票单位:</label>
|
|
|
|
|
|
+ <label class="layui-form-label">开票单位:</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
<form:input path="client.name" htmlEscape="false" class=" form-control layui-input"/>
|
|
<form:input path="client.name" htmlEscape="false" class=" form-control layui-input"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item query athird">
|
|
<div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">是否收款:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <select id="receiptMoney" name="receiptMoney" class="form-control simple-select">
|
|
|
|
+ <option value=""></option>
|
|
|
|
+ <option value="0" <c:if test="${workInvoiceShow.receiptMoney=='0'}">selected</c:if>>否</option>
|
|
|
|
+ <option value="1" <c:if test="${workInvoiceShow.receiptMoney=='1'}">selected</c:if>>是</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">发票类型:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:select path="invoiceType" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getMainDictList('invoice_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
<label class="layui-form-label">状态:</label>
|
|
<label class="layui-form-label">状态:</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
<form:select path="invoiceState" class="form-control simple-select">
|
|
<form:select path="invoiceState" class="form-control simple-select">
|
|
@@ -277,6 +304,24 @@
|
|
</form:select>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">收款类型:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:select path="chargeType" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getMainDictList('receipt_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item query athird">
|
|
|
|
+ <label class="layui-form-label">开票内容:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <form:select path="billingContent" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getMainDictList('billing_content')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</form:form>
|
|
</form:form>
|
|
</div>
|
|
</div>
|
|
@@ -391,6 +436,10 @@
|
|
xml += "<a href=\"javascript:void(0)\" onclick=\"contractOpenDialogre('变更发票管理', '${ctx}/workinvoice/workInvoice/alterForm?id="+ d.id +"','95%','95%')\" class=\"op-btn op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
xml += "<a href=\"javascript:void(0)\" onclick=\"contractOpenDialogre('变更发票管理', '${ctx}/workinvoice/workInvoice/alterForm?id="+ d.id +"','95%','95%')\" class=\"op-btn op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
}*/
|
|
}*/
|
|
|
|
|
|
|
|
+ if(d.financeFlag != undefined && d.financeFlag =="1")
|
|
|
|
+ {
|
|
|
|
+ xml += "<a href=\"${ctx}/workinvoice/workInvoice/receiptMoney?id=" + d.id + "\" onclick=\"return confirmx('确认该发票已收款吗?', this.href)\" class=\"op-btn layui-btn\"><i class=\"fa fa-edit\"></i> 收款</a>";
|
|
|
|
+ }
|
|
if(d.cancellationFlag != undefined && d.cancellationFlag =="1")
|
|
if(d.cancellationFlag != undefined && d.cancellationFlag =="1")
|
|
{
|
|
{
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreplay('作废发票', '${ctx}/workinvoice/workInvoice/cancellationForm?id=" + d.id + "&tabId=3','95%','95%')\" class=\"op-btn op-btn-invalid\" ><i class=\"fa fa-trash-o\"></i> 作废</a>";
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreplay('作废发票', '${ctx}/workinvoice/workInvoice/cancellationForm?id=" + d.id + "&tabId=3','95%','95%')\" class=\"op-btn op-btn-invalid\" ><i class=\"fa fa-trash-o\"></i> 作废</a>";
|
|
@@ -464,6 +513,10 @@
|
|
<c:when test="${workInvoice.invoiceState == 5 && workInvoice.cancellation == '1'}">"1"</c:when>
|
|
<c:when test="${workInvoice.invoiceState == 5 && workInvoice.cancellation == '1'}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
|
|
+ ,"financeFlag":<c:choose>
|
|
|
|
+ <c:when test="${workInvoice.invoiceState == 5 && workInvoice.cancellation == '1' && workInvoice.receiptMoney == '否'}">"1"</c:when>
|
|
|
|
+ <c:otherwise>"0"</c:otherwise>
|
|
|
|
+ </c:choose>
|
|
,"adminFlag":<c:choose>
|
|
,"adminFlag":<c:choose>
|
|
<c:when test="${workInvoice.invoiceState == 5 && workInvoice.adminFlag == '1'}">"1"</c:when>
|
|
<c:when test="${workInvoice.invoiceState == 5 && workInvoice.adminFlag == '1'}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|