Forráskód Böngészése

合同支付,相关Bug

MaiXinRong 6 éve
szülő
commit
8d910e8684
2 módosított fájl, 4 hozzáadás és 2 törlés
  1. 3 2
      app/public/js/stage_pay.js
  2. 1 0
      app/service/pay.js

+ 3 - 2
app/public/js/stage_pay.js

@@ -90,7 +90,7 @@ $(document).ready(() => {
                 return data.ptype !== 1;
             },
             isOld: function (data) {
-                return data.csorder < getStageId();
+                return (data.csorder < getStageId()) && (getStageId() > 1);
             },
             name: function (data) {
                 return payCol.readOnly.isSpecial(data) || payCol.readOnly.isOld(data);
@@ -233,12 +233,13 @@ $(document).ready(() => {
                             checkExpr(validText, data.updateData, 'sprice', 'sexpr');
                         } else if (col.field === 'rprice') {
                             checkExpr(validText, data.updateData, 'rprice', 'rexpr');
-                        } else if (col.field === 'minus') {
+                        } else {
                             data.updateData[col.field] = validText;
                         }
                     } else {
                         data.updateData[col.field] = null;
                     }
+                    console.log(data);
                 }
                 // 更新至服务器
                 postData(window.location.pathname + '/save', data, function (result) {

+ 1 - 0
app/service/pay.js

@@ -165,6 +165,7 @@ module.exports = app => {
          * @returns {Promise<boolean>}
          */
         async save(data) {
+            console.log(data);
             if (!this.ctx.tender || !this.ctx.stage) { return false; }
             const pay = await this.getDataByCondition({tid: this.ctx.tender.id, id: data.id});
             if(!pay) {