From 9d3e2e62b7ac0ba1b892c47ef3a539c708e15949 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 21 十一月 2023 12:07:54 +0800
Subject: [PATCH] 销售订单:客户余额、可用余额、欠缺金额 旁边 增加按钮,按下后弹窗显示 计算公式
---
WebTM/views/PublicPage/PartInformation.html | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/WebTM/views/PublicPage/PartInformation.html b/WebTM/views/PublicPage/PartInformation.html
index 0878f1f..a395bf0 100644
--- a/WebTM/views/PublicPage/PartInformation.html
+++ b/WebTM/views/PublicPage/PartInformation.html
@@ -144,7 +144,7 @@
, page: true
, cellMinWidth: 90
, cols: [[
- { type: 'radio', fixed: 'left' }
+ { type: 'checkbox', fixed: 'left' }
, { field: 'HItemID', title: 'HItemID', sort: true, hide: true }
, { field: 'ParentID', title: 'ParentID', sort: true, hide: true }
, { field: 'HNumber', title: '鐗╂枡浠g爜' }
@@ -177,11 +177,18 @@
//鏌ヨ鎸夐挳
form.on('submit(btnSearch)', function (data) {
-
+ var HNumber = $("#HNumber").val();
+ var HName = $("#HName").val();
+ if (HNumber) {
+ sWhere += " and HNumber like '%" + HNumber + "%'";
+ }
+ if (HName) {
+ sWhere += " and HName like '%" + HName + "%'";
+ }
$.ajax({
url: GetWEBURL() + '/PublicPageMethod/PartList',
type: "GET",
- data: { "sWhere": SeachFilter(sWhere1) },
+ data: { "sWhere": sWhere},
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
@@ -194,7 +201,7 @@
layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
}
});
- sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
+ sWhere = "where 1=1 ";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
});
//浠ヤ笂鏄痩ayui妯″潡
--
Gitblit v1.9.1