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
c67749df
Commit
c67749df
authored
Mar 02, 2021
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5dbfd34c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
center-order/app/base/db/metadata/apps/platform.js
+2
-1
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+9
-11
No files found.
center-order/app/base/db/metadata/apps/platform.js
View file @
c67749df
...
...
@@ -90,7 +90,7 @@ module.exports = {
//腾讯需求商机状态码
"tx_need_status"
:{
"待处理"
:
"yts"
,
"跟进中"
:
"ygj"
,
"待用户确认"
:
"ygj"
,
"已成交"
:
"ycd"
,
"已关闭"
:
"ygb"
},
//腾讯产品码
"tx_product"
:{
"公司注册"
:
"gszc"
,
"
跟进中
"
:
"kzfu"
,
"税务报道"
:
"swbd"
,
"税控申请"
:
"sksq"
,
"代理记账"
:
"dljz"
,
"银行开户"
:
"yhkh"
,
"工商变更"
:
"gsbg"
,
"工商年报"
:
"gsnb"
,
"社保开户"
:
"sbkh"
,
"云上园区服务"
:
"ysgszc"
,
"icp"
:
"icpsq"
,
"edi"
:
"edisq"
,
"icp年报"
:
"icpnb"
,
"edi年报"
:
"edinb"
},
"tx_product"
:{
"公司注册"
:
"gszc"
,
"
刻章服务
"
:
"kzfu"
,
"税务报道"
:
"swbd"
,
"税控申请"
:
"sksq"
,
"代理记账"
:
"dljz"
,
"银行开户"
:
"yhkh"
,
"工商变更"
:
"gsbg"
,
"工商年报"
:
"gsnb"
,
"社保开户"
:
"sbkh"
,
"云上园区服务"
:
"ysgszc"
,
"icp"
:
"icpsq"
,
"edi"
:
"edisq"
,
"icp年报"
:
"icpnb"
,
"edi年报"
:
"edinb"
},
},
}
}
\ No newline at end of file
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
c67749df
...
...
@@ -4,6 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
const
ServiceBase
=
require
(
"../../sve.base"
);
const
uuidv4
=
require
(
'uuid/v4'
);
const
sequelize
=
require
(
'sequelize'
);
const
platformConfig
=
require
(
"../../../db/metadata/apps/platform.js"
);
class
OrderInfoService
extends
ServiceBase
{
constructor
()
{
super
(
"dbcorder"
,
ServiceBase
.
getDaoName
(
OrderInfoService
));
...
...
@@ -2172,6 +2173,7 @@ class OrderInfoService extends ServiceBase {
let
ordersArr
=
[];
let
contactsArr
=
[];
let
productsArr
=
[];
const
tx_product
=
platformConfig
.
config
.
pdict
.
tx_product
;
let
arr
=
pobj
.
actionBody
.
ordersArr
;
let
uapp_id
=
pobj
.
actionBody
.
uapp_id
;
/*{
...
...
@@ -2216,7 +2218,7 @@ class OrderInfoService extends ServiceBase {
};
contactsArr
.
push
(
customerContactObj
);
}
let
whereParams
=
{
uapp_id
:
uapp_id
,
item_name
:
order
.
productType
};
/*
let whereParams = {uapp_id:uapp_id,item_name:order.productType};
pobj.actionType = 'getProductByWhere';
pobj.actionBody = {
whereParams
...
...
@@ -2229,21 +2231,17 @@ class OrderInfoService extends ServiceBase {
if (result.data.status != 0) {
return result.data;
}
let
product
=
result
.
data
.
data
;
let product = result.data.data;
*/
let
orderProductObj
=
{
uapp_id
:
uapp_id
,
sourceOrderNo
:
order
.
number
,
// 来源单号
productType_id
:
product
.
productType_id
,
//产品类型Id
pathCode
:
product
.
path_code
,
//产品路径
itemCode
:
product
.
item_code
,
//产品编码
itemName
:
product
.
item_name
,
//产品名称
channelItemCode
:
product
.
channel_item_code
,
// 渠道产品编码
channelItemName
:
product
.
channel_item_name
,
// 渠道产品名称
serviceItemCode
:
product
.
service_item_code
,
// 服务商产品编码
itemCode
:
tx_product
[
order
.
productType
],
//产品编码
itemName
:
order
.
productType
,
//产品名称
channelItemCode
:
tx_product
[
order
.
productType
],
// 渠道产品编码
channelItemName
:
order
.
productType
,
// 渠道产品名称
price
:
order
.
price
,
//定价
quantity
:
1
,
// 订单数量(即产品的倍数,默认值为1)
opPayType
:
"00"
,
// 操作付款类型:00: 创建订单, 10: 补单
serviceItemSnapshot
:
JSON
.
stringify
(
product
),
//产品快照
opPayType
:
"10"
,
// 操作付款类型:00: 创建订单, 10: 补单
};
productsArr
.
push
(
orderProductObj
);
}
...
...
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