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
e79c66ae
Commit
e79c66ae
authored
Jul 14, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
b8189916
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
+22
-9
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
+1
-0
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
+17
-9
ic-deliver/app/base/db/models/delivery/delivery_bill.js
+4
-0
No files found.
ic-deliver/app/base/controller/impl/bizchance/bizoptCtl.js
View file @
e79c66ae
...
...
@@ -51,6 +51,7 @@ class BizOptCtl extends CtlBase {
robj
.
servicerName
=
element
.
facilitator_name
;
robj
.
facilitator_name
=
element
.
facilitator_name
;
robj
.
sourceName
=
element
.
source_name
;
//渠道来源
robj
.
source_name
=
element
.
source_name
;
//渠道来源--前端服务
robj
.
salesman_name
=
element
.
salesman_name
robj
.
salesman_phone
=
element
.
salesman_phone
...
...
ic-deliver/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
e79c66ae
...
...
@@ -33,6 +33,7 @@ class DeliverybillCtl extends CtlBase {
const
rs
=
await
this
.
service
.
findAndCountAll
(
pobj
);
let
rarr
=
[];
let
results
=
rs
.
results
.
rows
;
console
.
log
(
"-----------------------------------------"
+
JSON
.
stringify
(
results
));
results
.
forEach
(
element
=>
{
let
robj
=
{};
robj
.
id
=
element
.
id
;
//数据的id
...
...
@@ -50,6 +51,13 @@ class DeliverybillCtl extends CtlBase {
}
robj
.
baseInfo
=
element
.
delivery_info
;
//交付单详情
robj
.
payStatus
=
element
.
delivery_info
.
payStatus
;
//交付状态
if
(
element
.
pay_status
&&
element
.
pay_status
!=
'undefined'
){
robj
.
pay_status
=
element
.
pay_status
;
//交付状态---前端服务
}
else
{
robj
.
pay_status
=
""
;
//交付状态---前端服务
}
robj
.
costPrice
=
this
.
FenToYuan
(
element
.
cost_price
);
//成本
robj
.
settle_status
=
element
.
settle_status
;
robj
.
settlebill
=
element
.
settlebill
;
...
...
@@ -884,16 +892,16 @@ class DeliverybillCtl extends CtlBase {
}
module
.
exports
=
DeliverybillCtl
;
//var task = new DeliverybillCtl();
// var d = new Date("2020-06-05");
// console.log("dddddddddddd:" + d);
// var oneYear = task.oneYearPast(d,1);
// var ss = moment();
// var diff = task.diffDays(ss,oneYear);
// console.log(oneYear);
// console.log(diff);
//
var task = new DeliverybillCtl();
//
//
var d = new Date("2020-06-05");
//
//
console.log("dddddddddddd:" + d);
//
//
var oneYear = task.oneYearPast(d,1);
//
//
var ss = moment();
//
//
var diff = task.diffDays(ss,oneYear);
//
//
console.log(oneYear);
//
//
console.log(diff);
// var obj={"d":{"deliverNumber":"1111111"}};
// task.find
ZipUrlByDeliverCode
(obj,{},{}).then(d=>{
// task.find
AndCountAll
(obj,{},{}).then(d=>{
// console.log(d);
// //console.log(d[0].analyse);
...
...
ic-deliver/app/base/db/models/delivery/delivery_bill.js
View file @
e79c66ae
...
...
@@ -18,6 +18,10 @@ module.exports = (db, DataTypes) => {
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
pay_status
:
{
// 交付状态-虚拟字段
allowNull
:
true
,
type
:
DataTypes
.
STRING
},
demand_code
:
{
// 商机编号
allowNull
:
true
,
type
:
DataTypes
.
STRING
...
...
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