Commit d945921a authored by 盖献康's avatar 盖献康

bug(66537) - 检查管理

parent 1d8a9ffc
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
> >
<el-input <el-input
v-model.trim="item.name" v-model.trim="item.name"
:disabled="item.isUpdate === '1'" :disabled="item.isUpdate === '1' || (currentUser.userType !== '00' && item.itemType === '2')"
placeholder="请输入项目名称" placeholder="请输入项目名称"
maxlength="10" maxlength="10"
/> />
...@@ -137,6 +137,7 @@ ...@@ -137,6 +137,7 @@
v-model="item.supportInsure" v-model="item.supportInsure"
style="width: 100%" style="width: 100%"
placeholder="请选择是否支持保险支付" placeholder="请选择是否支持保险支付"
:disabled="currentUser.userType !== '00' && item.itemType === '2'"
> >
<el-option <el-option
v-for="items in insuranceOptions" v-for="items in insuranceOptions"
...@@ -161,7 +162,7 @@ ...@@ -161,7 +162,7 @@
v-model="item.sort" v-model="item.sort"
:min="0" :min="0"
:max="9999" :max="9999"
:disabled="item.itemType === '2'" :disabled="currentUser.userType !== '00' && item.itemType === '2'"
controls-position="right" controls-position="right"
style="width: 100%;" style="width: 100%;"
@keydown.native="handleKeyDownSort" @keydown.native="handleKeyDownSort"
...@@ -180,6 +181,7 @@ ...@@ -180,6 +181,7 @@
> >
<el-select <el-select
v-model="item.status" v-model="item.status"
:disabled="currentUser.userType !== '00' && item.itemType === '2'"
style="width: 100%" style="width: 100%"
placeholder="请选择状态" placeholder="请选择状态"
> >
...@@ -208,7 +210,7 @@ ...@@ -208,7 +210,7 @@
v-model.trim="item.content" v-model.trim="item.content"
type="textarea" type="textarea"
:rows="2" :rows="2"
:disabled="item.isUpdate === '1'" :disabled="item.isUpdate === '1' || (currentUser.userType !== '00' && item.itemType === '2')"
placeholder="请输入检查项目描述" placeholder="请输入检查项目描述"
maxlength="60" maxlength="60"
show-word-limit show-word-limit
...@@ -285,10 +287,15 @@ export default { ...@@ -285,10 +287,15 @@ export default {
fullscreenLoading: false, fullscreenLoading: false,
isPlatRole: false, isPlatRole: false,
// 临时数组(用于预约外部服务, 权重为0) // 临时数组(用于预约外部服务, 权重为0)
temporaryArray: [] temporaryArray: [],
// 当前用户信息
currentUser: {
userType: null
}
} }
}, },
created() { created() {
this.currentUser.userType = this.$store.state.user.userType
if (this.$store.state.user.userType !== '00') { if (this.$store.state.user.userType !== '00') {
this.getList() this.getList()
} else { } else {
...@@ -353,6 +360,8 @@ export default { ...@@ -353,6 +360,8 @@ export default {
if (keyCode === 32 || (keyCode < 90 && keyCode > 65) || keyCode === 229) { if (keyCode === 32 || (keyCode < 90 && keyCode > 65) || keyCode === 229) {
event.preventDefault() event.preventDefault()
} }
// const prop = 'settingList.' + index + '.price'
// this.$refs['form'].validateField(prop)
}, },
// 权重的 // 权重的
handleKeyDownSort(event) { handleKeyDownSort(event) {
......
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