Commit fe0341fc by Sxy

feat: 交付支持重复推

parent 13a71025
...@@ -699,8 +699,14 @@ class DeliverybillCtl extends CtlBase { ...@@ -699,8 +699,14 @@ class DeliverybillCtl extends CtlBase {
try { try {
var res = await this.service.findInfoByDeliverCode(pobj); var res = await this.service.findInfoByDeliverCode(pobj);
if (res) { if (res) {
if (res.delivery_status != 'received' && res.delivery_status != 'userUploadWait') {//如果数据库中状态是已接单、待用户上传,说明是第一次提交文件,状态为传过了的状态;如果不是已接单、待用户上传,说明是客户驳回后重新提交的文件,状态改为已驳回 if (["received", "userUploadWait"].includes(res.delivery_status)) {
pobj.deliverStatus = "userConfirmationReject";//状态改成驳回, // 已接单、待用户上传 , 第一次 上传 文件
pobj.deliverStatus = "collecting";
} else if (["userConfirmationWait"].includes(res.delivery_status)) {
// 递交文件待确认 , 驳回后重新提交文件
pobj.deliverStatus = "userConfirmationReject";
} else {
pobj.deliverStatus = res.delivery_status;
} }
await this.service.updateInfoByDeliverCode(pobj); await this.service.updateInfoByDeliverCode(pobj);
return system.getResultSuccess(); return system.getResultSuccess();
......
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