Commit 2a93a96b authored by 姬鋆屾's avatar 姬鋆屾

推添加排号编码

parent f6cb85a8
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<div> <div>
<a-button <a-button
:loading="btnLoading" :loading="btnLoading"
type="primary" class="addclass" type="primary"
class="addclass"
@click="handleExportTable" @click="handleExportTable"
> >
<span>{{ tableSelectedRows.length ? "导出" : "导出全部" }}</span> <span>{{ tableSelectedRows.length ? "导出" : "导出全部" }}</span>
...@@ -28,7 +29,11 @@ ...@@ -28,7 +29,11 @@
v-model="searchForm.time" v-model="searchForm.time"
> >
</a-range-picker> </a-range-picker>
<a-select v-model="searchForm.sectionid" showSearch :option-filter-prop="'label'"> <a-select
v-model="searchForm.sectionid"
showSearch
:option-filter-prop="'label'"
>
<a-select-option value="" label="全部"> 全部部门 </a-select-option> <a-select-option value="" label="全部"> 全部部门 </a-select-option>
<a-select-option <a-select-option
v-for="(v, key) in depList" v-for="(v, key) in depList"
...@@ -43,14 +48,15 @@ ...@@ -43,14 +48,15 @@
<a-select-option value=""> 全部 </a-select-option> <a-select-option value=""> 全部 </a-select-option>
<a-select-option <a-select-option
v-for="(v, key) in statusItem" v-for="(v, key) in statusItem"
:key="key" :key="key"
:value="Number(key)" :value="Number(key)"
> >
{{ v }} {{ v }}
</a-select-option> </a-select-option>
</a-select> </a-select>
<a-button type="primary" class="addclass" @click="handleSearch">搜索</a-button> <a-button type="primary" class="addclass" @click="handleSearch"
>搜索</a-button
>
<a-button @click="handleReset">重置</a-button> <a-button @click="handleReset">重置</a-button>
</a-space> </a-space>
</span> </span>
...@@ -91,28 +97,28 @@ ...@@ -91,28 +97,28 @@
v-if="text.status == 0" v-if="text.status == 0"
color="#108ee9" color="#108ee9"
> >
{{statusItem[text.status]}} {{ statusItem[text.status] }}
</a-tag> </a-tag>
<a-tag <a-tag
@click="openDetails(text.id)" @click="openDetails(text.id)"
v-else-if="text.status == 1" v-else-if="text.status == 1"
color="#2db7f5" color="#2db7f5"
> >
{{statusItem[text.status]}} {{ statusItem[text.status] }}
</a-tag> </a-tag>
<a-tag <a-tag
@click="openDetails(text.id)" @click="openDetails(text.id)"
v-else-if="text.status == 2" v-else-if="text.status == 2"
color="#f50" color="#f50"
> >
{{statusItem[text.status]}} {{ statusItem[text.status] }}
</a-tag> </a-tag>
<a-tag <a-tag
@click="openDetails(text.id)" @click="openDetails(text.id)"
v-else-if="text.status == 3" v-else-if="text.status == 3"
color="red" color="red"
> >
{{statusItem[text.status]}} {{ statusItem[text.status] }}
</a-tag> </a-tag>
</template> </template>
</a-table> </a-table>
...@@ -121,7 +127,7 @@ ...@@ -121,7 +127,7 @@
</template> </template>
<script> <script>
import { getOrderList,getDeptList } from "@/api/dataAdmin"; import { getOrderList, getDeptList } from "@/api/dataAdmin";
import { export2Excel } from "@/utils/js/exportExcel"; import { export2Excel } from "@/utils/js/exportExcel";
let tHeader = [ let tHeader = [
// 导出的表头名信息 // 导出的表头名信息
...@@ -162,7 +168,7 @@ const style = { ...@@ -162,7 +168,7 @@ const style = {
2: "办理中", 2: "办理中",
3: "办理中", 3: "办理中",
4: "办理完成", 4: "办理完成",
} };
export default { export default {
name: "PortalAdminVueMakeRecordReport", name: "PortalAdminVueMakeRecordReport",
data() { data() {
...@@ -206,17 +212,31 @@ export default { ...@@ -206,17 +212,31 @@ export default {
title: "办理地点", title: "办理地点",
align: "center", align: "center",
dataIndex: "address", dataIndex: "address",
customRender: (text) => {
return text.address || "--";
},
}, },
{ {
title: "预约编号", title: "预约编号",
align: "center", align: "center",
dataIndex: "number", dataIndex: "number",
customRender: (text) => {
return text.number || "--";
},
},
{
title: "排号编码",
align: "center",
dataIndex: "flownum",
customRender: (text) => {
return text.flownum || "--";
},
}, },
{ {
title: "预约时间", title: "预约时间",
align: "center", align: "center",
dataIndex: "starttime", dataIndex: "starttime",
customRender: (text,row) => { customRender: (text, row) => {
return `${row.starttime}-${row.endtime}` || "--"; return `${row.starttime}-${row.endtime}` || "--";
}, },
}, },
...@@ -271,7 +291,7 @@ export default { ...@@ -271,7 +291,7 @@ export default {
searchForm: { searchForm: {
status: "", status: "",
title: "", title: "",
sectionid:"", sectionid: "",
time: [ time: [
this.$moment(new Date()).format("YYYY-MM-DD"), this.$moment(new Date()).format("YYYY-MM-DD"),
this.$moment(new Date()).format("YYYY-MM-DD"), this.$moment(new Date()).format("YYYY-MM-DD"),
...@@ -284,22 +304,22 @@ export default { ...@@ -284,22 +304,22 @@ export default {
tableSelectedKeys: [], tableSelectedKeys: [],
tableSelectedRows: [], tableSelectedRows: [],
tableSourceData: [], tableSourceData: [],
depList:[]//部门列表 depList: [], //部门列表
}; };
}, },
created() { created() {
this.getOrderList(); this.getOrderList();
this.getDeptList() this.getDeptList();
}, },
methods: { methods: {
// 部门列表 // 部门列表
getDeptList(){ getDeptList() {
getDeptList({page:1,size:-1}).then(res=>{ getDeptList({ page: 1, size: -1 }).then((res) => {
const {data} = res.data const { data } = res.data;
if(res.code == 1){ if (res.code == 1) {
this.depList = data this.depList = data;
} }
}) });
}, },
// 获取报表数据 // 获取报表数据
async getOrderList(search = {}) { async getOrderList(search = {}) {
...@@ -320,7 +340,7 @@ export default { ...@@ -320,7 +340,7 @@ export default {
return { ...v, ...v.people }; return { ...v, ...v.people };
}); });
this.total = total; this.total = total;
return this.tableSourceData; return this.tableSourceData;
} }
}, },
...@@ -388,7 +408,10 @@ export default { ...@@ -388,7 +408,10 @@ export default {
for (let item of data) { for (let item of data) {
Object.keys(this.statusItem).forEach((key) => { Object.keys(this.statusItem).forEach((key) => {
if (item.status == key) { if (item.status == key) {
item.status = item.status==1?this.style[item.style]:this.statusItem[key]; item.status =
item.status == 1
? this.style[item.style]
: this.statusItem[key];
} }
}); });
} }
...@@ -400,7 +423,10 @@ export default { ...@@ -400,7 +423,10 @@ export default {
for (let item of data) { for (let item of data) {
Object.keys(this.statusItem).forEach((key) => { Object.keys(this.statusItem).forEach((key) => {
if (item.status == key) { if (item.status == key) {
item.status = item.status==1?this.style[item.style]:this.statusItem[key]; item.status =
item.status == 1
? this.style[item.style]
: this.statusItem[key];
} }
}); });
} }
...@@ -425,5 +451,3 @@ export default { ...@@ -425,5 +451,3 @@ export default {
cursor: pointer; cursor: pointer;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment