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
6f8af585
Commit
6f8af585
authored
May 28, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增开票编辑时候获取数据
parent
f07869ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
Finance.php
application/index/controller/Finance.php
+18
-0
OTaxes.php
application/model/OTaxes.php
+14
-0
route.php
application/route.php
+4
-0
No files found.
application/index/controller/Finance.php
View file @
6f8af585
...
@@ -632,6 +632,24 @@ class Finance extends Basic
...
@@ -632,6 +632,24 @@ class Finance extends Basic
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
}
/**
* 编辑开票税费查询某一条记录
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getTaxesById
()
{
if
(
empty
(
$this
->
params
[
'taxes_id'
]))
{
return
$this
->
response
(
101
,
'查询开票税费参数错误!'
);
}
$m_fee
=
new
OTaxes
();
$field
=
'id,bargain_id,fee,total_fee,father_id,operation_id,operation_date,agent_id,agent_name,role,scale,is_del'
;
$data
=
$m_fee
->
getTaxesId
(
$this
->
params
[
'taxes_id'
],
$field
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
/**
/**
* 新增开票
* 新增开票
*
*
...
...
application/model/OTaxes.php
View file @
6f8af585
...
@@ -109,6 +109,20 @@ class OTaxes extends BaseModel
...
@@ -109,6 +109,20 @@ class OTaxes extends BaseModel
return
$result
;
return
$result
;
}
}
/**
* 根据id 查询详情 zw
* @param int $taxesId
* @param string $field
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getTaxesId
(
int
$taxesId
,
string
$field
)
{
return
$this
->
field
(
$field
)
->
where
(
'id'
,
$taxesId
)
->
where
(
'is_del'
,
0
)
->
select
();
}
/**
/**
* 税费承担明细表
* 税费承担明细表
*
*
...
...
application/route.php
View file @
6f8af585
...
@@ -229,6 +229,10 @@ Route::group('index', [
...
@@ -229,6 +229,10 @@ Route::group('index', [
'carryOut'
=>
[
'index/Supervise/carryOut'
,
[
'method'
=>
'get'
]
],
//监督执行
'carryOut'
=>
[
'index/Supervise/carryOut'
,
[
'method'
=>
'get'
]
],
//监督执行
'toReportListOne'
=>
[
'index/Finance/toReportListOne'
,
[
'method'
=>
'POST'
]
],
//回到一级审核
'toReportListOne'
=>
[
'index/Finance/toReportListOne'
,
[
'method'
=>
'POST'
]
],
//回到一级审核
'checkOver'
=>
[
'index/Finance/checkOver'
,
[
'method'
=>
'POST'
]
],
//财务结单
'checkOver'
=>
[
'index/Finance/checkOver'
,
[
'method'
=>
'POST'
]
],
//财务结单
'getTaxesById'
=>
[
'index/Finance/getTaxesById'
,
[
'method'
=>
'POST|GET'
]
],
//财务结单
]);
]);
...
...
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