zhuyiyi 5 месяцев назад
Родитель
Сommit
c8b6d02aa6
2 измененных файлов с 47 добавлено и 1 удалено
  1. 44 1
      Web/EDelivery/AllPlaceList.aspx
  2. 3 0
      Web/EDelivery/js/AllPlaceList.js

+ 44 - 1
Web/EDelivery/AllPlaceList.aspx

@@ -129,6 +129,49 @@
             </tr>
             </tr>
         </table>
         </table>
     </div>
     </div>
-
+    <div id="price_win" class="mini-window" title="成本登记" style="width: 550px; height: 300px; position: relative; display: none">
+        <table class="win_tb" border="0" cellpadding="0" cellspacing="1">
+            <tr>
+                <td class="td1">订单编号</td>
+                <td class="td2" colspan="3" id="price_ordersn"></td>
+            </tr>
+            <tr>
+                <td class="td1">供应商</td>
+                <td class="td2" colspan="3" id="price_name"></td>
+            </tr>
+            <tr>
+                <td class="td1">成本</td>
+                <td class="td2" colspan="3">
+                    <input type="text" id="price_number" />
+                </td>
+            </tr>
+            <tr>
+                <td colspan="4">
+                    <div class="win_btn" style="text-align: center;">
+                        <a class="mini-button" iconcls="icon-ok" onclick="savePrice">保存</a>&nbsp;
+                       <a class="mini-button" iconcls="icon-cancel" onclick="mini.get('price_win').hide()">取消</a>
+                    </div>
+                </td>
+            </tr>
+        </table>
+    </div>
+    <script>
+        function showPriceWin(ctid, price, name) {
+            $("#price_ordersn").empty().html(ctid);
+            $("#price_name").empty().html(name);
+            $("#price_number").val(price);
+            mini.get("price_win").show();
+        }
+        function savePrice() {
+            let price = $("#price_number").val();
+            let ctid = $("#price_ordersn").html();
+            mini.get('price_win').hide();
+            let params = { price, ctid };
+            postAjax("change_erp_order_price", params, function (data) {
+                mini.get("price_win").hide();
+                resultShow(data, "grid.reload();");
+            });
+        }
+    </script>
 </asp:Content>
 </asp:Content>
 
 

+ 3 - 0
Web/EDelivery/js/AllPlaceList.js

@@ -235,6 +235,9 @@ function actionRenderer(e) {
     var rowIndex = e.rowIndex;
     var rowIndex = e.rowIndex;
     var html = "";
     var html = "";
     html += getGridBtn("notify1", "撤单", "urgencyFn('" + id + "')");
     html += getGridBtn("notify1", "撤单", "urgencyFn('" + id + "')");
+    if (userPostCode != "Supplier") {
+        html += getGridBtn("edit", "成本登记", "showPriceWin('" + record.ctid + "','" + record.payment_cyt + "','" + record.SupplierName + "')");
+    }
     return html;
     return html;
 }
 }