|
|
@@ -206,6 +206,15 @@
|
|
|
:disabled="doctorType !== 1"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="药师建议">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :rows="3"
|
|
|
+ v-model="doctorType2Advice"
|
|
|
+ placeholder="输入药师建议"
|
|
|
+ :disabled="doctorType !== 2"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
|
|
|
@@ -248,6 +257,7 @@ export default {
|
|
|
productInfo:null,
|
|
|
detail: null,
|
|
|
doctorAdvice: "",
|
|
|
+ doctorType2Advice: "",
|
|
|
confirming: false,
|
|
|
jsonInfoData: [] // 新增:存储采集信息数据
|
|
|
};
|
|
|
@@ -315,6 +325,7 @@ export default {
|
|
|
this.productInfo = [];
|
|
|
}
|
|
|
this.doctorAdvice = this.detail.doctorAdvice || "";
|
|
|
+ this.doctorType2Advice = this.detail.doctorType2Advice || "";
|
|
|
|
|
|
// 解析问卷 JSON
|
|
|
if (this.detail.questionJson) {
|
|
|
@@ -362,10 +373,34 @@ export default {
|
|
|
this.jsonInfoData.push({
|
|
|
"title": "用户承诺", // 重要:改为 title
|
|
|
"value": commitmentValue,
|
|
|
- "sort": 9999 // 确保显示在最后
|
|
|
+ "sort": 9997 // 确保显示在最后
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ //用户备注
|
|
|
+ let remark
|
|
|
+ if (this.detail.remark){
|
|
|
+ remark = this.detail.remark.toString().trim();
|
|
|
+ } else {
|
|
|
+ remark = ""
|
|
|
+ }
|
|
|
+ this.jsonInfoData.push({
|
|
|
+ "title": "用户备注", // 重要:改为 title
|
|
|
+ "value": remark,
|
|
|
+ "sort": 9998 // 确保显示在最后
|
|
|
+ });
|
|
|
+ //用户过敏
|
|
|
+ let allergy
|
|
|
+ if (this.detail.allergy){
|
|
|
+ allergy = this.detail.allergy.toString().trim();
|
|
|
+ } else {
|
|
|
+ allergy = ""
|
|
|
+ }
|
|
|
+ this.jsonInfoData.push({
|
|
|
+ "title": "用户过敏情况", // 重要:改为 title
|
|
|
+ "value": allergy,
|
|
|
+ "sort": 9999 // 确保显示在最后
|
|
|
+ });
|
|
|
} catch (e) {
|
|
|
console.error("jsonInfo 解析失败", e);
|
|
|
this.jsonInfoData = [];
|
|
|
@@ -424,7 +459,7 @@ export default {
|
|
|
if (!this.detail) return;
|
|
|
|
|
|
try {
|
|
|
- this.detail.doctorAdvice = this.doctorAdvice;
|
|
|
+ this.detail.doctorType2Advice = this.doctorType2Advice;
|
|
|
this.detail.doctorType2Confirm = status;
|
|
|
doctorType2Confirm(this.detail).then(response => {
|
|
|
this.msgSuccess("药师确认成功");
|