Commit 82181763 by Sxy

优化 交付流程

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