|
@@ -635,7 +635,7 @@
|
|
|
<el-option
|
|
<el-option
|
|
|
:label="item.value"
|
|
:label="item.value"
|
|
|
:value="item.key"
|
|
:value="item.key"
|
|
|
- v-for="(item,index) in scope.row.usageList"
|
|
|
|
|
|
|
+ v-for="(item,index) in usageList"
|
|
|
:key="scope.row.id+'h'+index"
|
|
:key="scope.row.id+'h'+index"
|
|
|
></el-option>
|
|
></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -993,7 +993,7 @@ import { debounce } from "@/utils/format.js";
|
|
|
import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
|
|
import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
|
|
|
import popup from "@/components/Propup.vue";
|
|
import popup from "@/components/Propup.vue";
|
|
|
import accompanied from "./ui/accompanied.vue";
|
|
import accompanied from "./ui/accompanied.vue";
|
|
|
-import {CC_Dosage2Basis} from '@/utils/medicine';
|
|
|
|
|
|
|
+import {CC_Basis2Dosage, CC_Dosage2Basis} from '@/utils/medicine';
|
|
|
|
|
|
|
|
let medicineBlurTimer;
|
|
let medicineBlurTimer;
|
|
|
export default {
|
|
export default {
|
|
@@ -1832,7 +1832,7 @@ export default {
|
|
|
name: item.ypmc,
|
|
name: item.ypmc,
|
|
|
spec: item.gg, // 规格
|
|
spec: item.gg, // 规格
|
|
|
// dose: "", // 剂量
|
|
// dose: "", // 剂量
|
|
|
- dose: scope.row.color === "red" || oneself ? scope.row.dose : "",
|
|
|
|
|
|
|
+ dose: scope.row.color === "red" || oneself ? null : "",
|
|
|
unit: item.dw, // 单位
|
|
unit: item.dw, // 单位
|
|
|
usage:
|
|
usage:
|
|
|
oneself ? scope.row.usage : scope.row.color === "red"
|
|
oneself ? scope.row.usage : scope.row.color === "red"
|
|
@@ -1852,6 +1852,12 @@ export default {
|
|
|
};
|
|
};
|
|
|
obj.ggnum = +item.ggnum || 1;
|
|
obj.ggnum = +item.ggnum || 1;
|
|
|
obj.xbzxs = +item.xbzxs || '34'.includes(item.zylx) ? obj.ggnum : 1;
|
|
obj.xbzxs = +item.xbzxs || '34'.includes(item.zylx) ? obj.ggnum : 1;
|
|
|
|
|
+
|
|
|
|
|
+ if (obj.dose == null) {
|
|
|
|
|
+ obj.oldDose = CC_Dosage2Basis(scope.row)
|
|
|
|
|
+ obj.dose = CC_Basis2Dosage(obj)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
Object.assign(totalData[scope.row.id - 1], obj);
|
|
Object.assign(totalData[scope.row.id - 1], obj);
|
|
|
|
|
|
|
|
// 调用 父级合理用药接口
|
|
// 调用 父级合理用药接口
|