Commit 3899c307 authored by “lixuyan”'s avatar “lixuyan”

配置调配卡详情页

parent 062b31b9
<template>
<div class="AssignCradInfo">
<dee-as-com
ref="detailCom"
dis-business
:lay-config="cmpOptions"
:basic-data="basicData"
/>
</div>
</template>
<script>
export default {
name: 'AssignCradInfo',
componentName: '调配卡详情',
components: {},
props: {
basicData: {
type: Object,
default: () => null
}
},
data() {
return {
cmpOptions: {}
}
},
watch: {
basicData: {
immediate: true,
deep: true,
handler: function(val) {
if (val.subTypeName === 'AssignCardAlodine') {
this.cmpOptions = {
typeName: 'AssignCardAlodine',
layKey: 'assignCardInfo'
}
} else if (val.subTypeName === 'AssignCardLacquer') {
this.cmpOptions = {
typeName: 'AssignCardLacquer',
layKey: 'assignCardInfo'
}
} else {
this.cmpOptions = {
typeName: 'AssignCardPaint',
layKey: 'assignCardInfo'
}
}
}
}
}
}
</script>
<style lang='scss'>
</style>
export default {
layoutConfigData: [
{
title: '高级组件配置',
data: [
{
key: 'readOnly',
title: '只读',
component: {
name: 'el-checkbox'
}
}
]
}
],
data() {
return {
}
},
created() {
},
computed: {
},
methods: {
}
}
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
class="input-with-select el-input--small" class="input-with-select el-input--small"
placeholder="请输入剩余施工期" placeholder="请输入剩余施工期"
clearable clearable
:disabled="disabled" :disabled="itemObj.readOnly"
type="Number" type="Number"
/> />
</el-form-item> </el-form-item>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
class="input-with-select el-input--small" class="input-with-select el-input--small"
placeholder="请选择失效期" placeholder="请选择失效期"
style="width: 220px" style="width: 220px"
:disabled="disabled" :disabled="itemObj.readOnly"
format="yyyy 年 MM 月 dd 日 HH:mm" format="yyyy 年 MM 月 dd 日 HH:mm"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
/> />
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<el-form-item label="" prop="isFreezing"> <el-form-item label="" prop="isFreezing">
<el-radio-group <el-radio-group
v-model="form.isFreezing" v-model="form.isFreezing"
:disabled="disabled" :disabled="itemObj.readOnly"
> >
<el-radio :label="true">需要</el-radio> <el-radio :label="true">需要</el-radio>
<el-radio :label="false">不需要</el-radio> <el-radio :label="false">不需要</el-radio>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
placeholder="请输入冷冻温度/℃" placeholder="请输入冷冻温度/℃"
clearable clearable
class="input-with-select el-input--small" class="input-with-select el-input--small"
:disabled="disabled" :disabled="itemObj.readOnly"
type="Number" type="Number"
/> />
</el-form-item> </el-form-item>
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
</div> </div>
</template> </template>
<script> <script>
import config from './config'
import Dialog from './dialog' import Dialog from './dialog'
import { post } from '@/utils/http' import { post } from '@/utils/http'
export default { export default {
...@@ -89,6 +90,7 @@ export default { ...@@ -89,6 +90,7 @@ export default {
components: { components: {
Dialog Dialog
}, },
mixins: [config],
props: { props: {
basicData: { basicData: {
type: Object, type: Object,
...@@ -97,11 +99,14 @@ export default { ...@@ -97,11 +99,14 @@ export default {
form: { form: {
type: Object, type: Object,
default: () => null default: () => null
},
itemObj: {
type: Object,
default: null
} }
}, },
data() { data() {
return { return {
disabled: false,
loading: false, loading: false,
// 左侧行ID // 左侧行ID
cardId: null, cardId: null,
......
export default {
layoutConfigData: [
{
title: '高级组件配置',
data: [
{
key: 'readOnly',
title: '只读',
component: {
name: 'el-checkbox'
}
}
]
}
],
data() {
return {
}
},
created() {
},
computed: {
},
methods: {
}
}
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
class="input-with-select el-input--small" class="input-with-select el-input--small"
placeholder="" placeholder=""
clearable clearable
:disabled="itemObj.readOnly"
style="width: 40%" style="width: 40%"
@change="change" @change="change"
/> />
...@@ -14,6 +15,7 @@ ...@@ -14,6 +15,7 @@
class="input-with-select el-input--small" class="input-with-select el-input--small"
placeholder="" placeholder=""
clearable clearable
:disabled="itemObj.readOnly"
style="width: 40%" style="width: 40%"
@change="change" @change="change"
/> />
...@@ -21,13 +23,19 @@ ...@@ -21,13 +23,19 @@
</div> </div>
</template> </template>
<script> <script>
import config from './config'
export default { export default {
name: 'ViscosityBox', name: 'ViscosityBox',
componentName: '黏度框', componentName: '黏度框',
mixins: [config],
props: { props: {
form: { form: {
type: Object, type: Object,
default: () => null default: () => null
},
itemObj: {
type: Object,
default: null
} }
}, },
data() { data() {
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
} }
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
const baseURl = `${VUE_APP_BASE_API || process.env.VUE_APP_BASE_API}` const baseURl = `${VUE_APP_BASE_API || process.env.VUE_APP_BASE_API}`
const user = 27200113 const user = 'wcadmin'
console.log(row.docsUrl + user) console.log(row.docsUrl + user)
axios({ axios({
method: 'get', method: 'get',
......
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