Merge branch 'local_200318_skn' into dev_200318_skn
Showing
6 changed files
with
32 additions
and
24 deletions
@@ -115,6 +115,7 @@ | @@ -115,6 +115,7 @@ | ||
115 | <entry key="idfaMatchImport" value-ref="idfaMatchImportServiceImpl"/> | 115 | <entry key="idfaMatchImport" value-ref="idfaMatchImportServiceImpl"/> |
116 | <entry key="imeiMatchImport" value-ref="idfaMatchImportServiceImpl"/> | 116 | <entry key="imeiMatchImport" value-ref="idfaMatchImportServiceImpl"/> |
117 | <entry key="unionShareOrdersMonthImport" value-ref="unionShareOrdersMonthImportServiceImpl"/> | 117 | <entry key="unionShareOrdersMonthImport" value-ref="unionShareOrdersMonthImportServiceImpl"/> |
118 | + <entry key="unionRebateImport" value-ref="unionShareRebateServiceImpl"/> | ||
118 | </util:map> | 119 | </util:map> |
119 | <!-- 批量操作服务定义 --> | 120 | <!-- 批量操作服务定义 --> |
120 | <util:map id="batchExportBusiness" key-type="java.lang.String" | 121 | <util:map id="batchExportBusiness" key-type="java.lang.String" |
@@ -11,11 +11,12 @@ | @@ -11,11 +11,12 @@ | ||
11 | <td style="font-size: medium" align="center" width="20%">规则:</td> | 11 | <td style="font-size: medium" align="center" width="20%">规则:</td> |
12 | <td style="font-size: medium" width="80%"> | 12 | <td style="font-size: medium" width="80%"> |
13 | 1、上传文件必须是.xls或者.xlsx文件<br> | 13 | 1、上传文件必须是.xls或者.xlsx文件<br> |
14 | - 2、Excel表头:品牌ID 、返佣比例、品牌返佣状态<br> | ||
15 | - 3、结算比例格式为百分比,百分号内最多包含一位小数。0.0%<取值范围≤25.0%;或默认<br> | ||
16 | - 4、返佣状态:1开启、2关闭<br> | ||
17 | - 5、每个csv文件控制在2500行以内<br> | ||
18 | - 6、<a id="downloadSample">下载样例</a> | 14 | + 2、Excel表头:品牌ID、返佣比例、返佣类型、品牌返佣状态<br> |
15 | + 3、返佣类型:1-默认、2-自定义 | ||
16 | + 4、结算比例格式为百分比,百分号内最多包含一位小数。取值范围(0.0%,25.0%]<br> | ||
17 | + 5、返佣状态:1开启、2关闭<br> | ||
18 | + 6、每个csv文件控制在2500行以内<br> | ||
19 | + 7、<a id="downloadSample">下载样例</a> | ||
19 | </td> | 20 | </td> |
20 | </tr> | 21 | </tr> |
21 | </tbody> | 22 | </tbody> |
@@ -23,7 +24,7 @@ | @@ -23,7 +24,7 @@ | ||
23 | 24 | ||
24 | <script type="text/javascript"> | 25 | <script type="text/javascript"> |
25 | $(function () { | 26 | $(function () { |
26 | - //todo | 27 | + |
27 | $("#downloadSample").attr("href", contextPath + "/common/shareRebateBrand.xlsx"); | 28 | $("#downloadSample").attr("href", contextPath + "/common/shareRebateBrand.xlsx"); |
28 | 29 | ||
29 | $("#batchImportDiv").fileUpload({ | 30 | $("#batchImportDiv").fileUpload({ |
@@ -31,12 +32,11 @@ | @@ -31,12 +32,11 @@ | ||
31 | uploadInputName: "file", | 32 | uploadInputName: "file", |
32 | url: contextPath + "/batch/import", | 33 | url: contextPath + "/batch/import", |
33 | queryParams: { | 34 | queryParams: { |
34 | - type: "shareRebateImport",//todo | ||
35 | - args: "import" | 35 | + type: "unionRebateImport", |
36 | + args: "brand" | ||
36 | }, | 37 | }, |
37 | showFileName: false, | 38 | showFileName: false, |
38 | onLoadSuccess: function (fileName, data) { | 39 | onLoadSuccess: function (fileName, data) { |
39 | - //todo | ||
40 | $("#shareRebateBrandTable").myDatagrid("reload"); | 40 | $("#shareRebateBrandTable").myDatagrid("reload"); |
41 | $("#batchImportDialogDiv").dialog("close"); | 41 | $("#batchImportDialogDiv").dialog("close"); |
42 | $.messager.show({ | 42 | $.messager.show({ |
@@ -16,8 +16,8 @@ | @@ -16,8 +16,8 @@ | ||
16 | <input class="easyui-combobox" id="brand" style="width: 200px;" > | 16 | <input class="easyui-combobox" id="brand" style="width: 200px;" > |
17 | <input class="easyui-combobox" id="state" style="width:150px;" data-options="editable:false"/> | 17 | <input class="easyui-combobox" id="state" style="width:150px;" data-options="editable:false"/> |
18 | <a id="searchBtn" class="easyui-linkbutton btn-info">查询</a> | 18 | <a id="searchBtn" class="easyui-linkbutton btn-info">查询</a> |
19 | - <a id="addBtn" class="easyui-linkbutton btn-primary">新增</a> | ||
20 | - <a id="batchImportBtn" class="easyui-linkbutton btn-primary">批量导入</a> | 19 | + <a id="addBtn" class="easyui-linkbutton btn-primary" style="margin-left: 10px">新增</a> |
20 | + <a id="batchImportBtn" class="easyui-linkbutton btn-primary" style="margin-left: 10px">批量导入</a> | ||
21 | </div> | 21 | </div> |
22 | </div> | 22 | </div> |
23 | 23 |
@@ -4,9 +4,12 @@ | @@ -4,9 +4,12 @@ | ||
4 | <table cellspacing="0" border="0" align="center" style="width:90%;margin-top:0px;line-height:10px;height:200px;" id="sknRebateEditTable"> | 4 | <table cellspacing="0" border="0" align="center" style="width:90%;margin-top:0px;line-height:10px;height:200px;" id="sknRebateEditTable"> |
5 | <tr> | 5 | <tr> |
6 | <td width="30%" align="left">SKN :</span></td> | 6 | <td width="30%" align="left">SKN :</span></td> |
7 | - <td width="70%" align="left" colspan="3"> | 7 | + <td width="70%" align="left" colspan="3" id="sknInputTR"> |
8 | <input class="inputParam easyui-textbox" style="width:200px" id="skn" name="skn" /> | 8 | <input class="inputParam easyui-textbox" style="width:200px" id="skn" name="skn" /> |
9 | </td> | 9 | </td> |
10 | + <td width="70%" align="left" colspan="3" id="sknStrTR" hidden> | ||
11 | + <span id="sknStr"></span> | ||
12 | + </td> | ||
10 | </tr> | 13 | </tr> |
11 | 14 | ||
12 | <tr> | 15 | <tr> |
@@ -65,6 +68,9 @@ | @@ -65,6 +68,9 @@ | ||
65 | if (data){ | 68 | if (data){ |
66 | sknTextBox.textbox('readonly',true); | 69 | sknTextBox.textbox('readonly',true); |
67 | sknTextBox.textbox("setValue", data.skn); | 70 | sknTextBox.textbox("setValue", data.skn); |
71 | + $("#sknInputTR").hide(); | ||
72 | + $("#sknStrTR").show(); | ||
73 | + $("#sknStr").html(data.skn); | ||
68 | if(data.type == 1){ | 74 | if(data.type == 1){ |
69 | $(":radio[name='type'][value='1']").prop("checked",true); | 75 | $(":radio[name='type'][value='1']").prop("checked",true); |
70 | }else if(data.type == 2){ | 76 | }else if(data.type == 2){ |
@@ -30,8 +30,8 @@ | @@ -30,8 +30,8 @@ | ||
30 | uploadInputName: "file", | 30 | uploadInputName: "file", |
31 | url: contextPath + "/batch/import", | 31 | url: contextPath + "/batch/import", |
32 | queryParams: { | 32 | queryParams: { |
33 | - type: "unionShareRebateSknImport", | ||
34 | - args: "import" | 33 | + type: "unionRebateImport", |
34 | + args: "skn" | ||
35 | }, | 35 | }, |
36 | showFileName: false, | 36 | showFileName: false, |
37 | onLoadSuccess: function (fileName, data) { | 37 | onLoadSuccess: function (fileName, data) { |
@@ -17,9 +17,10 @@ | @@ -17,9 +17,10 @@ | ||
17 | <input class="easyui-combobox" id="brand" sytle="width: 200px"> | 17 | <input class="easyui-combobox" id="brand" sytle="width: 200px"> |
18 | <input class="easyui-combobox" id="state" style="width:150px;" data-options="editable:false"/> | 18 | <input class="easyui-combobox" id="state" style="width:150px;" data-options="editable:false"/> |
19 | <a id="searchBtn" class="easyui-linkbutton btn-info" >查询</a> | 19 | <a id="searchBtn" class="easyui-linkbutton btn-info" >查询</a> |
20 | - <a id="addBtn" class="easyui-linkbutton btn-primary" >新增</a> | ||
21 | - <a id="exportBtn" class="easyui-linkbutton btn-success" >导出</a> | ||
22 | - <a id="batchImportBtn" class="easyui-linkbutton btn-success">批量导入</a> | 20 | + <a id="addBtn" class="easyui-linkbutton btn-primary" style="margin-left: 10px">新增</a> |
21 | + <a id="exportBtn" class="easyui-linkbutton btn-success" style="margin-left: 10px; width:54px; height:37px" >导出</a> | ||
22 | + <a id="batchImportBtn" class="easyui-linkbutton btn-success" style="margin-left: 10px">批量导入</a> | ||
23 | + | ||
23 | </div> | 24 | </div> |
24 | </div> | 25 | </div> |
25 | 26 | ||
@@ -61,7 +62,7 @@ | @@ -61,7 +62,7 @@ | ||
61 | table.datagrid("load", { | 62 | table.datagrid("load", { |
62 | skn: sknTextBox.textbox("getValue"), | 63 | skn: sknTextBox.textbox("getValue"), |
63 | brand: brandCombobox.combobox("getValue"), | 64 | brand: brandCombobox.combobox("getValue"), |
64 | - state: sknTextBox.combobox("getValue") | 65 | + state: stateCombobox.combobox("getValue") |
65 | }); | 66 | }); |
66 | } | 67 | } |
67 | }); | 68 | }); |
@@ -70,7 +71,7 @@ | @@ -70,7 +71,7 @@ | ||
70 | iconCls: "icon-search", | 71 | iconCls: "icon-search", |
71 | onClick: function () { | 72 | onClick: function () { |
72 | saveShareRebateSkn(0); | 73 | saveShareRebateSkn(0); |
73 | - window.self.paramObject.brandRebateData = null; | 74 | + window.self.paramObject.sknRebateData = null; |
74 | } | 75 | } |
75 | }); | 76 | }); |
76 | 77 | ||
@@ -81,10 +82,10 @@ | @@ -81,10 +82,10 @@ | ||
81 | textField: "text", | 82 | textField: "text", |
82 | required: false, | 83 | required: false, |
83 | prompt: "选择品牌", | 84 | prompt: "选择品牌", |
84 | - url: contextPath + "/UnionShareRebateBrandRest/queryAllBrand", | 85 | + url: contextPath + "/UnionRebateRest/queryAllBrandList", |
85 | panelHeight: 200, | 86 | panelHeight: 200, |
86 | loadFilter: function (data) { | 87 | loadFilter: function (data) { |
87 | - return defaultLoadFilter(data); | 88 | + return data; |
88 | } | 89 | } |
89 | }); | 90 | }); |
90 | 91 | ||
@@ -220,7 +221,7 @@ | @@ -220,7 +221,7 @@ | ||
220 | param.name = rowData.name; | 221 | param.name = rowData.name; |
221 | param.id = id; | 222 | param.id = id; |
222 | } | 223 | } |
223 | - param.rebatePercentStr = rebate; | 224 | + param.rebatePercentStr = rebate == "" ? 0 : rebate; |
224 | return true; | 225 | return true; |
225 | }, | 226 | }, |
226 | success: function (data) { | 227 | success: function (data) { |
@@ -270,11 +271,11 @@ | @@ -270,11 +271,11 @@ | ||
270 | } | 271 | } |
271 | }); | 272 | }); |
272 | 273 | ||
273 | - $("#exportBtn").linkbutton({ | 274 | + /*$("#exportBtn").linkbutton({ |
274 | onClick: function () { | 275 | onClick: function () { |
275 | window.open(contextPath + "/batch/export.do?type=unionShareRebateSkn&queryConf=" + JSON.stringify(getParams())); | 276 | window.open(contextPath + "/batch/export.do?type=unionShareRebateSkn&queryConf=" + JSON.stringify(getParams())); |
276 | } | 277 | } |
277 | - }); | 278 | + });*/ |
278 | 279 | ||
279 | function getParams() { | 280 | function getParams() { |
280 | var params = {}; | 281 | var params = {}; |
-
Please register or login to post a comment