|
@@ -21,7 +21,14 @@ class BaseBillsSerivce extends TreeService {
|
|
|
|
|
|
// 继承方法
|
|
|
clearParentingData(data) {
|
|
|
+ console.log(1);
|
|
|
data.unit_price = null;
|
|
|
+ data.sgfh_qty = null;
|
|
|
+ data.sgfh_tp = null;
|
|
|
+ data.sjcl_qty = null;
|
|
|
+ data.sjcl_tp = null;
|
|
|
+ data.qtcl_qty = null;
|
|
|
+ data.qtcl_tp = null;
|
|
|
data.quantity = null;
|
|
|
data.total_price = null;
|
|
|
data.deal_qty = null;
|
|
@@ -89,7 +96,11 @@ class BaseBillsSerivce extends TreeService {
|
|
|
const result = await this.transaction.insert(this.tableName, data);
|
|
|
if (children.length === 0) {
|
|
|
await this.transaction.update(this.tableName,
|
|
|
- {is_leaf: false, quantity: null, unit_price: null, total_price: null, deal_qty: null, deal_tp: null},
|
|
|
+ {
|
|
|
+ is_leaf: false,
|
|
|
+ sgfh_qty: null, sgfh_tp: null, qtcl_qty: null, qtcl_tp: null, sjcl_qty: null, sjcl_tp: null,
|
|
|
+ quantity: null, unit_price: null, total_price: null, deal_qty: null, deal_tp: null
|
|
|
+ },
|
|
|
{ where: {tender_id: tenderId, ledger_id: selectData.ledger_id} });
|
|
|
}
|
|
|
await this.transaction.commit();
|