Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
a6b13819
Commit
a6b13819
authored
Aug 15, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 交付单详情
parent
b9f90b49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
+19
-0
tx-fi-tax/app/base/service/impl/bizchance/deliverybillSve.js
+50
-0
No files found.
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
a6b13819
...
@@ -94,5 +94,23 @@ class DeliverybillCtl extends CtlBase {
...
@@ -94,5 +94,23 @@ class DeliverybillCtl extends CtlBase {
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
/**
* 交付单详情
* @param {*} pobj
* @param {*} qobj
* @param {*} req
*/
async
deliverInfo
(
pobj
,
qobj
,
req
)
{
try
{
if
(
!
pobj
.
deliverId
)
{
throw
new
Error
(
"deliverId 不能为空"
);
}
const
rs
=
await
this
.
service
.
deliverInfo
(
pobj
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
module
.
exports
=
DeliverybillCtl
;
module
.
exports
=
DeliverybillCtl
;
\ No newline at end of file
tx-fi-tax/app/base/service/impl/bizchance/deliverybillSve.js
View file @
a6b13819
...
@@ -6,6 +6,8 @@ class DeliverybillService extends ServiceBase {
...
@@ -6,6 +6,8 @@ class DeliverybillService extends ServiceBase {
constructor
()
{
constructor
()
{
super
(
"bizchance"
,
ServiceBase
.
getDaoName
(
DeliverybillService
));
super
(
"bizchance"
,
ServiceBase
.
getDaoName
(
DeliverybillService
));
this
.
logService
=
system
.
getObject
(
"service.bizchance.statuslogSve"
);
this
.
logService
=
system
.
getObject
(
"service.bizchance.statuslogSve"
);
this
.
fitaxschemeDao
=
system
.
getObject
(
"service.bizchance.fitaxschemeDao"
);
}
}
async
updateOrderStatus
(
pobj
)
{
async
updateOrderStatus
(
pobj
)
{
...
@@ -75,5 +77,52 @@ class DeliverybillService extends ServiceBase {
...
@@ -75,5 +77,52 @@ class DeliverybillService extends ServiceBase {
});
});
return
"SUCCESS"
return
"SUCCESS"
}
}
async
deliverInfo
(
pobj
)
{
let
result
=
{};
let
deliverData
=
await
this
.
dao
.
findOne
({
id
:
pobj
.
deliverId
});
if
(
!
deliverData
)
{
throw
new
Error
(
"查不到此交付单"
);
}
result
.
deliverData
=
{
deliveryId
:
deliverData
.
id
,
// id
deliveryNumber
:
deliverData
.
delivery_code
,
// 交付单编号
companyName
:
deliverData
.
delivery_info
.
companyName
,
// 企业名称
uscc
:
deliverData
.
delivery_info
.
uscc
,
//统一信用代码
taxpayerType
:
delivery_info
.
taxpayerType
,
//纳税人类型 1 一般;2 小规模
//会计准侧
companyBizType
:
delivery_info
.
companyBizType
,
// 公司类型 1-商贸型;2-服务型;3-特殊行业;4-其他
areaType
:
delivery_info
.
areaType
,
//区域类型 city-城市
area
:
service_address
,
// 服务 地区 编码
contactsName
:
delivery_info
.
contactsName
,
// 联系人
contactsPhone
:
delivery_info
.
contactsPhone
,
// 联系电话
owner
:
salesman_name
,
//所属人
deliveryStatus
:
delivery_status
,
// 交付单状态
setupStatus
:
delivery_info
.
setupStatus
||
System
.
SERVERSESTATUS
.
NOTSETUP
,
//建账状态 notsetup | setup
createdAt
:
created_at
,
updatedAt
:
updated_at
,
}
if
(
deliverData
.
scheme_number
)
{
let
schemeData
=
await
this
.
fitaxschemeDao
.
findOne
({
solution_bizid
:
deliverData
.
scheme_number
});
if
(
schemeData
)
{
result
.
schemeData
=
{
demandCode
:
schemeData
.
demand_code
,
schemeCode
:
deliverData
.
scheme_number
,
// 服务类型
companyType
:
schemeData
.
company_type
,
area
:
schemeData
.
service_name
,
buyDuration
:
schemeData
.
buy_duration
,
buyNumber
:
schemeData
.
number
,
totalCost
:
schemeData
.
total_cost
,
note
:
schemeData
.
remarks
}
}
}
return
result
}
}
}
module
.
exports
=
DeliverybillService
;
module
.
exports
=
DeliverybillService
;
\ No newline at end of file
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