|
@@ -285,14 +285,16 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex-vertical-between center-header">
|
|
<div class="flex-vertical-between center-header">
|
|
|
<div class="center-tab flex-vertical-center-l">
|
|
<div class="center-tab flex-vertical-center-l">
|
|
|
- <div
|
|
|
|
|
- :class="container_i==index?'flex-center active':'flex-center'"
|
|
|
|
|
- @click.self="changeContainer(index)"
|
|
|
|
|
- v-for="(item,index) in contentTabs"
|
|
|
|
|
- :key="item.name+index"
|
|
|
|
|
- >
|
|
|
|
|
- <span @click="changeContainer(index)" :style="{color:item.color}">{{item.name}}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <template v-for="(item,index) in contentTabs">
|
|
|
|
|
+ <div
|
|
|
|
|
+ :class="container_i==index?'flex-center active':'flex-center'"
|
|
|
|
|
+ @click.self="changeContainer(index)"
|
|
|
|
|
+ v-if="!item.hide"
|
|
|
|
|
+ :key="item.name+index"
|
|
|
|
|
+ >
|
|
|
|
|
+ <span @click="changeContainer(index)" :style="{color:item.color}">{{item.name}}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="header-total flex-vertical-center-r flex-wrap" v-if="false">
|
|
<div class="header-total flex-vertical-center-r flex-wrap" v-if="false">
|
|
|
<div v-if="contentTabs[0].check">
|
|
<div v-if="contentTabs[0].check">
|
|
@@ -1318,11 +1320,13 @@ export default {
|
|
|
{
|
|
{
|
|
|
name: "中药制剂",
|
|
name: "中药制剂",
|
|
|
check: false,
|
|
check: false,
|
|
|
|
|
+ hide: true,
|
|
|
color: ""
|
|
color: ""
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: "适宜技术处方",
|
|
name: "适宜技术处方",
|
|
|
check: false,
|
|
check: false,
|
|
|
|
|
+ hide: true,
|
|
|
color: ""
|
|
color: ""
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
@@ -1819,9 +1823,7 @@ export default {
|
|
|
unit: item1.unit,
|
|
unit: item1.unit,
|
|
|
unitprice: item1.price,
|
|
unitprice: item1.price,
|
|
|
usagestr: item1.usage,
|
|
usagestr: item1.usage,
|
|
|
- preDetailId: this.$route.query.recipeID
|
|
|
|
|
- ? this.$route.query.recipeID
|
|
|
|
|
- : ""
|
|
|
|
|
|
|
+ preDetailId: this.getEditPreNo(),
|
|
|
};
|
|
};
|
|
|
obj.zhongdetail.push(obj1);
|
|
obj.zhongdetail.push(obj1);
|
|
|
}
|
|
}
|
|
@@ -1937,9 +1939,7 @@ export default {
|
|
|
specification: item.spec,
|
|
specification: item.spec,
|
|
|
unit: item.unit,
|
|
unit: item.unit,
|
|
|
usagestr: item.usage,
|
|
usagestr: item.usage,
|
|
|
- preDetailId: this.$route.query.recipeID
|
|
|
|
|
- ? this.$route.query.recipeID
|
|
|
|
|
- : "",
|
|
|
|
|
|
|
+ preDetailId: this.getEditPreNo(),
|
|
|
bzdw: item.doseUnit,
|
|
bzdw: item.doseUnit,
|
|
|
zxdw: item.timesUnit
|
|
zxdw: item.timesUnit
|
|
|
};
|
|
};
|
|
@@ -2023,9 +2023,7 @@ export default {
|
|
|
pointname: item.acuname,
|
|
pointname: item.acuname,
|
|
|
price: data1.bottom_form.doseType,
|
|
price: data1.bottom_form.doseType,
|
|
|
seqn: item.id,
|
|
seqn: item.id,
|
|
|
- preDetailId: this.$route.query.recipeID
|
|
|
|
|
- ? this.$route.query.recipeID
|
|
|
|
|
- : ""
|
|
|
|
|
|
|
+ preDetailId: this.getEditPreNo(),
|
|
|
};
|
|
};
|
|
|
obj.detail.push(obj1);
|
|
obj.detail.push(obj1);
|
|
|
}
|
|
}
|
|
@@ -2135,10 +2133,7 @@ export default {
|
|
|
obj.bottom_form.caozuo = item.useexplain;
|
|
obj.bottom_form.caozuo = item.useexplain;
|
|
|
obj.bottom_form.zhutuo = item.command;
|
|
obj.bottom_form.zhutuo = item.command;
|
|
|
|
|
|
|
|
- if (
|
|
|
|
|
- this.$route.query.recipeType &&
|
|
|
|
|
- this.$route.query.recipeType == "edit"
|
|
|
|
|
- ) {
|
|
|
|
|
|
|
+ if (!!this.getEditPreNo()) {
|
|
|
if (item.revierwstate == 1 && isAutoCheck == 0) {
|
|
if (item.revierwstate == 1 && isAutoCheck == 0) {
|
|
|
obj.prescribed = 0;
|
|
obj.prescribed = 0;
|
|
|
} else {
|
|
} else {
|
|
@@ -2302,10 +2297,7 @@ export default {
|
|
|
|
|
|
|
|
data1.bottom_form.zhutuo = data.command;
|
|
data1.bottom_form.zhutuo = data.command;
|
|
|
data1.preId = data.preId ? data.preId : "";
|
|
data1.preId = data.preId ? data.preId : "";
|
|
|
- if (
|
|
|
|
|
- this.$route.query.recipeType &&
|
|
|
|
|
- this.$route.query.recipeType == "edit"
|
|
|
|
|
- ) {
|
|
|
|
|
|
|
+ if (!!this.getEditPreNo()) {
|
|
|
data1.bottom_form.radio = Number(data.isdelivery);
|
|
data1.bottom_form.radio = Number(data.isdelivery);
|
|
|
data1.bottom_form.savename = data.consigneeName;
|
|
data1.bottom_form.savename = data.consigneeName;
|
|
|
data1.bottom_form.phone = data.consigneePhone;
|
|
data1.bottom_form.phone = data.consigneePhone;
|
|
@@ -2414,7 +2406,7 @@ export default {
|
|
|
data1.allMoney = data.allprice;
|
|
data1.allMoney = data.allprice;
|
|
|
data1.nowMoney = data.thisRecipePrice;
|
|
data1.nowMoney = data.thisRecipePrice;
|
|
|
|
|
|
|
|
- if (this.$route.query && this.$route.query.recipeType == "edit") {
|
|
|
|
|
|
|
+ if (!!this.getEditPreNo()) {
|
|
|
if (data.revierwstate == 1) {
|
|
if (data.revierwstate == 1) {
|
|
|
data1.prescribed = 0; // 是否已开方 0否 1是
|
|
data1.prescribed = 0; // 是否已开方 0否 1是
|
|
|
data1.paystate = 0;
|
|
data1.paystate = 0;
|
|
@@ -3044,13 +3036,15 @@ export default {
|
|
|
this._showDataFromStorage();
|
|
this._showDataFromStorage();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this.$route.query.recipeID) {
|
|
|
|
|
|
|
+ const recipeID = this.getEditPreNo();
|
|
|
|
|
+
|
|
|
|
|
+ if (!!recipeID) {
|
|
|
if (this.$route.query.kjType) {
|
|
if (this.$route.query.kjType) {
|
|
|
if (this.$route.query.kjType == "kj-fj") {
|
|
if (this.$route.query.kjType == "kj-fj") {
|
|
|
- this.getPreDetal(this.$route.query.recipeID);
|
|
|
|
|
|
|
+ this.getPreDetal(recipeID);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- this.getRecipeDataByid(this.$route.query.recipeID);
|
|
|
|
|
|
|
+ this.getRecipeDataByid(recipeID);
|
|
|
}
|
|
}
|
|
|
} else if (this.$route.query.doctorCase) {
|
|
} else if (this.$route.query.doctorCase) {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -4290,6 +4284,9 @@ export default {
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
this.raDoseShow = show;
|
|
this.raDoseShow = show;
|
|
|
},
|
|
},
|
|
|
|
|
+ getEditPreNo() {
|
|
|
|
|
+ return this.$route.query && this.$route.query.recipeType === "edit" ? this.$route.query.recipeID : this.getPreNo;
|
|
|
|
|
+ },
|
|
|
...mapMutations({
|
|
...mapMutations({
|
|
|
setDrugsInfo: "drug/setDrugsInfo"
|
|
setDrugsInfo: "drug/setDrugsInfo"
|
|
|
})
|
|
})
|
|
@@ -4306,7 +4303,7 @@ export default {
|
|
|
: 0
|
|
: 0
|
|
|
).toFixed(2);
|
|
).toFixed(2);
|
|
|
},
|
|
},
|
|
|
- ...mapGetters(["getPatiensInfo", "getuserinfo", "getDrugInfo", "getIsSee"])
|
|
|
|
|
|
|
+ ...mapGetters(["getPatiensInfo", "getuserinfo", "getDrugInfo", "getIsSee", "getPreNo"])
|
|
|
},
|
|
},
|
|
|
filters: {
|
|
filters: {
|
|
|
ftsjj(value) {
|
|
ftsjj(value) {
|