mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
提交采购审核页面
This commit is contained in:
parent
28e56093dd
commit
117d88d336
@ -13,17 +13,17 @@
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入审核ID"
|
||||
v-model="myAuditOrdersInfo.conditions.AuditOrdersId" class=" form-control">
|
||||
v-model="auditOrdersInfo .conditions.AuditOrdersId" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<input type="text" placeholder="请输入审核人员"
|
||||
v-model="myAuditOrdersInfo.conditions.userName" class=" form-control">
|
||||
v-model="auditOrdersInfo .conditions.userName" class=" form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<select class="custom-select" v-model="myAuditOrdersInfo.conditions.auditLink">
|
||||
<select class="custom-select" v-model="auditOrdersInfo .conditions.auditLink">
|
||||
<option selected value="">请选择审核环节</option>
|
||||
<option value="809001">部门主管</option>
|
||||
<option value="809002">财务主管</option>
|
||||
@ -67,7 +67,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="auditOrder in myAuditOrdersInfo.auditOrders">
|
||||
<tr v-for="auditOrder in auditOrdersInfo .auditOrders">
|
||||
<td class="text-center">{{auditOrder.applyOrderId}}</td>
|
||||
<td class="text-center">{{auditOrder.resOrderTypeName}}</td>
|
||||
<td class="text-center">{{auditOrder.stateName}}</td>
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
/**
|
||||
入驻小区
|
||||
审核订单
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
myAuditOrdersInfo: {
|
||||
auditOrdersInfo: {
|
||||
auditOrders: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
@ -16,8 +16,8 @@
|
||||
AuditOrdersId: '',
|
||||
userName: '',
|
||||
auditLink: '',
|
||||
|
||||
}
|
||||
},
|
||||
orderInfo:''
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
@ -33,16 +33,16 @@
|
||||
});
|
||||
|
||||
vc.on('myAuditOrders','notifyAudit',function(_auditInfo){
|
||||
vc.component._auditCommunityState(_auditInfo);
|
||||
vc.component._auditOrderInfo(_auditInfo);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAuditOrders: function (_page, _rows) {
|
||||
|
||||
vc.component.myAuditOrdersInfo.conditions.page = _page;
|
||||
vc.component.myAuditOrdersInfo.conditions.row = _rows;
|
||||
vc.component.auditOrdersInfo.conditions.page = _page;
|
||||
vc.component.auditOrdersInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.myAuditOrdersInfo.conditions
|
||||
params: vc.component.auditOrdersInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
@ -50,14 +50,12 @@
|
||||
'list',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _myAuditOrdersInfo = JSON.parse(json);
|
||||
console.log("收到我的审核信息:"+_myAuditOrdersInfo);
|
||||
console.log("参数:"+_myAuditOrdersInfo.resourceOrders);
|
||||
vc.component.myAuditOrdersInfo.total = _myAuditOrdersInfo.total;
|
||||
vc.component.myAuditOrdersInfo.records = _myAuditOrdersInfo.records;
|
||||
vc.component.myAuditOrdersInfo.auditOrders = _myAuditOrdersInfo.resourceOrders;
|
||||
var _auditOrdersInfo = JSON.parse(json);
|
||||
vc.component.auditOrdersInfo.total = _auditOrdersInfo.total;
|
||||
vc.component.auditOrdersInfo.records = _auditOrdersInfo.records;
|
||||
vc.component.auditOrdersInfo.auditOrders = _auditOrdersInfo.resourceOrders;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.myAuditOrdersInfo.records,
|
||||
total: vc.component.auditOrdersInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
@ -65,19 +63,41 @@
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAuditOrderModel: function () {
|
||||
_openAuditOrderModel: function (_auditOrder) {
|
||||
vc.component.auditOrdersInfo.orderInfo = _auditOrder;
|
||||
vc.emit('audit','openAuditModal',{});
|
||||
},
|
||||
_queryAuditOrdersMethod: function () {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.AuditOrdersManageInfo.moreCondition) {
|
||||
vc.component.AuditOrdersManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.AuditOrdersManageInfo.moreCondition = true;
|
||||
}
|
||||
}
|
||||
// _moreCondition: function () {
|
||||
// if (vc.component.AuditOrdersManageInfo.moreCondition) {
|
||||
// vc.component.AuditOrdersManageInfo.moreCondition = false;
|
||||
// } else {
|
||||
// vc.component.AuditOrdersManageInfo.moreCondition = true;
|
||||
// }
|
||||
// },
|
||||
//提交审核信息
|
||||
_auditOrderInfo: function (_auditInfo) {
|
||||
console.log("提交得参数:"+_auditInfo);
|
||||
_auditInfo.taskId = vc.component.auditOrdersInfo.orderInfo.taskId;
|
||||
_auditInfo.applyOrderId = vc.component.auditOrdersInfo.orderInfo.applyOrderId;
|
||||
//发送get请求
|
||||
vc.http.post('myAuditOrders',
|
||||
'audit',
|
||||
JSON.stringify(_auditInfo),
|
||||
{
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
vc.toast("处理成功");
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
vc.toast("处理失败:" + errInfo);
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user