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
71ceef3a
Commit
71ceef3a
authored
Oct 29, 2021
by
centerwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: (tradetransferCtl/Sve) 商标转让跟进记录接口调整
parent
0d8d1ba3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
14 deletions
+61
-14
jiaxiya/app/base/controller/impl/transfer/tradetransferCtl.js
+14
-0
jiaxiya/app/base/db/models/transfer/tradetransfer.js
+3
-1
jiaxiya/app/base/service/impl/transfer/tradetransferSve.js
+35
-9
jiaxiya/app/front/vues/pages/tradetransferdiliver/tradetransferdiliver.js
+9
-4
No files found.
jiaxiya/app/base/controller/impl/transfer/tradetransferCtl.js
View file @
71ceef3a
...
@@ -126,6 +126,20 @@ class TradetransferCtl extends CtlBase {
...
@@ -126,6 +126,20 @@ class TradetransferCtl extends CtlBase {
}
}
//更新沟通记录
async
updateCommunicationLog
(
p
,
q
,
req
){
var
self
=
this
;
if
(
!
p
.
ali_bizid
){
return
system
.
getResult
(
null
,
"请求异常"
);
}
try
{
var
rst
=
await
self
.
service
.
writecommunicationlog
(
p
);
console
.
log
(
rst
)
return
{
status
:
0
,
msg
:
"成功"
,
data
:
{
ali_bizid
:
p
.
ali_bizid
}
};
}
catch
(
e
)
{
return
system
.
getResult
(
null
,
"请求异常"
);
}
}
}
}
module
.
exports
=
TradetransferCtl
;
module
.
exports
=
TradetransferCtl
;
...
...
jiaxiya/app/base/db/models/transfer/tradetransfer.js
View file @
71ceef3a
...
@@ -60,7 +60,9 @@ module.exports = (db, DataTypes) => {
...
@@ -60,7 +60,9 @@ module.exports = (db, DataTypes) => {
owner_name
:
DataTypes
.
STRING
,
//业务员姓名
owner_name
:
DataTypes
.
STRING
,
//业务员姓名
owner_mobile
:
DataTypes
.
STRING
,
//业务员电话
owner_mobile
:
DataTypes
.
STRING
,
//业务员电话
mail_zip_url
:
DataTypes
.
STRING
,
//邮寄文件链接
mail_zip_url
:
DataTypes
.
STRING
,
//邮寄文件链接
logistics
:
DataTypes
.
STRING
//邮寄单编号
logistics
:
DataTypes
.
STRING
,
//邮寄单编号
communicationLog
:
DataTypes
.
TEXT
//沟通记录
},
{
},
{
paranoid
:
true
,
//假的删除
paranoid
:
true
,
//假的删除
underscored
:
true
,
underscored
:
true
,
...
...
jiaxiya/app/base/service/impl/transfer/tradetransferSve.js
View file @
71ceef3a
...
@@ -488,16 +488,42 @@ class TradetransferService extends ServiceBase {
...
@@ -488,16 +488,42 @@ class TradetransferService extends ServiceBase {
//买卖家沟通记录
//买卖家沟通记录
async
writecommunicationlog
(
obj
)
{
async
writecommunicationlog
(
obj
)
{
var
obj
=
{
let
faillist
=
[];
action
:
"WriteCommunicationLog"
,
let
transferinfo
=
await
this
.
findOne
({
ali_bizid
:
obj
.
ali_bizid
});
reqbody
:
{
let
self
=
this
;
BizId
:
obj
.
ali_bizid
,
await
this
.
db
.
transaction
(
async
function
(
t
)
{
note
:
obj
.
note
let
params
=
{
creter
:
obj
.
user
,
BizId
:
obj
.
ali_bizid
,
time
:
obj
.
trackDate
,
note
:
obj
.
note
};
if
(
transferinfo
.
communicationLog
.
length
==
0
){
transferinfo
.
communicationLog
=
[];
transferinfo
.
communicationLog
.
push
(
params
);
}
else
{
transferinfo
.
communicationLog
=
JSON
.
parse
(
transferinfo
.
communicationLog
);
transferinfo
.
communicationLog
.
push
(
params
);
}
params
=
JSON
.
stringify
(
transferinfo
.
communicationLog
);
let
upd
=
self
.
dao
.
model
.
update
({
communicationLog
:
params
},
{
where
:
{
ali_bizid
:
obj
.
ali_bizid
}
});
if
(
!
upd
)
{
faillist
.
push
(
obj
.
ali_bizid
);
}
}
}
var
rtn
=
await
this
.
aliclient
(
obj
)
//调用阿里接口
console
.
log
(
rtn
)
// let aliObj = {
return
rtn
;
// action: "WriteCommunicationLog",
// reqbody: {
// BizId: obj.ali_bizid,
// note: obj.note
// }
// }
// this.aliclient(aliObj);
return
;
});
}
}
//获取签名
//获取签名
...
...
jiaxiya/app/front/vues/pages/tradetransferdiliver/tradetransferdiliver.js
View file @
71ceef3a
...
@@ -93,12 +93,17 @@
...
@@ -93,12 +93,17 @@
this
.
trackVisable
=
false
;
this
.
trackVisable
=
false
;
},
},
saveClick
(){
saveClick
(){
let
pushData
=
{
"pushData"
:{
"trackDate"
:
new
Date
().
toLocaleString
(),
"trackContent"
:
this
.
trackContent
}};
let
pushData
=
{
"trackDate"
:
new
Date
().
toLocaleString
(),
"note"
:
this
.
trackContent
,
"ali_bizid"
:
'trademark_prepayment_pre-cn-v0h1mda5i0i'
,
"user"
:
51
};
var
self
=
this
;
var
self
=
this
;
this
.
$root
.
postReq
(
"/web/transfer/tradetransferCtl/
track
"
,
pushData
).
then
(
function
(
d
)
{
this
.
$root
.
postReq
(
"/web/transfer/tradetransferCtl/
updateCommunicationLog
"
,
pushData
).
then
(
function
(
d
)
{
/*返回整个跟进字段,解析为数组*/
/*返回整个跟进字段,解析为数组*/
self
.
trackRecords
.
push
(
d
.
data
);
self
.
trackRecords
.
push
(
d
.
data
);
})
})
}
}
...
...
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