Commit 5e62a71c authored by 高滢's avatar 高滢

Merge remote-tracking branch 'origin/master'

parents 8edb4ccb e877368e
...@@ -120,7 +120,7 @@ export const constantRoutes = [ ...@@ -120,7 +120,7 @@ export const constantRoutes = [
}, },
{ {
path: 'equipment-detail/:id/:identify', path: 'equipment-detail',
props: true, props: true,
component: () => import('@/views/equipment-management/equipment-management/equipment-detail'), component: () => import('@/views/equipment-management/equipment-management/equipment-detail'),
name: 'EquipmentDetail', name: 'EquipmentDetail',
......
...@@ -316,6 +316,7 @@ import { getInfo } from '@/api/login' ...@@ -316,6 +316,7 @@ import { getInfo } from '@/api/login'
import { isEmpty } from '@/utils/ruoyi' import { isEmpty } from '@/utils/ruoyi'
import { deepClone } from '@/utils' import { deepClone } from '@/utils'
import { listItemByType } from '@/api/business/item' import { listItemByType } from '@/api/business/item'
import { signHospitalMessage } from '@/api/business/hospital'
export default { export default {
name: 'EquipmentAdd', name: 'EquipmentAdd',
...@@ -513,6 +514,7 @@ export default { ...@@ -513,6 +514,7 @@ export default {
created() { created() {
this.getUserInfo() this.getUserInfo()
this.getAreaData() this.getAreaData()
this.getHospital()
}, },
methods: { methods: {
// 获取登陆人信息 // 获取登陆人信息
...@@ -747,6 +749,12 @@ export default { ...@@ -747,6 +749,12 @@ export default {
console.log('xdddd', this.checkItemOptions) console.log('xdddd', this.checkItemOptions)
}) })
}, },
getHospital() {
signHospitalMessage().then(res => {
console.log('查到医院信息', res)
})
},
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
const form = deepClone(this.form) const form = deepClone(this.form)
......
...@@ -628,16 +628,6 @@ import { mapGetters } from 'vuex' ...@@ -628,16 +628,6 @@ import { mapGetters } from 'vuex'
export default { export default {
name: 'EquipmentDetail', name: 'EquipmentDetail',
dicts: ['device_status', 'device_type', 'exam_type', 'check_type', 'service_area'], dicts: ['device_status', 'device_type', 'exam_type', 'check_type', 'service_area'],
props: {
id: {
type: Number,
required: true
},
identify: {
type: String,
required: true
}
},
data() { data() {
return { return {
// 日期格式 // 日期格式
...@@ -836,7 +826,23 @@ export default { ...@@ -836,7 +826,23 @@ export default {
hpshow: '' hpshow: ''
} }
}, },
mounted() {
this.$route.meta.title = '2222'
},
created() { created() {
this.$route.meta.title = '2222'
console.log('當前router', this.$route)
this.id = this.$route.query.id
console.log('this.$route.query.id', this.id)
this.identify = this.$route.query.identify
console.log(' this.$route.query.identify', this.identify)
if (this.identify === '1') {
// this.$route.meta.title = ''
console.log('1')
} else if (this.identify === '2') {
// this.$route.meta.title = ''
console.log('2')
}
this.getAreaData() this.getAreaData()
this.handleUpdate() this.handleUpdate()
this.getUserInfo() this.getUserInfo()
......
...@@ -112,13 +112,13 @@ ...@@ -112,13 +112,13 @@
@click="handleExport" @click="handleExport"
>批量导出 >批量导出
</el-button> </el-button>
<el-button <!-- <el-button-->
v-if="userType==='00'" <!-- v-if="userType==='00'"-->
class="fourWordsBtn" <!-- class="fourWordsBtn"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
size="mini" <!-- size="mini"-->
@click="handlecheck" <!-- @click="handlecheck"-->
>检查项目</el-button> <!-- >检查项目</el-button>-->
</el-col> </el-col>
<el-col :span="12" style="padding-bottom: 20px;text-align: end;"> <el-col :span="12" style="padding-bottom: 20px;text-align: end;">
<el-button class="queryBtn" icon="el-icon-search" @click="handleQuery">查询</el-button> <el-button class="queryBtn" icon="el-icon-search" @click="handleQuery">查询</el-button>
...@@ -585,7 +585,7 @@ export default { ...@@ -585,7 +585,7 @@ export default {
editDevice(id) { editDevice(id) {
this.$router.push({ this.$router.push({
name: 'EquipmentDetail', name: 'EquipmentDetail',
params: { query: {
identify: '1', identify: '1',
id: id id: id
} }
...@@ -595,7 +595,7 @@ export default { ...@@ -595,7 +595,7 @@ export default {
detailsDevice(id) { detailsDevice(id) {
this.$router.push({ this.$router.push({
name: 'EquipmentDetail', name: 'EquipmentDetail',
params: { query: {
identify: '2', identify: '2',
id: id id: id
} }
......
...@@ -344,8 +344,15 @@ ...@@ -344,8 +344,15 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="影像报告" label-width="84px"> <el-form-item label="影像报告" label-width="84px">
<!-- <span>{{ checkDetail.shadowReport || '暂未上传' }}</span>--> <!-- <el-button v-show="checkDetail.shadowReport !== null && checkDetail.shadowReport !== ''" class="fourWordsBtn" @click="viewTheReport">查看报告</el-button>-->
<el-button v-show="checkDetail.shadowReport !== null && checkDetail.shadowReport !== ''" class="fourWordsBtn" @click="viewTheReport">查看报告</el-button> <el-link
v-shpw="checkDetail.shadowReport !== null && checkDetail.shadowReport !== ''"
:href="`${baseUrl}${checkDetail.shadowReport}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">{{ getFileName(checkDetail.shadowReport) }}</span>
</el-link>
<span v-show="checkDetail.shadowReport === null || checkDetail.shadowReport === ''">{{ '暂未上传' }}</span> <span v-show="checkDetail.shadowReport === null || checkDetail.shadowReport === ''">{{ '暂未上传' }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -458,6 +465,14 @@ export default { ...@@ -458,6 +465,14 @@ export default {
return price.toFixed(2) return price.toFixed(2)
} }
}, },
// 获取文件名称
getFileName(name) {
if (name.lastIndexOf('/') > -1) {
return name.slice(name.lastIndexOf('/') + 1)
} else {
return ''
}
},
// 点击 预约信息-立即预约 // 点击 预约信息-立即预约
bookNow() { bookNow() {
this.$router.push({ this.$router.push({
...@@ -547,4 +562,13 @@ export default { ...@@ -547,4 +562,13 @@ export default {
.input-detail { .input-detail {
width: 392px; width: 392px;
} }
.el-icon-document {
border: 1px solid #e4e7ed;
padding: 10px;
background-color: white;
transition: background-color 0.3s ease;
}
.el-icon-document:hover {
background-color: #f6f8fa;
}
</style> </style>
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
const today = new Date() const today = new Date()
const maxDate = new Date() const maxDate = new Date()
maxDate.setDate(today.getDate() + 14) maxDate.setDate(today.getDate() + 14)
return time.getTime() < (today.getTime() - 1000 * 3600 * 24) || time.getTime() > maxDate.getTime() return time.getTime() < (today.getTime() - 1000 * 3600 * 24) || time.getTime() > (maxDate.getTime() - 1000 * 3600 * 24)
} }
}, },
checkDetail: {}, checkDetail: {},
......
...@@ -380,7 +380,7 @@ export default { ...@@ -380,7 +380,7 @@ export default {
const today = new Date() const today = new Date()
const maxDate = new Date() const maxDate = new Date()
maxDate.setDate(today.getDate() + 14) maxDate.setDate(today.getDate() + 14)
return time.getTime() < (today.getTime() - 1000 * 3600 * 24) || time.getTime() > maxDate.getTime() return time.getTime() < (today.getTime() - 1000 * 3600 * 24) || time.getTime() > (maxDate.getTime() - 1000 * 3600 * 24)
} }
}, },
isPlatRole: false, isPlatRole: false,
......
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
v-hasPermi="['business:registration:edit']" v-hasPermi="['business:registration:edit']"
icon="el-icon-paperclip" icon="el-icon-paperclip"
plain plain
:disabled="scope.row.isAdd === '1'"
size="mini" size="mini"
class="el-button--warning--solid--four" class="el-button--warning--solid--four"
type="warning" type="warning"
......
...@@ -332,7 +332,15 @@ ...@@ -332,7 +332,15 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="治疗日志"> <el-form-item label="治疗日志">
<span v-if="checkDetail.shadowReport===''||checkDetail.shadowReport===null">{{ '暂未上传' }}</span> <span v-if="checkDetail.shadowReport===''||checkDetail.shadowReport===null">{{ '暂未上传' }}</span>
<el-button v-else class="fourWordsBtn" @click="viewTheReport">查看报告</el-button> <!-- <el-button v-else class="fourWordsBtn" @click="viewTheReport">查看报告</el-button>-->
<el-link
v-else
:href="`${baseUrl}${checkDetail.shadowReport}`"
:underline="false"
target="_blank"
>
<span class="el-icon-document">{{ getFileName(checkDetail.shadowReport) }}</span>
</el-link>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -717,6 +725,14 @@ export default { ...@@ -717,6 +725,14 @@ export default {
return totalHours return totalHours
}, },
// 获取文件名称
getFileName(name) {
if (name.lastIndexOf('/') > -1) {
return name.slice(name.lastIndexOf('/') + 1)
} else {
return ''
}
},
// 获取负责人下拉框 // 获取负责人下拉框
getUserNameList() { getUserNameList() {
userNameList({ status: '0' }).then(res => { userNameList({ status: '0' }).then(res => {
...@@ -939,4 +955,13 @@ export default { ...@@ -939,4 +955,13 @@ export default {
.input-detail { .input-detail {
width: 392px; width: 392px;
} }
.el-icon-document {
border: 1px solid #e4e7ed;
padding: 10px;
background-color: white;
transition: background-color 0.3s ease;
}
.el-icon-document:hover {
background-color: #f6f8fa;
}
</style> </style>
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