src/api/picture/pureToneTest.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/picture/music/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/system/package/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/picture/pureToneTest.js
@@ -55,19 +55,28 @@ } // 保存纯音听阈结果测定值接口 export function saveTjPureToneTestDetil(data) { export function saveTjPureToneTestDetil(pureToneTestDetils, remark, tjNum, doctorName) { const data = { } return request({ url: '/pureToneTest/pureToneTest/saveTjPureToneTestDetil', method: 'post', data: data data: { pureToneTestDetils, remark, tjNum, doctorName, }, }) } // 获取纯音听阈结果测定值接口 export function getTjPureToneTestDetilList(pureTestId) { export function getTjPureToneTestDetilList(query) { return request({ url: '/pureToneTest/pureToneTest/getTjPureToneTestDetilList', method: 'get', params:{pureTestId: pureTestId} params: query }) } src/views/picture/music/index.vue
@@ -221,7 +221,8 @@ <!-- </div> --> </div> <div style="margin-right: 70%"> <div class="pag"> <div class="pag1"> <pagination v-show="total > 0" :total="total" @@ -229,6 +230,7 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> </div> </div> <el-drawer title="我是标题" @@ -511,9 +513,52 @@ </div> </div> <div class="tanchuangbox_right"> <div> <div v-if="row.tjType == '02'"> <span>职业史</span> <div style="width: 100%; min-height: 300px"></div> <div style="width: 100%; min-height: 200px; margin-top: 10px"> <el-table border :data="row.workLogs" style="width: 100%" max-height="200" > <el-table-column prop="beginTime" label="开始时间" align="center" :show-overflow-tooltip="true" > </el-table-column> <el-table-column prop="endTime" label="结束时间" align="center" :show-overflow-tooltip="true" > </el-table-column> <el-table-column prop="workCompany" label="工作单位" align="center" :show-overflow-tooltip="true" > </el-table-column> <el-table-column prop="workDept" label="部门" align="center" :show-overflow-tooltip="true" > </el-table-column> <el-table-column prop="workType" label="工种" align="center" :show-overflow-tooltip="true" > </el-table-column> </el-table> </div> </div> <div style="display: flex; margin-top: 20px"> <div @@ -622,12 +667,23 @@ </div> <div style="margin-top: 20px"> <span>检查医生:</span> <el-input v-model="input" style="width: 160px; margin-right: 10px" ></el-input> <el-date-picker v-model="value1" type="date" placeholder="选择日期"> </el-date-picker> <el-select v-model="doctorName" placeholder="请选择" style="width: 30%" filterable @change="selName" > <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId" > </el-option> </el-select> <!-- <el-date-picker v-model="value1" type="date" placeholder="选择日期"> </el-date-picker> --> </div> <div style="margin-top: 20px"> <!-- <el-button type="primary">生成小结</el-button> --> @@ -661,7 +717,8 @@ require("echarts/lib/component/tooltip"); require("echarts/lib/component/legend"); require("echarts/lib/chart/pie"); import { listUser } from "@/api/system/user"; import { getInfo } from "@/api/login"; import Public from "@/components/public"; export default { dicts: [ @@ -676,6 +733,9 @@ components: { Public }, data() { return { tjNum:"", doctorName:"", userList: [], remark:"", pureTestId: "", youerList: { @@ -822,6 +882,7 @@ }, created() { this.getList(); this.getListUser(); }, mounted() { this.$nextTick(() => { @@ -829,6 +890,26 @@ }); }, methods: { /** 查询用户列表 */ getListUser() { listUser(this.addDateRange(this.queryParams, this.dateRange)).then( (response) => { this.userList = response.rows; // this.userList.forEach((element) => { // const userName = this.$store.state.user.name; // if (userName == element.userName) { // this.doctorName = element.nickName; // } // }); } ); getInfo().then((response) => { this.info = response.user; this.deptId = response.user.deptId; this.userId = response.user.userId; this.nickName = response.user.nickName; }); }, ysels(val) { this.youeryuanshi1[0] = val; this.getech(); @@ -926,6 +1007,15 @@ this.zuoerjiaozheng1[5] = val; this.getech3(); }, selName(val) { this.doctorName = val; console.log(this.doctorName); // this.userList.forEach(item =>{ // if(val === item.userId){ // this.doctorName = item.nickName // } // }) }, handleRowClick(selection) { this.row = selection.customer; selection.list.forEach((item) => { @@ -933,10 +1023,15 @@ }); this.row.tjType = Number(selection.customer.tjType); this.drawer = true; let pureTestId = this.pureTestId; getTjPureToneTestDetilList(pureTestId).then((res) => { if (res.data != []) { res.data.forEach((item) => { let data = { pureTestId:this.pureTestId, tjNum:this.row.tjNumber, } getTjPureToneTestDetilList(data).then((res) => { if (res.data != {}) { this.doctorName = res.data.doctorName; this.remark = res.data.remark; res.data.detilList.forEach((item) => { if (item.rd == "右耳") { this.youerList = item; this.youeryuanshi1[0] = this.youerList.qdwb; @@ -1373,8 +1468,11 @@ this.zuoerList.rd = "左耳"; this.shuangerList.pureTestId = this.pureTestId; this.shuangerList.rd = "双耳"; let data = [this.youerList, this.zuoerList, this.shuangerList]; saveTjPureToneTestDetil(data).then((res) => { let pureToneTestDetils = [this.youerList, this.zuoerList, this.shuangerList]; let remark = this.remark; let tjNum = this.row.tjNumber; let doctorName = this.doctorName; saveTjPureToneTestDetil(pureToneTestDetils,remark,tjNum,doctorName).then((res) => { console.log(res); if (res.code == 200) { this.$modal.msgSuccess("提交成功"); @@ -1496,4 +1594,13 @@ .ss_txt { width: 60px; } .pag { width: 100%; display: flex; justify-content: center; } .pag1 { width: 30%; } </style> src/views/system/package/index.vue
@@ -144,7 +144,13 @@ width="150px" fixed /> <el-table-column label="价格" width="80px" align="center" prop="price" fixed> <el-table-column label="价格" width="80px" align="center" prop="price" fixed > </el-table-column> <el-table-column label="单项列表" @@ -181,8 +187,6 @@ <image-preview :src="scope.row.pacPhone" :width="50" :height="50" /> </template> </el-table-column> --> <el-table-column label="关键字" @@ -297,7 +301,7 @@ <el-dialog :title="title" :visible.sync="open" width="1000px" width="1100px" append-to-body > <el-form @@ -320,7 +324,7 @@ <el-input v-model="form.pacName" placeholder="请输入套餐名称" style="width: 200px" style="width: 150px" /> </el-form-item> <el-form-item label="套餐状态" prop="pacStatus"> @@ -331,7 +335,7 @@ <el-select v-model="form.pacStatus" placeholder="请选择状态" style="width: 200px" style="width: 150px" filterable clearable > @@ -353,7 +357,7 @@ <el-select v-model="form.categoryId" placeholder="请选择套餐类目" style="width: 200px" style="width: 150px" @change="shangpin" filterable clearable @@ -372,7 +376,7 @@ multiple v-model="form.keywords" placeholder="请选择关键字" style="width: 200px" style="width: 150px" @change="sel" filterable clearable @@ -393,7 +397,7 @@ <el-select v-model="form.isOnSale" placeholder="请选择是否上架" style="width: 200px" style="width: 150px" filterable clearable > @@ -410,29 +414,32 @@ <el-input v-model="form.sort" placeholder="请输入排序" style="width: 200px" style="width: 150px" /> </el-form-item> <el-form-item label="小程序价格" prop="retailPrice"> <el-input v-model="form.retailPrice" placeholder="请输入小程序价格" style="width: 200px" style="width: 150px" /> </el-form-item> <el-form-item label="原价" prop="counterPrice"> <el-input v-model="form.counterPrice" placeholder="请输入原价" style="width: 200px" style="width: 150px" /> </el-form-item> <div v-if="!isCollapsed" style="display:flex"> <div> <el-form-item label="套餐描述" prop="pacRemark"> <el-input type="textarea" v-model="form.pacRemark" placeholder="请输入套餐描述" style="width: 820px" style="width: 670px" rows="2" ></el-input> </el-form-item> @@ -442,8 +449,13 @@ placeholder="请输入详细介绍" style="width: 200px" /> --> <editor v-model="form.detail" :min-height="192" /> <editor v-model="form.detail" :min-height="192" style="width: 670px" /> </el-form-item> </div> <!-- </div> --> <div class="dialo2"> <el-form-item label="图片"> @@ -451,15 +463,18 @@ </el-form-item> </div> <!-- </div> --> </div> </el-form> <el-button type="primary" plain size="mini" @click="toggleCollapse">{{ isCollapsed ? "展开" : "收起" }}</el-button> <el-button type="primary" plain size="mini" icon="el-icon-plus" @click="addmembers()" >新增</el-button >新增单项</el-button > <el-table v-loading="loading" @@ -607,6 +622,7 @@ } }; return { isCollapsed: true, // 默认为折叠状态 categoryList: [], keys: "", keywordList: [], @@ -689,6 +705,9 @@ this.getCategory(); }, methods: { toggleCollapse() { this.isCollapsed = !this.isCollapsed; // 点击按钮时切换isCollapsed的值 }, /** 查询体检套餐列表 */ getList() { this.loading = true;