Commit 29104fc3 authored by 陈明豪's avatar 陈明豪

Merge remote-tracking branch 'origin/master'

parents 2fcfd931 4c3db1e1
...@@ -274,6 +274,7 @@ ...@@ -274,6 +274,7 @@
v-show="checkDetail.deviceId === null && !isPlatRole" v-show="checkDetail.deviceId === null && !isPlatRole"
v-hasPermi="['business:check:subscribe']" v-hasPermi="['business:check:subscribe']"
class="fourWordsBtn" class="fourWordsBtn"
:disabled="currentUser.userType === '2' && currentUser.name !== checkDetail.doctorName"
@click="bookNow" @click="bookNow"
>立即预约</el-button> >立即预约</el-button>
</div> </div>
...@@ -454,7 +455,7 @@ ...@@ -454,7 +455,7 @@
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="resetBtn" @click="cancel">取消</el-button> <el-button class="resetBtn" @click="cancel">取消</el-button>
<el-button class="queryBtn" @click="centerDialogVisible"></el-button> <el-button class="queryBtn" @click="centerDialogVisible"></el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -526,7 +527,12 @@ export default { ...@@ -526,7 +527,12 @@ export default {
reportTime: null // 报告上传时间 reportTime: null // 报告上传时间
}, },
// 空数据(用于挂账) // 空数据(用于挂账)
emptyData: null emptyData: null,
// 当前登陆用户信息
currentUser: {
userType: '',
name: ''
}
} }
}, },
created() { created() {
...@@ -535,9 +541,15 @@ export default { ...@@ -535,9 +541,15 @@ export default {
this.isPlatRole = true this.isPlatRole = true
} }
this.getCheckDetail() this.getCheckDetail()
this.getCurrentUser()
}, },
methods: { methods: {
parseTime, parseTime,
// 获取当前登陆用户
getCurrentUser() {
this.currentUser.userType = this.$store.state.user.userType
this.currentUser.name = this.$store.state.user.name
},
getCheckDetail() { getCheckDetail() {
const id = this.$route.query.checkId const id = this.$route.query.checkId
getManage(id).then(response => { getManage(id).then(response => {
......
...@@ -235,14 +235,26 @@ ...@@ -235,14 +235,26 @@
>详情 >详情
</el-button> </el-button>
<el-button <el-button
v-if="!isPlatRole" v-if="!isPlatRole && scope.row.deviceId !== null"
v-hasPermi="['business:check:subscribe']" v-hasPermi="['business:check:subscribe']"
style="width: 80px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(255, 157, 78);color: #FF9D4E;background: rgba(255,157,78,0.08);" style="width: 80px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(255, 157, 78);color: #FF9D4E;background: rgba(255,157,78,0.08);"
size="mini" size="mini"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
plain plain
:disabled="scope.row.deviceId !== null" disabled
@click="handleSubscribe(scope.row)"
>立即预约
</el-button>
<el-button
v-else
v-hasPermi="['business:check:subscribe']"
style="width: 80px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(255, 157, 78);color: #FF9D4E;background: rgba(255,157,78,0.08);"
size="mini"
type="success"
icon="el-icon-check"
plain
:disabled="currentUser.userType === '2' && currentUser.name !== scope.row.doctorName"
@click="handleSubscribe(scope.row)" @click="handleSubscribe(scope.row)"
>立即预约 >立即预约
</el-button> </el-button>
...@@ -504,7 +516,12 @@ export default { ...@@ -504,7 +516,12 @@ export default {
currentCheckType: null, currentCheckType: null,
updateRow: {}, updateRow: {},
// 当前医院信息 // 当前医院信息
currentHospital: null currentHospital: null,
// 当前登陆用户信息
currentUser: {
userType: '',
name: ''
}
} }
}, },
created() { created() {
...@@ -512,6 +529,7 @@ export default { ...@@ -512,6 +529,7 @@ export default {
console.log('非平台权限') console.log('非平台权限')
this.getList() this.getList()
this.getHospitalMessage() this.getHospitalMessage()
this.getCurrentUser()
} else { } else {
console.log('平台权限') console.log('平台权限')
this.getItemForPlat() this.getItemForPlat()
...@@ -523,6 +541,11 @@ export default { ...@@ -523,6 +541,11 @@ export default {
methods: { methods: {
moneyFormat, moneyFormat,
parseTime, parseTime,
// 获取当前登陆用户
getCurrentUser() {
this.currentUser.userType = this.$store.state.user.userType
this.currentUser.name = this.$store.state.user.name
},
/** 获取当前医院信息 */ /** 获取当前医院信息 */
getHospitalMessage() { getHospitalMessage() {
signHospitalMessage().then(response => { signHospitalMessage().then(response => {
......
...@@ -622,7 +622,7 @@ ...@@ -622,7 +622,7 @@
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="resetBtn" @click="cancelVideo">取消</el-button> <el-button class="resetBtn" @click="cancelVideo">取消</el-button>
<el-button class="queryBtn" @click="centerDialogVisible"></el-button> <el-button class="queryBtn" @click="centerDialogVisible"></el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment