Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
561e2e76
Commit
561e2e76
authored
Jul 19, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索门店
parent
16cf8a6f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
Broker.php
application/index/controller/Broker.php
+2
-0
StoreFee.php
application/index/controller/StoreFee.php
+26
-0
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Broker.php
View file @
561e2e76
...
@@ -1095,4 +1095,5 @@ class Broker extends Basic
...
@@ -1095,4 +1095,5 @@ class Broker extends Basic
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
]);
return
$this
->
response
(
$result
[
'code'
],
$result
[
'msg'
]);
}
}
}
}
\ No newline at end of file
application/index/controller/StoreFee.php
View file @
561e2e76
...
@@ -283,6 +283,31 @@ class StoreFee extends Basic
...
@@ -283,6 +283,31 @@ class StoreFee extends Basic
}
}
/**
* 搜索门店
* @return \think\Response
*/
public
function
selectStore
()
{
$params
=
$this
->
params
;
/*$params = array(
"store_name" => '测试'
);*/
$conditions
=
[];
if
(
!
empty
(
$params
[
'store_name'
]))
{
$conditions
[
'store_name'
]
=
[
'LIKE'
,
'%'
.
$params
[
'store_name'
]
.
'%'
];
}
$m_store
=
new
AStore
();
$store_field
=
'id,store_name'
;
$store_result
=
$m_store
->
getStore
(
$conditions
,
$store_field
);
if
(
$store_result
)
return
$this
->
response
(
"101"
,
"成功"
,[]);
return
$this
->
response
(
"200"
,
"成功"
,
$store_result
);
}
}
}
\ No newline at end of file
application/route.php
View file @
561e2e76
...
@@ -525,6 +525,7 @@ Route::group('index', [
...
@@ -525,6 +525,7 @@ Route::group('index', [
'editOffice'
=>
[
'index/StoreFee/editOffice'
,
[
'method'
=>
'POST|GET'
]
],
'editOffice'
=>
[
'index/StoreFee/editOffice'
,
[
'method'
=>
'POST|GET'
]
],
'getStoreList'
=>
[
'index/StoreFee/getStoreList'
,
[
'method'
=>
'POST|GET'
]
],
'getStoreList'
=>
[
'index/StoreFee/getStoreList'
,
[
'method'
=>
'POST|GET'
]
],
'bindStore'
=>
[
'index/StoreFee/bindStore'
,
[
'method'
=>
'POST|GET'
]
],
'bindStore'
=>
[
'index/StoreFee/bindStore'
,
[
'method'
=>
'POST|GET'
]
],
'selectStore'
=>
[
'index/StoreFee/selectStore'
,
[
'method'
=>
'POST|GET'
]
],
'getCostList'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
]],
//费用报销审核全部
'getCostList'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
]],
//费用报销审核全部
'getCostListOne/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
0
]],
//费用报销未审核
'getCostListOne/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
0
]],
//费用报销未审核
'getCostListTwo/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
1
]],
//费用报销审核总监
'getCostListTwo/:check_status'
=>
[
'index/Cost/getCostList'
,
[
'method'
=>
'GET'
],
[
'check_status'
=>
1
]],
//费用报销审核总监
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment