Pārlūkot izejas kodu

修改小问题

ytf 3 gadi atpakaļ
vecāks
revīzija
6e21cb4f69

+ 11 - 0
krock-jcebid-cp/krock-web-cp-all/src/main/java/com/ydw/yunbuyer/web/cp/business/pm/ShopsVerifyController.java

@@ -83,4 +83,15 @@ public class ShopsVerifyController extends ProjBaseAction {
83 83
 		result.put("list", persion);
84 84
 		return result.toJSONString();
85 85
 	}
86
+
87
+	/**
88
+	 * 根据persion_id查询商品个人信息
89
+	 */
90
+	@ApiOperation("根据persion_id查询商品个人信息")
91
+	@RequestMapping("/shopInfo")
92
+	public String shopInfo(String persion_id) {
93
+		Shop shop = shopApi.get_by_pid(persion_id);
94
+		result.put("data", shop);
95
+		return result.toJSONString();
96
+	}
86 97
 }

+ 288 - 281
krock-jcebid-cp/krock-web-cp-all/src/main/resources/static/view_cp_pm/pm/bid_opening/bid_opening.html

@@ -1,289 +1,296 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 <head>
4
-<title>开拍记录</title>
5
-<meta charset="UTF-8">
6
-<link rel="stylesheet" href="https://yun.eqbidding.com/extjs/extjs6.0/classic/theme-crisp/resources/theme-crisp-all.css"></link>
7
-<script src="https://yun.eqbidding.com/extjs/extjs6.0/ext-all.js"></script>
8
-<script src="https://yun.eqbidding.com/extjs/extjs6.0/classic/locale/locale-zh_CN.js"></script>
9
-<script type="text/javascript" src="/web-cp-all/resource/js/app.js"></script>
10
-<script type="text/javascript" src="/web-cp-all/resource/js/jquery.js"></script>
11
-<script type="text/javascript">
12
-Ext.onReady(function() {
13
-	//初始化列表数据
14
-	var dataStore = Ext.create('Ext.data.Store', {
15
-		remoteSort : true,
16
-		autoLoad : true,
17
-		pageSize : 20,
18
-		sorters : {
19
-			property : 'created',
20
-			direction : 'DESC'
21
-		},
22
-		proxy : {
23
-			type : "ajax",
24
-			url : "/web-cp-all/cp/pm/list_data_pm",
25
-			reader : {
26
-				type : 'json',
27
-				root : 'page.list',
28
-				totalProperty : 'page.totalRow'
29
-			}
30
-		},
31
-		listeners : {
32
-			'beforeload' : function(store, op, options) {
33
-				var params = searchFormPanel.getForm().getValues();
34
-				Ext.apply(dataStore.proxy.extraParams, params);
35
-			}
36
-		}
37
-	}); //#dataStore 
4
+    <title>开拍记录</title>
5
+    <meta charset="UTF-8">
6
+    <link rel="stylesheet" href="https://yun.eqbidding.com/extjs/extjs6.0/classic/theme-crisp/resources/theme-crisp-all.css"></link>
7
+    <script src="https://yun.eqbidding.com/extjs/extjs6.0/ext-all.js"></script>
8
+    <script src="https://yun.eqbidding.com/extjs/extjs6.0/classic/locale/locale-zh_CN.js"></script>
9
+    <script type="text/javascript" src="/web-cp-all/resource/js/app.js"></script>
10
+    <script type="text/javascript" src="/web-cp-all/resource/js/jquery.js"></script>
11
+    <script type="text/javascript">
12
+        Ext.onReady(function() {
13
+            //初始化列表数据
14
+            var dataStore = Ext.create('Ext.data.Store', {
15
+                remoteSort : true,
16
+                autoLoad : true,
17
+                pageSize : 20,
18
+                sorters : {
19
+                    property : 'created',
20
+                    direction : 'DESC'
21
+                },
22
+                proxy : {
23
+                    type : "ajax",
24
+                    url : "/web-cp-all/cp/pm/list_data_pm",
25
+                    reader : {
26
+                        type : 'json',
27
+                        root : 'page.list',
28
+                        totalProperty : 'page.totalRow'
29
+                    }
30
+                },
31
+                listeners : {
32
+                    'beforeload' : function(store, op, options) {
33
+                        var bid = searchFormPanel.getForm().findField("srh.bid_opening").getValue();
34
+                        console.log(bid)
35
+                        if (bid == "全部"){
36
+                            searchFormPanel.getForm().findField("srh.bid_opening").setValue('');
37
+                        }
38
+                        var params = searchFormPanel.getForm().getValues();
39
+                        console.log(params);
40
+                        Ext.apply(dataStore.proxy.extraParams, params);
41
+                    }
42
+                }
43
+            }); //#dataStore
38 44
 
39
-	var cateStore = Ext.create('Ext.data.Store', {
40
-		fields: ['abbr', 'name'],
41
-		data : [ 
42
-		{"abbr":"已开拍", "name":"已开拍"},
43
-		{"abbr":"未开拍", "name":"未开拍"},
44
-		{"abbr":"已中止", "name":"已中止"},
45
-		{"abbr":"已结束", "name":"已结束"}
46
-		]
47
-	});
48
-	
49
-	var searchFormPanel = Ext.create('Ext.form.Panel', {
50
-		frame : true,
51
-		title : "搜索条件",
52
-		style : {
53
-			marginBottom : '5px'
54
-		},
55
-		bodyStyle : {
56
-			padding : '10px'
57
-		},
58
-		buttonAlign : "center",
59
-		collapsible : true,
60
-		defaultType : "textfield",
61
-		items : [ 
62
-			{
63
-				xtype : "container",
64
-				layout : "hbox",
65
-				items : [ 
66
-					{
67
-						xtype : "textfield",
68
-						fieldLabel : "开拍标的物名称",
69
-						name : "srh.item_name"
70
-					},{
71
-						fieldLabel : "分类",
72
-						name : "srh.bid_opening",
73
-						editable : false,
74
-						xtype : "combo",
75
-						store : cateStore,
76
-						queryMode : 'local',
77
-						displayField : 'name',
78
-						valueField : 'abbr',
79
-						value : '已开拍',
80
-						width : 180,
81
-						labelWidth : 80,
82
-						labelAlign : 'right'
83
-					}
84
-				]
85
-			} 
86
-		],
87
-		buttons : [ {
88
-			text : "搜索",
89
-			icon : jcapp.getIcon("magnifier.png"),
90
-			handler : function() {
91
-				dataStore.load({
92
-				//params:params()
93
-				});
94
-				dataStore.sync();
95
-			}
96
-		}, {
97
-			text : "重置",
98
-			icon : jcapp.getIcon("arrow_refresh.png"),
99
-			handler : function() {
100
-				this.up('form').getForm().reset();
101
-				dataStore.load({});
102
-				dataStore.sync();
103
-			}
104
-		} ]
105
-	}); //#searchFormPanel
106
-	
107
-	var listGridPanel = Ext.create('Ext.grid.Panel', {
108
-		title : '开拍记录列表',
109
-		dockedItems : [ {
110
-			xtype : 'pagingtoolbar',
111
-			store : dataStore, 
112
-			dock : 'bottom',
113
-			displayInfo : true
114
-		} ],
115
-		store : dataStore,
116
-		columns : [ {
117
-			text : 'kid',
118
-			name : 'kid',
119
-			hidden : true
120
-		},{
121
-			text : '标的物名称',
122
-			align : 'center',
123
-			dataIndex : 'item_name',
124
-			flex : 2
125
-		},{
126
-			text : '是否开拍',
127
-			align : 'center',
128
-			dataIndex : 'bid_opening',
129
-			flex : 1
130
-		},{
131
-			text : '开拍时间',
132
-			align : 'center',
133
-			dataIndex : 'time_opening',
134
-			flex : 1,
135
-			/* renderer : function(val){
136
-				console.log(val);
137
-				if(val != ''){
138
-					return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
139
-				}else if(val =='1970-01-01 08:00:00'){
140
-					return '';
141
-				}
142
-			} */
143
-		},{
144
-			text : '结束时间',
145
-			dataIndex : 'time_end',
146
-			flex : 1,
147
-			renderer : function(val){
148
-				if(val != ''){
149
-					return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
150
-				}
151
-			}
152
-		},{
153
-			xtype : "actioncolumn",
154
-			align : "center",
155
-			text : '操作',
156
-			flex : 1,
157
-			items : [ {
158
-				xtype : 'button',
159
-				tooltip : '开拍',
160
-				renderer : function(value, row, column, rowIndex, data, table){
161
-					return "已开拍";
162
-				},
163
-				icon : jcapp.getIcon("application_osx_go.png"),
164
-				handler : function(grid, rowIndex, colIndex) {
165
-					var rec = grid.getStore().getAt(rowIndex);
166
-					if(rec.get('bid_opening')=='已开拍'){
167
-						return "";
168
-					}
169
-					if(rec.get('bid_opening')=='已中止'){
170
-						return "";
171
-					}
172
-					if(rec.get('bid_opening')=='已结束'){
173
-						return "";
174
-					}
175
-					myBidOpening(rec.get('kid'),'已开拍');
176
-				}
177
-			},{
178
-				xtype : 'container'
179
-			},{
180
-				xtype : 'button',
181
-				tooltip : '中止',
182
-				renderer : function(value, row, column, rowIndex, data, table){
183
-					return "已中止";
184
-				},
185
-				icon : jcapp.getIcon("application_osx_error.png"),
186
-				handler : function(grid, rowIndex, colIndex) {
187
-					var rec = grid.getStore().getAt(rowIndex);
188
-					if(rec.get('bid_opening')=='已中止'){
189
-						return "";
190
-					}
191
-					if(rec.get('bid_opening')=='已结束' ){
192
-						return "";
193
-					}
194
-					if(rec.get('bid_opening')=='未开拍' ){
195
-						return "";
196
-					}
197
-					myBidInterrupt(rec.get('kid'),'已中止');
198
-				}
199
-			},{
200
-				xtype : 'container'
201
-			},{
202
-				xtype : 'button',
203
-				tooltip : '结束',
204
-				renderer : function(value, row, column, rowIndex, data, table){
205
-					return "已结束";
206
-				},
207
-				icon : jcapp.getIcon("application_error.png"),
208
-				handler : function(grid, rowIndex, colIndex) {
209
-					var rec = grid.getStore().getAt(rowIndex);
210
-					if(rec.get('bid_opening')=='已中止' ){
211
-						return "";
212
-					}
213
-					if(rec.get('bid_opening')=='已结束' ){
214
-						return "";
215
-					}
216
-					if(rec.get('bid_opening')=='未开拍' ){
217
-						return "";
218
-					}
219
-					myBidClose(rec.get('kid'),'已结束');
220
-					console.log(rec.get('kid'));
221
-				}
222
-			},{
223
-				xtype : 'container'
224
-			}]
225
-		} ],
226
-		viewConfig:{
227
-			enableTextSelection:true
228
-		}
229
-	}); //#listGridPanel
230
-		
231
-	 	searchFormPanel.render(Ext.getBody());
232
-		listGridPanel.render(Ext.getBody()); 
233
-	});
234
-	
235
-	function myBidOpening(kid,bid_opening){
236
-		Ext.Msg.confirm("提示:", "是否确认开拍? ", function(e) {
237
-			if (e == "yes") {
238
-				Ext.Ajax.request({
239
-					url : "/web-cp-all/cp/pm/pm_bid_opening?kid=" + kid + "&bid_opening=" + bid_opening,
240
-					success : function(response) {
241
-						dataStore.load();
242
-					},
243
-					failure : function(response) {
244
-						Ext.Msg.alert("提示", "操作失败!");
245
-					}
246
-				});
247
-			}
248
-		});
249
-	}//#myBidOpening
250
-	
251
-	function myBidInterrupt(kid,bid_opening){
252
-		Ext.Msg.confirm("提示:", "是否确认中止? ", function(e) {
253
-			if (e == "yes") {
254
-				Ext.Ajax.request({
255
-					url : "/web-cp-all/cp/pm/pm_bid_opening?kid=" + kid + "&bid_opening=" + bid_opening,
256
-					success : function(response) {
257
-						Ext.Msg.alert("提示", "已中止");
258
-						dataStore.load();
259
-					},
260
-					failure : function(response) {
261
-						Ext.Msg.alert("提示", "操作失败!");
262
-					}
263
-				});
264
-			}
265
-		});
266
-	}//#myBidInterrupt
267
-	
268
-	function myBidClose(kid,bid_opening){
269
-		Ext.Msg.confirm("提示:", "是否确认结束? ", function(e) {
270
-			if (e == "yes") {
271
-				Ext.Ajax.request({
272
-					url : "/web-cp-all/cp/pm/pm_bid_opening?kid=" + kid + "&bid_opening=" + bid_opening,
273
-					success : function(response) {
274
-						Ext.Msg.alert("提示", "已结束");
275
-						dataStore.load();
276
-					},
277
-					failure : function(response) {
278
-						Ext.Msg.alert("提示", "操作失败!");
279
-					}
280
-				});
281
-			}
282
-		});
283
-	}//#myBidClose
284
-	
45
+            var cateStore = Ext.create('Ext.data.Store', {
46
+                fields: ['abbr', 'name'],
47
+                data : [
48
+                    {"abbr":"全部", "name":"全部"},
49
+                    {"abbr":"已开拍", "name":"已开拍"},
50
+                    {"abbr":"未开拍", "name":"未开拍"},
51
+                    {"abbr":"已中止", "name":"已中止"},
52
+                    {"abbr":"已结束", "name":"已结束"}
53
+                ]
54
+            });
285 55
 
286
-</script>
56
+            var searchFormPanel = Ext.create('Ext.form.Panel', {
57
+                frame : true,
58
+                title : "搜索条件",
59
+                style : {
60
+                    marginBottom : '5px'
61
+                },
62
+                bodyStyle : {
63
+                    padding : '10px'
64
+                },
65
+                buttonAlign : "center",
66
+                collapsible : true,
67
+                defaultType : "textfield",
68
+                items : [
69
+                    {
70
+                        xtype : "container",
71
+                        layout : "hbox",
72
+                        items : [
73
+                            {
74
+                                xtype : "textfield",
75
+                                fieldLabel : "开拍标的物名称",
76
+                                name : "srh.item_name"
77
+                            },{
78
+                                fieldLabel : "分类",
79
+                                name : "srh.bid_opening",
80
+                                editable : false,
81
+                                xtype : "combo",
82
+                                store : cateStore,
83
+                                queryMode : 'local',
84
+                                displayField : 'name',
85
+                                valueField : 'abbr',
86
+                                value : '全部',
87
+                                width : 180,
88
+                                labelWidth : 80,
89
+                                labelAlign : 'right'
90
+                            }
91
+                        ]
92
+                    }
93
+                ],
94
+                buttons : [ {
95
+                    text : "搜索",
96
+                    icon : jcapp.getIcon("magnifier.png"),
97
+                    handler : function() {
98
+                        dataStore.load({
99
+                            //params:params()
100
+                        });
101
+                        dataStore.sync();
102
+                    }
103
+                }, {
104
+                    text : "重置",
105
+                    icon : jcapp.getIcon("arrow_refresh.png"),
106
+                    handler : function() {
107
+                        this.up('form').getForm().reset();
108
+                        dataStore.load({});
109
+                        dataStore.sync();
110
+                    }
111
+                } ]
112
+            }); //#searchFormPanel
113
+
114
+            var listGridPanel = Ext.create('Ext.grid.Panel', {
115
+                title : '开拍记录列表',
116
+                dockedItems : [ {
117
+                    xtype : 'pagingtoolbar',
118
+                    store : dataStore,
119
+                    dock : 'bottom',
120
+                    displayInfo : true
121
+                } ],
122
+                store : dataStore,
123
+                columns : [ {
124
+                    text : 'kid',
125
+                    name : 'kid',
126
+                    hidden : true
127
+                },{
128
+                    text : '标的物名称',
129
+                    align : 'center',
130
+                    dataIndex : 'item_name',
131
+                    flex : 2
132
+                },{
133
+                    text : '是否开拍',
134
+                    align : 'center',
135
+                    dataIndex : 'bid_opening',
136
+                    flex : 1
137
+                },{
138
+                    text : '开拍时间',
139
+                    align : 'center',
140
+                    dataIndex : 'time_opening',
141
+                    flex : 1,
142
+                    /* renderer : function(val){
143
+                        console.log(val);
144
+                        if(val != ''){
145
+                            return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
146
+                        }else if(val =='1970-01-01 08:00:00'){
147
+                            return '';
148
+                        }
149
+                    } */
150
+                },{
151
+                    text : '结束时间',
152
+                    dataIndex : 'time_end',
153
+                    flex : 1,
154
+                    renderer : function(val){
155
+                        if(val != ''){
156
+                            return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
157
+                        }
158
+                    }
159
+                },{
160
+                    xtype : "actioncolumn",
161
+                    align : "center",
162
+                    text : '操作',
163
+                    flex : 1,
164
+                    items : [ {
165
+                        xtype : 'button',
166
+                        tooltip : '开拍',
167
+                        renderer : function(value, row, column, rowIndex, data, table){
168
+                            return "已开拍";
169
+                        },
170
+                        icon : jcapp.getIcon("application_osx_go.png"),
171
+                        handler : function(grid, rowIndex, colIndex) {
172
+                            var rec = grid.getStore().getAt(rowIndex);
173
+                            if(rec.get('bid_opening')=='已开拍'){
174
+                                return "";
175
+                            }
176
+                            if(rec.get('bid_opening')=='已中止'){
177
+                                return "";
178
+                            }
179
+                            if(rec.get('bid_opening')=='已结束'){
180
+                                return "";
181
+                            }
182
+                            myBidOpening(rec.get('kid'),'已开拍');
183
+                        }
184
+                    },{
185
+                        xtype : 'container'
186
+                    },{
187
+                        xtype : 'button',
188
+                        tooltip : '中止',
189
+                        renderer : function(value, row, column, rowIndex, data, table){
190
+                            return "已中止";
191
+                        },
192
+                        icon : jcapp.getIcon("application_osx_error.png"),
193
+                        handler : function(grid, rowIndex, colIndex) {
194
+                            var rec = grid.getStore().getAt(rowIndex);
195
+                            if(rec.get('bid_opening')=='已中止'){
196
+                                return "";
197
+                            }
198
+                            if(rec.get('bid_opening')=='已结束' ){
199
+                                return "";
200
+                            }
201
+                            if(rec.get('bid_opening')=='未开拍' ){
202
+                                return "";
203
+                            }
204
+                            myBidInterrupt(rec.get('kid'),'已中止');
205
+                        }
206
+                    },{
207
+                        xtype : 'container'
208
+                    },{
209
+                        xtype : 'button',
210
+                        tooltip : '结束',
211
+                        renderer : function(value, row, column, rowIndex, data, table){
212
+                            return "已结束";
213
+                        },
214
+                        icon : jcapp.getIcon("application_error.png"),
215
+                        handler : function(grid, rowIndex, colIndex) {
216
+                            var rec = grid.getStore().getAt(rowIndex);
217
+                            if(rec.get('bid_opening')=='已中止' ){
218
+                                return "";
219
+                            }
220
+                            if(rec.get('bid_opening')=='已结束' ){
221
+                                return "";
222
+                            }
223
+                            if(rec.get('bid_opening')=='未开拍' ){
224
+                                return "";
225
+                            }
226
+                            myBidClose(rec.get('kid'),'已结束');
227
+                            console.log(rec.get('kid'));
228
+                        }
229
+                    },{
230
+                        xtype : 'container'
231
+                    }]
232
+                } ],
233
+                viewConfig:{
234
+                    enableTextSelection:true
235
+                }
236
+            }); //#listGridPanel
237
+
238
+            searchFormPanel.render(Ext.getBody());
239
+            listGridPanel.render(Ext.getBody());
240
+        });
241
+
242
+        function myBidOpening(kid,bid_opening){
243
+            Ext.Msg.confirm("提示:", "是否确认开拍? ", function(e) {
244
+                if (e == "yes") {
245
+                    Ext.Ajax.request({
246
+                        url : "/web-cp-all/cp/pm/pm_bid_opening?kid=" + kid + "&bid_opening=" + bid_opening,
247
+                        success : function(response) {
248
+                            dataStore.load();
249
+                        },
250
+                        failure : function(response) {
251
+                            Ext.Msg.alert("提示", "操作失败!");
252
+                        }
253
+                    });
254
+                }
255
+            });
256
+        }//#myBidOpening
257
+
258
+        function myBidInterrupt(kid,bid_opening){
259
+            Ext.Msg.confirm("提示:", "是否确认中止? ", function(e) {
260
+                if (e == "yes") {
261
+                    Ext.Ajax.request({
262
+                        url : "/web-cp-all/cp/pm/pm_bid_opening?kid=" + kid + "&bid_opening=" + bid_opening,
263
+                        success : function(response) {
264
+                            Ext.Msg.alert("提示", "已中止");
265
+                            dataStore.load();
266
+                        },
267
+                        failure : function(response) {
268
+                            Ext.Msg.alert("提示", "操作失败!");
269
+                        }
270
+                    });
271
+                }
272
+            });
273
+        }//#myBidInterrupt
274
+
275
+        function myBidClose(kid,bid_opening){
276
+            Ext.Msg.confirm("提示:", "是否确认结束? ", function(e) {
277
+                if (e == "yes") {
278
+                    Ext.Ajax.request({
279
+                        url : "/web-cp-all/cp/pm/pm_bid_opening?kid=" + kid + "&bid_opening=" + bid_opening,
280
+                        success : function(response) {
281
+                            Ext.Msg.alert("提示", "已结束");
282
+                            dataStore.load();
283
+                        },
284
+                        failure : function(response) {
285
+                            Ext.Msg.alert("提示", "操作失败!");
286
+                        }
287
+                    });
288
+                }
289
+            });
290
+        }//#myBidClose
291
+
292
+
293
+    </script>
287 294
 </head>
288 295
 <body>
289 296
 </body>

+ 6 - 1
krock-jcebid-cp/krock-web-cp-all/src/main/resources/static/view_cp_pm/pm/pay_record/list.html

@@ -89,7 +89,7 @@ Ext.onReady(function() {
89 89
 						labelWidth : 80,
90 90
 						labelAlign : 'right'
91 91
 					},{
92
-						fieldLabel : "分类",
92
+						fieldLabel : "分类状态",
93 93
 						name : "srh.status_pay",
94 94
 						editable : false,
95 95
 						xtype : "combo",
@@ -177,6 +177,11 @@ Ext.onReady(function() {
177 177
 				dataIndex : 'item_name',
178 178
 				flex : 1
179 179
 			},{
180
+                text : '分类状态',
181
+                align : 'center',
182
+                dataIndex : 'status_pay',
183
+                flex : 1
184
+            },{
180 185
 				text : '支付用户',
181 186
 				tooltip : '支付用户',
182 187
 				align : 'center',

+ 67 - 42
krock-jcebid-cp/krock-web-cp-all/src/main/resources/static/view_cp_pm/pm/shops/select.js

@@ -1,57 +1,82 @@
1
- var form_panel = Ext.create("Ext.form.Panel", {
2
-			buttonAlign : "center",
3
-			bodyStyle : "padding: 60px;",
4
-			defaultType : "textfield",
1
+var form_panel = Ext.create("Ext.form.Panel", {
2
+	buttonAlign : "center",
3
+	bodyStyle : "padding: 60px;",
4
+	defaultType : "textfield",
5 5
 //			layout : 
6 6
 //				{
7 7
 //					type : 'table',
8 8
 //					columns : 2
9 9
 //				},
10
-			items : [
11
-				{
12
-					fieldLabel : "kid",
13
-					xtype : "textfield",
14
-					name : "kid",
15
-					editable : false,
16
-					hidden : true
17
-				},{
18
-					fieldLabel : "姓名",
19
-					name : "name",
20
-					labelWidth : 130,
21
-					editable : false,
22
-				}
23
-			]
24
-		});
25
-		
26
-		
27
-		
28
-		
29
-		var form_panel_win = Ext.create("Ext.Window", {
30
-			title : "个人信息 ",
31
-			closeAction : "hide",
32
-			items : form_panel
33
-		});
34
-		
10
+	items : [
11
+		{
12
+			fieldLabel : "kid",
13
+			xtype : "textfield",
14
+			name : "kid",
15
+			editable : false,
16
+			hidden : true
17
+		},{
18
+			fieldLabel : "姓名",
19
+			name : "real_name",
20
+			labelWidth : 130,
21
+			editable : false,
22
+		},{
23
+			fieldLabel : "手机号",
24
+			name : "mobile",
25
+			labelWidth : 130,
26
+			editable : false,
27
+		},{
28
+			fieldLabel : "身份证号",
29
+			name : "identity_card",
30
+			labelWidth : 130,
31
+			editable : false,
32
+		},{
33
+			fieldLabel : "开户行",
34
+			name : "deposit_bank",
35
+			labelWidth : 130,
36
+			editable : false,
37
+		},{
38
+			fieldLabel : "开户行帐号",
39
+			name : "deposit_bank_card",
40
+			labelWidth : 130,
41
+			editable : false,
42
+		},{
43
+			fieldLabel : "开户名名称",
44
+			name : "deposit_bank_name",
45
+			labelWidth : 130,
46
+			editable : false,
47
+		}
48
+	]
49
+});
50
+
51
+
52
+
53
+
54
+var form_panel_win = Ext.create("Ext.Window", {
55
+	title : "个人信息 ",
56
+	closeAction : "hide",
57
+	items : form_panel
58
+});
59
+
35 60
 
36 61
 function personal_information(persion_id){
37
-	
62
+
38 63
 	Ext.Ajax.request({
39
-				url : "/web-cp-all/cp/pm/shops/verify/list?persion_id="+ persion_id,
40
-				success : function(response) {
41
-					var json = Ext.JSON.decode(response.responseText);
64
+		url : "/web-cp-all/cp/pm/shops/verify/shopInfo?persion_id="+ persion_id,
65
+		success : function(response) {
66
+			var json = Ext.JSON.decode(response.responseText);
42 67
 //					console.log(json.list);
43
-					//加载form表单数据
44
-					form_panel.getForm().reset();
45
-					form_panel.getForm().setValues(json.list);
68
+			//加载form表单数据
69
+			form_panel.getForm().reset();
70
+			form_panel.getForm().setValues(json.data);
46 71
 //					//格式化时间类型数据并赋给form表单对应label
47 72
 //					var dateStr1 = getSmpFormatDateByLong(json.time_opening);
48 73
 //					edit_form_panel.getForm().findField("time_opening").setValue(dateStr1); 
49 74
 //					var dateStr2 = getSmpFormatDateByLong(json.time_end);
50 75
 //					edit_form_panel.getForm().findField("time_end").setValue(dateStr2); 
51
-					form_panel_win.show();
52
-				},
53
-				failure : function(response) {
54
-					Ext.Msg.alert("提示", "操作失败!");
55
-				}
56
-			});
76
+			form_panel_win.show();
77
+		},
78
+		failure : function(response) {
79
+			Ext.Msg.alert("提示", "操作失败!");
80
+		}
81
+	});
57 82
 }

+ 272 - 272
krock-jcebid-cp/krock-web-cp-all/src/main/resources/static/view_cp_pm/pm/shops/shops_verify.html

@@ -1,285 +1,285 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 <head>
4
-<title>商铺审批</title>
5
-<meta charset="UTF-8">
6
-<link rel="stylesheet" href="https://yun.eqbidding.com/extjs/extjs6.0/classic/theme-crisp/resources/theme-crisp-all.css"></link>
7
-<script src="https://yun.eqbidding.com/extjs/extjs6.0/ext-all.js"></script>
8
-<script src="https://yun.eqbidding.com/extjs/extjs6.0/classic/locale/locale-zh_CN.js"></script>
9
-<script type="text/javascript" src="/web-cp-all/resource/js/app.js"></script>
10
-<script type="text/javascript" src="/web-cp-all/resource/js/time/time.js"></script>
11
-<script type="text/javascript" src="select.js"></script>
12
-<script type="text/javascript">
13
-	var verify_id;
4
+    <title>商铺审批</title>
5
+    <meta charset="UTF-8">
6
+    <link rel="stylesheet" href="https://yun.eqbidding.com/extjs/extjs6.0/classic/theme-crisp/resources/theme-crisp-all.css"></link>
7
+    <script src="https://yun.eqbidding.com/extjs/extjs6.0/ext-all.js"></script>
8
+    <script src="https://yun.eqbidding.com/extjs/extjs6.0/classic/locale/locale-zh_CN.js"></script>
9
+    <script type="text/javascript" src="/web-cp-all/resource/js/app.js"></script>
10
+    <script type="text/javascript" src="/web-cp-all/resource/js/time/time.js"></script>
11
+    <script type="text/javascript" src="select.js"></script>
12
+    <script type="text/javascript">
13
+        var verify_id;
14 14
 
15
-	//初始化列表数据
16
-	dataStore = Ext.create('Ext.data.Store', {
17
-		remoteSort : true,
18
-		autoLoad : true,
19
-		pageSize : 20,
20
-		sorters : {
21
-			property : 'created',
22
-			direction : 'DESC'
23
-		},
24
-		proxy : {
25
-			type : "ajax",
26
-			url : "/web-cp-all/cp/pm/shops/verify/list_data",
27
-			reader : {
28
-				type : 'json',
29
-				root : 'list',
30
-				totalProperty : 'page.totalRow'
31
-			}
32
-		},
33
-		listeners : {
34
-			'beforeload' : function(store, op, options) {
35
-				var params = searchFormPanel.getForm().getValues();
36
-				Ext.apply(dataStore.proxy.extraParams, params);
37
-			}
38
-		}
39
-	}); //#dataStore 
15
+        //初始化列表数据
16
+        dataStore = Ext.create('Ext.data.Store', {
17
+            remoteSort : true,
18
+            autoLoad : true,
19
+            pageSize : 20,
20
+            sorters : {
21
+                property : 'created',
22
+                direction : 'DESC'
23
+            },
24
+            proxy : {
25
+                type : "ajax",
26
+                url : "/web-cp-all/cp/pm/shops/verify/list_data",
27
+                reader : {
28
+                    type : 'json',
29
+                    root : 'list',
30
+                    totalProperty : 'page.totalRow'
31
+                }
32
+            },
33
+            listeners : {
34
+                'beforeload' : function(store, op, options) {
35
+                    var params = searchFormPanel.getForm().getValues();
36
+                    Ext.apply(dataStore.proxy.extraParams, params);
37
+                }
38
+            }
39
+        }); //#dataStore
40 40
 
41
-	var searchFormPanel = Ext.create('Ext.form.Panel', {
42
-		frame : true,
43
-		title : "搜索条件",
44
-		style : {
45
-			marginBottom : '5px'
46
-		},
47
-		bodyStyle : {
48
-			padding : '10px'
49
-		},
50
-		buttonAlign : "center",
51
-		collapsible : true,
52
-		defaultType : "textfield",
53
-		items : [ {
54
-			xtype : "container",
55
-			layout : "hbox",
56
-			items : [ {
57
-				xtype : "textfield",
58
-				fieldLabel : "标的物名称",
59
-				name : "srh.notice_title"
60
-			}]
61
-		} ],
62
-		buttons : [ {
63
-			text : "搜索",
64
-			icon : jcapp.getIcon("magnifier.png"),
65
-			handler : function() {
66
-				dataStore.load({
67
-				//params:params()
68
-				});
69
-				dataStore.sync();
70
-			}
71
-		}, {
72
-			text : "重置",
73
-			icon : jcapp.getIcon("arrow_refresh.png"),
74
-			handler : function() {
75
-				this.up('form').getForm().reset();
76
-				dataStore.load({});
77
-				dataStore.sync();
78
-			}
79
-		} ]
80
-	}); //#searchFormPanel
81
-	
82
-	var listGridPanel = Ext.create('Ext.grid.Panel', {
83
-		title : '商铺列表',
84
-		dockedItems : [ {
85
-			xtype : 'pagingtoolbar',
86
-			store : dataStore, 
87
-			dock : 'bottom',
88
-			displayInfo : true
89
-		} ],
90
-		store : dataStore,
91
-		columns : [ {
92
-			text : 'kid',
93
-			name : 'kid',
94
-			hidden : true
95
-		},{
96
-			text : '商铺名称',
97
-			dataIndex : 'name',
98
-			flex : 1,
99
-			align : 'center'
100
-		},{
101
-			text : '审批状态',
102
-			dataIndex : 'verify_status',
103
-			flex : 1,
104
-			align : 'center'
105
-		},{
106
-			xtype : "actioncolumn",
107
-			align : "center",
108
-			text : '操作',
109
-			flex :	1,
110
-			items : [ 
111
-				{
112
-					xtype : 'button',
113
-					tooltip : '通过',
114
-					renderer : function(value, row, column, rowIndex, data, table){
115
-						return "审核通过";
116
-				    },
117
-					icon : jcapp.getIcon("user_tick.png"),
118
-					handler : function(grid, rowIndex, colIndex) {
119
-						var rec = grid.getStore().getAt(rowIndex);
120
-						myPass(rec.get('kid'),'审核通过');
121
-					}
122
-				},{
123
-					xtype:"container"
124
-				},{
125
-					xtype : 'button',
126
-					tooltip : '不通过',
127
-					icon : jcapp.getIcon("user_cross.png"),
128
-					handler : function(grid, rowIndex, colIndex) {
129
-						var rec = grid.getStore().getAt(rowIndex);
130
-						myNotPass(rec.get('kid'),'审核未通过');
131
-					}
132
-				},{
133
-					xtype:"container"
134
-				},{
135
-					xtype : 'button',
136
-					tooltip : '查看个人信息',
137
-					icon : jcapp.getIcon("user_magnify.png"),
138
-					handler : function(grid, rowIndex, colIndex) {
139
-						var rec = grid.getStore().getAt(rowIndex);
140
-						var persion_id = rec.get('persion_id');
141
-						personal_information(persion_id);
142
-					}
143
-				},{
144
-					xtype:"container"
145
-				},{
146
-					xtype : 'button',
147
-					tooltip : '查看图片',
148
-					icon : jcapp.getIcon("user_magnify.png"),
149
-					handler : function(grid, rowIndex, colIndex) {
150
-						var rec = grid.getStore().getAt(rowIndex);
151
-						var identity_file_id = rec.get('identity_file_id');
152
-						
153
-						var array = identity_file_id.split(",");
154
-						var nums = [];
155
-						
156
-						
157
-						if(identity_file_id == undefined){
158
-							Ext.Msg.alert("提示", "没有相关信息!");
159
-						}else{
160
-							//window.open("/img/"+business_license_code+"");
161
-							
162
-							for(var i = 0 ; i < array.length ;i++){
163
-								nums.push(parseInt(array[i]));
164
-								//window.open(getServerHttp()+"/img_pm/img/"+array[i]);
165
-								var win_Watch = Ext.create( 'Ext.Window', { 
166
-								      width: 640, 
167
-								      height: 800, 
168
-								      modal: true, //是否模态窗口,默认为false 
169
-								      maximizable: true, 
170
-								      layout: "fit",                        //窗口布局类型 
171
-								      resizable: false, 
172
-								      closeAction: 'hide', 
173
-								      plain: true, 
174
-								      draggable: true, 
175
-								      border: false, 
176
-								      items: [ 
177
-							              Ext.create( 'Ext.Img', { 
178
-							                  height: '100%', 
179
-							                  width: '100%', 
180
-							                  src: "/web-cp-all/img_pm/img/"+array[i]
181
-							              }) 
182
-								      ]
183
-								}); 
184
-								win_Watch.show(); 
185
-							}
186
-						}
187
-					}
188
-				}
189
-			]
190
-		} ],
191
-		viewConfig:{
192
-			enableTextSelection:true
193
-		}
194
-	}); 
41
+        var searchFormPanel = Ext.create('Ext.form.Panel', {
42
+            frame : true,
43
+            title : "搜索条件",
44
+            style : {
45
+                marginBottom : '5px'
46
+            },
47
+            bodyStyle : {
48
+                padding : '10px'
49
+            },
50
+            buttonAlign : "center",
51
+            collapsible : true,
52
+            defaultType : "textfield",
53
+            items : [ {
54
+                xtype : "container",
55
+                layout : "hbox",
56
+                items : [ {
57
+                    xtype : "textfield",
58
+                    fieldLabel : "标的物名称",
59
+                    name : "srh.notice_title"
60
+                }]
61
+            } ],
62
+            buttons : [ {
63
+                text : "搜索",
64
+                icon : jcapp.getIcon("magnifier.png"),
65
+                handler : function() {
66
+                    dataStore.load({
67
+                        //params:params()
68
+                    });
69
+                    dataStore.sync();
70
+                }
71
+            }, {
72
+                text : "重置",
73
+                icon : jcapp.getIcon("arrow_refresh.png"),
74
+                handler : function() {
75
+                    this.up('form').getForm().reset();
76
+                    dataStore.load({});
77
+                    dataStore.sync();
78
+                }
79
+            } ]
80
+        }); //#searchFormPanel
195 81
 
196
-	Ext.onReady(function() {
197
-	 	searchFormPanel.render(Ext.getBody());
198
-		listGridPanel.render(Ext.getBody()); 
199
-	});
82
+        var listGridPanel = Ext.create('Ext.grid.Panel', {
83
+            title : '商铺列表',
84
+            dockedItems : [ {
85
+                xtype : 'pagingtoolbar',
86
+                store : dataStore,
87
+                dock : 'bottom',
88
+                displayInfo : true
89
+            } ],
90
+            store : dataStore,
91
+            columns : [ {
92
+                text : 'kid',
93
+                name : 'kid',
94
+                hidden : true
95
+            },{
96
+                text : '商铺名称',
97
+                dataIndex : 'name',
98
+                flex : 1,
99
+                align : 'center'
100
+            },{
101
+                text : '审批状态',
102
+                dataIndex : 'verify_status',
103
+                flex : 1,
104
+                align : 'center'
105
+            },{
106
+                xtype : "actioncolumn",
107
+                align : "center",
108
+                text : '操作',
109
+                flex :	1,
110
+                items : [
111
+                    {
112
+                        xtype : 'button',
113
+                        tooltip : '通过',
114
+                        renderer : function(value, row, column, rowIndex, data, table){
115
+                            return "审核通过";
116
+                        },
117
+                        icon : jcapp.getIcon("user_tick.png"),
118
+                        handler : function(grid, rowIndex, colIndex) {
119
+                            var rec = grid.getStore().getAt(rowIndex);
120
+                            myPass(rec.get('kid'),'审核通过');
121
+                        }
122
+                    },{
123
+                        xtype:"container"
124
+                    },{
125
+                        xtype : 'button',
126
+                        tooltip : '不通过',
127
+                        icon : jcapp.getIcon("user_cross.png"),
128
+                        handler : function(grid, rowIndex, colIndex) {
129
+                            var rec = grid.getStore().getAt(rowIndex);
130
+                            myNotPass(rec.get('kid'),'审核未通过');
131
+                        }
132
+                    },{
133
+                        xtype:"container"
134
+                    },{
135
+                        xtype : 'button',
136
+                        tooltip : '查看个人信息',
137
+                        icon : jcapp.getIcon("user_magnify.png"),
138
+                        handler : function(grid, rowIndex, colIndex) {
139
+                            var rec = grid.getStore().getAt(rowIndex);
140
+                            var persion_id = rec.get('persion_id');
141
+                            personal_information(persion_id);
142
+                        }
143
+                    },{
144
+                        xtype:"container"
145
+                    },{
146
+                        xtype : 'button',
147
+                        tooltip : '查看图片',
148
+                        icon : jcapp.getIcon("user_magnify.png"),
149
+                        handler : function(grid, rowIndex, colIndex) {
150
+                            var rec = grid.getStore().getAt(rowIndex);
151
+                            var identity_file_id = rec.get('identity_file_id');
200 152
 
201
-	function myPass(kid,verify_status){
202
-		Ext.Msg.confirm("提示:", "是否通过审核?", function(e) {
203
-			if (e == "yes") {
204
-				Ext.Ajax.request({
205
-					url : "/web-cp-all/cp/pm/shops/verify/edit_pass?kid=" + kid + "&verify_status=" + verify_status,
206
-					success : function(response) {
207
-						Ext.Msg.alert("操作","通过成功");
208
-						dataStore.load();
209
-					},
210
-					failure : function(response) {
211
-						Ext.Msg.alert("提示", "操作失败!");
212
-					}
213
-				});
214
-			}
215
-		});
216
-	}
153
+                            var array = identity_file_id.split(",");
154
+                            var nums = [];
217 155
 
218
-	function myNotPass(kid,verify_status){
219
-		Ext.Msg.confirm("提示:", "是否拒绝审核?", function(e) {
220
-			if (e == "yes") {
221
-				/* Ext.Ajax.request({
222
-					url : "/web-cp-all/cp/pm/shops/verify/edit_nopass?kid=" + kid + "&verify_status=" + verify_status,
223
-					success : function(response) {
224
-						Ext.Msg.alert("操作","拒绝成功");
225
-						dataStore.load();
226
-					},
227
-					failure : function(response) {
228
-						Ext.Msg.alert("提示", "操作失败!");
229
-					}
230
-				}); */
231
-				var edit_form_panel = Ext.create("Ext.form.Panel", {
232
-					url : "/web-cp-all/cp/pm/shops/verify/edit_nopass?kid="+kid+"&verify_status="+verify_status,
233
-					buttonAlign : "center",
234
-					bodyStyle : "padding: 60px;",
235
-					defaultType : "textfield",
236
-					items : [ 
237
-						{
238
-							fieldLabel : "拒绝原因",
239
-							xtype : "textarea",
240
-							name : "note"
241
-						}
242
-					],
243
-					buttons : [
244
-						{
245
-							text : "保存",
246
-							formBind : false, // only enabled once the form is valid
247
-							disabled : false,
248
-							handler : function() {
249
-							var form = this.up("form").getForm();
250
-								form.submit({
251
-									waitMsg : "保存中...",
252
-									Params :{
253
-										note : form.findField("note").getValue()
254
-									},
255
-									submitEmptyText: false,
256
-									success : function(form) {
257
-										Ext.Msg.alert("提示", "拒绝成功!!!");
258
-										edit_form_panel_win.close();
259
-										dataStore.load();
260
-									},
261
-									failure : function(form, action) {
262
-										Ext.Msg.alert("提示", "操作失败!!!");
263
-									}
264
-								});
265
-							}
266
-						} 
267
-					]
268
-				});
269
-				
270
-				var edit_form_panel_win = Ext.create("Ext.Window", {
271
-					//title : " ",
272
-					closeAction : "hide",
273
-					items : edit_form_panel
274
-				});
275
-				edit_form_panel_win.show();
276
-				
277
-			}
278
-		});
279
-	}
280 156
 
157
+                            if(identity_file_id == undefined){
158
+                                Ext.Msg.alert("提示", "没有相关信息!");
159
+                            }else{
160
+                                //window.open("/img/"+business_license_code+"");
281 161
 
282
-</script>
162
+                                for(var i = 0 ; i < array.length ;i++){
163
+                                    nums.push(parseInt(array[i]));
164
+                                    //window.open(getServerHttp()+"/img_pm/img/"+array[i]);
165
+                                    var win_Watch = Ext.create( 'Ext.Window', {
166
+                                        width: 640,
167
+                                        height: 600,
168
+                                        modal: true, //是否模态窗口,默认为false
169
+                                        maximizable: true,
170
+                                        layout: "fit",                        //窗口布局类型
171
+                                        resizable: false,
172
+                                        closeAction: 'hide',
173
+                                        plain: true,
174
+                                        draggable: true,
175
+                                        border: false,
176
+                                        items: [
177
+                                            Ext.create( 'Ext.Img', {
178
+                                                height: '100%',
179
+                                                width: '100%',
180
+                                                src: "/web-cp-all/img_pm/img/"+array[i]
181
+                                            })
182
+                                        ]
183
+                                    });
184
+                                    win_Watch.show();
185
+                                }
186
+                            }
187
+                        }
188
+                    }
189
+                ]
190
+            } ],
191
+            viewConfig:{
192
+                enableTextSelection:true
193
+            }
194
+        });
195
+
196
+        Ext.onReady(function() {
197
+            searchFormPanel.render(Ext.getBody());
198
+            listGridPanel.render(Ext.getBody());
199
+        });
200
+
201
+        function myPass(kid,verify_status){
202
+            Ext.Msg.confirm("提示:", "是否通过审核?", function(e) {
203
+                if (e == "yes") {
204
+                    Ext.Ajax.request({
205
+                        url : "/web-cp-all/cp/pm/shops/verify/edit_pass?kid=" + kid + "&verify_status=" + verify_status,
206
+                        success : function(response) {
207
+                            Ext.Msg.alert("操作","通过成功");
208
+                            dataStore.load();
209
+                        },
210
+                        failure : function(response) {
211
+                            Ext.Msg.alert("提示", "操作失败!");
212
+                        }
213
+                    });
214
+                }
215
+            });
216
+        }
217
+
218
+        function myNotPass(kid,verify_status){
219
+            Ext.Msg.confirm("提示:", "是否拒绝审核?", function(e) {
220
+                if (e == "yes") {
221
+                    /* Ext.Ajax.request({
222
+                        url : "/web-cp-all/cp/pm/shops/verify/edit_nopass?kid=" + kid + "&verify_status=" + verify_status,
223
+                        success : function(response) {
224
+                            Ext.Msg.alert("操作","拒绝成功");
225
+                            dataStore.load();
226
+                        },
227
+                        failure : function(response) {
228
+                            Ext.Msg.alert("提示", "操作失败!");
229
+                        }
230
+                    }); */
231
+                    var edit_form_panel = Ext.create("Ext.form.Panel", {
232
+                        url : "/web-cp-all/cp/pm/shops/verify/edit_nopass?kid="+kid+"&verify_status="+verify_status,
233
+                        buttonAlign : "center",
234
+                        bodyStyle : "padding: 60px;",
235
+                        defaultType : "textfield",
236
+                        items : [
237
+                            {
238
+                                fieldLabel : "拒绝原因",
239
+                                xtype : "textarea",
240
+                                name : "note"
241
+                            }
242
+                        ],
243
+                        buttons : [
244
+                            {
245
+                                text : "保存",
246
+                                formBind : false, // only enabled once the form is valid
247
+                                disabled : false,
248
+                                handler : function() {
249
+                                    var form = this.up("form").getForm();
250
+                                    form.submit({
251
+                                        waitMsg : "保存中...",
252
+                                        Params :{
253
+                                            note : form.findField("note").getValue()
254
+                                        },
255
+                                        submitEmptyText: false,
256
+                                        success : function(form) {
257
+                                            Ext.Msg.alert("提示", "拒绝成功!!!");
258
+                                            edit_form_panel_win.close();
259
+                                            dataStore.load();
260
+                                        },
261
+                                        failure : function(form, action) {
262
+                                            Ext.Msg.alert("提示", "操作失败!!!");
263
+                                        }
264
+                                    });
265
+                                }
266
+                            }
267
+                        ]
268
+                    });
269
+
270
+                    var edit_form_panel_win = Ext.create("Ext.Window", {
271
+                        //title : " ",
272
+                        closeAction : "hide",
273
+                        items : edit_form_panel
274
+                    });
275
+                    edit_form_panel_win.show();
276
+
277
+                }
278
+            });
279
+        }
280
+
281
+
282
+    </script>
283 283
 </head>
284 284
 <body>
285 285
 </body>