|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
const defaultInfo = require('../app/const/tender_info');
|
|
|
const BaseUtil = require('./baseUtils');
|
|
|
+const status = require('../app/const/audit').change.status;
|
|
|
const querySql = BaseUtil.querySql;
|
|
|
const ZhCalc = BaseUtil.ZhCalc;
|
|
|
|
|
@@ -23,7 +24,7 @@ const doComplete = async function() {
|
|
|
const info = await querySql('Select * From zh_tender_info where tid = ?', [t.id]);
|
|
|
const decimal = info.length > 0 && info[0].decimal ? JSON.parse(info[0].decimal) : defaultInfo.defaultInfo.decimal;
|
|
|
|
|
|
- const changes = await querySql('Select * From zh_change where tid = ?', [t.id]);
|
|
|
+ const changes = await querySql('Select * From zh_change where tid = ? AND status = ?', [t.id, status.checked]);
|
|
|
for (const c of changes) {
|
|
|
await checkChange(c, decimal);
|
|
|
}
|
|
@@ -57,4 +58,4 @@ if (tenderId) {
|
|
|
doCompleteTest(tenderId);
|
|
|
} else {
|
|
|
doComplete()
|
|
|
-}
|
|
|
+}
|