|
@@ -503,7 +503,7 @@
|
|
<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">
|
|
<sys:treeselect id="officeId" name="officeId" value="${workInvoice.officeId}" labelName="officeName" labelValue="${workInvoice.officeName}" cssStyle="background-color: #fff"
|
|
<sys:treeselect id="officeId" name="officeId" value="${workInvoice.officeId}" labelName="officeName" labelValue="${workInvoice.officeName}" cssStyle="background-color: #fff"
|
|
- title="部门" url="/sys/office/treeDataAll?type=6" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
|
|
+ title="部门" url="/sys/office/treeDataAll?type=6" cssClass="form-control layui-input" allowInput="true" allowClear="true" notAllowSelectParent="true"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item query athird">
|
|
<div class="layui-item query athird">
|
|
@@ -703,6 +703,18 @@
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
return xml;
|
|
return xml;
|
|
}}
|
|
}}
|
|
|
|
+ ,{align:'center', title: '作废状态', fixed: 'right', width:70,templet:function(d){
|
|
|
|
+ <%--var st = getAuditState(d.status);--%>
|
|
|
|
+
|
|
|
|
+ <%--var xml = "<span onclick=\"openDialogView('流程追踪', '${ctx}/workinvoice/workInvoice/getProcessOne?id=" + d.id + "','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";--%>
|
|
|
|
+ <%--return xml;--%>
|
|
|
|
+ var st = getCancellationAuditState(d.cancellationStatus);
|
|
|
|
+ if(st.action)
|
|
|
|
+ var xml = "<span onclick=\"openDialogListView('发票作废流程追踪', '${ctx}/workinvoiceTwo/workinvoiceTwo/getCancellationProcess?id=" + d.id + "','"+ d.id +"','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
|
|
+ else
|
|
|
|
+ var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >"+ st.status + "</span>";
|
|
|
|
+ return xml;
|
|
|
|
+ }}
|
|
,{field:'op',align:'center',title:"操作",fixed: 'right',width:220,templet:function(d){
|
|
,{field:'op',align:'center',title:"操作",fixed: 'right',width:220,templet:function(d){
|
|
////对操作进行初始化
|
|
////对操作进行初始化
|
|
var xml="<div class=\"layui-btn-group\">";
|
|
var xml="<div class=\"layui-btn-group\">";
|
|
@@ -730,7 +742,7 @@
|
|
{
|
|
{
|
|
xml += "<a href=\"javascript:void(0)\" onclick=\"contractOpenDialogre('变更发票管理', '${ctx}/workinvoiceAll/workInvoiceAll/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}/workinvoiceAll/workInvoiceAll/alterForm?id="+ d.id +"','95%','95%')\" class=\"op-btn op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
}*/
|
|
}*/
|
|
- if(d.modifyDetails != undefined && d.modifyDetails =="1" && d.financeFlag =="1")
|
|
|
|
|
|
+ if(d.modifyDetails != undefined && d.modifyDetails =="1" && d.financeFlag =="1" && (d.cancellationStatus == undefined || d.cancellationStatus == null || d.cancellationStatus == '' || d.cancellationStatus == 0))
|
|
{
|
|
{
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreModify('修改发票明细', '${ctx}/workinvoiceAllTwo/workinvoiceAllTwo/modifyDetails?id=" + d.id + " &home=oldInfo ','"+ d.id+"','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" >修改明细</a>";
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreModify('修改发票明细', '${ctx}/workinvoiceAllTwo/workinvoiceAllTwo/modifyDetails?id=" + d.id + " &home=oldInfo ','"+ d.id+"','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" >修改明细</a>";
|
|
}
|
|
}
|
|
@@ -738,7 +750,7 @@
|
|
{
|
|
{
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreModify('管理员修改发票', '${ctx}/workinvoiceAll/workInvoiceAll/form?id=" + d.id + "&tabId=3','"+ d.id+"','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" >管理员修改</a>";
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialogreModify('管理员修改发票', '${ctx}/workinvoiceAll/workInvoiceAll/form?id=" + d.id + "&tabId=3','"+ d.id+"','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-green\" >管理员修改</a>";
|
|
}
|
|
}
|
|
- if(d.financeFlag != undefined && d.financeFlag =="1")
|
|
|
|
|
|
+ if(d.financeFlag != undefined && d.financeFlag =="1" && (d.cancellationStatus == undefined || d.cancellationStatus == null || d.cancellationStatus == '' || d.cancellationStatus == 0) )
|
|
{
|
|
{
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"receiptInvoice('发票收款', '${ctx}/workinvoiceAll/workInvoiceAll/receiptForm?id=" + d.id + "','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-orange\" > 收款</a>";
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"receiptInvoice('发票收款', '${ctx}/workinvoiceAll/workInvoiceAll/receiptForm?id=" + d.id + "','95%','95%')\" class=\"layui-btn layui-btn-xs layui-bg-orange\" > 收款</a>";
|
|
xml+="<a href=\"${ctx}/workinvoiceAll/workInvoiceAll/saveAffirmReceipt?id=" + d.id + "\" onclick=\"return confirmx('是否确认收款?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-orange\"> 确认收款</a>";
|
|
xml+="<a href=\"${ctx}/workinvoiceAll/workInvoiceAll/saveAffirmReceipt?id=" + d.id + "\" onclick=\"return confirmx('是否确认收款?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-orange\"> 确认收款</a>";
|
|
@@ -798,6 +810,7 @@
|
|
,"responsibleName":"${workInvoice.createBy.name}"
|
|
,"responsibleName":"${workInvoice.createBy.name}"
|
|
,"receiptMoney":"${workInvoice.receiptMoney}"
|
|
,"receiptMoney":"${workInvoice.receiptMoney}"
|
|
,"status":"${workInvoice.invoiceState}"
|
|
,"status":"${workInvoice.invoiceState}"
|
|
|
|
+ ,"cancellationStatus":"${workInvoice.cancellationState}"
|
|
,"widNumber":"${workInvoice.widNumber}"
|
|
,"widNumber":"${workInvoice.widNumber}"
|
|
,"widTotalMoney":"${workInvoice.widTotalMoney}"
|
|
,"widTotalMoney":"${workInvoice.widTotalMoney}"
|
|
,"accountCheckingArea":"${workInvoice.accountCheckingArea}"
|
|
,"accountCheckingArea":"${workInvoice.accountCheckingArea}"
|