|
@@ -38,10 +38,8 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" @click="handleSearch1()"
|
|
|
- >查询</el-button
|
|
|
- >
|
|
|
- <el-button icon="el-icon-refresh" @click="empty1()">清空</el-button>
|
|
|
+ <el-button type="primary" @click="handleSearch1()">查询</el-button>
|
|
|
+ <el-button @click="empty1()">重置</el-button>
|
|
|
</el-form>
|
|
|
<el-table
|
|
|
show-overflow-tooltip
|
|
@@ -49,28 +47,25 @@
|
|
|
v-loading="Loading"
|
|
|
:data="getOverview"
|
|
|
element-loading-text="加载中..."
|
|
|
- border
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
:row-class-name="tableRowClassName"
|
|
|
>
|
|
|
<template slot="empty">
|
|
|
<img src="@/assets/nopage.png" alt />
|
|
|
<p>暂无数据</p>
|
|
|
</template>
|
|
|
- <el-table-column fixed="left" type="index" label="序号" align="center" />
|
|
|
- <el-table-column label="任务" prop="taskName" align="center" />
|
|
|
- <el-table-column label="任务描述" width="280px" prop="taskText" align="center" />
|
|
|
- <el-table-column label="业务类型" prop="taskType" align="center" />
|
|
|
- <el-table-column label="发起人" prop="initrUserName" align="center" />
|
|
|
- <el-table-column label="发起时间" prop="initrTime" align="center" />
|
|
|
- <el-table-column label="任务状态" prop="dspoStas" align="center" width="90">
|
|
|
+ <el-table-column fixed="left" type="index" label="序号" align="center"/>
|
|
|
+ <el-table-column label="任务" prop="taskName" />
|
|
|
+ <el-table-column label="任务描述" width="280px" prop="taskText" />
|
|
|
+ <el-table-column label="业务类型" prop="taskType" />
|
|
|
+ <el-table-column label="发起人" prop="initrUserName" />
|
|
|
+ <el-table-column label="发起时间" prop="initrTime" />
|
|
|
+ <el-table-column label="任务状态" prop="dspoStas" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
- <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" fixed="right" label="操作" width="100px" border>
|
|
|
+ <el-table-column fixed="right" label="操作" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@click.native="handleInfo(scope.row)"
|
|
@@ -128,39 +123,34 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" @click="handleSearch2()"
|
|
|
- >查询</el-button
|
|
|
- >
|
|
|
- <el-button icon="el-icon-refresh" @click="empty2()">清空</el-button>
|
|
|
+ <el-button type="primary" @click="handleSearch2()">查询</el-button>
|
|
|
+ <el-button @click="empty2()">重置</el-button>
|
|
|
</el-form>
|
|
|
<el-table
|
|
|
show-overflow-tooltip
|
|
|
style="width: 100%"
|
|
|
v-loading="Loading"
|
|
|
:data="getDolist"
|
|
|
- element-loading-text="Loading"
|
|
|
- border
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
+ element-loading-text="加载中"
|
|
|
:row-class-name="tableRowClassName"
|
|
|
>
|
|
|
<template slot="empty">
|
|
|
<img src="@/assets/nopage.png" alt />
|
|
|
<p>暂无数据</p>
|
|
|
</template>
|
|
|
- <el-table-column fixed="left" type="index" label="序号" align="center" />
|
|
|
- <el-table-column label="任务" prop="taskName" align="center" />
|
|
|
- <el-table-column label="任务描述" width="280px" prop="taskText" align="center" />
|
|
|
- <el-table-column label="业务类型" prop="taskType" align="center" />
|
|
|
- <el-table-column label="发起人" prop="initrUserName" align="center" />
|
|
|
- <el-table-column label="发起时间" prop="initrTime" align="center" />
|
|
|
- <el-table-column label="任务状态" prop="dspoStas" align="center" width="90">
|
|
|
+ <el-table-column fixed="left" type="index" label="序号" />
|
|
|
+ <el-table-column label="任务" prop="taskName" />
|
|
|
+ <el-table-column label="任务描述" width="280px" prop="taskText" />
|
|
|
+ <el-table-column label="业务类型" prop="taskType" />
|
|
|
+ <el-table-column label="发起人" prop="initrUserName" />
|
|
|
+ <el-table-column label="发起时间" prop="initrTime" />
|
|
|
+ <el-table-column label="任务状态" prop="dspoStas" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
- <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" fixed="right" label="操作" width="100px" border>
|
|
|
+ <el-table-column fixed="right" label="操作" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@click.native="handleInfo(scope.row)"
|
|
@@ -218,39 +208,36 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" @click="handleSearch3()"
|
|
|
- >查询</el-button
|
|
|
- >
|
|
|
- <el-button icon="el-icon-refresh" @click="empty3()">清空</el-button>
|
|
|
+ <el-button type="primary" @click="handleSearch3()">查询</el-button>
|
|
|
+ <el-button @click="empty3()">重置</el-button>
|
|
|
</el-form>
|
|
|
<el-table
|
|
|
show-overflow-tooltip
|
|
|
style="width: 100%"
|
|
|
v-loading="Loading"
|
|
|
:data="getInitiated"
|
|
|
- element-loading-text="Loading"
|
|
|
- border
|
|
|
+ element-loading-text="加载中"
|
|
|
fit
|
|
|
- highlight-current-row
|
|
|
+ stripe
|
|
|
:row-class-name="tableRowClassName"
|
|
|
>
|
|
|
<template slot="empty">
|
|
|
<img src="@/assets/nopage.png" alt />
|
|
|
<p>暂无数据</p>
|
|
|
</template>
|
|
|
- <el-table-column fixed="left" type="index" label="序号" align="center" />
|
|
|
- <el-table-column label="任务" prop="taskName" align="center" />
|
|
|
- <el-table-column label="任务描述" width="280px" prop="taskText" align="center" />
|
|
|
- <el-table-column label="业务类型" prop="taskType" align="center" />
|
|
|
- <el-table-column label="发起人" prop="initrUserName" align="center" />
|
|
|
- <el-table-column label="发起时间" prop="initrTime" align="center" />
|
|
|
- <el-table-column label="任务状态" prop="dspoStas" align="center" width="90">
|
|
|
+ <el-table-column fixed="left" type="index" label="序号" />
|
|
|
+ <el-table-column label="任务" prop="taskName" />
|
|
|
+ <el-table-column label="任务描述" width="280px" prop="taskText" />
|
|
|
+ <el-table-column label="业务类型" prop="taskType" />
|
|
|
+ <el-table-column label="发起人" prop="initrUserName" />
|
|
|
+ <el-table-column label="发起时间" prop="initrTime" />
|
|
|
+ <el-table-column label="任务状态" prop="dspoStas" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
- <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" fixed="right" label="操作" width="100px" border>
|
|
|
+ <el-table-column fixed="right" label="操作" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@click.native="handleInfo(scope.row)"
|
|
@@ -308,39 +295,36 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" @click="handleSearch4()"
|
|
|
- >查询</el-button
|
|
|
- >
|
|
|
- <el-button icon="el-icon-refresh" @click="empty4()">清空</el-button>
|
|
|
+ <el-button type="primary" @click="handleSearch4()">查询</el-button>
|
|
|
+ <el-button @click="empty4()">重置</el-button>
|
|
|
</el-form>
|
|
|
<el-table
|
|
|
show-overflow-tooltip
|
|
|
style="width: 100%"
|
|
|
v-loading="Loading"
|
|
|
:data="getProcessed"
|
|
|
- element-loading-text="Loading"
|
|
|
- border
|
|
|
+ element-loading-text="加载中"
|
|
|
fit
|
|
|
- highlight-current-row
|
|
|
+ stripe
|
|
|
:row-class-name="tableRowClassName"
|
|
|
>
|
|
|
<template slot="empty">
|
|
|
<img src="@/assets/nopage.png" alt />
|
|
|
<p>暂无数据</p>
|
|
|
</template>
|
|
|
- <el-table-column fixed="left" type="index" label="序号" align="center" />
|
|
|
- <el-table-column label="任务" prop="taskName" align="center" />
|
|
|
- <el-table-column label="任务描述" width="280px" prop="taskText" align="center" />
|
|
|
- <el-table-column label="业务类型" prop="taskType" align="center" />
|
|
|
- <el-table-column label="发起人" prop="initrUserName" align="center" />
|
|
|
- <el-table-column label="发起时间" prop="initrTime" align="center" />
|
|
|
- <el-table-column label="任务状态" prop="dspoStas" align="center" width="90">
|
|
|
+ <el-table-column fixed="left" type="index" label="序号" />
|
|
|
+ <el-table-column label="任务" prop="taskName" />
|
|
|
+ <el-table-column label="任务描述" width="280px" prop="taskText" />
|
|
|
+ <el-table-column label="业务类型" prop="taskType" />
|
|
|
+ <el-table-column label="发起人" prop="initrUserName" />
|
|
|
+ <el-table-column label="发起时间" prop="initrTime" />
|
|
|
+ <el-table-column label="任务状态" prop="dspoStas" width="90">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
- <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 0">待办</span>
|
|
|
+ <span v-if="scope.row.dspoStas == 1">已办</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" fixed="right" label="操作" width="100px" border>
|
|
|
+ <el-table-column fixed="right" label="操作" width="100px">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@click.native="handleInfo(scope.row)"
|
|
@@ -372,7 +356,7 @@ import { tasksDetail } from "@/api/mission/index";
|
|
|
import { getQueryDic } from "@/api/system/dic";
|
|
|
export default {
|
|
|
components: {
|
|
|
- ylPagination,
|
|
|
+ ylPagination
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -382,7 +366,7 @@ export default {
|
|
|
initrUserName: "",
|
|
|
taskType: "",
|
|
|
size: 10,
|
|
|
- current: 1,
|
|
|
+ current: 1
|
|
|
},
|
|
|
activeName: "first",
|
|
|
Loading: false,
|
|
@@ -393,7 +377,7 @@ export default {
|
|
|
getOverview: [],
|
|
|
getDolist: [],
|
|
|
getInitiated: [],
|
|
|
- getProcessed: [],
|
|
|
+ getProcessed: []
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -403,11 +387,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 待办显示灰色
|
|
|
- tableRowClassName({row, rowIndex}) {
|
|
|
- if(row.dspoStas=='0'){
|
|
|
- return 'warning-row';
|
|
|
+ tableRowClassName({ row, rowIndex }) {
|
|
|
+ if (row.dspoStas == "0") {
|
|
|
+ return "warning-row";
|
|
|
}
|
|
|
- return ''
|
|
|
+ return "";
|
|
|
},
|
|
|
// 清空
|
|
|
empty1() {
|
|
@@ -426,21 +410,21 @@ export default {
|
|
|
this.$refs.formSearch1.resetFields();
|
|
|
this.fetchData4();
|
|
|
},
|
|
|
- handleSearch1(){
|
|
|
+ handleSearch1() {
|
|
|
this.formSearch1.current = "1";
|
|
|
- this.fetchData1()
|
|
|
+ this.fetchData1();
|
|
|
},
|
|
|
- handleSearch2(){
|
|
|
+ handleSearch2() {
|
|
|
this.formSearch1.current = "1";
|
|
|
- this.fetchData2()
|
|
|
+ this.fetchData2();
|
|
|
},
|
|
|
- handleSearch3(){
|
|
|
+ handleSearch3() {
|
|
|
this.formSearch1.current = "1";
|
|
|
- this.fetchData3()
|
|
|
+ this.fetchData3();
|
|
|
},
|
|
|
- handleSearch4(){
|
|
|
+ handleSearch4() {
|
|
|
this.formSearch1.current = "1";
|
|
|
- this.fetchData4()
|
|
|
+ this.fetchData4();
|
|
|
},
|
|
|
// 0待办,1已处理,2我发起,3任务概览
|
|
|
fetchData1() {
|
|
@@ -448,8 +432,8 @@ export default {
|
|
|
this.formSearch1.taskStas = "3";
|
|
|
let formSearch2 = JSON.parse(JSON.stringify(this.formSearch1));
|
|
|
let qwe = [];
|
|
|
- let qq1 = Date.parse(formSearch2.initrTime[0]+" 00:00:00") + "";
|
|
|
- let qq2 = Date.parse(formSearch2.initrTime[1]+" 23:59:59") + "";
|
|
|
+ let qq1 = Date.parse(formSearch2.initrTime[0] + " 00:00:00") + "";
|
|
|
+ let qq2 = Date.parse(formSearch2.initrTime[1] + " 23:59:59") + "";
|
|
|
qwe.push(qq1, qq2);
|
|
|
if (formSearch2.initrTime.length != 0) {
|
|
|
formSearch2.initrTime = qwe;
|
|
@@ -481,8 +465,8 @@ export default {
|
|
|
this.formSearch1.taskStas = "0";
|
|
|
let formSearch2 = JSON.parse(JSON.stringify(this.formSearch1));
|
|
|
let qwe = [];
|
|
|
- let qq1 = Date.parse(formSearch2.initrTime[0]+" 00:00:00") + "";
|
|
|
- let qq2 = Date.parse(formSearch2.initrTime[1]+" 23:59:59") + "";
|
|
|
+ let qq1 = Date.parse(formSearch2.initrTime[0] + " 00:00:00") + "";
|
|
|
+ let qq2 = Date.parse(formSearch2.initrTime[1] + " 23:59:59") + "";
|
|
|
qwe.push(qq1, qq2);
|
|
|
if (formSearch2.initrTime.length != 0) {
|
|
|
formSearch2.initrTime = qwe;
|
|
@@ -503,8 +487,8 @@ export default {
|
|
|
this.formSearch1.taskStas = "2";
|
|
|
let formSearch2 = JSON.parse(JSON.stringify(this.formSearch1));
|
|
|
let qwe = [];
|
|
|
- let qq1 = Date.parse(formSearch2.initrTime[0]+" 00:00:00") + "";
|
|
|
- let qq2 = Date.parse(formSearch2.initrTime[1]+" 23:59:59") + "";
|
|
|
+ let qq1 = Date.parse(formSearch2.initrTime[0] + " 00:00:00") + "";
|
|
|
+ let qq2 = Date.parse(formSearch2.initrTime[1] + " 23:59:59") + "";
|
|
|
qwe.push(qq1, qq2);
|
|
|
if (formSearch2.initrTime.length != 0) {
|
|
|
formSearch2.initrTime = qwe;
|
|
@@ -525,8 +509,8 @@ export default {
|
|
|
this.formSearch1.taskStas = "1";
|
|
|
let formSearch2 = JSON.parse(JSON.stringify(this.formSearch1));
|
|
|
let qwe = [];
|
|
|
- let qq1 = Date.parse(formSearch2.initrTime[0]+" 00:00:00") + "";
|
|
|
- let qq2 = Date.parse(formSearch2.initrTime[1]+" 23:59:59") + "";
|
|
|
+ let qq1 = Date.parse(formSearch2.initrTime[0] + " 00:00:00") + "";
|
|
|
+ let qq2 = Date.parse(formSearch2.initrTime[1] + " 23:59:59") + "";
|
|
|
qwe.push(qq1, qq2);
|
|
|
if (formSearch2.initrTime.length != 0) {
|
|
|
formSearch2.initrTime = qwe;
|
|
@@ -562,9 +546,9 @@ export default {
|
|
|
const aa = JSON.parse(row.taskArgs);
|
|
|
this.$router.push({
|
|
|
name: row.routePath,
|
|
|
- query: { itemData: JSON.stringify(row) },
|
|
|
+ query: { itemData: JSON.stringify(row) }
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
// if(row.taskType==='药品采购'){
|
|
|
// this.$router.push({
|
|
|
// name: "drugApprove",
|
|
@@ -586,12 +570,12 @@ export default {
|
|
|
// // query: { itemData: JSON.stringify(row.orgId) }
|
|
|
// });
|
|
|
// }
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
this.fetchData1();
|
|
|
this.getMiData();
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|