Commit 89bc05d9 by 庄冰

aaa

parent 4efa7421
......@@ -6,6 +6,7 @@ class CustomerInfoService extends ServiceBase {
constructor() {
super("dborder", ServiceBase.getDaoName(CustomerInfoService));
this.ordertmproductSve = system.getObject("service.dborder.ordertmproductSve");
this.trademarkDao = system.getObject("db.dbtrademark.trademarkDao");
}
/**
* 修改申请人信息(订单详情页面使用)
......@@ -90,6 +91,17 @@ class CustomerInfoService extends ServiceBase {
ciObj["identityCardPdf"]=obj.identityCardPdf;
}
await self.dao.update(ciObj,t);//修改申请人信息
var customerinfo2 = await self.dao.model.findOne({
where:{
id:customerinfo.id
},
raw:true
});
if(ordertmproduct.gzwtsUrl && customerinfo2.businessLicensePdf && customerinfo2.identityCardPdf){
// otpObj["deliveryStatus"]="dsh";
await self.ordertmproductSve.update({id:ordertmproduct.id,deliveryStatus:"dsh"},t);
await self.trademarkDao.model.update({officialType:"dsh"},{where:{deliveryOrderNo:deliveryOrderNo},transaction:t});
}
return system.getResultSuccess();
})
}
......@@ -157,6 +169,12 @@ class CustomerInfoService extends ServiceBase {
}
await self.dao.update(ciObj,t);//申请人信息 修改营业执照、身份证文件
var customerinfo2 = await self.dao.model.findOne({
where:{
id:customerinfo.id
},
raw:true
});
var otpObj={
id:ordertmproduct.id,
updateuser_id:user.id,
......@@ -168,6 +186,11 @@ class CustomerInfoService extends ServiceBase {
if(obj.smwjUrl){
otpObj["smwjUrl"]=obj.smwjUrl;
}
if((ordertmproduct.gzwtsUrl || otpObj["gzwtsUrl"]) && customerinfo2.businessLicensePdf && customerinfo2.identityCardPdf){
otpObj["deliveryStatus"]="dsh";
await self.trademarkDao.model.update({officialType:"dsh"},{where:{deliveryOrderNo:deliveryOrderNo},transaction:t});
}
await self.ordertmproductSve.update(otpObj,t);//商标交付单 修改盖章委托书、说明文件
return system.getResultSuccess();
})
......
......@@ -309,10 +309,16 @@ class TradeMarkService extends ServiceBase {
}
return await self.db.transaction(async function (t) {
var tmObj={id:tm.id};
var otp = {id:ordertmproduct.id};
if(obj.tmStatus){
if(self.statusConvertJSON[obj.tmStatus]){
tmObj["officialType"]=self.statusConvertJSON[obj.tmStatus];
}
if(tmObj.officialType && ",dqrfa,dsccl,dsh,ddj,ydj,ywc,".indexOf(tmObj.officialType)>=0){
otp["deliveryStatus"]=tmObj.officialType;
await self.ordertmproductSve.update(otp,t);
}
// {"dqrfa":"待确认方案", "dsccl": "待上传材料", "dsh": "待审核", "ddj": "待递交", "ydj": "已递交", "ywc": "已完成" },
}
if(obj.opNotes){
tmObj["opNotes"]=obj.opNotes;
......
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