mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
变更待办列表
This commit is contained in:
parent
8e3d0debe0
commit
bbc1ff044b
@ -0,0 +1,66 @@
|
||||
<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-center">创建时间</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="auditOrder in contractApplyAuditOrdersInfo.contractApplyAuditOrders">
|
||||
<td class="text-center">{{auditOrder.contractCode}}</td>
|
||||
<td class="text-center">{{auditOrder.contractName}}</td>
|
||||
<td class="text-center">{{auditOrder.resOrderTypeName}}</td>
|
||||
<td class="text-center">{{auditOrder.stateName}}</td>
|
||||
<td class="text-center">{{auditOrder.createTime}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openDetailPurchaseApplyModel(auditOrder)">查看
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<div class="btn-group"
|
||||
v-if="contractApplyAuditOrdersInfo.currentUserId != auditOrder.userId">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openAuditOrderModel(auditOrder)">审批
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group" v-else>
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_finishAuditOrder(auditOrder)">结束
|
||||
</button>
|
||||
</div>
|
||||
</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>
|
||||
<vc:create path="common/audit" callBackListener="myAuditOrders" callBackFunction="notifyAudit"></vc:create>
|
||||
</div>
|
||||
@ -0,0 +1,154 @@
|
||||
/**
|
||||
审核订单
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
contractApplyAuditOrdersInfo: {
|
||||
contractApplyAuditOrders: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
userName: '',
|
||||
currentUserId:vc.getData('/nav/getUserInfo').userId,
|
||||
conditions: {
|
||||
AuditOrdersId: '',
|
||||
userName: '',
|
||||
auditLink: '',
|
||||
},
|
||||
orderInfo:'',
|
||||
procure:false
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._loadStepStaff();
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('contractApplyAuditOrders', 'listAuditOrders', function (_param) {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAuditOrders(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
|
||||
vc.on('contractApplyAuditOrders','notifyAudit',function(_auditInfo){
|
||||
vc.component._auditOrderInfo(_auditInfo);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAuditOrders: function (_page, _rows) {
|
||||
|
||||
vc.component.contractApplyAuditOrdersInfo.conditions.page = _page;
|
||||
vc.component.contractApplyAuditOrdersInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.contractApplyAuditOrdersInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/contract/queryContractHistoryTask',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _contractApplyAuditOrdersInfo = JSON.parse(json);
|
||||
vc.component.contractApplyAuditOrdersInfo.total = _contractApplyAuditOrdersInfo.total;
|
||||
vc.component.contractApplyAuditOrdersInfo.records = _contractApplyAuditOrdersInfo.records;
|
||||
vc.component.contractApplyAuditOrdersInfo.contractApplyAuditOrders = _contractApplyAuditOrdersInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.contractApplyAuditOrdersInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAuditOrderModel: function (_auditOrder) {
|
||||
vc.component.contractApplyAuditOrdersInfo.orderInfo = _auditOrder;
|
||||
vc.emit('audit','openAuditModal',{});
|
||||
},
|
||||
_queryAuditOrdersMethod: function () {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_openDetailPurchaseApplyModel:function(_purchaseApply){
|
||||
vc.jumpToPage("/admin.html#/pages/common/purchaseApplyDetail?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType);
|
||||
},
|
||||
//提交审核信息
|
||||
_auditOrderInfo: function (_auditInfo) {
|
||||
console.log("提交得参数:"+_auditInfo);
|
||||
_auditInfo.taskId = vc.component.contractApplyAuditOrdersInfo.orderInfo.taskId;
|
||||
_auditInfo.applyOrderId = vc.component.contractApplyAuditOrdersInfo.orderInfo.applyOrderId;
|
||||
//发送get请求
|
||||
vc.http.post('contractApplyAuditOrders',
|
||||
'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);
|
||||
}
|
||||
);
|
||||
},
|
||||
_finishAuditOrder:function(_auditOrder){
|
||||
let _auditInfo = {
|
||||
taskId: _auditOrder.taskId,
|
||||
applyOrderId: _auditOrder.applyOrderId,
|
||||
state:'1200',
|
||||
remark:'处理结束'
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.post('contractApplyAuditOrders',
|
||||
'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);
|
||||
}
|
||||
);
|
||||
},
|
||||
_loadStepStaff: function () {
|
||||
|
||||
var param = {
|
||||
params: {
|
||||
page:1,
|
||||
row:1,
|
||||
staffId: $that.contractApplyAuditOrdersInfo.currentUserId,
|
||||
staffRole: '2002'
|
||||
}
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('workflow.listWorkflowStepStaffs',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _json = JSON.parse(json);
|
||||
if(_json.data.length > 0){
|
||||
$that.contractApplyAuditOrdersInfo.procure = true;
|
||||
}
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
_procureEnterOrder:function(_purchaseApply){
|
||||
vc.jumpToPage("/admin.html#/pages/common/resourceEnterManage?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType+"&taskId="+_purchaseApply.taskId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
@ -0,0 +1,66 @@
|
||||
<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-center">创建时间</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="auditOrder in contractApplyAuditOrdersInfo.contractApplyAuditOrders">
|
||||
<td class="text-center">{{auditOrder.contractCode}}</td>
|
||||
<td class="text-center">{{auditOrder.contractName}}</td>
|
||||
<td class="text-center">{{auditOrder.resOrderTypeName}}</td>
|
||||
<td class="text-center">{{auditOrder.stateName}}</td>
|
||||
<td class="text-center">{{auditOrder.createTime}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openDetailPurchaseApplyModel(auditOrder)">查看
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<div class="btn-group"
|
||||
v-if="contractApplyAuditOrdersInfo.currentUserId != auditOrder.userId">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openAuditOrderModel(auditOrder)">审批
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group" v-else>
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_finishAuditOrder(auditOrder)">结束
|
||||
</button>
|
||||
</div>
|
||||
</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>
|
||||
<vc:create path="common/audit" callBackListener="myAuditOrders" callBackFunction="notifyAudit"></vc:create>
|
||||
</div>
|
||||
@ -0,0 +1,154 @@
|
||||
/**
|
||||
审核订单
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
contractApplyAuditOrdersInfo: {
|
||||
contractApplyAuditOrders: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
userName: '',
|
||||
currentUserId:vc.getData('/nav/getUserInfo').userId,
|
||||
conditions: {
|
||||
AuditOrdersId: '',
|
||||
userName: '',
|
||||
auditLink: '',
|
||||
},
|
||||
orderInfo:'',
|
||||
procure:false
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._loadStepStaff();
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('contractApplyAuditOrders', 'listAuditOrders', function (_param) {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAuditOrders(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
|
||||
vc.on('contractApplyAuditOrders','notifyAudit',function(_auditInfo){
|
||||
vc.component._auditOrderInfo(_auditInfo);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAuditOrders: function (_page, _rows) {
|
||||
|
||||
vc.component.contractApplyAuditOrdersInfo.conditions.page = _page;
|
||||
vc.component.contractApplyAuditOrdersInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.contractApplyAuditOrdersInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/contract/queryContractChangeHistoryTask',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _contractApplyAuditOrdersInfo = JSON.parse(json);
|
||||
vc.component.contractApplyAuditOrdersInfo.total = _contractApplyAuditOrdersInfo.total;
|
||||
vc.component.contractApplyAuditOrdersInfo.records = _contractApplyAuditOrdersInfo.records;
|
||||
vc.component.contractApplyAuditOrdersInfo.contractApplyAuditOrders = _contractApplyAuditOrdersInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.contractApplyAuditOrdersInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAuditOrderModel: function (_auditOrder) {
|
||||
vc.component.contractApplyAuditOrdersInfo.orderInfo = _auditOrder;
|
||||
vc.emit('audit','openAuditModal',{});
|
||||
},
|
||||
_queryAuditOrdersMethod: function () {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_openDetailPurchaseApplyModel:function(_purchaseApply){
|
||||
vc.jumpToPage("/admin.html#/pages/common/purchaseApplyDetail?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType);
|
||||
},
|
||||
//提交审核信息
|
||||
_auditOrderInfo: function (_auditInfo) {
|
||||
console.log("提交得参数:"+_auditInfo);
|
||||
_auditInfo.taskId = vc.component.contractApplyAuditOrdersInfo.orderInfo.taskId;
|
||||
_auditInfo.applyOrderId = vc.component.contractApplyAuditOrdersInfo.orderInfo.applyOrderId;
|
||||
//发送get请求
|
||||
vc.http.post('contractApplyAuditOrders',
|
||||
'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);
|
||||
}
|
||||
);
|
||||
},
|
||||
_finishAuditOrder:function(_auditOrder){
|
||||
let _auditInfo = {
|
||||
taskId: _auditOrder.taskId,
|
||||
applyOrderId: _auditOrder.applyOrderId,
|
||||
state:'1200',
|
||||
remark:'处理结束'
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.post('contractApplyAuditOrders',
|
||||
'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);
|
||||
}
|
||||
);
|
||||
},
|
||||
_loadStepStaff: function () {
|
||||
|
||||
var param = {
|
||||
params: {
|
||||
page:1,
|
||||
row:1,
|
||||
staffId: $that.contractApplyAuditOrdersInfo.currentUserId,
|
||||
staffRole: '2002'
|
||||
}
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('workflow.listWorkflowStepStaffs',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _json = JSON.parse(json);
|
||||
if(_json.data.length > 0){
|
||||
$that.contractApplyAuditOrdersInfo.procure = true;
|
||||
}
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
_procureEnterOrder:function(_purchaseApply){
|
||||
vc.jumpToPage("/admin.html#/pages/common/resourceEnterManage?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType+"&taskId="+_purchaseApply.taskId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
@ -0,0 +1,66 @@
|
||||
<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-center">创建时间</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="auditOrder in contractApplyAuditOrdersInfo.contractApplyAuditOrders">
|
||||
<td class="text-center">{{auditOrder.contractCode}}</td>
|
||||
<td class="text-center">{{auditOrder.contractName}}</td>
|
||||
<td class="text-center">{{auditOrder.resOrderTypeName}}</td>
|
||||
<td class="text-center">{{auditOrder.stateName}}</td>
|
||||
<td class="text-center">{{auditOrder.createTime}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openDetailPurchaseApplyModel(auditOrder)">查看
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<div class="btn-group"
|
||||
v-if="contractApplyAuditOrdersInfo.currentUserId != auditOrder.userId">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openAuditOrderModel(auditOrder)">审批
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group" v-else>
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_finishAuditOrder(auditOrder)">结束
|
||||
</button>
|
||||
</div>
|
||||
</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>
|
||||
<vc:create path="common/audit" callBackListener="myAuditOrders" callBackFunction="notifyAudit"></vc:create>
|
||||
</div>
|
||||
@ -0,0 +1,154 @@
|
||||
/**
|
||||
审核订单
|
||||
**/
|
||||
(function (vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data: {
|
||||
contractApplyAuditOrdersInfo: {
|
||||
contractApplyAuditOrders: [],
|
||||
total: 0,
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
userName: '',
|
||||
currentUserId:vc.getData('/nav/getUserInfo').userId,
|
||||
conditions: {
|
||||
AuditOrdersId: '',
|
||||
userName: '',
|
||||
auditLink: '',
|
||||
},
|
||||
orderInfo:'',
|
||||
procure:false
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._loadStepStaff();
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
vc.on('contractApplyAuditOrders', 'listAuditOrders', function (_param) {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function (_currentPage) {
|
||||
vc.component._listAuditOrders(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
|
||||
vc.on('contractApplyAuditOrders','notifyAudit',function(_auditInfo){
|
||||
vc.component._auditOrderInfo(_auditInfo);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_listAuditOrders: function (_page, _rows) {
|
||||
|
||||
vc.component.contractApplyAuditOrdersInfo.conditions.page = _page;
|
||||
vc.component.contractApplyAuditOrdersInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params: vc.component.contractApplyAuditOrdersInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/contract/queryContractChangeTask',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _contractApplyAuditOrdersInfo = JSON.parse(json);
|
||||
vc.component.contractApplyAuditOrdersInfo.total = _contractApplyAuditOrdersInfo.total;
|
||||
vc.component.contractApplyAuditOrdersInfo.records = _contractApplyAuditOrdersInfo.records;
|
||||
vc.component.contractApplyAuditOrdersInfo.contractApplyAuditOrders = _contractApplyAuditOrdersInfo.data;
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.contractApplyAuditOrdersInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_openAuditOrderModel: function (_auditOrder) {
|
||||
vc.component.contractApplyAuditOrdersInfo.orderInfo = _auditOrder;
|
||||
vc.emit('audit','openAuditModal',{});
|
||||
},
|
||||
_queryAuditOrdersMethod: function () {
|
||||
vc.component._listAuditOrders(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_openDetailPurchaseApplyModel:function(_purchaseApply){
|
||||
vc.jumpToPage("/admin.html#/pages/common/purchaseApplyDetail?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType);
|
||||
},
|
||||
//提交审核信息
|
||||
_auditOrderInfo: function (_auditInfo) {
|
||||
console.log("提交得参数:"+_auditInfo);
|
||||
_auditInfo.taskId = vc.component.contractApplyAuditOrdersInfo.orderInfo.taskId;
|
||||
_auditInfo.applyOrderId = vc.component.contractApplyAuditOrdersInfo.orderInfo.applyOrderId;
|
||||
//发送get请求
|
||||
vc.http.post('contractApplyAuditOrders',
|
||||
'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);
|
||||
}
|
||||
);
|
||||
},
|
||||
_finishAuditOrder:function(_auditOrder){
|
||||
let _auditInfo = {
|
||||
taskId: _auditOrder.taskId,
|
||||
applyOrderId: _auditOrder.applyOrderId,
|
||||
state:'1200',
|
||||
remark:'处理结束'
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.post('contractApplyAuditOrders',
|
||||
'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);
|
||||
}
|
||||
);
|
||||
},
|
||||
_loadStepStaff: function () {
|
||||
|
||||
var param = {
|
||||
params: {
|
||||
page:1,
|
||||
row:1,
|
||||
staffId: $that.contractApplyAuditOrdersInfo.currentUserId,
|
||||
staffRole: '2002'
|
||||
}
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('workflow.listWorkflowStepStaffs',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _json = JSON.parse(json);
|
||||
if(_json.data.length > 0){
|
||||
$that.contractApplyAuditOrdersInfo.procure = true;
|
||||
}
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
_procureEnterOrder:function(_purchaseApply){
|
||||
vc.jumpToPage("/admin.html#/pages/common/resourceEnterManage?applyOrderId="+_purchaseApply.applyOrderId+"&resOrderType="+_purchaseApply.resOrderType+"&taskId="+_purchaseApply.taskId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
120
public/pages/admin/contractDetailView/contractDetailView.html
Normal file
120
public/pages/admin/contractDetailView/contractDetailView.html
Normal file
@ -0,0 +1,120 @@
|
||||
<div>
|
||||
<div class="row" v-for="(contractChangeDetailInfo,index) in contractChangeDetailsInfo.contractDetails">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox ">
|
||||
<div class="ibox-title">
|
||||
<h5>合同明细{{contractChangeDetailInfo.contractName}}</h5>
|
||||
<div class="ibox-tools" style="top:10px;" v-if="index == 0">
|
||||
<button type="button" class="btn btn-white btn-sm" style="margin-right:10px;"
|
||||
v-on:click="_goBack()">
|
||||
返回</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">合同名称:</label>
|
||||
<label class="">{{contractChangeDetailInfo.contractName}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">合同编号:</label>
|
||||
<label class="">{{contractChangeDetailInfo.contractCode}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">合同类型:</label>
|
||||
<label class="">{{contractChangeDetailInfo.contractType}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">甲方:</label>
|
||||
<label class="">{{contractChangeDetailInfo.partyA}}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">甲方联系人:</label>
|
||||
<label class="">{{contractChangeDetailInfo.aContacts}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">甲方联系电话:</label>
|
||||
<label class="">{{contractChangeDetailInfo.aLink}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">乙方:</label>
|
||||
<label class="">{{contractChangeDetailInfo.partyB}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">乙方联系人:</label>
|
||||
<label class="">{{contractChangeDetailInfo.bContacts}}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">乙方联系电话:</label>
|
||||
<label class="">{{contractChangeDetailInfo.bLink}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">经办人:</label>
|
||||
<label class="">{{contractChangeDetailInfo.operator}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">联系电话:</label>
|
||||
<label class="">{{contractChangeDetailInfo.operatorLink}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">合同金额:</label>
|
||||
<label class="">{{contractChangeDetailInfo.amount}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">开始时间:</label>
|
||||
<label class="">{{contractChangeDetailInfo.startTime}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">结束时间:</label>
|
||||
<label class="">{{contractChangeDetailInfo.endTime}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">签订时间:</label>
|
||||
<label class="">{{contractChangeDetailInfo.signingTime}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
54
public/pages/admin/contractDetailView/contractDetailView.js
Normal file
54
public/pages/admin/contractDetailView/contractDetailView.js
Normal file
@ -0,0 +1,54 @@
|
||||
/**
|
||||
合同信息 组件
|
||||
**/
|
||||
(function (vc) {
|
||||
|
||||
vc.extends({
|
||||
|
||||
data: {
|
||||
contractChangeDetailsInfo: {
|
||||
contractDetails: []
|
||||
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that._listContractDetails()
|
||||
},
|
||||
_initEvent: function () {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
_listContractDetails: function () {
|
||||
var param = {
|
||||
params: {
|
||||
page:1,
|
||||
row:10,
|
||||
contractId:vc.getParam('contractId')
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.apiGet('/contract/queryContractChangePlanDetail',
|
||||
param,
|
||||
function (json, res) {
|
||||
var _contractChangeManageInfo = JSON.parse(json);
|
||||
|
||||
console.log('666',_contractChangeManageInfo);
|
||||
_contractChangeManageInfo.data.sort(function (_child, _newChild) {
|
||||
return _newChild.operate.charCodeAt(0) - _child.operate.charCodeAt(0)
|
||||
});
|
||||
vc.component.contractChangeDetailsInfo.contractDetails = _contractChangeManageInfo.data;
|
||||
|
||||
|
||||
}, function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_goBack: function () {
|
||||
vc.goBack();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user