Commit 13349530 by 蒋勇

d

parent 182ef480
...@@ -523,42 +523,16 @@ class TradetransferService extends ServiceBase { ...@@ -523,42 +523,16 @@ class TradetransferService extends ServiceBase {
} }
//买卖家沟通记录 //买卖家沟通记录
async writecommunicationlog(obj) { async writecommunicationlog(obj) {
let faillist = []; var obj = {
let transferinfo = await this.findOne({ ali_bizid: obj.ali_bizid }); action: "WriteCommunicationLog",
let self = this; reqbody: {
await this.db.transaction(async function (t) {
let params = {
creter: obj.user,
BizId: obj.ali_bizid, BizId: obj.ali_bizid,
time: obj.trackDate,
note: obj.note 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 ;
});
} }
//获取签名 //获取签名
......
...@@ -118,7 +118,6 @@ ...@@ -118,7 +118,6 @@
this.trackVisable=false; this.trackVisable=false;
}, },
saveClick(){ saveClick(){
<<<<<<< HEAD
if(this.trackContent==""){ if(this.trackContent==""){
return; return;
} }
...@@ -132,19 +131,6 @@ ...@@ -132,19 +131,6 @@
self.currentRow.tracklog=d.data.tracklog; self.currentRow.tracklog=d.data.tracklog;
self.handlerTrackLog(self.currentRow); self.handlerTrackLog(self.currentRow);
=======
let pushData={
"trackDate":new Date().toLocaleString(),
"note":this.trackContent,
"ali_bizid": 'trademark_prepayment_pre-cn-v0h1mda5i0i',
"user": 51
};
var self=this;
this.$root.postReq("/web/transfer/tradetransferCtl/updateCommunicationLog", pushData).then(function (d) {
/*返回整个跟进字段,解析为数组*/
self.trackRecords.push(d.data);
>>>>>>> 71ceef3aff931c3fa95f0a89875de812b8a8a989
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment