Commit 5386ce0a by 陈思聪

feat:递交到商标局接⼝请求参数补充、添加服务商修改资料后重新提交接口

parent 3ac7aa40
...@@ -157,7 +157,10 @@ class TradetransferCtl extends CtlBase { ...@@ -157,7 +157,10 @@ class TradetransferCtl extends CtlBase {
p.aliorder_status = "3", p.aliorder_status = "3",
result = await this.service.supplymaterail(p) result = await this.service.supplymaterail(p)
} }
if (p.transfer_status == "MATERIALS_TO_BE_SUBMITTED") {
p.aliorder_status = "26",
result = await this.service.modifySubmitTransferMaterail(p)
}
if (p.transfer_status == "BUYER_EXPRESS") { if (p.transfer_status == "BUYER_EXPRESS") {
p.aliorder_status = "5", p.aliorder_status = "5",
result = await this.service.posttransfermatereial(p) result = await this.service.posttransfermatereial(p)
...@@ -200,7 +203,7 @@ class TradetransferCtl extends CtlBase { ...@@ -200,7 +203,7 @@ class TradetransferCtl extends CtlBase {
var rd = await this.service.update(p); var rd = await this.service.update(p);
return system.getResult(rd); return system.getResult(rd);
} else { } else {
return system.getResult(null, "阿里请求失败"); return system.getResult(null, "阿里请求失败。" + (result.msg || result.errorMsg || ""));
} }
} catch (error) { } catch (error) {
......
...@@ -315,6 +315,46 @@ class TradetransferService extends ServiceBase { ...@@ -315,6 +315,46 @@ class TradetransferService extends ServiceBase {
return result; return result;
} }
//服务商修改资料后重新提交
async modifySubmitTransferMaterail(obj) {
obj.buyer_businesslicense =buildurl(obj.buyer_businesslicense)
obj.buyer_idcard =buildurl(obj.buyer_idcard)
obj.seller_businesslicense =buildurl(obj.seller_businesslicense)
obj.seller_idcard =buildurl(obj.seller_idcard)
obj.seller_proxy =buildurl(obj.seller_proxy)
obj.tm_cert_url =buildurl(obj.tm_cert_url)
obj.seller_apply =buildurl(obj.seller_apply)
obj.transfer_cert_url =buildurl(obj.transfer_cert_url)
obj.notarization_url =buildurl(obj.notarization_url)
obj.user_type = obj.user_type == "person" ? 2 : 1;
var sobj = {
action: "ModifySubmitTransferMaterail",
reqbody: {
BizId: obj.ali_bizid,
BuyerBusinessLicense: obj.buyer_businesslicense,
BuyerIdCard: obj.buyer_idcard,
RegistrationCert: obj.tm_cert_url,
Notarization: obj.notarization_url + "," + obj.transfer_cert_url,
SellerBusinessLicense: obj.seller_businesslicense,
SellerIdCard: obj.seller_idcard,
SellerProxy: obj.seller_proxy,
SellerApply: obj.seller_apply,
Complete: true,
Name: obj.buyer_name,
Addr: obj.buyer_address,
CardType: obj.user_type,
CardNo: obj.cardno,
ContactName: obj.contact_name,
ContactMobile: parseInt(obj.contact_mobile),
ContactEmail: obj.contact_email
}
}
var result = await this.aliclient(sobj)
console.log(result);
return result;
// return {Success:false,msg:""}
}
//尾款支付---调取阿里云查询后修改订单 //尾款支付---调取阿里云查询后修改订单
async querytradeproducelist(obj) { async querytradeproducelist(obj) {
if (!obj.ali_bizid) { if (!obj.ali_bizid) {
...@@ -388,14 +428,42 @@ class TradetransferService extends ServiceBase { ...@@ -388,14 +428,42 @@ class TradetransferService extends ServiceBase {
msg: "参数异常" msg: "参数异常"
} }
} }
if(!obj.transfer_receive_ack){
return {
status: "-1",
msg: "参数异常:商标局回执不能为空"
}
}
if(!obj.seller_proxy){
return {
status: "-1",
msg: "参数异常:受让人委托书不能为空"
}
}
const entity = await this.findById(obj.id);
// 只有当前流程状态等于 阿里云审核通过 时,才允许提交官方
if(entity.transfer_status != 'PASS_ALIYUN_VERIFY'){
return {
status: "-1",
msg: "流程状态等于 阿里云审核通过 时,才允许提交官方"
}
}
var BizId = obj.ali_bizid; var BizId = obj.ali_bizid;
var obj = { var obj = {
action: "SubmittedTransferMaterail", action: "SubmittedTransferMaterail",
reqbody: { reqbody: {
BizId: BizId BizId: BizId,
TransferOsskey: obj.transfer_receive_ack, // 商标局回执 add
AssigneeProxy: obj.seller_proxy, // 受让人委托书 add
} }
} }
return await this.aliclient(obj); var rtn = await this.aliclient(obj);
console.log(rtn);
return rtn;
} }
//商标局受理 //商标局受理
......
...@@ -45,12 +45,33 @@ ...@@ -45,12 +45,33 @@
}) })
} }
if(key=='alisubmit'){ if(key=='alisubmit'){
this.supplymaterail.transfer_status="PROVIDE_MATERIAL"; /* 如果当前状态等于 待服务商重新提交资料 ,审核驳回后服务商修改资料后重新提交接口*/
this.$root.postReq("/web/transfer/tradetransferCtl/submit", this.supplymaterail).then(function (d) { if(this.supplymaterail.transfer_status != 'MATERIALS_TO_BE_SUBMITTED'){
if (d.status > -1) { this.supplymaterail.transfer_status="PROVIDE_MATERIAL";
history.go(-1) this.$root.postReq("/web/transfer/tradetransferCtl/submit", this.supplymaterail).then(function (d) {
} if (d.status > -1) {
}) history.go(-1);
}else{
if(d.msg){
self.$message.warning("提交失败:"+d.msg);
}else {
self.$message.warning("提交失败。");
}
}
})
}else{
this.$root.postReq("/web/transfer/tradetransferCtl/submit", this.supplymaterail).then(function (d) {
if (d.status > -1) {
history.go(-1);
}else{
if(d.msg){
self.$message.warning("提交失败:"+d.msg);
}else {
self.$message.warning("提交失败。");
}
}
})
}
} }
}, },
onColFormater(row, column, cellvalue, index){ onColFormater(row, column, cellvalue, index){
......
...@@ -134,7 +134,11 @@ ...@@ -134,7 +134,11 @@
}else{ }else{
$("[name='grdid']").show(); $("[name='grdid']").show();
$("[name='frmid']").hide(); $("[name='frmid']").hide();
that.$message.warning("提交失败"); if(d.msg){
that.$message.warning("提交失败:"+d.msg);
}else{
that.$message.warning("提交失败");
}
} }
}) })
} }
......
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