| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // é®å·ä»»å¡æ¨¡æ¿æ°å¢ä¿®æ¹ |
| | | export function Taskparticty(data) { |
| | | return request({ |
| | | url: "/smartor/ivrTaskTemplate/saveOrUpdateTempScript", |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | // å é¤ä»»å¡æ¨¡æ¿ |
| | | export function deleteTaskparticty(svyid) { |
| | | return request({ |
| | | url: "/smartor/ivrTaskTemplate/remove/" + svyid, |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | export function getTaskparticty(svyid) { |
| | | return request({ |
| | | url: "/smartor/ivrTaskTemplate/getInfo/" + svyid, |
| | | method: "get", |
| | | }); |
| | | } |
| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // å é¤é®å·æ¨¡æ¿åç±» |
| | | // å é¤ä»»å¡æ¨¡æ¿ |
| | | export function deleteTaskQuestioncomit(svyid) { |
| | | return request({ |
| | | url: "/smartor/svytemplateTask/remove/" + svyid, |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="è¯·éæ©ç§å®¤" |
| | | placeholder="è¯·éæ©ç
åº" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | this.appraiselist = store.getters.appraiselist; |
| | | this.belongWards = store.getters.belongWards; |
| | | this.belongDepts = store.getters.belongDepts; |
| | | console.log(this.belongWards, "belongWards"); |
| | | console.log(this.belongDepts, "belongDepts"); |
| | | |
| | | |
| | | // this.test(); |
| | | }, |
| | |
| | | }, |
| | | // ç§å®¤/é¢åºå¤ç |
| | | Departmenttreatment() { |
| | | console.log(this.tempDetpRelevanceslist, "tempDetpRelevanceslist"); |
| | | console.log(this.deptlist, "deptlist"); |
| | | console.log(this.hosplist, "deptlist"); |
| | | |
| | | this.tempDetpRelevanceslist.forEach((item) => { |
| | | console.log(item); |
| | | let result = this.deptlist.some((obj) => obj.deptCode == item); |
| | |
| | | }); |
| | | this.tempbelongWards.forEach((item) => { |
| | | let result = this.hosplist.some((obj) => obj.deptCode == item); |
| | | |
| | | console.log(this.result, "resulthhh"); |
| | | |
| | | if (!result) { |
| | | this.tempbelongWardsform.push({ |
| | | deptType: 2, |
| | |
| | | }); |
| | | } |
| | | }); |
| | | console.log(this.tempbelongWardsform, "tempbelongWardsform"); |
| | | console.log( |
| | | this.tempDetpRelevanceslistform, |
| | | "tempDetpRelevanceslistform" |
| | | ); |
| | | |
| | | |
| | | // return |
| | | setTimeout(() => { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="Questionnairemanagement"> |
| | | <!-- ä¸ä¾§æ --> |
| | | <div class="sidecolumn"> |
| | | <div> |
| | | <el-steps simple :active="Editprogress"> |
| | | <el-step |
| | | icon="el-icon-edit" |
| | | title="åºç¡ä¿¡æ¯" |
| | | description="éæ©æ¨¡æ¿ãå½¢å¼çåºç¡ä¿¡æ¯" |
| | | ></el-step> |
| | | <el-step |
| | | icon="el-icon-user" |
| | | title="ä»»å¡ä¸»ä½" |
| | | description="卿¬é¨éæ©æå¡æ£è
" |
| | | ></el-step> |
| | | </el-steps> |
| | | </div> |
| | | </div> |
| | | <!-- ä¸ä¾§æ°æ® --> |
| | | <div class="leftvlue" style="margin: 0 20px"> |
| | | <!-- åºæ¬ä¿¡æ¯ --> |
| | | <div v-if="Editprogress == 1"> |
| | | <el-alert title="éæ©æ¨¡æ¿ãå½¢å¼çåºç¡ä¿¡æ¯" type="success" effect="dark"> |
| | | </el-alert> |
| | | <div class="leftvlue-jbxx"> |
| | | <!-- åºç¡ä¿¡æ¯ --> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>åºç¡ä¿¡æ¯</div> |
| | | </div> |
| | | <div class="jic-value"> |
| | | <el-form ref="form" :model="form" label-width="105px"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="ä»»å¡åç§°"> |
| | | <el-input |
| | | style="width: 220px" |
| | | v-model="form.taskName" |
| | | placeholder="请è¾å
¥ä»»å¡åç§°" |
| | | /> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="8" |
| | | ><el-form-item label="模æ¿åç§°"> |
| | | <el-input |
| | | style="width: 220px" |
| | | :disabled="true" |
| | | v-model="form.templatename" |
| | | placeholder="ç¹å»å³ä¾§éæ©" |
| | | /> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="4"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | | @click="drawermb = true" |
| | | circle |
| | | ></el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-form-item label="ä»»å¡æè¿°"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="form.taskDesc" |
| | | placeholder="请è¾å
¥ä»»å¡æè¿°" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åé设置ï¼"> |
| | | <el-radio-group v-model="form.sendType"> |
| | | <el-radio :label="1">æ¶é´æ®µåé</el-radio> |
| | | <el-radio :label="3">æ¶é´ç¹åé</el-radio> |
| | | <el-radio :label="2">å³å»åé</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="å鿥æï¼" v-if="form.sendType == 1"> |
| | | <el-date-picker |
| | | v-model="daytime" |
| | | @change="changeTimeday" |
| | | type="daterange" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ" |
| | | value-format="yyyy-MM-dd" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="åéæ¶é´ç¹ï¼" v-if="form.sendType == 3"> |
| | | <div style="display: flex"> |
| | | <div style="margin-right: 10px"> |
| | | <el-date-picker |
| | | v-model="time4" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | @change="Totaldate" |
| | | type="datetime" |
| | | placeholder="éæ©æ¥ææ¶é´" |
| | | > |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="åéæ¶é´æ®µï¼" v-if="form.sendType == 1"> |
| | | <div style="display: flex"> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >æ¶é´æ®µä¸</span |
| | | > |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | | @change="changeTime" |
| | | v-model="time1" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¶é´" |
| | | end-placeholder="ç»ææ¶é´" |
| | | placeholder="éæ©æ¶é´èå´" |
| | | value-format="HH:mm:ss" |
| | | > |
| | | </el-time-picker> |
| | | </div> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >æ¶é´æ®µäº</span |
| | | > |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | | @change="changeTime" |
| | | v-model="time2" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¶é´" |
| | | end-placeholder="ç»ææ¶é´" |
| | | placeholder="éæ©æ¶é´èå´" |
| | | value-format="HH:mm:ss" |
| | | > |
| | | </el-time-picker> |
| | | </div> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >æ¶é´æ®µä¸</span |
| | | > |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | | @change="changeTime" |
| | | v-model="time3" |
| | | range-separator="è³" |
| | | start-placeholder="å¼å§æ¶é´" |
| | | end-placeholder="ç»ææ¶é´" |
| | | placeholder="éæ©æ¶é´èå´" |
| | | value-format="HH:mm:ss" |
| | | > |
| | | </el-time-picker> |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="æå¡å½¢å¼"> |
| | | <el-checkbox-group v-model="checkList"> |
| | | <el-checkbox |
| | | v-for="(item, index) in checkboxlist" |
| | | :key="index" |
| | | :label="item.value" |
| | | > |
| | | {{ item.label }}</el-checkbox |
| | | > |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>åéå¹é
éå</div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <el-table :data="variableList" style="width: 100%"> |
| | | <el-table-column |
| | | prop="name" |
| | | align="center" |
| | | label="åéåç§°" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="value" align="center" label="å¹é
符"> |
| | | </el-table-column> |
| | | <el-table-column label="æ¿æ¢å¼" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | :disabled="scope.row.default" |
| | | v-model="scope.row.fill" |
| | | placeholder="请è¾å
¥å
容" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" align="center"> |
| | | <template slot-scope="scope"> |
| | | <!-- <el-button |
| | | size="mini" |
| | | @click="variableEdit(scope.$index, scope.row)" |
| | | >ç¼è¾</el-button |
| | | > --> |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | @click="variableDelete(scope.$index, scope.row)" |
| | | >å é¤</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-button type="success" @click="nextstep('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "ä»»å¡è¯¦æ
é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | </div> |
| | | |
| | | <!-- ä»»å¡è¯¦æ
--> |
| | | <div v-if="Editprogress == 2"> |
| | | <el-alert title="卿¬é¶æ®µéæ©é访ç
人" type="success" effect="dark"> |
| | | </el-alert> |
| | | <div class="leftvlue-jbxx"> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>æ£è
å表</div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <!--ç¨æ·æ°æ®--> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-select |
| | | v-model="patientqueryParams.allhosp" |
| | | placeholder="è¯·éæ©æ°å¢ç±»å" |
| | | > |
| | | <el-option |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | :disabled="!patientqueryParams.allhosp" |
| | | @click="handleAddpatient" |
| | | >æ°å¢</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="medium" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | >å é¤</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <!-- <el-col :span="1.5"> </el-col> --> |
| | | </el-row> |
| | | <!-- é䏿£è
å表 --> |
| | | <SFtable |
| | | @details="detailhz" |
| | | @handleUpdate="handleUpdate" |
| | | :currentList="overallCase" |
| | | :tableLabel="tableLabelhz" |
| | | :serialnumber="false" |
| | | :searchTrue="true" |
| | | :multiplechoice="false" |
| | | :controlxz="false" |
| | | :typeinfo="2" |
| | | /> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="topqueryParams.pageNum" |
| | | :limit.sync="topqueryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-button type="primary" @click="laststep()">ä¸ä¸æ¥</el-button> |
| | | <el-button type="success" @click="submitForm('ruleForm')">{{ |
| | | quote ? "ç«å³å建" : "确认任å¡é
ç½®" |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | </div> |
| | | </div> |
| | | <!-- æ·»å æ£è
--> |
| | | <el-dialog |
| | | title="éæ©æ£è
" |
| | | :visible.sync="dialogVisiblepatient" |
| | | width="70%" |
| | | :before-close="handleClosehz" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <!--ç¨æ·æ°æ®--> |
| | | <el-form |
| | | :model="patientqueryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="æ£è
åç§°ï¼"> |
| | | <el-input |
| | | v-model="patientqueryParams.name" |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å建æ¶é´"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 240px" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="medium" |
| | | @click="handleQuery" |
| | | >æç´¢</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="medium" |
| | | @click="resetQuery" |
| | | >éç½®</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- éæ©æ£è
å表 --> |
| | | <SFtable |
| | | ref="multipleTable" |
| | | @handleUpdate="handleUpdate" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :currentList="patientuserList" |
| | | :tableLabel="tableLabelhz" |
| | | :serialnumber="false" |
| | | :center="false" |
| | | :typeinfo="3" |
| | | /> |
| | | </el-row> |
| | | <pagination |
| | | v-show="patienttotal > 0" |
| | | :total="patienttotal" |
| | | :page.sync="patientqueryParams.pageNum" |
| | | :limit.sync="patientqueryParams.pageSize" |
| | | @pagination="handleAddpatient" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogVisiblepatient = false">å æ¶</el-button> |
| | | <el-button type="primary" @click="AddDispatchpatients" |
| | | >ç¡®å®æ·»å </el-button |
| | | > |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="模æ¿é¢è§" :visible.sync="previewtf" width="60%"> |
| | | <div class="preview-left"> |
| | | <!-- åé --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | v-for="(item, index) in questionList" |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}ã<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | | <el-radio-group v-model="item.radio"> |
| | | <el-radio |
| | | v-for="(items, index) in item.ivrLibaScriptTargetoptionList" |
| | | :key="items.id" |
| | | :label="items.id" |
| | | >{{ items.targetvalue }} |
| | | </el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-else> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="æªè·åå°ä¿¡æ¯" |
| | | v-model.sync="item.scriptResult" |
| | | :rows="2" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="previewGo">å徿¨¡æ¿è¯¦æ
ä¿®æ¹</el-button> |
| | | <el-button type="primary" @click="previewFn">确认使ç¨</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-drawer |
| | | title="é访å
容å表" |
| | | :visible.sync="drawermb" |
| | | direction="rtl" |
| | | size="50%" |
| | | > |
| | | <div class="headline"></div> |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <!--ç¨æ·æ°æ®--> |
| | | |
| | | <el-form |
| | | :model="topqueryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="é访åç§°"> |
| | | <el-input v-model="topqueryParams.templateName"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="éç¨ç§å®¤" prop="status"> |
| | | <el-select v-model="topqueryParams.topicd" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="é访模æ¿åç±»" prop="region"> |
| | | <el-select |
| | | v-model="topqueryParams.assortid" |
| | | size="medium" |
| | | filterable |
| | | placeholder="è¯·éæ©åç±»" |
| | | > |
| | | <el-option-group |
| | | v-for="group in indexAssortlist" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | v-for="item in group.ivrLibaTemplateAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="medium" |
| | | @click="handleQuery" |
| | | >æç´¢</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="medium" |
| | | @click="resetQuery" |
| | | >éç½®</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-divider></el-divider> |
| | | <!-- éæ©æ¨¡æ¿å表 --> |
| | | <SFtable |
| | | @selectfn="selectfn" |
| | | :currentList="userList" |
| | | :tableLabel="tableLabel" |
| | | :controlsc="false" |
| | | :multiplechoice="false" |
| | | :typeinfo="1" |
| | | /> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="topqueryParams.pageNum" |
| | | :limit.sync="topqueryParams.pageSize" |
| | | @pagination="Acquisitiontype" |
| | | /> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-drawer> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { messagelistpatient } from "@/api/patient/homepage"; |
| | | import store from "@/store"; |
| | | import { |
| | | getTaskpatient, |
| | | getlibrarylist, |
| | | getFollowuplist, |
| | | getQtemplatelist, |
| | | TaskTemplatecomit, |
| | | getTaskInfo, |
| | | gethetaskinfo, |
| | | delhetaskinfo, |
| | | Editsingletask, |
| | | getvFollowup, |
| | | getFollowupclassify, |
| | | } from "@/api/AiCentre/index"; |
| | | import { listDept } from "@/api/system/dept"; |
| | | |
| | | import SFtable from "@/components/SFtable"; //è¡¨æ ¼ç»ä»¶ |
| | | |
| | | export default { |
| | | name: "serviceDetailsa", |
| | | data() { |
| | | const endDate = new Date(); |
| | | const startDate = new Date(); |
| | | startDate.setDate(endDate.getDate() - 7); // 设置å¼å§æ¥æä¸ºå½åæ¥æå7天 |
| | | return { |
| | | title: "é访å
容å表", |
| | | currenttype: 1, //1é访2é®å·3éç¥å®£æ |
| | | id: "", // |
| | | previewid: "", //任塿¨¡æ¿ä¼ éid |
| | | libName: "", |
| | | overallCase: [], //éæ©æ£è
æ» |
| | | // æ¥æèå´ |
| | | dateRange: [startDate, endDate], |
| | | allpids: [], |
| | | libId: null, //模æ¿åºæ¨¡æ¿id |
| | | nhh: null, //æ¯å¦ä¾ç
§æ°å¢ |
| | | Editprogress: 1, //ç¼è¾è¿åº¦ |
| | | drawermb: false, //éæ©æ¨¡æ¿å¼¹çª |
| | | previewtf: false, //é¢è§ |
| | | loading: false, // é®ç½©å± |
| | | patientloading: false, // é®ç½©å± |
| | | dialogVisiblepatient: false, //æ·»å æ£è
å¼¹æ¡ |
| | | radio: 1, |
| | | checkboxlist: [], |
| | | tableLabel: [], |
| | | questionList: [], |
| | | // æ£è
表å |
| | | tableLabelhz: [ |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人ï¼ç¼ºï¼", width: "", prop: "update_by" }, |
| | | ], |
| | | |
| | | tableLabelmz: [ |
| | | { label: "é访åç§°", width: "", prop: "templateName" }, |
| | | { label: "主è¦å
容", width: "", prop: "note" }, |
| | | { label: "ä¿®æ¹æ¥æ", width: "", prop: "updateTime" }, |
| | | { label: "å建人ï¼ç¼ºï¼", width: "", prop: "updateBy" }, |
| | | ], |
| | | |
| | | // æå¡å½¢å¼ |
| | | preachform: [ |
| | | { label: "线ä¸", value: 1 }, |
| | | { label: "çµè¯", value: 2 }, |
| | | { label: "å°ç¨åº", value: 3 }, |
| | | { label: "çä¿¡", value: 4 }, |
| | | { label: "微信å
¬ä¼", value: 5 }, |
| | | { label: "éé", value: 6 }, |
| | | { label: "æºè½æºå¨äºº", value: 7 }, |
| | | ], |
| | | // æ¶é´å¤ç |
| | | daytime: [], //æ¥æ |
| | | applydaytime: [], //è®¡ç®æ¥æ |
| | | time1: "", //ä¸åæ¶é´æ®µ |
| | | time2: "", //ä¸åæ¶é´æ®µ |
| | | time3: "", //æä¸æ¶é´æ®µ |
| | | time4: "", //æä¸æ¶é´æ®µ |
| | | topqueryParams: { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | }, |
| | | checkList: [], |
| | | deliverytopqueryParams: { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | }, |
| | | patientqueryParams: { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | }, |
| | | topicoptions: [{ children: [{ children: [] }] }], |
| | | showSearch: true, // |
| | | total: 0, // |
| | | sontotal: 0, // |
| | | patienttotal: 0, // |
| | | // é䏿°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // ç¨æ·è¡¨æ ¼æ°æ® |
| | | userList: [], //模æ¿å表 |
| | | patientuserList: [], //éæ©æ£è
å表 |
| | | sonuserList: [], //é䏿£è
å表 |
| | | delvariableList: [], //å é¤åé临æ¶åå¨ |
| | | indexAssortlist: [], |
| | | |
| | | variableList: [ |
| | | { |
| | | name: "å§å", |
| | | value: "${name}", |
| | | fill: "æ´¾åæ¶èªå¨å¹é
", |
| | | default: true, |
| | | }, |
| | | { |
| | | name: "å°å", |
| | | value: "${dzz}", |
| | | fill: "æ´¾åæ¶èªå¨å¹é
", |
| | | default: true, |
| | | }, |
| | | { |
| | | name: "çµè¯", |
| | | value: "${dhh}", |
| | | fill: "æ´¾åæ¶èªå¨å¹é
", |
| | | default: true, |
| | | }, |
| | | ], //åéå表 |
| | | transitionList: [ |
| | | { |
| | | name: "å§å", |
| | | value: "${name}", |
| | | fill: "æ´¾åæ¶èªå¨å¹é
", |
| | | default: true, |
| | | }, |
| | | { |
| | | name: "å°å", |
| | | value: "${dzz}", |
| | | fill: "æ´¾åæ¶èªå¨å¹é
", |
| | | default: true, |
| | | }, |
| | | { |
| | | name: "çµè¯", |
| | | value: "${dhh}", |
| | | fill: "æ´¾åæ¶èªå¨å¹é
", |
| | | default: true, |
| | | }, |
| | | ], |
| | | variableListTime: [], |
| | | tasktopic: null, //æ°å¢ç±»å |
| | | SelectPatientslist: [], |
| | | form: { |
| | | patTaskRelevances: [], |
| | | sendType: 1, |
| | | templatename: "", |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | label: "åºé¢ç
人", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "é¨è¯ç
人", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "使£ç
人", |
| | | }, |
| | | ], |
| | | quote: false, |
| | | serviceType:null, |
| | | |
| | | }; |
| | | }, |
| | | components: { SFtable }, |
| | | |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.form.type = this.$route.query.type; |
| | | this.serviceType = Number(this.$route.query.serviceType); |
| | | this.form.serviceType = Number(this.$route.query.serviceType); |
| | | this.form.nhh = this.$route.query.nhh; |
| | | this.listDept(); |
| | | this.Acquisitiontype(); |
| | | this.Getdetails(); |
| | | }, |
| | | |
| | | methods: { |
| | | // { |
| | | // å§å: { "${name}": "é¾å²å¤©" }, |
| | | // å°å: { "${dzz}": "é¾å®«" }, |
| | | // çµè¯: { "${dhh}": "å
«ä¸ªå
«" }, |
| | | // } |
| | | // åé转æ¢å¯¹è±¡è½¬æ°ç» |
| | | convertFormat1ToFormat2(data) { |
| | | let result = []; |
| | | for (let key in data) { |
| | | let innerKey = Object.keys(data[key])[0]; |
| | | result.push({ |
| | | name: key, |
| | | value: innerKey, |
| | | fill: data[key][innerKey], |
| | | }); |
| | | } |
| | | return result; |
| | | }, |
| | | // æ°ç»è½¬å¯¹è±¡ |
| | | convertFormat2ToFormat1(data) { |
| | | let result = {}; |
| | | data.forEach((item) => { |
| | | let innerObj = {}; |
| | | innerObj[item.value] = item.fill; |
| | | result[item.name] = innerObj; |
| | | }); |
| | | return result; |
| | | }, |
| | | // è·åå½åç±»å |
| | | Acquisitiontype() { |
| | | let queryParams = { |
| | | pageNum: this.topqueryParams.pageNum, |
| | | pageSize: this.topqueryParams.pageSize, |
| | | isavailable: "", |
| | | }; |
| | | this.currenttype = this.$route.query.type; |
| | | // åºé¢ãé¨è¯ãä¸ç
é访 |
| | | this.title = "é访å
容å表"; |
| | | this.tableLabel = this.tableLabelmz; |
| | | if (this.form.serviceType == 2 || this.form.serviceType == 3) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "1", |
| | | label: "人工", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "çµè¯", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "çä¿¡", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信å
¬ä¼å·", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "微信å°ç¨åº", |
| | | }, |
| | | |
| | | { |
| | | value: "8", |
| | | label: "æºè½æºå¨äºº", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 5) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "3", |
| | | label: "çµè¯", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "çä¿¡", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信å
¬ä¼å·", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "微信å°ç¨åº", |
| | | }, |
| | | |
| | | { |
| | | value: "8", |
| | | label: "æºè½æºå¨äºº", |
| | | }, |
| | | ]; |
| | | } |
| | | |
| | | getFollowuplist(queryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | }, |
| | | |
| | | nextstep() { |
| | | if (this.Editprogress <= 3) { |
| | | return this.Editprogress++; |
| | | } |
| | | }, |
| | | // ä¿å |
| | | submitForm(formName) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | // this.formatFn(1); |
| | | if (!this.form.patTaskRelevances[0]) { |
| | | this.$modal.msgError("è¯·éæ©ç
人"); |
| | | return; |
| | | } |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "å§å" && item.name !== "çµè¯" && item.name !== "å°å" |
| | | ); |
| | | console.log(filteredArray, "åååé"); |
| | | this.form.textParam = this.convertFormat2ToFormat1(filteredArray); |
| | | if (this.form.taskid) { |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | this.form.serviceType=this.serviceType; |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | } else { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | } |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: this.form.serviceType }, |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | // ----------------------è¡¨æ ¼åç»ä»¶äºä»¶ |
| | | // ç¡®è®¤éæ©æ¨¡æ¿æ¾å
¥ä»»å¡æ¨¡æ¿ |
| | | selectfn(row, type) { |
| | | // æ¨¡æ¿æ
åµä¸è·å模æ¿ä¿¡æ¯ |
| | | console.log(row, "éæ©æ¨¡æ¿"); |
| | | this.libName = row.templateName; |
| | | this.libId = row.id; |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.Tasktemplate = res.data; |
| | | const data = res.data; |
| | | this.questionList = data.ivrLibaTemplateScriptVOList; |
| | | this.previewtf = true; |
| | | this.previewid = data.id; |
| | | console.log(this.questionList, "questionList"); |
| | | this.Variablehandling(data.ivrLibaTemplateScriptVOList, 1); |
| | | } |
| | | }); |
| | | }, |
| | | // å¤çé®é¢å±åé |
| | | Variablehandling(arr, type) { |
| | | let Variablist = []; |
| | | this.variableList = []; //åéå表 |
| | | if (type == 1) { |
| | | console.log(arr); |
| | | // 循ç¯é®é¢ |
| | | arr.forEach((res) => { |
| | | console.log(JSON.parse(res.otherdata), "ss"); |
| | | // 循ç¯é项 |
| | | JSON.parse(res.otherdata).forEach((item) => { |
| | | if (item.default != 1) { |
| | | Variablist.push({ |
| | | value: item.variate, |
| | | fill: "", |
| | | name: item.variatename, |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | const Aarr = Variablist.filter( |
| | | (obj, index, self) => |
| | | index === |
| | | self.findIndex((t) => t.name === obj.name && t.value === obj.value) |
| | | ); |
| | | this.variableList = this.transitionList.concat(Aarr); |
| | | console.log(this.variableList, "variableList"); |
| | | // this.form.textParam = this.convertFormat2ToFormat1(this.variableList); |
| | | } |
| | | }, |
| | | // åä»»å¡äºçº§å¼¹æ¡ |
| | | handleAddpatient(row) { |
| | | console.log(this.overallCase, "ssaaa"); |
| | | this.allpids = []; |
| | | this.overallCase.forEach((item) => { |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "主任å»å¸", width: "", prop: "drname" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | this.tableLabelhz = [ |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "è¯æ", width: "", prop: "diagname" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人", width: "", prop: "createBy" }, |
| | | ]; |
| | | } |
| | | if (this.allpids[0]) { |
| | | this.patientqueryParams.pids = this.allpids; |
| | | console.log(this.patientqueryParams.pids); |
| | | } else { |
| | | this.patientqueryParams.pids = null; |
| | | } |
| | | |
| | | getTaskpatient( |
| | | this.addDateRange(this.patientqueryParams, this.dateRange) |
| | | ).then((response) => { |
| | | this.patientuserList = response.rows; |
| | | this.patienttotal = response.total; |
| | | this.loading = false; |
| | | this.Restorecheck(); |
| | | }); |
| | | this.dialogVisiblepatient = true; |
| | | }, |
| | | handleUpdate() {}, |
| | | handleDelete() {}, |
| | | handleExport() {}, |
| | | // é䏿£è
表 |
| | | handlePitchionChange() {}, |
| | | // éæ©æ£è
è¡¨æ°æ® |
| | | handleSelectionChange(selection) { |
| | | console.log("å¤éæ£è
"); |
| | | this.SelectPatientslist = selection; |
| | | this.multiple = !selection.length; |
| | | |
| | | // èµå¼ç»æ´ä½é䏿°ç» |
| | | this.SelectPatientslist.forEach((item) => { |
| | | const isExist = this.overallCase.find((obj) => obj.name == item.name); |
| | | if (!isExist) { |
| | | console.log(this.patientqueryParams.allhosp, "allhosp"); |
| | | item.isoperation = 1; |
| | | item.patid = item.id; |
| | | item.hospType = this.patientqueryParams.allhosp; |
| | | this.overallCase.push(item); |
| | | this.form.patTaskRelevances.push(item); |
| | | console.log(this.overallCase, "this.overallCase"); |
| | | } |
| | | }); |
| | | }, |
| | | // 忢页忢å¤éä¸ |
| | | Restorecheck() { |
| | | console.log(this.overallCase, "this.overallCase"); |
| | | const allid = this.overallCase.map((item) => item.id); |
| | | const overlap = this.patientuserList.filter((value) => { |
| | | return allid.includes(value.id); |
| | | }); |
| | | console.log(overlap, "overlap"); |
| | | |
| | | // ä¿æidsåå½å页é¢çåæ¥æ§ |
| | | this.SelectPatientslist = overlap; |
| | | console.log(this.SelectPatientslist, "è¿å
¥å页SelectPatientslist"); |
| | | |
| | | this.toggleSelection(overlap); |
| | | }, |
| | | // æè½½éæ©ç¶æ |
| | | toggleSelection(rows) { |
| | | if (rows) { |
| | | this.decision = true; |
| | | this.$nextTick(() => { |
| | | rows.forEach((row) => { |
| | | this.$refs.multipleTable.toggleRowSelection(row, true); |
| | | }); |
| | | this.decision = false; |
| | | }); |
| | | console.log(123); |
| | | } else { |
| | | this.$refs.multipleTable.clearSelection(); |
| | | } |
| | | }, |
| | | // å é¤é䏿£è
|
| | | detailhz(row, info) { |
| | | this.$modal |
| | | .confirm('æ¯å¦ç¡®è®¤å 餿£è
"' + row.name + '"çæå¡é¡¹ï¼') |
| | | .then(() => { |
| | | let indexa = this.overallCase.indexOf(row); |
| | | let indexb = this.form.patTaskRelevances.indexOf(row); |
| | | this.overallCase.splice(indexa, 1); |
| | | this.form.patTaskRelevances[indexb].isoperation = 3; |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | }); |
| | | }, |
| | | getList() {}, |
| | | handleQuery() { |
| | | this.handleAddpatient(); |
| | | }, |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | // æ¥è¯¢åæ° |
| | | this.queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | userName: undefined, |
| | | phonenumber: undefined, |
| | | status: undefined, |
| | | deptId: undefined, |
| | | }; |
| | | }, |
| | | handleClosehz() { |
| | | this.dialogVisiblepatient = false; |
| | | }, |
| | | // ä¸ä¸æ¥ |
| | | laststep() { |
| | | this.Editprogress--; |
| | | }, |
| | | // æäº¤è¡¨å |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |
| | | }, |
| | | // é¢è§æ¨¡æ¿ |
| | | PreviewTemplate() {}, |
| | | Acknowledgereference() { |
| | | this.quote = true; |
| | | }, |
| | | // è·å详æ
|
| | | Getdetails() { |
| | | if (this.id) { |
| | | getTaskInfo({ taskid: this.id }).then((res) => { |
| | | let filteredArray = ""; |
| | | console.log(2233); |
| | | if (res.code == 200) { |
| | | this.form = res.data; |
| | | this.form.serviceType=this.serviceType; |
| | | this.overallCase = this.form.patTaskRelevances.concat(); |
| | | this.checkList = this.form.preachform.split(","); |
| | | console.log(this.form.showDate, "this.form"); |
| | | this.daytime = this.form.showDate.split(","); |
| | | this.changeTimeday(this.daytime); |
| | | if (this.form.showTimeMorn) { |
| | | if (this.form.sendType == 3) { |
| | | this.time4 = this.form.showTimeMorn; |
| | | } else { |
| | | this.time1 = this.form.showTimeMorn.split(","); |
| | | } |
| | | } |
| | | if (this.form.showTimeNoon) |
| | | this.time2 = this.form.showTimeNoon.split(","); |
| | | if (this.form.showTimeNight) |
| | | this.time3 = this.form.showTimeNight.split(","); |
| | | console.log(1122); |
| | | filteredArray = this.convertFormat1ToFormat2(this.form.textParam); |
| | | this.variableList = this.transitionList.concat(filteredArray); |
| | | } else { |
| | | this.$modal.msgError(res.code); |
| | | } |
| | | }); |
| | | } |
| | | getFollowupclassify({}).then((res) => { |
| | | this.indexAssortlist = res.rows; |
| | | }); |
| | | }, |
| | | // è·åç§å®¤å表 |
| | | listDept() { |
| | | listDept().then((res) => { |
| | | this.topicoptions = this.handleTree(res.data, "deptId"); |
| | | console.log(this.topicoptions, "topicoptions"); |
| | | }); |
| | | }, |
| | | // æ°å¢æ´¾éæ£è
|
| | | AddDispatchpatients() { |
| | | // this.SelectPatientslist.forEach((item) => { |
| | | // item.isoperation = 1; |
| | | // }); |
| | | // this.form.patTaskRelevances.push(...this.SelectPatientslist); |
| | | // this.overallCase.push(...this.SelectPatientslist); |
| | | this.dialogVisiblepatient = false; |
| | | }, |
| | | |
| | | variableDelete(index, row) { |
| | | this.variableList.splice(index, 1); |
| | | row.isoperation = 3; |
| | | this.delvariableList.push(row); |
| | | console.log(index, row); |
| | | }, |
| | | // æ¶é´---------- |
| | | changeTime(row) { |
| | | console.log(row, "æ¶é´"); |
| | | this.processingTime(); |
| | | }, |
| | | Totaldate(row) { |
| | | console.log(row, "æ¶é´"); |
| | | this.form.sendTimeslot = [{ begantime: row, endtime: row, xh: 1 }]; |
| | | this.form.showTimeMorn = row; |
| | | console.log(this.form.sendTimeslot, "æ¶é´"); |
| | | }, |
| | | changeTimeday(row) { |
| | | console.log(row, "æ¥æ"); |
| | | const startDate = new Date(row[0]); |
| | | const endDate = new Date(row[1]); |
| | | this.applydaytime = this.getDates(startDate, endDate); |
| | | if (!top) { |
| | | this.processingTime(); |
| | | } |
| | | }, |
| | | getDates(startDate, endDate) { |
| | | const dates = []; |
| | | let currentDate = new Date(startDate); |
| | | |
| | | while (currentDate <= endDate) { |
| | | dates.push(this.$moment(currentDate).format("YYYY-MM-DD")); |
| | | currentDate.setDate(currentDate.getDate() + 1); |
| | | } |
| | | |
| | | return dates; |
| | | }, |
| | | // æ¶é´æç»å¤çæ¹æ³ |
| | | processingTime() { |
| | | const combinedData = []; |
| | | let serialnumber = 1; |
| | | if (this.time3[0]) { |
| | | serialnumber = 3; |
| | | } else if (this.time2[0]) { |
| | | serialnumber = 2; |
| | | } else if (this.time1[0]) { |
| | | serialnumber = 1; |
| | | } else { |
| | | return; |
| | | } |
| | | |
| | | for (let i = 0; i < this.applydaytime.length; i++) { |
| | | combinedData.push({ |
| | | begantime: `${this.applydaytime[i]} ${this.time1[0]}`, |
| | | endtime: `${this.applydaytime[i]} ${this.time1[1]}`, |
| | | xh: serialnumber * i + 1, |
| | | }); |
| | | if (serialnumber >= 2) { |
| | | combinedData.push({ |
| | | begantime: `${this.applydaytime[i]} ${this.time2[0]}`, |
| | | endtime: `${this.applydaytime[i]} ${this.time2[1]}`, |
| | | xh: serialnumber * i + 2, |
| | | }); |
| | | } |
| | | if (serialnumber >= 3) { |
| | | combinedData.push({ |
| | | begantime: `${this.applydaytime[i]} ${this.time3[0]}`, |
| | | endtime: `${this.applydaytime[i]} ${this.time3[1]}`, |
| | | xh: serialnumber * i + 3, |
| | | }); |
| | | } |
| | | } |
| | | this.form.sendTimeslot = combinedData; |
| | | // å±ç¤ºæ°æ®ä¸´æ¶å卿¥æãæ©ãä¸ãæ |
| | | console.log(this.daytime); |
| | | |
| | | this.form.showDate = this.daytime.join(","); |
| | | if (this.time1) this.form.showTimeMorn = this.time1.join(","); |
| | | if (this.time2) this.form.showTimeNoon = this.time2.join(","); |
| | | if (this.time3) this.form.showTimeNight = this.time3.join(","); |
| | | console.log(combinedData, "combinedData"); |
| | | }, |
| | | // æ¥çæ¨¡æ¿ |
| | | previewGo() { |
| | | this.$router.push({ |
| | | path: "/knowledge/tpuconfigurat/", |
| | | query: { id: this.previewid, task: true, data: this.form }, |
| | | }); |
| | | }, |
| | | previewFn() { |
| | | let id = this.Tasktemplate.id; |
| | | this.Tasktemplate.id = null; |
| | | this.Tasktemplate.ivrLibaTemplateScriptVOList.forEach((item) => { |
| | | item.ivrTaskScriptTargetoptionList = item.ivrLibaScriptTargetoptionList; |
| | | }); |
| | | console.log(this.Tasktemplate.ivrLibaTemplateScriptVOList); |
| | | |
| | | this.Tasktemplate.ivrTaskTemplateScriptVOList = |
| | | this.Tasktemplate.ivrLibaTemplateScriptVOList; |
| | | this.Tasktemplate.ivrLibaTemplateTagList = null; |
| | | this.Tasktemplate.tempDetpRelevances = null; |
| | | this.Tasktemplate.libtemplateid = id; |
| | | this.Tasktemplate.isoperation = 1; |
| | | this.Tasktemplate.libtemplatename = this.Tasktemplate.templatename; |
| | | console.log(this.libName, this.libId); |
| | | |
| | | TaskTemplatecomit(this.Tasktemplate).then((response) => { |
| | | console.log(response); |
| | | this.previewtf = false; |
| | | this.form.templateid = response.data; |
| | | this.form.libtemplateid = this.libId; |
| | | this.form.templatename = this.libName; |
| | | console.log(this.form.templatename, "ss"); |
| | | this.$modal.msgSuccess("éæ©æ¨¡æ¿æå", this.form.templatename); |
| | | }); |
| | | }, |
| | | // å¤çæå¡å½¢å¼ |
| | | formatFn(type) { |
| | | console.log(this.preachform, "preachform"); |
| | | console.log(this.checkList, "checklist"); |
| | | let list = []; |
| | | let formlist = []; |
| | | if (type == 1) { |
| | | this.preachform.forEach((item) => { |
| | | this.checkList.forEach((obj) => { |
| | | if (item.label == obj) { |
| | | list.push(item.value); |
| | | } |
| | | }); |
| | | }); |
| | | this.form.preachform = list.join(","); |
| | | } else { |
| | | console.log(this.form.preachform, "this.form.preachform"); |
| | | formlist = this.form.preachform.split(","); |
| | | console.log(11); |
| | | this.preachform.forEach((item) => { |
| | | formlist.forEach((obj) => { |
| | | if (item.value == obj) { |
| | | list.push(item.label); |
| | | } |
| | | }); |
| | | }); |
| | | this.checkList = list; |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .Questionnairemanagement { |
| | | } |
| | | .leftvlue-jbxx { |
| | | margin-top: 10px; |
| | | } |
| | | .sidecolumn { |
| | | width: 100%; |
| | | // min-height: 12vh; |
| | | margin: 20px; |
| | | margin-bottom: 0; |
| | | padding: 30px; |
| | | background: #edf1f7; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | } |
| | | .leftvlue { |
| | | // display: flex; |
| | | // flex: 1; |
| | | width: 100%; |
| | | margin-top: 20px; |
| | | // margin: 20px; |
| | | padding: 30px; |
| | | background: #ffff; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | } |
| | | .examine-jic { |
| | | margin: 20px; |
| | | .headline { |
| | | font-size: 24px; |
| | | border-left: 5px solid #41a1be; |
| | | padding-left: 5px; |
| | | margin-bottom: 10px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | .Add-details { |
| | | font-size: 18px; |
| | | color: #02a7f0; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | .jic-value { |
| | | font-size: 20px; |
| | | border-top: 1px solid #a7abac; |
| | | padding: 10px; |
| | | margin-bottom: 10px; |
| | | .details-jic { |
| | | padding: 10px 15px; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .details-title { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | div:nth-child(2) { |
| | | color: #02a7f0; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | .details-renw { |
| | | background: #e4ebfc; |
| | | padding: 15px 5px; |
| | | border-radius: 5px; |
| | | margin-bottom: 20px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // .leftvlue-jbxx { |
| | | // margin-bottom: 50px; |
| | | // font-size: 20px; |
| | | // span { |
| | | // position: absolute; |
| | | // right: 80px; |
| | | // } |
| | | // .demo-cascader { |
| | | // margin-right: 20px; |
| | | // } |
| | | // .PreviewTemplate { |
| | | // color: #02a7f0; |
| | | // cursor: pointer; |
| | | // font-size: 20px; |
| | | // margin: 0 20px; |
| | | // } |
| | | // } |
| | | .preview-left { |
| | | margin: 20px; |
| | | // margin: 20px; |
| | | padding: 30px; |
| | | background: #ffff; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .scriptTopic-dev { |
| | | margin-bottom: 25px; |
| | | font-size: 20px !important; |
| | | .dev-text { |
| | | margin-bottom: 10px; |
| | | } |
| | | } |
| | | } |
| | | .jic-value { |
| | | font-size: 20px; |
| | | border-top: 1px solid #a7abac; |
| | | padding: 10px; |
| | | margin-bottom: 10px; |
| | | .details-jic { |
| | | padding: 10px 15px; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .details-title { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | margin-bottom: 10px; |
| | | div:nth-child(2) { |
| | | color: #02a7f0; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | .details-renw { |
| | | background: #e4ebfc; |
| | | padding: 15px 5px; |
| | | border-radius: 5px; |
| | | margin-bottom: 20px; |
| | | } |
| | | } |
| | | } |
| | | ::v-deep .addtopic-input { |
| | | input { |
| | | background: #02a7f0; |
| | | color: #edf1f7; |
| | | width: 150px; |
| | | } |
| | | } |
| | | ::v-deep.el-step.is-vertical .el-step__title { |
| | | font-size: 25px; |
| | | } |
| | | ::v-deep.el-row { |
| | | margin-bottom: 10px; |
| | | } |
| | | // ::v-deep.el-input--medium { |
| | | // font-size: 24px !important; |
| | | // } |
| | | ::v-deep.ruleFormaa.el-select { |
| | | display: inline-block; |
| | | position: relative; |
| | | width: 700px; |
| | | } |
| | | .el-select__tags { |
| | | font-size: 20px; |
| | | max-width: 888px !important; |
| | | } |
| | | ::v-deep.el-radio__inner { |
| | | width: 22px; |
| | | height: 22px; |
| | | } |
| | | // ::v-deep.scriptTopic-dev.el-radio__label { |
| | | // font-size: 24px; |
| | | // } |
| | | ::v-deep.el-radio-group { |
| | | span { |
| | | font-size: 24px; |
| | | } |
| | | } |
| | | ::v-deep.el-input.is-disabled .el-input__inner { |
| | | background-color: #f5f7fa; |
| | | border-color: #dfe4ed; |
| | | color: rgb(253, 66, 66); |
| | | cursor: not-allowed; |
| | | } |
| | | ::v-deep.el-checkbox-group { |
| | | span { |
| | | font-size: 24px; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <div>åºç¡ä¿¡æ¯</div> |
| | | </div> |
| | | <div class="jic-value"> |
| | | <el-form ref="form" :model="form" label-width="105px"> |
| | | <el-form |
| | | ref="form" |
| | | :model="form" |
| | | :rules="rules" |
| | | label-width="125px" |
| | | > |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="ä»»å¡åç§°"> |
| | | ><el-form-item label="ä»»å¡åç§°" prop="taskName"> |
| | | <el-input |
| | | style="width: 220px" |
| | | v-model="form.taskName" |
| | | placeholder="请è¾å
¥ä»»å¡åç§°" |
| | | /> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="8" |
| | | ><el-form-item label="模æ¿åç§°"> |
| | | <el-input |
| | | style="width: 220px" |
| | | :disabled="true" |
| | | v-model="form.templatename" |
| | | placeholder="ç¹å»å³ä¾§éæ©" |
| | | /> </el-form-item |
| | | <el-col :span="12" |
| | | ><el-form-item label="ä»»å¡ç±»å"> |
| | | <el-select |
| | | v-model="serviceType" |
| | | placeholder="è¯·éæ©æ°å¢ç±»å" |
| | | > |
| | | <el-option |
| | | v-for="item in tasktypes" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="4"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | | @click="drawermb = true" |
| | | circle |
| | | ></el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-form-item label="ä»»å¡æè¿°"> |
| | | <el-form-item label="ä»»å¡æè¿°" prop="taskDesc"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="form.taskDesc" |
| | | placeholder="请è¾å
¥ä»»å¡æè¿°" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="åé设置ï¼"> |
| | | <el-radio-group v-model="form.sendType"> |
| | | <el-radio :label="1">æ¶é´æ®µåé</el-radio> |
| | | <el-radio :label="3">æ¶é´ç¹åé</el-radio> |
| | | <el-radio :label="2">å³å»åé</el-radio> |
| | | <el-form-item label="æå¡å½¢å¼"> |
| | | <el-checkbox-group v-model="checkList"> |
| | | <el-checkbox |
| | | v-for="(item, index) in checkboxlist" |
| | | :key="index" |
| | | :label="item.value" |
| | | > |
| | | {{ item.label }}</el-checkbox |
| | | > |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | <el-form-item label="æ¯å¦é¿æ" prop="longTask"> |
| | | <el-radio-group v-model="form.longTask"> |
| | | <el-radio :label="0">æ®éä»»å¡</el-radio> |
| | | <el-radio :label="1">é¿æä»»å¡</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="å鿥æï¼" v-if="form.sendType == 1"> |
| | | <el-form-item |
| | | label="æ§è¡è®¾ç½®" |
| | | prop="sendType" |
| | | v-if="!form.longTask" |
| | | > |
| | | <el-radio-group v-model="form.sendType"> |
| | | <el-radio :label="1">æ¶é´æ®µæ§è¡</el-radio> |
| | | <el-radio :label="3">æ¶é´ç¹æ§è¡</el-radio> |
| | | <el-radio :label="2">å³å»æ§è¡</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item |
| | | label="æ§è¡æ¥æ" |
| | | v-if="form.sendType == 1 && !form.longTask" |
| | | prop="daytime" |
| | | > |
| | | <el-date-picker |
| | | v-model="daytime" |
| | | @change="changeTimeday" |
| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="åéæ¶é´ç¹ï¼" v-if="form.sendType == 3"> |
| | | <el-form-item |
| | | label="æ§è¡æ¶é´ç¹" |
| | | v-if="form.sendType == 3 && !form.longTask" |
| | | prop="daytime" |
| | | > |
| | | <div style="display: flex"> |
| | | <div style="margin-right: 10px"> |
| | | <el-date-picker |
| | |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="åéæ¶é´æ®µï¼" v-if="form.sendType == 1"> |
| | | <el-form-item |
| | | label="æ§è¡æ¶é´æ®µ" |
| | | v-if="form.sendType == 1 && !form.longTask" |
| | | prop="daytime" |
| | | > |
| | | <div style="display: flex"> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >æ¶é´æ®µä¸</span |
| | | > |
| | | <span style="font-size: 18px; margin-right: 10px">â </span> |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | |
| | | </el-time-picker> |
| | | </div> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >æ¶é´æ®µäº</span |
| | | > |
| | | <span style="font-size: 18px; margin-right: 10px">â¡</span> |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | |
| | | </el-time-picker> |
| | | </div> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >æ¶é´æ®µä¸</span |
| | | > |
| | | <span style="font-size: 18px; margin-right: 10px">â¢</span> |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | |
| | | </div> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="æå¡å½¢å¼"> |
| | | <el-checkbox-group v-model="checkList"> |
| | | <el-checkbox |
| | | v-for="(item, index) in checkboxlist" |
| | | :key="index" |
| | | :label="item.value" |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="éç¨ç§å®¤" prop="region"> |
| | | <el-select |
| | | v-model="form.deptcode" |
| | | style="width: 400px" |
| | | size="medium" |
| | | filterable |
| | | placeholder="è¯·éæ©ç§å®¤" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in belongDepts" |
| | | :key="item.deptCode" |
| | | :label="item.deptName" |
| | | :value="item.deptCode" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="éç¨ç
åº" prop="region"> |
| | | <!-- <el-cascader |
| | | style="width: 400px" |
| | | v-model="form.leavehospitaldistrictcode" |
| | | :options="topicoptions" |
| | | :props="propstask" |
| | | :show-all-levels="false" |
| | | clearable |
| | | > |
| | | {{ item.label }}</el-checkbox |
| | | > |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | <template slot-scope="{ node, data }"> |
| | | <span>{{ data.deptName }}</span> |
| | | <span v-if="!node.isLeaf"> |
| | | ({{ data.children.length }}) |
| | | </span> |
| | | </template> |
| | | </el-cascader> --> |
| | | <el-select |
| | | v-model="form.leavehospitaldistrictcode" |
| | | style="width: 400px" |
| | | size="medium" |
| | | filterable |
| | | placeholder="è¯·éæ©ç
åº" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in belongWards" |
| | | :key="item.districtCode" |
| | | :label="item.districtName" |
| | | :value="item.districtCode" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12" |
| | | ><el-form-item label="å¼åºç½" prop="kcb"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="3" |
| | | v-model="form.kcb" |
| | | placeholder="请è¾å
¥å¼åºç½" |
| | | /> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="12" |
| | | ><el-form-item label="ç»æè¯" prop="jsy"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="3" |
| | | v-model="form.jsy" |
| | | placeholder="请è¾å
¥ç»æè¯" |
| | | /> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | <div class="examine-jic"> |
| | | <div class="headline"> |
| | | <div>åéå¹é
éå</div> |
| | | <div>ä»»å¡ä½¿ç¨æ¨¡æ¿</div> |
| | | <div style="margin-left: 20px"> |
| | | <el-form ref="forms"> |
| | | <el-form-item label=""> |
| | | <el-input |
| | | style="width: 300px" |
| | | :disabled="true" |
| | | v-model="form.templatename" |
| | | placeholder="请ç¹å»å³ä¾§éæ©" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 10px" |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | | @click="drawermb = true" |
| | | circle |
| | | ></el-button> |
| | | |
| | | <el-button |
| | | v-if="form.templatename" |
| | | type="success" |
| | | icon="el-icon-search" |
| | | @click="previewfnmb" |
| | | circle |
| | | ></el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <div style="margin-bottom: 10px">模æ¿ä¸ä½¿ç¨çåéï¼</div> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-table :data="variableList" style="width: 100%"> |
| | | <el-table-column |
| | |
| | | }}</el-button> |
| | | <el-button @click="resetForm('ruleForm')">éç½®</el-button> |
| | | </div> |
| | | |
| | | <!-- ä»»å¡è¯¦æ
--> |
| | | <div v-if="Editprogress == 2"> |
| | | <el-alert title="卿¬é¶æ®µéæ©é访ç
人" type="success" effect="dark"> |
| | | <el-alert title="卿¬é¶æ®µéæ©å®£æç
人" type="success" effect="dark"> |
| | | </el-alert> |
| | | <div class="leftvlue-jbxx"> |
| | | <div class="examine-jic"> |
| | |
| | | <div class="examine-jic"> |
| | | <div class="jic-value"> |
| | | <el-row :gutter="20"> |
| | | <!--ç¨æ·æ°æ®--> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-select |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | :disabled="!patientqueryParams.allhosp" |
| | | @click="handleAddpatient" |
| | | @click="handleQuery" |
| | | >æ°å¢</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | |
| | | @click="handleDelete" |
| | | >å é¤</el-button |
| | | > |
| | | </el-col> |
| | | </el-col> --> |
| | | |
| | | <!-- <el-col :span="1.5"> </el-col> --> |
| | | </el-row> |
| | |
| | | @details="detailhz" |
| | | @handleUpdate="handleUpdate" |
| | | :currentList="overallCase" |
| | | :tableLabel="tableLabelhz" |
| | | :tableLabel="tableLabelhzwb" |
| | | :serialnumber="false" |
| | | :searchTrue="true" |
| | | :multiplechoice="false" |
| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="æ£è
åç§°ï¼"> |
| | | <el-form-item label="æ£è
ï¼"> |
| | | <el-input |
| | | v-model="patientqueryParams.name" |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å建æ¶é´"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 240px" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-select |
| | | v-model="patientqueryParams.searchscope" |
| | | placeholder="è¯·éæ©æ£è
èå´" |
| | | > |
| | | <el-option |
| | | v-for="item in source" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | icon="el-icon-refresh" |
| | | size="medium" |
| | | @click="resetQuery" |
| | | >éç½®</el-button |
| | | >åæ¶å建</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | > |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="模æ¿é¢è§" :visible.sync="previewtf" width="60%"> |
| | | <div class="preview-left"> |
| | | <!-- åé --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | v-for="(item, index) in questionList" |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}ã<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <!-- 模æ¿é¢è§ --> |
| | | <el-dialog title="模æ¿é¢è§" :visible.sync="previewtf" width="70%"> |
| | | <el-tabs type="border-card"> |
| | | <el-tab-pane label="模æ¿åºç¡æ°æ®" |
| | | ><div class="preview-left"> |
| | | <el-form :model="objyl" label-width="100px" class="demo-objyl"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="14"> |
| | | <el-form-item label="é访åç±»" prop="assortid"> |
| | | <el-select |
| | | v-model="objyl.assortid" |
| | | size="medium" |
| | | filterable |
| | | placeholder="è¯·éæ©åç±»" |
| | | > |
| | | <el-option-group |
| | | v-for="group in optionsclass" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | v-for="item in group.ivrLibaTemplateAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="14"> |
| | | <el-form-item label="å¯ç¨ç¶æ" prop="isenable"> |
| | | <el-radio-group v-model="objyl.usestate"> |
| | | <el-radio |
| | | v-for="(item, index) in usable" |
| | | :label="item.value" |
| | | >{{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="çæ¬å·" prop="name"> |
| | | <el-input |
| | | v-model="objyl.version" |
| | | placeholder="é»è®¤1.0" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="é访æ é¢" prop="templateName"> |
| | | <div style="width: 400px"> |
| | | <el-input v-model="objyl.templateName"></el-input> |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item label="é访æ¹å¼" prop="suitway"> |
| | | <el-select |
| | | style="width: 400px" |
| | | v-model="objyl.suitway" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="è¯·éæ©åç±»" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in mode" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-row :gutter="20" v-if="form.longTask"> |
| | | <el-col :span="14"> |
| | | <el-form-item label="é¿æä»»å¡" prop="longTemp"> |
| | | <el-radio-group v-model="objyl.longTemp"> |
| | | <el-radio |
| | | v-for="(item, index) in longtype" |
| | | :label="item.value" |
| | | >{{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="ä»»å¡å¨æ" prop="name"> |
| | | <el-input |
| | | v-model="objyl.sendDay" |
| | | placeholder="é»è®¤5天å" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="éç¨ç§å®¤" prop="region"> |
| | | <el-select |
| | | style="width: 400px" |
| | | v-model="tempDetpRelevanceslist" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="è¯·éæ©ç§å®¤" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in belongDepts" |
| | | :key="item.deptCode" |
| | | :label="item.deptName" |
| | | :value="item.deptCode" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="éç¨ç
åº" prop="region"> |
| | | <el-select |
| | | v-model="tempbelongWards" |
| | | style="width: 400px" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="è¯·éæ©ç§å®¤" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in belongWards" |
| | | :key="item.districtCode" |
| | | :label="item.districtName" |
| | | :value="item.districtCode" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | | <el-radio-group v-model="item.radio"> |
| | | <el-radio |
| | | v-for="(items, index) in item.ivrLibaScriptTargetoptionList" |
| | | :key="items.id" |
| | | :label="items.id" |
| | | >{{ items.targetvalue }} |
| | | </el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-else> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="æªè·åå°ä¿¡æ¯" |
| | | v-model.sync="item.scriptResult" |
| | | :rows="2" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="xinz-infs"> |
| | | <el-form-item> |
| | | <template #label> |
| | | éç¨ç¾ç
|
| | | <el-tooltip |
| | | class="item" |
| | | effect="light" |
| | | content="鿩好éç¨ç¾ç
åï¼å¯ä»¥æ¹ä¾¿æ¨éè¿ç¾ç
è¯ææ¥æ¾å°å¯¹åºçç
人!" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-warning-outline"></i> |
| | | </el-tooltip> |
| | | </template> |
| | | |
| | | <el-tag |
| | | v-for="tag in illnesslist" |
| | | :key="tag.icdid" |
| | | type="warning" |
| | | :disable-transitions="false" |
| | | > |
| | | {{ tag.icdname }} |
| | | </el-tag> |
| | | <!-- <el-tag v-if="hasMore" type="info">+{{ remaining }} more</el-tag> --> |
| | | </el-form-item> |
| | | </div> |
| | | <el-form-item label="é访æè¿°" prop="description"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请è¾å
¥å
容" |
| | | v-model="objyl.description" |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | |
| | | <el-form-item label="éè®¿ç»æè¯" prop="conclusion"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="请è¾å
¥å
容" |
| | | v-model="objyl.conclusion" |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | </el-form></div |
| | | ></el-tab-pane> |
| | | <el-tab-pane label="é®é¢å±ç¤º" |
| | | ><div class="preview-left"> |
| | | <div v-for="item in questionList"> |
| | | <!-- åé --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | :key="item.sort" |
| | | v-if="item.scriptType == 1" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.sort }}ã[åé]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="item.remark"> |
| | | <el-radio |
| | | v-for="( |
| | | items, index |
| | | ) in item.ivrLibaScriptTargetoptionList" |
| | | :key="index" |
| | | :label="index" |
| | | >{{ items.targetvalue }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </div> |
| | | </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.ivrLibaScriptTargetoptionList" |
| | | :key="index" |
| | | :label="index" |
| | | > |
| | | {{ items.targetvalue }} |
| | | </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="item.radioas" |
| | | clearable |
| | | > |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | </div></div |
| | | ></el-tab-pane> |
| | | </el-tabs> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="previewGo">å徿¨¡æ¿è¯¦æ
ä¿®æ¹</el-button> |
| | | <el-button type="primary" @click="previewFn">确认使ç¨</el-button> |
| | | <!-- <el-button @click="previewGo">ä¿å模æ¿è¯¦æ
ä¿®æ¹</el-button> --> |
| | | <el-button type="primary" @click="Departmenttreatment" |
| | | >ä¿å使ç¨</el-button |
| | | > |
| | | </span> |
| | | </el-dialog> |
| | | <el-drawer |
| | |
| | | <el-form-item label="é访åç§°"> |
| | | <el-input v-model="topqueryParams.templateName"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="éç¨ç§å®¤" prop="status"> |
| | | <el-select v-model="topqueryParams.topicd" placeholder="è¯·éæ©"> |
| | | <!-- <el-form-item label="éç¨å½¢å¼" prop="status"> |
| | | <el-select v-model="topqueryParams.topica" placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="é访模æ¿åç±»" prop="region"> |
| | | <el-select |
| | | v-model="topqueryParams.assortid" |
| | | size="medium" |
| | | filterable |
| | | placeholder="è¯·éæ©åç±»" |
| | | > |
| | | <el-option-group |
| | | v-for="group in indexAssortlist" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | v-for="item in group.ivrLibaTemplateAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="medium" |
| | | @click="handleQuery" |
| | | @click="handleQuerymb" |
| | | >æç´¢</el-button |
| | | > |
| | | <el-button |
| | |
| | | @selectfn="selectfn" |
| | | :currentList="userList" |
| | | :tableLabel="tableLabel" |
| | | :serialnumber="false" |
| | | :controlsc="false" |
| | | :multiplechoice="false" |
| | | :typeinfo="1" |
| | |
| | | getTaskpatient, |
| | | getlibrarylist, |
| | | getFollowuplist, |
| | | getQtemplatelist, |
| | | TaskTemplatecomit, |
| | | getTaskInfo, |
| | | gethetaskinfo, |
| | | delhetaskinfo, |
| | | Editsingletask, |
| | | getvFollowup, |
| | | Taskparticty, |
| | | deleteTaskparticty, |
| | | getTaskInfo, |
| | | getTaskparticty, |
| | | depthospgetson, |
| | | getillness, |
| | | Editsingletask, |
| | | getFollowupclassify, |
| | | depthospgetsonlist, |
| | | } from "@/api/AiCentre/index"; |
| | | import { listDept } from "@/api/system/dept"; |
| | | |
| | | import SFtable from "@/components/SFtable"; //è¡¨æ ¼ç»ä»¶ |
| | | |
| | | export default { |
| | | name: "serviceDetailsa", |
| | | name: "ServiceDetails", |
| | | data() { |
| | | const endDate = new Date(); |
| | | const startDate = new Date(); |
| | | startDate.setDate(endDate.getDate() - 7); // 设置å¼å§æ¥æä¸ºå½åæ¥æå7天 |
| | | return { |
| | | title: "é访å
容å表", |
| | | currenttype: 1, //1é访2é®å·3éç¥å®£æ |
| | | title: "宣æå
容å表", |
| | | currenttype: 1, //1宣æ2é¨è¯3åºé¢4å¤è¯5使£6é访 |
| | | id: "", // |
| | | previewid: "", //任塿¨¡æ¿ä¼ éid |
| | | libName: "", |
| | | objyl: {}, |
| | | overallCase: [], //éæ©æ£è
æ» |
| | | // æ¥æèå´ |
| | | dateRange: [startDate, endDate], |
| | | allpids: [], |
| | | appraiselist: [], |
| | | optionsclass: [], |
| | | illnesslist: [], |
| | | mode: [], |
| | | libId: null, //模æ¿åºæ¨¡æ¿id |
| | | nhh: null, //æ¯å¦ä¾ç
§æ°å¢ |
| | | Editprogress: 1, //ç¼è¾è¿åº¦ |
| | | drawermb: false, //éæ©æ¨¡æ¿å¼¹çª |
| | | previewtf: false, //é¢è§ |
| | |
| | | checkboxlist: [], |
| | | tableLabel: [], |
| | | questionList: [], |
| | | usable: [ |
| | | { value: "0", label: "å¯ç¨" }, |
| | | { value: "1", label: "åç¨" }, |
| | | ], |
| | | required: [ |
| | | { value: "1", label: "å¿
å¡«" }, |
| | | { value: "2", label: "ä¸å¿
å¡«" }, |
| | | ], |
| | | props: { multiple: true, value: "deptCode", label: "deptName" }, |
| | | propstask: { value: "deptCode", label: "deptName" }, |
| | | // æ£è
表å |
| | | tableLabelhz: [ |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "åºé¢æ¥æ", width: "150", prop: "inhosptime" }, |
| | | { label: "æ£è
", width: "", prop: "name" }, |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人ï¼ç¼ºï¼", width: "", prop: "update_by" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "主治å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "240", prop: "dept" }, |
| | | { label: "ç
åº", width: "240", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | // æ£è
表å |
| | | tableLabelhzwb: [ |
| | | { label: "åºé¢æ¥æ", width: "150", prop: "endtime" }, |
| | | { label: "æ£è
", width: "", prop: "name" }, |
| | | { label: "身份è¯", width: "200", prop: "sfzh" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "主治å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "180", prop: "deptName" }, |
| | | { label: "ç
åº", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | |
| | | tableLabelmz: [ |
| | | { label: "é访åç§°", width: "", prop: "templateName" }, |
| | | { label: "主è¦å
容", width: "", prop: "note" }, |
| | | tableLabelwj: [ |
| | | { label: "æ¨¡æ¿æ é¢", width: "", prop: "templateName" }, |
| | | { label: "é访æè¿°", width: "", prop: "note" }, |
| | | { label: "ä¿®æ¹æ¥æ", width: "", prop: "updateTime" }, |
| | | { label: "å建人ï¼ç¼ºï¼", width: "", prop: "updateBy" }, |
| | | { label: "å建人", width: "", prop: "createBy" }, |
| | | ], |
| | | |
| | | // æå¡å½¢å¼ |
| | | // åé |
| | | tableLabelvariable: [ |
| | | { label: "åéåç§°", width: "", prop: "variablename" }, |
| | | { label: "å¹é
符", width: "", prop: "character" }, |
| | | { label: "æ¿æ¢å¼", width: "", prop: "Replacementvalue" }, |
| | | ], |
| | | preachform: [ |
| | | { label: "线ä¸", value: 1 }, |
| | | { label: "çµè¯", value: 2 }, |
| | | { label: "å°ç¨åº", value: 3 }, |
| | | { label: "å¤åªä½", value: 1 }, |
| | | { label: "纸质", value: 2 }, |
| | | { label: "çµè¯", value: 3 }, |
| | | { label: "çä¿¡", value: 4 }, |
| | | { label: "微信å
¬ä¼", value: 5 }, |
| | | { label: "éé", value: 6 }, |
| | | { label: "æºè½æºå¨äºº", value: 7 }, |
| | | { label: "微信å
¬ä¼å·", value: 5 }, |
| | | { label: "微信å°ç¨åº", value: 6 }, |
| | | { label: "æ¯ä»å®", value: 7 }, |
| | | { label: "æºè½å°ç¨åº", value: 8 }, |
| | | { label: "éé", value: 9 }, |
| | | { label: "线ä¸ï¼çº¸è´¨ï¼", value: 10 }, |
| | | { label: "线ä¸ï¼çä¿¡/ééçææ¬ãéè®¿é¾æ¥ï¼", value: 11 }, |
| | | ], |
| | | // æ¶é´å¤ç |
| | | daytime: [], //æ¥æ |
| | |
| | | patientqueryParams: { |
| | | pageNum: 1, // |
| | | pageSize: 10, |
| | | topica: 1, //0å
¨é¨1ç§å®¤2ç
åº |
| | | }, |
| | | topicoptions: [{ children: [{ children: [] }] }], |
| | | showSearch: true, // |
| | |
| | | multiple: true, |
| | | // ç¨æ·è¡¨æ ¼æ°æ® |
| | | userList: [], //模æ¿å表 |
| | | multiplechoice: [], //å¤éç»æ |
| | | patientuserList: [], //éæ©æ£è
å表 |
| | | sonuserList: [], //é䏿£è
å表 |
| | | delvariableList: [], //å é¤åé临æ¶åå¨ |
| | | indexAssortlist: [], |
| | | |
| | | longtype: [ |
| | | { value: 0, label: "æ®éä»»å¡" }, |
| | | { value: 1, label: "é¿æä»»å¡" }, |
| | | ], |
| | | variableList: [ |
| | | { |
| | | name: "å§å", |
| | |
| | | form: { |
| | | patTaskRelevances: [], |
| | | sendType: 1, |
| | | longTask: 0, |
| | | templatename: "", |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | kcb: "亲ç±çæ£è
/å®¶å±ï¼æ¨å¥½ï¼æä»¬æ¯æµä¸å»å¤§äºé¢ç廿¤äººåï¼ä¸ºäºæ´å¥½å°äºè§£æ¨çåº·å¤æ
åµï¼è¯·æ¨æ½ä¸ç¹å®è´µæ¶é´ï¼è§çè¿ä»½å®£æèµè®¯ã", |
| | | jsy: "è¯·æ¨æ³¨æä¼æ¯åè¥å
»ï¼çæ´»ä¸è¦å³é¸ç»åï¼éå½é»ç¼ï¼æçéé
ï¼ä¿æå¿æ
èç
ï¼å®æå¤è¯ã飿¬æ¬¡å®£æå
容就å°è¿éï¼ç¥æ¨èº«ä½å¥åº·ï¼", |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | label: "åºé¢ç
人", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "å¨é¢ç
人", |
| | | }, |
| | | { |
| | | value: "2", |
| | |
| | | label: "使£ç
人", |
| | | }, |
| | | ], |
| | | quote: false, |
| | | serviceType:null, |
| | | source: [ |
| | | { |
| | | value: 0, |
| | | label: "æå±æ£è
", |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: "ç§å®¤æ£è
", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "ç
åºæ£è
", |
| | | }, |
| | | ], |
| | | |
| | | tasktypes: [ |
| | | { |
| | | value: 1, |
| | | label: "çæµè¯ä¼°", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "åºé¢é访", |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "é¨è¯é访", |
| | | }, |
| | | { |
| | | value: 4, |
| | | label: "宣æå
³æ", |
| | | }, |
| | | { |
| | | value: 5, |
| | | label: "å¤è¯ç®¡ç", |
| | | }, |
| | | { |
| | | value: 6, |
| | | label: "满æåº¦è°æ¥", |
| | | }, |
| | | { |
| | | value: 7, |
| | | label: "æ£è
æ¥å", |
| | | }, |
| | | |
| | | { |
| | | value: 8, |
| | | label: "å
¶ä»éç¥", |
| | | }, |
| | | ], |
| | | // ç§å®¤/ç
åº |
| | | belongWards: [], |
| | | belongWards: [], |
| | | deptlist: [], |
| | | hosplist: [], |
| | | tempDetpRelevanceslist: [], //ç§å®¤æ°æ® |
| | | tempDetpRelevanceslistform: [], //ç§å®¤æ°æ® |
| | | tempbelongWards: [], //ç
åºæ°æ® |
| | | tempbelongWardsform: [], //ç
åºæ°æ® |
| | | rules: { |
| | | taskName: [ |
| | | { required: true, message: "ä»»å¡åç§°ä¸è½ä¸ºç©º", trigger: "blur" }, |
| | | { |
| | | min: 2, |
| | | max: 30, |
| | | message: "ä»»å¡åç§°é¿åº¦å¿
é¡»ä»äº 2 å 30 ä¹é´", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | sendType: [ |
| | | { required: true, message: "åé设置ä¸è½ä¸ºç©º", trigger: "blur" }, |
| | | ], |
| | | }, |
| | | // ç§å®¤é¢åºæ¥è¯¢å
¥å |
| | | queryParamsdept: { |
| | | tempid: "", |
| | | type: 11, |
| | | }, |
| | | quote: false, |
| | | serviceType: null, |
| | | }; |
| | | }, |
| | | components: { SFtable }, |
| | | |
| | | created() { |
| | | this.appraiselist = store.getters.appraiselist; |
| | | this.belongWards = store.getters.belongWards; |
| | | this.belongDepts = store.getters.belongDepts; |
| | | this.mode = store.getters.Askmode; |
| | | this.id = this.$route.query.id; |
| | | this.newadd = this.$route.query.newadd; |
| | | this.form.type = this.$route.query.type; |
| | | this.form.typename = this.$route.query.typename; |
| | | this.serviceType = Number(this.$route.query.serviceType); |
| | | this.form.serviceType = Number(this.$route.query.serviceType); |
| | | this.form.nhh = this.$route.query.nhh; |
| | | this.listDept(); |
| | | this.Acquisitiontype(); |
| | | this.Getdetails(); |
| | | this.getFollowupclassify(); |
| | | }, |
| | | activated() { |
| | | if (this.id != this.$route.query.id) { |
| | | this.Acquisitiontype(); |
| | | this.Getdetails(); |
| | | this.getFollowupclassify(); |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | let queryParams = { |
| | | pageNum: this.topqueryParams.pageNum, |
| | | pageSize: this.topqueryParams.pageSize, |
| | | isavailable: "", |
| | | isenable: "", |
| | | }; |
| | | this.currenttype = this.$route.query.type; |
| | | // åºé¢ãé¨è¯ãä¸ç
é访 |
| | | this.title = "é访å
容å表"; |
| | | this.tableLabel = this.tableLabelmz; |
| | | if (this.form.serviceType == 2 || this.form.serviceType == 3) { |
| | | this.tableLabel = this.tableLabelwj; |
| | | if (this.form.serviceType == 1) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "1", |
| | | label: "人工", |
| | | }, |
| | | |
| | | { |
| | | value: "2", |
| | | label: "纸质", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信å
¬ä¼å·", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 6) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "3", |
| | | label: "çµè¯", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "çä¿¡", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信å
¬ä¼å·", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "微信å°ç¨åº", |
| | | }, |
| | | |
| | | { |
| | | value: "8", |
| | | label: "æºè½æºå¨äºº", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 7 || this.form.serviceType == 5) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "1", |
| | | label: "人工", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "纸质", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "çµè¯", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "çä¿¡", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信å
¬ä¼å·", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "微信å°ç¨åº", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 2 || this.form.serviceType == 3) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "1", |
| | |
| | | label: "æºè½æºå¨äºº", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 5) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "3", |
| | | label: "çµè¯", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "çä¿¡", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信å
¬ä¼å·", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "微信å°ç¨åº", |
| | | }, |
| | | |
| | | { |
| | | value: "8", |
| | | label: "æºè½æºå¨äºº", |
| | | }, |
| | | ]; |
| | | } |
| | | |
| | | getFollowuplist(queryParams).then((response) => { |
| | | getFollowuplist(this.topqueryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | }, |
| | | |
| | | nextstep() { |
| | | if (this.Editprogress <= 3) { |
| | | return this.Editprogress++; |
| | | } |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (this.Editprogress <= 3) { |
| | | return this.Editprogress++; |
| | | } |
| | | } else { |
| | | this.$modal.msgError("表åå
容æªå®åï¼è¯·æ£æ¥"); |
| | | } |
| | | }); |
| | | }, |
| | | // ä¿å |
| | | submitForm(formName) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | // this.formatFn(1); |
| | | if (!this.form.patTaskRelevances[0]) { |
| | | if (this.time4 && this.form.sendType == 3) |
| | | this.form.showTimeMorn = this.time4; |
| | | this.form.sendTimeslot = [ |
| | | { |
| | | begantime: this.time4, |
| | | endtime: "", |
| | | xh: 1, |
| | | }, |
| | | ]; |
| | | if (this.checkList[0]) { |
| | | this.form.preachform = this.checkList.join(","); |
| | | } else { |
| | | this.$modal.msgError("è¯·éæ©æå¡ç±»å"); |
| | | return; |
| | | } |
| | | if (!this.form.patTaskRelevances[0] && !this.form.longTask) { |
| | | this.$modal.msgError("è¯·éæ©ç
人"); |
| | | return; |
| | | } |
| | | if (!this.form.templatename) { |
| | | this.$modal.msgError("æªéæ©æ¨¡æ¿"); |
| | | return; |
| | | } |
| | | if ((this.form.sendType == 1 && this.time1) || this.form.sendType == 2) { |
| | | } else if ( |
| | | (this.form.sendType == 3 && this.time4) || |
| | | this.form.longTask |
| | | ) { |
| | | } else { |
| | | return this.$modal.msgError("æ¶é´ä¿¡æ¯ç¼ºå¤±"); |
| | | } |
| | | const filteredArray = this.variableList.filter( |
| | | (item) => |
| | | item.name !== "å§å" && item.name !== "çµè¯" && item.name !== "å°å" |
| | | ); |
| | | console.log(filteredArray, "åååé"); |
| | | this.form.textParam = this.convertFormat2ToFormat1(filteredArray); |
| | | if (this.form.taskid) { |
| | | this.form.isoperation = 2; |
| | | } else { |
| | | this.form.isoperation = 1; |
| | | } |
| | | this.form.serviceType=this.serviceType; |
| | | if (!this.form.type) { |
| | | this.form.type = this.$route.query.type; |
| | | } |
| | | this.form.serviceType = this.serviceType; |
| | | this.form.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.form.leavehospitaldistrictcodes = store.getters.belongWards.map( |
| | | (obj) => obj.districtCode |
| | | ); |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | } else { |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | } else { |
| | | this.puttaskid(res.data); |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | } |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // ----------------------è¡¨æ ¼åç»ä»¶äºä»¶ |
| | | // ç¡®è®¤éæ©æ¨¡æ¿æ¾å
¥ä»»å¡æ¨¡æ¿ |
| | | selectfn(row, type) { |
| | | // æ¨¡æ¿æ
åµä¸è·å模æ¿ä¿¡æ¯ |
| | | console.log(row, "éæ©æ¨¡æ¿"); |
| | | this.libName = row.templateName; |
| | | this.libId = row.id; |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | | // ç»ä»»å¡æ¨¡æ¿èµå¼ä»»å¡id |
| | | puttaskid(data) { |
| | | getTaskparticty(this.form.templateid).then((res) => { |
| | | if (res.code == 200) { |
| | | this.Tasktemplate = res.data; |
| | | const data = res.data; |
| | | this.questionList = data.ivrLibaTemplateScriptVOList; |
| | | this.previewtf = true; |
| | | this.previewid = data.id; |
| | | console.log(this.questionList, "questionList"); |
| | | this.Variablehandling(data.ivrLibaTemplateScriptVOList, 1); |
| | | this.objyl = res.data; |
| | | this.objyl.isoperation = 2; |
| | | this.objyl.taskid = data.taskId; |
| | | Taskparticty(this.objyl).then((response) => { |
| | | this.previewtf = false; |
| | | this.form.libtemplateid = this.objyl.id; |
| | | this.form.templateid = response.data; |
| | | // this.putbelongDepts(response.data); |
| | | this.form.templatename = this.objyl.templateName; |
| | | this.$modal.msgSuccess("éæ©æ¨¡æ¿æå"); |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | // ----------------------è¡¨æ ¼åç»ä»¶äºä»¶ |
| | | |
| | | // éæ©é¢è§ |
| | | selectfn(row, type) { |
| | | // æ¨¡æ¿æ
åµä¸è·å模æ¿ä¿¡æ¯ |
| | | if (type == 1) { |
| | | this.libName = row.templateName; |
| | | this.libId = row.id; |
| | | this.questionList = row.ivrLibaTemplateScriptVOList; |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.objyl = res.data; |
| | | if (this.form.longTask) { |
| | | this.objyl.longTemp = 1; |
| | | } |
| | | this.queryParamsdept.type = 1; |
| | | this.queryParamsdept.tempid = row.id; |
| | | this.listDept(); |
| | | |
| | | this.objyl.suitway = this.objyl.suitway.split(","); |
| | | this.questionList = res.data.ivrLibaTemplateScriptVOList; |
| | | this.getillness(row.id); |
| | | console.log(res.data, "11"); |
| | | this.Variablehandling(res.data.ivrLibaTemplateScriptVOList, 1); |
| | | this.previewtf = true; |
| | | } |
| | | }); |
| | | this.previewid = row.id; |
| | | } else if (type == 2) { |
| | | } else if (type == 3) { |
| | | } |
| | | }, |
| | | // é¢è§ |
| | | previewfnmb() { |
| | | getTaskparticty(this.form.templateid).then((res) => { |
| | | if (res.code == 200) { |
| | | this.objyl = res.data; |
| | | if (this.objyl.suitway) |
| | | this.objyl.suitway = this.objyl.suitway.split(","); |
| | | this.queryParamsdept.tempid = this.form.templateid; |
| | | this.queryParamsdept.type = 11; |
| | | this.getillness(this.form.libtemplateid); |
| | | // æ§è¡è·åè¯¥ä»»å¡æ¨¡æ¿id |
| | | this.listDept(); |
| | | this.previewtf = true; |
| | | getvFollowup({ id: this.form.libtemplateid }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.questionList = res.data.ivrLibaTemplateScriptVOList; |
| | | this.objyl.ivrLibaTemplateScriptVOList = |
| | | res.data.ivrLibaTemplateScriptVOList; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | getillness(id) { |
| | | if (id) { |
| | | getillness({ outid: id, type: 5 }).then((res) => { |
| | | this.illnesslist = res.rows; |
| | | this.illnesslist.forEach((item) => { |
| | | item.icdname = item.icd10name; |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | // å¤çé®é¢å±åé |
| | | Variablehandling(arr, type) { |
| | | let Variablist = []; |
| | | this.variableList = []; //åéå表 |
| | | if (type == 1) { |
| | | console.log(arr); |
| | | // 循ç¯é®é¢ |
| | | arr.forEach((res) => { |
| | | console.log(JSON.parse(res.otherdata), "ss"); |
| | | // 循ç¯é项 |
| | | JSON.parse(res.otherdata).forEach((item) => { |
| | | if (item.default != 1) { |
| | |
| | | index === |
| | | self.findIndex((t) => t.name === obj.name && t.value === obj.value) |
| | | ); |
| | | |
| | | this.variableList = this.transitionList.concat(Aarr); |
| | | console.log(this.variableList, "variableList"); |
| | | // this.form.textParam = this.convertFormat2ToFormat1(this.variableList); |
| | | } |
| | | }, |
| | | // åä»»å¡äºçº§å¼¹æ¡ |
| | | handleAddpatient(row) { |
| | | console.log(this.overallCase, "ssaaa"); |
| | | this.allpids = []; |
| | | this.overallCase.forEach((item) => { |
| | | this.allpids.push(item.patid); |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | // { label: "å
¥é¢æ¥æ", width: "170", prop: "starttime" }, |
| | | { label: "åºé¢æ¥æ", width: "150", prop: "endtime" }, |
| | | { label: "æ£è
", width: "", prop: "name" }, |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "主任å»å¸", width: "", prop: "drname" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人", width: "", prop: "createBy" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "180", prop: "dept" }, |
| | | { label: "ç
åº", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | this.tableLabelhz = [ |
| | | { label: "æ£è
åç§°", width: "", prop: "name" }, |
| | | { label: "å
¥é¢æ¥æ", width: "150", prop: "starttime" }, |
| | | { label: "æ£è
", width: "", prop: "name" }, |
| | | { label: "身份è¯", width: "200", prop: "idcardno" }, |
| | | { label: "æ§å«", width: "", prop: "sex" }, |
| | | { label: "å¹´é¾", width: "", prop: "age" }, |
| | | { label: "è¯æ", width: "", prop: "diagname" }, |
| | | { label: "å°±è¯ç§å®¤", width: "", prop: "deptName" }, |
| | | { label: "å
¥é¢æ¥æ", width: "", prop: "birthdate" }, |
| | | { label: "å建人", width: "", prop: "createBy" }, |
| | | { label: "åºé¢å¤©æ°", width: "", prop: "endDay" }, |
| | | { label: "责任æ¤å£«", width: "", prop: "nurseName" }, |
| | | { label: "å»ç", width: "", prop: "drname" }, |
| | | { label: "ç§å®¤", width: "180", prop: "dept" }, |
| | | { label: "ç
åº", width: "150", prop: "leavehospitaldistrictname" }, |
| | | ]; |
| | | } |
| | | if (this.allpids[0]) { |
| | | this.patientqueryParams.pids = this.allpids; |
| | | console.log(this.patientqueryParams.pids); |
| | | } else { |
| | | this.patientqueryParams.pids = null; |
| | | } |
| | | // ç±»å夿 |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.patientqueryParams.cry = 1; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | this.patientqueryParams.cry = 0; |
| | | } |
| | | // æ¥æºå¤æ |
| | | |
| | | getTaskpatient( |
| | | this.addDateRange(this.patientqueryParams, this.dateRange) |
| | | ).then((response) => { |
| | | if (this.patientqueryParams.searchscope == 1) { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = []; |
| | | } else if (this.patientqueryParams.searchscope == 2) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | this.patientqueryParams.leaveldeptcodes = []; |
| | | } else { |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.belongWards.map((obj) => obj.districtCode); |
| | | } |
| | | getTaskpatient(this.patientqueryParams).then((response) => { |
| | | this.patientuserList = response.rows; |
| | | this.patientuserList.forEach((item) => { |
| | | if (item.endtime) { |
| | | item.endDay = this.daysBetween(item.endtime); |
| | | } |
| | | }); |
| | | this.patienttotal = response.total; |
| | | this.loading = false; |
| | | this.Restorecheck(); |
| | |
| | | handleUpdate() {}, |
| | | handleDelete() {}, |
| | | handleExport() {}, |
| | | // é䏿£è
表 |
| | | handlePitchionChange() {}, |
| | | // éæ©æ£è
è¡¨æ°æ® |
| | | handleSelectionChange(selection) { |
| | | console.log("å¤éæ£è
"); |
| | | this.SelectPatientslist = selection; |
| | | this.SelectPatientslist = structuredClone(selection); |
| | | this.multiple = !selection.length; |
| | | |
| | | // èµå¼ç»æ´ä½é䏿°ç» |
| | | this.SelectPatientslist.forEach((item) => { |
| | | const isExist = this.overallCase.find((obj) => obj.name == item.name); |
| | | if (!isExist) { |
| | | console.log(this.patientqueryParams.allhosp, "allhosp"); |
| | | item.isoperation = 1; |
| | | item.patid = item.id; |
| | | item.hospType = this.patientqueryParams.allhosp; |
| | | item.sfzh = item.idcardno; |
| | | item.deptCode = item.deptcode; |
| | | item.deptName = item.dept; |
| | | item.admindate = item.inhosptime; |
| | | item.sfzh = item.idcardno; |
| | | this.overallCase.push(item); |
| | | this.form.patTaskRelevances.push(item); |
| | | console.log(this.overallCase, "this.overallCase"); |
| | | } |
| | | }); |
| | | }, |
| | | // 忢页忢å¤éä¸ |
| | | Restorecheck() { |
| | | console.log(this.overallCase, "this.overallCase"); |
| | | const allid = this.overallCase.map((item) => item.id); |
| | | const allid = this.overallCase.map((item) => item.patid); |
| | | const overlap = this.patientuserList.filter((value) => { |
| | | return allid.includes(value.id); |
| | | return allid.includes(value.patid); |
| | | }); |
| | | console.log(overlap, "overlap"); |
| | | |
| | | // ä¿æidsåå½å页é¢çåæ¥æ§ |
| | | this.SelectPatientslist = overlap; |
| | | console.log(this.SelectPatientslist, "è¿å
¥å页SelectPatientslist"); |
| | | |
| | | this.toggleSelection(overlap); |
| | | }, |
| | | // æè½½éæ©ç¶æ |
| | |
| | | }); |
| | | this.decision = false; |
| | | }); |
| | | console.log(123); |
| | | } else { |
| | | this.$refs.multipleTable.clearSelection(); |
| | | } |
| | |
| | | }, |
| | | getList() {}, |
| | | handleQuery() { |
| | | if (this.patientqueryParams.topica == 0) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | } else if (this.patientqueryParams.topica == 1) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = null; |
| | | this.patientqueryParams.leaveldeptcodes = store.getters.leaveldeptcodes; |
| | | } else if (this.patientqueryParams.topica == 2) { |
| | | this.patientqueryParams.leavehospitaldistrictcodes = |
| | | store.getters.leavehospitaldistrictcodes; |
| | | this.patientqueryParams.leaveldeptcodes = null; |
| | | } |
| | | this.handleAddpatient(); |
| | | }, |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | // æ¥è¯¢åæ° |
| | | this.queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | userName: undefined, |
| | | phonenumber: undefined, |
| | | status: undefined, |
| | | deptId: undefined, |
| | | }; |
| | | resetQuery() {}, |
| | | handleQuerymb() { |
| | | getFollowuplist(this.topqueryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | }); |
| | | }, |
| | | handleClosehz() { |
| | | this.dialogVisiblepatient = false; |
| | |
| | | }, |
| | | // è·å详æ
|
| | | Getdetails() { |
| | | this.form = { |
| | | patTaskRelevances: [], |
| | | sendType: 1, |
| | | templatename: "", |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | kcb: "亲ç±çæ£è
/å®¶å±ï¼æ¨å¥½ï¼æä»¬æ¯æµä¸å»å¤§äºé¢ç廿¤äººåï¼ä¸ºäºæ´å¥½å°äºè§£æ¨çåº·å¤æ
åµï¼è¯·æ¨æ½ä¸ç¹å®è´µæ¶é´ï¼å®æè¿ä»½é访é访ã", |
| | | jsy: "è¯·æ¨æ³¨æä¼æ¯åè¥å
»ï¼çæ´»ä¸è¦å³é¸ç»åï¼éå½é»ç¼ï¼æçéé
ï¼ä¿æå¿æ
èç
ï¼å®æå¤è¯ã飿¬æ¬¡å访就å°è¿éï¼ç¥æ¨èº«ä½å¥åº·ï¼", |
| | | }; |
| | | |
| | | this.questionList = []; |
| | | if (this.id) { |
| | | getTaskInfo({ taskid: this.id }).then((res) => { |
| | | let filteredArray = ""; |
| | | console.log(2233); |
| | | if (res.code == 200) { |
| | | this.form = res.data; |
| | | this.form.serviceType=this.serviceType; |
| | | this.form.serviceType = this.serviceType; |
| | | this.form.patTaskRelevances = this.form.patTaskRelevances |
| | | ? this.form.patTaskRelevances |
| | | : []; |
| | | this.overallCase = this.form.patTaskRelevances.concat(); |
| | | this.checkList = this.form.preachform.split(","); |
| | | console.log(this.form.showDate, "this.form"); |
| | | this.daytime = this.form.showDate.split(","); |
| | | this.changeTimeday(this.daytime); |
| | | |
| | | this.overallCase.forEach((item) => { |
| | | if (item.endtime) { |
| | | item.endDay = this.daysBetween(item.endtime); |
| | | } |
| | | }); |
| | | if (this.form.showDate) |
| | | this.daytime = this.form.showDate.split(","); |
| | | if (this.form.showTimeMorn) { |
| | | if (this.form.sendType == 3) { |
| | | this.time4 = this.form.showTimeMorn; |
| | |
| | | this.time2 = this.form.showTimeNoon.split(","); |
| | | if (this.form.showTimeNight) |
| | | this.time3 = this.form.showTimeNight.split(","); |
| | | console.log(1122); |
| | | filteredArray = this.convertFormat1ToFormat2(this.form.textParam); |
| | | this.variableList = this.transitionList.concat(filteredArray); |
| | | } else { |
| | | this.$modal.msgError(res.code); |
| | | } |
| | | |
| | | if (this.newadd) { |
| | | this.neWaddfn(); |
| | | } |
| | | }); |
| | | } |
| | | getFollowupclassify({}).then((res) => { |
| | | this.indexAssortlist = res.rows; |
| | | }); |
| | | }, |
| | | // ä¾ç
§æ°å¢æ¶å¤ç |
| | | neWaddfn() { |
| | | this.id = null; |
| | | this.form.taskName = ""; |
| | | this.form.taskid = null; |
| | | this.overallCase = []; |
| | | this.form.patTaskRelevances = []; |
| | | this.daytime = []; //æ¥æ |
| | | this.applydaytime = []; //è®¡ç®æ¥æ |
| | | this.time1 = ""; //ä¸åæ¶é´æ®µ |
| | | this.time2 = ""; //ä¸åæ¶é´æ®µ |
| | | this.time3 = ""; //æä¸æ¶é´æ®µ |
| | | this.time4 = ""; //æä¸æ¶é´æ®µ |
| | | }, |
| | | // è·åç§å®¤å表 |
| | | listDept() { |
| | | listDept().then((res) => { |
| | | this.topicoptions = this.handleTree(res.data, "deptId"); |
| | | console.log(this.topicoptions, "topicoptions"); |
| | | this.tempDetpRelevanceslist = []; |
| | | this.tempbelongWards = []; |
| | | depthospgetsonlist(this.queryParamsdept).then((res) => { |
| | | if (res.code == 200) { |
| | | let arr = res.rows; |
| | | arr.forEach((item) => { |
| | | if (item.deptType == 1) { |
| | | this.deptlist.push(item); |
| | | this.tempDetpRelevanceslist.push(item.deptCode); |
| | | } else if (item.deptType == 2) { |
| | | this.hosplist.push(item); |
| | | this.tempbelongWards.push(item.deptCode); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | getFollowupclassify() { |
| | | getFollowupclassify({}).then((res) => { |
| | | this.optionsclass = res.rows; |
| | | }); |
| | | }, |
| | | // æ°å¢æ´¾éæ£è
|
| | |
| | | this.variableList.splice(index, 1); |
| | | row.isoperation = 3; |
| | | this.delvariableList.push(row); |
| | | console.log(index, row); |
| | | }, |
| | | // æ¶é´---------- |
| | | changeTime(row) { |
| | | console.log(row, "æ¶é´"); |
| | | this.processingTime(); |
| | | }, |
| | | Totaldate(row) { |
| | | console.log(row, "æ¶é´"); |
| | | this.form.sendTimeslot = [{ begantime: row, endtime: row, xh: 1 }]; |
| | | this.form.showTimeMorn = row; |
| | | console.log(this.form.sendTimeslot, "æ¶é´"); |
| | | }, |
| | | changeTimeday(row) { |
| | | console.log(row, "æ¥æ"); |
| | | const startDate = new Date(row[0]); |
| | | const endDate = new Date(row[1]); |
| | | this.applydaytime = this.getDates(startDate, endDate); |
| | | if (!top) { |
| | | this.processingTime(); |
| | | } |
| | | this.processingTime(); |
| | | }, |
| | | getDates(startDate, endDate) { |
| | | const dates = []; |
| | |
| | | } |
| | | this.form.sendTimeslot = combinedData; |
| | | // å±ç¤ºæ°æ®ä¸´æ¶å卿¥æãæ©ãä¸ãæ |
| | | console.log(this.daytime); |
| | | |
| | | this.form.showDate = this.daytime.join(","); |
| | | if (this.time1) this.form.showTimeMorn = this.time1.join(","); |
| | | if (this.time2) this.form.showTimeNoon = this.time2.join(","); |
| | | if (this.time3) this.form.showTimeNight = this.time3.join(","); |
| | | console.log(combinedData, "combinedData"); |
| | | }, |
| | | // æ¥çæ¨¡æ¿ |
| | | previewGo() { |
| | | this.$router.push({ |
| | | path: "/knowledge/tpuconfigurat/", |
| | | query: { id: this.previewid, task: true, data: this.form }, |
| | | }); |
| | | }, |
| | | |
| | | // ä¿å/æ´æ°ä»»å¡æ¨¡æ¿ |
| | | previewFn() { |
| | | let id = this.Tasktemplate.id; |
| | | this.Tasktemplate.id = null; |
| | | this.Tasktemplate.ivrLibaTemplateScriptVOList.forEach((item) => { |
| | | item.ivrTaskScriptTargetoptionList = item.ivrLibaScriptTargetoptionList; |
| | | if (Array.isArray(this.objyl.suitway)) { |
| | | this.objyl.suitway = this.objyl.suitway.join(","); |
| | | } |
| | | this.objyl.ivrLibaTemplateScriptVOList.forEach((item) => { |
| | | item.svyTaskTemplateTargetoptions = item.ivrLibaScriptTargetoptionList; |
| | | }); |
| | | console.log(this.Tasktemplate.ivrLibaTemplateScriptVOList); |
| | | |
| | | this.Tasktemplate.ivrTaskTemplateScriptVOList = |
| | | this.Tasktemplate.ivrLibaTemplateScriptVOList; |
| | | this.Tasktemplate.ivrLibaTemplateTagList = null; |
| | | this.Tasktemplate.tempDetpRelevances = null; |
| | | this.Tasktemplate.libtemplateid = id; |
| | | this.Tasktemplate.isoperation = 1; |
| | | this.Tasktemplate.libtemplatename = this.Tasktemplate.templatename; |
| | | console.log(this.libName, this.libId); |
| | | |
| | | TaskTemplatecomit(this.Tasktemplate).then((response) => { |
| | | console.log(response); |
| | | this.previewtf = false; |
| | | this.form.templateid = response.data; |
| | | this.form.libtemplateid = this.libId; |
| | | this.form.templatename = this.libName; |
| | | console.log(this.form.templatename, "ss"); |
| | | this.$modal.msgSuccess("éæ©æ¨¡æ¿æå", this.form.templatename); |
| | | this.objyl.svyTaskTemplateScriptVOS = |
| | | this.objyl.ivrLibaTemplateScriptVOList; |
| | | this.objyl.isoperation = 1; |
| | | if (this.form.templateid) { |
| | | deleteTaskparticty(this.form.templateid).then((res) => { |
| | | if (res.code == 200) { |
| | | Taskparticty(this.objyl).then((response) => { |
| | | this.previewtf = false; |
| | | this.form.libtemplateid = this.objyl.id; |
| | | this.form.templateid = response.data; |
| | | this.putbelongDepts(response.data); |
| | | this.form.templatename = this.objyl.templateName; |
| | | this.$modal.msgSuccess("éæ©æ¨¡æ¿æå"); |
| | | }); |
| | | } |
| | | }); |
| | | } else { |
| | | Taskparticty(this.objyl).then((response) => { |
| | | this.previewtf = false; |
| | | this.form.libtemplateid = this.objyl.id; |
| | | this.form.templateid = response.data; |
| | | this.putbelongDepts(response.data); |
| | | this.form.templatename = this.objyl.templateName; |
| | | this.$modal.msgSuccess("éæ©æ¨¡æ¿æå"); |
| | | }); |
| | | } |
| | | }, |
| | | // ä¿åç§å®¤/ç
åº |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | item.tempid = id; |
| | | }); |
| | | this.tempbelongWardsform.forEach((item) => { |
| | | item.tempid = id; |
| | | }); |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("ç§å®¤æ´æ°æå"); |
| | | this.tempDetpRelevanceslistform = []; |
| | | } |
| | | }); |
| | | depthospgetson(this.tempbelongWardsform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("ç
åºæ´æ°æå"); |
| | | this.tempbelongWardsform = []; |
| | | } |
| | | }); |
| | | }, |
| | | // å¤çæå¡å½¢å¼ |
| | | formatFn(type) { |
| | | console.log(this.preachform, "preachform"); |
| | | console.log(this.checkList, "checklist"); |
| | | let list = []; |
| | | let formlist = []; |
| | | if (type == 1) { |
| | |
| | | } |
| | | }); |
| | | }); |
| | | console.log(list, "list"); |
| | | this.form.preachform = list.join(","); |
| | | } else { |
| | | console.log(this.form.preachform, "this.form.preachform"); |
| | |
| | | }); |
| | | this.checkList = list; |
| | | } |
| | | }, |
| | | // ç§å®¤å¤ç |
| | | Departmenttreatment() { |
| | | this.tempDetpRelevanceslist.forEach((item) => { |
| | | this.tempDetpRelevanceslistform.push({ |
| | | deptType: 1, |
| | | longTemp: this.form.longTask, |
| | | deptCode: item, |
| | | tempid: null, |
| | | type: 11, |
| | | }); |
| | | }); |
| | | |
| | | this.tempbelongWards.forEach((item) => { |
| | | this.tempbelongWardsform.push({ |
| | | deptType: 2, |
| | | longTemp: this.form.longTask, |
| | | deptCode: item, |
| | | tempid: null, |
| | | type: 11, |
| | | }); |
| | | }); |
| | | console.log(33); |
| | | |
| | | setTimeout(() => { |
| | | this.previewFn(); |
| | | }, 1000); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | margin: 20px; |
| | | .headline { |
| | | font-size: 24px; |
| | | height: 40px; |
| | | border-left: 5px solid #41a1be; |
| | | padding-left: 5px; |
| | | margin-bottom: 10px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | // justify-content: space-between; |
| | | .Add-details { |
| | | font-size: 18px; |
| | | color: #02a7f0; |
| | |
| | | } |
| | | } |
| | | } |
| | | .xinz-infs { |
| | | font-size: 18px; |
| | | line-height: 48px; |
| | | |
| | | .el-tag + .el-tag { |
| | | margin-left: 10px; |
| | | } |
| | | } |
| | | // .leftvlue-jbxx { |
| | | // margin-bottom: 50px; |
| | | // font-size: 20px; |
| | |
| | | // margin: 20px; |
| | | padding: 30px; |
| | | background: #ffff; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | // border: 1px solid #dcdfe6; |
| | | // -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | // 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .scriptTopic-dev { |
| | | margin-bottom: 25px; |
| | | font-size: 20px !important; |
| | |
| | | width: 22px; |
| | | height: 22px; |
| | | } |
| | | // ::v-deep.scriptTopic-dev.el-radio__label { |
| | | // ::v-deep.topic-dev.el-radio__label { |
| | | // font-size: 24px; |
| | | // } |
| | | ::v-deep.el-radio-group { |
| | | span { |
| | | font-size: 24px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | ::v-deep.el-input.is-disabled .el-input__inner { |
| | |
| | | } |
| | | ::v-deep.el-checkbox-group { |
| | | span { |
| | | font-size: 24px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="éç¨ç§å®¤" prop="region"> |
| | | <el-cascader |
| | | style="width: 500px" |
| | | v-model="tempDetpRelevanceslist" |
| | | :options="deptList" |
| | | :props="props" |
| | | :show-all-levels="false" |
| | | clearable |
| | | > |
| | | <template slot-scope="{ node, data }"> |
| | | <span>{{ data.deptName }}</span> |
| | | <span v-if="!node.isLeaf"> ({{ data.children.length }}) </span> |
| | | </template> |
| | | </el-cascader> |
| | | </el-form-item> |
| | | <el-form-item label="éç¨åº" prop="region"> |
| | | <el-select |
| | | style="width: 500px" |
| | | v-model="ruleForm.submoduleID" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="è¯·éæ©åºï¼å¤éï¼" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in generallist" |
| | | :key="item.id" |
| | | :label="item.extName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="éç¨ç§å®¤" prop="region"> |
| | | <el-select |
| | | v-model="tempDetpRelevanceslist" |
| | | @remove-tag="removetag" |
| | | style="width: 55vw" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="è¯·éæ©ç§å®¤" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in belongDepts" |
| | | :key="item.deptCode" |
| | | :label="item.deptName" |
| | | :value="item.deptCode" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="éç¨ç
åº" prop="region"> |
| | | <el-select |
| | | v-model="tempbelongWards" |
| | | @remove-tag="removehpsp" |
| | | style="width: 55vw" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="è¯·éæ©ç§å®¤" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | | v-for="item in belongWards" |
| | | :key="item.districtCode" |
| | | :label="item.districtName" |
| | | :value="item.districtCode" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="é访åå¤ç" prop="name"> |
| | |
| | | getFollowuplist, |
| | | deltargetillness, |
| | | getillnesslist, |
| | | depthospgetsonlist , |
| | | illnesslistget, |
| | | getillness, |
| | | getgenerallist, |
| | |
| | | optionstag: [], |
| | | prefollowuplist: [], |
| | | postfollowuplist: [], |
| | | tempDetpRelevanceslist: [], //ç§å®¤æ°æ® |
| | | tempDetpRelevanceslistform: [], //ç§å®¤æ°æ® |
| | | tempbelongWards: [], //ç
åºæ°æ® |
| | | tempbelongWardsform: [], //ç
åºæ°æ® |
| | | generallist: [ |
| | | { value: "1", label: "é访éç¨åºä¸" }, |
| | | { value: "2", label: "é访äºåº" }, |
| | |
| | | addvalue: "æ·»å é¢ç®", |
| | | // é¢ç®è¡¨æ ¼æ°æ® |
| | | userList: [], |
| | | belongWards: [], |
| | | belongDepts: [], |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | |
| | | }; |
| | | }, |
| | | activated() { |
| | | console.log(this.id); |
| | | console.log(this.$route.query.id); |
| | | |
| | | if (this.id != this.$route.query.id) { |
| | | console.log(1); |
| | | |
| | | this.RoutingDataProcessing(); |
| | | this.gettabList(); |
| | | this.getvFollowup(); |
| | | this.auxiliary(); |
| | | }else{ |
| | | this.tempDetpRelevanceslistform = []; |
| | | this.tempbelongWardsform = []; |
| | | } |
| | | }, |
| | | |
| | |
| | | this.languagelist = store.getters.languagelist; |
| | | this.courtyardlist = store.getters.courtyardlist; |
| | | this.precedencetype = store.getters.precedencetype; |
| | | this.belongWards = store.getters.belongWards; |
| | | this.belongDepts = store.getters.belongDepts; |
| | | }, |
| | | mounted() {}, |
| | | computed: { |
| | |
| | | this.ruleForm.submoduleID = this.ruleForm.submoduleID.map((res) => { |
| | | return Number(res); |
| | | }); |
| | | console.log( |
| | | this.ruleForm.submoduleID, |
| | | "this.ruleForm.submoduleIDå" |
| | | ); |
| | | |
| | | this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList; |
| | | |
| | | this.dynamicTags = this.ruleForm.ivrLibaTemplateTagList.map( |
| | | this.processElement |
| | | ); |
| | | console.log(this.ruleForm.suitway); |
| | | this.sortFn(); |
| | | } |
| | | }); |
| | | getillness({ outid: this.id, type: 3 }).then((res) => { |
| | |
| | | item.icdname = item.icd10name; |
| | | }); |
| | | }); |
| | | } else { |
| | | this.ruleForm = { |
| | | templateName: "", |
| | | ivrLibaTemplateTagList: [], |
| | | ivrLibaTemplateScriptVOList: [], |
| | | tempDetpRelevances: [], |
| | | }; |
| | | this.deptOptions = []; |
| | | this.optionsillness = []; |
| | | this.illnesslistapi = []; |
| | | this.illnesslist = []; |
| | | this.dynamicTags = []; |
| | | this.tempDetpRelevanceslist = []; |
| | | } |
| | | |
| | | listDept(this.queryParams).then((response) => { |
| | |
| | | // åç±» |
| | | getFollowupclassify({}).then((res) => { |
| | | this.indexAssortlist = res.rows; |
| | | if (this.$route.query.assortid) { |
| | | this.ruleForm.assortid = Number(this.$route.query.assortid); |
| | | }); |
| | | this.tempDetpRelevanceslist = []; |
| | | this.tempbelongWards = []; |
| | | depthospgetsonlist(this.queryParamsdept).then((res) => { |
| | | if (res.code == 200) { |
| | | let arr = res.rows; |
| | | arr.forEach((item) => { |
| | | if (item.deptType == 1) { |
| | | this.deptlist.push(item); |
| | | this.tempDetpRelevanceslist.push(item.deptCode); |
| | | } else if (item.deptType == 2) { |
| | | this.hosplist.push(item); |
| | | this.tempbelongWards.push(item.deptCode); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | // ç§å®¤ |
| | |
| | | this.ruleForm.assortid = -1; |
| | | } |
| | | this.ruleForm.labelInfo = JSON.stringify(this.dynamicTags); |
| | | this.ruleForm.suitway = this.ruleForm.suitway.join(","); |
| | | this.ruleForm.campus = this.ruleForm.campus.join(","); |
| | | this.ruleForm.submoduleID = this.ruleForm.submoduleID.join(","); |
| | | if (Array.isArray(this.ruleForm.suitway)) this.ruleForm.suitway = this.ruleForm.suitway.join(","); |
| | | if (Array.isArray(this.ruleForm.campus))this.ruleForm.campus = this.ruleForm.campus.join(","); |
| | | if (Array.isArray(this.ruleForm.submoduleID))this.ruleForm.submoduleID = this.ruleForm.submoduleID.join(","); |
| | | |
| | | // æäº¤ |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.forEach((res) => { |
| | |
| | | // ç§å®¤å¤ç |
| | | Departmenttreatment() { |
| | | this.$modal.loading("æ£å¨ä¿®æ£ä¿åæ°æ®ï¼è¯·ç¨å..."); |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList = |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList); |
| | | const result = this.tempDetpRelevanceslist.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | | // idæ°ç»æ¥æ°ç»å¯¹è±¡ |
| | | result.forEach((item) => { |
| | | const condition = this.ruleForm.tempDetpRelevances.some( |
| | | (obj) => obj.deptId === item |
| | | ); |
| | | if (!condition) { |
| | | listDept({ deptId: item }).then((res) => { |
| | | res.data[0].type = 2; |
| | | this.ruleForm.tempDetpRelevances.push(res.data[0]); |
| | | this.tempDetpRelevanceslist.forEach((item) => { |
| | | console.log(item); |
| | | let result = this.deptlist.some((obj) => obj.deptCode == item); |
| | | console.log(this.result, "result"); |
| | | |
| | | if (!result) { |
| | | this.tempDetpRelevanceslistform.push({ |
| | | deptType: 1, |
| | | longTemp: this.ruleForm.longTemp, |
| | | deptCode: item, |
| | | tempid: this.id, |
| | | type: 1, |
| | | }); |
| | | } |
| | | }); |
| | | console.log(this.ruleForm.tempDetpRelevances); |
| | | // æ°ç»å¯¹è±¡æ¥idæ°ç» |
| | | this.ruleForm.tempDetpRelevances.forEach((item) => { |
| | | const condition = result.some((obj) => obj === item.deptId); |
| | | if (!condition) { |
| | | const index = this.ruleForm.tempDetpRelevances.indexOf(item); |
| | | this.ruleForm.tempDetpRelevances[index].delFlag = 1; |
| | | this.tempbelongWards.forEach((item) => { |
| | | let result = this.hosplist.some((obj) => obj.deptCode == item); |
| | | if (!result) { |
| | | this.tempbelongWardsform.push({ |
| | | deptType: 2, |
| | | longTemp: this.ruleForm.longTemp, |
| | | deptCode: item, |
| | | tempid: this.id, |
| | | type: 1, |
| | | }); |
| | | } |
| | | }); |
| | | console.log(this.ruleForm.tempDetpRelevances); |
| | | setTimeout(() => { |
| | | this.submitForm(); |
| | | }, 1000); |
| | | // this.submitForm(); |
| | | }, |
| | | // ä¿åç§å®¤/ç
åº |
| | | putbelongDepts(id) { |
| | | if (this.tempDetpRelevanceslistform.length > 0) { |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("ç§å®¤æ°å¢æå"); |
| | | } |
| | | }); |
| | | } |
| | | if (this.tempbelongWardsform.length > 0) { |
| | | depthospgetson(this.tempbelongWardsform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("é¢åºæ°å¢æå"); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | // ä¸ä¸æ¥ |
| | | nextstep() { |
| | |
| | | }); |
| | | }, |
| | | addtopic(row) { |
| | | console.log(row); |
| | | if ( |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.some( |
| | | (obj) => obj.scriptTopic == row.scriptTopic |
| | |
| | | }); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data); |
| | | this.sortFn(); |
| | | this.$forceUpdate(); |
| | | this.$modal.msgSuccess("æ·»å æå"); |
| | | }); |
| | | }, |
| | |
| | | sortFn() { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.forEach((item, index) => { |
| | | item.sort = Number(index) + 1; |
| | | console.log(1); |
| | | console.log(this.ruleForm.ivrLibaTemplateScriptVOList.length); |
| | | console.log(item.sort); |
| | | |
| | | if (item.sort == this.ruleForm.ivrLibaTemplateScriptVOList.length) { |
| | | item.nextScriptno = 0; |
| | |
| | | resetForm(formName) { |
| | | this.$refs[formName].resetFields(); |
| | | }, |
| | | |
| | | // ç§å®¤å é¤è§¦å |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | | .map((item) => item.id); |
| | | console.log(result.length); |
| | | if (result.length) { |
| | | depthospgetsondel(result).then((res) => { |
| | | if (res.code) { |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | // å é¤å é¤è§¦å |
| | | removehpsp(row) { |
| | | let result = this.hosplist |
| | | .filter((item) => item.deptCode == row) |
| | | .map((item) => item.id); |
| | | if (result.length) { |
| | | depthospgetsondel(result).then((res) => { |
| | | if (res.code) { |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | // é¢è§--------------- |
| | | preview() { |
| | | console.log(this.ruleForm); |
| | |
| | | submitForm: function () { |
| | | this.form.hospInfo = JSON.stringify(this.form.deptCodes); |
| | | this.form.deptInfo = JSON.stringify(this.form.wardCodes); |
| | | if (this.form.deptCodes.length) |
| | | this.form.deptCodes = this.form.deptCodes.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | | if (this.form.wardCodes.length) |
| | | this.form.wardCodes = this.form.wardCodes.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `http://192.168.168.60:8095`, |
| | | target: `http://192.168.1.10:8095`, |
| | | target: `http://192.168.2.10:8095`, |
| | | // target:`http://localhost:8095`, |
| | | // target: `http://192.168.101.135:8095`, |
| | | // target: `http://192.168.101.166:8093`, |