加入采购已办

This commit is contained in:
java110 2020-07-15 19:16:34 +08:00
parent fe6283de0b
commit 407fd45461
2 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,53 @@
<div class=" animated fadeInRight ecommerce">
<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>采购已办单</h5>
<div class="ibox-tools" style="top:10px;">
</div>
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">订单号</th>
<th class="text-center">订单类型</th>
<th class="text-center">订单状态</th>
<th class="text-center">创建时间</th>
<th class="text-right">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="auditOrderHistory in auditOrderHistorysInfo.auditOrderHistorys">
<td class="text-center">{{auditOrderHistory.applyOrderId}}</td>
<td class="text-center">{{auditOrderHistory.resOrderTypeName}}</td>
<td class="text-center">{{auditOrderHistory.stateName}}</td>
<td class="text-center">{{auditOrderHistory.createTime}}</td>
<td class="text-right">
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDetailPurchaseApplyModel(auditOrderHistory)">查看
</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
<vc:create path="frame/pagination"></vc:create>
</div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,61 @@
/**
审核订单
**/
(function (vc) {
var DEFAULT_PAGE = 1;
var DEFAULT_ROWS = 10;
vc.extends({
data: {
auditOrderHistorysInfo: {
auditOrderHistorys: [],
total: 0,
records: 1,
moreCondition: false,
userName: '',
conditions: {
AuditOrderHistorysId: '',
userName: '',
auditLink: '',
},
orderInfo:'',
}
},
_initMethod: function () {
vc.component._listAuditOrderHistorys(DEFAULT_PAGE, DEFAULT_ROWS);
},
_initEvent: function () {
},
methods: {
_listAuditOrderHistorys: function (_page, _rows) {
vc.component.auditOrderHistorysInfo.conditions.page = _page;
vc.component.auditOrderHistorysInfo.conditions.row = _rows;
var param = {
params: vc.component.auditOrderHistorysInfo.conditions
};
//发送get请求
vc.http.apiGet('auditUser.listAuditHistoryOrders',
param,
function (json, res) {
var _auditOrderHistorysInfo = JSON.parse(json);
vc.component.auditOrderHistorysInfo.total = _auditOrderHistorysInfo.total;
vc.component.auditOrderHistorysInfo.records = _auditOrderHistorysInfo.records;
vc.component.auditOrderHistorysInfo.auditOrderHistorys = _auditOrderHistorysInfo.resourceOrders;
vc.emit('pagination', 'init', {
total: vc.component.auditOrderHistorysInfo.records,
currentPage: _page
});
}, function (errInfo, error) {
console.log('请求失败处理');
}
);
},
_openDetailPurchaseApplyModel:function(_purchaseApply){
vc.jumpToPage("/admin.html#/pages/common/purchaseApplyDetail?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType);
}
}
});
})(window.vc);