|
@@ -1,225 +1,225 @@
|
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>
|
|
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
|
11
|
|
12
|
|
-<script type="text/javascript">
|
13
|
|
-Ext.onReady(function() {
|
14
|
|
- //初始化列表数据
|
15
|
|
- var dataStore = Ext.create('Ext.data.Store', {
|
16
|
|
- remoteSort : true,
|
17
|
|
- autoLoad : true,
|
18
|
|
- pageSize : 20,
|
19
|
|
- sorters : {
|
20
|
|
- property : 'created',
|
21
|
|
- direction : 'DESC'
|
22
|
|
- },
|
23
|
|
- proxy : {
|
24
|
|
- type : "ajax",
|
25
|
|
- url : "/web-cp-all/cp/pm/item_unLine/list_data",
|
26
|
|
- reader : {
|
27
|
|
- type : 'json',
|
28
|
|
- root : 'page.list',
|
29
|
|
- totalProperty : 'page.totalRow'
|
30
|
|
- }
|
31
|
|
- },
|
32
|
|
- listeners : {
|
33
|
|
- 'beforeload' : function(store, op, options) {
|
34
|
|
- var params = searchFormPanel.getForm().getValues();
|
35
|
|
- Ext.apply(dataStore.proxy.extraParams, params);
|
36
|
|
- }
|
37
|
|
- }
|
38
|
|
- }); //#dataStore
|
39
|
|
-
|
40
|
|
- var comboxStore = Ext.create('Ext.data.Store', {
|
41
|
|
- fields: ['abbr', 'name'],
|
42
|
|
- data : [
|
43
|
|
- {"abbr":"已开拍", "name":"已开拍"},
|
44
|
|
- {"abbr":"未开拍", "name":"未开拍"},
|
45
|
|
- {"abbr":"已中止", "name":"已中止"},
|
46
|
|
- {"abbr":"已结束", "name":"已结束"}
|
47
|
|
- ]
|
48
|
|
- });
|
49
|
|
-
|
50
|
|
- var searchFormPanel = Ext.create('Ext.form.Panel', {
|
51
|
|
- frame : true,
|
52
|
|
- title : "搜索条件",
|
53
|
|
- style : {
|
54
|
|
- marginBottom : '5px'
|
55
|
|
- },
|
56
|
|
- bodyStyle : {
|
57
|
|
- padding : '10px'
|
58
|
|
- },
|
59
|
|
- buttonAlign : "center",
|
60
|
|
- collapsible : true,
|
61
|
|
- defaultType : "textfield",
|
62
|
|
- items : [
|
63
|
|
- {
|
64
|
|
- xtype : "container",
|
65
|
|
- layout : "hbox",
|
66
|
|
- items : [
|
67
|
|
- {
|
68
|
|
- xtype : "textfield",
|
69
|
|
- fieldLabel : "开拍标的物名称",
|
70
|
|
- name : "srh.item_name",
|
71
|
|
- labelAlign : 'right'
|
72
|
|
- },{
|
73
|
|
- fieldLabel : "分类",
|
74
|
|
- name : "srh.bid_opening",
|
75
|
|
- xtype : "combo",
|
76
|
|
- editable : false,
|
77
|
|
- store : comboxStore,
|
78
|
|
- displayField : 'name',
|
79
|
|
- valueField : 'abbr',
|
80
|
|
- labelAlign : 'right'
|
81
|
|
- //value : "未开拍"
|
82
|
|
- },{
|
83
|
|
- xtype : "textfield",
|
84
|
|
- fieldLabel : "公司名称",
|
85
|
|
- name : "srh.name",
|
86
|
|
- labelAlign : 'right'
|
|
12
|
+ <script type="text/javascript">
|
|
13
|
+ Ext.onReady(function() {
|
|
14
|
+ //初始化列表数据
|
|
15
|
+ var dataStore = Ext.create('Ext.data.Store', {
|
|
16
|
+ remoteSort : true,
|
|
17
|
+ autoLoad : true,
|
|
18
|
+ pageSize : 20,
|
|
19
|
+ sorters : {
|
|
20
|
+ property : 'created',
|
|
21
|
+ direction : 'DESC'
|
|
22
|
+ },
|
|
23
|
+ proxy : {
|
|
24
|
+ type : "ajax",
|
|
25
|
+ url : "/web-cp-all/cp/pm/item_unLine/list_data",
|
|
26
|
+ reader : {
|
|
27
|
+ type : 'json',
|
|
28
|
+ root : 'page.list',
|
|
29
|
+ totalProperty : 'page.totalRow'
|
87
|
30
|
}
|
88
|
|
- ]
|
89
|
|
- }
|
90
|
|
- ],
|
91
|
|
- buttons : [ {
|
92
|
|
- text : "搜索",
|
93
|
|
- icon : jcapp.getIcon("magnifier.png"),
|
94
|
|
- handler : function() {
|
95
|
|
- dataStore.load({
|
96
|
|
- //params:params()
|
97
|
|
- });
|
98
|
|
- dataStore.sync();
|
99
|
|
- }
|
100
|
|
- }, {
|
101
|
|
- text : "重置",
|
102
|
|
- icon : jcapp.getIcon("arrow_refresh.png"),
|
103
|
|
- handler : function() {
|
104
|
|
- this.up('form').getForm().reset();
|
105
|
|
- dataStore.load({});
|
106
|
|
- dataStore.sync();
|
107
|
|
- }
|
108
|
|
- } ]
|
109
|
|
- }); //#searchFormPanel
|
110
|
|
-
|
111
|
|
- var listGridPanel = Ext.create('Ext.grid.Panel', {
|
112
|
|
- title : '线下拍卖商品管理列表',
|
113
|
|
- dockedItems : [ {
|
114
|
|
- xtype : 'pagingtoolbar',
|
115
|
|
- store : dataStore,
|
116
|
|
- dock : 'bottom',
|
117
|
|
- displayInfo : true
|
118
|
|
- } ],
|
119
|
|
- store : dataStore,
|
120
|
|
- columns : [ {
|
121
|
|
- text : 'kid',
|
122
|
|
- name : 'kid',
|
123
|
|
- hidden : true
|
124
|
|
- },{
|
125
|
|
- text : '公司名称',
|
126
|
|
- align : 'center',
|
127
|
|
- dataIndex : 'name',
|
128
|
|
- flex : 1
|
129
|
|
- },{
|
130
|
|
- text : '标的物名称',
|
131
|
|
- align : 'center',
|
132
|
|
- dataIndex : 'item_name',
|
133
|
|
- flex : 2
|
134
|
|
- },{
|
135
|
|
- text : '是否开拍',
|
136
|
|
- align : 'center',
|
137
|
|
- dataIndex : 'bid_opening',
|
138
|
|
- flex : 1
|
139
|
|
- },{
|
140
|
|
- text : '开拍时间',
|
141
|
|
- align : 'center',
|
142
|
|
- dataIndex : 'time_opening',
|
143
|
|
- flex : 1,
|
144
|
|
- renderer : function(val){
|
145
|
|
- if(val != ''){
|
146
|
|
- return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
|
147
|
|
- }
|
148
|
|
- }
|
149
|
|
- },{
|
150
|
|
- text : '结束时间',
|
151
|
|
- dataIndex : 'time_end',
|
152
|
|
- flex : 1,
|
153
|
|
- renderer : function(val){
|
154
|
|
- if(val != ''){
|
155
|
|
- return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
|
156
|
|
- }
|
157
|
|
- }
|
158
|
|
- },{
|
159
|
|
- xtype : "actioncolumn",
|
160
|
|
- align : "center",
|
161
|
|
- text : '操作',
|
162
|
|
- flex : 1,
|
163
|
|
- items : [
|
164
|
|
- {
|
165
|
|
- xtype : 'button',
|
166
|
|
- tooltip : '设置明细',
|
167
|
|
- icon : jcapp.getIcon("bullet_key.png"),
|
168
|
|
- handler : function(grid, rowIndex, colIndex) {
|
169
|
|
- var rec = grid.getStore().getAt(rowIndex);
|
170
|
|
- if(rec.get('bid_opening')=='已中止'){
|
171
|
|
- return ;
|
172
|
|
- }
|
173
|
|
- if(rec.get('bid_opening')=='已结束'){
|
174
|
|
- return ;
|
175
|
|
- }
|
176
|
|
- set_item(rec.get('kid'));
|
177
|
|
- }
|
178
|
|
- },{
|
179
|
|
- xtype : ""
|
180
|
|
- },
|
181
|
|
- {
|
182
|
|
- xtype : 'button',
|
183
|
|
- tooltip : '设置价格',
|
184
|
|
- icon : jcapp.getIcon("bullet_key.png"),
|
185
|
|
- handler : function(grid, rowIndex, colIndex) {
|
186
|
|
- var rec = grid.getStore().getAt(rowIndex);
|
187
|
|
- if(rec.get('bid_opening')=='已开拍'){
|
188
|
|
- return ;
|
189
|
|
- }
|
190
|
|
- if(rec.get('bid_opening')=='已中止'){
|
191
|
|
- return ;
|
192
|
|
- }
|
193
|
|
- if(rec.get('bid_opening')=='已结束'){
|
194
|
|
- return ;
|
195
|
|
- }
|
196
|
|
- set_price(rec.get('kid'));
|
197
|
|
- }
|
198
|
|
- },{
|
199
|
|
- xtype : ""
|
200
|
|
- },{
|
201
|
|
- xtype : 'button',
|
202
|
|
- tooltip : '进入',
|
203
|
|
- icon : jcapp.getIcon("bullet_go.png"),
|
204
|
|
- handler : function(grid, rowIndex, colIndex) {
|
205
|
|
- var rec = grid.getStore().getAt(rowIndex);
|
206
|
|
- window.open(getServer() +"/web-pm/pm/auctioSystemPC/index.html?kid="+rec.get('kid'));
|
207
|
|
- }
|
208
|
|
- }
|
209
|
|
- ]
|
210
|
|
- } ],
|
211
|
|
- viewConfig:{
|
212
|
|
- enableTextSelection:true
|
213
|
|
- }
|
214
|
|
- }); //#listGridPanel
|
215
|
|
-
|
216
|
|
- searchFormPanel.render(Ext.getBody());
|
217
|
|
- listGridPanel.render(Ext.getBody());
|
218
|
|
- });
|
219
|
|
-
|
220
|
|
-</script>
|
221
|
|
-<script type="text/javascript" src="edit.js"></script>
|
222
|
|
-<script type="text/javascript" src="setitem.js"></script>
|
|
31
|
+ },
|
|
32
|
+ listeners : {
|
|
33
|
+ 'beforeload' : function(store, op, options) {
|
|
34
|
+ var params = searchFormPanel.getForm().getValues();
|
|
35
|
+ Ext.apply(dataStore.proxy.extraParams, params);
|
|
36
|
+ }
|
|
37
|
+ }
|
|
38
|
+ }); //#dataStore
|
|
39
|
+
|
|
40
|
+ var comboxStore = Ext.create('Ext.data.Store', {
|
|
41
|
+ fields: ['abbr', 'name'],
|
|
42
|
+ data : [
|
|
43
|
+ {"abbr":"已开拍", "name":"已开拍"},
|
|
44
|
+ {"abbr":"未开拍", "name":"未开拍"},
|
|
45
|
+ {"abbr":"已中止", "name":"已中止"},
|
|
46
|
+ {"abbr":"已结束", "name":"已结束"}
|
|
47
|
+ ]
|
|
48
|
+ });
|
|
49
|
+
|
|
50
|
+ var searchFormPanel = Ext.create('Ext.form.Panel', {
|
|
51
|
+ frame : true,
|
|
52
|
+ title : "搜索条件",
|
|
53
|
+ style : {
|
|
54
|
+ marginBottom : '5px'
|
|
55
|
+ },
|
|
56
|
+ bodyStyle : {
|
|
57
|
+ padding : '10px'
|
|
58
|
+ },
|
|
59
|
+ buttonAlign : "center",
|
|
60
|
+ collapsible : true,
|
|
61
|
+ defaultType : "textfield",
|
|
62
|
+ items : [
|
|
63
|
+ {
|
|
64
|
+ xtype : "container",
|
|
65
|
+ layout : "hbox",
|
|
66
|
+ items : [
|
|
67
|
+ {
|
|
68
|
+ xtype : "textfield",
|
|
69
|
+ fieldLabel : "开拍标的物名称",
|
|
70
|
+ name : "srh.item_name",
|
|
71
|
+ labelAlign : 'right'
|
|
72
|
+ },{
|
|
73
|
+ fieldLabel : "分类",
|
|
74
|
+ name : "srh.bid_opening",
|
|
75
|
+ xtype : "combo",
|
|
76
|
+ editable : false,
|
|
77
|
+ store : comboxStore,
|
|
78
|
+ displayField : 'name',
|
|
79
|
+ valueField : 'abbr',
|
|
80
|
+ labelAlign : 'right'
|
|
81
|
+ //value : "未开拍"
|
|
82
|
+ },{
|
|
83
|
+ xtype : "textfield",
|
|
84
|
+ fieldLabel : "公司名称",
|
|
85
|
+ name : "srh.name",
|
|
86
|
+ labelAlign : 'right'
|
|
87
|
+ }
|
|
88
|
+ ]
|
|
89
|
+ }
|
|
90
|
+ ],
|
|
91
|
+ buttons : [ {
|
|
92
|
+ text : "搜索",
|
|
93
|
+ icon : jcapp.getIcon("magnifier.png"),
|
|
94
|
+ handler : function() {
|
|
95
|
+ dataStore.load({
|
|
96
|
+ //params:params()
|
|
97
|
+ });
|
|
98
|
+ dataStore.sync();
|
|
99
|
+ }
|
|
100
|
+ }, {
|
|
101
|
+ text : "重置",
|
|
102
|
+ icon : jcapp.getIcon("arrow_refresh.png"),
|
|
103
|
+ handler : function() {
|
|
104
|
+ this.up('form').getForm().reset();
|
|
105
|
+ dataStore.load({});
|
|
106
|
+ dataStore.sync();
|
|
107
|
+ }
|
|
108
|
+ } ]
|
|
109
|
+ }); //#searchFormPanel
|
|
110
|
+
|
|
111
|
+ var listGridPanel = Ext.create('Ext.grid.Panel', {
|
|
112
|
+ title : '线下拍卖商品管理列表',
|
|
113
|
+ dockedItems : [ {
|
|
114
|
+ xtype : 'pagingtoolbar',
|
|
115
|
+ store : dataStore,
|
|
116
|
+ dock : 'bottom',
|
|
117
|
+ displayInfo : true
|
|
118
|
+ } ],
|
|
119
|
+ store : dataStore,
|
|
120
|
+ columns : [ {
|
|
121
|
+ text : 'kid',
|
|
122
|
+ name : 'kid',
|
|
123
|
+ hidden : true
|
|
124
|
+ },{
|
|
125
|
+ text : '公司名称',
|
|
126
|
+ align : 'center',
|
|
127
|
+ dataIndex : 'name',
|
|
128
|
+ flex : 1
|
|
129
|
+ },{
|
|
130
|
+ text : '标的物名称',
|
|
131
|
+ align : 'center',
|
|
132
|
+ dataIndex : 'item_name',
|
|
133
|
+ flex : 2
|
|
134
|
+ },{
|
|
135
|
+ text : '是否开拍',
|
|
136
|
+ align : 'center',
|
|
137
|
+ dataIndex : 'bid_opening',
|
|
138
|
+ flex : 1
|
|
139
|
+ },{
|
|
140
|
+ text : '开拍时间',
|
|
141
|
+ align : 'center',
|
|
142
|
+ dataIndex : 'time_opening',
|
|
143
|
+ flex : 1,
|
|
144
|
+ renderer : function(val){
|
|
145
|
+ if(val != ''){
|
|
146
|
+ return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
|
|
147
|
+ }
|
|
148
|
+ }
|
|
149
|
+ },{
|
|
150
|
+ text : '结束时间',
|
|
151
|
+ dataIndex : 'time_end',
|
|
152
|
+ flex : 1,
|
|
153
|
+ renderer : function(val){
|
|
154
|
+ if(val != ''){
|
|
155
|
+ return Ext.Date.format(new Date(val), "Y-m-d H:i:s");
|
|
156
|
+ }
|
|
157
|
+ }
|
|
158
|
+ },{
|
|
159
|
+ xtype : "actioncolumn",
|
|
160
|
+ align : "center",
|
|
161
|
+ text : '操作',
|
|
162
|
+ flex : 1,
|
|
163
|
+ items : [
|
|
164
|
+ {
|
|
165
|
+ xtype : 'button',
|
|
166
|
+ tooltip : '设置明细',
|
|
167
|
+ icon : jcapp.getIcon("bullet_key.png"),
|
|
168
|
+ handler : function(grid, rowIndex, colIndex) {
|
|
169
|
+ var rec = grid.getStore().getAt(rowIndex);
|
|
170
|
+ if(rec.get('bid_opening')=='已中止'){
|
|
171
|
+ return ;
|
|
172
|
+ }
|
|
173
|
+ if(rec.get('bid_opening')=='已结束'){
|
|
174
|
+ return ;
|
|
175
|
+ }
|
|
176
|
+ set_item(rec.get('kid'));
|
|
177
|
+ }
|
|
178
|
+ },{
|
|
179
|
+ xtype : ""
|
|
180
|
+ },
|
|
181
|
+ {
|
|
182
|
+ xtype : 'button',
|
|
183
|
+ tooltip : '设置价格',
|
|
184
|
+ icon : jcapp.getIcon("bullet_key.png"),
|
|
185
|
+ handler : function(grid, rowIndex, colIndex) {
|
|
186
|
+ var rec = grid.getStore().getAt(rowIndex);
|
|
187
|
+ if(rec.get('bid_opening')=='已开拍'){
|
|
188
|
+ return ;
|
|
189
|
+ }
|
|
190
|
+ if(rec.get('bid_opening')=='已中止'){
|
|
191
|
+ return ;
|
|
192
|
+ }
|
|
193
|
+ if(rec.get('bid_opening')=='已结束'){
|
|
194
|
+ return ;
|
|
195
|
+ }
|
|
196
|
+ set_price(rec.get('kid'));
|
|
197
|
+ }
|
|
198
|
+ },{
|
|
199
|
+ xtype : ""
|
|
200
|
+ },{
|
|
201
|
+ xtype : 'button',
|
|
202
|
+ tooltip : '进入',
|
|
203
|
+ icon : jcapp.getIcon("bullet_go.png"),
|
|
204
|
+ handler : function(grid, rowIndex, colIndex) {
|
|
205
|
+ var rec = grid.getStore().getAt(rowIndex);
|
|
206
|
+ window.open(getServer() +"/web-pm/pm/auctioSystemPC/index.html?kid="+rec.get('kid'));
|
|
207
|
+ }
|
|
208
|
+ }
|
|
209
|
+ ]
|
|
210
|
+ } ],
|
|
211
|
+ viewConfig:{
|
|
212
|
+ enableTextSelection:true
|
|
213
|
+ }
|
|
214
|
+ }); //#listGridPanel
|
|
215
|
+
|
|
216
|
+ searchFormPanel.render(Ext.getBody());
|
|
217
|
+ listGridPanel.render(Ext.getBody());
|
|
218
|
+ });
|
|
219
|
+
|
|
220
|
+ </script>
|
|
221
|
+ <script type="text/javascript" src="edit.js"></script>
|
|
222
|
+ <script type="text/javascript" src="setitem.js"></script>
|
223
|
223
|
</head>
|
224
|
224
|
<body>
|
225
|
225
|
</body>
|