Commit 82181763 by Sxy

优化 交付流程

parent 8c51d77f
...@@ -108,7 +108,7 @@ class DeliverService extends ServiceBase { ...@@ -108,7 +108,7 @@ class DeliverService extends ServiceBase {
/** /**
* 判断 交付单状态下能否更新 * 判断 交付单状态下能否更新
*/ */
const deliverData = await this.dao.findOne({ const deliverData = await this.dao.findInfo({
id: pobj.id, id: pobj.id,
}); });
if (!deliverData) { if (!deliverData) {
...@@ -126,16 +126,16 @@ class DeliverService extends ServiceBase { ...@@ -126,16 +126,16 @@ class DeliverService extends ServiceBase {
txstatus = pushTx.TXSTATUS.DISPOSEING; txstatus = pushTx.TXSTATUS.DISPOSEING;
break; break;
case system.SERVERSESTATUS.DISPOSEING: case system.SERVERSESTATUS.DISPOSEING:
const material = await this.materialDao.findOne({ const { material, qualification } = deliverData;
deliver_id: pobj.id, const { proposerInfo: { recipientInfo } } = material;
}); if (!qualification) {
if (material) { throw new Error("请上传资质信息")
const { proposerInfo: { recipientInfo } } = material; }
materialInfo = { materialInfo = {
recipientInfo: { qualification,
...recipientInfo, recipientInfo: {
phone: encryptStr(recipientInfo.phone), ...recipientInfo,
} phone: encryptStr(recipientInfo.phone),
} }
} }
status = system.SERVERSESTATUS.POSTING; status = system.SERVERSESTATUS.POSTING;
......
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