mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
8fd5837d85
commit
8b5e064612
@ -85,6 +85,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row" v-if="newOaWorkflowDetailInfo.action">
|
<div class="row" v-if="newOaWorkflowDetailInfo.action">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="ibox">
|
<div class="ibox">
|
||||||
@ -102,7 +103,8 @@
|
|||||||
<option selected disabled value="">请选择</option>
|
<option selected disabled value="">请选择</option>
|
||||||
<option value="1100">办理</option>
|
<option value="1100">办理</option>
|
||||||
<option value="1200" v-if="newOaWorkflowDetailInfo.nextAudit.back">退回</option>
|
<option value="1200" v-if="newOaWorkflowDetailInfo.nextAudit.back">退回</option>
|
||||||
<option value="1400" v-if="newOaWorkflowDetailInfo.nextAudit.backIndex">退回至提交者</option>
|
<option value="1400" v-if="newOaWorkflowDetailInfo.nextAudit.backIndex">退回至提交者
|
||||||
|
</option>
|
||||||
<option value="1300">转单</option>
|
<option value="1300">转单</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -115,8 +117,21 @@
|
|||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row"
|
<!-- 办理时 判断是否指定 委托人 如果指定了 则不显示 -->
|
||||||
v-if="newOaWorkflowDetailInfo.audit.auditCode != '1200' && newOaWorkflowDetailInfo.audit.auditCode != '1400'">
|
<div class="form-group row" v-if="newOaWorkflowDetailInfo.audit.auditCode == '1100' && !newOaWorkflowDetailInfo.nextAudit.assignee">
|
||||||
|
<label class="col-sm-2 col-form-label text-right">下一处理人</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input type="text" class="form-control" placeholder="必填,请选择下一处理人" disabled
|
||||||
|
v-model="newOaWorkflowDetailInfo.audit.staffName">
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-2">
|
||||||
|
<button class="btn btn-white " type="button" v-on:click="chooseStaff()">
|
||||||
|
选择
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 转单时 必须指定 委托人 -->
|
||||||
|
<div class="form-group row" v-if="newOaWorkflowDetailInfo.audit.auditCode == '1300'">
|
||||||
<label class="col-sm-2 col-form-label text-right">下一处理人</label>
|
<label class="col-sm-2 col-form-label text-right">下一处理人</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input type="text" class="form-control" placeholder="必填,请选择下一处理人" disabled
|
<input type="text" class="form-control" placeholder="必填,请选择下一处理人" disabled
|
||||||
@ -138,5 +153,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<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 text-center">
|
||||||
|
<img :src="newOaWorkflowDetailInfo.imgData" alt="" height="300px">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<vc:create path="property/selectStaff"></vc:create>
|
<vc:create path="property/selectStaff"></vc:create>
|
||||||
</div>
|
</div>
|
||||||
@ -15,6 +15,7 @@
|
|||||||
staffName: '',
|
staffName: '',
|
||||||
taskId: ''
|
taskId: ''
|
||||||
},
|
},
|
||||||
|
imgData: '',
|
||||||
nextAudit: {}
|
nextAudit: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -31,6 +32,7 @@
|
|||||||
$that._listOaWorkflowDetails();
|
$that._listOaWorkflowDetails();
|
||||||
$that._loadComments();
|
$that._loadComments();
|
||||||
$that._loadNextAuditPerson();
|
$that._loadNextAuditPerson();
|
||||||
|
$that._openNewOaWorkflowDetailImg();
|
||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function () {
|
||||||
},
|
},
|
||||||
@ -82,8 +84,8 @@
|
|||||||
communityId: vc.getCurrentCommunity().communityId,
|
communityId: vc.getCurrentCommunity().communityId,
|
||||||
id: $that.newOaWorkflowDetailInfo.id,
|
id: $that.newOaWorkflowDetailInfo.id,
|
||||||
flowId: $that.newOaWorkflowDetailInfo.flowId,
|
flowId: $that.newOaWorkflowDetailInfo.flowId,
|
||||||
page:1,
|
page: 1,
|
||||||
row:10
|
row: 10
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//发送get请求
|
//发送get请求
|
||||||
@ -111,6 +113,9 @@
|
|||||||
let _audit = $that.newOaWorkflowDetailInfo.audit;
|
let _audit = $that.newOaWorkflowDetailInfo.audit;
|
||||||
_audit.flowId = $that.newOaWorkflowDetailInfo.flowId;
|
_audit.flowId = $that.newOaWorkflowDetailInfo.flowId;
|
||||||
_audit.id = $that.newOaWorkflowDetailInfo.id;
|
_audit.id = $that.newOaWorkflowDetailInfo.id;
|
||||||
|
if ($that.newOaWorkflowDetailInfo.nextAudit.assignee) {
|
||||||
|
_audit.staffId = $that.newOaWorkflowDetailInfo.nextAudit.assignee;
|
||||||
|
}
|
||||||
if (!_audit.auditCode) {
|
if (!_audit.auditCode) {
|
||||||
vc.toast('请选择状态');
|
vc.toast('请选择状态');
|
||||||
return;
|
return;
|
||||||
@ -142,11 +147,8 @@
|
|||||||
},
|
},
|
||||||
function (errInfo, error) {
|
function (errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
|
|
||||||
vc.toast(errInfo);
|
vc.toast(errInfo);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
_loadNextAuditPerson: function () {
|
_loadNextAuditPerson: function () {
|
||||||
var param = {
|
var param = {
|
||||||
@ -190,7 +192,29 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
return "未知"
|
return "未知"
|
||||||
|
},
|
||||||
|
_openNewOaWorkflowDetailImg: function () { //展示流程图
|
||||||
|
var param = {
|
||||||
|
params: {
|
||||||
|
communityId: vc.getCurrentCommunity().communityId,
|
||||||
|
businessKey: $that.newOaWorkflowDetailInfo.id
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
//发送get请求
|
||||||
|
vc.http.apiGet('workflow.listRunWorkflowImage',
|
||||||
|
param,
|
||||||
|
function (json, res) {
|
||||||
|
var _workflowManageInfo = JSON.parse(json);
|
||||||
|
if (_workflowManageInfo.code != '0') {
|
||||||
|
//vc.toast(_workflowManageInfo.msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$that.newOaWorkflowDetailInfo.imgData = 'data:image/png;base64,' + _workflowManageInfo.data;
|
||||||
|
}, function (errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(window.vc);
|
})(window.vc);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user