Bläddra i källkod

修复资金测试bug

ellisran 7 månader sedan
förälder
incheckning
c4308fdcdd
2 ändrade filer med 17 tillägg och 29 borttagningar
  1. 4 4
      app/public/js/financial_pay_detail.js
  2. 13 25
      app/view/financial/pay_detail.ejs

+ 4 - 4
app/public/js/financial_pay_detail.js

@@ -209,7 +209,7 @@ $(function () {
             if (ids.length > 0) {
                 postData(preUrl + '/save', {type: 'contract_del', ids}, function (result) {
                     contractList = result.contractList;
-                    $('#pay-total-price').text(result.tp || 0);
+                    $('#pay-total-price').val(result.tp || 0);
                     SpreadJsObj.loadSheetData(payContractSpreadSheet, SpreadJsObj.DataType.Data, contractList);
                 });
             }
@@ -265,7 +265,7 @@ $(function () {
                     if(type === 'contract_update') {
                         contractList.splice(info.row, 1, select);
                         SpreadJsObj.reLoadRowData(info.sheet, info.row);
-                        $('#pay-total-price').text(result.tp || 0);
+                        $('#pay-total-price').val(result.tp || 0);
                     }
                 }, function () {
                     select[col.field] = orgValue;
@@ -346,7 +346,7 @@ $(function () {
                         payContractSpreadSheet.getParent().focus();
                         payContractSpreadSheet.showRow(haveNew, spreadNS.VerticalPosition.center);
                     }
-                    $('#pay-total-price').text(result.tp || 0);
+                    $('#pay-total-price').val(result.tp || 0);
                 }, function () {
                     SpreadJsObj.reLoadRowData(info.sheet, info.cellRange.row, info.cellRange.rowCount);
                     return;
@@ -514,7 +514,7 @@ $(function () {
                 $('#add-deal').modal('hide');
                 contractList = result.contractList;
                 SpreadJsObj.loadSheetData(payContractSpreadSheet, SpreadJsObj.DataType.Data, contractList);
-                // $('#pay-total-price').text(result.tp || 0);
+                // $('#pay-total-price').val(result.tp || 0);
             });
         });
     }

+ 13 - 25
app/view/financial/pay_detail.ejs

@@ -51,13 +51,13 @@
                     <table class="table table-bordered" id="pay-table">
                         <tbody>
                         <tr>
-                            <th width="120px">支付编号</th>
-                            <th width="300px" class="text-left"><%- financialPay.code %></th>
-                            <th width="120px">支付用途</th>
+                            <th width="120px" class="text-center align-middle">支付编号</th>
+                            <td width="300px"><input class="form-control form-control-sm" disabled value="<%- financialPay.code %>" /></td>
+                            <th width="120px" class="text-center align-middle">支付用途</th>
                             <% if (financialPay.readOnly) { %>
-                                <th width="300px" class="text-left"><%- financialPay.used %></th>
+                                <td width="300px"><input class="form-control form-control-sm" disabled value="<%- financialPay.used %>" /></td>
                             <% } else { %>
-                            <th width="300px">
+                            <td width="300px">
                                 <select class="form-control form-control-sm" data-name="used">
                                     <% for (const used of usedList) { %>
                                     <option <% if (used === financialPay.used) { %>selected<% } %>><%- used %></option>
@@ -65,28 +65,16 @@
                                 </select>
                             </td>
                             <% } %>
-                            <th width="120px">支付金额</th>
-                            <th width="300px" class="text-left" id="pay-total-price"><%- financialPay.total_price %></th>
+                            <th width="120px" class="text-center align-middle">支付金额</th>
+                            <td width="300px"><input id="pay-total-price" class="form-control form-control-sm" disabled value="<%- financialPay.total_price %>" /></td>
                         </tr>
                         <tr>
-                            <th width="">申请支付单位</th>
-                            <% if (financialPay.readOnly) { %>
-                            <th width="" class="text-left"><%- financialPay.entity %></th>
-                            <% } else { %>
-                            <td width=""><input type="text" data-name="entity" value="<%- financialPay.entity %>" class="form-control form-control-sm"></td>
-                            <% } %>
-                            <th width="">支付单位开户行</th>
-                            <% if (financialPay.readOnly) { %>
-                            <th width="" class="text-left"><%- financialPay.bank %></th>
-                            <% } else { %>
-                            <td width=""><input type="text" data-name="bank" value="<%- financialPay.bank %>" class="form-control form-control-sm"></td>
-                            <% } %>
-                            <th width="">支付账号</th>
-                            <% if (financialPay.readOnly) { %>
-                            <th width="" class="text-left"><%- financialPay.bank_account %></th>
-                            <% } else { %>
-                            <td width=""><input type="text" data-name="bank_account" value="<%- financialPay.bank_account %>" class="form-control form-control-sm"></td>
-                            <% } %>
+                            <th width="" class="text-center align-middle">申请支付单位</th>
+                            <td width=""><input type="text" data-name="entity" value="<%- financialPay.entity %>" <% if (financialPay.readOnly) { %>readonly<% } %> class="form-control form-control-sm"></td>
+                            <th width="" class="text-center align-middle">支付单位开户行</th>
+                            <td width=""><input type="text" data-name="bank" value="<%- financialPay.bank %>" <% if (financialPay.readOnly) { %>readonly<% } %> class="form-control form-control-sm"></td>
+                            <th width="" class="text-center align-middle">支付账号</th>
+                            <td width=""><input type="text" data-name="bank_account" value="<%- financialPay.bank_account %>" <% if (financialPay.readOnly) { %>readonly<% } %> class="form-control form-control-sm"></td>
                         </tr>
                         <tr>
                             <th width="120px" >备注</th>