¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from "@/utils/request"; |
| | | |
| | | // åºç¡æ°æ® |
| | | export function getTopstatistics(data) { |
| | | return request({ |
| | | url: "/smartor/extemplate/list", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | |
| | | // æ¿åä¸é¨æ°æ®å¤§å¾ |
| | | export function getCentraldata(Id) { |
| | | return request({ |
| | | url: "/smartor/extemplate/remove/" + Id, |
| | | method: "get", |
| | | }); |
| | | } |
| | | // æ¿åä¸é¨æ°æ®å¤§å¾ |
| | | export function getMissiondata(Id) { |
| | | return request({ |
| | | url: "/smartor/extemplate/remove/" + Id, |
| | | method: "get", |
| | | }); |
| | | } |
| | |
| | | }); |
| | | } |
| | | // å é¤ä»»å¡å¹¶å é¤å
³èçæ£è
æå¡ |
| | | export function delTaskInfo(data) { |
| | | export function delTaskInfo(taskid) { |
| | | return request({ |
| | | url: "/smartor/servicetask/remove/"+id, |
| | | url: "/smartor/servicetask/remove/"+taskid, |
| | | method: "get", |
| | | }); |
| | | } |
| | |
| | | import request from "@/utils/request"; |
| | | |
| | | // å¤é¾è·åé访æé®å·è¯¦æ
|
| | | // å¤é¾è·åé访 |
| | | export function getExternalfollowup(data) { |
| | | return request({ |
| | | url: "/smartor/servicetask/getScriptInfoByCondition", |
| | |
| | | data: data |
| | | }); |
| | | } |
| | | // æäº¤é®å·ãé访 |
| | | // æäº¤ãé访 |
| | | export function SetsaveQuestionAnswer(data) { |
| | | return request({ |
| | | // url: "/smartor/ivrtaskcalldetail/saveQuestionAnswer", |
| | |
| | | data: data |
| | | }); |
| | | } |
| | | |
| | | |
| | | // ç¼åé®å· |
| | | export function Cachequestionnaire(data) { |
| | | return request({ |
| | | url: "/smartor/subtaskAnswer/saveQuestionCache", |
| | | method: "post", |
| | | data: data |
| | | }); |
| | | } |
| | | // æ¿ç¼åé®å· |
| | | export function getCachequestionnaire(data) { |
| | | return request({ |
| | | url: "/smartor/subtaskAnswer/getQuestionCache", |
| | | method: "post", |
| | | data: data |
| | | }); |
| | | } |
| | | // æäº¤é®å· |
| | | export function Submitaquestionnaire(data) { |
| | | return request({ |
| | | url: "/smartor/subtaskAnswer/saveQuestionAnswer", |
| | | method: "post", |
| | | data: data |
| | | }); |
| | | } |
| | |
| | | // æ¥è¯¢é¨é¨è¯¦ç» |
| | | export function getDept(deptId) { |
| | | return request({ |
| | | url: '/system/dept/getInfo' + deptId, |
| | | url: '/system/dept/getInfo/' + deptId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { |
| | | type: 3, |
| | | type: 2, |
| | | serviceType: 2, |
| | | }, |
| | | }); |
| | |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="é访æ¹å¼ï¼éè°æ´æ ¼å¼ï¼" |
| | | label="é访æ¹å¼" |
| | | align="center" |
| | | key="serviceform" |
| | | prop="serviceform" |
| | |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { |
| | | type: 3, |
| | | type: 2, |
| | | serviceType: 3, |
| | | }, |
| | | }); |
| | |
| | | }, |
| | | watch: {}, |
| | | created() { |
| | | this.tasktopic = this.$route.query.tasktopic |
| | | ? this.$route.query.tasktopic |
| | | : this.tasktopic; |
| | | this.getList(); |
| | | this.getConfigKey("sys.user.initPassword").then((response) => { |
| | | this.initPassword = response.msg; |
| | |
| | | getList() { |
| | | this.loading = true; |
| | | let type = this.$route.query.type; |
| | | this.tasktopic = this.$route.query.tasktopic |
| | | ? this.$route.query.tasktopic |
| | | : this.tasktopic; |
| | | |
| | | this.topqueryParams.serviceType = Number(this.tasktopic); |
| | | this.topqueryParams.type = Number(this.type); |
| | | if (this.tasktopic == 1 || this.tasktopic == 7 || this.tasktopic == 6) { |
| | | if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 1 || |
| | | this.tasktopic == 7 || |
| | | this.tasktopic == 6 |
| | | ) { |
| | | this.topqueryParams.type = 2; |
| | | this.TaskOperation.taskType = 2; |
| | | } else if (this.tasktopic == 4 || this.tasktopic == 8) { |
| | | this.topqueryParams.type = 3; |
| | | this.TaskOperation.taskType = 3; |
| | | } else if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 5 |
| | | ) { |
| | | } else if (this.tasktopic == 5) { |
| | | this.topqueryParams.type = 1; |
| | | this.TaskOperation.taskType = 1; |
| | | } |
| | |
| | | } |
| | | }, |
| | | // å é¤ä»»å¡ |
| | | deletefn() {}, |
| | | deletefn(row) { |
| | | delTaskInfo(row.taskid).then((res) => { |
| | | console.log(2); |
| | | if (res.code == 200) { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | } |
| | | }); |
| | | }, |
| | | // ä»»å¡åèµ· |
| | | sponsor(row) { |
| | | console.log(row, "ä»»å¡ä¿¡æ¯"); |
| | |
| | | this.$modal |
| | | .confirm("æ¯å¦ä¾ç
§å½åä»»å¡å建æ°ä»»å¡ï¼") |
| | | .then(() => { |
| | | if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 4 || |
| | | this.tasktopic == 5 |
| | | ) { |
| | | if (this.tasktopic == 5) { |
| | | this.$router.push({ |
| | | path: "/followvisit/particty", |
| | | query: { type: 1, id: row.taskid, nhh: 1 }, |
| | | }); |
| | | } else if (this.tasktopic == 6) { |
| | | } else if ( |
| | | this.tasktopic == 2 || |
| | | this.tasktopic == 3 || |
| | | this.tasktopic == 6 |
| | | ) { |
| | | this.$router.push({ |
| | | path: "/followvisit/QuestionnaireTask", |
| | | query: { type: 2, id: row.taskid, nhh: 1 }, |
| | | }); |
| | | } else if (this.tasktopic == 1) { |
| | | } else if (this.tasktopic == 8 || this.tasktopic == 4) { |
| | | this.$router.push({ |
| | | path: "/followvisit/Missioncreation", |
| | | query: { type: 3, id: row.taskid, nhh: 1 }, |
| | |
| | | <el-col :span="4" class="aside"> |
| | | <div class="grid-content bg-purple" style="margin-top: -180px"> |
| | | <div class="title"> |
| | | å¥åº·å®£æ |
| | | <span>{{ endatd }} ~ {{ statd }}</span> |
| | | æ¶æ¯å表 |
| | | </div> |
| | | <div style="max-height: 690px; width: 100%; overflow: auto"> |
| | | <el-table style="width: 100%" :data="SkuTop"> |
| | |
| | | ></el-table-column> |
| | | <el-table-column prop="count" class-name="count"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.count }}次 |
| | | {{ scope.row.count }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">é®é¢ç±»å</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+æ·»å </div> |
| | | <div class="top-tj" @click="Newcategory">+æ·»å </div> |
| | | </div> |
| | | <div class="center-ss"> |
| | | <el-input |
| | |
| | | userList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | tag: "", |
| | | title: "", |
| | | title: "æ°å¢ç±»å«", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥æèå´ |
| | |
| | | indexid: null, |
| | | inputValue: "", |
| | | radio: "主åç±»", |
| | | zufon: true, |
| | | zifon: true, |
| | | inputVisible: false, |
| | | illnessVisible: false, //ææ ç¾ç
å¼¹æ¡ |
| | | deptOptions: [], |
| | |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主åç±»"; |
| | | this.title = "ä¿®æ¹ä¸»åç±»"; |
| | | this.zufon = false; |
| | | } else { |
| | | this.radio = "ååç±»"; |
| | | this.title = "ä¿®æ¹ååç±»"; |
| | | this.zifon = false; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | Newcategory(){ |
| | | this.classifyform= {}, //ç±»å«è¡¨å |
| | | this.radio = "主åç±»"; |
| | | this.dialogFormVisible = true |
| | | this.zifon = true; |
| | | this.zufon = true; |
| | | }, |
| | | |
| | | // çéèç¹ |
| | | filterNode(value, data) { |
| | |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">é®å·ç±»å</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+æ·»å </div> |
| | | <div class="top-tj" @click="Newcategory">+æ·»å </div> |
| | | </div> |
| | | <div class="center-ss"> |
| | | <el-input |
| | |
| | | roleOptions: [], |
| | | // 表ååæ° |
| | | form: {}, |
| | | |
| | | title: "æ°å¢ç±»å«", |
| | | sidecolumnform: {}, //æ·»å ç±»å«è¡¨å |
| | | goQRCodeVisible: false, //äºç»´ç å¼¹æ¡ |
| | | sidecolumnval: "", //ç±»å«æç´¢ |
| | |
| | | indexid: null, |
| | | inputValue: "", |
| | | radio: "主åç±»", |
| | | zufon: true, |
| | | zifon: true, |
| | | inputVisible: false, |
| | | illnessVisible: false, //ææ ç¾ç
å¼¹æ¡ |
| | | deptOptions: [], |
| | |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主åç±»"; |
| | | this.title = "ä¿®æ¹ä¸»åç±»"; |
| | | this.zufon = false; |
| | | } else { |
| | | this.radio = "ååç±»"; |
| | | this.title = "ä¿®æ¹ååç±»"; |
| | | this.zifon = false; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | Newcategory(){ |
| | | this.classifyform= {}, //ç±»å«è¡¨å |
| | | this.radio = "主åç±»"; |
| | | this.dialogFormVisible = true |
| | | this.zifon = true; |
| | | this.zufon = true; |
| | | }, |
| | | |
| | | // çéèç¹ |
| | | filterNode(value, data) { |
| | |
| | | v-for="(item, index) in questionList" |
| | | :key="item.aaa" |
| | | > |
| | | <div |
| | | class="scriptTopic-dev" |
| | | :key="item.sort" |
| | | v-if="item.scriptType == 1" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}ã<span>{{ item.scriptContent }}</span> |
| | | {{ item.sort }}ã[åé]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | | <el-radio-group v-model="item.asrtext"> |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="item.remark"> |
| | | <el-radio |
| | | v-for="(items, index) in item.ivrLibaScriptTargetoptionList" |
| | | :key="items.id" |
| | | :label="items.targetvalue" |
| | | >{{ items.targetvalue }}</el-radio |
| | | v-for="(items, index) in item.svyLibTemplateTargetoptions" |
| | | :key="index" |
| | | :label="index" |
| | | >{{ items.optioncontent }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-else> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请è¾å
¥å
容" |
| | | v-model.sync="item.asrtext" |
| | | :rows="2" |
| | | /> |
| | | </div> |
| | | <!-- å¤é --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | :key="item.sort" |
| | | v-if="item.scriptType == 2" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.sort }}ã[å¤é]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-checkbox-group v-model="qremark"> |
| | | <el-checkbox |
| | | v-for="(items, index) in item.svyLibTemplateTargetoptions" |
| | | :key="index" |
| | | :label="index" |
| | | > |
| | | {{ items.optioncontent }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | </div> |
| | | <!-- 填空 --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | :key="item.sort" |
| | | v-if="item.scriptType == 4" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.sort }}ã[é®ç]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-input placeholder="请è¾å
¥çæ¡" v-model="radioas" clearable> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | methods: { |
| | | // è·åæ°æ® |
| | | getQuestionnaire() { |
| | | let taskid = this.$route.query.param1; |
| | | let patid = this.$route.query.param2; |
| | | this.taskid = this.$route.query.param1; |
| | | this.patid = this.$route.query.param2; |
| | | let taskname = this.$route.query.param3; |
| | | let routertf = this.$route.query.param5; |
| | | |
| | | console.log(taskid, "taskid"); |
| | | console.log(patid, "patid"); |
| | | console.log(taskname, "taskname"); |
| | | console.log(routertf, "routertf"); |
| | | // console.log(taskid, "taskid"); |
| | | // console.log(patid, "patid"); |
| | | // console.log(taskname, "taskname"); |
| | | // console.log(routertf, "routertf"); |
| | | // let taskid = |
| | | // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // let patid = |
| | | // "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA=="; |
| | | this.taskid = this.decrypt(taskid); |
| | | this.patid = this.decrypt(patid); |
| | | // è§£å¯ |
| | | // this.taskid = this.decrypt(taskid); |
| | | // this.patid = this.decrypt(patid); |
| | | |
| | | // this.taskid = taskid; |
| | | // this.patid = patid; |
| | | console.log(this.taskid, "this.taskid"); |
| | | console.log(this.patid, "this.patid"); |
| | | |
| | | |
| | | this.$modal.msgSuccess("ç¨æ·id为" + this.patid); |
| | | this.$modal.msgSuccess("ä»»å¡id为" + this.taskid); |
| | | let taskids = this.encrypt(this.taskid); |
| | | let patids = this.encrypt(this.patid); |
| | | getExternalfollowup({ param1: taskids, param2: patids }).then((res) => { |
| | | // let taskids = this.encrypt(this.taskid); |
| | | // let patids = this.encrypt(this.patid); |
| | | getExternalfollowup({ param1: this.taskid, param2: this.patid }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.questionList = res.rows; |
| | | } |
| | |
| | | // æäº¤è¡¨åé»è¾ |
| | | console.log(this.questionList); |
| | | let form = { |
| | | param1: this.encrypt(this.taskid), |
| | | param2: this.encrypt(this.patid), |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | ivrTaskcalldetailList: [], |
| | | }; |
| | | this.questionList.forEach((item) => { |
| | |
| | | <template> |
| | | <div class="questionnaire"> |
| | | <div class="CONTENT"> |
| | | <div class="title">äºæé®å·è°æ¥è¡¨</div> |
| | | <div class="title">{{ taskname ? taskname : "é®å·" }}</div> |
| | | <div class="preview-left"> |
| | | <!-- åé --> |
| | | <div |
| | |
| | | v-for="(item, index) in questionList" |
| | | :key="item.aaa" |
| | | > |
| | | <div class="scriptTopic-dev" :key="index" v-if="item.scriptType == 1"> |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}ã<span>{{ item.scriptContent }}</span> |
| | | {{ index + 1 }}ã[åé]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | | <el-radio-group v-model="item.asrtext"> |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="item.scriptResult"> |
| | | <el-radio |
| | | v-for="(items, index) in item.ivrLibaScriptTargetoptionList" |
| | | :key="items.id" |
| | | :label="items.targetvalue" |
| | | >{{ items.targetvalue }}</el-radio |
| | | v-for="(items, index) in item.svyLibTemplateTargetoptions" |
| | | :key="index" |
| | | :label="index" |
| | | >{{ items.optioncontent }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-else> |
| | | </div> |
| | | <!-- å¤é --> |
| | | <div class="scriptTopic-dev" :key="index" v-if="item.scriptType == 2"> |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}ã[å¤é]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-checkbox-group v-model="item.scriptResult"> |
| | | <el-checkbox |
| | | @change="$forceUpdate()" |
| | | v-for="(items, indexs) in item.svyLibTemplateTargetoptions" |
| | | :key="indexs" |
| | | :label="items.optioncontent" |
| | | > |
| | | {{ items.optioncontent }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | </div> |
| | | <!-- 填空 --> |
| | | <div class="scriptTopic-dev" :key="index" v-if="item.scriptType == 4"> |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}ã[é®ç]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请è¾å
¥å
容" |
| | | v-model.sync="item.asrtext" |
| | | :rows="2" |
| | | /> |
| | | placeholder="请è¾å
¥çæ¡" |
| | | v-model="item.scriptResult" |
| | | clearable |
| | | > |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-form :model="formData" label-width="80px"> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">æäº¤é®å·</el-button> |
| | | <el-button type="primary" @click="cache(true)">æäº¤é®å·</el-button> |
| | | <el-button type="primary" @click="cache">ç¼åé®å·</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | <script> |
| | | import { |
| | | getExternalfollowup, |
| | | SetsaveQuestionAnswer, |
| | | getCachequestionnaire, |
| | | Cachequestionnaire, |
| | | Submitaquestionnaire, |
| | | } from "@/api/AiCentre/index"; |
| | | import JSEncrypt from "jsencrypt"; |
| | | export default { |
| | |
| | | methods: { |
| | | // è·åæ°æ® |
| | | getQuestionnaire() { |
| | | let taskid = this.$route.query.param1; |
| | | let patid = this.$route.query.param2; |
| | | this.taskid = decodeURIComponent(this.$route.query.param1); |
| | | this.patid = decodeURIComponent(this.$route.query.param2); |
| | | this.taskname = this.$route.query.param3; |
| | | // let taskid = |
| | | // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // let patid = |
| | | // "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA=="; |
| | | this.taskid = this.decrypt(taskid); |
| | | this.patid = this.decrypt(patid); |
| | | // this.taskid = this.decrypt(taskid); |
| | | // this.patid = this.decrypt(patid); |
| | | |
| | | // this.$modal.msgSuccess("ç¨æ·id为" + this.patid); |
| | | // this.$modal.msgSuccess("ä»»å¡id为" + this.taskid); |
| | | let taskids = this.encrypt(this.taskid); |
| | | let patids = this.encrypt(this.patid); |
| | | getExternalfollowup({ param1: taskids, param2: patids }).then((res) => { |
| | | // let taskids = this.encrypt(this.taskid); |
| | | // let patids = this.encrypt(this.patid); |
| | | console.log(this.$route.query.param1); |
| | | console.log(this.$route.query.param2); |
| | | // å
åç¼å |
| | | getCachequestionnaire({ param1: this.taskid, param2: this.patid }).then( |
| | | (res) => { |
| | | if (res.code == 200) { |
| | | this.questionList = res.rows; |
| | | this.questionList = res.data; |
| | | if (this.questionList[0]) { |
| | | this.questionList.forEach((item) => { |
| | | if (item.scriptResult) { |
| | | item.scriptResult = JSON.parse(item.scriptResult); |
| | | } |
| | | }); |
| | | return; |
| | | } else { |
| | | this.getExternalfollowup(); |
| | | } |
| | | } else { |
| | | this.getExternalfollowup(); |
| | | } |
| | | } |
| | | ); |
| | | }, |
| | | getExternalfollowup() { |
| | | getExternalfollowup({ param1: this.taskid, param2: this.patid }).then( |
| | | (res) => { |
| | | if (res.code == 200) { |
| | | this.questionList = res.rows; |
| | | // å¤çé¢ç®æ¶éç»ææ ¼å¼ |
| | | this.questionList.forEach((item) => { |
| | | item.nextScriptno = Number(item.nextScriptno); |
| | | if (item.scriptType == 2) { |
| | | item.scriptResult = []; |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | ); |
| | | }, |
| | | |
| | | // å å¯å½æ° |
| | | encrypt(txt) { |
| | | const encryptor = new JSEncrypt(); |
| | |
| | | // æäº¤ |
| | | submitForm() { |
| | | // æäº¤è¡¨åé»è¾ |
| | | console.log(this.questionList); |
| | | let form = { |
| | | param1: this.encrypt(this.taskid), |
| | | param2: this.encrypt(this.patid), |
| | | svyTasksingledetailList: [], |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | serviceSubtaskDetailList: [], |
| | | }; |
| | | this.questionList.forEach((item) => { |
| | | let optionarr = []; |
| | | item.ivrLibaScriptTargetoptionList.forEach((option) => { |
| | | optionarr.push(option.targetvalue); |
| | | const arr = structuredClone(this.questionList); |
| | | arr.forEach((item) => { |
| | | item.asrtext = JSON.stringify(item.scriptResult); |
| | | }); |
| | | let ivrTaskcalldetail = { |
| | | asrtext: item.asrtext, |
| | | valueType: item.valueType, |
| | | scriptType: item.scriptType, |
| | | questiontext: item.questiontext, |
| | | questionvoice: item.questionvoice, |
| | | scriptContent: item.scriptContent, |
| | | targetoptions: optionarr.join(","), |
| | | }; |
| | | form.svyTasksingledetailList.push(ivrTaskcalldetail); |
| | | }); |
| | | console.log(form, "form"); |
| | | |
| | | SetsaveQuestionAnswer(form).then((res) => { |
| | | form.serviceSubtaskDetailList = arr; |
| | | Submitaquestionnaire(form).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("æäº¤æå"); |
| | | } |
| | | }); |
| | | // å¯ä»¥å°æ°æ®æäº¤å°å端æè
è¿è¡å
¶ä»å¤ç |
| | | }, |
| | | // ç¼å |
| | | cache(subm) { |
| | | let form = { |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | svyLibTemplateScriptVOS: [], |
| | | }; |
| | | const arr = structuredClone(this.questionList); |
| | | arr.forEach((item) => { |
| | | item.scriptResult = JSON.stringify(item.scriptResult); |
| | | }); |
| | | form.svyLibTemplateScriptVOS = arr; |
| | | Cachequestionnaire(form).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("æäº¤æå"); |
| | | if (subm) { |
| | | this.submitForm(); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | methods: { |
| | | // è·åæ°æ® |
| | | getQuestionnaire() { |
| | | // let taskid = this.$route.query.param1; |
| | | // let patid = this.$route.query.param2; |
| | | this.taskid = this.$route.query.param1; |
| | | this.patid = this.$route.query.param2; |
| | | // // let taskid = |
| | | // // "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; |
| | | // // let patid = |
| | |
| | | // // this.$modal.msgSuccess("ä»»å¡id为" + this.taskid); |
| | | // let taskids = this.encrypt(this.taskid); |
| | | // let patids = this.encrypt(this.patid); |
| | | // getExternalfollowup({ param1: taskids, param2: patids }).then((res) => { |
| | | // if (res.code == 200) { |
| | | // this.questionList = res.rows; |
| | | // } |
| | | // }); |
| | | getExternalfollowup({ param1: this.taskid, param2: this.patid }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.questionList = res.rows; |
| | | } |
| | | }); |
| | | // 临æ¶è·åæ°æ® |
| | | axios |
| | | .get("http://192.168.1.10:8095/profile/upload/show/æµè¯/æµè¯.html") |
| | |
| | | richText: "<p>Hello, <strong>world</strong>!</p>", |
| | | // æ£è
表å |
| | | tableLabelhz: [ |
| | | { label: "åºå·", width: "", prop: "patid" }, |
| | | // { label: "åºå·", width: "", prop: "patid" }, |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | |
| | | } |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: 4 }, |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | } |
| | | }); |
| | |
| | | questionList: [], |
| | | // æ£è
表å |
| | | tableLabelhz: [ |
| | | { label: "åºå·", width: "", prop: "patid" }, |
| | | // { label: "åºå·", width: "", prop: "patid" }, |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | |
| | | } |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: 6 }, |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | } |
| | | }); |
| | |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "åºå·", width: "", prop: "patid" }, |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | | { label: "åºå·", width: "", prop: "patid" }, |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | |
| | | value: "1", |
| | | label: "人工", |
| | | }, |
| | | |
| | | { |
| | | value: "3", |
| | | label: "çµè¯", |
| | |
| | | // ä¿å |
| | | submitForm(formName) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | |
| | | // this.formatFn(1); |
| | | if (!this.form.patTaskRelevances[0]) { |
| | | this.$modal.msgError("è¯·éæ©ç
人"); |
| | |
| | | } else { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | } |
| | | this.$router.go(-1); |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "åºå·", width: "", prop: "patid" }, |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | | { label: "åºå·", width: "", prop: "patid" }, |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">模çç±»å</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+æ·»å </div> |
| | | <div class="top-tj" @click="Newcategory">+æ·»å </div> |
| | | </div> |
| | | <div class="center-ss"> |
| | | <el-input |
| | |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | Newcategory() { |
| | | this.classifyform = {}; //ç±»å«è¡¨å |
| | | this.radio = "主åç±»"; |
| | | this.dialogFormVisible = true; |
| | | this.zifon = true; |
| | | this.zufon = true; |
| | | }, |
| | | // é¢è§ |
| | | preview(row) { |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">é®é¢ç±»å</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+æ·»å </div> |
| | | <div class="top-tj" @click="Newcategory">+æ·»å </div> |
| | | </div> |
| | | <div class="center-ss"> |
| | | <el-input |
| | |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="é®é¢å
容" |
| | | align="center" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | width="200" |
| | | /><el-table-column |
| | | label="å
³èææ " |
| | | align="center" |
| | | key="targetname" |
| | |
| | | </div> |
| | | </div> |
| | | <!-- æ·»å ç±»å«å¼¹æ¡ --> |
| | | <el-dialog title="æ°å¢ç±»å«" width="30%" :visible.sync="dialogFormVisible"> |
| | | <el-dialog :title="title" width="30%" :visible.sync="dialogFormVisible"> |
| | | <div style="text-align: center; margin-bottom: 20px"> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio-button label="主åç±»"></el-radio-button> |
| | | <el-radio-button label="ååç±»"></el-radio-button> |
| | | <el-radio-button label="主åç±»" v-show="zifon"></el-radio-button> |
| | | <el-radio-button label="ååç±»" v-show="zufon"></el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <el-divider></el-divider> |
| | |
| | | }, |
| | | ], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | title: "æ°å¢ç±»å«", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¥æèå´ |
| | |
| | | indexopen: false, //å¼¹æ¡å±ç¤ºå¦ |
| | | propss: { multiple: true }, |
| | | radio: "主åç±»", |
| | | |
| | | zufon: true, |
| | | zifon: true, |
| | | usable: [], |
| | | |
| | | mode: [], |
| | |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主åç±»"; |
| | | this.title = "ä¿®æ¹ä¸»åç±»"; |
| | | this.zufon = false; |
| | | } else { |
| | | this.radio = "ååç±»"; |
| | | this.title = "ä¿®æ¹ååç±»"; |
| | | this.zifon = false; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | Newcategory(){ |
| | | this.classifyform= {}, //ç±»å«è¡¨å |
| | | this.radio = "主åç±»"; |
| | | this.dialogFormVisible = true |
| | | this.zifon = true; |
| | | this.zufon = true; |
| | | }, |
| | | |
| | | // çéèç¹ |
| | | filterNode(value, data) { |
| | |
| | | |
| | | const name = process.env.VUE_APP_TITLE || 'æ£è
æºæ
§æå¡ç³»ç»' // ç½é¡µæ é¢ |
| | | |
| | | const port = process.env.port || process.env.npm_config_port || 8095 // ç«¯å£ |
| | | const port = process.env.port || process.env.npm_config_port || 8096 // ç«¯å£ |
| | | |
| | | // vue.config.js é
置说æ |
| | | //宿¹vue.config.js åèææ¡£ https://cli.vuejs.org/zh/config/#css-loaderoptions |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://192.168.1.10:8095`, |
| | | target: `http://192.168.2.8:8095`, |
| | | // target:`http://localhost:8095`, |
| | | // target: `http://www.hxsoft.com:8080`, |
| | | // target: `http://35z1t16164.qicp.vip`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |