医嘱和包法
This commit is contained in:
6
.idea/inspectionProfiles/Project_Default.xml
generated
6
.idea/inspectionProfiles/Project_Default.xml
generated
@@ -15,7 +15,7 @@
|
||||
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="18">
|
||||
<list size="22">
|
||||
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
||||
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
||||
<item index="2" class="java.lang.String" itemvalue="comment" />
|
||||
@@ -34,6 +34,10 @@
|
||||
<item index="15" class="java.lang.String" itemvalue="u-icon" />
|
||||
<item index="16" class="java.lang.String" itemvalue="d-number-box" />
|
||||
<item index="17" class="java.lang.String" itemvalue="l-painter" />
|
||||
<item index="18" class="java.lang.String" itemvalue="u-divider" />
|
||||
<item index="19" class="java.lang.String" itemvalue="u-checkbox-group" />
|
||||
<item index="20" class="java.lang.String" itemvalue="u-checkbox" />
|
||||
<item index="21" class="java.lang.String" itemvalue="u-subsection" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
|
||||
19
api/doctorOrder.js
Normal file
19
api/doctorOrder.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import {
|
||||
req
|
||||
} from '@/common/js/index.js';
|
||||
|
||||
|
||||
|
||||
// 添加西药-全部西药列表
|
||||
/**
|
||||
* @param {Object} data
|
||||
* 参数名称 必须 参数类型 说明
|
||||
*/
|
||||
export function doctorOrderCommonList(data) {
|
||||
return req.request({
|
||||
url: '/newApi/doctor-order/common-list',
|
||||
method: 'get',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
import {config} from "@/common/js/index";
|
||||
|
||||
export async function requestConfig(ins, options, successHandler = null, failHandler = null, completeHandler = null){
|
||||
export async function requestConfig(ins, options, successHandler = null, failHandler = null, completeHandler = null){
|
||||
//原来是:ins.baseUrl = options.baseUrl || ins.baseUrl
|
||||
let baseUrl = options.baseUrl || ins.baseUrl;
|
||||
if (options.url.split('/').indexOf('newApi') !== -1) {
|
||||
// baseUrl = "http://127.0.0.1:18001/api/doctor/"
|
||||
baseUrl = "https://api.xiaokang88.com/api/doctor/"
|
||||
}
|
||||
options.url = options.url.replace('/oldApi/', '');
|
||||
options.url = options.url.replace('/newApi/', '');
|
||||
// base
|
||||
ins.header = options.header || ins.header
|
||||
//原来是:ins.baseUrl = options.baseUrl || ins.baseUrl
|
||||
let baseUrl = options.baseUrl || ins.baseUrl;
|
||||
// config base
|
||||
let config = {
|
||||
url:`${baseUrl}${options.url?options.url:''}`,
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
import Request from './request.js';
|
||||
import errorCode from './errorCode.js';
|
||||
import {Base64} from "js-base64";
|
||||
let protocol = 'https'; //协议
|
||||
let baseUrl = 'app.xiaokang88.com/service/v1/'; // 域名
|
||||
// let protocol = 'http'; //协议
|
||||
// let baseUrl = 'www.xk888.com/service/v1/'; // 域名
|
||||
let baseUrl = 'https://app.xiaokang88.com/service/v1/'; // 域名
|
||||
// let baseUrl = 'http://www.xk888.com/service/v1/'; // 域名
|
||||
export const config = {
|
||||
baseUrl: `${protocol}://${baseUrl}`
|
||||
baseUrl: baseUrl
|
||||
}
|
||||
|
||||
const arr = [
|
||||
|
||||
@@ -107,6 +107,9 @@
|
||||
<!-- <text v-if="item.deployment==2">{{' 每次 '+item.volume+' ml '}} , </text> -->
|
||||
<text> 共 {{item.dosage}} 剂 </text>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>包装方式:{{item.process_rule}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
@@ -8,6 +8,13 @@
|
||||
{{item.content}}
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="title">默认</view>-->
|
||||
<!-- <view class="box">-->
|
||||
<!-- <view class="item" @click="handleSelect(item.id)" :class="{act: selectId.includes(item.id)}"-->
|
||||
<!-- v-for="item in commonList" :key="item.id">-->
|
||||
<!-- {{item.content}}-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
<view class="flex-row flex-jus-center" v-if="list.length == 0">
|
||||
<d-empty text="暂无信息" mode="search"></d-empty>
|
||||
@@ -17,10 +24,10 @@
|
||||
<view @click="isDel = true" class="btn btn1">删除医嘱</view>
|
||||
<view @click="showAdd" class="btn btn2">添加医嘱</view>
|
||||
</view>
|
||||
<view v-else class="btnBox">
|
||||
<view @click="isDel = false; selectId = []" class="btn btn1">暂不删除</view>
|
||||
<view @click="templateDelete" class="btn btn2">删除医嘱</view>
|
||||
</view>
|
||||
<!-- <view v-else class="btnBox">-->
|
||||
<!-- <view @click="isDel = false; selectId = []" class="btn btn1">暂不删除</view>-->
|
||||
<!-- <view @click="templateDelete" class="btn btn2">删除医嘱</view>-->
|
||||
<!-- </view>-->
|
||||
<view class="modal" v-if="modalVisible">
|
||||
<view class="mask"></view>
|
||||
<view class="main">
|
||||
@@ -43,6 +50,7 @@
|
||||
addDiagnoseCommon,
|
||||
deleteDiagnoseCommon
|
||||
} from "@/api/all.js";
|
||||
import {doctorOrderCommonList} from "@/api/doctorOrder";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -55,6 +63,7 @@
|
||||
current: 0,
|
||||
keyword: "",
|
||||
list: [],
|
||||
commonList: [],
|
||||
oldList: [],
|
||||
};
|
||||
},
|
||||
@@ -169,6 +178,14 @@
|
||||
uni.hideLoading();
|
||||
this.loading2 = false;
|
||||
});
|
||||
doctorOrderCommonList({store_id: uni.getStorageSync('store_id') || 11001,})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.commonList = res.result;
|
||||
} else {
|
||||
this.$toast(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
chang(c) {
|
||||
|
||||
@@ -107,6 +107,9 @@
|
||||
<!-- <text v-if="item.deployment==2">{{' 每次 '+item.volume+' ml '}} , </text> -->
|
||||
<text> 共 {{item.dosage}} 剂 </text>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>包装方式:{{item.process_rule}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
@@ -101,7 +101,17 @@
|
||||
</u-radio-group>
|
||||
|
||||
</view>
|
||||
<view v-if="mParms.process_rule_type == 1">
|
||||
<view v-if="mParms.process_rule_type === 0">
|
||||
<view class="row">
|
||||
<d-text text="包法:" className="color9 fs-3"></d-text>
|
||||
<picker v-model="mParms.process_rule_id1" @change="changePackageMethod" range-key="name" :range="package_method">
|
||||
<view class="order">
|
||||
{{ mParms.process_rule_id1 !== '' ? getPackageMethodName() : '选择包法' }}
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="mParms.process_rule_type === 1">
|
||||
<view class="row">
|
||||
<d-text text="委托调剂:" className="color9 fs-3"></d-text>
|
||||
<picker v-model="mParms.process_rule_id1" @change="changeRuleId1" range-key="name" :range="ruleList">
|
||||
@@ -203,6 +213,16 @@
|
||||
isFresh: false,
|
||||
ruleRemarkList: [],
|
||||
ruleList: [],
|
||||
package_method: [
|
||||
{
|
||||
id: 1,
|
||||
name: '味包'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: '剂包'
|
||||
},
|
||||
],
|
||||
ruleSecList: [],
|
||||
priceChines: '',
|
||||
mParms: {
|
||||
@@ -246,7 +266,8 @@
|
||||
},
|
||||
idx: 0,
|
||||
useWay: [],
|
||||
see_rate:uni.getStorageSync('see_rate')
|
||||
see_rate:uni.getStorageSync('see_rate'),
|
||||
packageMethodSelect: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -393,6 +414,15 @@
|
||||
}
|
||||
this.getRuleList(this.ruleList[e.detail.value].id)
|
||||
},
|
||||
getPackageMethodName() {
|
||||
if (this.mParms.process_rule_id1) {
|
||||
return this.package_method.find(item => item.id == this.mParms.process_rule_id1).name
|
||||
}
|
||||
},
|
||||
changePackageMethod(e) {
|
||||
this.mParms.process_rule_id1 = this.package_method[e.detail.value].id
|
||||
this.packageMethodSelect = e.detail.value
|
||||
},
|
||||
changeRuleNote(e) {
|
||||
this.mParms = {
|
||||
...this.mParms,
|
||||
|
||||
@@ -169,8 +169,8 @@
|
||||
|
||||
</view>
|
||||
<view class="flex-row flex-jus-sp m-t-32">
|
||||
<d-text text="药品数量" className="fs-3 main-c"></d-text>
|
||||
<d-number-box v-model="obj.number" :min="1" :max="obj.stock">
|
||||
<d-text text="商品数量" className="fs-3 main-c"></d-text>
|
||||
<d-number-box v-model="obj.number" :min="1" :max="1">
|
||||
<view slot="minus" class="minus flex-row flex-jus-center flex-ali-center"
|
||||
:style="{backgroundColor:`rgba(249, 250, 251,${obj.number>1?1:0.6})`}">
|
||||
<u-icon name="minus" size="22" :color="obj.number>1?'#000':'#A7ABB0'"></u-icon>
|
||||
|
||||
@@ -359,6 +359,13 @@
|
||||
v-for="item in commentList" :key="item.id">
|
||||
{{item.content}}
|
||||
</view>
|
||||
<view style="width: 150rpx;margin: 10rpx auto;">
|
||||
大家常用
|
||||
</view>
|
||||
<view class="item" @click="allHandleSelect(item.id)" :class="{act: allSelectComment.includes(item.id)}"
|
||||
v-for="item in commonListAll" :key="item.id">
|
||||
{{item.content}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -387,6 +394,7 @@
|
||||
getDiagnoseCommonList
|
||||
} from '@/api/all.js'
|
||||
import {addServicePackagePrescription} from "../../../api/servicePackage";
|
||||
import {doctorOrderCommonList} from "@/api/doctorOrder";
|
||||
export default {
|
||||
components: {
|
||||
diagnose,
|
||||
@@ -397,7 +405,9 @@
|
||||
return {
|
||||
treatement_price: '',
|
||||
commentList: [],
|
||||
commonListAll: [],
|
||||
selectComment: [],
|
||||
allSelectComment: [],
|
||||
showComment: false,
|
||||
buttonLodging: false,
|
||||
see_rate: uni.getStorageSync('see_rate'),
|
||||
@@ -499,7 +509,6 @@
|
||||
this.tabsActive === 1 && (arr = this.mInfo)
|
||||
this.tabsActive === 2 && (arr = this.servicePackage)
|
||||
this.tabsActive === 3 && (arr = this.mInfoG)
|
||||
console.log(this.mParms, this.tabsActive, '22')
|
||||
|
||||
if (this.tabsActive === 1 || this.tabsActive === 2) {
|
||||
const dosage = this.tabsActive === 1 ? (this.mParms ? this.mParms.dosage || 0 : 0) : (this.mParmsG ?
|
||||
@@ -626,7 +635,6 @@
|
||||
this.mParms = mParms
|
||||
this.cr_ids = cr_ids
|
||||
}
|
||||
console.log(this.cr_ids, 'this.cr_ids')
|
||||
}
|
||||
if (uni.getStorageSync('clinical_diagnose')) {
|
||||
this.diagnoses = []
|
||||
@@ -649,7 +657,6 @@
|
||||
})
|
||||
},
|
||||
onLoad(op) {
|
||||
console.log(op, 'cfadd');
|
||||
this.register_id = op.r_id
|
||||
this.addType = op.addType
|
||||
let userInfo = uni.getStorageSync("userInfo");
|
||||
@@ -678,23 +685,52 @@
|
||||
this.getDiseaseCommon()
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 添加医嘱
|
||||
*/
|
||||
confirmComment() {
|
||||
let that = this;
|
||||
let txt = this.entrust ? this.entrust + ',' : ''
|
||||
this.selectComment.forEach(item => {
|
||||
const t = this.commentList.find(row => row.id == item).content + ','
|
||||
// 收藏的医嘱
|
||||
this.selectComment.forEach(id => {
|
||||
let t = that.commentList.find(row => row.id === id).content + ','
|
||||
txt += t
|
||||
})
|
||||
// 公共医嘱
|
||||
this.allSelectComment.forEach(id => {
|
||||
let t = that.commonListAll.find(row => row.id === id).content + ','
|
||||
txt += t
|
||||
})
|
||||
txt = txt.replace(/,,/g, ',')
|
||||
txt = txt.replace(/,$/g, '')
|
||||
this.entrust = txt
|
||||
this.showComment = false
|
||||
this.selectComment = []
|
||||
this.allSelectComment = []
|
||||
},
|
||||
/**
|
||||
* 自己添加的医嘱选择
|
||||
* @param id
|
||||
*/
|
||||
handleSelect(id) {
|
||||
const index = this.selectComment.findIndex(item => item == id)
|
||||
if (index < 0) {
|
||||
this.selectComment.push(id)
|
||||
} else {
|
||||
this.selectComment.splice(index, 1)
|
||||
}
|
||||
const index = this.selectComment.findIndex(item => item === id)
|
||||
if (index < 0) {
|
||||
this.selectComment.push(id)
|
||||
} else {
|
||||
this.selectComment.splice(index, 1)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 通用医嘱选择
|
||||
* @param id
|
||||
*/
|
||||
allHandleSelect(id) {
|
||||
const index = this.allSelectComment.findIndex(item => item === id)
|
||||
if (index < 0) {
|
||||
this.allSelectComment.push(id)
|
||||
} else {
|
||||
this.allSelectComment.splice(index, 1)
|
||||
}
|
||||
},
|
||||
getDiagnoseCommonList() {
|
||||
getDiagnoseCommonList({store_id: uni.getStorageSync('store_id') || 11001})
|
||||
@@ -709,6 +745,16 @@
|
||||
uni.hideLoading();
|
||||
this.loading2 = false;
|
||||
});
|
||||
|
||||
|
||||
doctorOrderCommonList({store_id: uni.getStorageSync('store_id') || 11001,})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.commonListAll = res.result;
|
||||
} else {
|
||||
this.$toast(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
customBack() {
|
||||
if (this.searchIll) {
|
||||
@@ -781,7 +827,6 @@
|
||||
|
||||
let servicePackage = uni.getStorageSync(uni.getStorageSync('add') ? 'addServicePackage' : 'servicePackage') || []
|
||||
|
||||
// console.log(chineses,'chineses')
|
||||
this.$set(this, 'wests', JSON.parse(JSON.stringify(wests)))
|
||||
this.$set(this, 'chineses', chineses)
|
||||
this.$set(this, 'granular', granular)
|
||||
@@ -852,7 +897,6 @@
|
||||
return;
|
||||
// 发送处方
|
||||
} else if (type == 0) {
|
||||
// console.log('addd');
|
||||
|
||||
try {
|
||||
let res = {}
|
||||
@@ -993,7 +1037,6 @@
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
// console.log(error)
|
||||
this.$toast(res.msg)
|
||||
}
|
||||
}
|
||||
@@ -1156,7 +1199,6 @@
|
||||
|
||||
// this.loading = false
|
||||
// if (res.errcode == 0) {
|
||||
// console.log(res, '000')
|
||||
// this.uniqueIdList = [res.data.syncResult.uniqueId]
|
||||
// this.prescription_id = res.data.id
|
||||
// this.signShow = false
|
||||
@@ -1164,12 +1206,10 @@
|
||||
// this.$toast(res.msg)
|
||||
// }
|
||||
// } catch (error) {
|
||||
// console.log(error)
|
||||
// }
|
||||
// },
|
||||
|
||||
swt(index) {
|
||||
// console.log(index,'tabs');
|
||||
this.tabsActive = index
|
||||
},
|
||||
// 获取临床诊断模块高度
|
||||
@@ -1218,7 +1258,6 @@
|
||||
this.flag = false
|
||||
},
|
||||
handleDel(id) {
|
||||
console.log(id, 'ddd')
|
||||
uni.showModal({
|
||||
title: '提示信息',
|
||||
content: '是否删除',
|
||||
|
||||
Reference in New Issue
Block a user