src/views/doctor/check/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/doctor/checkAll/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/hosp/advicerules/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/hosp/order/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/system/packages/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
vue.config.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/doctor/check/index.vue
@@ -1969,9 +1969,9 @@ }); }, hb() { if (this.queryParams.tjNumber != "") { this.submitForm(); } /* if (this.queryParams.tjNumber != "") { // this.submitForm(); } */ }, propoChange() { this.cusobj = { sex: this.tableAll.cusSex, isZj: 1 }; @@ -2004,6 +2004,7 @@ this.loading = true; this.queryParams.type = this.tjStatus; getProList(this.queryParams).then((response) => { console.log(response,333); if (response.code == 200) { this.loading = false; if (response.data) { src/views/doctor/checkAll/index.vue
@@ -655,6 +655,7 @@ > <el-table-column type="expand"> <template slot-scope="props"> <div> <div v-if=" props.row.advices && props.row.advices.length > 0 @@ -667,7 +668,6 @@ > <div> 标题: <!-- {{ jianyi.bt || "" }} --> <el-input v-model="jianyi.bt" size="small" @@ -686,7 +686,29 @@ </div> </div> </div> <!-- <div v-else style="padding: 0 10px">暂无内容</div> --> <!-- 如果 advices 为空时,渲染空的输入框 --> <div v-else> <div> 标题: <el-input v-model="emptyAdvice.bt" size="small" type="textarea" autosize ></el-input> </div> <div> 内容: <el-input v-model="emptyAdvice.nr" size="small" type="textarea" autosize ></el-input> </div> </div> </div> </template> </el-table-column> @@ -737,6 +759,8 @@ > <el-table-column type="expand"> <template slot-scope="props"> <div> <!-- 如果 advices 非空,渲染其内容 --> <div v-if=" props.row.advices && props.row.advices.length > 0 @@ -747,11 +771,8 @@ :key="index1" style="padding: 0 10px; margin-bottom: 10px" > <!-- <div>标题:{{ jianyi.bt || "" }}</div> <div>内容:{{ jianyi.nr || "" }}</div> --> <div> 标题: <!-- {{ jianyi.bt || "" }} --> <el-input v-model="jianyi.bt" size="small" @@ -770,7 +791,29 @@ </div> </div> </div> <!-- <div v-else style="padding: 0 10px">暂无内容</div> --> <!-- 如果 advices 为空时,渲染空的输入框 --> <div v-else> <div> 标题: <el-input v-model="emptyAdvice.bt" size="small" type="textarea" autosize ></el-input> </div> <div> 内容: <el-input v-model="emptyAdvice.nr" size="small" type="textarea" autosize ></el-input> </div> </div> </div> </template> </el-table-column> @@ -1368,7 +1411,10 @@ data() { return { // 更新总检建议 emptyAdvice: { bt: "", nr: "", }, initialTotalCheckAdvice: "", initialState: "", preObj: {}, @@ -2382,7 +2428,12 @@ }); // 等待所有请求完成 Promise.all([reportPromise, statePromise,addOrderPromise, ...updatePromises]) Promise.all([ reportPromise, statePromise, addOrderPromise, ...updatePromises, ]) .then(() => { // 所有请求完成,关闭 loading this.loading = false; @@ -2591,6 +2642,7 @@ max-height: calc(100vh - 100px); /* 假设你想为顶部和底部留出一些空间 */ overflow-y: auto; /* 允许垂直滚动 */ padding: 0 0 50px; /* 可选:添加一些内边距以避免内容紧贴边缘 */ padding-bottom: 200px; } } src/views/hosp/advicerules/index.vue
@@ -240,9 +240,9 @@ /> </el-form-item> <el-form-item label="范围" prop="fw"> <el-form-item label="范围" prop="fwz"> <el-input v-model="form.fw" v-model="form.fwz" placeholder="请输入范围" style="width: 200px" /> @@ -276,37 +276,22 @@ <el-checkbox v-model="form.sfcjb" true-label="是" false-label="否" false-label="" ></el-checkbox> <!-- <el-input v-model="form.sfcjb" style="width: 200px" placeholder="请输入是否常见病" /> --> </el-form-item> <el-form-item label="慢性病" prop="sfmxb"> <el-checkbox v-model="form.sfmxb" true-label="是" false-label="否" false-label="" ></el-checkbox> <!-- <el-input v-model="form.sfmxb" style="width: 200px" placeholder="请输入是否慢性病" /> --> </el-form-item> <el-form-item label="重大疾病" prop="sfzdjb"> <el-checkbox v-model="form.sfzdjb" true-label="是" false-label="否" false-label="" ></el-checkbox> <!-- <el-input v-model="form.sfzdjb" style="width: 200px" placeholder="请输入是否重大疾病" /> --> </el-form-item> <el-form-item label="建议名称" prop="jymc" style="display: block"> <el-input src/views/hosp/order/index.vue
@@ -673,7 +673,7 @@ :props="defaultProps" show-checkbox node-key="proId" @check="handleCurrentChecked" @check-change="handleCurrentChecked" :default-checked-keys="checkedkey" :filter-node-method="filterNode" ref="tree" @@ -966,7 +966,7 @@ :props="defaultProp" show-checkbox node-key="id" @check="handlepackage" @check-change="handlepackage" :default-checked-keys="checkedkeys" :filter-node-method="filterpackage" ref="treas" @@ -1027,7 +1027,7 @@ :props="defaultProps" show-checkbox node-key="proId" @check="handleCurrentChecked" @check-change="handleCurrentChecked" :default-checked-keys="checkedkey" :filter-node-method="filterNode" ref="tree" @@ -1180,7 +1180,7 @@ </el-table-column> </el-table> <!-- <h3 style="font-weight: 600">合计:{{ marryalls }}元</h3> --> <h3 style="font-weight: 600">合计:{{ marryalls }}元</h3> </div> </div> @@ -2513,8 +2513,88 @@ // } } }, handlepackage(data, checked, checkedNodes) { if (checked == true) { this.$refs.treas.setCheckedKeys([data.id]); let datas = { zhId: data.id, }; getlistByZhId(datas).then((res) => { this.packagedataList = res.data.tjProjectList; for (var i = 0; i < this.packagedataList.length; i++) { let proId = this.packagedataList[i].proId; getProSonDxList(proId).then((res) => { this.TreedataList = res.data.list; this.TreedataList.forEach((item) => { this.Datalists.push(item); }); // 合并 Datalists 和 DataList 到 DataList3 this.DataList3 = this.DataList.concat(this.Datalists); // 清空累加器 this.marryalls = 0; this.TotalPrice1 = 0; // 重新计算价格 this.DataList3.forEach((item) => { console.log(item.proPrice); this.TotalPrice1 += item.proPrice * item.sl; this.marryalls += item.proPrice; }); // 为每个项目添加 propinName this.Datalists.forEach((item1) => { this.packagedataList.forEach((item3) => { if (item1.proParentId == item3.proId) { item1.propinName = item3.proName; } }); }); }); } }); } else if (checked == false) { let datas = { zhId: data.id, }; this.marryalls = 0; // 清空 Datalists 和 DataList3 this.Datalists = []; this.DataList3 = [...this.DataList]; // 重新设置 DataList3,仅包含原始 DataList getlistByZhId(datas).then((res) => { this.packagedataList = res.data.tjProjectList; for (var i = 0; i < this.packagedataList.length; i++) { let proId = this.packagedataList[i].proId; getProSonDxList(proId).then((res) => { this.TreedataList = res.data.list; this.checkedListkey = this.checkedListkey.filter( (id) => id !== proId ); // 从 DataList3 中移除相关的子项 this.DataList3 = this.DataList3.filter( (item) => item.proParentId !== proId ); // 更新总价格 this.TotalPrice1 = 0; // 清空价格 this.DataList3.forEach((item) => { this.TotalPrice1 += item.proPrice; }); }); } }); } }, /* handlepackage(data, checked, checkedNodes) { console.log(checked, 3333); if (checked.checkedNodes.length != 0) { this.$refs.treas.setCheckedKeys([data.id]); let datas = { @@ -2537,7 +2617,7 @@ this.marryalls += item1.proPrice; // this.TotalPrice1 = this.marryalls; this.TotalPrice1 = 0; console.log(this.DataList3, 9999999999); if (this.DataList3.length != 0) { this.DataList3.forEach((item) => { console.log(item.proPrice); @@ -2557,7 +2637,7 @@ }); } else if (checked.checkedNodes.length == 0) { } }, }, */ renderContent(h, { node, data, store }) { return ( @@ -2664,9 +2744,10 @@ }, // 点击获取每个树节点 handleCurrentChecked(data, checked, checkedNodes) { /* handleCurrentChecked(data, checked, checkedNodes) { this.dataObj = data; if (checked.checkedNodes.length != 0) { this.checkedObj = checked; if (checked == true) { this.$refs.tree.setCheckedKeys([data.proId]); let proId = data.proId; getProSonDxList(proId).then((res) => { @@ -2699,11 +2780,78 @@ // } // } }); } else if (checked.checkedNodes.length == 0) { } else if (checked == false) { let proId = data.proId; getProSonDxList(proId).then((res) => { this.TreedataList = res.data.list; this.checkedListkey = []; this.TreedataList.forEach((item) => { item.disabled = true; }); this.DataList3.forEach((item, index) => { if (item.proParentId == this.dataObj.proId) { this.DataList3.splice(index, this.TreedataList.length); } }); // 手动更新总价格 this.TotalPrice1 = 0; this.DataList3.forEach((item, index) => { this.TotalPrice1 += item.proPrice * item.sl; }); }); } }, */ handleCurrentChecked(data, checked, checkedNodes) { this.dataObj = data; this.checkedObj = checked; if (checked === true) { this.$refs.tree.setCheckedKeys([data.proId]); let proId = data.proId; getProSonDxList(proId).then((res) => { this.TreedataList = res.data.list; this.TreedataList.forEach((item) => { item.disabled = true; this.checkedListkey.push(item.proId); this.DataList3.push(item); this.spliceData(); this.DataList3.forEach((item1) => { this.TotalPrice1 += item1.proPrice * item1.sl; if (item1.proParentId == data.proId) { item1.propinName = data.proName; item1.propinPrice = this.dataObj.proPrice; } }); }); // 更新总价格 this.TotalPrice1 = 0; this.DataList3.forEach((item) => { this.TotalPrice1 += item.proPrice * item.sl; }); }); } else if (checked === false) { // 当取消选中时 let proId = data.proId; getProSonDxList(proId).then((res) => { this.TreedataList = res.data.list; // 从已选列表中移除该项目的 ID this.checkedListkey = this.checkedListkey.filter( (id) => id !== proId ); // 从 DataList3 中移除相关的子项 this.DataList3 = this.DataList3.filter( (item) => item.proParentId !== proId ); // 更新总价格 this.TotalPrice1 = 0; this.DataList3.forEach((item) => { this.TotalPrice1 += item.proPrice * item.sl; }); }); } }, src/views/system/packages/index.vue
@@ -263,6 +263,8 @@ > <el-table-column prop="propinName" label="检查项目"> </el-table-column> <el-table-column prop="sl" label="数量" width="56px"> </el-table-column> <el-table-column prop="proPrice" label="原价" width="56px"> </el-table-column> <el-table-column prop="proName" label="明细项目" width="260px"> @@ -589,7 +591,10 @@ }); this.pics = 0; this.DataList.forEach((item) => { this.pics += item.proPrice; console.log(this.DataList,8888); this.pics += item.proPrice * item.sl; // this.pics += item.proPrice; }); } }); @@ -612,7 +617,7 @@ }); this.pics = 0; this.DataList.forEach((item) => { this.pics += item.proPrice; this.pics += item.proPrice * item.sl; }); }); }); @@ -623,6 +628,8 @@ handleCurrentChecked(data, checked, checkedNodes) { this.dataObj = data; this.checkedObj = checked; console.log(checked,555); if (checked == true) { // this.$refs.tree.setCheckedKeys([data.proId]); let proId = data.proId; @@ -635,7 +642,7 @@ this.spliceData(); this.pics = 0; this.DataList.forEach((item1) => { this.pics += item1.proPrice; this.pics += item1.proPrice * item1.sl; if (item1.proParentId == data.proId) { item1.propinName = data.proName; item1.propinPrice = this.dataObj.proPrice; @@ -648,7 +655,7 @@ this.list1 = false; this.DataList.forEach((item) => { this.TotalPrice1 = item.proPrice + this.TotalPrice1; this.pics += item.proPrice; this.pics += item.proPrice * item.sl; }); } }); @@ -667,7 +674,7 @@ }); this.pics = 0; this.DataList.forEach((item, index) => { this.pics += item.proPrice; this.pics += item.proPrice * item.sl; }); }); } @@ -695,7 +702,7 @@ this.TotalPrice1 = 0; this.pics = 0; this.DataList.forEach((item1) => { this.pics += item1.proPrice; this.pics + item1.proPrice * item1.sl; // this.TotalPrice1 = item1.proPrice + this.TotalPrice1; }); } @@ -704,7 +711,7 @@ this.DataList.push(data); this.pics = 0; this.DataList.forEach((item1) => { this.pics += item1.proPrice; this.pics += item1.proPrice * item1.sl; if (item1.proParentId == this.dataObj.proId) { item1.propinName = this.dataObj.proName; item1.propinPrice = this.dataObj.proPrice; @@ -715,7 +722,7 @@ this.pics = 0; this.DataList.forEach((item1) => { // this.TotalPrice1 = item1.proPrice + this.TotalPrice1; this.pics += item1.proPrice; this.pics += item1.proPrice * item1.sl; }); } }, vue.config.js
@@ -53,8 +53,8 @@ // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { // target: `https://ltpeis.xaltjdkj.cn:5801/`, target: `http://192.168.1.2:5011`, // target: `http://192.168.1.113:5011`, // target: `http://192.168.1.2:5011`, target: `http://192.168.1.113:5011`, // // target: `http://192.168.0.99:8080/ltkj-admin`, // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`, // target: `http://10.168.0.9:5011`,