|
@@ -2025,6 +2025,9 @@ class InvoiceController extends DooController {
|
|
$iid = $this->get_args ( 'invoiceKey' ) ? $this->get_args ( 'invoiceKey' ) : "";
|
|
$iid = $this->get_args ( 'invoiceKey' ) ? $this->get_args ( 'invoiceKey' ) : "";
|
|
$status = $this->get_args ( 'status' ) && is_numeric ( $this->get_args ( 'status' ) ) ? $this->get_args ( 'status' ) : 0;
|
|
$status = $this->get_args ( 'status' ) && is_numeric ( $this->get_args ( 'status' ) ) ? $this->get_args ( 'status' ) : 0;
|
|
$opinion = $this->get_args ( 'opinion' ) ? $this->get_args ( 'opinion' ) : "";
|
|
$opinion = $this->get_args ( 'opinion' ) ? $this->get_args ( 'opinion' ) : "";
|
|
|
|
+
|
|
|
|
+ $divApproval = $this->get_args ( 'divApproval' ) ? $this->get_args ( 'divApproval' ) : "";
|
|
|
|
+
|
|
$iid = $invoice->authcode ( $iid );
|
|
$iid = $invoice->authcode ( $iid );
|
|
if (! is_numeric ( $iid ))
|
|
if (! is_numeric ( $iid ))
|
|
die ( 'illegal request' );
|
|
die ( 'illegal request' );
|
|
@@ -2119,8 +2122,10 @@ class InvoiceController extends DooController {
|
|
'iid' => $iid
|
|
'iid' => $iid
|
|
);
|
|
);
|
|
$invoiceOperationLog->setInvoiceOperationLog ( $item );
|
|
$invoiceOperationLog->setInvoiceOperationLog ( $item );
|
|
-
|
|
|
|
- return '/invoiceApproval';
|
|
|
|
|
|
+ if(empty($divApproval))
|
|
|
|
+ return '/invoiceApproval';
|
|
|
|
+ else
|
|
|
|
+ return '/invoiceApprovalAchieve';
|
|
}
|
|
}
|
|
die ( 'illegal request' );
|
|
die ( 'illegal request' );
|
|
}
|
|
}
|
|
@@ -2316,6 +2321,7 @@ class InvoiceController extends DooController {
|
|
$invoice = new invoice ();
|
|
$invoice = new invoice ();
|
|
$iid = $this->get_args ( 'invoiceKey' ) ? $this->get_args ( 'invoiceKey' ) : "";
|
|
$iid = $this->get_args ( 'invoiceKey' ) ? $this->get_args ( 'invoiceKey' ) : "";
|
|
$invoiceNo = $this->get_args ( 'invoiceNo' ) ? $this->get_args ( 'invoiceNo' ) : "";
|
|
$invoiceNo = $this->get_args ( 'invoiceNo' ) ? $this->get_args ( 'invoiceNo' ) : "";
|
|
|
|
+ $invoicePrintType = $this->get_args ( 'invoicePrintType' ) ? $this->get_args ( 'invoicePrintType' ) : "";
|
|
|
|
|
|
$iid = $invoice->authcode ( $iid );
|
|
$iid = $invoice->authcode ( $iid );
|
|
if (! is_numeric ( $iid ))
|
|
if (! is_numeric ( $iid ))
|
|
@@ -2396,8 +2402,10 @@ class InvoiceController extends DooController {
|
|
$msg = '';
|
|
$msg = '';
|
|
$url = 'http://m.cld.smartcost.com.cn/invoicePrintDetail/' . $XDeode->encode ( $invoicePrintDetail ['iid'] ) . '.html';
|
|
$url = 'http://m.cld.smartcost.com.cn/invoicePrintDetail/' . $XDeode->encode ( $invoicePrintDetail ['iid'] ) . '.html';
|
|
$hfreult = $this->msgSend ( $msg, $title2, $url, $username2 ['wxid'], $invoicePrintDetail ['sid'], 'print' );
|
|
$hfreult = $this->msgSend ( $msg, $title2, $url, $username2 ['wxid'], $invoicePrintDetail ['sid'], 'print' );
|
|
-
|
|
|
|
- return "/invoicePrint";
|
|
|
|
|
|
+ if (empty($invoicePrintType))
|
|
|
|
+ return "/invoicePrint";
|
|
|
|
+ else
|
|
|
|
+ return "/invoicePrintStayAchieve";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4999,6 +5007,7 @@ class InvoiceController extends DooController {
|
|
<form action="/invoiceApprovalDo" method="post" name="invoiceApproval" class="nice-validator n-yellow" novalidate="novalidate">
|
|
<form action="/invoiceApprovalDo" method="post" name="invoiceApproval" class="nice-validator n-yellow" novalidate="novalidate">
|
|
<input type="hidden" name="invoiceKey" value="' . $detail ['iidKeyXD'] . '">
|
|
<input type="hidden" name="invoiceKey" value="' . $detail ['iidKeyXD'] . '">
|
|
<input type="hidden" name="status" value="">
|
|
<input type="hidden" name="status" value="">
|
|
|
|
+ <input type="hidden" name="divApproval" value="divApproval">
|
|
|
|
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content"><div class="modal-header"><h3>发票审批详情</h3></div>
|
|
<div class="modal-content"><div class="modal-header"><h3>发票审批详情</h3></div>
|
|
@@ -5093,9 +5102,9 @@ class InvoiceController extends DooController {
|
|
$html .= '</td></tr></tbody></table>';
|
|
$html .= '</td></tr></tbody></table>';
|
|
}
|
|
}
|
|
$html .= '</div><div class="modal-footer">
|
|
$html .= '</div><div class="modal-footer">
|
|
- <a href="javascript:void(0)" node-approval="approval" diss-data="2" class="button btn-done" data-placement="top" data-toggle="ctooltip" >同意</a>
|
|
|
|
- <a href="javascript:void(0)" node-approval="approval" diss-data="3" class="button btn-back" data-placement="top" data-toggle="ctooltip" data-original-title="上报人修改后重新审批">退回</a>
|
|
|
|
- <a href="javascript:void(0)" node-approval="approval" diss-data="4" class="button btn-undone" data-placement="top" data-toggle="ctooltip" data-original-title="终止发票申请">终止</a>
|
|
|
|
|
|
+ <a href="javascript:void(0)" node-approval="approval" diss-data="2" class="button btn-done" data-placement="top" data-toggle="ctooltip" >同意</a>
|
|
|
|
+ <a href="javascript:void(0)" node-approval="approval" diss-data="3" class="button btn-back" data-placement="top" data-toggle="ctooltip" data-original-title="上报人修改后重新审批">退回</a>
|
|
|
|
+ <a href="javascript:void(0)" node-approval="approval" diss-data="4" class="button btn-undone" data-placement="top" data-toggle="ctooltip" data-original-title="终止发票申请">终止</a>
|
|
|
|
|
|
<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a></div></div></div>
|
|
<a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a></div></div></div>
|
|
</form>
|
|
</form>
|
|
@@ -5196,7 +5205,7 @@ class InvoiceController extends DooController {
|
|
foreach ( $list as $key => $value ) {
|
|
foreach ( $list as $key => $value ) {
|
|
$irDetail = array ();
|
|
$irDetail = array ();
|
|
|
|
|
|
- if ($value ['status'] == 1) {
|
|
|
|
|
|
+ if ($value ['status'] == 1&&$value['pendingApprovals']==$this->staff[0]['sid']) {
|
|
array_push ( $irDetail, '<a href="#approvalInvice" onclick="nodeInvoiceApproval(\'' . $value ['iidKeyK'] . '\')" data-toggle="modal">审批发票</a>' );
|
|
array_push ( $irDetail, '<a href="#approvalInvice" onclick="nodeInvoiceApproval(\'' . $value ['iidKeyK'] . '\')" data-toggle="modal">审批发票</a>' );
|
|
} else
|
|
} else
|
|
array_push ( $irDetail, '' );
|
|
array_push ( $irDetail, '' );
|
|
@@ -5522,6 +5531,12 @@ class InvoiceController extends DooController {
|
|
$detail = $invoice->getInvoiceByIsid ( $serial, $this->staff [0] ['sid'] );
|
|
$detail = $invoice->getInvoiceByIsid ( $serial, $this->staff [0] ['sid'] );
|
|
$invoiceOperationLogList = $invoiceOperationLog->getInvoiceOperationLogByIid ( $detail ['iid'] );
|
|
$invoiceOperationLogList = $invoiceOperationLog->getInvoiceOperationLogByIid ( $detail ['iid'] );
|
|
|
|
|
|
|
|
+
|
|
|
|
+ Doo::loadModel ( 'invoicePaper' );
|
|
|
|
+ $invoicePaper = new invoicePaper ();
|
|
|
|
+
|
|
|
|
+ $invoicePaperList = $invoicePaper->getInvoicePaperByInvoiceType ( $detail ['invoiceType'] );
|
|
|
|
+
|
|
if (empty ( $detail ))
|
|
if (empty ( $detail ))
|
|
$html = '';
|
|
$html = '';
|
|
else {
|
|
else {
|
|
@@ -5529,7 +5544,7 @@ class InvoiceController extends DooController {
|
|
|
|
|
|
<form action="/invoicePrintDo" method="post" name="invoicePrint" class="nice-validator n-yellow" onSubmit="return checkPrintForm()" novalidate="novalidate">
|
|
<form action="/invoicePrintDo" method="post" name="invoicePrint" class="nice-validator n-yellow" onSubmit="return checkPrintForm()" novalidate="novalidate">
|
|
<input type="hidden" name="invoiceKey" value="' . $detail ['iidKeyXD'] . '">
|
|
<input type="hidden" name="invoiceKey" value="' . $detail ['iidKeyXD'] . '">
|
|
-
|
|
|
|
|
|
+ <input type="hidden" name="invoicePrintType" value="invoicePrintType">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-dialog modal-lg">
|
|
|
|
|
|
<div class="modal-content"><div class="modal-header"><h3>发票单详情</h3></div>
|
|
<div class="modal-content"><div class="modal-header"><h3>发票单详情</h3></div>
|
|
@@ -5612,7 +5627,20 @@ class InvoiceController extends DooController {
|
|
}
|
|
}
|
|
$html .= '</td>
|
|
$html .= '</td>
|
|
|
|
|
|
- <td><span class="colRed">*</span>No.<input name="invoiceNo" id="invoiceNo" value="" type="text" placeholder="输入发票号" aria-required="true" aria-invalid="true" class="n-invalid">
|
|
|
|
|
|
+ <td><span class="colRed">*</span>
|
|
|
|
+
|
|
|
|
+ <select name="invoiceNo" id="invoiceNo" style="width:97%">';
|
|
|
|
+
|
|
|
|
+ foreach($invoicePaperList as $key=>$value){
|
|
|
|
+ $html .= '<option value="'.$value['ipidKey'].'">No.'.$value['invoiceNo'].'</option>';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $html .= '</select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
<span class="red" id="p-msg"></span>
|
|
<span class="red" id="p-msg"></span>
|
|
</td>
|
|
</td>
|
|
|
|
|