From a6a84e6f677447342e8c5984fdc0b52241b92ce3 Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期四, 30 六月 2022 01:20:34 +0800
Subject: [PATCH] 客户管理分配个性产品优化、返回URL优化
---
web/web/GwProduct.aspx | 83 ++++++++++++++++++++++++++---------------
1 files changed, 53 insertions(+), 30 deletions(-)
diff --git a/web/web/GwProduct.aspx b/web/web/GwProduct.aspx
index fa56267..516ac10 100644
--- a/web/web/GwProduct.aspx
+++ b/web/web/GwProduct.aspx
@@ -93,12 +93,12 @@
$("#classes").trigger("change");
//閫夋嫨璺敱绫诲瀷涓嬫媺妗嗭紝鎺у埗鐩稿叧杈撳叆椤规樉绀�
- $("#RouterType").on("change", function () {
+ $("#routerType").on("change", function () {
$(".router-type-span").hide();
$(".router-type-span-" + $(this).val()).show();
});
- $("#RouterType").trigger("change");
+ $("#routerType").trigger("change");
$(document).on("click", ".action-modal-edit", function() {
var id = $(this).data("id");
@@ -147,6 +147,9 @@
//璁剧疆绫诲埆
$("#classes").trigger("change");
+ //璁剧疆璺敱
+ $("#routerType").trigger("change");
+
//璁剧疆鍥炬爣
$("#icon").trigger("change");
@@ -162,10 +165,21 @@
//data鐨勫睘鎬у弬鏁颁笉鑳藉惈鏈夊ぇ鍐欏瓧姣嶃��
var id = $(this).data("id");
var isEnable = $(this).data("is_enable");
- $.post("gwProduct.ashx", { "action": "updateStatus", id: id, isEnable: isEnable }, function (r) {
- mytek.alert(r.Message, r.OK, function () {
- loadPageList();
- });
+ var statusStr = "";
+ if (isEnable == 0) {
+ statusStr = "銆愬仠鐢ㄣ��";
+ }
+ else {
+ statusStr = "銆愬惎鐢ㄣ��";
+ }
+ mytek.confirm("鏄惁闇�瑕�" + statusStr + "璇ヤ俊鎭紵", "纭鏇存柊淇℃伅鐘舵�侊紝璇疯皑鎱庢搷浣滐紒", function (b) {
+ if (b) {
+ $.post("gwProduct.ashx", { "action": "updateStatus", id: id, isEnable: isEnable }, function (r) {
+ mytek.alert(r.Message, r.OK, function () {
+ loadPageList();
+ });
+ });
+ }
});
});
@@ -234,15 +248,15 @@
<tr class="header">
<th>鍥炬爣
</th>
- <th>浜у搧绫诲埆
+ <th>鎵�灞炰骇鍝佺被鍒�
</th>
- <th>鍚嶇О
+ <th>浜у搧鍚嶇О
</th>
<!--
<th>绫诲埆
</th>
-->
- <th>閫氶亾
+ <th>閫氶亾鎴栭�氶亾缁�
</th>
<th>鏄惁榛樿
</th>
@@ -254,13 +268,13 @@
-->
<th>璧犻�佹潯鏁�
</th>
- <th>鍙傝�冨崟浠�
+ <th>鍙傝�冨崟浠凤紙鍏�/鏉★級
</th>
<th>鍒涘缓鏃堕棿
</th>
<th>浣跨敤璇存槑
</th>
- <th class="text-right">鎿嶄綔
+ <th class="text-center">鎿嶄綔
</th>
</tr>
</thead>
@@ -299,7 +313,7 @@
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
- 鐖剁骇鍒嗙被ID</label>
+ 鎵�灞炰骇鍝佺被鍒� <span style="color:red">*</span></label>
<div class="col-sm-4 ">
<select name="parentId" id="parentId" class="form-control">
<%=GetProductClassOptions("0")%>
@@ -344,6 +358,7 @@
<input type="text" class="form-control" name="path" id="path" value="" />
</div>
</div>
+ -->
<div class="form-group classes-span classes-span-1">
<label class="col-sm-2 control-label">
鎺ㄥ箍鏂瑰紡</label>
@@ -355,7 +370,6 @@
</div>
<span class="help-block m-b-none">涓�у寲瀹㈡埛鏄寚鐗规畩鎺ㄩ�佺粰瀹㈡埛锛涚郴缁熼粯璁ゆ槸鎸囩郴缁熼粯璁ゅ彲鎺ㄩ�佹墍鏈夊鎴枫��</span>
</div>
- -->
<input type="hidden" class="form-control" name="isDefault" id="isDefault" value="1" />
<div class="form-group">
<label class="col-sm-2 control-label">
@@ -371,18 +385,16 @@
<label class="col-sm-2 control-label">
鎺掑簭</label>
<div class="col-sm-4">
- <div class="input-group">
- <input type="text" class="form-control" name="sort" id="sort" value=""
- maxlength="5" onkeyup="value=value.replace(/[^\d]/g,'')" onpaste="value=value.replace(/[^\d]/g,'')"
- oncontextmenu="return false" />
- </div>
+ <input type="text" class="form-control" name="sort" id="sort" value=""
+ maxlength="5" onkeyup="value=value.replace(/[^\d]/g,'')" onpaste="value=value.replace(/[^\d]/g,'')"
+ oncontextmenu="return false" />
</div>
</div>
<div class="form-group classes-span classes-span-1">
<label class="col-sm-2 control-label">
閫氶亾璺敱</label>
- <div class="col-sm-10">
- <select name="RouterType" id="RouterType">
+ <div class="col-sm-4">
+ <select name="routerType" id="routerType" class="form-control">
<option value="1" >鎸囧畾閫氶亾璺敱</option>
<option value="3" >閫氶亾缁勮矾鐢辨ā寮�</option>
</select>
@@ -390,26 +402,37 @@
<div class="router-type-span router-type-span-1">
<div style="padding: 5px">
- 绉诲姩锛�<select name="cmOpId" id="cmOpId">
+ 绉诲姩锛�<select name="cmOpId" id="cmOpId" >
<%=GetOpOptions(0)%>
- </select> 鎵╁睍鍙傛暟锛�<input type="text" name="cmExtParams" id="cmExtParams" maxlength="600"
+ </select>
+ <!--
+ 鎵╁睍鍙傛暟锛�<input type="text" name="cmExtParams" id="cmExtParams" maxlength="600"
value="" style="width: 50%;" placeholder="绉诲姩鎵╁睍鍙傛暟" />
+ -->
</div>
<div style="padding: 5px">
- 鑱旈�氾細<select name="cuOpId" id="cuOpId">
+ 鑱旈�氾細<select name="cuOpId" id="cuOpId" >
<%=GetOpOptions(0)%>
- </select> 鎵╁睍鍙傛暟锛�<input type="text" name="cuExtParams" id="cuExtParams" maxlength="600"
+ </select>
+ <!--
+ 鎵╁睍鍙傛暟锛�<input type="text" name="cuExtParams" id="cuExtParams" maxlength="600"
value="" style="width: 50%;" placeholder="鑱旈�氭墿灞曞弬鏁�" />
+ -->
</div>
<div style="padding: 5px">
- 鐢典俊锛�<select name="ctOpId" id="ctOpId">
+ 鐢典俊锛�<select name="ctOpId" id="ctOpId" >
<%=GetOpOptions(0)%>
- </select> 鎵╁睍鍙傛暟锛�<input type="text" name="ctExtParams" id="ctExtParams" maxlength="600"
+ </select>
+ <!--
+ 鎵╁睍鍙傛暟锛�<input type="text" name="ctExtParams" id="ctExtParams" maxlength="600"
value="" style="width: 50%;" placeholder="鐢典俊鎵╁睍鍙傛暟" />
+ -->
</div>
+ <!--
<span class="help-block m-b-none">CMPP2.0,CMPP3.0鍗忚鏀寔鎵╁睍鍙傛暟鏈夛細SERVICEID(鏈嶅姟浠g爜/涓氬姟浠g爜(鏈�闀�10浣�)),FEECODE(璐圭敤浠g爜(鏈�闀�6浣�)),FEETYPE(璐圭敤绫诲瀷),FEEUSERTYPE,FEETERMINALID(璁¤垂鍙风爜)
SGIP鏀寔鎵╁睍鍙傛暟鏈夛細SERVICETYPE(涓氬姟浠g爜(鏈�闀�10浣�)),CHARGENUMBER(璁¤垂鍙风爜(鏈�闀�21浣�)),FEEVALUE(鏀惰垂鍊�(鏈�闀�6浣�)),GIVENVALUE,NODEID(鑺傜偣(鏈�闀�6浣�)),CONNTIMEOUT(杩炴帴瓒呮椂)
SMGP鏀寔鎵╁睍鍙傛暟鏈夛細SERVICEID(鏈嶅姟浠g爜/涓氬姟浠g爜(鏈�闀�10浣�)),FIXEDFEE(鍖呮湀璐�/灏侀《璐�(鏈�闀�6浣�)),FEECODE(璐圭敤浠g爜/璧勮垂浠g爜(鏈�澶�6浣�));</span>
+ -->
</div>
<div class="router-type-span router-type-span-3">
<div style="padding: 5px">
@@ -441,7 +464,7 @@
鍙傝�冨崟浠�</label>
<div class="col-sm-4">
<div class="input-group">
- <input type="text" class="form-control" name="price" id="price" value="" maxlength="5"
+ <input type="text" class="form-control" name="price" id="price" value="" maxlength="10"
onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')"
oncontextmenu="return false" /><span class="input-group-addon">鍏�/鏉� </span>
</div>
@@ -452,7 +475,7 @@
榛樿璧犻�佹潯鏁�</label>
<div class="col-sm-4">
<div class="input-group">
- <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="5"
+ <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="10"
onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')"
oncontextmenu="return false" /><span class="input-group-addon">鏉� </span>
</div>
@@ -461,8 +484,8 @@
<div class="form-group">
<label class="col-sm-2 control-label">
澶囨敞</label>
- <div class="col-sm-10 input-group m-b">
- <input type="text" class="form-control" name="remark" id="remark" value="" />
+ <div class="col-sm-4">
+ <textarea class="form-control" name="remark" id="remark" rows="4" ></textarea>
</div>
</div>
</div>
--
Gitblit v1.9.1