提交 a5c6da38 authored 作者: chengye's avatar chengye

test

上级 207dfe31
......@@ -27,8 +27,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/application/em/model/EmInvoice.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="213">
<caret line="31" column="34" selection-start-line="31" selection-start-column="20" selection-end-line="31" selection-end-column="34" />
<state relative-caret-position="120">
<caret line="49" column="53" selection-start-line="49" selection-start-column="53" selection-end-line="49" selection-end-column="53" />
</state>
</provider>
</entry>
......@@ -66,8 +66,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/em/controller/Invoice.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="299">
<caret line="67" column="52" selection-start-line="67" selection-start-column="52" selection-end-line="67" selection-end-column="52" />
<state relative-caret-position="186">
<caret line="39" column="35" selection-start-line="39" selection-start-column="35" selection-end-line="39" selection-end-column="35" />
</state>
</provider>
</entry>
......@@ -98,6 +98,7 @@
<find>$sm</find>
<find>/invoice</find>
<find>getInvoiceList</find>
<find>getInvoiceCount</find>
</findStrings>
</component>
<component name="Git.Settings">
......@@ -220,12 +221,12 @@
<workItem from="1578817951649" duration="618000" />
<workItem from="1578900535997" duration="5097000" />
<workItem from="1578907167448" duration="144000" />
<workItem from="1578972376079" duration="3818000" />
<workItem from="1578972376079" duration="4170000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="9765000" />
<option name="totallyTimeSpent" value="10117000" />
</component>
<component name="ToolWindowManager">
<frame x="1358" y="-125" width="1936" height="1056" extended-state="6" />
......@@ -491,15 +492,15 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/em/model/EmInvoice.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="213">
<caret line="31" column="34" selection-start-line="31" selection-start-column="20" selection-end-line="31" selection-end-column="34" />
<state relative-caret-position="120">
<caret line="49" column="53" selection-start-line="49" selection-start-column="53" selection-end-line="49" selection-end-column="53" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/em/controller/Invoice.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="299">
<caret line="67" column="52" selection-start-line="67" selection-start-column="52" selection-end-line="67" selection-end-column="52" />
<state relative-caret-position="186">
<caret line="39" column="35" selection-start-line="39" selection-start-column="35" selection-end-line="39" selection-end-column="35" />
</state>
</provider>
</entry>
......
......@@ -36,6 +36,8 @@ class Invoice extends Base
$search_text = Request::get('search_text');
$search_type = Request::get('search_type');
if($search_text){
var_dump($search_text);
switch ($search_type) {
case '1':
$this->assign('search_text',$search_text);
......@@ -60,12 +62,12 @@ class Invoice extends Base
$page =Request::param('page')?Request::param('page'):1;
$limit = Request::param('limit')?Request::param('limit'):10;
$data = (new EmInvoice)->getInvoiceList($map,$page,$limit);
// foreach ( $data as $key => &$v) {
// $v['status']=parseStatus($v['status']);
// }
//$InvoiceCount = (new EmInvoice)->getInvoiceCount($map);
foreach ( $data as $key => &$v) {
$v['status']=parseStatus($v['status']);
}
$InvoiceCount = (new EmInvoice)->getInvoiceCount($map);
if(Request::param('page')){
return ['code'=>0,'msg'=>'','count'=>100,'data'=>$data];
return ['code'=>0,'msg'=>'','count'=>$InvoiceCount,'data'=>$data];
}
return $this->fetch();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论