集采订单

This commit is contained in:
java110 2022-06-21 18:15:20 +08:00
parent 1d5484ddc7
commit ef042ccab7
2 changed files with 217 additions and 0 deletions

View File

@ -0,0 +1,116 @@
<div>
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5><span>
<vc:i18n name="查询条件"></vc:i18n>
</span></h5>
<div class="ibox-tools" style="top:10px;">
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-4">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请填写用户名称','chainInoutOrder')" v-model="chainInoutOrderInfo.conditions.personName" class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="text" :placeholder="vc.i18n('请填写订单号','chainInoutOrder')" v-model="chainInoutOrderInfo.conditions.orderId" class=" form-control">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<select class="form-control-md form-control input-s-sm inline" v-model="chainInoutOrderInfo.conditions.csId">
<option selected value="">{{vc.i18n('请选择供应商','reportFeeSummary')}}</option>
<option v-for="(cs,index) in chainInoutOrderInfo.css" :key="index"
v-bind:value="cs.csId">
{{cs.name}}
</option>
</select>
</div>
</div>
<div class="col-sm-1">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryChainInoutOrderMethod()">
<i class="glyphicon glyphicon-search"></i> <span>
<vc:i18n name="查询"></vc:i18n>
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5><span>
<vc:i18n name="集采订单" namespace="chainInoutOrder"></vc:i18n>
</span></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"><span>
<vc:i18n name='供应商' namespace='chainInoutOrder'></vc:i18n>
</span></th>
<th class="text-center"><span>
<vc:i18n name='订单编号' namespace='chainInoutOrder'></vc:i18n>
</span></th>
<th class="text-center"><span>
<vc:i18n name='状态' namespace='chainInoutOrder'></vc:i18n>
</span></th>
<th class="text-center"><span>
<vc:i18n name='联系人' namespace='chainInoutOrder'></vc:i18n>
</span></th>
<th class="text-center"><span>
<vc:i18n name='联系电话' namespace='chainInoutOrder'></vc:i18n>
</span></th>
<th class="text-center"><span>
<vc:i18n name='操作'></vc:i18n>
</span></th>
</tr>
</thead>
<tbody>
<tr v-for="order in chainInoutOrderInfo.inoutOrders">
<td class="text-center">{{order.csName}}</td>
<td class="text-center">{{order.orderId}}</td>
<td class="text-center">{{order.stateName}}</td>
<td class="text-center">{{order.personName}}</td>
<td class="text-center">{{order.tel}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_toOrderDetail(order)"><span>
<vc:i18n name='详情'></vc:i18n>
</span>
</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,101 @@
/**
入驻小区
**/
(function(vc) {
var DEFAULT_PAGE = 1;
var DEFAULT_ROWS = 10;
vc.extends({
data: {
chainInoutOrderInfo: {
inoutOrders: [],
total: 0,
records: 1,
moreCondition: false,
csId: '',
css: [],
conditions: {
personName: '',
orderId: '',
csId: '',
}
}
},
_initMethod: function() {
vc.component._listChainInoutOrder(DEFAULT_PAGE, DEFAULT_ROWS);
$that._listChainSuppliers();
},
_initEvent: function() {
vc.on('chainInoutOrder', 'listChainSupplier', function(_param) {
vc.component._listChainInoutOrder(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('pagination', 'page_event', function(_currentPage) {
vc.component._listChainInoutOrder(_currentPage, DEFAULT_ROWS);
});
},
methods: {
_listChainInoutOrder: function(_page, _rows) {
vc.component.chainInoutOrderInfo.conditions.page = _page;
vc.component.chainInoutOrderInfo.conditions.row = _rows;
let param = {
params: vc.component.chainInoutOrderInfo.conditions
};
//发送get请求
vc.http.apiGet('/chainInoutOrder.listChainInoutOrder',
param,
function(json, res) {
let _chainInoutOrderInfo = JSON.parse(json);
vc.component.chainInoutOrderInfo.total = _chainInoutOrderInfo.total;
vc.component.chainInoutOrderInfo.records = _chainInoutOrderInfo.records;
vc.component.chainInoutOrderInfo.inoutOrders = _chainInoutOrderInfo.data;
vc.emit('pagination', 'init', {
total: vc.component.chainInoutOrderInfo.records,
currentPage: _page
});
},
function(errInfo, error) {
console.log('请求失败处理');
}
);
},
_queryChainInoutOrderMethod: function() {
vc.component._listChainInoutOrder(DEFAULT_PAGE, DEFAULT_ROWS);
},
_moreCondition: function() {
if (vc.component.chainInoutOrderInfo.moreCondition) {
vc.component.chainInoutOrderInfo.moreCondition = false;
} else {
vc.component.chainInoutOrderInfo.moreCondition = true;
}
},
_toOrderDetail: function(_order) {
},
_listChainSuppliers: function(_page, _rows) {
let param = {
params: {
page: 1,
row: 50
}
};
//发送get请求
vc.http.apiGet('chainSupplier.listChainSupplier',
param,
function(json, res) {
let _chainSupplierManageInfo = JSON.parse(json);
vc.component.chainInoutOrderInfo.css = _chainSupplierManageInfo.data;
},
function(errInfo, error) {
console.log('请求失败处理');
}
);
},
}
});
})(window.vc);