mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化完成 抄送已阅
This commit is contained in:
parent
d21fa5e817
commit
03a174c8e0
@ -28,6 +28,9 @@
|
||||
<th data-hide="phone" class="text-center">
|
||||
<vc:i18n name="状态" namespace="workDetailCopy"></vc:i18n>
|
||||
</th>
|
||||
<th data-hide="phone" class="text-center">
|
||||
<vc:i18n name="说明" namespace="workDetailCopy"></vc:i18n>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -44,6 +47,9 @@
|
||||
<td class="text-center">
|
||||
{{copy.stateName}}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{copy.remark}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -42,19 +42,21 @@
|
||||
<div class="col-sm-2">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('开始时间','copyWork')"
|
||||
v-model="copyWorkInfo.conditions.queryStartTime" class=" form-control queryStartTime">
|
||||
v-model="copyWorkInfo.conditions.queryStartTime"
|
||||
class=" form-control queryStartTime">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<div class="form-group">
|
||||
<input type="text" :placeholder="vc.i18n('结束时间','copyWork')"
|
||||
v-model="copyWorkInfo.conditions.queryEndTime" class=" form-control queryEndTime">
|
||||
v-model="copyWorkInfo.conditions.queryEndTime"
|
||||
class=" form-control queryEndTime">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1">
|
||||
<button type="button" class="btn btn-primary btn-sm"
|
||||
v-on:click="_queryCopyWorkMethod()">
|
||||
<vc:i18n name="查询"></vc:i18n>
|
||||
<vc:i18n name="查询"></vc:i18n>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -70,7 +72,7 @@
|
||||
<vc:i18n name="抄送我的工作单" namespace="copyWork"></vc:i18n>
|
||||
</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
@ -129,10 +131,10 @@
|
||||
<td class="text-center">{{work.stateName}}</td>
|
||||
<td class="text-center">{{work.createTime}}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
<div class="btn-group" v-if="work.state != 'C'">
|
||||
<button class="btn-white btn btn-xs"
|
||||
v-on:click="_openCopyWorkModel(work)">
|
||||
<vc:i18n name='办理'></vc:i18n>
|
||||
<vc:i18n name='已阅'></vc:i18n>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
@ -153,4 +155,37 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="auditModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
<h3 class="m-t-none m-b ">
|
||||
<vc:i18n name="已阅说明" namespace="audit"></vc:i18n>
|
||||
</h3>
|
||||
<div class="ibox-content">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">
|
||||
<vc:i18n name="说明" namespace="audit"></vc:i18n>
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea :placeholder="vc.i18n('必填,请填写说明','audit')" class="form-control"
|
||||
v-model="copyWorkInfo.audit.auditMessage">
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<button class="btn btn-primary float-right" type="button" v-on:click="_auditSubmit()">
|
||||
<i class="fa fa-check"></i> 提交
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
|
||||
data-dismiss="modal">
|
||||
<i class="fa fa-times"></i> 取消
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -22,6 +22,10 @@
|
||||
records: 1,
|
||||
moreCondition: false,
|
||||
wtId: '',
|
||||
audit:{
|
||||
copyId:'',
|
||||
auditMessage:'',
|
||||
},
|
||||
conditions: {
|
||||
state:'',
|
||||
typeName: '',
|
||||
@ -74,7 +78,8 @@
|
||||
);
|
||||
},
|
||||
_openCopyWorkModel:function(_work){
|
||||
|
||||
$('#auditModel').modal('show');
|
||||
$that.copyWorkInfo.audit.copyId = _work.copyId;
|
||||
},
|
||||
_queryCopyWorkMethod: function () {
|
||||
$that._listCopyWorks(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
@ -86,6 +91,29 @@
|
||||
_toWorkDetailPage:function(_work){
|
||||
vc.jumpToPage('/#/pages/oa/workDetail?workId='+_work.workId);
|
||||
},
|
||||
_auditSubmit: function () {
|
||||
vc.http.apiPost(
|
||||
'/work.finishWorkCopy',
|
||||
JSON.stringify($that.copyWorkInfo.audit), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function (json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
vc.toast('添加成功');
|
||||
$('#auditModel').modal('hide');
|
||||
$that._listCopyWorks(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
return;
|
||||
} else {
|
||||
vc.toast(_json.msg);
|
||||
}
|
||||
},
|
||||
function (errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user