Commit 4ea713a8 by Sxy

fix: 交付单

parent a6b13819
......@@ -85,7 +85,7 @@ class DeliverybillCtl extends CtlBase {
if (!pobj.deliverId) {
throw new Error("deliverId 不能为空");
}
if (!pobj.companyName || !pobj.time || !accountingType || !pobj.taxpayerType || !pobj.supplier) {
if (!pobj.contactsName || !pobj.time || !accountingType || !pobj.taxpayerType || !pobj.supplier) {
throw new Error("参数不能为空");
}
const rs = await this.service.setupBill(pobj);
......
......@@ -26,7 +26,7 @@ class DeliverybillService extends ServiceBase {
updateResult = {
delivery_info: {
...delivery_info,
setUpAt: pobj.setUpAt
setUpAt: pobj.setUpAt//建账时间
},
delivery_status: system.SERVERSESTATUS.WAITUSERCONFIRM
}
......@@ -65,7 +65,7 @@ class DeliverybillService extends ServiceBase {
...delivery_info,
setupStatus: system.SERVERSESTATUS.SETUP,
setupInfo: {
companyName: pobj.companyName,
contactsName: pobj.contactsName,
time: pobj.time,
accountingType: pobj.accountingType,
taxpayerType: pobj.taxpayerType,
......@@ -110,15 +110,15 @@ class DeliverybillService extends ServiceBase {
});
if (schemeData) {
result.schemeData = {
demandCode: schemeData.demand_code,
schemeCode: deliverData.scheme_number,
demandCode: schemeData.demand_code, // 需求编号
schemeCode: deliverData.scheme_number,//方案编号
// 服务类型
companyType: schemeData.company_type,
area: schemeData.service_name,
buyDuration: schemeData.buy_duration,
buyNumber: schemeData.number,
totalCost: schemeData.total_cost,
note: schemeData.remarks
companyType: schemeData.company_type,//公司类型
area: schemeData.service_name,//服务地区
buyDuration: schemeData.buy_duration,//购买时长
buyNumber: schemeData.number,//购买数量
totalCost: schemeData.total_cost,//总计费用
note: schemeData.remarks//需求编号
}
}
}
......
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