| | |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-select |
| | | v-model="topqueryParams.topic" |
| | | v-model="tasktopic" |
| | | placeholder="请选择新增类型" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | :disabled="!tasktopic" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:user:add']" |
| | | >新增</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="medium" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['system:user:edit']" |
| | | >修改</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | listsvr_prjtask, |
| | | getsvr_prjtask, |
| | | addsvr_prjtask, |
| | | updatesvr_prjtask, |
| | | delsvr_prjtask, |
| | | Addpatienttask, |
| | | } from "@/api/smartorpor/svr_prjtask"; |
| | | import { listpat_archive } from "@/api/smartorpor/pat_archive"; |
| | | import { listsvr_prjtaskline } from "@/api/smartorpor/svr_prjtaskline"; |
| | | |
| | | |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | userList: null, |
| | | patientuserList: null, |
| | | sonuserList: null, |
| | | tasktopic: null, //新增类型 |
| | | form: { |
| | | name: "", |
| | | region: "", |
| | |
| | | label: "北京烤鸭", |
| | | }, |
| | | ], |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | label: "通知", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "随访", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "问卷", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "宣教", |
| | | }, |
| | | ], |
| | | quote: false, |
| | | }; |
| | | }, |
| | |
| | | created() { |
| | | this.Addsubtask(); |
| | | this.Getsubtask(); |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | }, |
| | | // 子任务一级弹框 |
| | | handleAdd() { |
| | | listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.sonuserList = response.rows; |
| | | this.sontotal = response.total; |
| | | this.loading = false; |
| | | }); |
| | | this.multiple = true; |
| | | // listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => { |
| | | // console.log(response); |
| | | // this.sonuserList = response.rows; |
| | | // this.sontotal = response.total; |
| | | // this.loading = false; |
| | | // }); |
| | | this.dialogVisible = true; |
| | | }, |
| | | // 子任务二级弹框 |
| | | handleAddpatient() { |
| | | listpat_archive(this.patientqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.patientuserList = response.rows; |
| | | this.patienttotal = response.total; |
| | | this.loading = false; |
| | | }); |
| | | console.log(this.multiple); |
| | | // listpat_archive(this.patientqueryParams).then((response) => { |
| | | // console.log(response); |
| | | // this.patientuserList = response.rows; |
| | | // this.patienttotal = response.total; |
| | | // this.loading = false; |
| | | // }); |
| | | this.dialogVisiblepatient = true; |
| | | }, |
| | | handleUpdate() {}, |
| | |
| | | handleExport() {}, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = null; |
| | | this.ids = selection.map((item) => item.patid).join(","); |
| | | // let result = this.ids.join(","); |
| | | this.multiple = !selection.length; |
| | | console.log(this.ids); |
| | | }, |
| | | getList() {}, |
| | |
| | | let objictpint = {}; |
| | | objictpint.patientes = this.ids; |
| | | objictpint.pguid = 2; |
| | | Addpatienttask(objictpint).then((res) => { |
| | | console.log(res); |
| | | }); |
| | | // Addpatienttask(objictpint).then((res) => { |
| | | // console.log(res); |
| | | // }); |
| | | this.dialogVisiblepatient = false; |
| | | }, |
| | | |
| | |
| | | console.log(this.topqueryParams); |
| | | // this.topqueryParams.pid = this.$route.query.id; |
| | | // console.log(this.topqueryParams.pid); |
| | | listsvr_prjtask(this.topqueryParams).then((res) => { |
| | | this.userList = res.rows; |
| | | this.total = res.total; |
| | | console.log(this.userList); |
| | | }); |
| | | // listsvr_prjtask(this.topqueryParams).then((res) => { |
| | | // this.userList = res.rows; |
| | | // this.total = res.total; |
| | | // console.log(this.userList); |
| | | // }); |
| | | }, |
| | | /** 查询患者列表 */ |
| | | }, |