...
|
...
|
@@ -4,6 +4,8 @@ |
|
|
* @date: 2017/04/13
|
|
|
*/
|
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
|
let tableCols = function() {
|
|
|
return [
|
|
|
{
|
...
|
...
|
@@ -16,10 +18,13 @@ let tableCols = function() { |
|
|
key: 'createTime',
|
|
|
align: 'center',
|
|
|
render: function(h, params) {
|
|
|
let date = new Date(params.row.createTime * 1000);
|
|
|
let time = moment.unix(params.row.createTime);
|
|
|
|
|
|
return (
|
|
|
<div> {date} </div>
|
|
|
<div>
|
|
|
<div> {time.format('YYYY/MM/DD')} </div>
|
|
|
<div> {time.format('HH:mm:ss')} </div>
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -98,7 +103,7 @@ let tableCols = function() { |
|
|
return (
|
|
|
<div class="action-btn-row">
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickEdit(params)}>编辑</i-button>
|
|
|
<i-button type="primary" size="small">查看</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickInfo(params)}>查看</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickCommit(params)}>提交</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickDelete(params)}>删除</i-button>
|
|
|
</div>
|
...
|
...
|
@@ -108,7 +113,7 @@ let tableCols = function() { |
|
|
|
|
|
return (
|
|
|
<div class="action-btn-row">
|
|
|
<i-button type="primary" size="small">查看</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickInfo(params)}>查看</i-button>
|
|
|
</div>
|
|
|
);
|
|
|
} else if (status === 40) {
|
...
|
...
|
@@ -116,7 +121,7 @@ let tableCols = function() { |
|
|
if (params.row.sendNum < params.row.totalNum) {
|
|
|
return (
|
|
|
<div class="action-btn-row">
|
|
|
<i-button type="primary" size="small">查看</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickInfo(params)}>查看</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickDeliver(params)}>发货</i-button>
|
|
|
</div>
|
|
|
);
|
...
|
...
|
@@ -132,7 +137,7 @@ let tableCols = function() { |
|
|
return (
|
|
|
<div class="action-btn-row">
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickEdit(params)}>编辑</i-button>
|
|
|
<i-button type="primary" size="small">查看</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickInfo(params)}>查看</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickCommit(params)}>提交</i-button>
|
|
|
<i-button type="primary" size="small" onClick={() => this.onClickDelete(params)}>删除</i-button>
|
|
|
</div>
|
...
|
...
|
|