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
98315672
Commit
98315672
authored
Jun 10, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
5706edb2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
2 deletions
+31
-2
center-manage/app/base/controller/impl/common/channelCtl.js
+4
-0
center-manage/app/base/controller/impl/common/companyCtl.js
+5
-0
center-manage/app/base/db/models/product/productprice.js
+16
-0
center-manage/app/base/service/impl/product/productSve.js
+6
-2
No files found.
center-manage/app/base/controller/impl/common/channelCtl.js
View file @
98315672
...
...
@@ -7,5 +7,9 @@ class ChannelCtl extends CtlBase {
constructor
()
{
super
(
"common"
,
CtlBase
.
getServiceName
(
ChannelCtl
));
}
async
refQuery
(
pobj
,
qobj
,
req
)
{
let
rtn
=
await
this
.
service
.
refQuery
(
pobj
);
return
rtn
}
}
module
.
exports
=
ChannelCtl
;
center-manage/app/base/controller/impl/common/companyCtl.js
View file @
98315672
...
...
@@ -54,6 +54,11 @@ class CompanyCtl extends CtlBase {
}
return
system
.
getResult
({
orgJson
:
rtnjson
})
}
async
refQuery
(
pobj
,
qobj
,
req
)
{
let
rtn
=
await
this
.
service
.
refQuery
(
pobj
);
return
rtn
}
}
module
.
exports
=
CompanyCtl
;
center-manage/app/base/db/models/product/productprice.js
View file @
98315672
...
...
@@ -4,6 +4,22 @@ const appconfig=system.getSysConfig();
module
.
exports
=
(
db
,
DataTypes
)
=>
{
//定价类型
return
db
.
define
(
"productprice"
,
{
sptags
:{
//交付商标签
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
channeltags
:{
//渠道标签
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
skucode
:{
//自定义简码
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
skuname
:{
//自定义名称
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
pname
:{
//产品名称
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
...
...
center-manage/app/base/service/impl/product/productSve.js
View file @
98315672
...
...
@@ -32,7 +32,9 @@ class ProductService extends ServiceBase {
pricestrategy_id
:
stragetyid
,
pname
:
p
.
name
,
strategyitems
:
tmpdic
[
stragetyid
+
''
],
company_id
:
p
.
company_id
company_id
:
p
.
company_id
,
skucode
:
p
.
skucode
?
p
.
skucode
:
this
.
getUUID
(),
skuname
:
p
.
skuname
?
p
.
skuname
:
p
.
name
,
}
productprices
.
push
(
pps
)
})
...
...
@@ -85,7 +87,9 @@ class ProductService extends ServiceBase {
pricestrategy_id
:
stragetyid
,
pname
:
p
.
name
,
strategyitems
:
tmpdic
[
stragetyid
+
''
],
company_id
:
p
.
company_id
company_id
:
p
.
company_id
,
skucode
:
this
.
getUUID
(),
skuname
:
p
.
name
,
}
productprices
.
push
(
pps
)
})
...
...
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