Browse Source

随访工单添加子状态查询条件

newMaster
1747191978@qq.com 1 year ago
parent
commit
9d10e8a311
  1. 6
      acupuncture-前台/src/views/followFile/work.vue
  2. 53
      acupuncture-后台/src/views/indexCom/query.vue

6
acupuncture-前台/src/views/followFile/work.vue

@ -64,7 +64,7 @@
<el-table-column fixed="right" label="操作" align="center" width="180"> <el-table-column fixed="right" label="操作" align="center" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 待随访 --> <!-- 待随访 -->
<div v-if="scope.row.status == 0 || scope.row.status == 3 || scope.row.status == 4"> <div v-if="queryParams.param.status == 0">
<el-button size="mini" type="text" icon="el-icon-s-check" <el-button size="mini" type="text" icon="el-icon-s-check"
@click="handleFollow(scope.row)"> @click="handleFollow(scope.row)">
去随访 去随访
@ -75,12 +75,12 @@
</el-button> </el-button>
</div> </div>
<!-- 随访 --> <!-- 随访 -->
<el-button v-if="scope.row.status == 1" size="mini" type="text" icon="el-icon-s-check" <el-button v-if="queryParams.param.status == 1" size="mini" type="text" icon="el-icon-s-check"
@click="handleDetails(scope.row)"> @click="handleDetails(scope.row)">
查看详情 查看详情
</el-button> </el-button>
<!-- 失访 --> <!-- 失访 -->
<el-button v-if="scope.row.status == 2" size="mini" type="text" icon="el-icon-s-check" <el-button v-if="queryParams.param.status == 2" size="mini" type="text" icon="el-icon-s-check"
@click="handleBeFollow(scope.row)"> @click="handleBeFollow(scope.row)">
标记待随访 标记待随访
</el-button> </el-button>

53
acupuncture-后台/src/views/indexCom/query.vue

@ -17,17 +17,8 @@
<el-radio label="2" border style="margin: 0 20px 0 0"></el-radio> <el-radio label="2" border style="margin: 0 20px 0 0"></el-radio>
<el-radio label="3" border style="margin: 0 20px 0 0"></el-radio> <el-radio label="3" border style="margin: 0 20px 0 0"></el-radio>
</el-radio-group> --> </el-radio-group> -->
<el-date-picker <el-date-picker v-model="pickerValue" type="daterange" align="right" unlink-panels range-separator=""
v-model="pickerValue" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" @change="pickerChage">
type="daterange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd"
@change="pickerChage"
>
</el-date-picker> </el-date-picker>
</div> </div>
</div> </div>
@ -35,9 +26,9 @@
</template> </template>
<script> <script>
// import { deviceType } from "./index.js"; // import { deviceType } from "./index.js";
// this.$store.commit('headerFun', data) // this.$store.commit('headerFun', data)
export default { export default {
name: "Post", name: "Post",
props: ["title", "type"], props: ["title", "type"],
data() { data() {
@ -46,8 +37,7 @@ export default {
radioTime: [], radioTime: [],
pickerValue: null, pickerValue: null,
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [{
{
text: "最近一周", text: "最近一周",
onClick(picker) { onClick(picker) {
const end = new Date(); const end = new Date();
@ -143,37 +133,42 @@ export default {
this.$emit("picker-change", this.pickerValue, this.type, this.timeType); this.$emit("picker-change", this.pickerValue, this.type, this.timeType);
}, },
}, },
}; };
</script> </script>
<style scoped src="@/assets/styles/common.css"></style> <style scoped src="@/assets/styles/common.css"></style>
<style scoped> <style scoped>
. >>> .el-radio--small.is-bordered { .>>>.el-radio--small.is-bordered {
margin-right: 20px !important; margin-right: 20px !important;
margin-left: 0 !important; margin-left: 0 !important;
} }
>>> .el-radio__input {
>>>.el-radio__input {
display: none; display: none;
} }
>>> .el-radio__label {
>>>.el-radio__label {
padding-left: 5px; padding-left: 5px;
} }
.app-container {
.app-container {
padding: 0; padding: 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.title1 {
.title1 {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
} }
.title-bor {
.title-bor {
display: inline-block; display: inline-block;
height: 20px; height: 20px;
width: 6px; width: 6px;
background: #4f8bff; background: #4f8bff;
margin-right: 10px; margin-right: 10px;
border-radius: 8px; border-radius: 8px;
} }
</style> </style>
Loading…
Cancel
Save