|
|
@@ -5,6 +5,7 @@
|
|
|
<el-select v-model="queryParams.prescribeType" placeholder="请选择处方类型" clearable>
|
|
|
<el-option label="西药" :value="1"></el-option>
|
|
|
<el-option label="中药" :value="2"></el-option>
|
|
|
+ <el-option label="OTC" :value="3"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="处方单号" prop="prescribeCode">
|
|
|
@@ -103,13 +104,14 @@
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="处方来源" align="prescribeSource" prop="createTime" width="180">
|
|
|
+ <el-table-column label="处方来源" align="center" prop="prescribeSource" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag
|
|
|
- :type="scope.row.prescribeSource === 1 ? 'success' : 'info'"
|
|
|
+ :type="getTagType(scope.row.prescribeSource)"
|
|
|
+ :effect="getTagEffect(scope.row.prescribeSource)"
|
|
|
size="small"
|
|
|
>
|
|
|
- {{ scope.row.prescribeSource === 1 ? '信息采集表' : '其他' }}
|
|
|
+ {{ getSourceText(scope.row.prescribeSource) }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -143,6 +145,7 @@
|
|
|
<el-radio-group v-model="form.prescribeType">
|
|
|
<el-radio :label="1">西药</el-radio>
|
|
|
<el-radio :label="2">中药</el-radio>
|
|
|
+ <el-radio :label="3">OTC</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="订单ID" prop="inquiryOrderId">
|
|
|
@@ -350,7 +353,12 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <collectionDetail :userId="form.userId" :prescribeId="form.prescribeId" v-if="form.userId"/>
|
|
|
+ <collectionDetail
|
|
|
+ :userId="form.userId"
|
|
|
+ :thirdPartyUserId="form.thirdPartyUserId"
|
|
|
+ :prescribeId="form.prescribeId"
|
|
|
+ v-if="form.userId || form.thirdPartyUserId"
|
|
|
+ />
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
|
|
|
@@ -413,7 +421,12 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <collectionDetail :userId="form.userId" :prescribeId="form.prescribeId" v-if="collectionDialogVisible"/>
|
|
|
+ <collectionDetail
|
|
|
+ :userId="form.userId"
|
|
|
+ :thirdPartyUserId="form.thirdPartyUserId"
|
|
|
+ :prescribeId="form.prescribeId"
|
|
|
+ v-if="collectionDialogVisible && (form.userId || form.thirdPartyUserId)"
|
|
|
+ />
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="collectionDialogVisible = false">关 闭</el-button>
|
|
|
</span>
|
|
|
@@ -1016,6 +1029,14 @@ export default {
|
|
|
|
|
|
getPrescribe(prescribeId).then(response => {
|
|
|
this.form = response.data;
|
|
|
+ //根据historyAllergic设置isHistoryAllergic
|
|
|
+ if (this.form.historyAllergic) {
|
|
|
+ // 如果historyAllergic有值,设置为"是"
|
|
|
+ this.form.isHistoryAllergic = "是";
|
|
|
+ } else {
|
|
|
+ // 如果historyAllergic没有值或为空,设置为"否"
|
|
|
+ this.form.isHistoryAllergic = "否";
|
|
|
+ }
|
|
|
if(row.doctorConfirm === 0) {
|
|
|
this.form.startOperateTime = new Date().getTime();
|
|
|
}
|
|
|
@@ -1299,14 +1320,15 @@ export default {
|
|
|
},
|
|
|
/** 患者信息采集详情页面 */
|
|
|
openCollectionInfo() {
|
|
|
- if (!this.form.userId) {
|
|
|
- this.$message.warning("患者ID未填写!");
|
|
|
- return;
|
|
|
+ if (!this.form.userId) {//系统用户id
|
|
|
+ if (!this.form.thirdPartyUserId){//第三方用户id
|
|
|
+ this.$message.warning("患者ID信息缺失!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
this.collectionDialogVisible = true;
|
|
|
},
|
|
|
// 表单重置
|
|
|
- // 表单重置
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
prescribeId: undefined,
|
|
|
@@ -1322,13 +1344,14 @@ export default {
|
|
|
patientGender: "1",
|
|
|
patientTel: undefined,
|
|
|
weight: undefined,
|
|
|
- isHistoryAllergic: undefined,
|
|
|
+ isHistoryAllergic: "否",
|
|
|
historyAllergic: undefined,
|
|
|
diagnose: undefined,
|
|
|
doctorId: undefined,
|
|
|
doctorName: undefined,
|
|
|
status: 0,
|
|
|
- remark: undefined
|
|
|
+ remark: undefined,
|
|
|
+ thirdPartyUserId: undefined,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
|
|
|
@@ -1373,6 +1396,41 @@ export default {
|
|
|
}
|
|
|
if (currentLine) lines.push(currentLine);
|
|
|
return lines.join('\n');
|
|
|
+ },
|
|
|
+ // 获取标签类型(颜色)
|
|
|
+ getTagType(source) {
|
|
|
+ switch(source) {
|
|
|
+ case 1:
|
|
|
+ return 'success'; // 信息采集表 - 绿色
|
|
|
+ case 2:
|
|
|
+ return 'danger'; // 超拼网 - 橙色
|
|
|
+ default:
|
|
|
+ return 'info'; // 其他 - 灰色
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取标签效果(可选,让2有特殊效果)
|
|
|
+ getTagEffect(source) {
|
|
|
+ switch(source) {
|
|
|
+ case 1:
|
|
|
+ return 'dark'; // 信息采集表 - 深色效果
|
|
|
+ case 2:
|
|
|
+ return 'dark'; // 超拼网 - 深色效果
|
|
|
+ default:
|
|
|
+ return 'plain'; // 其他 - 朴素效果
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取显示的文本
|
|
|
+ getSourceText(source) {
|
|
|
+ switch(source) {
|
|
|
+ case 1:
|
|
|
+ return '信息采集表';
|
|
|
+ case 2:
|
|
|
+ return '超拼网';
|
|
|
+ default:
|
|
|
+ return '其他';
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|