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

检查管理-平台权限

parent a7c18430
......@@ -229,7 +229,7 @@
<div style="height: 20px;border-left: 5px solid #5FB54B;" />
<div style="padding-left: 10px;font-size: 16px;font-weight: bold;">预约信息</div>
<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>
<!-- 预约信息 -->
......@@ -379,6 +379,7 @@ export default {
dicts: ['pet_sex', 'sterilization_status', 'vaccine_situation', 'check_type'],
data() {
return {
isPlatRole: false,
checkDetail: {},
schedule: 1,
videoReportVisible: false,
......@@ -420,6 +421,9 @@ export default {
},
created() {
console.log('点击详情后的ID', localStorage.getItem('checkId'))
if (this.$store.state.user.userType === '00') {
this.isPlatRole = true
}
this.getCheckDetail()
},
methods: {
......@@ -468,7 +472,9 @@ export default {
return
}
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'
console.log('点击上传报告后', this.checkDetail)
// 更新检查表
......
......@@ -235,7 +235,29 @@ export default {
}
},
created() {
this.getList()
if (this.$store.state.user.userType !== '00') {
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: {
/** 获取数据 */
......@@ -347,16 +369,29 @@ export default {
},
// 新增项目
handleAddItem() {
this.form.settingList.push({
name: '',
type: '0',
price: '',
supportInsure: '',
sort: '',
status: '1',
content: '',
itemType: '0'
})
if (this.$store.state.user.userType !== '00') {
this.form.settingList.push({
name: '',
type: '0',
price: '',
supportInsure: '',
sort: '',
status: '1',
content: '',
itemType: '0'
})
} else {
this.form.settingList.push({
name: '',
type: '0',
price: '',
supportInsure: '',
sort: '',
status: '1',
content: '',
itemType: '2'
})
}
},
// 提交
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