|
@@ -23,13 +23,14 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item class="bi_tian" label="代煎:">
|
|
|
- <el-input-number v-model="chuFang.quantityDj" :max="chuFang.quantity"
|
|
|
- :min="0"></el-input-number>
|
|
|
+ <el-input-number v-model="chuFang.quantityDj"
|
|
|
+ :max="chuFang.quantity"
|
|
|
+ :min="0"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item class="bi_tian" label="执行科室:">
|
|
|
- {{ huanZheXinXi.smallDeptName }}
|
|
|
+ <dept-select v-model="chuFang.execDept"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
@@ -49,22 +50,22 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="加水量(ml):">
|
|
|
- <el-input-number v-model="chuFang.cyJsl"></el-input-number>
|
|
|
+ <el-input-number v-model="chuFang.cyJsl"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="煮取(ml):">
|
|
|
- <el-input-number v-model="chuFang.cyZql"></el-input-number>
|
|
|
+ <el-input-number v-model="chuFang.cyZql"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="复煎:">
|
|
|
- <el-input-number v-model="chuFang.cyFj"></el-input-number>
|
|
|
+ <el-input-number v-model="chuFang.cyFj"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="分几次:">
|
|
|
- <el-input-number v-model="chuFang.cyFfcs"></el-input-number>
|
|
|
+ <el-input-number v-model="chuFang.cyFfcs"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
@@ -173,7 +174,8 @@ import {
|
|
|
cuoWuXinXi,
|
|
|
huanZheXinXi,
|
|
|
youWuXuanZheHuanZhe,
|
|
|
- mingXi, yzHeaderSize
|
|
|
+ mingXi,
|
|
|
+ yzHeaderSize
|
|
|
} from '@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng'
|
|
|
import {
|
|
|
baoCunCaoYao,
|
|
@@ -192,6 +194,8 @@ import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid";
|
|
|
import sleep from "@/utils/sleep";
|
|
|
import CaoYaoCuoWuXinXin from "@/components/zhu-yuan-yi-sheng/cao-yao-yi-zhu/CaoYaoCuoWuXinXin.vue";
|
|
|
import {getWindowSize} from "@/utils/window-size";
|
|
|
+import DeptSelect from "@/components/xiao-chan/dept-code/DeptSelect.vue";
|
|
|
+import Dig from "@/utils/math";
|
|
|
|
|
|
const props = defineProps({
|
|
|
saveSuccess: Function
|
|
@@ -205,16 +209,17 @@ const windowSize = computed(() => {
|
|
|
* 处方信息
|
|
|
*/
|
|
|
const chuFang = ref({
|
|
|
- orderName: '',
|
|
|
+ orderName: '草药',
|
|
|
quantity: 0,
|
|
|
quantityDj: 0,
|
|
|
cyMtjs: 0,
|
|
|
- cyJsl: 0,
|
|
|
- cyZql: 0,
|
|
|
+ cyJsl: 400,
|
|
|
+ cyZql: 200,
|
|
|
cyFj: 0,
|
|
|
cyFfcs: 0,
|
|
|
cyJssm: '',
|
|
|
groupNo: '81',
|
|
|
+ execDept: ''
|
|
|
})
|
|
|
/**
|
|
|
* 编辑草药
|
|
@@ -242,16 +247,17 @@ const wipeData = () => {
|
|
|
je: '',
|
|
|
}
|
|
|
chuFang.value = {
|
|
|
- orderName: '',
|
|
|
+ orderName: '草药',
|
|
|
quantity: 0,
|
|
|
quantityDj: 0,
|
|
|
cyMtjs: 0,
|
|
|
- cyJsl: 0,
|
|
|
- cyZql: 0,
|
|
|
+ cyJsl: 400,
|
|
|
+ cyZql: 200,
|
|
|
cyFj: 0,
|
|
|
cyFfcs: 0,
|
|
|
cyJssm: '',
|
|
|
groupNo: '81',
|
|
|
+ execDept: huanZheXinXi.value.smallDept
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -325,10 +331,14 @@ const dianJiBianJi = (row) => {
|
|
|
watch(
|
|
|
() => caoYao.value.quantity,
|
|
|
() => {
|
|
|
- caoYao.value.je = (caoYao.value.quantity * caoYao.value.retprice).toFixed(2)
|
|
|
+ caoYao.value.je = Dig.multiply(caoYao.value.quantity, caoYao.value.retprice).toFixed(2)
|
|
|
}
|
|
|
)
|
|
|
|
|
|
+watch(() => huanZheXinXi.value, () => {
|
|
|
+ chuFang.value.execDept = huanZheXinXi.value.smallDept
|
|
|
+})
|
|
|
+
|
|
|
/**
|
|
|
* 下面是取模板的
|
|
|
*/
|
|
@@ -400,12 +410,12 @@ const dianJiBaoCunCaoYao = () => {
|
|
|
if (stringIsBlank(chuFang.value.orderName)) {
|
|
|
return ElMessage.error('请输入处方名。')
|
|
|
}
|
|
|
- if (chuFang.value.quantity === 0) {
|
|
|
- return ElMessage.error('请选择剂数')
|
|
|
- }
|
|
|
- if (chuFang.value.quantityDj === 0) {
|
|
|
- return ElMessage.error('请选择代煎数')
|
|
|
- }
|
|
|
+ // if (chuFang.value.quantity === 0) {
|
|
|
+ // return ElMessage.error('请选择剂数')
|
|
|
+ // }
|
|
|
+ // if (chuFang.value.quantityDj === 0) {
|
|
|
+ // return ElMessage.error('请选择代煎数')
|
|
|
+ // }
|
|
|
let listCode = []
|
|
|
mingXi.value.list.forEach((item) => {
|
|
|
listCode.push(item.chargeCode + '-' + item.serial)
|