Commit 988e7b49 by sxy

fix: 年报推送

parent 1b29ad7b
......@@ -195,6 +195,14 @@ class DeliverService extends ServiceBase {
deliver_id: annualReportData.id
});
}
// 推送年报信息
await pushTx.pushChangeOrder(pushTx.TXSTATUS.WAITDECLARE, annualReportData.delivery_code, {
annualReport: annualReportArry.map(item => {
item.status = item.status === system.ANNUALREPORT.WAITDECLARE ? "待申报" : "已申报"
return item
})
})
}
}
return this.db.transaction(async (t) => {
......
......@@ -14,8 +14,8 @@ const TXSTATUS = {
POSTING: "150",//证书已邮寄
SUCCESS: "170",//服务已完成
CLOSED: "190",//已关闭
WAITDECLARE: "200",//待申报
DECLARESUCCESS: "210",//申报成功
WAITDECLARE: "25",//待申报
DECLARESUCCESS: "26",//申报成功
}
const porApi = axios.create({
baseURL: settings.txurl(), // api 的 base_url
......@@ -124,11 +124,12 @@ const pushDeclareReport = async (annualReport, deliverData) => {
if (item.id === annualReport.id) {
item.updated_at = new Date();
item.file = annualReport.file;
item.status = system.ANNUALREPORT.DECLARESUCCESS;
}
item.status = item.status === system.ANNUALREPORT.WAITDECLARE ? "待申报" : "已申报"
return item
})
await pushChangeOrder(TXSTATUS.DECLARESUCCESS, deliverData.delivery_code, result)
await pushChangeOrder(TXSTATUS.DECLARESUCCESS, deliverData.delivery_code, { annualReport: result })
}
......
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