| | |
| | | > |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | | @change="changeTime" |
| | | v-model="time1" |
| | | range-separator="至" |
| | |
| | | > |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | | @change="changeTime" |
| | | v-model="time2" |
| | | range-separator="至" |
| | |
| | | > |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | | @change="changeTime" |
| | | v-model="time3" |
| | | range-separator="至" |
| | |
| | | getlibrarylist, |
| | | getFollowuplist, |
| | | getQtemplatelist, |
| | | edithetask, |
| | | getTaskInfo, |
| | | addhetask, |
| | | gethetaskinfo, |
| | | delhetaskinfo, |
| | |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.form.type = this.$route.query.type; |
| | | this.Addsubtask(); |
| | | this.Getsubtask(); |
| | | this.Getdetails(); |
| | | this.Acquisitiontype(); |
| | | }, |
| | | |
| | |
| | | console.log(filteredArray, "存前变量"); |
| | | this.form.textParam = this.convertFormat2ToFormat1(filteredArray); |
| | | |
| | | |
| | | if (this.form.id) { |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | Editsingletask(this.form).then((response) => { |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.id) { |
| | | this.$modal.msgSuccess("新增成功"); |
| | |
| | | Acknowledgereference() { |
| | | this.quote = true; |
| | | }, |
| | | // 新增子任务 |
| | | Addsubtask() { |
| | | this.topqueryParams.pguid = 2; |
| | | // addsvr_prjtask(this.topqueryParams).then((res) => { |
| | | // console.log(res); |
| | | // }); |
| | | // 获取详情 |
| | | Getdetails() { |
| | | if (this.id) { |
| | | getTaskInfo({ taskid: this.id }).then((res) => { |
| | | const filteredArray = ""; |
| | | if (res.code == 200) { |
| | | this.form = res.data; |
| | | this.checkList = this.form.serviceform.split(","); |
| | | filteredArray = this.convertFormat1ToFormat2(this.form.textParam); |
| | | this.variableList = this.transitionList.concat(filteredArray); |
| | | } else { |
| | | this.$modal.msgError(res.code); |
| | | } |
| | | console.log(res); |
| | | }); |
| | | } |
| | | }, |
| | | // 新增派送患者 |
| | | AddDispatchpatients() { |
| | |
| | | this.dialogVisiblepatient = false; |
| | | }, |
| | | |
| | | // 查询子任务列表 |
| | | Getsubtask() { |
| | | this.topqueryParams.pguid = 2; |
| | | console.log(this.topqueryParams, "aa"); |
| | | messagelistpatient(this.topqueryParams).then((res) => { |
| | | this.userList = res.rows; |
| | | this.total = res.total; |
| | | console.log(this.userList, "ss"); |
| | | }); |
| | | }, |
| | | // 变量--------------- |
| | | variableEdit(index, row) { |
| | | console.log(index, row); |
| | |
| | | } |
| | | } |
| | | this.form.sendTimeslot = combinedData; |
| | | // 展示数据临时存储日期、早、中、晚 |
| | | this.form.sendlimitabegin = this.daytime.join(","); |
| | | this.form.sendlimitaend = this.time1.join(","); |
| | | this.form.sendlimitnbegin = this.time2.join(","); |
| | | this.form.sendlimitnend = this.time3.join(","); |
| | | console.log(combinedData, "combinedData"); |
| | | }, |
| | | }, |