|
@@ -27,6 +27,7 @@
|
|
|
<div class="ibox-content">
|
|
|
<form method="get" class="form-horizontal" id="form-record-edit">
|
|
|
<input type="hidden" name="id" th:value="${DataRecord.id}">
|
|
|
+ <input type="hidden" name="status" th:value="${DataRecord.status}">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label is-required">申请部门名称</label>
|
|
|
<div class="col-sm-4">
|
|
@@ -218,7 +219,7 @@
|
|
|
let dom = $('#luStep');
|
|
|
dom.stepInit(data);
|
|
|
|
|
|
- function ok() {
|
|
|
+ function ok_old() {
|
|
|
let id = $("input[name='id']").val();
|
|
|
let shareType = $("input[name='shareType']:checked").val();
|
|
|
let status = shareType == 'share_type_4' ? '2' : '4';//省共享部门提供部门通过2 其他情况提供部门待审批4
|
|
@@ -233,6 +234,45 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function ok() {
|
|
|
+ let id = $("input[name='id']").val();
|
|
|
+ let shareType = $("input[name='shareType']").val();
|
|
|
+ let status = $("input[name='status']").val();
|
|
|
+ // let status = shareType == 'share_type_4' ? '2' : '4';//省共享部门提供部门通过2 其他情况提供部门待审批4
|
|
|
+ $.modal.confirm("确认审批通过吗?", function() {
|
|
|
+ let url = ctx + "applyData/record/updateStatus";
|
|
|
+ // @Excel(name = "接口来源", readConverterExp = "share_type_1=市共享,share_type_2=市归集,share_type_3=省上报,share_type_4=省共享")
|
|
|
+ // 政数局通过1,提供部门通过2,政数局待审批3,提供部门待审批4,政数局驳回5,提供部门驳回6
|
|
|
+ // share_type_4 = 省共享 新建0,政数局待审批3,政数局通过1
|
|
|
+ // share_type_1 = 市共享 新建0,政数局待审批3,提供部门待审批4,提供部门通过2
|
|
|
+ if(status == 0){
|
|
|
+ $.operate.post(url,{ "id": id, "status": 3 },function(res){
|
|
|
+ $.operate.successTabCallback(res);
|
|
|
+ });
|
|
|
+ } else if(status == 3 && shareType == "share_type_4"){
|
|
|
+ $.operate.post(url,{ "id": id, "status": 1 },function(res){
|
|
|
+ $.operate.successTabCallback(res);
|
|
|
+ });
|
|
|
+ } else if(status == 3 && shareType == "share_type_1"){
|
|
|
+ $.operate.post(url,{ "id": id, "status": 4 },function(res){
|
|
|
+ $.operate.successTabCallback(res);
|
|
|
+ });
|
|
|
+ } else if(status == 4 && shareType == "share_type_1"){
|
|
|
+ $.operate.post(url,{ "id": id, "status": 2 },function(res){
|
|
|
+ $.operate.successTabCallback(res);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ // let url = ctx + "apply/record/updateStatus";
|
|
|
+ // //当选择省共享部门,审批流程节点变为开始-政数局审批-完成。
|
|
|
+ // //状态:0新建,政数局通过1,提供部门通过2,政数局待审批3,提供部门待审批4,政数局驳回5,提供部门驳回6
|
|
|
+ // // $.operate.post(url,{ "id": id, "status": "4" },function(res){
|
|
|
+ // $.operate.post(url, { "id": id, "status": status },function(res){
|
|
|
+ // $.operate.successTabCallback(res);
|
|
|
+ // });
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
function reject() {
|
|
|
let id = $("input[name='id']").val();
|
|
|
$.modal.confirm("确认审批驳回吗?", function() {
|