Commit a987cf7c authored by 陈明豪's avatar 陈明豪

检查管理-平台权限

parent a7c18430
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
<div style="height: 20px;border-left: 5px solid #5FB54B;" /> <div style="height: 20px;border-left: 5px solid #5FB54B;" />
<div style="padding-left: 10px;font-size: 16px;font-weight: bold;">预约信息</div> <div style="padding-left: 10px;font-size: 16px;font-weight: bold;">预约信息</div>
<div style="margin-left: auto;padding-right: 50px;"> <div style="margin-left: auto;padding-right: 50px;">
<el-button v-show="checkDetail.deviceId === null" class="fourWordsBtn" @click="bookNow">立即预约</el-button> <el-button v-show="checkDetail.deviceId === null && !isPlatRole" class="fourWordsBtn" @click="bookNow">立即预约</el-button>
</div> </div>
</div> </div>
<!-- 预约信息 --> <!-- 预约信息 -->
...@@ -379,6 +379,7 @@ export default { ...@@ -379,6 +379,7 @@ export default {
dicts: ['pet_sex', 'sterilization_status', 'vaccine_situation', 'check_type'], dicts: ['pet_sex', 'sterilization_status', 'vaccine_situation', 'check_type'],
data() { data() {
return { return {
isPlatRole: false,
checkDetail: {}, checkDetail: {},
schedule: 1, schedule: 1,
videoReportVisible: false, videoReportVisible: false,
...@@ -420,6 +421,9 @@ export default { ...@@ -420,6 +421,9 @@ export default {
}, },
created() { created() {
console.log('点击详情后的ID', localStorage.getItem('checkId')) console.log('点击详情后的ID', localStorage.getItem('checkId'))
if (this.$store.state.user.userType === '00') {
this.isPlatRole = true
}
this.getCheckDetail() this.getCheckDetail()
}, },
methods: { methods: {
...@@ -468,7 +472,9 @@ export default { ...@@ -468,7 +472,9 @@ export default {
return return
} }
this.checkDetail.shadowReport = this.videoReport this.checkDetail.shadowReport = this.videoReport
this.checkDetail.reportTime = parseTime(new Date()) this.checkDetail.reportTime = parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}')
this.checkDetail.payTime = parseTime(this.checkDetail.payTime, '{y}-{m}-{d}')
this.checkDetail.createTime = parseTime(this.checkDetail.createTime, '{y}/{m}/{d} {h}:{i}:{s}')
this.checkDetail.checkSchedule = '3' this.checkDetail.checkSchedule = '3'
console.log('点击上传报告后', this.checkDetail) console.log('点击上传报告后', this.checkDetail)
// 更新检查表 // 更新检查表
......
...@@ -235,7 +235,29 @@ export default { ...@@ -235,7 +235,29 @@ export default {
} }
}, },
created() { created() {
if (this.$store.state.user.userType !== '00') {
this.getList() this.getList()
} else {
listItem({ itemType: '2' }).then(response => {
if (response.code === 200) {
console.log('aaa', response)
if (response.rows.length > 0) {
this.form.settingList = response.rows
} else {
this.form.settingList = [{
name: '',
type: '0',
price: '',
supportInsure: '',
sort: '',
status: '1',
content: '',
itemType: '0'
}]
}
}
})
}
}, },
methods: { methods: {
/** 获取数据 */ /** 获取数据 */
...@@ -347,6 +369,7 @@ export default { ...@@ -347,6 +369,7 @@ export default {
}, },
// 新增项目 // 新增项目
handleAddItem() { handleAddItem() {
if (this.$store.state.user.userType !== '00') {
this.form.settingList.push({ this.form.settingList.push({
name: '', name: '',
type: '0', type: '0',
...@@ -357,6 +380,18 @@ export default { ...@@ -357,6 +380,18 @@ export default {
content: '', content: '',
itemType: '0' itemType: '0'
}) })
} else {
this.form.settingList.push({
name: '',
type: '0',
price: '',
supportInsure: '',
sort: '',
status: '1',
content: '',
itemType: '2'
})
}
}, },
// 提交 // 提交
handleSubmit() { handleSubmit() {
......
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