|
@@ -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>
|