Browse Source

清单精度,添加删除总额,引起的问题

MaiXinRong 5 years ago
parent
commit
916637b6a6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/service/tender_info.js

+ 3 - 1
app/service/tender_info.js

@@ -83,11 +83,13 @@ module.exports = app => {
          * @returns {Promise<void>}
          */
         async saveTenderInfo(tenderId, data) {
+            console.log(data);
             for (const di in data) {
-                if (parseInfo.indexOf(di) >= 0) {
+                if (parseInfo.indexOf(di) >= 0 || arrayInfo.indexOf(di) >= 0) {
                     data[di] = JSON.stringify(data[di]);
                 }
             }
+            console.log(data);
             await this.db.update(this.tableName, data, {where: {tid: tenderId}});
         }