|
|
@@ -23,8 +23,7 @@ |
|
|
|
<span class="sanjiao-right"></span> |
|
|
|
<p>{{townName}}</p> |
|
|
|
</div> |
|
|
|
<div class="select_address"> |
|
|
|
</div> |
|
|
|
<!-- <div class="select_address"></div>--> |
|
|
|
</div> |
|
|
|
<el-dropdown-menu slot="dropdown" style="width: 16vw;text-align: center;"> |
|
|
|
<el-dropdown-item v-for="(item,index) in townList"> |
|
|
@@ -57,7 +56,7 @@ |
|
|
|
<el-table-column prop="endAt" label="截止日期" sortable /> |
|
|
|
<el-table-column label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="mini" icon="el-icon-edit"></el-button> |
|
|
|
<el-button type="primary" size="mini" icon="el-icon-edit" @click="finishTask(scope.row)"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@@ -74,7 +73,7 @@ |
|
|
|
<script> |
|
|
|
import {cityTree} from "@/api/misc/misc_dept"; |
|
|
|
import {ENV} from "@/utils/env"; |
|
|
|
import {accountingTodoTaskList} from "@/api/agentcenter/accounting_task"; |
|
|
|
import {accountingTodoTaskList, finishTask} from "@/api/agentcenter/accounting_task"; |
|
|
|
import {date, date_format} from "@/utils/date"; |
|
|
|
import RightYearMonthSelector from "@/components/framework/RightYearMonthSelector.vue"; |
|
|
|
|
|
|
@@ -102,19 +101,23 @@ export default { |
|
|
|
cityTree({rootId: ENV.UserDeptId()}).then((resp) => { |
|
|
|
this.deptOptions = resp.data; |
|
|
|
if(this.deptOptions.length) |
|
|
|
{ |
|
|
|
this.parms.countyCode = this.deptOptions[0].orgCode; |
|
|
|
this.getTaskList(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
chooseCity(cmd) { |
|
|
|
this.parms.countyCode = cmd; |
|
|
|
this.parms.townCode = null; |
|
|
|
this.getTaskList(); |
|
|
|
}, |
|
|
|
chooseTown(cmd) { |
|
|
|
this.parms.townCode = cmd; |
|
|
|
this.getTaskList(); |
|
|
|
}, |
|
|
|
getTaskList() { |
|
|
|
if(!this.parms.townCode || !this.parms.orderYear || !this.parms.orderMonth) |
|
|
|
if(!this.parms.countyCode || !this.parms.orderYear || !this.parms.orderMonth) |
|
|
|
return; |
|
|
|
accountingTodoTaskList(this.parms).then((resp) => { |
|
|
|
this.list = resp.rows; |
|
|
@@ -127,6 +130,14 @@ export default { |
|
|
|
dateFormatter(row, column, cellValue, index) { |
|
|
|
return cellValue ? date(cellValue, 'yyyy-MM-dd HH:mm:ss', 'yyyy-MM-dd') : ''; |
|
|
|
}, |
|
|
|
finishTask(row) { |
|
|
|
finishTask({ |
|
|
|
taskId: row.id, |
|
|
|
}).then((resp) => { |
|
|
|
this.$message.success('完成成功'); |
|
|
|
this.getTaskList(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
|
|
|
@@ -222,8 +233,8 @@ export default { |
|
|
|
align-items: center; |
|
|
|
& .select_address:nth-child(1){ |
|
|
|
margin-right: 0vw; |
|
|
|
border-top-right-radius: initial; |
|
|
|
border-bottom-right-radius: initial; |
|
|
|
/* border-top-right-radius: initial; |
|
|
|
border-bottom-right-radius: initial;*/ |
|
|
|
} |
|
|
|
& .select_address:nth-child(2){ |
|
|
|
margin-right: 0vw; |
|
|
|