diff --git a/public/components/oa/workDetailTaskItem/workDetailTaskItem.html b/public/components/oa/workDetailTaskItem/workDetailTaskItem.html new file mode 100644 index 000000000..e3ca08338 --- /dev/null +++ b/public/components/oa/workDetailTaskItem/workDetailTaskItem.html @@ -0,0 +1,98 @@ +
+
+
+
+
+
    +
  • +
    {{item.staffName}}
    +
    ({{vc.dateFormat(item.startTime)}} ~ {{vc.dateFormat(item.endTime)}})
    +
  • +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+
+ {{item.content}} +
+
+ {{item.finishTime}} + + 抄送人已办理 + 处理人已办理 + 待处理 + + {{item.remark}} + +
+ 下载 +
+
-
+
+ {{item.deductionMoney}} + + {{item.deductionReason || '-'}} + + {{item.deductionPersonName || '-'}} + + {{item.createTime}} +
+ +
+ +
+
+
+
+
\ No newline at end of file diff --git a/public/components/oa/workDetailTaskItem/workDetailTaskItem.js b/public/components/oa/workDetailTaskItem/workDetailTaskItem.js new file mode 100644 index 000000000..0f1ecee12 --- /dev/null +++ b/public/components/oa/workDetailTaskItem/workDetailTaskItem.js @@ -0,0 +1,80 @@ +/** + 入驻小区 + **/ +(function (vc) { + let DEFAULT_PAGE = 1; + let DEFAULT_ROWS = 10; + vc.extends({ + data: { + workDetailTaskItemInfo: { + tasks: [], + workId: '', + taskId: '', + items: [] + } + }, + _initMethod: function () { + }, + _initEvent: function () { + vc.on('workDetailTaskItem', 'switch', function (_data) { + $that.workDetailTaskItemInfo.workId = _data.workId; + $that._queryWorkDetailTaskData(); + }); + vc.on('workDetailTaskItem', 'paginationPlus', 'page_event', + function (_currentPage) { + $that._loadWorkDetailTaskData(_currentPage, DEFAULT_ROWS); + }); + vc.on('workDetailTaskItem', 'notify', function (_data) { + $that._loadWorkDetailTaskData(DEFAULT_PAGE, DEFAULT_ROWS); + }) + }, + methods: { + _queryWorkDetailTaskData: function () { + let param = { + params: { + workId: $that.workDetailTaskItemInfo.workId, + page: 1, + row: 100 + } + }; + //发送get请求 + vc.http.apiGet('/work.listWorkTask', + param, + function (json) { + let _json = JSON.parse(json); + $that.workDetailTaskItemInfo.tasks = _json.data; + $that.swatchTaskItemTaskId(_json.data[0]); + }, + function () { + console.log('请求失败处理'); + } + ); + }, + _loadWorkDetailTaskItemData: function () { + let param = { + params: { + workId: $that.workDetailTaskItemInfo.workId, + taskId: $that.workDetailTaskItemInfo.taskId, + page: 1, + row: 100 + } + }; + //发送get请求 + vc.http.apiGet('/task.listWorkTaskItem', + param, + function (json) { + let _json = JSON.parse(json); + $that.workDetailTaskItemInfo.items = _json.data; + }, + function () { + console.log('请求失败处理'); + } + ); + }, + swatchTaskItemTaskId: function (_task) { + $that.workDetailTaskItemInfo.taskId = _task.taskId; + $that._loadWorkDetailTaskItemData(); + }, + } + }); +})(window.vc); \ No newline at end of file diff --git a/public/pages/oa/workDetail/workDetail.html b/public/pages/oa/workDetail/workDetail.html index 6c7eb579e..dae483902 100644 --- a/public/pages/oa/workDetail/workDetail.html +++ b/public/pages/oa/workDetail/workDetail.html @@ -131,6 +131,12 @@ +