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,18 +126,18 @@ class DeliverService extends ServiceBase { ...@@ -126,18 +126,18 @@ 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,
});
if (material) {
const { proposerInfo: { recipientInfo } } = material; const { proposerInfo: { recipientInfo } } = material;
if (!qualification) {
throw new Error("请上传资质信息")
}
materialInfo = { materialInfo = {
qualification,
recipientInfo: { recipientInfo: {
...recipientInfo, ...recipientInfo,
phone: encryptStr(recipientInfo.phone), phone: encryptStr(recipientInfo.phone),
} }
} }
}
status = system.SERVERSESTATUS.POSTING; status = system.SERVERSESTATUS.POSTING;
txstatus = pushTx.TXSTATUS.POSTING; txstatus = pushTx.TXSTATUS.POSTING;
break; break;
......
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